]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
[thirdparty/gcc.git] / gcc / ChangeLog
1 2010-11-25 Basile Starynkevitch <basile@starynkevitch.net>
2 Jeremie Salvucci <jeremie.salvucci@free.fr>
3
4 * gentype-state.c: Add new file.
5
6 * gengtype.c (type count): New variable.
7 (new_structure, find_param_structure, create_pointer)
8 (create_array): Use it to set state_number in types.
9 (dump_everything): Improve comment.
10 (main): Call read_state and write_state. Print type_count.
11
12 * gengtype.h (type_lineloc): New function.
13 (read_state, write_state): New declarations.
14
15 * Makefile.in (GENGTYPE_FLAGS): New variable.
16 (s-gtype): Run gengtype twice and generate gtype.state.
17 (build/gengtype-state.o): New rule.
18 (build/gengtype$(build_exeext)): Link gengtype-state.o.
19 (mostlyclean): Update comment. Remove gtype.state.
20
21 2010-11-25 Jakub Jelinek <jakub@redhat.com>
22
23 PR middle-end/46637
24 * combine.c (try_combine): When substing i2dest for i2src, pass
25 1 as last argument even if
26 i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
27
28 2010-11-25 H.J. Lu <hongjiu.lu@intel.com>
29
30 PR middle-end/46647
31 * builtins.c (target_char_cast): Check INTEGER_CST instead of
32 host_integerp. Replace tree_low_cst with TREE_INT_CST_LOW.
33
34 2010-11-25 Joseph Myers <joseph@codesourcery.com>
35
36 * target.def (supports_split_stack, except_unwind_info): Take
37 gcc_options parameters.
38 * targhooks.c (default_except_unwind_info,
39 dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
40 gcc_options parameters.
41 * targhooks.h (default_except_unwind_info,
42 dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
43 prototypes.
44 * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
45 TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
46 Document that hooks must not be modified.
47 (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
48 * doc/tm.texi: Regenerate.
49 * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
50 &global_options to targetm.except_unwind_info.
51 * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
52 dwarf2out_begin_prologue, dwarf2out_frame_init,
53 dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
54 &global_options to targetm.except_unwind_info.
55 * except.c (init_eh, finish_eh_generation,
56 gate_convert_to_eh_region_ranges,
57 output_one_function_exception_table): Pass &global_options to
58 targetm.except_unwind_info.
59 * expr.c (build_personality_function): Pass &global_options to
60 targetm.except_unwind_info.
61 * function.c (expand_function_end): Pass &global_options to
62 targetm.except_unwind_info.
63 * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
64 * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
65 * opts.c (finish_options): Pass opts to targetm.except_unwind_info
66 and targetm.supports_split_stack. Remove assertions about opts
67 and opts_set.
68 (common_handle_option): Remove assertions about opts, opts_set and
69 dc.
70 * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
71 &global_options to targetm.except_unwind_info.
72 * tree.c (build_common_builtin_nodes: Pass &global_options to
73 targetm.except_unwind_info.
74 * config/arm/arm.c (arm_except_unwind_info): Add gcc_options
75 parameter.
76 (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
77 thumb1_expand_prologue, thumb1_output_function_prologue,
78 arm_unwind_emit, arm_output_fn_unwind): Update calls to
79 arm_except_unwind_info.
80 * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
81 parameter.
82 * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
83 parameter.
84 (ia64_output_function_prologue, ia64_add_bundle_selector_before,
85 ia64_reorg, ia64_asm_unwind_emit): Update calls to
86 ia64_except_unwind_info.
87 * config/pa/pa.c (pa_option_override): Pass &global_options to
88 targetm.except_unwind_info.
89 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
90 Remove prototype.
91
92 2010-11-25 Kai Tietz <kai.tietz@onevision.com>
93
94 * cgraphunit.c (process_function_and_variable_attributes):
95 Mark dllexport-ed function/variables as needed.
96 * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
97 as externally visible.
98
99 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
100
101 PR rtl-optimization/46585
102 * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
103 (vinsn_init): Skip computation of dependencies for local NOPs.
104 (vinsn_delete): Don't try to free regsets for local NOPs.
105 (setup_nop_and_exit_insns): Change definition of nop_pattern.
106
107 2010-11-25 Alexander Monakov <amonakov@ispras.ru>
108
109 PR rtl-optimization/46602
110 * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
111 (tidy_control_flow): Here.
112
113 2010-11-25 Joern Rennecke <amylaar@spamcop.net>
114 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115
116 PR bootstrap/45888
117 * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
118 Fix target.def pathname in timestamp comparison.
119
120 2010-11-24 Richard Henderson <rth@redhat.com>
121
122 * config/ia64/predicates.md (pmpyshr_operand): New.
123 * config/ia64/ia64.c (ia64_expand_unpack): New.
124 (ia64_expand_widen_mul_v4hi): New.
125 (ia64_expand_widen_sum): Update for pattern renames.
126 (ia64_expand_dot_prod_v8qi): Likewise.
127 * config/ia64/ia64-protos.h: Update.
128 * config/ia64/vect.md (vecwider): New mode attribute.
129 (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
130 (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
131 (pmpyshr2, pmpyshr2_u): New.
132 (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
133 (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
134 (mulv2si3): New.
135 (vec_pack_ssat_v4hi): Rename from pack2_sss.
136 (vec_pack_usat_v4hi): Rename from *pack2_uss.
137 (vec_pack_ssat_v2si): Rename from pack4_sss.
138 (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
139 vec_select operation.
140 (vec_interleave_highv8qi): Similarly.
141 (mux1_alt): Rename from *mux1_alt.
142 (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
143 (vec_interleave_lowv4hi): Rename from unpack2_l.
144 (vec_interleave_highv4hi): Rename from unpack2_h.
145 (mix2_r): Rename from *mix2_r.
146 (mix2_l): Similarly.
147 (vec_extract_evenodd_helper): New.
148 (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
149 (vec_interleave_lowv2si): Rename from *unpack4_l.
150 (vec_interleave_highv2si): Rename from *unpack4_h.
151 (vec_extract_evenv2si, vec_extract_oddv2si): New.
152 (vec_interleave_lowv2sf): Rename from fmix_r.
153 (vec_interleave_highv2sf): Rename from *fmix_l.
154 (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
155 (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
156 (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
157 (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
158
159 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
160
161 * targhooks.c (default_except_unwind_info): Remove
162 MUST_USE_SJLJ_EXCEPTIONS case.
163 * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
164 * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
165 * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
166 * doc/tm.texi: Regenerate.
167 * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
168
169 2010-11-24 Nathan Froyd <froydnj@codesourcery.com>
170
171 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
172 __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
173 * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
174 * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
175 * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
176
177 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
178
179 PR target/46519
180 * config/i386/i386.c (ix86_expand_call): Don't check
181 TREE_THIS_VOLATILE.
182
183 2010-11-24 H.J. Lu <hongjiu.lu@intel.com>
184
185 PR target/46519
186 * config/i386/i386.c (upper_128bits_state): New.
187 (block_info_def): Remove upper_128bits_set and done. Add state,
188 referenced, count, processed and rescanned.
189 (check_avx256_stores): Updated.
190 (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
191 Call note_stores only if needed. Set referenced and count.
192 (move_or_delete_vzeroupper_1): Updated. Set rescan_vzeroupper_p.
193 (rescan_move_or_delete_vzeroupper): New.
194 (move_or_delete_vzeroupper): Process and rescan all all basic
195 blocks instead of predecessor blocks of all exit points.
196 (ix86_option_override_internal): Enable vzeroupper optimization
197 only for -fexpensive-optimizations and not optimizing for size.
198 (use_avx256_p): Removed.
199 (init_cumulative_args): Don't set use_avx256_p.
200 (ix86_function_arg): Likewise.
201 (ix86_expand_move): Likewise.
202 (ix86_expand_vector_move_misalign): Likewise.
203 (ix86_local_alignment): Likewise.
204 (ix86_minimum_alignment): Likewise.
205 (ix86_expand_epilogue): Don't check use_avx256_p when generating
206 vzeroupper.
207 (ix86_expand_call): Likewise.
208
209 * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
210 and use_avx256_p. Add rescan_vzeroupper_p.
211
212 2010-11-24 Joseph Myers <joseph@codesourcery.com>
213
214 * toplev.c: Include <signal.h>.
215
216 2010-11-24 Richard Guenther <rguenther@suse.de>
217
218 PR lto/43218
219 * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
220 conflicting function signatures as non-inlineable.
221
222 2010-11-24 Jakub Jelinek <jakub@redhat.com>
223
224 PR rtl-optimization/46614
225 * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
226 (deps_analyze_insn): Mark JUMP_INSNs in
227 last_pending_memory_flush that weren't added through
228 flush_pending_lists with NON_FLUSH_JUMP_KIND.
229 (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
230 on INSN_LIST instead of JUMP_P check on its operand.
231 * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
232
233 2010-11-24 Richard Guenther <rguenther@suse.de>
234
235 * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
236
237 2010-11-24 Richard Guenther <rguenther@suse.de>
238
239 PR lto/46606
240 * lto-streamer-in.c (input_gimple_stmt): When we cannot find
241 a FIELD_DECL that is type correct issue a warning and fixup
242 with a VIEW_CONVERT_EXPR.
243
244 2010-11-24 Basile Starynkevitch <basile@starynkevitch.net>
245
246 * doc/invoke.texi (Options for Debugging Your Program or GCC):
247 Explain static numbering of dump files.
248
249 2010-11-24 Joseph Myers <joseph@codesourcery.com>
250
251 * common.opt (user_vect_verbosity_level): New Variable entry.
252 (ftree-vectorizer-verbose=): Mark as UInteger.
253 * flag-types.h (enum vect_verbosity_levels): Move from enum
254 verbosity_levels in tree-vectorizer.h.
255 * opts.c: Don't include tree.h.
256 (vect_set_verbosity_level): Move from tree-vectorizer.c. Use
257 gcc_options parameter; take integer option argument.
258 (common_handle_option): Update call to vect_set_verbosity_level.
259 * tree-vectorizer.c (user_vect_verbosity_level): Remove.
260 (vect_set_verbosity_level): Move to opts.c.
261 (vect_verbosity_level, vect_print_dump_info): Update for change of
262 enum name.
263 * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
264 (vect_print_dump_info): Update for change of enum name.
265 * tree.h (vect_set_verbosity_level): Remove.
266 * Makefile.in (opts.o): Update dependencies.
267
268 2010-11-24 Jakub Jelinek <jakub@redhat.com>
269
270 PR middle-end/46629
271 * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
272 instead of insn with any_condjump_p.
273
274 2010-11-24 Mingjie Xing <mingjie.xing@gmail.com>
275
276 * config/mips/loongson.md: Change the description comment of the file
277 and update the copyright years.
278 (define_insn "<u>div<mode>3): Add loongson3a support.
279 (define_insn "<u>mod<mode>3"): Likewise.
280 * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
281 mul<mode>3_mul3_loongson.
282 (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
283 (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
284
285 2010-11-23 Joseph Myers <joseph@codesourcery.com>
286
287 * common.opt (initial_max_fld_align, flag_debug_asm,
288 flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
289 flag_print_asm_name, graph_dump_format, help_printed,
290 help_columns, flag_opts_finished): New Variable entries.
291 (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
292 frandom-seed=): Mark deferred.
293 (fsched-verbose=): Use UInteger and Var.
294 * flags.h (set_struct_debug_option, flag_print_asm_name,
295 rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
296 graph_dump_format): Don't declare here.
297 * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
298 * opts-global.c: Include dbgcnt.h and debug.h.
299 (decode_options): Pass location to finish_options.
300 (handle_common_deferred_options): Check flag_dump_all_passed.
301 Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
302 OPT_frandom_seed and OPT_frandom_seed_. Don't assert on
303 OPT_fstack_limit.
304 * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
305 (set_struct_debug_option): Add location_t parameter. Update
306 recursive call. Use error_at.
307 (default_options_optimization): Use error_at.
308 (finish_options): Add location_t parameter. Use
309 opts->x_flag_opts_finished instead of first_time_p. Use
310 opts->x_optimize instead of optimize. Use error_at. Pass
311 location to inform.
312 (print_filtered_help): Use opts->x_help_printed to track what
313 options have been printed.
314 (print_specific_help): Use opts->x_help_columns to track number of
315 columns.
316 (common_handle_option): Pass locations and gcc_options pointers to
317 more functions. Use warning_at instead of fnotice and warning.
318 Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
319 OPT_fdebug_prefix_map_. Use error_at. Set
320 opts->x_initial_max_fld_align; don't set maximum_field_alignment.
321 Don't handle OPT_frandom_seed or OPT_frandom_seed_. Don't handle
322 OPT_fsched_verbose_.
323 (handle_param): Add location_r parameter. Use error_at.
324 (set_debug_level): Add location_r parameter. Use error_at and
325 warning_at.
326 (setup_core_dumping): Add diagnostic_context parameter.
327 (decode_d_option): Add gcc_options, location_t and
328 diagnostic_context parameters and use them instead of global
329 state. Use warning_at.
330 (enable_warning_as_error): Use error_at.
331 * opts.h (finish_options): Update prototype.
332 (set_struct_debug_option): Declare here.
333 * rtl.h (fix_sched_param): Remove.
334 * stor-layout.c (initial_max_fld_align): Remove.
335 * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
336 graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
337 (process_options): Set maximum_field_alignment.
338 * tree.h (initial_max_fld_align) Don't declare here.
339 * Makefile.in (opts.o, opts-global.o): Update dependencies.
340
341 2010-11-23 Joseph Myers <joseph@codesourcery.com>
342
343 * flag-types.h (struct visibility_flags): Don't declare here.
344 * flags.h (strip_off_ending, fast_math_flags_set_p,
345 fast_math_flags_struct_set_p): Declare here.
346 (visibility_options): Don't declare here.
347 * opts-common.c (option_enabled, get_option_state): Move from
348 opts.c.
349 * opts-global.c: Include diagnostic.h instead of
350 diagnostic-core.h. Include tree.h, langhooks.h, lto-streamer.h
351 and toplev.h.
352 (const_char_p, ignored_options, in_fnames, num_in_fnames,
353 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
354 print_ignored_options, unknown_option_callback,
355 post_handling_callback, lang_handle_option, add_input_filename,
356 read_cmdline_options, initial_lang_mask, init_options_once,
357 decode_cmdline_options_to_array_default_mask,
358 set_default_handlers, decode_options): Move from opts.c.
359 (print_ignored_options): Use warning_at instead of saving and
360 restoring input_location.
361 * opts.c: Include <signal.h> and <sys/resource.h>. Include rtl.h
362 instead of expr.h. Don't include langhooks.h, except.h or
363 lto-streamer.h. Add more comments on includes.
364 (strip_off_ending, setup_core_dumping, decode_d_option): Move from
365 toplev.c.
366 (visibility_options): Move to c-family/c-common.c.
367 (const_char_p, ignored_options, in_fnames, num_in_fnames,
368 write_langs, complain_wrong_lang, postpone_unknown_option_warning,
369 print_ignored_options, unknown_option_callback,
370 post_handling_callback, lang_handle_option, add_input_filename,
371 read_cmdline_options, initial_lang_mask, init_options_once,
372 decode_cmdline_options_to_array_default_mask,
373 set_default_handlers, decode_options): Move to opts-global.c.
374 (target_handle_option, default_options_optimization,
375 finish_options, common_handle_option): Remove static.
376 (option_enabled, get_option_state): Move to opts-common.c.
377 * opts.h (common_handle_option, target_handle_option,
378 finish_options, default_options_optimization): Declare.
379 * toplev.c: Don't include <signal.h> or <sys/resource.h>.
380 (setup_core_dumping, strip_off_ending, decode_d_option): Move to
381 opts.c.
382 * toplev.h (strip_off_ending, decode_d_option,
383 fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
384 declare here.
385 * Makefile.in (opts.o, opts-global.o): Update dependencies.
386
387 2010-11-23 Dave Korn <dave.korn.cygwin@gmail.com>
388
389 PR driver/42690
390 * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
391 options, replace by call of pass-through-libs spec function to process
392 link_gcc_c_sequence spec.
393 (lto_libgcc_spec): Delete variable.
394 (static_specs[]): Remove related entry.
395 (static_spec_functions[]): Add new entry for pass-through-libs.
396 (main): Don't generate deleted lto_libgcc_spec.
397 (pass_through_libs_spec_func): New function to implement the new
398 pass-through-libs spec function.
399 * doc/invoke.texi (pass-through-libs): Document new spec function.
400
401 2010-11-23 Joseph Myers <joseph@codesourcery.com>
402
403 * doc/options.texi (Warning, Optimization): Document.
404
405 2010-11-23 Jan Hubicka <jh@suse.cz>
406
407 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
408 (tree_decl_with_vis): Add implicit_section_name_p.
409 * targhooks.h (default_function_section): Declare.
410 * target.def (function_section): New hook.
411 * defaults.h (HOT_TEXT_SECTION_NAME,
412 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
413 * predict.c (choose_function_section): Remove.
414 (estimate_bb_frequencies): Do not use choose_function_section.
415 * coretypes.h (enum node_frequency): Move here from cgraph.h
416 * cgraph.h (enum node_frequency): Remove.
417 * varasm.c (initialize_cold_section_name, unlikely_text_section,
418 unlikely_text_section_p): Remove.
419 (named_subsection_entry): New structure.
420 (get_text_section): New function.
421 (default_function_section): New function.
422 (function_section_1): Break out from ...; handle profile info.
423 (function_section): ... here.
424 (unlikely_text_section): Remove.
425 (unlikely_text_section_p): Use function_section_1.
426 (assemble_start_function): Do not initialize cold section.
427 (default_section_type_flags): Do not special case cold subsection.
428 (switch_to_section): Likewise.
429 * output.h (get_text_section): Define.
430 * config/i386/winnt.c: Do not special case cold section.
431 * config/darwin-protos.h (darwin_function_section): Declare.
432 * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
433 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
434 * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
435 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
436 (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
437 * config/ia64/ia64.c (ia64_hpux_function_section): New function.
438 * config/darwin.c (machopic_select_section): Use
439 darwin_function_section.
440 (darwin_function_section): New function.
441 * config/darwin.h (HOT_TEXT_SECTION_NAME,
442 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
443 (TARGET_ASM_FUNCTION_SECTION): Define.
444 * system.h (HOT_TEXT_SECTION_NAME,
445 UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
446
447 2010-11-23 Iain Sandoe <iains@gcc.gnu.org>
448
449 * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
450 LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
451
452 2010-11-23 Jakub Jelinek <jakub@redhat.com>
453
454 PR middle-end/46499
455 * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
456 following unconditional jumps.
457
458 2010-11-23 Richard Guenther <rguenther@suse.de>
459
460 * doc/md.texi (386 constraints): Clarify A constraint documentation.
461
462 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
463 Jeremie Salvucci <jeremie.salvucci@free.fr>
464
465 * gengtype.c (enum typekind, struct options)
466 (struct nested_ptr_data, struct pair, NUM_PARAM)
467 (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
468 Move to gengtype.h.
469 (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
470 Remove static, add zero state_number.
471 (typedefs, structures, param_structs, variables): Remove static.
472 (create_option): Remove.
473 (create_string_option, create_type_option, create_nested_option):
474 New functions.
475 (create_nested_ptr_option): Use create_nested_option.
476 (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
477 new create*option functions.
478 (process_gc_options): Adjust for discriminated option.
479 (output_mangled_typename): Handle TYPE_NONE.
480 (walk_type): Test option kinds.
481 (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
482 (write_func_for_structure, write_type, write_local, write_root)
483 (write_roots, note_def_vec, dump_options): Adjust for
484 discriminated option.
485
486 * gengtype.h
487 (typedefs, structures, param_structs, variables, enum typekind):
488 Move from gengtype.c
489 (enum option_kind): New discriminating enumeration.
490 (struct options): Becomes discriminated.
491 (struct nested_ptr_data): Nove from gengtype.c
492 (create_string_option, create_type_option, create_nested_option)
493 (create_nested_ptr_option): New functions
494 (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
495 (UNION_OR_STRUCT_P): Move from gengtype.c
496
497 * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
498 discriminated options.
499
500 2010-11-23 Richard Guenther <rguenther@suse.de>
501
502 * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
503 twice. Avoid re-allocating the ops vector all the time.
504
505 2010-11-23 Richard Guenther <rguenther@suse.de>
506
507 * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
508 is_gimple_min_invariant, group tree code checks to allow
509 combining them.
510 (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
511 of is_gimple_reg.
512
513 2010-11-23 Eric Botcazou <ebotcazou@adacore.com>
514
515 * config.gcc (sparc*-*-*): Reorder.
516
517 2010-11-23 Basile Starynkevitch <basile@starynkevitch.net>
518
519 * gengtype.c (header_dot_h_frul, source_dot_c_frul):
520 Remove ENABLE_CHECKING around DBGPRINTF.
521
522 2010-11-22 Joseph Myers <joseph@codesourcery.com>
523
524 * common.opt (exit_after_options, write_symbols, debug_info_level,
525 use_gnu_debug_info_extensions): New Variable entries.
526 (fprofile-dir=): Use Var.
527 * flag-types.h (enum debug_info_level): Rename to enum
528 debug_info_levels.
529 * flags.h (write_symbols, debug_info_level,
530 use_gnu_debug_info_extensions): Remove declarations.
531 * opts.c (exit_after_options, write_symbols, debug_info_level):
532 Remove.
533 (set_struct_debug_option): Make static variables const.
534 (use_gnu_debug_info_extensions): Remove.
535 (set_debug_level, print_filtered_help, print_specific_help,
536 fast_math_flags_set_p): Take gcc_options parameters and use them
537 in place of global variables.
538 (print_filtered_help): Make new_help non-static.
539 (print_specific_help): Update call to print_filtered_help.
540 (common_handle_option): Update calls to print_specific_help. Use
541 gcc_options structure for more settings. Make --help table
542 const. Don't handle OPT_fprofile_dir_ here. Update calls to
543 set_debug_level.
544 * toplev.c (profile_data_prefix): Remove.
545 * toplev.h (profile_data_prefix, exit_after_options): Remove
546 declarations.
547 (fast_math_flags_set_p): Update prototype.
548 * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
549 Update call to fast_math_flags_set_p.
550
551 2010-11-22 Richard Henderson <rth@redhat.com>
552
553 PR target/46434
554 * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
555 return the address register extracted.
556 (crx_decompose_address): Update the extracted address register.
557
558 2010-11-22 Dmitry Gorbachev <d.g.gorbachev@gmail.com>
559
560 PR driver/43335
561 * gcc.c (main): Don't crash when lto-wrapper program is not found.
562
563 2010-11-22 Joern Rennecke <amylaar@spamcop.net>
564
565 PR target/46608
566 * config/picochip/picochip.c (picochip_secondary_reload): Make static.
567 * config/picochip/picochip-protos.h: Don't include "target.h" .
568 (picochip_secondary_reload): Don't declare.
569
570 PR target/46613
571 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
572 * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
573 static.
574
575 2010-11-22 H.J. Lu <hongjiu.lu@intel.com>
576
577 PR bootstrap/46609
578 * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
579 (source_dot_c_frul): Likewise.
580
581 2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
582
583 * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
584
585 2010-11-22 Paolo Bonzini <bonzini@gnu.org>
586
587 PR bootstrap/44970
588 * Makefile.in (fwprop.o) Add sparseset.h.
589 * fwprop.c: Include sparseset.h
590 (struct find_occurrence_data, find_occurrence_callback,
591 find_occurrence): Remove.
592 (active_defs, active_defs_check, register_active_defs,
593 update_df_init, update_uses): New.
594 (update_df): Rewrite.
595 (try_fwprop_subst, forward_propagate_asm): Add calls to
596 update_df_init and update_df.
597 (fwprop_init): Allocate active_defs and active_defs_check.
598 (fwprop_done): Free them.
599 (fwprop, fwprop_addr): Adjust comments.
600 * df.h (df_uses_create): Declare.
601 * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
602 (df_ref_create): Return result of df_ref_create_structure directly.
603 (df_ref_create_structure): Call df_install_ref_incremental when
604 no collection_rec is passed.
605 (df_ref_record): Do not create multiword hard reg info when no
606 collection_rec is passed.
607 (df_uses_create): New.
608
609 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
610
611 PR middle-end/43057
612 * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
613 setting location.
614
615 2010-11-22 Richard Guenther <rguenther@suse.de>
616
617 * gimple-fold.c (maybe_fold_reference): When canonicalizing
618 MEM_REFs, preserve volatileness.
619 * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
620 addresses.
621
622 2010-11-22 Richard Guenther <rguenther@suse.de>
623
624 * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
625
626 2010-11-22 Alexander Monakov <amonakov@ispras.ru>
627
628 PR rtl-optimization/45652
629 * alias.c (get_reg_base_value): New.
630 * rtl.h (get_reg_base_value): Add prototype.
631 * sel-sched.c (init_regs_for_mode): Use it. Don't use registers with
632 non-null REG_BASE_VALUE for renaming.
633
634 2010-11-22 Jeremie Salvucci <jeremie.salvucci@free.fr>
635 Basile Starynkevitch <basile@starynkevitch.net>
636
637 * gengtype.c: Include xregex.h and obstack.h
638 Added comments about role of get_output_file_with_visibility and
639 our regexpr machinery.
640 (frul_actionrout_t, struct file_rule_st): New.
641 (hader_dot_h_frul, source_dot_c_frul): New functions.
642 (NULL_REGEX, NULL_FRULACT): New.
643 (files_rules): New.
644 (matching_file_name_substitute): New function.
645 (get_output_file_with_visibility): Updated comments and rewritten
646 to use the new files_rules machinery.
647
648 * Makefile.in (XREGEX_H): Added variable.
649 (build/gengtype.o): Added dependencies for xregex.h and obstack.h
650
651 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
652
653 * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
654
655 2010-11-21 Nathan Froyd <froydnj@codesourcery.com>
656
657 * target.def (conditional_register_usage): Define.
658 * reginfo.c (init_reg_sets_1): Call
659 targetm.conditional_register_usage.
660 * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
661 * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
662 for making it a hook.
663 * doc/tm.texi: Regenerate.
664 * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
665 * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
666 New function.
667 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
668 * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
669 * config/arc/arc.c (arc_conditional_register_usage): ...here.
670 New function.
671 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
672 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
673 * config/arm/arm.c (arm_conditional_register_usage): ...here.
674 New function.
675 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
676 * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
677 * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
678 * config/bfin/bfin.c (conditional_register_usage): Move code into...
679 (bfin_conditional_register_usage): ...here. New function.
680 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
681 * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
682 * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
683 * config/cris/cris.c (cris_conditional_register_usage): Make static.
684 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
685 * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
686 * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
687 * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
688 * config/frv/frv.c (frv_conditional_register_usage): Make static.
689 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
690 * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
691 * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
692 New function.
693 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
694 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
695 * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
696 * config/i386/i386.c (ix86_conditional_register_usage): Make static.
697 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
698 * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
699 * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
700 * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
701 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
702 * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
703 * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
704 New function.
705 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
706 * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
707 * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
708 Delete.
709 * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
710 static.
711 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
712 * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
713 * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
714 * config/mep/mep.c (mep_conditional_register_usage): Make static.
715 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
716 * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
717 * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
718 * config/mips/mips.c (mips_conditional_register_usage): Make static.
719 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
720 * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
721 * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
722 * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
723 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
724 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
725 * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
726 ...here. New function.
727 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
728 * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
729 * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
730 * config/pa/pa.c (pa_conditional_register_usage): ...here.
731 New function.
732 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
733 * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
734 * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
735 New function.
736 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
737 * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
738 * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
739 Delete.
740 * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
741 static.
742 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
743 * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
744 * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
745 * config/rx/rx.c (rx_conditional_register_usage): Make static.
746 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
747 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
748 * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
749 * config/s390/s390.c (s390_conditional_register_usage): Make static.
750 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
751 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
752 * config/score/score.c (score_conditional_register_usage): ...here.
753 New function.
754 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
755 * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
756 * config/sh/sh.c (sh_conditional_register_usage): ...here.
757 New function.
758 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
759 * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
760 * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
761 New function.
762 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
763 * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
764 * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
765 * config/spu/spu.c (spu_conditional_register_usage): Make static.
766 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
767 * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
768 * config/v850/v850.c (v850_conditional_register_usage): ...here.
769 New function.
770 (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
771
772 2010-11-21 Jan Hubicka <jh@suse.cz>
773 Dominique d'Humieres <dominiq@lps.ens.ft>
774
775 PR target/46510
776 * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
777 finalize external decls.
778
779 2010-11-21 Joseph Myers <joseph@codesourcery.com>
780
781 * system.h (strerror): Poison.
782
783 2010-11-21 Richard Henderson <rth@redhat.com>
784
785 * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
786 for infq/huge_valq.
787
788 2010-11-21 Richard Henderson <rth@redhat.com>
789
790 PR rtl-optimization/46571
791 * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
792 (compute_hash_table_work): Use NONDEBUG_INSN_P.
793
794 2010-11-21 Paul Koning <ni1d@arrl.net>
795
796 * config/mips/pdp11.md (negsi2): Fix wrong code.
797
798 2010-11-21 Paul Koning <ni1d@arrl.net>
799
800 * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
801 * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
802
803 2010-11-21 Eric Botcazou <ebotcazou@adacore.com>
804
805 * config/mips/mips.c (machine_function): Rename load_label_length to
806 load_label_num_insns.
807 (mips_load_label_length): Rename to...
808 (mips_load_label_num_insns): ...this. Adjust to first renaming.
809 (mips_adjust_insn_length): Adjust to second renaming. Fix thinko.
810
811 2010-11-21 Uros Bizjak <ubizjak@gmail.com>
812
813 PR target/46533
814 * config/alpha/predicates.md (direct_call_operand): Return false
815 for !TARGET_SMALL_TEXT targets.
816
817 2010-11-20 Joseph Myers <joseph@codesourcery.com>
818
819 * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
820 HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
821 (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
822 * doc/tm.texi: Regenerate.
823 * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
824 HANDLE_PRAGMA_WEAK): Poison.
825 * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
826 * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
827 * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
828 * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
829 * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
830 * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
831 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
832 * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
833 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
834 * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
835 * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
836 * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
837 * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
838 * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
839 * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
840 (HANDLE_PRAGMA_WEAK): Don't undefine.
841 * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
842 * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
843 * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
844 * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
845 * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
846 (HANDLE_PRAGMA_WEAK): Don't undefine.
847 * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
848 * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
849 (HANDLE_PRAGMA_PACK): Don't undefine.
850 * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
851 * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
852 * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
853 * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
854 * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
855 * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
856 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
857 * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
858 * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
859 (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
860 * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
861 * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
862 * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
863 * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
864 * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
865 * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
866 * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
867
868 2010-11-20 Eric Botcazou <ebotcazou@adacore.com>
869
870 PR target/31100
871 * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
872 * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
873 * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
874
875 2010-11-20 Jan Hubicka <jh@suse.cz>
876
877 * cgraph.c (ld_plugin_symbol_resolution_names): New.
878 (dump_cgraph_node): Dump resolution.
879 * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
880 (cgraph_comdat_can_be_unshared_p): Dclare.
881 * lto-streamer-out.c (produce_symtab): Use
882 cgraph_comdat_can_be_unshared_p.
883 * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
884 (cgraph_comdat_can_be_unshared_p): New function based on logic
885 in cgraph_externally_visible_p.
886 (cgraph_externally_visible_p): Use it.
887 (varpool_externally_visible_p): Virtual tables can be unshared.
888 * varpool.c (dump_varpool_node): Dump resolution.
889
890 2010-11-20 Jan Hubicka <jh@suse.cz>
891
892 * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
893
894 2010-11-20 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
895
896 PR other/46202
897 * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
898 (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
899 shell quoting.
900 (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
901 (install-strip): New target.
902 (STRIPPROG): New variable, exported if STRIP is set.
903 * doc/install.texi (Final install): Minor markup and code style
904 fixes. Document install-strip target.
905
906 2010-11-20 Paul Koning <ni1d@arrl.net>
907
908 * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
909 pdp11_regno_reg_class): New functions.
910 * config/pdp11/pdp11.md (define_constants): Add register numbers.
911 * config/pdp11/pdp11.c (pdp11_regno_reg_class,
912 pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
913 functions.
914 * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
915 frame pointer and argument pointer pseudo-registers.
916 (ARG_POINTER_REGNUM): Define.
917 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
918 argument pointer.
919 (FIRST_PARM_OFFSET): Update for argument pointer.
920 (INITIAL_FRAME_POINTER_OFFSET): Delete.
921 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
922 (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
923 frame pointer and argument pointer.
924
925 2010-11-20 Jakub Jelinek <jakub@redhat.com>
926
927 PR debug/46561
928 * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
929 when looking for immediate uses.
930
931 PR tree-optimization/45830
932 * stmt.c (expand_switch_using_bit_tests_p): New function.
933 (expand_case): Use it.
934 * tree.h (expand_switch_using_bit_tests_p): New prototype.
935 * tree-switch-conversion.c (struct switch_conv_info): Add
936 bit_test_uniq, bit_test_count and bit_test_bb fields.
937 (check_range): Fix a comment.
938 (check_process_case): Compute bit_test_uniq and bit_test_count.
939 (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
940 allocation.
941 (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
942 (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
943 (array_value_type): New function.
944 (build_one_array): Use it, if it returned different type,
945 fold_convert all constructor fields and convert back to the
946 wider type in the generated code.
947 (process_switch): Initialize bit_test_uniq, bit_test_count and
948 bit_test_bb fields. Don't optimize if expand_switch_using_bit_tests_p
949 returned true.
950
951 2010-11-19 Michael Matz <matz@suse.de>
952
953 PR tree-optimization/46077
954 * tree-chrec.c (eq_evolutions_p): Accept some expressions.
955
956 2010-11-19 Anatoly Sokolov <aesok@post.ru>
957
958 * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
959 * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
960 function.
961 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
962
963 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
964
965 * mode-switching.c (optimize_mode_switching): Use
966 FOR_BB_INSNS instead of open-coded loop.
967 * cfgrtl.c (redirect_branch_edge): Ditto.
968
969 2010-11-19 Joern Rennecke <amylaar@spamcop.net>
970
971 PR target/46436
972 * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
973 to accomodate 32 bit HOST_WIDE_INT.
974 (m68hc11_emit_logical): Remove unused variable insn.
975 (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
976 this_insn_uses_iy before use.
977
978 PR target/46434
979 * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
980
981 2010-11-19 Joseph Myers <joseph@codesourcery.com>
982
983 PR c/46547
984 * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
985 * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
986
987 2010-11-19 Michael Meissner <meissner@linux.vnet.ibm.com>
988
989 * doc/extend.texi (Function attributes): Document PowerPC target
990 attributes that are supported.
991 (Pragmas): Document that PowerPC now supports target pragmas.
992
993 * doc/options.texi (TargetVariable): Document TargetVariable,
994 HeaderInclude, and SourceInclude.
995
996 * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
997 mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
998 -ffp-contract=off.
999
1000 * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
1001 SourceInclude directives. Fix a cut+paste error with target save
1002 enum variables. Sort enums in the structures after ints and
1003 before shorts.
1004 * opth-gen.awk: Ditto.
1005
1006 * configure.ac: Add support for HeaderInclude and SourceInclude option
1007 directives to add the appropriate files to the dependency lists.
1008 * configure: Regenerate.
1009 * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
1010 (OPTIONS_C_EXTRA): New variable for SourceInclude.
1011 (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
1012 (options.o): Add $(OPTIONS_C_EXTRA) dependency.
1013 (gcc-options.o): Ditto.
1014 * opt-include.awk: New awk script to handle HeaderInclude and
1015 TargetInclude.
1016
1017 * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
1018 gets saved in the target options.
1019 * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
1020 * config/rs6000/sysv4.opt (-mbit-align): Ditto.
1021 (-mprototype): Ditto.
1022 (-mbit-word): ditto.
1023 (-mregnames): Ditto.
1024 (-msecure-plt): Ditto.
1025 (-mbss-plt): Ditto.
1026 * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
1027 (-mpowerpc-gfxopt): Ditto.
1028 (-mmfcrf): Ditto.
1029 (-mpopcntb): Ditto.
1030 (-mfprnd): Ditto.
1031 (-mcmpb): Ditto.
1032 (-mmmfpgpr): Ditto.
1033 (-maltivec): Ditto.
1034 (-mhard-dfp): Ditto.
1035 (-mmulhw): Ditto.
1036 (-mdlmzb): Ditto.
1037 (-mmultiple): Ditto.
1038 (-mstring): Ditto.
1039 (-mpopcntd): Ditto.
1040 (-mfriz): Ditto.
1041 (-mvsx): Ditto.
1042 (-mno-update): Ditto.
1043 (-mavoid-indexed-addresses): Ditto.
1044 (-mtls-markers): Ditto.
1045 (-msched-epilog): Ditto.
1046 (-msched-prolog): Ditto.
1047 (-maix-struct-return): Ditto.
1048 (-msvr4-struct-return): Ditto.
1049 (-mxl-compat): Ditto.
1050 (-mrecip-precision): Ditto.
1051 (-mfp-in-toc): Ditto.
1052 (-msum-in-toc): Ditto.
1053 (-mvrsave): Ditto.
1054 (-mblock-move-inline-limit=): Ditto.
1055 (-misel): Ditto.
1056 (-mpaired): Ditto.
1057 (-mlongcall): Ditto.
1058 (-mgen-cell-microcode): Ditto.
1059 (-mwarn-cell-microcode): Ditto.
1060 (-mwarn-altivec-long): Ditto.
1061 (-mprioritize-restricted-insns=): Ditto.
1062 (-msingle-float): Ditto.
1063 (-mdouble-float): Ditto.
1064 (-msimple-fpu): Ditto.
1065 (-mxilinx-fpu): Ditto.
1066 * config/rs6000/aix64.opt (-mpe): Ditto.
1067
1068 * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
1069 (rs6000_cpu): Move variable to be a target variable. Rename
1070 cmodel to rs6000_current_cmodel because of macro conflict. Merge
1071 -mdebug=<xxx> variables into a single int.
1072 (rs6000_always_hint): Ditto.
1073 (rs6000_sched_groups): Ditto.
1074 (rs6000_align_branch_targets): Ditto.
1075 (rs6000_sched_costly_dep): Ditto.
1076 (rs6000_sched_insert_nops): Ditto.
1077 (rs6000_long_double_type_size): Ditto.
1078 (rs6000_ieeequad): Ditto.
1079 (rs6000_altivec_abi): Ditto.
1080 (rs6000_spe): Ditto.
1081 (rs6000_spe_abi): Ditto.
1082 (rs6000_float_gprs): Ditto.
1083 (rs6000_darwin64_abi): Ditto.
1084 (can_override_loop_align): Ditto.
1085 (rs6000_sdata): Ditto.
1086 (rs6000_tls_size): Ditto.
1087 (rs6000_current_abi): Ditto.
1088 (rs6000_traceback): Ditto.
1089 (rs6000_alignment_flags): Ditto.
1090 (rs6000_current_cmodel): Ditto.
1091 (rs6000_recip_control): Ditto.
1092 (rs6000_cpu_index): Ditto.
1093 (rs6000_tune_index): Ditto.
1094 (rs6000_debug): Ditto.
1095 (rs6000_target_flags_explict): Ditto.
1096
1097 * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
1098 declaration.
1099
1100 * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
1101 cmodel. Change all uses.
1102
1103 * config/rs6000/rs6000.c (rs6000_always_hint): Move to
1104 rs6000.opt. Combine -mdebug=<xxx> variables into a single int.
1105 Rename cmodel to rs6000_current_cmodel.
1106 (rs6000_sched_groups): Ditto.
1107 (rs6000_align_branch_targets): Ditto.
1108 (rs6000_sched_costly_dep): Ditto.
1109 (rs6000_sched_insert_nops): Ditto.
1110 (rs6000_long_double_type_size): Ditto.
1111 (rs6000_ieeequad): Ditto.
1112 (rs6000_altivec_abi): Ditto.
1113 (rs6000_spe): Ditto.
1114 (rs6000_spe_abi): Ditto.
1115 (rs6000_float_gprs): Ditto.
1116 (rs6000_darwin64_abi): Ditto.
1117 (can_override_loop_align): Ditto.
1118 (rs6000_sdata): Ditto.
1119 (rs6000_tls_size): Ditto.
1120 (rs6000_current_abi): Ditto.
1121 (rs6000_traceback): Ditto.
1122 (rs6000_alignment_flags): Ditto.
1123 (rs6000_current_cmodel): Ditto.
1124 (rs6000_recip_control): Ditto.
1125 (rs6000_cpu_index): Ditto.
1126 (rs6000_tune_index): Ditto.
1127 (rs6000_debug): Ditto.
1128 (rs6000_target_flags_explict): Ditto.
1129 (rs6000_sched_insert_nops_str): Make static.
1130 (rs6000_sched_costly_dep_str): Ditto.
1131 (rs6000_recip_name): Ditto.
1132 (rs6000_abi_name): Ditto.
1133 (rs6000_sdata_name): Ditto.
1134 (enum rs6000_traceback_name): Move to rs6000-opts.h.
1135 (rs6000_parse_tls_size_option): Delete.
1136 (rs6000_valid_attribute_p): New function for target attributes and
1137 pragmas.
1138 (rs6000_function_specific_save): Ditto.
1139 (rs6000_function_specific_restore): Ditto.
1140 (rs6000_function_specific_print): Ditto.
1141 (rs6000_can_inline_p): Ditto.
1142 (rs6000_set_current_function): Ditto.
1143 (rs6000_inner_target_options): Ditto.
1144 (rs6000_debug_target_options): Ditto.
1145 (rs6000_pragma_target_parse): Ditto.
1146 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
1147 attributes and pragmas.
1148 (TARGET_OPTION_SAVE): Ditto.
1149 (TARGET_OPTION_RESTORE): Ditto.
1150 (TARGET_OPTION_PRINT): Ditto.
1151 (TARGET_CAN_INLINE_P): Ditto.
1152 (TARGET_SET_CURRENT_FUNCTION): Ditto.
1153 (POWER_MASKS): Move to file level scope from the
1154 rs6000_option_override_internal function.
1155 (POWERPC_MASKS): Ditto.
1156 (ISA_*_MASKS): Ditto.
1157 (struct rs6000_ptt): Ditto.
1158 (processor_target_table): Ditto.
1159 (rs6000_cpu_name_lookup): Map cpu name to an index in
1160 processor_target_table.
1161 (rs6000_debug_reg_global): Print more information on processor
1162 options for -mdebug=reg.
1163 (rs6000_init_hard_regno_mode_ok): Add support for target
1164 attributes and pragmas. Merge all -mdebug=<xxx> fields into one.
1165 Allow -mdebug=val1,val2. Rename cmodel variable.
1166 (rs6000_option_override_internal): Ditto.
1167 (rs6000_option_override): Ditto.
1168 (rs6000_handle_option): Ditto.
1169 (rs6000_conditional_register_usage): Add debug trace message.
1170 (struct rs6000_opt_mask): New for target attribute/pragma support.
1171 (rs6000_opt_masks): Ditto.
1172 (struct rs6000_opt_var): Ditto.
1173 (rs6000_opt_vars): Ditto.
1174 (rs6000_previous_function): Ditto.
1175
1176 * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
1177 wasn't already included.
1178 (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
1179 (enum processor_type): Ditto.
1180 (rs6000_cpu): Ditto.
1181 (enum fpu_type_t): Ditto.
1182 (fpu_type): Ditto.
1183 (enum rs6000_dependence_cost): Ditto.
1184 (enum rs6000_nop_insertion): Ditto.
1185 (enum group_termination): Ditto.
1186 (rs6000_long_double_type_size): Ditto.
1187 (rs6000_ieeequad): Ditto.
1188 (rs6000_altivec_abi): Ditto.
1189 (rs6000_spe_abi): Ditto.
1190 (rs6000_spe): Ditto.
1191 (rs6000_float_gprs): Ditto.
1192 (rs6000_alignment_flags): Ditto.
1193 (rs6000_sched_insert_nops): Ditto.
1194 (enum rs6000_vector): Ditto.
1195 (enum rs6000_abi): Ditto.
1196 (rs6000_current_opt): Ditto.
1197 (rs6000_debug_*): Delete.
1198 (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
1199 (TARGET_DEBUG*): Ditto.
1200
1201 * config/rs6000/rs6000-opts.h: New header file to define the enums
1202 that are used in target variables that are now defined in rs6000.opt.
1203
1204 * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
1205 rs6000-opts.h.
1206 (rs6000_sdata): Ditto.
1207 (rs6000_abi_name): Delete.
1208 (rs6000_sdata_name): Ditto.
1209 (rs6000_tls_size_string): Ditto.
1210
1211 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1212
1213 * common.opt (debug_struct_ordinary, debug_struct_generic): New
1214 Variable entries.
1215 * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
1216 should_emit_struct_debug): Move from opts.c.
1217 * flag-types.h (enum debug_struct_file): Move from opts.c.
1218 * flags.h (should_emit_struct_debug): Remove.
1219 (base_of_path): Declare.
1220 (set_struct_debug_option): Add gcc_options parameter.
1221 * optc-gen.awk, opth-gen.awk: Handle array variables.
1222 * opts.c (enum debug_struct_file, debug_struct_ordinary,
1223 debug_struct_generic): Remove.
1224 (set_struct_debug_option): Add gcc_options parameter.
1225 (base_of_path): Remove static.
1226 (main_input_basename, main_input_baselength, matches_main_base,
1227 dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
1228 Remove.
1229 * toplev.c (main_input_basename, main_input_baselength): Define
1230 here.
1231 * toplev.h (main_input_basename, main_input_baselength): Declare
1232 here.
1233
1234 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1235
1236 * common.opt (flag_instrument_functions_exclude_functions,
1237 flag_instrument_functions_exclude_files): New Variable definitions.
1238 * flags.h (flag_instrument_functions_exclude_p): Don't declare.
1239 * gimplify.c (char_p): Declare type and vectors.
1240 (flag_instrument_functions_exclude_p): Moved from opts.c. Make static.
1241 * opts.c (flag_instrument_functions_exclude_functions,
1242 flag_instrument_functions_exclude_files): Remove.
1243 (add_comma_separated_to_vector): Take void **.
1244 (flag_instrument_functions_exclude_p): Move to gimplify.c.
1245 (common_handle_option): Use options structure for
1246 -finstrument-functions-exclude- options.
1247
1248 2010-11-19 Joseph Myers <joseph@codesourcery.com>
1249
1250 * doc/options.texi (Var): Document effects of Defer.
1251 (Defer): Document.
1252 * opt-functions.awk (var_type, var_set): Handle deferred options.
1253 * opts-common.c (set_option): Handle CLVC_DEFER.
1254 * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
1255 fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
1256 fstack-limit-symbol=): Mark as deferred.
1257 * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
1258 plugin.h.
1259 (print_filtered_help): Don't report state of CLVC_DEFER options.
1260 (common_handle_option): Move code for OPT_fcall_used_,
1261 OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
1262 OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
1263 OPT_fstack_limit_symbol_ to opts-global.c.
1264 (option_enabled, get_option_state): Handle CLVC_DEFER.
1265 * opts.h: Include vec.h.
1266 (enum cl_var_type): Add CLVC_DEFER.
1267 (cl_deferred_option): Define type and vectors.
1268 (handle_common_deferred_options): Declare.
1269 * opts-global.c: New.
1270 * toplev.c (toplev_main): Call handle_common_deferred_options
1271 * Makefile.in (OPTS_H): Include $(VEC_H).
1272 (OBJS-common): Include opts-global.o.
1273 (opts.o): Update dependencies.
1274 (opts-global.o): Add dependencies.
1275
1276 2010-11-19 Nicola Pero <nicola.pero@meta-innovation.com>
1277
1278 * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
1279 to objc_declare_protocols.
1280
1281 2010-11-19 Richard Guenther <rguenther@suse.de>
1282
1283 PR lto/45789
1284 * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
1285 IDENTIFIERs do not stream TREE_TYPE.
1286 * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
1287
1288 2010-11-19 Christian Borntraeger <borntraeger@de.ibm.com>
1289
1290 * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
1291
1292 2010-11-19 Jakub Jelinek <jakub@redhat.com>
1293
1294 PR target/45870
1295 * dwarf2out.c (const_ok_for_output_1): Don't complain about
1296 non-delegitimized TLS UNSPECs.
1297
1298 2010-11-18 Jack Howarth <howarth@bromo.med.uc.edu>
1299 Ian Lance Taylor <iant@google.com>
1300
1301 * config/darwin-c.c (darwin_additional_format_types): Export.
1302
1303 2010-11-18 Paul Koning <ni1d@arrl.net>
1304
1305 * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
1306 pointer.
1307
1308 2010-11-18 Paul Koning <ni1d@arrl.net>
1309
1310 * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
1311 * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
1312 * config/pdp11/pdp11.opt (-mabshi): Delete.
1313
1314 2010-11-19 Mingjie Xing <mingjie.xing@gmail.com>
1315
1316 * resource.h (struct resources): Fix typo in the comment.
1317
1318 2010-11-19 Uros Bizjak <ubizjak@gmail.com>
1319
1320 PR target/46546
1321 * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
1322
1323 2010-11-18 Richard Henderson <rth@redhat.com>
1324
1325 PR middle-end/46515
1326 * function.c (maybe_copy_prologue_epilogue_insn): Rename from
1327 maybe_copy_epilogue_insn; handle prologue insns as well.
1328 * rtl.h, cfglayout.c: Update for rename.
1329 * recog.c (peep2_attempt): Copy prologue/epilogue data for
1330 RTX_FRAME_RELATED_P insns.
1331
1332 2010-11-18 Jakub Jelinek <jakub@redhat.com>
1333
1334 PR middle-end/46534
1335 * builtins.c (fold_builtin_printf): Don't copy and modify string
1336 before build_string_literal, instead modify what
1337 build_string_literal returned.
1338
1339 2010-11-18 Nathan Froyd <froydnj@codesourcery.com>
1340
1341 PR c/33193
1342 * c-typeck.c (build_unary_op): Call build_real_imag_expr for
1343 REALPART_EXPR and IMAGPART_EXPR.
1344
1345 2010-11-18 Richard Guenther <rguenther@suse.de>
1346
1347 PR tree-optimization/46172
1348 * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
1349 function.
1350 (slpeel_tree_peel_loop_to_edge): Call it.
1351
1352 2010-11-18 Jeff Law <law@redhat.com>
1353
1354 PR middle-end-optimization/46297
1355 * postreload.c (reload_combine_note_store): Deal with embedded
1356 side effects in MEM expressions.
1357
1358 2010-11-18 Richard Guenther <rguenther@suse.de>
1359
1360 PR lto/45089
1361 * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
1362 when checking is not enabled.
1363
1364 2010-11-18 Richard Guenther <rguenther@suse.de>
1365
1366 PR lto/46525
1367 * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
1368 type leaders.
1369 (gimple_register_canonical_type): Also cache the canoncial type
1370 for non type leaders.
1371
1372 2010-11-18 Richard Guenther <rguenther@suse.de>
1373
1374 * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
1375
1376 2010-11-18 Alexander Monakov <amonakov@ispras.ru>
1377
1378 PR middle-end/46518
1379 * sel-sched-ir.c (init_expr): Use the correct type for
1380 target_available.
1381 * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
1382
1383 2010-11-17 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
1384
1385 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
1386 as well as -mrelocatable at the same time.
1387
1388 2010-11-17 Quentin Neill <quentin.neill.gnu@gmail.com>
1389
1390 PR target/46422
1391 * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
1392 Call the clz builtin.
1393
1394 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
1395 Steve Ellcey <sje@cup.hp.com>
1396
1397 PR middle-end/31490
1398 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
1399 if section attribute used.
1400
1401 2010-11-17 Jan Hubicka <jh@suse.cz>
1402
1403 * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
1404 expand errno setting variant when optimizing for size.
1405
1406 2010-11-17 Eric Botcazou <ebotcazou@adacore.com>
1407
1408 * postreload.c (reload_combine): Call control_flow_insn_p only once.
1409 Reverse backward loop. Fix formatting issues.
1410
1411 2010-11-17 Paolo Bonzini <bonzini@gnu.org>
1412
1413 * c-parser.c (c_token_is_qualifier,
1414 c_parser_next_token_is_qualifier): New.
1415 (c_parser_declaration_or_fndef, c_parser_struct_declaration):
1416 Improve error message on specs->tagdef_seen_p.
1417 (c_parser_struct_or_union_specifier): Improve error recovery.
1418 (c_parser_declspecs): Move exit condition on C_ID_ID early.
1419 Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
1420 using c_parser_next_token_is_qualifier; extend it to cover
1421 a ctsk_tagdef typespec and !typespec_ok in general.
1422
1423 2010-11-17 Richard Guenther <rguenther@suse.de>
1424
1425 * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
1426 (gimple_mod_pow2_value_transform): Likewise.
1427 (gimple_mod_subtract_transform): Likewise.
1428
1429 2010-11-17 Richard Guenther <rguenther@suse.de>
1430
1431 PR lto/46504
1432 * gimple.c (gimple_register_canonical_type): Make sure to only
1433 make type leaders canonical types.
1434
1435 2010-11-17 Michael Matz <matz@suse.de>
1436
1437 * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
1438 TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
1439 TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
1440 TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
1441 * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
1442 (pass_build_ssa): ... but here.
1443 * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
1444 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
1445 * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
1446 * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
1447 * predict.c (rebuild_frequencies): Ditto.
1448 * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
1449 * emit-rtl.c (verify_rtl_sharing): Ditto.
1450 * tree-cfgcleanup.c (repair_loop_structures): Ditto.
1451 * tree-ssa-live.c (remove_unused_locals): Ditto.
1452 * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
1453 * tree-ssa.c (pass_early_warn_uninitialized,
1454 execute_update_addresses_taken, pass_update_address_taken): Ditto.
1455 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
1456 pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
1457 * passes.c (pass_postreload, execute_todo): Ditto.
1458 * tree-ssanames.c (pass_release_ssa_names): Ditto.
1459
1460 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1461
1462 * doc/invoke.texi (-dy): Remove.
1463 * langhooks-def.h (lhd_do_nothing_i): Don't declare.
1464 (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
1465 * langhooks.c (lhd_do_nothing_i): Remove.
1466 * langhooks.h (lang_hooks.parse_file): Take no arguments.
1467 * toplev.c (set_yydebug): Remove.
1468 (compile_file): Update call to lang_hooks.parse_file.
1469 (decode_d_option): Don't handle -dy.
1470
1471 2010-11-17 Jakub Jelinek <jakub@redhat.com>
1472
1473 PR rtl-optimization/46440
1474 * combine.c (update_cfg_for_uncondjump): When changing
1475 an indirect jump into unconditional jump, remove BARRIERs
1476 from bb's footer.
1477
1478 2010-11-17 Joseph Myers <joseph@codesourcery.com>
1479
1480 * opts.c (target_handle_option): Do not assert that loc ==
1481 UNKNOWN_LOCATION.
1482
1483 2010-11-17 Jakub Jelinek <jakub@redhat.com>
1484 Richard Guenther <rguenther@suse.de>
1485
1486 PR middle-end/45838
1487 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
1488 call_may_clobber_ref_p_1): Return true for __sync_* and some
1489 OpenMP builtins that act as threading barriers.
1490
1491 2010-11-17 Richard Guenther <rguenther@suse.de>
1492
1493 PR tree-optimization/46498
1494 * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
1495
1496 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1497
1498 * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
1499 (xtensa_function_arg_boundary): ...this.
1500 * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
1501 thinko in declaration.
1502 (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
1503 number of parameters to picochip_function_arg_boundary.
1504 (picochip_arg_advance): Likewise.
1505
1506 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1507
1508 PR target/46512
1509 * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
1510 under check for type.
1511
1512 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
1513
1514 * ifcvt.c (dead_or_predicable): Fix typo.
1515
1516 2010-11-16 Richard Henderson <rth@redhat.com>
1517
1518 * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
1519 * config/s390/s390.opt (mfused-madd): Remove.
1520 * config/s390/s390.c (s390_rtx_costs): Handle FMA.
1521 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
1522 * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
1523 (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
1524
1525 2010-11-16 Richard Henderson <rth@redhat.com>
1526
1527 * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
1528 * config/rs6000/rs6000.opt (mfused-madd): Remove.
1529 * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
1530 (*altivec_vmaddfp_1): Remove.
1531 (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
1532 (altivec_mulv4sf3): Expand to FMA directly.
1533 (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
1534 (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
1535 * config/rs6000/paired.md (paired_madds0): Use FMA.
1536 (paired_madds1): Likewise.
1537 (*paired_madd): Rename from paired_madd; use FMA.
1538 (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
1539 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
1540 consider TARGET_FUSED_MADD wrt rs6000_recip_control.
1541 (bdesc_3arg): Update CODE_FOR_* for pattern renames.
1542 (rs6000_emit_madd): Use fma_optab.
1543 (rs6000_emit_msub): Use fms_optab.
1544 (rs6000_emit_nmsub): Expand the FMA pattern directly.
1545 * config/rs6000/rs6000.md (FMA_F): New mode iterator.
1546 (*fmasf4_fpr): Rename from fmasf4_fpr.
1547 (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
1548 (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
1549 (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
1550 (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
1551 (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
1552 (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
1553 (*fmadf4_fpr): Rename from fmadf4_fpr.
1554 (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
1555 (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
1556 (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
1557 (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
1558 (fmasf4, fmadf4): Macroize into...
1559 (fma<FMA_F>4): ... here.
1560 (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
1561 (nfma<FMA_F>4, nfms<FMA_F>4): New.
1562 * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
1563 TARGET_FUSED_MADD.
1564 * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
1565 (*vsx_fmadd<mode>4_1): Remove.
1566 (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
1567 (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
1568 (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
1569 (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
1570 (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
1571 (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
1572 (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
1573
1574 2010-11-16 Richard Henderson <rth@redhat.com>
1575
1576 * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
1577 (fmasf4, fnmadf4, fnmasf4): Likewise.
1578 (unnamed plus+mult insns and splitters): Delete.
1579
1580 2010-11-16 Richard Henderson <rth@redhat.com>
1581
1582 * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
1583 (fnma<VSF>4): Rename from fnms_<VSF>.
1584 (fms<VSF>4): Rename from fms_<VSF>.
1585 (fma<VDF>4): Rename from fma_<VDF>.
1586 (fms<VDF>4): Rename from fms_<VDF>.
1587 (nfma<VDF>4): Rename from fnma_<VDF>.
1588 (nfms<VDF>4): Rename from fnms_<VDF>.
1589 (fnma<VDF>4, fnms<VDF>4): New expanders.
1590 (floatunsdisf2): Update for the renames.
1591 (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
1592 * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
1593
1594 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
1595
1596 PR rtl-optimization/46490
1597 * combine.c (expand_compound_operation): Fix thinko.
1598
1599 2010-11-16 Richard Henderson <rth@redhat.com>
1600
1601 PR target/46470
1602 * recog.c (peep2_attempt): Convert frame-related info when possible.
1603 (peep2_fill_buffer): Allow frame-related insns into the buffer.
1604 (peephole2_optimize): Allow peep2_attempt to fail.
1605
1606 2010-11-16 Eric Botcazou <ebotcazou@adacore.com>
1607
1608 PR rtl-optimization/46315
1609 * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
1610 * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
1611 extracted from...
1612 * dce.c (delete_corresponding_reg_eq_notes): ...here. Rename into...
1613 (remove_reg_equal_equiv_notes_for_defs): ...this.
1614 (delete_unmarked_insns): Adjust to above renaming.
1615 * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
1616 referring to registers set in the insns being moved, if any.
1617
1618 * df-core.c (df_ref_dump): New function extracted from...
1619 (df_refs_chain_dump): ...here. Call it.
1620 (df_regs_chain_dump): Likewise.
1621 * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
1622 * df-scan.c (df_scan_start_dump): Likewise. Fix long line.
1623
1624 2010-11-16 Andreas Schwab <schwab@linux-m68k.org>
1625
1626 PR rtl-optimization/46395
1627 * postreload.c (reload_combine): Invalidate register use
1628 information on all control flow insns.
1629
1630 * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
1631 LABEL_REF in UNSPEC operand.
1632
1633 2010-11-16 Jan Hubicka <jh@suse.cz>
1634
1635 * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
1636 when !flag_toplevel_reorder do not remove unless variable is
1637 COMDAT or ARTIFICIAL.
1638 * ipa.c (varpool_can_remove_if_no_refs): ... here.
1639 (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
1640 * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
1641 * varpool.c (decide_is_variable_needed): Do not handle visibility
1642 issues.
1643 (varpool_finalize_decl): Likewise.
1644 (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
1645 update outdated comment on DECL_RTL_SET_P check.
1646
1647 2010-11-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1648
1649 * config/sol2.h (NM_FLAGS): Define.
1650 * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
1651 * doc/tm.texi: Update.
1652
1653 2010-11-16 Nick Clifton <nickc@redhat.com>
1654
1655 * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
1656 (msubsf4): Rename to fmssf4, and use fma.
1657 (nmaddsf4): Rename to fnmasf4 and use fma.
1658 (nmsubsf4): Rename to fnmssf4 and use fma.
1659
1660 2010-11-16 Joern Rennecke <amylaar@spamcop.net>
1661
1662 PR target/44762
1663 * config/score/score3.c (score3_return_in_memory): Constify arguments.
1664 (score3_in_small_data_p, score3_function_value): Likewise.
1665 (score3_trampoline_init): Use LCT_NORMAL.
1666 (score3_print_operand): Initialize code as UNKNOWN.
1667 * config/score/predicates.md (score_load_multiple_operation):
1668 Remove unused variable.
1669 (score_store_multiple_operation): Likewise.
1670 * config/score/score7.c (score7_return_in_memory): Constify arguments.
1671 (score7_in_small_data_p, score7_function_value): Likewise.
1672 (score7_trampoline_init): Use LCT_NORMAL.
1673 (score7_print_operand): Initialize code as UNKNOWN.
1674 * config/score/score3.h (score3_return_in_memory): Update prototype.
1675 (score3_in_small_data_p, score3_function_value): Likewise.
1676 * config/score/score-protos.h (score_function_value): Likewise.
1677 * config/score/score7.h (score7_return_in_memory): Update prototype.
1678 (score7_in_small_data_p, score7_function_value): Likewise.
1679 * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
1680 (score_return_in_memory, score_pass_by_reference): Constify arguments.
1681 (score_output_mi_thunk, score_function_prologue): Don't return a value.
1682 (score_function_epilogue, score_in_small_data_p): Likewise.
1683 (score_option_override, score_asm_trampoline_template): Likewise.
1684 (score_trampoline_init, score_print_operand): Likewise.
1685 (score_print_operand_address, score_prologue): Likewise.
1686 (score_epilogue, score_call, score_call_value): Likewise.
1687 (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
1688 (score_function_arg_advance): Likewise. Make static.
1689 (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
1690 (score_function_arg, score_legitimate_address_p): Make static.
1691 (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
1692 * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
1693 * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
1694 Allow (W) == HOST_BITS_PER_WIDE_INT.
1695
1696 PR java/46386
1697 * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
1698 * config/t-pnt16-warn (java/constants.o-warn): Likewise.
1699
1700 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1701
1702 * config/arc/arc.c: Delete pasto.
1703 * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
1704
1705 2010-11-16 Anatoly Sokolov <aesok@post.ru>
1706
1707 * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
1708 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
1709 * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
1710 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1711 (mn10300_preferred_reload_class,
1712 mn10300_preferred_output_reload_class): New functions.
1713
1714 2010-11-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1715
1716 * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
1717 (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
1718 (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
1719 (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
1720
1721 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1722
1723 * builtins.c (std_gimplify_va_arg_expr): Use
1724 targetm.calls.function_arg_boundary.
1725 * function.c (assign_parms, locate_and_pad_parm): Likewise.
1726 * calls.c (struct arg_data): Update comment.
1727 * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
1728 * target.def (function_arg_boundary): Define.
1729 * targhooks.h (default_function_arg_boundary): Declare.
1730 * targhooks.c (default_function_arg_boundary): Define.
1731 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
1732 TARGET_FUNCTION_ARG_BOUNDARY.
1733 (FUNCTION_ARG_BOUNDARY): Delete.
1734 (TARGET_FUNCTION_ARG_BOUNDARY): New.
1735 * doc/tm.texi: Regenerate.
1736 * system.h (FUNCTION_ARG_BOUNDARY): Poison.
1737 * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
1738 * config/arc/arc.c (arc_function_arg_boundary): Define.
1739 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1740 * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
1741 * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
1742 * config/arm/arm.c (arm_needs_doubleword_align): Make static.
1743 (arm_function_arg_boundary): Define.
1744 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1745 * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
1746 * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
1747 * config/frv/frv.c (frv_function_arg_boundary): Make static.
1748 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1749 * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
1750 * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
1751 * config/i386/i386.c (ix86_function_arg_boundary): Make static.
1752 (ix86_compat_function_arg_boundary): Take and return unsigned int.
1753 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1754 * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
1755 * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
1756 * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
1757 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1758 * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
1759 * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
1760 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1761 * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
1762 * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
1763 * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
1764 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1765 * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
1766 * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
1767 * config/mips/mips.c (mips_function_arg_boundary): Make static.
1768 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1769 * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
1770 * config/pa/pa.c (pa_function_arg_boundary): Define.
1771 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1772 * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
1773 * config/picochip/picochip-protos.h
1774 (picochip_get_function_arg_boundary): Delete.
1775 * config/picochip/picochip.c (picochip_get_function_arg_boundary):
1776 Rename to...
1777 (picochip_function_arg_boundary): ...this. Make static.
1778 (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
1779 (picochip_arg_advance): Adjust.
1780 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1781 * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
1782 * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
1783 * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
1784 (rs6000_function_arg_boundary): ...this. Make static.
1785 (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
1786 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1787 * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
1788 * config/rx/rx.c (rx_function_arg_boundary): Define.
1789 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1790 * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
1791 * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
1792 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1793 * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
1794 * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
1795 * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
1796 (xtensa_function_arg_boundary): ...this. Make static.
1797 (TARGET_FUNCTION_ARG_BOUNDARY): Define.
1798
1799 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1800
1801 * expr.c (alignment_for_piecewise_move): New function.
1802 (widest_int_mode_for_size): New function.
1803 (move_by_pieces, move_by_pieces_ninsns): Call them.
1804 (can_store_by_pieces, store_by_pieces_1): Likewise.
1805
1806 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1807
1808 * gcc.c (char_p): Define. Define a VEC of it.
1809 (n_linker_options, n_assembler_options, n_preprocessor_options):
1810 Delete.
1811 (linker_options, assembler_options, preprocessor_options): Convert
1812 to a VEC.
1813 (add_preprocessor_option): Adjust.
1814 (add_assembler_option): Adjust.
1815 (add_linker_option): Adjust.
1816 (do_specs_vec): New function.
1817 (do_spec_1): Call it. Adjust for new types.
1818
1819 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1820
1821 * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
1822 (sreal.o, statistics.o, stringpool.o): Likewise.
1823
1824 2010-11-16 Richard Guenther <rguenther@suse.de>
1825
1826 PR tree-optimization/44545
1827 * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
1828 statements are not reassociatable.
1829 (reassociate_bb): Likewise.
1830
1831 2010-11-16 Nathan Froyd <froydnj@codesourcery.com>
1832
1833 * bitmap.c: Delete unnecessary includes.
1834 * ebitmap.c: Likewise.
1835 * et-forest.c: Likewise.
1836 * sreal.c: Likewise.
1837 * statistics.c: Likewise.
1838 * stringpool.c: Likewise.
1839 * double-int.c: Add comment for inclusion of tm.h.
1840
1841 2010-11-16 Richard Guenther <rguenther@suse.de>
1842
1843 * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
1844 (visit_nary_op): ... this.
1845 (visit_binary_op): Remove.
1846 (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
1847
1848 2010-11-16 Richard Guenther <rguenther@suse.de>
1849
1850 PR middle-end/45172
1851 * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
1852
1853 2010-11-16 Nick Clifton <nickc@redhat.com>
1854
1855 * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
1856 record is packed.
1857
1858 2010-11-15 Richard Henderson <rth@redhat.com>
1859
1860 * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
1861 WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
1862 DOT_PROD_EXPR.
1863
1864 2010-11-15 Richard Henderson <rth@redhat.com>
1865
1866 * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
1867 from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively. Use
1868 fma rtx_code.
1869
1870 2010-11-15 Richard Henderson <rth@redhat.com>
1871
1872 * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
1873 and *mulsubsf4 respectively. Use fma rtx_code.
1874
1875 2010-11-15 Joseph Myers <joseph@codesourcery.com>
1876
1877 * gcc.c: Include "vec.h".
1878 (argbuf): Make into a VEC.
1879 (argbuf_length, argbuf_index): Remove.
1880 (alloc_args, clear_args, store_arg, execute, insert_wrapper,
1881 do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
1882 compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
1883 * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
1884 (gcc.o): Depend on $(VEC_H).
1885
1886 2010-11-15 Richard Henderson <rth@redhat.com>
1887
1888 * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
1889 via FMA if unsafe math.
1890 (insert_var_expansion_initialization): Handle FMA.
1891 (combine_var_copies_in_loop_exit): Likewise.
1892
1893 2010-11-15 Richard Henderson <rth@redhat.com>
1894
1895 * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
1896 * config/ia64/ia64.opt: Remove mfused-madd.
1897 * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
1898 * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
1899 * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
1900 * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
1901 * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
1902 * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
1903 (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
1904 (fmav2sf4): Rename from fpma; use FMA code.
1905 (fmsv2sf4): Rename from fpms; use FMA code.
1906 (fnmav2sf4): Rename from *fpnma; use FMA code.
1907 * config/ia64/ia64.md (MODE_SDF): New iterator.
1908 (suffix): New mode attribute.
1909 (*maddsf4, *msubsf4, *nmaddsf4): Remove.
1910 (fmssf4): Rename from *fmssf4.
1911 (fnmasf4): Rename from *nfmasf4.
1912 (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
1913 (*nmadddf4, *nmadddf4_truncsf): Remove.
1914 (fmsdf4): Rename from *fmsdf4.
1915 (fnmadf4): Rename from *nfmadf4.
1916 (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
1917 (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
1918 (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
1919 (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
1920 (fmsxf4): Rename from *fmsxf4.
1921 (fnmaxf4): Rename from *nfmaxf4.
1922 (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
1923 (*fnmaxf_trunc_<MODE_SDF>): New.
1924
1925 2010-11-15 Jakub Jelinek <jakub@redhat.com>
1926
1927 PR tree-optimization/46461
1928 * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
1929 a gimple val.
1930
1931 2010-11-15 Ian Lance Taylor <iant@google.com>
1932
1933 * godump.c: New file.
1934 * common.opt (fdump-go-spec=): New option.
1935 * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
1936 (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
1937 (TYPE_SYMTAB_IS_DIE): Define.
1938 (struct tree_type): Change GTY for symtab field to use
1939 TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
1940 to pick the union field.
1941 * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
1942 (dump_go_spec_init): Declare.
1943 * toplev.c (process_options): Handle flag_dump_go_spec.
1944 * debug.c: Include "tree.h".
1945 (do_nothing_debug_hooks): Set tree_type_symtab_field.
1946 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
1947 * dbxout.c (dbx_debug_hooks): Likewise.
1948 (xcoff_debug_hooks): Likewise.
1949 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
1950 * sdbout.c (sdb_debug_hooks): Likewise. Do not define if
1951 SDB_DEBUGGING_INFO is not defined.
1952 * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
1953 (Overall Options): Document -fdump-go-spec.
1954 * Makefile.in (OBJS-common): Add godump.o.
1955 (debug.o): Add dependency on $(TREE_H).
1956 (godump.o): New target.
1957 (GTFILES): Add $(srcdir)/godump.c.
1958
1959 2010-11-15 Jakub Jelinek <jakub@redhat.com>
1960
1961 PR debug/46095
1962 * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
1963 marking r11 set RTX_FRAME_RELATED_P if offset is too large for
1964 style < 0, add REG_FRAME_RELATED_EXPR.
1965
1966 PR debug/46387
1967 * rtl.h (vt_equate_reg_base_value): New prototype.
1968 * alias.c (vt_equate_reg_base_value): New function.
1969 * var-tracking.c (vt_init_cfa_base): Use it.
1970
1971 2010-11-15 Jan Hubicka <jh@suse.cz>
1972 Diego Novillo <dnovillo@google.com>
1973
1974 PR lto/41528
1975 * doc/lto.texi: Add.
1976 * doc/gccint.texi: Add reference to lto.texi.
1977 * doc/invoke.texi: Update user documentation for LTO.
1978 Move internal flags to lto.texi
1979
1980 2010-11-15 Nicola Pero <nicola.pero@meta-innovation.com>
1981
1982 * c-typeck.c (build_unary_op): Use
1983 objc_build_incr_expr_for_property_ref to build the pre/post
1984 increment/decrement of an Objective-C property ref, and skip the
1985 lvalue_or_else check in that case.
1986
1987 2010-11-15 Martin Jambor <mjambor@suse.cz>
1988
1989 PR tree-optimization/46349
1990 * tree-sra.c (contains_bitfld_comp_ref_p): New function.
1991 (contains_vce_or_bfcref_p): Likewise.
1992 (sra_modify_assign): Use them.
1993
1994 2010-11-15 Richard Guenther <rguenther@suse.de>
1995
1996 PR tree-optimization/46467
1997 * tree-ssa-structalias.c (do_structure_copy): Properly treat
1998 variables without subvars.
1999
2000 2010-11-15 Hariharan Sandanagobalane <hariharan@picochip.com>
2001
2002 * config/picochip/picochip.c (file header): Picochip name change.
2003 * config/picochip/picochip.md (file header): Likewise.
2004 * config/picochip/predicates.md (file header): Likewise.
2005 * config/picochip/dfa_space.md (file header): Likewise.
2006 * config/picochip/dfa_speed.md (file header): Likewise.
2007 * config/picochip/picochip.h(file header): Likewise.
2008 * config/picochip/constraints.md (file header): Likewise.
2009 * config/picochip/picochip-protos.h (file header): Likewise.
2010 * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
2011 * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
2012 * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
2013 * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
2014 * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
2015 * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
2016 * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
2017 * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
2018 * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
2019 * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
2020 * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
2021 * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
2022 * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
2023 * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
2024
2025 2010-11-15 Richard Guenther <rguenther@suse.de>
2026
2027 PR bootstrap/46474
2028 * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
2029
2030 2010-11-15 Nick Clifton <nickc@redhat.com>
2031
2032 * config/stormy16/stormy16.c (direct_return): Do not generate a
2033 direct return for interrupt handlers.
2034
2035 2010-11-15 Joern Rennecke <amylaar@spamcop.net>
2036
2037 * Makefile.in (tm.texi): Replace with rule for:
2038 ($(srcdir)/doc/tm.texi).
2039 (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
2040 $(srcdir)/doc/tm.texi .
2041 (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
2042 tm.texi .
2043
2044 PR target/46427
2045 * config/m32r/m32r.c: Remove unused variables frame_size and insn.
2046
2047 PR bootstrap/45444
2048 * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
2049 (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
2050
2051 PR target/46432
2052 * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2053
2054 2010-11-15 Richard Guenther <rguenther@suse.de>
2055
2056 PR lto/44150
2057 * lto-opts.c (lto_write_options): Write -fexceptions even if
2058 not set by the user.
2059
2060 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
2061
2062 PR c/46462
2063 * c-decl.c (declspecs_add_type): Make variables with error types
2064 integers.
2065 * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
2066 do not start a declaration before an Objective-C foreach.
2067 (c_parser_declaration_or_fndef): Improve recovery after unknown
2068 type name.
2069 (c_parser_for_statement): Hoist entrance of "foreach context"
2070 before ifs, add corresponding reset where it was missing. Do
2071 not set objc_could_be_foreach_context for C.
2072
2073 2010-11-14 Eric Botcazou <ebotcazou@adacore.com>
2074
2075 PR tree-optimization/45722
2076 * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
2077 this is a reference to a component.
2078 * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
2079 (ipa_note_param_call): Adjust comment.
2080
2081 2010-11-14 Richard Sandiford <rdsandiford@googlemail.com>
2082
2083 * config/mips/mips.c (machine_function): Remove
2084 initialized_mips16_gp_pseudo_p.
2085 (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
2086 detect whether a pseudo has already been created. Unconditionally
2087 create a new one if not.
2088 (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
2089 expanding to rtl. Create a new pseudo otherwise, if allowed.
2090
2091 2010-11-13 Richard Earnshaw <rearnsha@arm.com>
2092
2093 PR target/43440
2094 * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
2095 * tm.texi: Regenerated.
2096 * output.h (decode_reg_name_and_count): Declare.
2097 * varasm.c (decode_reg_name_and_count): New function.
2098 (decode_reg_name): Reimplement using decode_reg_name_and_count.
2099 * reginfo.c (fix_register): Use decode_reg_name_and_count and
2100 iterate over all regs used.
2101 * stmt.c (expand_asm_operands): Likewise.
2102 * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
2103 (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
2104 multiple machine registers.
2105
2106 2010-11-13 Eric Botcazou <ebotcazou@adacore.com>
2107
2108 * stor-layout.c (place_union_field): Do not put location information
2109 on offset expressions.
2110 (place_field): Likewise.
2111 (finalize_record_size): Likewise on size expressions.
2112 (finalize_type_size): Likewise.
2113 (layout_type): Likewise.
2114
2115 2010-11-13 Alexandre Oliva <aoliva@redhat.com>
2116
2117 PR debug/42889
2118 * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
2119 * df-core.c (df_set_bb_dirty_nonrl): Remove.
2120 * df.h (df_set_bb_dirty_nonlr): Likewise.
2121
2122 2010-11-13 Uros Bizjak <ubizjak@gmail.com>
2123
2124 * config/mips/mips.md (call_internal): Pass curr_insn to
2125 mips_split_call.
2126 (call_internal_direct): Ditto.
2127 (call_value_internal): Ditto.
2128 (call_value_internal_direct): Ditto.
2129 (call_value_multiple_internal): Ditto.
2130 * config/mips/mips.c (mips_split_call): Do not copy
2131 CALL_INSN_FUNCTION_USAGE here.
2132
2133 2010-11-13 Mingming Sun <mingm.sun@gmail.com>
2134
2135 * doc/invoke.texi (MIPS Options): Add loongson3a processor.
2136 * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
2137 (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
2138 * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
2139 (TUNE_LOONGSON_3A): Define.
2140 (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
2141 (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
2142 * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
2143 (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
2144 (mips_rtx_cost_data): Add Loongson-3A.
2145
2146 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
2147
2148 * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
2149 switches.
2150
2151 2010-11-13 Iain Sandoe <iains@gcc.gnu.org>
2152
2153 * dwarf2out.c (macinfo_entry): New struct.
2154 (output_comp_unit): Emit the section start label here and flag that we
2155 will emit an info section.
2156 (dwarf2out_start_source_file): Save data in a macinfo entry rather than
2157 emitting directly.
2158 (dwarf2out_end_source_file): Likewise.
2159 (dwarf2out_define): Likewise.
2160 (dwarf2out_undef): Likewise.
2161 (output_macinfo): New.
2162 (dwarf2out_init): Do not emit debug section switches here, allocate a
2163 vec for macinfo, when required.
2164 (dwarf2out_finish): First switch to debug_abbrev_section here.
2165 debug_line_section, debug_macinfo_section, Likewise.
2166 Check that the pubtypes table has at least one unpruned entry before
2167 trying to emit it.
2168
2169 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
2170
2171 PR c/20385
2172 * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
2173 (c_parser_next_tokens_start_declaration): ... this. Handle 2nd
2174 token lookahead.
2175 (c_parser_compound_statement_nostart, c_parser_label,
2176 c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
2177 (c_parser_declaration_or_fndef): Detect the case now matched by
2178 c_parser_next_tokens_start_declaration, give error and correct it.
2179
2180 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
2181
2182 * c-tree.h (enum c_typespec_kind): Add ctsk_none.
2183 (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
2184 with typespec_kind.
2185 * c-decl.c (build_null_declspecs): Initialize typespec_kind.
2186 (shadow_tag_warned, check_compound_literal_type): Adjust
2187 uses of tag_defined_p.
2188 (declspecs_add_type): Set typespec_kind.
2189 * c-parser.c (c_parser_declaration_or_fndef,
2190 c_parser_declspecs, c_parser_struct_declaration,
2191 c_parser_parameter_declaration, c_parser_type_name,
2192 c_parser_objc_diagnose_bad_element_prefix): Adjust uses
2193 of type_seen_p.
2194 * c-typeck.c (c_cast_expr): Use typespec_kind instead of
2195 tag_defined_p, pass ctsk_firstref through.
2196
2197 2010-11-13 Paolo Bonzini <bonzini@gnu.org>
2198
2199 * c-format.c (enum format_specifier_kind, kind_descriptions): New.
2200 (struct format_wanted_type): Replace field "name" with "kind", add
2201 "format_start" and "format_length".
2202 (check_format_info_main): Fill in new fields. Fill in
2203 FORMAT_WANTED_TYPES even for missing arguments. Move checks
2204 after the final NUL outside the while loop. Do not include
2205 width and precision modifiers in the format_start/format_length
2206 of the main format.
2207 (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
2208 arguments. Compute WANTED_TYPE first so that format_type_warning
2209 can be called for missing arguments. Adjust calls to
2210 format_type_warning.
2211 (format_type_warning): Fetch as much information as possible
2212 from format_wanted_type. Adjust printing now that every
2213 warning has a "descr", as well as for missing argument warnings
2214 and to include % sign for format specifiers.
2215
2216 2010-11-12 Alexander Monakov <amonakov@ispras.ru>
2217
2218 PR rtl-optimization/46204
2219 * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
2220 Update all callers. Do not recompute topological order. Adjust
2221 fallthrough edges following a degenerate conditional jump.
2222
2223 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2224
2225 * opts-common.c (control_warning_option): New.
2226 * opts.c (set_default_handlers): New.
2227 (decode_options): Use set_default_handlers and
2228 control_warning_option.
2229 (common_handle_option): Update call to enable_warning_as_error.
2230 (enable_warning_as_error): Take gcc_options parameters. Use
2231 control_warning_option.
2232 * opts.h (set_default_handlers, control_warning_option): Declare.
2233
2234 2010-11-12 Joseph Myers <joseph@codesourcery.com>
2235
2236 * Makefile.in (OPTS_H): Define.
2237 (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
2238 c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
2239 cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
2240 opts-common.o, toplev.o, passes.o, matrix-reorg.o,
2241 ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
2242 * gcc.c (driver_handle_option): Take location_t parameter.
2243 (process_command, do_self_spec): Update calls to
2244 read_cmdline_option.
2245 * langhooks-def.h (lhd_handle_option): Take location_t parameter.
2246 * langhooks.c (lhd_handle_option): Take location_t parameter.
2247 * langhooks.h (handle_option): Take location_t parameter.
2248 * lto-opts.c (lto_reissue_options): Update call to set_option.
2249 * opts-common.c (handle_option): Make static. Take location_t
2250 parameter and pass it to other functions.
2251 (handle_generated_option): Take location_t parameter and pass it
2252 to other functions.
2253 (read_cmdline_option): Take location_t parameter and pass it to
2254 other functions. Use warning_at and error_at.
2255 (set_option): Take location_t parameter and pass it to other
2256 functions.
2257 * opts.c (common_handle_option): Take location_t parameter and
2258 pass it to other functions.
2259 (enable_warning_as_error): Make static. Take location_t parameter
2260 and pass it to other functions.
2261 (lang_handle_option): Take location_t parameter and pass it to
2262 other functions.
2263 (target_handle_option): Take location_t parameter.
2264 (read_cmdline_options, maybe_default_option,
2265 maybe_default_options, default_options_optimization,
2266 decode_options): Take location_t parameter and pass it to other
2267 functions.
2268 * opts.h: Include input.h.
2269 (struct cl_option_handler_func, decode_options, set_option,
2270 handle_generated_option, read_cmdline_option): Take location_t
2271 parameters.
2272 (handle_option, enable_warning_as_error): Remove.
2273 * toplev.c (toplev_main): Update call to decode_options.
2274
2275 2010-11-12 Tobias Grosser <grosser@fim.uni-passau.de>
2276
2277 * graphite-cloog-util.c (oppose_constraint,
2278 cloog_matrix_to_ppl_constraint,
2279 new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
2280 CLooG isl uses unsigned integers. This triggered a warning.
2281
2282 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
2283
2284 PR target/46438
2285 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
2286 (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
2287 (xtensa_function_arg_1): De-constify cum.
2288 (xtensa_expand_prologue): Use add_reg_note.
2289
2290 PR target/46435
2291 * config/cris/cris.c (saved_regs_mentioned): Delete.
2292 (cris_reload_address_legitimized): Cast itype to enum reload_type.
2293 Remove unused variable op0p.
2294 (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
2295 (cris_emit_movem_store): Use add_reg_note.
2296
2297 PR bootstrap/46456
2298 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
2299
2300 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
2301
2302 * function.c (expand_function_end): Set the locator of the prologue on
2303 the stack checking insns.
2304
2305 2010-11-12 Richard Henderson <rth@redhat.com>
2306
2307 * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
2308 * config/xtensa/xtensa.opt (mfused-madd): Remove.
2309 * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
2310 MASK_FUSED_MADD.
2311 * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
2312 (fnmasf4): Rename from mulsubsf3; use fma.
2313
2314 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
2315 Richard Henderson <rth@redhat.com>
2316
2317 PR target/46428
2318 * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
2319 * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
2320 comparison.
2321
2322 2010-11-12 Pat Haugen <pthaugen@us.ibm.com>
2323
2324 * opts-common.c (decode_cmdline_option): Initialize separate_args.
2325
2326 2010-11-12 Jan Hubicka <jh@suse.cz>
2327
2328 * doc/invoke.texi (early-inlining-insns): Update default.
2329 * params.def (early-inlining-insns): Default to 10.
2330
2331 2010-11-12 Olivier Hainque <hainque@adacore.com>
2332
2333 * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
2334
2335 2010-11-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2336
2337 * config/mips/iris6.h [!IRIX_USING_GNU_LD]
2338 (SUPPORTS_INIT_PRIORITY): Define.
2339
2340 2010-11-12 Joern Rennecke <amylaar@spamcop.net>
2341
2342 PR target/46430
2343 * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
2344 * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
2345 (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2346 (avr_device_to_devicelib): Likewise.
2347 * config/avr/avr.md (zero_extendqihi2): Put variable declarations
2348 into block.
2349 (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
2350 (zero_extendhidi2, zero_extendsidi2): Likewise.
2351 * config/avr/avr.c (avr_num_arg_regs): Constify type.
2352 (avr_return_addr_rtx): De-constify tem.
2353 (avr_rotate_bytes): Move declarations to start of block.
2354 Don't use variable length array. Put nested if/else into block.
2355
2356 PR rtl-optimization/46433
2357 * var-tracking.c: Include tm_p.h .
2358
2359 PR bootstrap/44756
2360 PR build/44767
2361 * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
2362 should be unsigned.
2363 (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
2364 * doc/tm.texi: Regenerate.
2365
2366 PR target/46412
2367 * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
2368 * config/bfin/bfin.c: Include sel-sched.h .
2369 (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
2370 (expand_interrupt_handler_prologue): Remove unused variable insn.
2371 (bfin_load_pic_reg): Likewise.
2372 (bfin_rtx_costs): Make code / outer_code variables of type
2373 enum rtx_code, copied from re-named parameters.
2374 (bfin_local_alignment): Change align argument and return type
2375 to unsigned.
2376 (bfin_adjust_cost): Remove unused variable insn_type.
2377 Declare variables at start of block.
2378 (struct loop_info): Rename to...
2379 (struct loop_info_d).
2380 (workaround_rts_anomaly): Change type of icode to int.
2381 (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
2382 with int-typed variable.
2383 (note_np_check_stores): Likewise.
2384 (trapping_loads_p): Remove unused variable pat.
2385 (bfin_expand_binop_builtin): Use expand_normal.
2386 (bfin_expand_unop_builtin): Likewise.
2387 (bfin_expand_builtin): Likewise. Set tmode before use.
2388
2389 PR middle-end/44769
2390 * final.c (split_double): Don't use BITS_PER_WORD directly in
2391 shift count.
2392
2393 PR target/46431
2394 * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
2395 assignment.
2396
2397 PR target/46450
2398 * config/stormy16/stormy16.c (xstormy16_expand_prologue):
2399 Use add_reg_note.
2400 (xstormy16_function_arg): Dereference cum.
2401 (xstormy16_expand_builtin): Use expand_normal.
2402 Change type of omode to enum machine_mode.
2403 (combine_bnp): Rename and to and_insn.
2404
2405 PR target/46437
2406 * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
2407 localreg.
2408
2409 2010-11-12 Eric Botcazou <ebotcazou@adacore.com>
2410
2411 PR debug/46375
2412 * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
2413
2414 2010-11-11 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
2415
2416 PR lto/46376
2417 * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
2418
2419 2010-11-11 Nathan Froyd <froydnj@codesourcery.com>
2420
2421 PR c/44782
2422 * common.opt (fmax-errors=): New option.
2423 * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
2424 * diagnostic.h (struct diagnostic_context): Add max_errors field.
2425 * diagnostic.c (diagnostic_initialize): Initialize it.
2426 (diagnostic_action_after_output): Exit if more than max_errors
2427 have been output.
2428 * doc/invoke.texi (Warning Options): Add -fmax-errors.
2429 (-fmax-errors): Document.
2430
2431 2010-11-11 Richard Henderson <rth@redhat.com>
2432
2433 * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
2434
2435 2010-11-11 Richard Henderson <rth@redhat.com>
2436
2437 * config/fused-madd.opt: New file.
2438 * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
2439 * config/i386/i386.c (ix86_extra_costs): Handle FMA.
2440 (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2441 * config/i386/i386.opt (mfused-madd): Remove.
2442 * config/i386/sse.md (split_fma): Remove.
2443 (split_fms, split_fnma, split_fnms): Remove.
2444
2445 2010-11-12 Jakub Jelinek <jakub@redhat.com>
2446
2447 PR target/46088
2448 * config/i386/i386.md (*ashl<mode>3_cconly,
2449 *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
2450 change nonimmediate_operand predicate to register_operand.
2451
2452 2010-11-11 Paolo Bonzini <bonzini@gnu.org>
2453
2454 * Makefile.in (gengtype-lex.c): Include bconfig.h first.
2455
2456 2010-11-11 Jan Hubicka <jh@suse.cz>
2457
2458 * opts.c (finish_options): Do not error on -flto-partition alone.
2459
2460 * doc/invoke.texi (-fwhopr): Merge into -flto section.
2461 (-flto-partition): Document none.
2462 * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
2463 * lto-wrapper.c: Update comment.
2464 (run_gcc): Update LTO option parsing.
2465 * opts.c (finish_options): add support -flto-partition=none
2466 (common_handle_option): Remove fwhopr.
2467 * common.opt: Turn fwhopr into flto.
2468 * collect2.c (main): Update option handling.
2469 * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
2470 * ipa-split.c (execute_split_functions): Remove flag_whopr.
2471 * ipa.c (function_and_variable_visibility): Remove flag_whopr.
2472 * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
2473 * varpool.c (decide_is_variable_needed): Remove flag_whopr.
2474
2475 2010-11-11 Jan Hubicka <jh@suse.cz>
2476
2477 PR tree-optimize/40436
2478 * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
2479 (eliminated_by_inlining_prob): ... this one; return 50% probability
2480 for SRA.
2481 (estimate_function_body_sizes): Update use of
2482 eliminated_by_inlining_prob; estimate static function size
2483 for 2 instructions.
2484
2485 2010-11-11 Joern Rennecke <amylaar@spamcop.net>
2486
2487 PR target/44749
2488 * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
2489 declare. Change type of argument four to type int.
2490 (mep_secondary_input_reload_class): Returns enum reg_class.
2491 (mep_secondary_output_reload_class): Likewise.
2492 (mep_function_value): Change types of arguments to cont_tree.
2493 * config/mep/mep.c (mep_legitimize_reload_address): Change type of
2494 argument four to type int.
2495 (mep_secondary_input_reload_class): Returns enum reg_class.
2496 (mep_secondary_output_reload_class): Likewise.
2497 (mep_function_value): Change types of arguments to cont_tree.
2498 * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
2499 mep_regno_reg_class to enum reg_class.
2500
2501 2010-11-11 Richard Henderson <rth@redhat.com>
2502
2503 * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
2504 that the target has the exact fma operation that we matched.
2505
2506 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2507
2508 * reginfo.c (fix_register): Avoid inserting English word in
2509 diagnostic sentence. Use %qs for quoting and %'.
2510
2511 2010-11-11 H.J. Lu <hongjiu.lu@intel.com>
2512
2513 * config/i386/driver-i386.c (host_detect_local_cpu): Support
2514 Intel processor family 6, model 0x2c.
2515
2516 2010-11-11 Joseph Myers <joseph@codesourcery.com>
2517
2518 * opts.c (warning_as_error_callback,
2519 register_warning_as_error_callback): Remove.
2520 (enable_warning_as_error): Don't use warning_as_error_callback.
2521 * opts.h (register_warning_as_error_callback): Remove.
2522
2523 2010-11-11 Richard Henderson <rth@redhat.com>
2524
2525 * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
2526 in between the MULT and the PLUS/MINUS.
2527
2528 2010-11-11 Jakub Jelinek <jakub@redhat.com>
2529
2530 PR middle-end/46388
2531 * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
2532 BLKmode mode for it.
2533 (expand_expr_real_1): Similarly for op0.
2534
2535 2010-11-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2536
2537 * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
2538 Document optional target selector.
2539
2540 2010-11-11 Dave Korn <dave.korn.cygwin@gmail.com>
2541
2542 * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
2543 assembling high and low parts of size if not using 32-bit HWINT; else
2544 use DECL_SIZE_UNITS, not DECL_SIZE.
2545
2546 2010-11-11 Martin Jambor <mjambor@suse.cz>
2547
2548 PR tree-optimization/46383
2549 * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
2550 offsets.
2551 (compute_complex_ancestor_jump_func): Likewise.
2552 * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
2553
2554 2010-11-11 Jakub Jelinek <jakub@redhat.com>
2555
2556 PR debug/46150
2557 * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
2558 true if expr1->hash != expr2->hash.
2559
2560 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2561
2562 * cfgloop.c (verify_loop_structure): Use %' in diagnostics. Start
2563 diagnostics with lowercase letters.
2564 * cgraphunit.c (verify_cgraph_node): Start diagnostics with
2565 lowercase letters.
2566 * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
2567 diagnostic.
2568 * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2569 * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
2570 lowercase letters.
2571 * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2572 Remove trailing ' ' from diagnostic.
2573 * config/avr/avr.c (print_operand_address): Start diagnostic with
2574 a lowercase letter and remove trailing '.'.
2575 * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
2576 * config/bfin/bfin.c (bfin_option_override): Start diagnostics
2577 with lowercase letters. Use %' in diagnostics. Remove trailing
2578 '.' from diagnostics.
2579 (bfin_handle_longcall_attribute): Use %' in diagnostic.
2580 * config/cris/cris.c (cris_split_movdx,
2581 cris_expand_pic_call_address): Start diagnostics with lowercase
2582 letters.
2583 (cris_asm_output_label_ref): Use %' in diagnostic.
2584 * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
2585 letter.
2586 * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
2587 lowercase letter.
2588 * config/darwin-c.c (version_as_macro): Start diagnostic with a
2589 lowercase letter.
2590 * config/darwin-driver.c (darwin_default_min_version): Use %' in
2591 diagnostic.
2592 * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
2593 diagnostic.
2594 * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2595 * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
2596 diagnostics.
2597 * config/i386/i386.c (ix86_option_override_internal): Write
2598 diagnostic as a single sentence without trailing '.'. Use %' in
2599 diagnostics.
2600 (ix86_function_sseregparm, classify_argument): Start diagnostics
2601 with lowercase letters.
2602 (ix86_expand_prologue): Use %' in diagnostic.
2603 * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
2604 diagnostic.
2605 * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
2606 lowercase letter.
2607 * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
2608 diagnostic.
2609 * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2610 * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
2611 '`' in help text.
2612 * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
2613 lowercase letter.
2614 * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
2615 lowercase letters.
2616 * config/microblaze/microblaze.c (microblaze_handle_option):
2617 Remove trailing '.' from diagnostic.
2618 (print_operand): Start diagnostic with a lowercase letter.
2619 * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
2620 lowercase letters. Avoid '`' in diagnostics.
2621 * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
2622 lowercase letters. Avoid '`' in diagnostics.
2623 * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
2624 lowercase letters. Avoid '`' in diagnostics.
2625 * config/picochip/picochip.c (picochip_option_override,
2626 picochip_emit_save_register, picochip_function_arg,
2627 picochip_output_label, picochip_output_internal_label,
2628 picochip_asm_output_opcode, picochip_output_cbranch,
2629 picochip_output_compare, picochip_output_branch,
2630 picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
2631 diagnostics. Start diagnostics with lowercase letters. Use %' in
2632 diagnostics.
2633 * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
2634 "SPE" capitalization. Start diagnostic with a lowercase letter.
2635 (rs6000_handle_option): Start diagnostics with lowercase letters.
2636 (def_builtin): Remove trailing '.' from diagnostic.
2637 (rs6000_savres_routine_name): Start diagnostic with a lowercase
2638 letter.
2639 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
2640 diagnostic.
2641 * config/rx/rx.c (rx_handle_option): Start diagnostic with a
2642 lowercase letter.
2643 * config/s390/s390.c (s390_option_override) Start diagnostics with
2644 lowercase letters. Use %' in diagnostic.
2645 * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
2646 lowercase letters.
2647 * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
2648 diagnostic.
2649 * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
2650 diagnostic.
2651 * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
2652 diagnostic.
2653 * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
2654 * config/spu/spu.c (spu_option_override): Start diagnostics with
2655 lowercase letters. Use %qs for quoting in diagnostics.
2656 (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
2657 Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
2658 * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
2659 from diagnostic.
2660 * convert.c (convert_to_integer, convert_to_vector): Use %' in
2661 diagnostics.
2662 * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
2663 letter and use "cannot" spelling.
2664 * expmed.c (extract_fixed_bit_field): Start diagnostic with
2665 lowercase letter and format as a single sentence without '.'.
2666 * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
2667 Use %' in diagnostics.
2668 * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2669 Use %' in diagnostics.
2670 * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
2671 Use %' in diagnostics.
2672 * graph.c (clean_graph_dump_file): Use %' in diagnostic.
2673 * graphite-poly.c (graphite_read_scop_file): Start diagnostics
2674 with lowercase letters and remove tailing '.' and '\n'.
2675 * lto-cgraph.c (input_profile_summary): Start diagnostic with
2676 lowercase letter and remove trailing '.'.
2677 (input_cgraph): Start diagnostics with lowercase letters and
2678 remove trailing '\n'.
2679 * opts.c (finish_options, common_handle_option): Start diagnostics
2680 with lowercase letters and remove trailing '.'. Fix typo in
2681 diagnostic.
2682 * passes.c (position_pass): Start diagnostic with lowercase letter.
2683 * plugin.c (add_new_plugin, parse_plugin_arg_opt,
2684 register_callback, try_init_one_plugin): Start diagnostics with
2685 lowercase letters.
2686 * reload1.c (spill_failure): Use %' in diagnostic.
2687 (gen_reload): Start diagnostic with a lowercase letter.
2688 * stor-layout.c (place_field): Start diagnostic with a lowercase
2689 letter.
2690 * toplev.c (open_auxiliary_file): Use %' in diagnostic.
2691 * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
2692 verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
2693 Start diagnostics with lowercase letters, remove trailing '.' and
2694 use %' in diagnostics.
2695 * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
2696 (verify_ssa): Don't split diagnostic across two error calls.
2697 Spell out "number" and use %' in diagnostic.
2698 * value-prof.c (visit_hist, check_counter): Start diagnostics with
2699 lowercase letters.
2700
2701 2010-11-10 Uros Bizjak <ubizjak@gmail.com>
2702
2703 PR middle-end/46419
2704 * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
2705 (_mm_cvtpu16_ps): Ditto.
2706
2707 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2708
2709 * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
2710 warn_larger_than, larger_than_size, warn_frame_larger_than,
2711 frame_larger_than_size, flag_gen_aux_info, flag_shlib,
2712 default_visibility, flag_tls_default): New Variable declarations.
2713 (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
2714 falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
2715 (v): Declare as Common and document here.
2716 * flags.h (default_visibility, flag_generate_lto,
2717 warn_larger_than, larger_than_size, warn_frame_larger_than,
2718 frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
2719 flag_shlib, flag_excess_precision_cmdline): Remove.
2720 (set_Wstrict_aliasing): Update prototype.
2721 * gcc.c (verbose_flag): Remove.
2722 (driver_handle_option): Add diagnostic_context parameter. Don't
2723 handle OPT_v explicitly here. Set verbose_flag to 1 rather than
2724 incrementing it.
2725 * opts-common.c (handle_option): Pass dc to handler.
2726 * opts.c (warn_larger_than, larger_than_size,
2727 warn_frame_larger_than, frame_larger_than_size,
2728 default_visibility): Remove.
2729 (common_handle_option): Add diagnostic_context parameter.
2730 (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
2731 gcc_options parameters.
2732 (lang_handle_option, target_handle_option, read_cmdline_options,
2733 decode_options): Add diagnostic_context parameters.
2734 (finish_options): Access option state through opts pointer where
2735 possible.
2736 (common_handle_option): Access option state through opts pointer
2737 where possible. Do not set local static variable verbose. Do not
2738 explicitly handle OPT_v, OPT_Wstrict_aliasing_,
2739 OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
2740 OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
2741 OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
2742 OPT_fwhopr_. Do not explicitly set .opt file variables for
2743 OPT_aux_info or OPT_pedantic_errors. Use dc for diagnostic context.
2744 (set_Wstrict_aliasing): Add gcc_options parameter.
2745 * opts.h (struct cl_option_handler_func): Add diagnostic_context
2746 parameter to handler.
2747 (decode_options): Add diagnostic_context parameter.
2748 * toplev.c (dump_base_name, dump_dir_name, aux_base_name,
2749 asm_file_name, flag_generate_lto, flag_gen_aux_info,
2750 aux_info_file_name, flag_shlib, flag_tls_default,
2751 flag_excess_precision_cmdline, flag_pedantic_errors): Remove.
2752 (toplev_main): Pass global_dc to decode_options.
2753 * toplev.h (dump_base_name, dump_dir_name, aux_base_name,
2754 aux_info_file_name, asm_file_name): Remove.
2755 * tree.h (flag_tls_default): Remove.
2756
2757 2010-11-10 Eric Botcazou <ebotcazou@adacore.com>
2758
2759 PR target/45986
2760 * config/sparc/sparc.c (sparc_delegitimize_address): New function.
2761 (TARGET_DELEGITIMIZE_ADDRESS): Define to above.
2762
2763 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
2764
2765 * config.gcc (i[34567]86-*-*): Include tbmintrin.h.
2766 (x86_64-*-*): Likewise.
2767 * config/i386/cpuid.h: Define TBM bit.
2768 * config/i386/driver-i386.c (host_detect_local_cpu): Define
2769 and set has_tbm.
2770 * config/i386/i386-c.c (ix86_target_macros_internal): Check
2771 isa_flag for TBM.
2772 * config/i386/i386.c (OPTION_MASK_ISA_TBM_SET): New.
2773 (OPTION_MASK_ISA_TBM_UNSET): New.
2774 (ix86_handle_option): Handle -mtbm.
2775 (isa_opts): Add -mtbm.
2776 (enum pta_flags): Add PTA_TBM.
2777 (ix86_option_override_internal): Add TBM support.
2778 (ix86_valid_target_attribute_inner_p): Handle -mtbm.
2779 (IX86_BUILTIN_BEXTRI32): New for TBM intrinsic.
2780 (IX86_BUILTIN_BEXTRI64): Likewise.
2781 (bdesc_args): Add TBM intrinsics.
2782 (ix86_expand_builtin): Add TBM specific case.
2783 * config/i386/i386.h (TARGET_TBM): New for TBM.
2784 * config/i386/i386.md (UNSPEC_BEXTRI): New for TBM.
2785 (tbm_bextri_<mode>): Likewise.
2786 (*tbm_blcfill_<mode>): Likewise.
2787 (*tbm_blci_<mode>): Likewise.
2788 (*tbm_blcic_<mode>): Likewise.
2789 (*tbm_blcmsk_<mode>): Likewise.
2790 (*tbm_blcs_<mode>): Likewise.
2791 (*tbm_blsfill_<mode>): Likewise.
2792 (*tbm_blsic_<mode>): Likewise.
2793 (*tbm_t1mskc_<mode>): Likewise.
2794 (*tbm_tzmsk_<mode>): Likewise.
2795 * config/i386/i386.opt: Add -mtbm.
2796 * config/i386/tbmintrin.h (__bextri_u32): New.
2797 (__blcfill_u32): Likewise.
2798 (__blci_u32): Likewise.
2799 (__blcic_u32): Likewise.
2800 (__blcmsk_u32): Likewise.
2801 (__blcs_u32): Likewise.
2802 (__blsfill_u32): Likewise.
2803 (__blsic_u32): Likewise.
2804 (__t1mskc_u32): Likewise.
2805 (__tzmsk_u32): Likewise.
2806 (__bextri_u64): Likewise.
2807 (__blcfill_u64): Likewise.
2808 (__blci_u64): Likewise.
2809 (__blcic_u64): Likewise.
2810 (__blcmsk_u64): Likewise.
2811 (__blcs_u64): Likewise.
2812 (__blsfill_u64): Likewise.
2813 (__blsic_u64): Likewise.
2814 (__t1mskc_u64): Likewise.
2815 (__tzmsk_u64): Likewise.
2816 * config/i386/x86intrin.h: Add TBM check and tbmintrin.h.
2817 * doc/invoke.texi: Document -mtbm.
2818 * doc/extend.texi: Document TBM built-in functions.
2819
2820 2010-11-10 Quentin Neill <quentin.neill.gnu@gmail.com>
2821
2822 * config.gcc (i[34567]86-*-*): Include bmiintrin.h.
2823 (x86_64-*-*): Likewise.
2824 * config/i386/cpuid.h: Define BMI bit.
2825 * config/i386/driver-i386.c (host_detect_local_cpu): Define
2826 and set has_bmi.
2827 * config/i386/i386-c.c (ix86_target_macros_internal): Check
2828 isa_flag for BMI.
2829 * config/i386/i386.c (OPTION_MASK_ISA_BMI_SET): New.
2830 (OPTION_MASK_ISA_BMI_UNSET): New.
2831 (ix86_handle_option): Handle -mbmi.
2832 (isa_opts): Add -mbmi.
2833 (enum pta_flags): Add PTA_BMI.
2834 (ix86_option_override_internal): Add BMI support.
2835 (ix86_valid_target_attribute_inner_p): Handle -mbmi.
2836 (IX86_BUILTIN_BEXTR32): New for BMI intrinsic.
2837 (IX86_BUILTIN_BEXTR64): Likewise.
2838 (IX86_BUILTIN_CTZS): Likewise.
2839 (bdesc_args): Add BMI intrinsics.
2840 (ix86_expand_args_builtin): Add BMI specific cases.
2841 * config/i386/i386.h (TARGET_BMI): New for BMI.
2842 (CTZ_DEFINED_VALUE_AT_ZERO): Likewise.
2843 (CLZ_DEFINED_VALUE_AT_ZERO): Likewise.
2844 * config/i386/i386.md (UNSPEC_BEXTR): New for BMI.
2845 (UNSPEC_TZCNT): Likewise.
2846 (ctz<mode>2): Add tzcnt, and handle 16 bit operands.
2847 (bmi_andn_<mode>): New for BMI.
2848 (bmi_bextr_<mode>): Likewise.
2849 (bmi_blsi_<mode>): Likewise.
2850 (bmi_blsmsk_<mode>): Likewise.
2851 (bmi_blsr_<mode>): Likewise.
2852 * config/i386/i386.opt: Add -mbmi.
2853 * config/i386/x86intrin.h: Add BMI check and bmiintrin.h.
2854 * config/i386/bmiintrin.h (__lzcnt_u16): New.
2855 (__tzcnt_u16): Likewise.
2856 (__andn_u32): Likewise.
2857 (__bextr_u32): Likewise.
2858 (__blsi_u32): Likewise.
2859 (__blsmsk_u32): Likewise.
2860 (__blsr_u32): Likewise.
2861 (__lzcnt_u32): Likewise.
2862 (__tzcnt_u32): Likewise.
2863 (__andn_u64): Likewise.
2864 (__bextr_u64): Likewise.
2865 (__blsi_u64): Likewise.
2866 (__blsmsk_u64): Likewise.
2867 (__blsr_u64): Likewise.
2868 (__lzcnt_u64): Likewise.
2869 (__tzcnt_u64): Likewise.
2870 * doc/invoke.texi: Document -mbmi and -mno-bmi.
2871 * doc/extend.texi: Document BMI built-in functions.
2872
2873 2010-11-10 Jan Hubicka <jh@suse.cz>
2874
2875 PR tree-optimize/46228
2876 * doc/invoke.texi (comdat-sharing-probability): Document.
2877 * ipa-inline.c (cgraph_estimate_growth): Handle COMDATs
2878 * params.def (PARAM_COMDAT_SHARING_PROBABILITY): New param.
2879
2880 2010-11-10 Jan Hubicka <jh@suse.cz>
2881
2882 PR tree-optimize/46228
2883 * cgraph.c (cgraph_propagate_frequency): Fix typo.
2884
2885 2010-11-10 H.J. Lu <hongjiu.lu@intel.com>
2886
2887 PR tree-optimization/46414
2888 * tree-inline.c (estimate_move_cost): Check preferred vector
2889 mode for vector type.
2890
2891 2010-11-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2892
2893 * config/alpha/osf5.h (ASM_SPEC): Remove -nocpp.
2894
2895 2010-11-10 Sebastian Pop <sebastian.pop@amd.com>
2896
2897 PR tree-optimization/45971
2898 * tree-if-conv.c (predicate_scalar_phi): Do not generate a COND_EXPR
2899 for phi nodes analyzable by scev.
2900
2901 2010-11-10 Richard Guenther <rguenther@suse.de>
2902
2903 PR tree-optimization/44964
2904 * ipa-inline.c (cgraph_flatten): Check that SSA form matches.
2905
2906 2010-11-10 Martin Jambor <mjambor@suse.cz>
2907
2908 PR tree-optimization/46351
2909 PR tree-optimization/46377
2910 * tree-sra.c (type_internals_preclude_sra_p): Disqualify types with
2911 aggregate bit-fields.
2912
2913 2010-11-10 Joseph Myers <joseph@codesourcery.com>
2914
2915 * doc/tm.texi.in (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2916 * doc/tm.texi: Regenerate.
2917 * opts-common.c (tm.h): Don't include.
2918 (target_option_translations): Remove.
2919 (decode_cmdline_options_to_array): Don't handle translating options.
2920 * system.h (TARGET_OPTION_TRANSLATE_TABLE): Poison.
2921 * config/darwin-driver.c: Don't condition includes on
2922 CROSS_DIRECTORY_STRUCTURE.
2923 (darwin_default_min_version): Make static.
2924 (darwin_driver_init): New. Call darwin_default_min_version if not
2925 CROSS_DIRECTORY_STRUCTURE.
2926 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2927 (DRIVER_SELF_SPECS, DARWIN_CC1_SPEC): Define.
2928 (ASM_SPEC): Add %{static}.
2929 (darwin_default_min_version): Don't declare.
2930 (darwin_driver_init): Declare.
2931 (GCC_DRIVER_HOST_INITIALIZATION): Define to call
2932 darwin_driver_init, independent of CROSS_DIRECTORY_STRUCTURE.
2933 * config/darwin.opt (all_load, allowable_client,
2934 arch_errors_fatal, bind_at_load, bundle, bundle_loader,
2935 dead_strip, dependency-file, dylib_file, dynamic, dynamiclib,
2936 exported_symbols_list, filelist, findirect-virtual-calls,
2937 flat_namespace, force_cpusubtype_ALL, force_flat_namespace,
2938 framework, fterminated-vtables, gfull, gused, image_base, init,
2939 install_name, multi_module, multiply_defined,
2940 multiply_defined_unused, no_dead_strip_inits_and_terms,
2941 seg_addr_table, seg_addr_table_filename, segaddr,
2942 segs_read_only_addr, segs_read_write_addr, single_module,
2943 umbrella, unexported_symbols_list, weak_reference_mismatches,
2944 Zall_load, Zarch_errors_fatal, Zbind_at_load, Zbundle,
2945 Zdead_strip, Zdynamic, Zdynamiclib, Zflat_namespace,
2946 Zforce_cpusubtype_ALL, Zforce_flat_namespace, Zmulti_module,
2947 Zno_dead_strip_inits_and_terms, Zsingle_module): New.
2948 * config/i386/darwin.h (CC1_SPEC): Add DARWIN_CC1_SPEC.
2949 (ASM_SPEC): Add %{static}.
2950 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2951 * config/mep/mep.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2952 (DRIVER_SELF_SPECS): Handle options formerly in
2953 TARGET_OPTION_TRANSLATE_TABLE.
2954 * config/mep/mep.opt (mfar): New.
2955 * config/picochip/picochip.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2956 (DRIVER_SELF_SPECS): Define. Handle options formerly in
2957 TARGET_OPTION_TRANSLATE_TABLE.
2958 * config/rs6000/darwin.h (CC1_SPEC): Handle -faltivec and -fno-altivec.
2959 (SUBTARGET_OPTION_TRANSLATE_TABLE): Remove.
2960 * config/rs6000/darwin.opt (Waltivec-long-deprecated, faltivec,
2961 ffix-and-continue, findirect-data): New.
2962 * config/rx/rx.h (TARGET_OPTION_TRANSLATE_TABLE): Remove.
2963 * config/rx/rx.opt (nofpu): Make into alias of mnofpu.
2964 (mnofpu): Define mask and use Report here.
2965
2966 2010-11-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2967
2968 * config/s390/s390.c (s390_emit_prologue): Report the stack
2969 size if -fstack-usage is used.
2970
2971 2010-11-10 Richard Guenther <rguenther@suse.de>
2972
2973 PR tree-optimization/46398
2974 * tree-ssa-sccvn.c (process_scc): Iterate for all PHIs.
2975
2976 2010-11-10 Joern Rennecke <amylaar@spamcop.net>
2977
2978 PR target/44760
2979 * config/iq2000/iq2000.h (REGISTER_NAMES): Remove trailing semicolon.
2980 (REGNO_MODE_OK_FOR_BASE_P): Cast REGNO to int before passing it to
2981 GP_REG_OR_PSEUDO_STRICT_P.
2982 * config/iq2000/iq2000.md (andsi3+1): Add gcc_unreachable for
2983 unexpected alternative.
2984 (*movsf_internal): Likewise.
2985 (indirect_jump): Replace call to non-existant function with call to
2986 internal_error.
2987 (tablejump): Likewise.
2988 * config/iq2000/iq2000.c: Include df.h .
2989 (iq2000_function_arg_advance): Use CONST_CAST2.
2990 (compute_frame_size, iq2000_expand_prologue): Remove unused variables.
2991 (iq2000_can_eliminate): Call leaf_function_p instead of testing for
2992 a non-zero function address.
2993 (iq2000_initial_elimination_offset): Add gcc_unreachable for
2994 unexpected value of FROM.
2995 (symbolic_expression_p): Delete.
2996 (iq2000_function_value): Constify func.
2997 (expand_one_builtin): Use expand_normal.
2998 (iq2000_print_operand): Don't print VALUE if calculating it failed.
2999
3000 PR rtl-optimization/44764
3001 * addresses.h (ok_for_base_p_1): Mark regno with ATTRIBUTE_UNUSED.
3002
3003 PR target/46407
3004 * config/rx/rx.h (REGISTER_NAMES): Remove trailing semicolon.
3005 * config/rx/rx.c (rx_promote_function_mode): Mark punsignedp
3006 with ATTRIBUTE_UNUSED.
3007 (valid_psw_flag): Constify parameter which.
3008 (rx_memory_move_cost): Change type of parameter regclass to reg_class_t.
3009
3010 PR target/46415
3011 * config/mmix/mmix-protos.h (mmix_local_alignment): Update prototype.
3012 (mmix_dbx_register_number): Likewise.
3013 * config/mmix/mmix.c: Include df.h .
3014 (mmix_local_alignment): Change argument basic_align and return type
3015 to unsigned.
3016 (mmix_dbx_register_number): Change argument and return type to
3017 unsigned.
3018 (mmix_expand_prologue): Use add_reg_note.
3019
3020 PR target/46417
3021 * config/spu/spu.c (spu_expand_insv): Remove unused variables.
3022 (spu_split_store): Use aform.
3023 (spu_function_profiler): Mark parameter labelno with ATTRIBUTE_UNUSED.
3024
3025 2010-11-10 Laurynas Biveinis <laurynas.biveinis@gmail.com>
3026
3027 PR/46268
3028 * doc/gty.texi (GTY Options): Clarify that variable_size produces
3029 allocators taking size in bytes, compare with length option. Add
3030 size calculation example.
3031 (Invoking the garbage collector): Ensure that sentences are
3032 followed by two spaces. Describe that pointer fields must be
3033 initialized at ggc_collect call.
3034 (Troubleshooting): New section.
3035
3036 2010-11-09 Jan Hubicka <jh@suse.cz>
3037
3038 PR tree-optimization/40436
3039 * ipa-inline.c (leaf_node_p): Implement using is_inexpensive_builtin.
3040 * tree-inline.c (estimate_num_insns): Inexpensive builtins are like
3041 normal instructions; be sure bultin is not implemented in this file;
3042 compute non-zero return cost.
3043 (init_inline_once): Reduce builtin_call_cost to 1; set return cost.
3044 * tree-inline.h (eni_weights_d): Add return cost.
3045
3046 2010-11-09 Joseph Myers <joseph@codesourcery.com>
3047
3048 * c-parser.c (c_parser_struct_declaration): Handle declaration
3049 specifiers followed by CPP_CLOSE_BRACE.
3050
3051 2010-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3052
3053 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Rewrite so
3054 split occurs before reload, and we allocate memory at the time of
3055 the split, not during expansion. Add attributes.
3056 (floatsi<mode>2_lfiwax_mem): Ditto.
3057 (floatunssi<mode>2_lfiwzx): Ditto.
3058 (floatunssi<mode>2_lfiwzx_mem): Ditto.
3059 (floatsidf2): Ditto.
3060 (floatunssisf2): Ditto.
3061 (floatunssidf2): Ditto.
3062 (fix_trunc<mode>si2): Ditto.
3063 (fix_trunc<mode>si2_stfiwx): Ditto.
3064 (fix_trunc<mode>si2_internal): Ditto.
3065 (fix_trunc<mode>si2): Ditto.
3066 (fix_trunc<mode>di2): Ditto.
3067 (fixuns_trunc<mode>si2_stfiwx): Ditto.
3068 (floatsisf2): Ditto.
3069 (floatdidf2_mem): Ditto.
3070 (floatunsdidf2_mem): Ditto.
3071 (floatunsdidf2): Ditto.
3072 (floatdisf2_internal1): Ditto.
3073 (floatdisf2_mem): Ditto.
3074 (floatunsdisf2_mem): Ditto.
3075 (floatsi<mode>2_lfiwax_mem2): Delete.
3076 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
3077 (fix_trunc<mode>si2_mem): Ditto.
3078 (fixuns_trunc<mode>si2_mem): Ditto.
3079 (round32<mode>2_fprs): New combiner insn to combine (double)(int)
3080 type operations to reduce copying the values to multiple memory slots.
3081 (roundu32<mode>2_fprs): Ditto.
3082
3083 * config/rs6000/rs6000.c (rs6000_address_for_fpconvert): Handle
3084 PRE_INC, PRE_DEC, PRE_MODIFY.
3085 (rs6000_expand_convert_si_to_sfdf): Delete, no longer used.
3086
3087 * config/rs6000/rs6000-protos.h (rs6000_expand_convert_si_to_sfdf):
3088 Delete prototype.
3089
3090 2010-11-09 Jakub Jelinek <jakub@redhat.com>
3091
3092 PR target/43808
3093 * cfgexpand.c (partition_stack_vars): Call
3094 update_alias_info_with_stack_vars unconditionally.
3095 (update_alias_info_with_stack_vars): Allow unused
3096 unreferenced vars when not optimizing.
3097
3098 2010-11-09 Sebastian Pop <sebastian.pop@amd.com>
3099
3100 PR tree-optimization/46036
3101 * tree-if-conv.c (predicate_bbs): Call unshare_expr before
3102 add_to_dst_predicate_list.
3103
3104 2010-11-09 Jakub Jelinek <jakub@redhat.com>
3105
3106 PR debug/46171
3107 * df-problems.c (struct dead_debug_use, struct dead_debug): Move
3108 earlier.
3109 (df_set_unused_notes_for_mw, df_create_unused_note): Add DEBUG
3110 argument, call dead_debug_reset when adding REG_UNUSED note.
3111 (dead_debug_reset): New function.
3112 (df_note_bb_compute): Adjust df_set_unused_notes_for_mw and
3113 df_create_unused_note callers.
3114
3115 2010-11-09 Anatoly Sokolov <aesok@post.ru>
3116
3117 * config/fr30/fr30.c: Include "df.h".
3118
3119 2010-11-09 Richard Guenther <rguenther@suse.de>
3120
3121 PR tree-optimization/46355
3122 * tree-loop-distribution.c (tree_loop_distribution): Do not
3123 distribute loops without a single exit.
3124
3125 2010-11-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3126
3127 PR rtl-optimization/46237
3128 * ira-conflicts.c (ira_build_conflicts): Record conflicts for call
3129 saved hard regs if they might get partially clobbered.
3130
3131 2010-11-09 Paul Koning <ni1d@arrl.net>
3132
3133 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Use add for decrement.
3134
3135 2010-11-09 Richard Guenther <rguenther@suse.de>
3136
3137 PR tree-optimization/46177
3138 * tree-loop-distribution.c (prop_phis): Remove.
3139 (generate_builtin): Re-use the old loop exit edge to avoid
3140 needing to update PHI nodes.
3141
3142 2010-11-09 Joern Rennecke <amylaar@spamcop.net>
3143
3144 * config/i386/i386.c (ix86_expand_split_stack_prologue): Change
3145 type of args_size to unsigned HOST_WIDE_INT.
3146
3147 PR target/44755
3148 * config.gcc (picochip-*): Add t-pnt16-warn to tmake_file.
3149 * config/t-pnt16-warn: New file.
3150 * config/picochip/picochip.c (picochip_emit_stack_allocate):
3151 Use add_reg_note.
3152 (picochip_emit_save_register): Likewise.
3153 (picochip_emit_restore_register): Remove variable insn.
3154 (picochip_legitimize_address): Don't use C++ style comments.
3155 (picochip_legitimize_reload_address): Likewise.
3156 (reorder_var_tracking_notes): Remove variable vliw_start.
3157 (picochip_reorg): Cast first arguemnt to emit_note_after to
3158 enum insn_note.
3159 (picochip_expand_builtin_2op): Use EXPAND_NORMAL.
3160 (picochip_expand_builtin_3op): Likewise.
3161 (picochip_expand_builtin_2opvoid): Likewise.
3162 (picochip_expand_array_get, picochip_expand_array_put): Likewise.
3163 (picochip_expand_array_testport): Likewise.
3164 (picochip_init_builtins): Remove unused variables.
3165 * config/picochip/picochip.h (ASM_FORMAT_PRIVATE_NAME): Cast LABELNO
3166 to unsigned long, and output it as such.
3167 (ASM_OUTPUT_SKIP): Use HOST_WIDE_INT_PRINT_UNSIGNED.
3168 * config/picochip/picochip.md (movhicc): Remove nonsense statement.
3169 (schedType): Cast result of picochip_schedule_type to
3170 enum attr_schedType.
3171
3172 PR target/44759
3173 * config/mn10300/mn10300.c (SIZE_FMOV_LIMIT): Promote all arms of
3174 conditional to type of S.
3175 (mn10300_function_arg): Remove unused variable align.
3176 (mn10300_arg_partial_bytes): Likewise.
3177 * config/mn10300/mn10300.md (attribute cpu): Cast value to
3178 enum attr_cpu.
3179
3180 2010-11-09 H.J. Lu <hongjiu.lu@intel.com>
3181
3182 PR bootstrap/46392
3183 * gengtype-parse.c (type): Call get_input_file_name to get file name.
3184
3185 2010-11-09 Eric Botcazou <ebotcazou@adacore.com>
3186
3187 * tree.h (contains_placeholder_p): Fix comment.
3188 (type_contains_placeholder_p): Adjust comment.
3189 * tree.c (contains_placeholder_p): Fix comment.
3190 (type_contains_placeholder_1): Do not recurse on pointed-to types and
3191 adjust comment.
3192 (type_contains_placeholder_p): Add comment.
3193
3194 2010-11-09 Paul Koning <ni1d@arrl.net>
3195
3196 * config/pdp11/pdp11.c (pdp11_assemble_integer): Clean up fix for
3197 output of byte values.
3198
3199 2010-11-09 Jakub Jelinek <jakub@redhat.com>
3200
3201 PR middle-end/46360
3202 * tree-ssa-propagate.c (update_call_from_tree): Fix for use
3203 not in SSA mode.
3204
3205 2010-11-09 Richard Guenther <rguenther@suse.de>
3206
3207 PR middle-end/46221
3208 * varasm.c (compute_visible_aliases): New function.
3209 (remove_unreachable_alias_pairs): Aliases make a target available
3210 even though we reclaimed the cgraph node.
3211 (finish_aliases_1): Likewise.
3212 * Makefile.in (varasm.o): Add pointer-set.h dependency.
3213
3214 2010-11-09 Nick Clifton <nickc@redhat.com>
3215
3216 * config/mn10300/mn10300-modes.def: New file.
3217
3218 2010-11-09 Basile Starynkevitch <basile@starynkevitch.net>
3219 Jeremie Salvucci <jeremie.salvucci@free.fr>
3220
3221 * gengtype.c (get_output_file_name): Declaration moved to gengtype.h.
3222 (plugin_files, get_file_basename, get_file_realbasename)
3223 (get_file_langdir, error_at_line, gt_files, this_file)
3224 (system_h_file, read_input_list, create_field_all)
3225 (get_file_srcdir_relative_path, get_file_basename)
3226 (get_file_langdir, get_file_gtfilename)
3227 (get_output_file_with_visibility, get_output_file_name)
3228 (struct flist, put_mangled_filename, walk_type)
3229 (put_mangled_filename, finish_root_table, write_roots): Use
3230 input_file-s.
3231 (lang_dir_names, num_lang_dirs): Remove static.
3232 (get_lang_bitmap, set_lang_bitmap): Moved to gengtype.h.
3233 (main): Use input_file-s.
3234
3235 * gengtype.h: (struct input_file_st, input_file): New type.
3236 (struct fileloc): Use it.
3237 (gt_files, num_gt_files, this_file, system_h_file)
3238 (input_file_by_name, get_file_srcdir_relative_path): Use input_file.
3239 (get_input_file_name): New function.
3240 (get_lang_bitmap, set_lang_bitmap): Moved from gengtype.c and
3241 use input_file.
3242 (lang_dir_names, num_lang_dirs, get_output_file_with_visibility)
3243 (get_output_file_name): Ditto.
3244
3245 * gengtype-lex.l (yybegin): Use input_file.
3246
3247 * gengtype-parse.c (parse_error): Use input_file.
3248
3249 2010-11-08 Xinliang David Li <davidxl@google.com>
3250
3251 PR tree-optimization/46316
3252 * tree-vrp.c (adjust_range_with_scev): Check double_int overflow.
3253 * double-int.h (double_int_mul_with_sign): New function.
3254 * double-int.c (double_int_mul_with_sign): New function.
3255
3256 2010-11-08 Paul Koning <ni1d@arrl.net>
3257
3258 * config/pdp11/pdp11.md (lshrsi3, lshrhi3): Fix wrong code.
3259
3260 2010-11-08 Paul Koning <ni1d@arrl.net>
3261
3262 * config/pdp11/pdp11.md (negsi2): Fix wrong code.
3263
3264 2010-11-08 Paul Koning <ni1d@arrl.net>
3265
3266 * config/pdp11/pdp11.c (pdp11_assemble_integer): Mask byte values
3267 to 8 bits.
3268
3269 2010-11-08 Michael Meissner <meissner@linux.vnet.ibm.com>
3270
3271 PR target/46378
3272 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
3273 turn on ISA 2.04 rounding instructions for power5.
3274
3275 * config/rs6000/rs6000.md (friz): Friz is an ISA 2.04 instruciton,
3276 not ISA 2.02.
3277
3278 PR target/45585
3279 * config/rs6000/darwin.md (movdi_low): Allow DImode values to be
3280 in FPR registers.
3281 (movdi_low_st): Ditto.
3282
3283 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
3284 Richard Henderson <rth@redhat.com>
3285
3286 PR target/44758
3287 * config/frv/frv.md (attribute cpu): Cast value to enum attr_cpu.
3288 (attribute acc_group): Cast value to enum attr_acc_group.
3289 (*movdi_nodouble+6): Use gen_int_mode.
3290 * config/frv/frv-protos.h (frv_trampoline_size): Declare no matter
3291 if RTX_CODE is defined or not.
3292 * config/frv/frv.c (enum frv_io_type): New enum, broken out of
3293 struct frv_io.
3294 (frv_handle_option): Mark parameter value with ATTRIBUTE_UNUSED.
3295 (frv_frame_access, frv_expand_prologue): Remove unused variables.
3296 (frv_expand_block_clear): Likewise.
3297 (frv_trampoline_init): Use LCT_NORMAL.
3298 (struct frv_packet_group): New struct, broken out of type of
3299 frv_packet.
3300 (frv_start_packet, frv_reorder_packet): Initialize group to GROUP_I,
3301 use cast in loop counter increment.
3302 (frv_extract_membar): Cast HOST_WIDE_INT to enum frv_io_type before
3303 assigning to io->type.
3304 (bdesc_set): Use rtx_code UNKNOWN in initializer.
3305 (bdesc_1arg, bdesc_2arg, bdesc_int_void2arg): Likewise.
3306 (bdesc_prefetches, bdesc_cut, bdesc_2argimm, bdesc_void2arg): Likewise.
3307 (bdesc_void3arg, bdesc_voidacc, bdesc_loads, bdesc_stores): Likewise.
3308 (frv_read_argument): Use expand_normal.
3309
3310 PR target/44757
3311 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Call
3312 lm32_legitimate_constant_p.
3313 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
3314 * config/lm32/lm32.c (gen_int_relational): Make new block for
3315 LE / LT / LEU / LTU case. Declare variables at start of block.
3316 (lm32_block_move_inline): Use XALLOCAVEC.
3317
3318 2010-11-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3319
3320 * config/i386/i386.c (ix86_function_arg_boundary): Fix warning message.
3321
3322 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
3323
3324 * gengtype (get_output_file_for_structure): Ensure type is union
3325 or struct.
3326 (write_splay_tree_allocator_def): Use
3327 get_output_file_with_visibility.
3328
3329 2010-11-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3330
3331 * config/s390/s390.c (s390_handle_arch_option): Set type and flags
3332 to defined values in case of an error.
3333 (s390_option_override): Skip further processing if the -march
3334 parameter wasn't recognized.
3335
3336 2010-11-08 Joern Rennecke <amylaar@spamcop.net>
3337
3338 * caller-save.c (reg_save_code): After HARD_REGNO_MODE_OK check fails,
3339 assert that REG is a hard register number before using it as an index.
3340
3341 PR bootstrap/46358
3342 * config/i386/i386.c (ix86_expand_split_stack_prologue):
3343 Avoid warnings when HOST_WIDE_INT is 32 bit.
3344
3345 2010-11-08 Eric Botcazou <ebotcazou@adacore.com>
3346
3347 PR target/46208
3348 * config/sparc/sparc.c (TARGET_PROMOTE_PROTOTYPES): Delete.
3349 (sparc_promote_prototypes): Likewise.
3350 (sparc_promote_function_mode): Promote in 32-bit mode as well.
3351 (sparc_return_in_memory): Remove superfluous parentheses.
3352 (sparc_struct_value_rtx): Fix long lines.
3353 (sparc_function_value_1): Promote in 32-bit mode as well.
3354
3355 2010-11-08 Andrey Belevantsev <abel@ispras.ru>
3356
3357 PR rtl-optimization/45352
3358 * sel-sched.c (find_best_expr): Do not set pneed_stall when
3359 the variable_issue hook is not implemented.
3360 (fill_insns): Remove dead variable stall_iterations.
3361 (init_seqno_1): Force EBB start for resetting sched cycles on any
3362 successor blocks of the rescheduled region.
3363 (sel_sched_region_1): Use bitmap_bit_p instead of bitmap_clear_bit.
3364 (reset_sched_cycles_in_current_ebb): Add debug printing.
3365 New variable issued_insns. Advance state when we have issued
3366 issue_rate insns.
3367
3368 2010-11-08 Basile Starynkevitch <basile@starynkevitch.net>
3369
3370 * gengtype (main): Get here's position using POS_HERE macro for
3371 do*typedef calls.
3372
3373 2010-11-07 Ian Lance Taylor <iant@google.com>
3374
3375 PR target/46089
3376 * config/i386/i386.c (split_stack_fn_large): New static variable.
3377 (ix86_expand_split_stack_prologue): Handle large model.
3378
3379 2010-11-07 Andreas Schwab <schwab@linux-m68k.org>
3380
3381 * config/m68k/m68k.c (m68k_delegitimize_address): Update to handle
3382 all possible addressing modes.
3383
3384 2010-11-07 Uros Bizjak <ubizjak@gmail.com>
3385
3386 PR tree-optimization/46346
3387 * tree-ssa-forwprop.c (rhs_to_tree): Handle GIMPLE_TERNARY_RHS.
3388
3389 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
3390
3391 * config/mips/mips.c: Revert previous patch.
3392 * config/mips/mips.md: Likewise.
3393
3394 2010-11-07 Richard Sandiford <rdsandiford@googlemail.com>
3395
3396 * config/mips/mips.c (mips_rtx_costs): Handle FMA.
3397 * config/mips/mips.md (*madd4<mode>, *madd3<mode>, *msub4<mode>)
3398 (*msub3<mode>, *nmadd4<mode>_fastmath, *nmadd3<mode>_fastmath)
3399 (*nmsub4<mode>_fastmath, *nmsub3<mode>_fastmath): Delete.
3400 (*nmadd4<mode>, *nmadd3<mode>. *nmsub4<mode>, *nmsub3<mode>): Redefine
3401 to use FMA.
3402 (fma<mode>4, *fma<mode>4_madd3, *fma<mode>4_madd4): New patterns.
3403 (fms<mode>4, *fms<mode>4_msub3, *fms<mode>4_msub4): Likewise.
3404 (fnms<mode>4, *fnms<mode>4_nmadd3, *fnms<mode>4_nmadd4): Likewise.
3405 (fnma<mode>4, *fnma<mode>4_nmsub3, *fnma<mode>4_nmsub4): Likewise.
3406
3407 2010-11-06 Simon Martin <simartin@users.sourceforge.net>
3408
3409 PR c/43384
3410 * c-decl.c (lookup_label): Labels can only be referenced in a
3411 function's scope.
3412 (store_parm_decls_oldstyle): Skip erroneous parameters.
3413
3414 2010-11-06 Anatoly Sokolov <aesok@post.ru>
3415
3416 * config/fr30/fr30.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
3417 LIBCALL_VALUE): Remove macros.
3418 * config/fr30/fr30.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
3419 TARGET_FUNCTION_VALUE_REGNO_P): Define.
3420 (fr30_function_value_regno_p, fr30_function_value,
3421 fr30_libcall_value): New functions.
3422
3423 2010-11-06 Joern Rennecke <amylaar@spamcop.net>
3424
3425 PR middle-end/46314
3426 * target.def (generate_internal_label): New asm_out hook.
3427 * output.h (default_generate_internal_label): Declare.
3428 * varasm.c (default_generate_internal_label): Define.
3429
3430 2010-11-06 Iain Sandoe <iains@gcc.gnu.org>
3431
3432 PR target/44981
3433 * doc/extend.tex (format): Document NSString extension.
3434 (format_arg): Likewise.
3435 (Darwin Format Checks): New section.
3436 * doc/tm.texi: Document string object hooks (generated).
3437 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Rename.
3438 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
3439 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
3440 * target.def (objc_construct_string_object): Rename, amend
3441 documentation.
3442 (string_object_ref_type_p): New hook.
3443 (check_string_object_format_arg): New hook.
3444 * c-parser.c (c_parser_attributes): Allow objective-c class names as
3445 attribute identifiers.
3446 * config/darwin-c.c (darwin_cfstring_ref_p): New.
3447 (darwin_check_cfstring_format_arg): New.
3448 (darwin_additional_format_types): New.
3449 * config/darwin-protos.h (darwin_cfstring_ref_p) New.
3450 (darwin_check_cfstring_format_arg): New.
3451 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT) Renamed.
3452 (TARGET_STRING_OBJECT_REF_TYPE_P): New.
3453 (TARGET_N_FORMAT_TYPES): New.
3454 (TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): New.
3455
3456 2010-11-06 Eric Botcazou <ebotcazou@adacore.com>
3457 Pascal Obry <obry@adacore.com>
3458
3459 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Redefine. Use 33
3460 in 64-bit mode and 17 otherwise.
3461
3462 2010-11-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3463
3464 PR debug/45939
3465 * var-tracking.c (emit_note_insn_var_location): Make sure that
3466 call related var location notes come before the normal ones.
3467
3468 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
3469
3470 PR target/46326
3471 * config/i386/i386.c (ix86_delegitimize_address): Fix a typo
3472 in the last change.
3473
3474 2010-11-05 Ian Lance Taylor <iant@google.com>
3475
3476 * explow.c (allocate_dynamic_stack_space): Check MALLOC_ABI_ALIGNMENT.
3477
3478 2010-11-05 Jakub Jelinek <jakub@redhat.com>
3479
3480 PR c/44772
3481 * c-decl.c (warn_cxx_compat_finish_struct): Don't call
3482 pointer_set_contains if DECL_NAME is NULL.
3483
3484 2010-11-05 Ian Lance Taylor <iant@google.com>
3485
3486 PR target/46084
3487 * explow.c (allocate_dynamic_stack_space): If flag_split_stack,
3488 request enough additional space for alignment, and force alignment.
3489
3490 2010-11-05 Kai Tietz <kai.tietz@onevision.com>
3491
3492 * config/i386/i386.c (legitimate_pic_address_disp_p):
3493 Handle UNSPEC_PCREL.
3494 (ix86_legitimate_address_p): Likewise.
3495 (legitimize_pic_address): Likewise.
3496 (output_pic_addr_const): Likewise.
3497 (ix86_delegitimize_address): Likewise.
3498 (ix86_find_base_term): Likewise.
3499 (memory_address_length): Likewise.
3500 (x86_output_mi_thunk): Handle special case x64
3501 for non local binding.
3502 * config/i386/i386.md (UNSPEC_PCREL): New.
3503 * config/i386/winnt.c (i386_pe_binds_local_p):
3504 Allow weak symbol for x64 windows with non-local binding.
3505
3506 2010-11-05 Jakub Jelinek <jakub@redhat.com>
3507
3508 PR target/45670
3509 * expr.c (expand_expr_real_1) <case MEM_REF>: Use EXPAND_SUM
3510 instead of EXPAND_NORMAL for base expansion.
3511
3512 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
3513
3514 * config.gcc: Support --with-fpmath=avx for x86.
3515 * config/i386/avxmath.h: New.
3516 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
3517
3518 2010-11-05 Ian Lance Taylor <iant@google.com>
3519
3520 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
3521 * gengtype.c (walk_type): Don't recognize descbits option.
3522
3523 2010-11-05 Joseph Myers <joseph@codesourcery.com>
3524
3525 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
3526 WORD_SWITCH_TAKES_ARG): Remove.
3527 * doc/options.texi (Args): Document.
3528 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
3529 * doc/tm.texi: Regenerate.
3530 * opt-functions.awk (switch_flags): Handle Args.
3531 * opts-common.c: Update comment on tm.h include.
3532 (decode_cmdline_option): Handle options with multiple arguments.
3533 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
3534 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
3535 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
3536 CL_COMMON): Update values.
3537 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
3538 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
3539 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
3540 sectobjectsymbols, sectorder, segcreate, segprot): New.
3541
3542 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
3543 Uros Bizjak <ubizjak@gmail.com>
3544
3545 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
3546 256bit AVX register is used.
3547 (ix86_expand_vector_move_misalign): Likewise.
3548 (ix86_expand_vector_move): Replace use_avx256_p with
3549 VALID_AVX256_REG_MODE.
3550
3551 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
3552
3553 PR target/44750
3554 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
3555 change. Set $@-warn.o to -Wno-error.
3556
3557 PR bootstrap/44756
3558 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
3559 comparing it to a signed value.
3560
3561 PR middle-end/44766
3562 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
3563 PR bootstrap/44770
3564 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
3565 to i.
3566
3567 PR target/44754
3568 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
3569 (m32c_function_arg). Add comma between arguments two and three.
3570 (m32c_promote_prototypes): Remove declaration.
3571 (current_function_special_page_vector): Likewise.
3572 (m32c_regno_reg_class): Change return type to enum reg_class.
3573 (m32c_pushm_popm): Use add_reg_note.
3574 (m32c_push_rounding): Change return type to unsigned int.
3575 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
3576 enum reload_type.
3577 (m32c_insert_attributes): Constify variable name.
3578 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
3579 (m32c_prepare_shift): Remove variable lref.
3580 (m32c_expand_movcc): Remove variable cmp.
3581 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
3582 (m32c_compare_redundant): Remove variable op2.
3583 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
3584 (m32c_pragma_memregs): Assign the number to target_memregs.
3585 (m32c_pragma_address): Remove variable var_str.
3586 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
3587 enum reg_class.
3588 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
3589 * config/m32c/bitops.md (andsi3): Add default case to switch.
3590 (iorsi3, xorsi3): Likewise.
3591 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
3592 * config/m32c/jump.md (call, call_value): Likewise.
3593 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
3594 (m32c_regno_reg_class): Likewise.
3595 (current_function_special_page_vector): Declare.
3596
3597 2010-11-05 Jakub Jelinek <jakub@redhat.com>
3598
3599 * cfgexpand.c (expand_debug_expr): Handle MEM_REF with non-zero offset.
3600
3601 PR tree-optimization/46099
3602 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
3603 if it is NULL and uid wasn't found in the hash table. Just fold the
3604 result if it is NULL otherwise. Insert other potentially needed
3605 stmts right before current stmt instead of on the entry edge.
3606 (struct elv_data): Add gsi and reset fields.
3607 (eliminate_local_variables_1): Adjust caller. If take_address_of
3608 failed for debug stmt, set dta->reset and return.
3609 (eliminate_local_variables_stmt): Change STMT argument for GSI,
3610 pass GSI through to the callback, handle resetting of debug stmts.
3611 (eliminate_local_variables): Adjust caller. Process debug stmts
3612 in second phase.
3613
3614 PR middle-end/43690
3615 * gimplify.c (gimplify_asm_expr): If a "m" input is a
3616 {pre,post}{in,de}crement, fail.
3617
3618 PR debug/46307
3619 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
3620 * tree-pretty-print.c (dump_generic_node): Likewise.
3621 (op_code_prio): Likewise.
3622 * cfgexpand.c (expand_debug_expr): Likewise.
3623
3624 2010-11-04 Paul Koning <ni1d@arrl.net>
3625
3626 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
3627 constraints.
3628
3629 2010-11-04 Chao-ying Fu <fu@mips.com>
3630
3631 * configure.ac: Test assembler support for DSP Rev1 mult.
3632 * configure: Regenerate.
3633 * config.in: Regenerate.
3634 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
3635 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
3636 (CODE_FOR_mips_multu): New define.
3637 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
3638 dspr2_32 to dsp_32.
3639 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
3640 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
3641 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
3642 New define_expand patterns.
3643 * config/mips/constraints.md (ka): Update the constraint to test
3644 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
3645 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
3646 mips_multu): Delete.
3647 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
3648 Change target constraint to "ka".
3649 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
3650 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
3651 Emit the accumulator destination when ISA_HAS_DSP_MULT.
3652 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
3653 Emit the accumulator destination when ISA_HAS_DSP_MULT.
3654 (<u>maddsidi4): Likewise.
3655 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
3656 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
3657
3658 2010-11-04 Paul Koning <ni1d@arrl.net>
3659
3660 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
3661
3662 2010-11-04 Paul Koning <ni1d@arrl.net>
3663
3664 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
3665
3666 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
3667
3668 Fixed using the Objective-C 2.0 dot-syntax with class names.
3669 * c-parser.c (c_parser_next_token_starts_declspecs): In
3670 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
3671 (c_parser_next_token_starts_declaration): Same.
3672 (c_parser_postfix_expression): Parse the Objective-C 2.0
3673 dot-syntax with a class name.
3674
3675 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
3676
3677 * final.c (compute_alignments): Compute/free loop info all the time.
3678 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
3679 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
3680 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
3681 * config/rs6000/rs6000.c (cfgloop.h): Include.
3682 (can_override_loop_align): New.
3683 (rs6000_option_override_internal): Set it.
3684 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
3685 (rs6000_loop_align): New function.
3686 (rs6000_loop_align_max_skip): Likewise.
3687
3688 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3689
3690 PR driver/45703
3691 * collect2.c (main): Print --help output to stdout. Do not
3692 exit right away, so ld --help is appended. Add empty lines
3693 to separate output suitably.
3694
3695 2010-11-04 Jakub Jelinek <jakub@redhat.com>
3696
3697 PR tree-optimization/46233
3698 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
3699 after calling analyze_function, not before.
3700
3701 PR target/46234
3702 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
3703 instead of build_va_arg_indirect_ref.
3704 * config/spu/spu.c (spu_va_start): Likewise.
3705 * config/s390/s390.c (s390_va_start): Likewise.
3706
3707 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
3708
3709 PR middle-end/46292
3710 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
3711 if the innermode is not vector mode, determine the mode of a subreg
3712 by using mode_for_size of inner_size.
3713
3714 2010-11-04 Richard Guenther <rguenther@suse.de>
3715
3716 PR rtl-optimization/46183
3717 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
3718 (execute_rtl_pre): Likewise.
3719 (execute_rtl_hoist): Likewise.
3720
3721 2010-11-04 Richard Guenther <rguenther@suse.de>
3722
3723 PR tree-optimization/46068
3724 * ipa-split.c (consider_split): Remove gcc_unreachable.
3725
3726 2010-11-04 Richard Guenther <rguenther@suse.de>
3727
3728 * tree-nested.c (build_addr): Use build_fold_addr_expr.
3729
3730 2010-11-04 Richard Guenther <rguenther@suse.de>
3731
3732 PR tree-optimization/45991
3733 * gimplify.c (force_gimple_operand_1): Use the provded test
3734 function in the initial test.
3735
3736 2010-11-04 Jeff Law <law@redhat.com>
3737
3738 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
3739 of readonly memory equivalances for const/pure calls.
3740
3741 2010-11-04 Richard Guenther <rguenther@suse.de>
3742
3743 PR tree-optimization/45733
3744 * tree-vect-stmts.c (reverse_vec_elements): Honor the
3745 permute builtins function return type.
3746
3747 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
3748
3749 PR middle-end/44765
3750 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
3751 as an index, check it is not INVALID_REGNUM.
3752
3753 PR bootstrap/44756
3754 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
3755 unsignedp.
3756 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
3757
3758 PR bootstrap/44756
3759 * function.c (thread_prologue_and_epilogue_insns): Add
3760 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
3761
3762 PR bootstrap/44756
3763 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
3764
3765 PR target/44750
3766 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
3767 (pdp11_preferred_reload_class): Rename class to rclass.
3768 (pdp11_preferred_output_reload_class): Likewise.
3769 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
3770 ALL_COMPILERFLAGS .
3771 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
3772
3773 PR bootstrap/44756
3774 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
3775 iteration variables to enum machine_mode.
3776
3777 PR target/44751
3778 * config/h8300/h8300.c: Include df.h.
3779 (push, pop): Use add_reg_note.
3780 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
3781 (compute_a_shift_cc): Likewise.
3782 (expand_a_shift): Argument code has type enum rtx_code.
3783 (struct shift_insn): Member cc_valid has type enum attr_cc.
3784 (struct shift_info) <cc_inline, cc_special>: Likewise.
3785 enum attr_cc.
3786 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
3787 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
3788
3789 2010-11-04 Ira Rosen <irar@il.ibm.com>
3790
3791 PR tree-optimization/46213
3792 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
3793 MINUS_EXPR only if the first operand is reduction operand.
3794
3795 2010-11-04 Richard Guenther <rguenther@suse.de>
3796 Richard Henderson <rth@redhat.com>
3797
3798 * tree.def (FMA_EXPR): New tree code.
3799 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
3800 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
3801 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
3802 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
3803 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
3804 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
3805 (execute_optimize_widening_mul): Call it. Reorganize to allow
3806 dead stmt removal. Move TODO flags ...
3807 (pass_optimize_widening_mul): ... here.
3808 * flag-types.h (enum fp_contract_mode): New enum.
3809 * common.opt (flag_fp_contract_mode): New variable.
3810 (-ffp-contract): New option.
3811 * opts.c (common_handle_option): Handle it.
3812 * doc/invoke.texi (-ffp-contract): Document.
3813 * tree.h (fold_fma): Declare.
3814 * builtins.c (fold_fma): New function.
3815 (fold_builtin_fma): Likewise.
3816 (fold_builtin_3): Call it for fma.
3817 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
3818 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
3819 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
3820 New expanders.
3821 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
3822 named patterns.
3823 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
3824 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
3825 (fms_optab, fnma_optab, fnms_optab): New defines.
3826 * gimplify.c (gimplify_expr): Handle binary truth expressions
3827 explicitly. Handle FMA_EXPR.
3828 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
3829 operations.
3830
3831 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
3832 Richard Guenther <rguenther@suse.de>
3833
3834 * passes.c (init_optimization_passes): Move veclower after SSA.
3835 * tree-vect-generic.c (uniform_vector_p): New function.
3836 (expand_vector_operations_1): Handle conversion.
3837 (pass_lower_vector): Update SSA form.
3838
3839 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
3840
3841 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
3842 plugin capabilities.
3843 * configure: Regenerate.
3844
3845 2010-11-03 Xinliang David Li <davidxl@google.com>
3846
3847 PR target/46200
3848 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
3849 Adjust cbase if the use stmt is after iv update.
3850
3851 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
3852
3853 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
3854
3855 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
3856
3857 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
3858 comment. Pass true to the last argument of output_stack_adjust.
3859
3860 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3861
3862 PR target/46295
3863 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
3864 if 256bit AVX register is used.
3865
3866 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3867
3868 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
3869 xsmindp/xsmaxdp on VSX for single precision min/max.
3870 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
3871 (vsx_sminsf3): Ditto.
3872
3873 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
3874
3875 * combine.c (try_combine): Fix formatting issues, improve comments and
3876 fix a pasto.
3877
3878 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
3879
3880 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
3881 of the result before building binary expressions.
3882
3883 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3884
3885 PR rtl-optimization/45865
3886 * Makefile.in (df-problems.o): Revert revision 164552.
3887 * basic-block.h (enum bb_flags): Likewise.
3888 * cfgcleanup.c (block_was_dirty): Likewise.
3889 (try_forward_edges): Likewise.
3890 (try_crossjump_bb): Likewise.
3891 (try_head_merge_bb): Likewise.
3892 (try_optimize_cfg): Likewise.
3893 (cleanup_cfg): Likewise.
3894 * df-core.c (df_set_bb_dirty): Likewise.
3895 * df-problems.c: Likewise.
3896 (df_simulate_find_uses): Likewise.
3897 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
3898 (find_memory, find_memory_store): Likewise.
3899 (can_move_insns_across): Likewise.
3900 * df.h (can_move_insns_across): Likewise.
3901 * ifcvt.c (find_memory): Likewise.
3902 (dead_or_predicable): Likewise.
3903
3904 2010-11-03 Richard Guenther <rguenther@suse.de>
3905
3906 PR middle-end/46288
3907 * predict.c (strip_predict_hints): Simply DCE builtin expect if
3908 the result is unused.
3909
3910 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3911
3912 PR tree-optimization/46009
3913 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
3914 cond_if_else_store_replacement if bb1 and bb2 have the same
3915 single successor.
3916 (cond_store_replacement): Use gimple_assign_single_p, don't
3917 check if rhs is SSA_NAME or invariant. Call release_defs for
3918 assign.
3919 (cond_if_else_store_replacement): New function.
3920
3921 2010-11-03 Richard Guenther <rguenther@suse.de>
3922
3923 * opts.c (finish_options): Properly check for all WHOPR
3924 flags before complaining about -flto-partition.
3925
3926 2010-11-04 Alan Modra <amodra@gmail.com>
3927
3928 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
3929 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
3930 TARGET_SECURE_PLT.
3931 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
3932 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
3933 on input, "r" on output.
3934
3935 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
3936
3937 Implemented -fobjc-std=objc1 flag.
3938 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
3939 option.
3940 * doc/standards.texi (Standards): Updated the section on
3941 Objective-C; mention support for Objective-C 2.0 features and the
3942 new -fstd-objc=objc1 flag to disable them.
3943
3944 2010-11-03 Richard Guenther <rguenther@suse.de>
3945
3946 PR middle-end/46241
3947 * dwarf2out.c (scope_die_for): Properly detect global scope.
3948
3949 2010-11-03 Richard Guenther <rguenther@suse.de>
3950
3951 PR tree-optimization/46190
3952 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3953 Properly compute peel iterations.
3954
3955 2010-11-03 Richard Guenther <rguenther@suse.de>
3956
3957 PR tree-optimization/46286
3958 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
3959 re-allocated vector data.
3960
3961 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
3962
3963 PR target/46285
3964 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
3965 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
3966 is completed.
3967
3968 2010-11-03 Richard Guenther <rguenther@suse.de>
3969
3970 PR tree-optimization/46217
3971 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
3972 flag matches.
3973 (execute_update_addresses_taken): Likewise.
3974
3975 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
3976
3977 PR bootstrap/44335
3978 * targhooks.c (targhook_words_big_endian): New function.
3979 (targhook_float_words_big_endian): Likewise.
3980 * targhooks.h (targhook_words_big_endian): Declare.
3981 (targhook_float_words_big_endian): Likewise.
3982 * target.def (words_big_endian, float_words_big_endian): New hooks.
3983
3984 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3985
3986 PR tree-optimization/46165
3987 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
3988 a normal call into noreturn call.
3989
3990 2010-11-03 Richard Guenther <rguenther@suse.de>
3991
3992 PR middle-end/46251
3993 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
3994 not INDIRECT_REFs.
3995
3996 2010-11-03 Jakub Jelinek <jakub@redhat.com>
3997
3998 PR tree-optimization/46107
3999 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
4000 if cfg_hook_duplicate_loop_to_header_edge failed.
4001
4002 2010-11-03 Ian Lance Taylor <iant@google.com>
4003
4004 PR lto/46273
4005 * config.gcc: Don't set lto_binary_reader.
4006 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
4007 (Configuration): Mention --disable-lto. Remove --with-libelf
4008 paragraph.
4009
4010 2010-11-03 Jakub Jelinek <jakub@redhat.com>
4011
4012 PR debug/46252
4013 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
4014 prev_real_insn.
4015 * gcse.c (insert_insn_end_basic_block): Likewise.
4016
4017 PR rtl-optimization/46034
4018 PR rtl-optimization/46212
4019 PR rtl-optimization/46248
4020 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
4021 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
4022 before i0dest -> i0src substitution and pass 1 instead of 0 as last
4023 argument to subst on i2pat.
4024
4025 2010-11-02 Ian Lance Taylor <iant@google.com>
4026
4027 * configure.ac: Use AC_SYS_LARGEFILE.
4028 * configure: Rebuild.
4029 * config.in: Rebuild.
4030
4031 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
4032
4033 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
4034 fold_convert.
4035 * c-typeck.c (build_function_call_vec): Likewise.
4036 * cfgexpand.c (expand_debug_expr): Likewise.
4037 * cgraphunit.c (assemble_thunk): Likewise.
4038 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
4039 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
4040 (fold_binary_loc, fold_ternary_loc): Likewise.
4041 * gimple-fold.c (get_symbol_constant_value): Likewise.
4042 * gimple-low.c (lower_builtin_setjmp): Likewise.
4043 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
4044 * gimplify.c (gimplify_init_constructor): Likewise.
4045 * lambda.h (build_linear_expr): Likewise.
4046 * omp-low.c (omp_reduction_init): Likewise.
4047 * tree-inline.c (remap_ssa_name): Likewise.
4048 * tree-object-size.c (compute_object_sizes): Likewise.
4049 * tree-sra.c (init_subtree_with_zero): Likewise.
4050 (sra_ipa_modify_assign): Likewise.
4051 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
4052 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
4053 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
4054 (undistribute_ops_list): Likewise.
4055 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
4056 * tree-vect-stmts.c (vectorizable_call): Likewise.
4057 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
4058 (build_zero_cst): Handle more cases directly. Update comment.
4059
4060 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
4061
4062 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
4063 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
4064
4065 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
4066 and call ix86_split_call_vzeroupper instead of
4067 ix86_split_call_pop_vzeroupper.
4068 (*call_pop_1_vzeroupper): Likewise.
4069 (*sibcall_pop_1_vzeroupper): Likewise.
4070 (*call_value_pop_0_vzeroupper): Likewise.
4071 (*call_value_pop_1_vzeroupper): Likewise.
4072 (*sibcall_value_pop_1_vzeroupper): Likewise.
4073
4074 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
4075
4076 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
4077
4078 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
4079
4080 * basic-block.h (insert_insn_end_bb_new): Delete.
4081 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
4082
4083 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
4084 H.J. Lu <hongjiu.lu@intel.com>
4085
4086 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
4087 (ix86_split_call_pop_vzeroupper): Likewise.
4088
4089 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
4090 (ix86_expand_call): Conditionally decorate calls with
4091 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
4092 (ix86_split_call_vzeroupper): New.
4093 (ix86_split_call_pop_vzeroupper): Likewise.
4094
4095 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
4096 (*call_pop_0_vzeroupper): New insn_and_split pattern.
4097 (*call_pop_1_vzeroupper): Likewise.
4098 (*sibcall_pop_1_vzeroupper): Likewise.
4099 (*call_0_vzeroupper): Likewise.
4100 (*call_1_vzeroupper): Likewise.
4101 (*sibcall_1_vzeroupper): Likewise.
4102 (*call_1_rex64_vzeroupper): Likewise.
4103 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
4104 (*call_1_rex64_large_vzeroupper): Likewise.
4105 (*sibcall_1_rex64_vzeroupper): Likewise.
4106 (*call_value_pop_0_vzeroupper): Likewise.
4107 (*call_value_pop_1_vzeroupper): Likewise.
4108 (*sibcall_value_pop_1_vzeroupper): Likewise.
4109 (*call_value_0_vzeroupper): Likewise.
4110 (*call_value_0_rex64_vzeroupper): Likewise.
4111 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
4112 (*call_value_1_vzeroupper): Likewise.
4113 (*sibcall_value_1_vzeroupper): Likewise.
4114 (*call_value_1_rex64_vzeroupper): Likewise.
4115 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
4116 (*call_value_1_rex64_large_vzeroupper): Likewise.
4117 (*sibcall_value_1_rex64_vzeroupper): Likewise.
4118
4119 2010-11-02 Ian Lance Taylor <iant@google.com>
4120
4121 PR lto/46273
4122 * config.gcc: Revert last patch: set lto_binary_reader.
4123
4124 2010-11-02 Richard Guenther <rguenther@suse.de>
4125
4126 PR tree-optimization/46149
4127 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
4128 non-indirect MEM_REF variants.
4129
4130 2010-11-02 Richard Guenther <rguenther@suse.de>
4131
4132 PR tree-optimization/46216
4133 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4134 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
4135
4136 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4137
4138 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
4139 (*-*-osf*): Likewise.
4140 * configure: Regenerate.
4141
4142 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
4143
4144 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
4145 for Intel Core 2 and Core i7.
4146
4147 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
4148
4149 Model decoder of Core 2/i7 for multipass scheduling.
4150
4151 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
4152 New type to hold target-specific data for multipass scheduling.
4153 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
4154 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
4155 Core 2/i7.
4156 (core2i7_secondary_decoder_max_insn_size,)
4157 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
4158 New static variables.
4159 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
4160 ([_]ix86_first_cycle_multipass_data): New static variable.
4161 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
4162 Implement targetm.sched hooks.
4163 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
4164 of ...
4165 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
4166 Implement new targetm.sched hooks.
4167 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
4168 targetm.sched hook to install multipass scheduling hooks on demand.
4169
4170 * doc/tm.texi.in: Document new targetm.sched hooks.
4171 * doc/tm.texi: Regenerate.
4172
4173 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
4174 (first_cycle_multipass_data_t): New typedef.
4175 (struct choice_entry: target_data): New field.
4176 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
4177 to allow target model restrictions not represented in DFA.
4178 (choose_ready, schedule_block): Update.
4179 (sched_extend_ready_list, sched_finish_ready_list): Call new target
4180 hooks to initialize target-specific data for multipass scheduling.
4181 * sched-int.h (max_issue): Update declaration.
4182 * sel-sched.c (choose_best_insn): Update.
4183 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
4184 (first_cycle_multipass_{init, fini}): Define and document new
4185 targetm.sched hooks.
4186
4187 2010-11-02 Richard Guenther <rguenther@suse.de>
4188
4189 PR tree-optimization/46184
4190 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
4191 input vector type from the reduction operand as well.
4192
4193 2010-11-02 Richard Guenther <rguenther@suse.de>
4194
4195 PR tree-optimization/46177
4196 * tree-loop-distribution.c (prop_phis): Use
4197 mark_virtual_phi_result_for_renaming.
4198
4199 2010-11-02 Martin Jambor <mjambor@suse.cz>
4200
4201 PR middle-end/46120
4202 * tree.c (get_binfo_at_offset): Bail out on artificial
4203 fields. Identify primary bases according to their offsets.
4204
4205 2010-11-02 Martin Jambor <mjambor@suse.cz>
4206
4207 PR tree-optimization/45875
4208 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
4209 (gimple_get_relevant_ref_binfo): Detect primary bases according to
4210 their field offset.
4211
4212 2010-11-02 Ian Lance Taylor <iant@google.com>
4213
4214 * doc/install.texi (Configuration): Note in two places that Java
4215 is not enabled by default.
4216
4217 2010-11-02 Ian Lance Taylor <iant@google.com>
4218
4219 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
4220 (Configuration): Mention --disable-lto. Remove --with-libelf
4221 paragraph.
4222
4223 2010-11-02 Ian Lance Taylor <iant@google.com>
4224
4225 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
4226 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
4227 LIBELFINC. Remove HAVE_libelf.
4228 * config.gcc: Don't set lto_binary_reader.
4229 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
4230 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
4231 (LIBS): Remove $(LIBELFLIBS).
4232 (INCLUDES): Remove $(LIBELFINC).
4233 * configure: Rebuild.
4234 * config.in: Rebuild.
4235
4236 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
4237
4238 * config/microblaze/microblaze-protos.h (function_arg): Delete.
4239 (function_arg_advance): Delete.
4240 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
4241 (FUNCTION_ARG): Delete.
4242 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
4243 (microblaze_function_arg_advance): ...this. Make static. Take a
4244 const_tree and a bool.
4245 (function-arg): Rename to...
4246 (microblaze_function_arg): ...this. Make static. Take a const_tree
4247 and a bool.
4248 (microblaze_expand_prologue): Call targetm.calls.function_arg and
4249 targetm.calls.function_arg_advance.
4250 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4251
4252 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
4253
4254 Merge from FSF "apple/trunk" branch.
4255
4256 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
4257 * config/darwin.opt: .. to here.
4258 (matt-stubs): New option.
4259 * config/i386/darwin.opt: Delete.
4260 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
4261 (MACHO_DYNAMIC_NO_PIC_P): New.
4262 (MACHOPIC_INDIRECT): New.
4263 (MACHOPIC_PURE): New.
4264 * config/i386/darwin.h (DARWIN_X86) Define to 1.
4265 (MACHOPIC_ATT_STUB): New.
4266 (CC1_SPEC): Do not remove mdynamic-no-pic.
4267 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
4268 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
4269 (FUNCTION_PROFILER): Correct over-length line.
4270 (SUBTARGET_OVERRIDE_OPTIONS): New.
4271 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
4272 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
4273 (legitimate_constant_p): Handle mdynamic-no-pic.
4274 (ix86_legitimate_address_p): Likewise.
4275 (ix86_legitimize_address): Likewise.
4276 (ix86_expand_move): Likewise.
4277 (machopic_output_stub): Update for ATT-style stubs and
4278 mdynamic-no-pic.
4279 * config/darwin-protos.h (machopic_symbol_defined_p): New.
4280 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
4281 TARGET_DYNAMIC_NO_PIC: Remove.
4282 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
4283 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
4284 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
4285 Remove handling of mdynamic-no-pic.
4286 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
4287 Define if required.
4288 (machopic_symbol_defined_p): Do not try to use current_function_decl
4289 when generating _get_pc thunks within stubs.
4290 (machopic_indirect_data_reference): Rework for direct conditionals
4291 rather than #ifdefs, add x86 mdynamic-no-pic
4292 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
4293 defined value.
4294 (darwin_override_options): Handle mdynamic-no-pic here.
4295 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
4296 (machopic_lazy_symbol_ptr3_section): New.
4297 (machopic_picsymbol_stub2_section): New.
4298 (machopic_picsymbol_stub3_section): New.
4299 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
4300 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
4301 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
4302 Moved common definition from x86 and rs6000.
4303 (MACHO_DYNAMIC_NO_PIC_P): Override value.
4304 (MACHOPIC_INDIRECT): Likewise.
4305 (MACHOPIC_PURE): Likewise.
4306 * config.gcc (x86-darwin-*): Remove darwin.opt.
4307
4308 2010-11-02 Jakub Jelinek <jakub@redhat.com>
4309
4310 PR debug/46255
4311 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
4312 instead of gsi_last_bb.
4313
4314 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
4315 Maxim Kuvyrkov <maxim@codesourcery.com>
4316
4317 * config/i386/i386.c (cpu_names): Add "corei7".
4318 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
4319
4320 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
4321 Maxim Kuvyrkov <maxim@codesourcery.com>
4322
4323 Tune alignment for Intel Core i7
4324
4325 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
4326 (enum processor_type): Update comment. Add entries for Core i7.
4327 * config/i386-c.c (ix86_target_macros_internal): Update.
4328 * config/i386.c (m_COREI7{_32,_64}): New macros.
4329 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
4330 (processor_target_table): Tune alignment for Core i7.
4331 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
4332
4333 * doc/invoke.texi: Document "corei7" option value.
4334
4335 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
4336 Maxim Kuvyrkov <maxim@codesourcery.com>
4337 H.J. Lu <hjl.tools@gmail.com>
4338
4339 Basic support for Intel Core i7
4340
4341 * i386.c (ix86_option_override_internal): Add entry for corei7, use
4342 generic tuning. Use generic32 when compiling for 32-bit ABI.
4343
4344 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
4345
4346 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
4347 sections and call darwin_asm_dwarf_section() to handle them.
4348 (darwin_asm_dwarf_section): New.
4349 (darwin_file_start): Remove code emitting dwarf section symbols.
4350
4351 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
4352
4353 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
4354 explicitly disable stack protection when building libgcc.
4355 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
4356
4357 2010-11-01 Jason Merrill <jason@redhat.com>
4358
4359 * fold-const.c (fold_indirect_ref_1): Handle folding
4360 POINTER_PLUS_EXPR to ARRAY_REF.
4361
4362 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
4363
4364 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
4365 (sh_delegitimize_address): New function.
4366
4367 2010-11-01 Joseph Myers <joseph@codesourcery.com>
4368
4369 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
4370 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
4371 (CC1_SPEC): Don't handle -target.
4372 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
4373 options.
4374 * config/darwin.opt (Zallowable_client, Zbundle_loader,
4375 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
4376 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
4377 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
4378 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
4379 Zweak_reference_mismatches, client_name, compatibility_version,
4380 current_version, dylinker_install_name, pagezero_size,
4381 read_only_relocs, seg1addr, segs_read_only_addr,
4382 segs_read_write_addr, sub_library, sub_umbrella): New.
4383 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
4384 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
4385 * config/freebsd.opt: New.
4386 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
4387 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
4388 * config/rpath.opt: New.
4389 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
4390 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
4391 Use rpath.opt.
4392
4393 2010-11-01 Joseph Myers <joseph@codesourcery.com>
4394
4395 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
4396 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
4397 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
4398 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
4399 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
4400 Document that options in .opt files do not need to be included.
4401 * doc/tm.texi: Regenerate.
4402 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
4403 * opts-common.c: Update comment on tm.h include.
4404 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
4405 * system.h (SWITCH_TAKES_ARG): Poison.
4406 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
4407 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
4408 in darwin.opt.
4409 (LINK_COMMAND_SPEC_A): Don't include %{x}.
4410 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4411 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
4412 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
4413 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4414 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
4415 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
4416 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
4417 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
4418 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4419 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
4420 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
4421 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
4422 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
4423 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
4424 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
4425 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
4426 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
4427 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
4428 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
4429 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
4430 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
4431 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
4432 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
4433
4434 2010-11-01 Paul Koning <ni1d@arrl.net>
4435
4436 * config/pdp11/pdp11.md: Use iterators.
4437 (addqi3, subqi3, iorsi3, xorsi3): Delete.
4438
4439 2010-11-01 Steve Ellcey <sje@cup.hp.com>
4440
4441 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
4442 GCC_INSN_FLAGS_H.
4443 * libgcov.c (__gcov_indirect_call_profiler): Set
4444 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
4445 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
4446
4447 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
4448
4449 PR tree-optimization/46259
4450
4451 Revert:
4452 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
4453 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
4454 build_vector_from_val.
4455
4456 2010-11-01 DJ Delorie <dj@redhat.com>
4457
4458 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
4459 as well as an assertion.
4460
4461 2010-11-01 Paul Koning <ni1d@arrl.net>
4462
4463 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
4464 complex modes in memory.
4465
4466 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
4467
4468 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
4469
4470 2010-11-01 Jakub Jelinek <jakub@redhat.com>
4471
4472 PR target/45250
4473 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
4474 (cfa_base_offset): New variable.
4475 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
4476 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
4477 is NULL.
4478 (vt_init_cfa_base): Initialize cfa_base_offset.
4479
4480 2010-11-01 Alan Modra <amodra@gmail.com>
4481
4482 PR target/46030
4483 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
4484 and savres_strategy.
4485 (stack_info): New file scope var.
4486 (rs6000_init_machine_status): Init stack_info.
4487 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
4488 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
4489 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
4490 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
4491 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
4492 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
4493 (rs6000_savres_strategy): Rewrite.
4494 (rs6000_stack_info): Use "stack_info" in place of local "info".
4495 Return cached stack info when reload_completed unless ENABLE_CHECKING
4496 in which case confirm newly calculated stack info matches old info.
4497 Delay calculation of lr_save_p, set it for out of line gp save/restore
4498 as well as fp. Call rs6000_savres_strategy from here..
4499 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
4500 (rs6000_output_function_prologue): Use info->savres_strategy to
4501 determine whether fp save/restore externs need to be emitted.
4502
4503 2010-10-31 Jason Merrill <jason@redhat.com>
4504
4505 * tree.h (EXPR_LOC_OR_HERE): New macro.
4506 * builtins.c (c_strlen): Use it.
4507 * c-decl.c (build_enumerator): Likewise.
4508 * gimplify.c (internal_get_tmp_var): Likewise.
4509 (shortcut_cond_expr): Likewise.
4510 (gimplify_one_sizepos): Likewise.
4511
4512 2010-10-31 Richard Henderson <rth@redhat.com>
4513
4514 * config/i386/cygming.h (TARGET_SEH): New.
4515 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
4516 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
4517 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
4518 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
4519 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
4520 (ASM_DECLARE_FUNCTION_SIZE): New.
4521 * config/i386/i386-protos.h: Update.
4522 * config/i386/i386.c (ix86_option_override_internal): Enable
4523 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
4524 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
4525 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
4526 (ix86_compute_frame_layout): For SEH, disable
4527 use_fast_prologue_epilogue, move frame pointer to the end of
4528 the frame. Initialize hfp_save_offset.
4529 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
4530 at end of prologue for SEH.
4531 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
4532 emit blockage at beginning of epilogue.
4533 (ix86_expand_binary_operator): After reload, emit LEA if needed.
4534 (ix86_output_call_insn): New.
4535 * config/i386/i386.h (TARGET_SEH): New.
4536 (struct machine_function): Add member seh.
4537 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
4538 * config/i386/winnt.c (struct seh_frame_state): New.
4539 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
4540 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
4541 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
4542 i386_pe_start_function, i386_pe_end_function): New.
4543
4544 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
4545 as CFA_STORE in rules 12 and 13.
4546
4547 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
4548
4549 PR tree-optimization/46142
4550 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
4551 accommodate third function argument.
4552
4553 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
4554
4555 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
4556
4557 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
4558
4559 * fold-const.c (build_zero_vector): Use build_vector_from_val.
4560 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
4561 (get_initial_def_for_reduction): Likewise.
4562 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
4563 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
4564 * tree.c (build_one_cst): Likewise.
4565 (build_vector_from_val): Use types_compatible_p for assert.
4566
4567 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
4568
4569 * emit-rtl.c (mark_used_flags): New function.
4570 (set_used_flags, reset_used_flags): Call it.
4571
4572 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
4573
4574 PR middle-end/44569
4575 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
4576 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
4577
4578 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
4579
4580 PR target/46195
4581 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
4582 (ix86_compat_aligned_value_p): This.
4583 (ix86_old_function_arg_boundary): Renamed to ...
4584 (ix86_compat_function_arg_boundary): This. Updated.
4585 (ix86_contains_aligned_value_p): New.
4586 (ix86_function_arg_boundary): Align long double parameters on
4587 stack to 4byte in 32bit.
4588
4589 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
4590
4591 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
4592 * c-parser.c (c_parser_objc_at_property_declaration): Removed
4593 parsing of RID_COPIES and RID_IVAR. Updated call to
4594 objc_add_property_declaration.
4595 * c-typecheck.c (build_component_ref): Call
4596 objc_maybe_build_component_ref instead of objc_build_setter_call.
4597 Use objc_is_property_ref to improve Objective-C checks.
4598 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
4599 of objc_build_getter_call.
4600
4601 2010-10-29 Paul Koning <ni1d@arrl.net>
4602
4603 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
4604 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
4605 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
4606 (REG_OK_STRICT): Move description.
4607
4608 2010-10-29 Paul Koning <ni1d@arrl.net>
4609
4610 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
4611
4612 2010-10-29 Paul Koning <ni1d@arrl.net>
4613
4614 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
4615
4616 2010-10-29 Paul Koning <ni1d@arrl.net>
4617
4618 PR/41822
4619 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
4620
4621 2010-10-29 Richard Henderson <rth@redhat.com>
4622
4623 PR rtl-opt/46226
4624 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
4625 for asm goto.
4626
4627 2010-10-29 Paul Koning <ni1d@arrl.net>
4628
4629 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
4630 register to register move.
4631
4632 2010-10-29 Paul Koning <ni1d@arrl.net>
4633
4634 * config/pdp11/pdp11.c (print_operand_address): Correct handling
4635 of integer constant addresses, delete vax-only logic.
4636
4637 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
4638
4639 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
4640 a conditional expression.
4641
4642 2010-10-29 Paul Koning <ni1d@arrl.net>
4643
4644 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
4645 instruction encoding.
4646
4647 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
4648 Andrew Pinski <pinskia@gmail.com>
4649
4650 * tree.h (build_vector_from_val): Declare.
4651 * tree.c (build_vector_from_val): New function.
4652 * c-typeck.c (build_binary_op): Handle vector shifting.
4653 * doc/extend.texi: Description of the vector shifting operation.
4654
4655 2010-10-29 Paul Koning <pkoning@equallogic.com>
4656
4657 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
4658 pdp11_secondary_memory_needed): Declare.
4659 * config/pdp11/predicates.md (float_operand): New predicate.
4660 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
4661 (cbranchdf4, movdf): Change predicate.
4662 (movsf): Handle FPU register case.
4663 (truncdfsf2, extendsfdf2): Add FPU register case.
4664 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
4665 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
4666 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
4667 (pdp11_register_move_cost): Update cost matrix.
4668 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
4669 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
4670 pdp11_secondary_memory_needed): New function.
4671 (pdp11_return_in_memory): Add other float types.
4672 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
4673 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
4674 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
4675 REGISTER_MOVE_COST): Delete.
4676 (BASE_RETURN_VALUE_REG): Add other float types.
4677
4678 2010-10-29 Nick Clifton <nickc@redhat.com>
4679
4680 * doc/invoke.texi: Document -mam34 and -mtune options.
4681 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
4682 (mn10300_tune_cpu): New variable.
4683 (mn10300_handle_option): Handle -mam34 and -mtune options.
4684 (mn10300_option_override): Convert tune string into tune cpu variable.
4685 (mn10300_legitimate_constant_p): Delete unused local variable.
4686 (is_load_insn): New function.
4687 (is_store_insn): New function.
4688 (mn10300_adjust_schedule_cost): New function.
4689 (TARGET_SCHED_ADJUST_COST): Define.
4690 * config/mn10300/mn10300.opt (mam34): New option.
4691 (mtune): New option.
4692 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
4693 (enum processor_type): Add AM34.
4694 (TARGET_AM34): Define.
4695 * config/mn10300/mn10300.md (attr cpu): Add am34.
4696 Add pipeline description.
4697 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
4698 Remove unneeded alternatives. Add timing attribute.
4699 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
4700 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
4701 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
4702 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
4703 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
4704 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
4705 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
4706 float_conditional_branch, jump, indirect_jump, tablejump,
4707 call_internal, call_value_internal, zero_extendqisi2_am33,
4708 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
4709 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
4710 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
4711 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
4712 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
4713 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
4714 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
4715 return_internal_regs, store_movm, return, call_next_insn):
4716 Add timing attribute.
4717 (am33_subsi3): Add missing clobber of CC_REG.
4718 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
4719 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
4720 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
4721 extendqisi2): Fix predicates.
4722 (call_internal, call_internal_value): Separate alternatives.
4723 * config/mn10300/t-mn10300: Add AM34 multilib.
4724
4725 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
4726
4727 * config/sh/sh.c (sh_promote_function_mode): Use
4728 default_promote_function_mode if !sh_promote_prototypes.
4729
4730 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
4731
4732 * recog.c (split_all_insns): Remove dead code.
4733
4734 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4735
4736 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4737
4738 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4739
4740 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
4741 (FUNCTION_ARG_ADVANCE): Delete.
4742 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
4743 functions.
4744 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
4745 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4746 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4747
4748 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4749
4750 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
4751 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4752 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
4753 Take a const_tree and a bool.
4754 (mcore_function_arg_advance): New function.
4755 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4756
4757 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4758
4759 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
4760 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4761 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
4762 Take a const_tree and a bool.
4763 (mcore_function_arg_advance): New function.
4764 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4765
4766 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4767
4768 * config/h8300/h8300-protos.h (function_arg): Delete.
4769 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4770 * config/h8300/h8300.c (function_arg): Rename to...
4771 (h8300_function_arg): ...this. Make static. Take a const_tree and
4772 a bool.
4773 (h8300_function_arg_advance): New function.
4774 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4775
4776 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4777
4778 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
4779 to...
4780 * config/arc/arc.c (arc_function_arg): ...here and...
4781 (arc_function_arg_advance): ...here. New functions.
4782 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4783
4784 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4785
4786 * config/crx/crx-protos.h (crx_function_arg): Delete.
4787 (crx_function_arg_advance): Delete.
4788 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4789 * config/crx/crx.c (crx_function_arg): Make static. Take a
4790 const_tree and a bool.
4791 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
4792 (enough_regs_for_param): Take a const_tree.
4793 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4794
4795 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4796
4797 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
4798 (m68hc11_function_arg_advance): Delete.
4799 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
4800 (FUNCTION_ARG_ADVANCE): Delete.
4801 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
4802 Take a const_tree and a bool.
4803 (m68hc11_function_arg_advance): Likewise.
4804 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4805
4806 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4807
4808 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
4809 (xstormy16_function_arg_advance): Delete.
4810 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
4811 (FUNCTION_ARG_ADVANCE): Delete.
4812 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
4813 Take a const_tree and a bool.
4814 (xstormy16_function_arg_advance): Likewise. Return void, updating
4815 the CUM parameter instead.
4816 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4817
4818 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4819
4820 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
4821 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4822 (MOXIE_FUNCTION_ARG_SIZE): Move to...
4823 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
4824 (moxie_function_arg): Make static. Take a const_tree and a bool.
4825 (moxie_function_arg_advance): New function.
4826 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4827
4828 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4829
4830 * config/mn10300/mn10300-protos.h (function_arg): Delete.
4831 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
4832 (FUNCTION_ARG_ADVANCE): Delete.
4833 * config/mn10300/mn10300.c (function_arg): Rename to...
4834 (mn10300_function_arg): ...this. Make static. Take a const_tree
4835 and a bool.
4836 (mn10300_function_arg_advance): New function.
4837 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4838
4839 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4840
4841 * config/iq2000/iq2000-protos.h (function_arg): Delete.
4842 (function_arg_advance): Delete.
4843 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4844 * config/iq2000/iq2000.c (function_arg): Rename to...
4845 (iq2000_function_arg): ...this. Make static. Take a const_tree and
4846 a bool.
4847 (function_arg_advance): Rename to...
4848 (iq2000_function_arg_advance): ...this. Make static. Take a
4849 const_tree and a bool.
4850 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
4851 iq2000_function_arg.
4852 (iq2000_pass_by_reference): Call iq2000_function_arg).
4853 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4854
4855 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4856
4857 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
4858 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4859 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
4860 const_tree.
4861 (fr30_function_arg): New function.
4862 (fr30_function_arg_advance): New function.
4863 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4864
4865 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
4866
4867 * config/frv/frv-protos.h (frv_function_arg): Delete.
4868 (frv_function_arg_advance): Delete.
4869 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4870 * config/frv/frv.c (frv_function_arg): Rename to...
4871 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
4872 (frv_function_arg, frv_function_incoming_arg): New functions.
4873 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
4874 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4875 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4876
4877 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
4878
4879 PR target/46153
4880 * config/i386/sse.md (sse_movhlps_exp): Use destination
4881 returned from ix86_fixup_binary_operands to expand insn.
4882 (sse_movlhps_exp): Ditto.
4883 (sse_loadhps_exp): Ditto.
4884 (sse_loadlps_exp): Ditto.
4885 (sse2_loadhpd_exp): Ditto.
4886 (sse2_loadlpd_exp): Ditto.
4887
4888 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
4889
4890 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
4891 constants in thumb2.
4892
4893 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
4894
4895 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
4896 arithmetics in masking operations.
4897 (contains_muldiv): Likewise.
4898 (try_combine): Likewise.
4899 (find_split_point): Likewise.
4900 (combine_simplify_rtx): Likewise.
4901 (simplify_if_then_else): Likewise.
4902 (simplify_set): Likewise.
4903 (expand_compound_operation): Likewise.
4904 (expand_field_assignment): Likewise.
4905 (make_extraction): Likewise.
4906 (extract_left_shift): Likewise.
4907 (make_compound_operation): Likewise.
4908 (force_to_mode): Likewise.
4909 (make_field_assignment): Likewise.
4910 (reg_nonzero_bits_for_combine): Likewise.
4911 (simplify_shift_const_1): Likewise.
4912 (simplify_comparison): Likewise.
4913
4914 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
4915
4916 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
4917 (ia64_function_arg_advance): Delete.
4918 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
4919 (FUNCTION_ARG_ADVANCE): Delete.
4920 * config/ia64/ia64.c (ia64_function_arg): Rename to...
4921 (ia64_function_arg_1): ...this. Make static. Take const_tree and
4922 bool arguments.
4923 (ia64_function_arg, ia64_function_incoming_arg): New functions.
4924 (ia64_function_arg_advance): Make static. Take a const_tree and
4925 a bool.
4926 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4927 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4928
4929 2010-10-27 Steve Ellcey <sje@cup.hp.com>
4930
4931 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
4932 (TARGET_GET_RAW_ARG_MODE): New.
4933 * doc/tm.texi: Regenerate.
4934 * target.def (get_raw_result_mode): New.
4935 (get_raw_arg_mode): New.
4936 * targhooks.c (default_get_reg_raw_mode): New.
4937 * targhooks.h (default_get_reg_raw_mode): New.
4938 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
4939 (apply_result_size): Ditto.
4940 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
4941 (TARGET_GET_RAW_RESULT_MODE): Define.
4942 (TARGET_GET_RAW_ARG_MODE): Ditto.
4943
4944 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
4945
4946 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
4947 for newer Solaris 10 release.
4948 (sparc_fallback_frame_state): Likewise.
4949
4950 2010-10-27 Jason Merrill <jason@redhat.com>
4951
4952 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
4953 variables sooner.
4954
4955 2010-10-27 Jie Zhang <jie@codesourcery.com>
4956 Maxim Kuvyrkov <maxim@codesourcery.com>
4957
4958 * haifa-sched.c (ISSUE_POINTS): Remove.
4959 (max_issue): Don't issue more than issue_rate instructions.
4960
4961 2010-10-27 Ian Lance Taylor <iant@google.com>
4962
4963 PR target/46197
4964 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
4965 (split_stack_return): Replace UNSPEC_STACK_CHECK with
4966 UNSPECV_SPLIT_STACK_RETURN.
4967
4968 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
4969
4970 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
4971
4972 * config/i386/i386.c (block_info): New.
4973 (BLOCK_INFO): Likewise.
4974 (call_avx256_state): Likewise.
4975 (check_avx256_stores): Likewise.
4976 (move_or_delete_vzeroupper_2): Likewise.
4977 (move_or_delete_vzeroupper_1): Likewise.
4978 (move_or_delete_vzeroupper): Likewise.
4979 (use_avx256_p): Likewise.
4980 (function_pass_avx256_p): Likewise.
4981 (flag_opts): Add -mvzeroupper.
4982 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
4983 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
4984 is disabled.
4985 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
4986 generate vzeroupper.
4987 (init_cumulative_args): Add an int to indicate caller. Set
4988 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
4989 based on return type.
4990 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
4991 caller_pass_avx256_p based on argument type.
4992 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
4993 is used, but not returned by caller.
4994 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
4995 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
4996 is used.
4997 (ix86_minimum_alignment): Likewise.
4998 (ix86_expand_special_args_builtin): Set target to
4999 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
5000 (ix86_reorg): Run the vzeroupper optimization if needed.
5001
5002 * config/i386/i386.h (ix86_args): Add caller.
5003 (INIT_CUMULATIVE_ARGS): Updated.
5004 (machine_function): Add use_vzeroupper_p, use_avx256_p,
5005 caller_pass_avx256_p, caller_return_avx256_p,
5006 callee_pass_avx256_p and callee_return_avx256_p.
5007
5008 * config/i386/i386.opt (-mvzeroupper): New.
5009
5010 * config/i386/predicates.md (vzeroupper_operation): Removed.
5011
5012 * config/i386/sse.md (avx_vzeroupper): Removed.
5013 (*avx_vzeroupper): Removed.
5014 (avx_vzeroupper): New.
5015
5016 * doc/invoke.texi: Document -mvzeroupper.
5017
5018 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
5019
5020 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
5021 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
5022 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
5023
5024 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
5025 Olivier Hainque <hainque@adacore.com>
5026
5027 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
5028 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
5029 fs->signal_frame instead.
5030
5031 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5032
5033 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
5034 parsing of RID_COPIES and RID_IVAR.
5035
5036 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5037
5038 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
5039 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
5040 Do not use objc_set_property_attr, but use local variables
5041 instead. Detect repeated usage of setter, getter and ivar
5042 attributes. Improved error processing when a setter name does not
5043 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
5044 that the token is a keyword. Updated call to
5045 objc_add_property_declaration.
5046
5047 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
5048
5049 * c-parser.c (c_parser_objc_at_property): Renamed to
5050 c_parser_objc_at_property_declaration. Updated calls to
5051 objc_add_property_variable, now objc_add_property_declaration.
5052 Code rewritten to be much more robust in recovering from syntax
5053 errors. Added comments.
5054 (c_parser_objc_property_attrlist): Removed.
5055 (c_parser_external_declaration): Updated calls to
5056 c_parser_objc_at_property, now
5057 c_parser_objc_at_property_declaration.
5058 (c_parser_objc_methodprotolist): Same change.
5059
5060 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
5061
5062 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
5063
5064 2010-10-26 Jan Hubicka <jh@suse.cz>
5065
5066 * ipa.c (process_references): Enqueue all referenced nodes;
5067 mark as reachable only non-external nodes.
5068 (cgraph_remove_unreachable_nodes): All referenced nodes should
5069 be enqueued; remove bogues node->needed check.
5070
5071 2010-10-26 Jan Hubicka <jh@suse.cz>
5072
5073 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
5074 to represent OMP.
5075
5076 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
5077
5078 * config/i386/i386.md (split_stack_return): Replace
5079 unspec_volatile with unspec.
5080
5081 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
5082
5083 * doc/install.texi: Fix typo in --with-sysroot description.
5084
5085 2010-10-26 Jan Hubicka <jh@suse.cz>
5086
5087 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
5088 Use info provided by linker plugin.
5089
5090 2010-10-26 Jason Merrill <jason@redhat.com>
5091
5092 * varasm.c (constructor_static_from_elts_p): Don't require a
5093 CONSTRUCTOR to have elements to be suitable for static
5094 initialization. Allow ARRAY_TYPE as well.
5095
5096 2010-10-26 Jan Hubicka <jh@suse.cz>
5097
5098 PR middle-end/45736
5099 * cgraph.c (cgraph_set_readonly_flag): Rename to...
5100 (cgraph_set_const_flags) ... this one; get also looping argument;
5101 clear constructor/destructor flags.
5102 (cgraph_set_pure_flag): Likewise.
5103 (cgraph_set_looping_const_or_pure_flag): Remove.
5104 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
5105 to optimize away static ctors/dtors; it does not work on inline clones;
5106 external functions can always be rmeoved.
5107 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
5108 inline clones; in LTO external functions always can go.
5109 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
5110 (cgraph_mark_address_taken_node): Assert that we are not taking
5111 address of inline clone.
5112 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
5113 external functions.
5114 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
5115 address taken.
5116 (ipcp_initialize_node_lattices): Only local functions can be
5117 handled without cloning.
5118 * cgraph.h (cgraph_set_readonly_flag,
5119 cgraph_set_looping_const_or_pure_flag): Remove.
5120 (cgraph_set_const_flag): Declare.
5121 (cgraph_set_pure_flag): Update.
5122 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
5123 flags setting code.
5124 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
5125 look at inline clones; fix handling of external definitions.
5126 (cgraph_postorder): Do not look at inline clones in the first pass.
5127 (function_and_variable_visibility): Drop constructors/destructor
5128 flags at pure and const functions.
5129 * tree-profile.c (tree_profiling): Update.
5130 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
5131 address taken; external functions do not account to whole program size.
5132 (cgraph_decide_inlining): Likewise; do not try to inline
5133 functions already inlined.
5134
5135 2010-10-26 Jie Zhang <jie@codesourcery.com>
5136
5137 * doc/invoke.texi: Improve documentation of
5138 -fstrict-volatile-bitfields.
5139
5140 2010-10-26 Ira Rosen <irar@il.ibm.com>
5141
5142 PR tree-optimization/46167
5143 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
5144 is basic block for the statement.
5145
5146 2010-10-26 Paul Koning <ni1d@arrl.net>
5147
5148 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
5149 current definition of struct_real_format.
5150
5151 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
5152
5153 PR target/44948
5154 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
5155 (ix86_function_arg_boundary): Always align parameters on stack
5156 in 64bit and align parameters with alignment >= 16byte on stack
5157 in 32bit. Warn alignment change.
5158
5159 2010-10-26 Ian Lance Taylor <iant@google.com>
5160
5161 PR middle-end/45687
5162 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
5163 offset.
5164
5165 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
5166
5167 Implement opaque-enum-specifiesr for C++0x
5168 * tree.h (ENUM_IS_OPAQUE): New.
5169 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
5170
5171 2010-10-26 Jie Zhang <jie@codesourcery.com>
5172
5173 * stor-layout.c (layout_decl): Use the field's type to
5174 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
5175 * config/arm/arm.c (arm_override_options): Default to
5176 -fstrict-volatile-bitfields.
5177
5178 2010-10-25 Paul Koning <ni1d@arrl.net>
5179
5180 * config/pdp11/pdp11.md: Add define_constants for register
5181 numbers, branch offset limits.
5182 * config/pdp11/pdp11.c: Use named constants instead of numbers.
5183 * config/pdp11.pdp11.h: Ditto.
5184
5185 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
5186
5187 * configure.ac: Use $cpu_type instead of $target to define the nop.
5188 * configure: Regenerate.
5189
5190 2010-10-25 Jie Zhang <jie@codesourcery.com>
5191
5192 * combine.c (try_combine): If insns need to be kept around, check that
5193 they can be copied in the merged instruction.
5194
5195 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
5196
5197 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
5198 has been modified.
5199 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
5200 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
5201 it has been modified.
5202
5203 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
5204
5205 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
5206
5207 2010-10-24 Paul Koning <ni1d@arrl.net>
5208
5209 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
5210 * config/pdp11/pdp11.c (output_jump): Ditto.
5211
5212 2010-10-24 Ian Lance Taylor <iant@google.com>
5213
5214 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
5215
5216 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
5217
5218 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
5219 least one insn with a locus corresponding to an edge's goto_locus,
5220 disregard non-fallthru edges to the exit block and merge the blocks
5221 created for the same goto_locus.
5222
5223 2010-10-23 Joseph Myers <joseph@codesourcery.com>
5224
5225 * gcc.c (n_switches_alloc_debug_check): New.
5226 (set_option_handlers): New.
5227 (process_command): Use set_option_handlers.
5228 (do_self_spec): Pass spec-generated options through option handlers.
5229 (main): Also save and restore n_switches_alloc when swapping
5230 switch arrays.
5231
5232 2010-10-23 Richard Henderson <rth@redhat.com>
5233
5234 PR target/46144
5235 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
5236 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
5237 Honor matching operands when splitting to XOR.
5238
5239 2010-10-23 Ian Lance Taylor <iant@google.com>
5240
5241 * tree-vrp.c (extract_range_from_binary_expr): If
5242 flag_non_call_exceptions don't eliminate division by zero.
5243 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5244
5245 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
5246
5247 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
5248 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
5249 __ORDER_PDP_ENDIAN__.
5250 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5251 (struct DWstruct): Define based on __BYTE_ORDER__.
5252 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5253 (struct INTstruct): Define based on __BYTE_ORDER__.
5254 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5255 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
5256 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
5257 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5258 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5259 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5260 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5261 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5262 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5263 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5264 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5265 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5266 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5267 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5268 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5269 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5270 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5271 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5272 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
5273 * doc/tm.texi: Regenerate.
5274 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
5275 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
5276
5277 2010-10-23 Jie Zhang <jie@codesourcery.com>
5278
5279 PR rtl-optimization/37360
5280 * config/mips/mips.c (cached_can_issue_more): New local variable.
5281 (mips_sched_reorder_1): New.
5282 (mips_sched_reorder): Use mips_sched_reorder_1.
5283 (mips_sched_reorder2): New.
5284 (mips_variable_issue): Set cached_can_issue_more.
5285 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
5286 instead of mips_sched_reorder.
5287
5288 Revert:
5289 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
5290 PR rtl-optimization/37360
5291 * haifa-sched.c (max_issue): Do not assert that we never issue more
5292 insns than issue_rate. Add comment.
5293
5294 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
5295
5296 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
5297 location info of the expression.
5298
5299 2010-10-22 DJ Delorie <dj@redhat.com>
5300
5301 * doc/extend.texi (Named Address Spaces): Document the M32C named
5302 address space.
5303
5304 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
5305 __far address space.
5306 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
5307 "__far" address space for R8C and M16C processor variants.
5308 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
5309 (far_addr_space_p): New.
5310 (encode_pattern_1): Add sign and zero extend support.
5311 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
5312 (m32c_extra_constraint_p2): Add SF constraint.
5313 (m32c_legitimate_address_p): Support __far addresses.
5314 (m32c_addr_space_pointer_mode): New.
5315 (m32c_addr_space_address_mode): New.
5316 (m32c_addr_space_legitimate_address_p): New.
5317 (m32c_addr_space_legitimize_address): New.
5318 (m32c_addr_space_subset_p): New.
5319 (m32c_addr_space_convert): New.
5320 (conversions): Add __far operand patterns.
5321 (m32c_prepare_move): Force constants into registers for __far moves.
5322 (m32c_split_move): __far moves are always split.
5323 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
5324 * config/m32c/mov.md (mov<mode>_far_op1): New.
5325 (mov<mode>_far_op2): New.
5326 (movqi_op): Add __far (SF) support.
5327 (movhi_op): Likewise.
5328 (movsi_splittable): Split A1A0 also.
5329
5330 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
5331 Andrew Pinski <pinskia@gmail.com>
5332
5333 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
5334 * doc/extend.texi: New paragraph
5335
5336 2010-10-22 Paul Koning <ni1d@arrl.net>
5337
5338 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
5339
5340 2010-10-22 DJ Delorie <dj@redhat.com>
5341
5342 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
5343
5344 2010-10-22 Paul Koning <ni1d@arrl.net>
5345
5346 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
5347
5348 2010-10-22 Richard Henderson <rth@redhat.com>
5349
5350 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
5351 cases for __builtin_fma and __builtin_fmaf.
5352
5353 2010-10-22 Richard Henderson <rth@redhat.com>
5354
5355 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
5356 NEG+USE for vectors as well.
5357 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
5358 and splitter.
5359
5360 2010-10-22 Joseph Myers <joseph@codesourcery.com>
5361
5362 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
5363 SWITCH_CURTAILS_COMPILATION): Remove.
5364 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
5365 * doc/tm.texi: Regenerate.
5366 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
5367
5368 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
5369
5370 * config/i386/bdver1.md: New file.
5371 * config/i386/i386.md (include "bdver1.md"): Invoke the
5372 pipeline description for bdver1.
5373 (x86_sahf_1): Add "bdver1_decode" attribute.
5374 (*cmpfp_i_mixed): Likewise.
5375 (*cmpfp_i_sse): Likewise.
5376 (*cmpfp_i_i387): Likewise.
5377 (*cmpfp_iu_mixed): Likewise.
5378 (*cmpfp_iu_sse): Likewise.
5379 (*cmpfp_iu_387): Likewise.
5380 (*swap<mode>,*swap<mode>_1): Likewise.
5381 (fixuns_trunc<mode>hi2): Likewise.
5382 (fix_trunc<mode>si_sse): Likewise.
5383 (x86_fnstcw_1): Likewise.
5384 (x86_fldcw_1): Likewise.
5385 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
5386 (*floatsi<mode>2_vector_mixed): Likewise.
5387 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
5388 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
5389 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
5390 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
5391 (*floatsi<mode>2_vector_sse): Likewise.
5392 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
5393 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
5394 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
5395 (*mul<mode>3_1): Likewise.
5396 (*mulsi3_1_zext): Likewise.
5397 (*mulhi3_1): Likewise.
5398 (*mulqi3_1): Likewise.
5399 (*<u>mul<mode><dwi>3_1): Likewise.
5400 (*<u>mulqihi3_1): Likewise.
5401 (*<s>muldi3_highpart_1): Likewise.
5402 (*<s>mulsi3_highpart_1): Likewise.
5403 (*<s>mulsi3_highpart_zext): Likewise.
5404 (x86_64_shld): Likewise.
5405 (x86_shld): Likewise.
5406 (x86_64_shrd): Likewise.
5407 (x86_shrd): Likewise.
5408 (sqrtxf2): Likewise.
5409 (sqrt_extend<mode>xf2_i387): Likewise.
5410 (*sqrt<mode>2_sse): Likewise.
5411 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
5412 (sse_cvtsi2ssq): Likewise.
5413 (sse_cvtss2si): Likewise.
5414 (sse_cvtss2si_2): Likewise.
5415 (sse_cvtss2siq): Likewise.
5416 (sse_cvtss2siq_2): Likewise.
5417 (sse_cvttss2si): Likewise.
5418 (sse_cvttss2siq): Likewise.
5419 (sse2_cvtpi2pd): Likewise.
5420 (sse2_cvttpd2pi): Likewise.
5421 (sse2_cvtsi2sd): Likewise.
5422 (sse2_cvtsi2sdq): Likewise.
5423 (sse2_cvtsd2si): Likewise.
5424 (sse2_cvtsd2si_2): Likewise.
5425 (sse2_cvtsd2siq): Likewise.
5426 (sse2_cvtsd2siq_2): Likewise.
5427 (sse2_cvttsd2si): Likewise.
5428 (sse2_cvttsd2siq): Likewise.
5429 (*sse2_cvtpd2dq): Likewise.
5430 (*sse2_cvttpd2dq): Likewise.
5431 (sse2_cvtsd2ss): Likewise.
5432 (sse2_cvtss2sd): Likewise.
5433 (*sse2_cvtpd2ps): Likewise.
5434 (sse2_cvtps2pd): Likewise.
5435
5436 2010-10-22 Richard Guenther <rguenther@suse.de>
5437
5438 PR middle-end/46137
5439 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
5440 remove the virtual operands if they are not needed.
5441
5442 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
5443
5444 * config/i386/i386.c (processor_costs bdver1_cost): Update
5445 insn costs and architectural parameters for bdver1.
5446
5447 2010-10-22 Richard Guenther <rguenther@suse.de>
5448
5449 * gimple.h (gimple_register_canonical_type): Declare.
5450 * gimple.c (gimple_canonical_types): New global hashtable.
5451 (struct gimple_type_leader_entry_s): New type.
5452 (gimple_type_leader): New global cache.
5453 (gimple_lookup_type_leader): New function.
5454 (gtc_visit): Query the proper cache.
5455 (gimple_types_compatible_p): Likewise.
5456 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
5457 (gimple_canonical_type_eq): New function.
5458 (gimple_register_canonical_type): Likewise.
5459 (print_gimple_types_stats): Adjust for gimple_canonical_types.
5460 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
5461 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
5462 gimple_types_compatible_p for LTO.
5463
5464 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
5465
5466 PR target/46098
5467 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
5468 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
5469 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
5470 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
5471 (<sse>_movu<ssemodesuffix>): New expander.
5472 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
5473 (avx_movdqu<avxmodesuffix>): New expander.
5474 (*sse2_movdqu): Rename from sse2_movdqu.
5475 (sse2_movdqu): New expander.
5476
5477 2010-10-22 Richard Guenther <rguenther@suse.de>
5478
5479 PR tree-optimization/45720
5480 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
5481 Handle negative step.
5482 (vect_enhance_data_refs_alignment): Likewise.
5483 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
5484 (vect_create_cond_for_align_checks): Likewise.
5485 (vect_create_cond_for_alias_checks): Likewise.
5486
5487 2010-10-22 Ira Rosen <irar@il.ibm.com>
5488
5489 PR tree-optimization/46126
5490 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
5491 vectorizable_shift in case of basic block vectorization.
5492
5493 2010-10-22 Joseph Myers <joseph@codesourcery.com>
5494
5495 * target.h (enum opt_levels, struct default_options): New.
5496 * target.def (handle_ofast): Remove hook.
5497 (target_option.optimization): Change to
5498 target_option.optimization_table.
5499 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
5500 TARGET_OPTION_OPTIMIZATION_TABLE.
5501 (CAN_DEBUG_WITHOUT_FP): Remove.
5502 * doc/tm.texi: Regenerate.
5503 * opts.c (maybe_default_option, maybe_default_options,
5504 default_options_table): New.
5505 (default_options_optimization): Take extra parameters. Don't
5506 assert that global_options and global_options_set are in use. Use
5507 maybe_default_options.
5508 (decode_options): Pass extra parameters to
5509 default_options_optimization.
5510 * common.opt (falign-loops): Use value 0 with Var.
5511 (frerun-cse-after-loop, ftree-ter): Remove Init.
5512 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
5513 TARGET_OPTION_OPTIMIZATION): Remove.
5514 * targhooks.c (empty_optimization_table): New.
5515 * targhooks.h (empty_optimization_table): Declare.
5516 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
5517 * config/alpha/alpha.c (alpha_option_optimization_table,
5518 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5519 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
5520 * config/arm/arm.c (arm_option_optimization: Change to
5521 arm_option_optimization_table.
5522 (TARGET_OPTION_OPTIMIZATION): Change to
5523 TARGET_OPTION_OPTIMIZATION_TABLE.
5524 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
5525 * config/avr/avr.c (avr_option_optimization_table,
5526 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5527 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
5528 * config/cris/cris.c (cris_option_optimization): Change to
5529 cris_option_optimization_table.
5530 (TARGET_OPTION_OPTIMIZATION): Change to
5531 TARGET_OPTION_OPTIMIZATION_TABLE.
5532 * config/crx/crx.c (crx_option_optimization): Change to
5533 crx_option_optimization_table.
5534 (TARGET_OPTION_OPTIMIZATION): Change to
5535 TARGET_OPTION_OPTIMIZATION_TABLE.
5536 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
5537 * config/fr30/fr30.c (fr30_option_optimization_table,
5538 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5539 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
5540 * config/frv/frv.c (frv_option_optimization_table,
5541 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5542 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
5543 * config/h8300/h8300.c (h8300_option_optimization): Change to
5544 h8300_option_optimization_table.
5545 (TARGET_OPTION_OPTIMIZATION): Change to
5546 TARGET_OPTION_OPTIMIZATION_TABLE.
5547 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
5548 * config/i386/i386.c (ix86_option_optimization): Change to
5549 ix86_option_optimization_table.
5550 (TARGET_OPTION_OPTIMIZATION): Change to
5551 TARGET_OPTION_OPTIMIZATION_TABLE.
5552 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
5553 as initializer.
5554 * config/ia64/ia64.c (ia64_option_optimization): Change to
5555 ia64_option_optimization_table.
5556 (TARGET_OPTION_OPTIMIZATION): Change to
5557 TARGET_OPTION_OPTIMIZATION_TABLE.
5558 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
5559 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
5560 initializer.
5561 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
5562 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5563 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
5564 * config/lm32/lm32.c (lm32_option_optimization_table,
5565 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5566 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
5567 * config/m32r/m32r.c (m32r_option_optimization): Change to
5568 m32r_option_optimization_table.
5569 (TARGET_OPTION_OPTIMIZATION): Change to
5570 TARGET_OPTION_OPTIMIZATION_TABLE.
5571 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
5572 CAN_DEBUG_WITHOUT_FP): Remove.
5573 * config/mcore/mcore.c (mcore_option_optimization): Change to
5574 mcore_option_optimization_table.
5575 (TARGET_OPTION_OPTIMIZATION): Change to
5576 TARGET_OPTION_OPTIMIZATION_TABLE.
5577 * config/mep/mep.c (mep_option_optimization): Change to
5578 mep_option_optimization_table.
5579 (TARGET_OPTION_OPTIMIZATION): Change to
5580 TARGET_OPTION_OPTIMIZATION_TABLE.
5581 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
5582 * config/microblaze/microblaze.c
5583 (microblaze_option_optimization_table,
5584 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5585 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
5586 * config/mips/mips.c (mips_option_optimization_table,
5587 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5588 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
5589 * config/mmix/mmix.c (mmix_option_optimization): Change to
5590 mmix_option_optimization_table.
5591 (TARGET_OPTION_OPTIMIZATION): Change to
5592 TARGET_OPTION_OPTIMIZATION_TABLE.
5593 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
5594 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
5595 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5596 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
5597 * config/pa/pa.c (pa_option_optimization_table,
5598 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5599 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
5600 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
5601 pdp11_option_optimization_table.
5602 (TARGET_OPTION_OPTIMIZATION): Change to
5603 TARGET_OPTION_OPTIMIZATION_TABLE.
5604 * config/picochip/picochip.c (picochip_option_optimization_table,
5605 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5606 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
5607 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
5608 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5609 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
5610 * config/rx/rx.c (rx_option_optimization_table,
5611 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5612 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
5613 * config/s390/s390.c (s390_option_optimization): Change to
5614 s390_option_optimization_table.
5615 (s390_option_override): Update comment.
5616 (TARGET_OPTION_OPTIMIZATION): Change to
5617 TARGET_OPTION_OPTIMIZATION_TABLE.
5618 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
5619 * config/score/score.c (score_option_optimization_table,
5620 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5621 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
5622 * config/sh/sh.c (sh_option_optimization): Change to
5623 sh_option_optimization_table.
5624 (TARGET_OPTION_OPTIMIZATION): Change to
5625 TARGET_OPTION_OPTIMIZATION_TABLE.
5626 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
5627 (sh_option_override, expand_block_move, multcosts, find_barrier,
5628 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
5629 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
5630 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
5631 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
5632 instead of TARGET_SMALLCODE.
5633 * config/sh/sh.opt (mspace): Make into an alias for -Os.
5634 * config/sparc/sparc.c (sparc_option_optimization_table,
5635 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5636 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
5637 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
5638 TARGET_OPTION_OPTIMIZATION_TABLE): New.
5639 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
5640 * config/v850/v850.c (v850_option_optimization): Change to
5641 v850_option_optimization_table.
5642 (TARGET_OPTION_OPTIMIZATION): Change to
5643 TARGET_OPTION_OPTIMIZATION_TABLE.
5644 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
5645 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
5646 xtensa_option_optimization_table.
5647 (TARGET_OPTION_OPTIMIZATION): Change to
5648 TARGET_OPTION_OPTIMIZATION_TABLE.
5649 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
5650
5651 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
5652
5653 Based on the CFString implementation in FSF apple/trunk branch.
5654
5655 * target.def (objc_construct_string): New Hook.
5656 * doc/tm.texi (objc_construct_string): Document.
5657 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
5658 * config/t-darwin: Amend build rules for darwin.o.
5659 * config/darwin.opt: Add cfstrings flags.
5660 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
5661 (darwin_objc_construct_string): New.
5662 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
5663 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
5664 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
5665 (darwin_fold_builtin): Likewise.
5666 (darwin_build_constant_cfstring): Likewise.
5667 (darwin_objc_construct_string): Likewise.
5668 (darwin_cfstring_p): Likewise.
5669 (darwin_enter_string_into_cfstring_table): Likewise.
5670 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
5671 * config/darwin.c (darwin_running_cxx): New var.
5672 (machopic_select_section): Return cfstring_constant_object_section.
5673 (darwin_override_options): Set darwin_running_cxx.
5674 (add_builtin_field_decl): New.
5675 (darwin_init_cfstring_builtins): New.
5676 (darwin_build_constant_cfstring): New.
5677 (darwin_fold_builtin): New.
5678 (cfstring_hash): New.
5679 (cfstring_eq): New.
5680 (darwin_enter_string_into_cfstring_table): New.
5681 * config/darwin-sections.def (cfstring_constant_object_section): New.
5682 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
5683 (TARGET_OBJC_CONSTRUCT_STRING): Define.
5684
5685 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5686
5687 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
5688 TYPE_STUB_DECL instead of TREE_CHAIN.
5689 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
5690 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
5691 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
5692 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
5693 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
5694 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
5695 Likewise.
5696 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
5697
5698 2010-10-22 Jie Zhang <jie@codesourcery.com>
5699
5700 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
5701 (copy_blkmode_from_reg): Likewise.
5702 (read_complex_part): Likewise.
5703 (expand_expr_real_1): Calculate packedp and pass it to
5704 extract_bit_field.
5705 * expr.h (extract_bit_field): Update declaration.
5706 * calls.c (store_unaligned_arguments_into_pseudos): Update call
5707 to extract_bit_field.
5708 * expmed.c (extract_fixed_bit_field): Update calls to
5709 extract_fixed_bit_field.
5710 (store_split_bit_field): Likewise.
5711 (extract_bit_field_1): Add new argument packedp.
5712 (extract_bit_field): Add new argument packedp.
5713 (extract_fixed_bit_field): Add new argument packedp and let
5714 packed attribute override volatile.
5715 * stmt.c (expand_return): Update call to extract_bit_field.
5716
5717 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5718
5719 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
5720
5721 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5722
5723 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
5724 of gcc_checking_assert.
5725 * sel-sched.c (code_motion_process_successors): Likewise.
5726
5727 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
5728
5729 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
5730 when stopping because of a different locus on edge or insn.
5731 (try_optimize_cfg): Add comment.
5732 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
5733 block is a forwarder block, propagate locus on the edge.
5734 (cfg_layout_merge_blocks): Likewise.
5735
5736 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
5737
5738 PR target/45946
5739 * config/i386/i386.md (*pushti2): New insn pattern.
5740 (pushti2 splitter): New insn splitter.
5741 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
5742 DWI mode iterator.
5743
5744 2010-10-21 Paul Koning <ni1d@arrl.net>
5745
5746 * config/pdp11/pdp11-protos.md (arith_operand,
5747 const_immediate_operand, expand_shift_operand,
5748 immediate15_operand): Delete
5749 * config/pdp11/pdp11.c: Ditto.
5750 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
5751 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
5752 EXTRA_CONSTRAINT): Delete.
5753 * config/pdp11/pdp11.md (various): Use standard constraints
5754 instead of removed ones.
5755 * config/pdp11/constraints.md: New file.
5756 * config/pdp11/predicates.md: New file.
5757
5758 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
5759
5760 PR c/45834
5761 * alias.c (true_dependence_1): Remove obsolete check for QImode.
5762 (may_alias_p): Ditto.
5763
5764 2010-10-21 Martin Jambor <mjambor@suse.cz>
5765
5766 PR tree-optimization/45875
5767 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
5768
5769 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5770
5771 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
5772 variables.
5773 (create_new_def_for): Likewise.
5774
5775 2010-10-21 Nick Clifton <nickc@redhat.com>
5776
5777 * config/mn10300/mn10300.c: Fold code to 80-character width.
5778 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
5779 MEM, CONST_INT and CONST_DOUBLE.
5780 (targetm): Move initialization to end of file.
5781 (print_operand): Rename to mn10300_print_operand.
5782 (print_operand_address): Rename to mn10300_print_operand_address.
5783 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
5784 (expand_prologue): Rename to mn10300_expand_prologue.
5785 (expand_epilogue): Rename to mn10300_expand_epilogue.
5786 (initial_offset): Rename to mn10300_initial_offset.
5787 (function_arg): Rename to mn10300_function_arg.
5788 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
5789 (symbolic_operand): Rename to mn10300_symbolic_operand.
5790 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
5791 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
5792 * config/mn10300/mn10300-protos.h: Update prototypes.
5793 * config/mn10300/mn10300.h: Fold code to 80-character width.
5794 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
5795 MEM, CONST_INT and CONST_DOUBLE.
5796 (CPP_SPEC): Move to...
5797 (TARGET_CPU_CPP_BUILTINS): ... here.
5798 * config/mn10300/mn10300.md: Fold code to 80-character width.
5799 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
5800 MEM, CONST_INT and CONST_DOUBLE.
5801
5802 2010-10-21 Ira Rosen <irar@il.ibm.com>
5803
5804 PR tree-optimization/46049
5805 PR tree-optimization/46052
5806 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
5807 (vect_get_slp_defs): Add arguments.
5808 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
5809 operands to vect_get_slp_defs.
5810 (vectorizable_reduction): Fix comment, pass scalar operands to
5811 vect_get_slp_defs.
5812 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
5813 type to determine number of units in the created vector.
5814 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
5815 (vectorizable_conversion): Fix comment.
5816 (vectorizable_shift): New function.
5817 (vectorizable_operation): Move code that handles shifts to
5818 vectorizable_shift.
5819 (vectorizable_type_demotion): Fix comment, pass scalar operands to
5820 vect_get_slp_defs.
5821 (vectorizable_type_promotion, vectorizable_store): Likewise.
5822 (vectorizable_condition): Fix comment.
5823 (vect_analyze_stmt): Call vectorizable_shift.
5824 (vect_transform_stmt): Likewise.
5825 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
5826 Use it as the operand to create vectors for, except reduction
5827 initial definition and store. Use operands type.
5828 (vect_get_slp_defs): Add new arguments. Pass them to
5829 vect_get_constant_vectors.
5830
5831 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5832
5833 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
5834 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
5835 * cfghooks.c (fixup_reorder_chain): Likewise.
5836 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
5837 * cgraph.c (cgraph_add_thunk): Likewise.
5838 (cgraph_create_edge_1): Likewise.
5839 (cgraph_create_virtual_clone): Likewise.
5840 * ddg.c (add_cross_iteration_register_deps): Likewise.
5841 * dwarf2out.c (modified_type_die): Likewise.
5842 * emit-rtl.c (set_mem_alias_set): Likewise.
5843 * ggc-zone.c (zone_allocate_marks): Likewise.
5844 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
5845 * gimple.c (iterative_hash_gimple_type): Likewise.
5846 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
5847 (create_single_exit_edge): Likewise.
5848 * haifa-sched.c (choose_ready): Likewise.
5849 * lto-streamer-in.c (input_gimple_stmt): Likewise.
5850 * passes.c (execute_todo): Likewise.
5851 * sched-ebb.c (begin_schedule_ready): Likewise.
5852 * sel-sched.c (code_motion_process_successors): Likewise.
5853 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
5854 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
5855 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
5856 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
5857 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
5858 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
5859 (ssa_conflicts_add): Likewise.
5860 * tree-ssa-copy.c (replace_exp): Likewise.
5861 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
5862 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
5863 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
5864 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
5865 (compute_antic): Likewise.
5866 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
5867 (add_dependence): Likewise.
5868 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
5869 * tree-vrp.c (supports_overflow_infinity): Likewise.
5870 (make_overflow_infinity, negative_overflow_infinity): Likewise.
5871 (avoid_overflow_infinity, register_new_assert_for): Likewise.
5872 (process_assert_insertions_for): Likewise.
5873 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
5874 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
5875 (intersect_loc_chains, variable_merge_over_cur): Likewise.
5876
5877 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
5878
5879 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
5880 * reload1.c (has_nonexceptional_receiver): Likewise.
5881 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
5882 (create_new_def_for): Likewise.
5883 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
5884 (merge_phi_nodes): Likewise.
5885 (has_abnormal_incoming_edge_p): Delete.
5886
5887 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
5888
5889 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
5890
5891 2010-10-21 Richard Guenther <rguenther@suse.de>
5892 Michael Matz <matz@suse.de>
5893
5894 PR tree-optimization/45764
5895 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
5896 Adjust initial misalignment for negative DR_STEP.
5897 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
5898 do not have the same alignment over the whole iteration domain.
5899
5900 2010-10-21 Richard Guenther <rguenther@suse.de>
5901
5902 PR tree-optimization/46111
5903 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
5904
5905 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
5906
5907 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
5908
5909 2010-10-21 Tristan Gingold <gingold@adacore.com>
5910
5911 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
5912 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
5913
5914 2010-10-21 Tristan Gingold <gingold@adacore.com>
5915
5916 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
5917 signal_frame.
5918 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
5919
5920 2010-10-21 Tristan Gingold <gingold@adacore.com>
5921
5922 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
5923 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
5924
5925 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
5926
5927 * basic-block.h (find_fallthru_edge): Define.
5928 * cfgcleanup.c (merge_blocks_move): Use it.
5929 (try_crossjump_bb): Likewise.
5930 * cfglayout.c (fixup_reorder_chains): Likewise.
5931 (fixup_fallthru_exit_predecessor): Likewise.
5932 * cfgrtl.c (rtl_split_edge): Likewise.
5933 (rtl_verify_flow_info): Likewise.
5934 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5935 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
5936 * ifcvt.c (block_fallthru): Likewise.
5937 * reload1.c (fixup_abnormal_edges): Likewise.
5938 * sched-ebb.c (being_schedule_ready): Likewise.
5939 (schedule_ebb): Likwise.
5940 * sched-rgn.c (find_single_block_region): Likewise.
5941 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
5942 * tree-complex.c (expand_complex_move): Likewise.
5943 * sched-int.h (find_fallthru_edge): Rename to...
5944 (find_fallthru_edge_from): ...this.
5945 * haifa-sched.c (find_fallthru_edge): Rename to...
5946 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
5947 (init_before_recovery): Call find_fallthru_edge_from.
5948 * sel-sched-ir.c (merge_fences): Likewise.
5949 * sel-sched.c (in_fallthru_bb_p): Likewise.
5950 (move_cond_jump): Likewise.
5951
5952 2010-10-20 Paul Koning <ni1d@arrl.net>
5953
5954 * config/pdp11/pdp11.md (various): Fix conditions on a number of
5955 insn to check for target 11/40 or higher.
5956
5957 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
5958
5959 * parser.c (c_parser_objc_method_type): Mark inline. Return a
5960 bool instead of a tree.
5961 (c_parser_objc_method_decl): Added bool argument. Updated call to
5962 objc_build_method_signature.
5963 (c_parser_objc_method_definition): Do not call
5964 objc_set_method_type. Updated calls to c_parser_objc_method_type,
5965 c_parser_objc_method_decl and objc_start_method_definition.
5966 (c_parser_objc_methodproto): Do not call objc_set_method_type.
5967 Updated calls to c_parser_objc_method_type,
5968 c_parser_objc_method_decl and objc_add_method_declaration.
5969
5970 2010-10-20 Jakub Jelinek <jakub@redhat.com>
5971
5972 PR tree-optimization/45919
5973 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
5974 array members.
5975
5976 PR tree-optimization/46066
5977 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
5978 instead of gsi_last_bb.
5979
5980 2010-10-20 DJ Delorie <dj@redhat.com>
5981
5982 * config/m32c/m32c.c (m32c_option_override): Always disable
5983 function-cse in 16-bit mode. Indirect calls are always worse than
5984 direct calls as there is no 16-bit indirect call opcode.
5985 (m32c_override_options_after_change): New, likewise.
5986
5987 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
5988
5989 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
5990 emitting the conditional move in the inner mode of the SUBREG.
5991
5992 2010-10-20 Anatoly Sokolov <aesok@post.ru>
5993
5994 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
5995 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
5996 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
5997 (ia64_preferred_reload_class): Make static. Change rclass argument
5998 and result types from enum reg_class to reg_class_t.
5999
6000 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
6001
6002 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
6003 call for single operand expression.
6004
6005 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
6006
6007 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
6008 if there is a call statement to pure or const function in the block.
6009
6010 2010-10-20 Paul Koning <pkoning@equallogic.com>
6011
6012 Fix several build errors for pdp11 target.
6013 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
6014 (cbranchdf4): Conditional on TARGET_FPU.
6015 (movdf): Ditto; correct alternatives check.
6016 (movmemhi): Fix predicate and constraint.
6017 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
6018
6019 2010-10-20 Richard Guenther <rguenther@suse.de>
6020
6021 PR lto/45667
6022 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
6023 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
6024 (verify_gimple_assign_single): Disable ADDR_EXPR type check
6025 when in LTO.
6026
6027 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
6028
6029 PR fortran/42169
6030 * ira-emit.c (store_can_be_removed_p): Return false instead of
6031 gcc_unreachable.
6032
6033 2010-10-20 Dmitry Melnik <dm@ispras.ru>
6034
6035 * fold-const.c (fold_binary_loc): New transformation.
6036
6037 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
6038
6039 PR target/46085
6040 * config/i386/sse.md (reduc_splus_v8sf): Updated.
6041 (reduc_splus_v4df): Likewise.
6042
6043 2010-10-20 Richard Guenther <rguenther@suse.de>
6044
6045 PR tree-optimization/45860
6046 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
6047 conditional store replacement for non-register type stores.
6048
6049 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
6050
6051 * stor-layout.c (skip_simple_constant_arithmetic): New function.
6052 (self_referential_size): Use it instead of skip_simple_arithmetic.
6053
6054 2010-10-20 Olivier Hainque <hainque@adacore.com>
6055
6056 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
6057 If the current function calls eh_return, claim live all registers
6058 that we need to check for liveness otherwise.
6059
6060 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
6061
6062 * c-decl.c (c_write_global_declarations): Call
6063 objc_write_global_declarations when compiling Objective-C.
6064 * c-lang.c (finish_file): Removed.
6065
6066 2010-10-19 DJ Delorie <dj@redhat.com>
6067
6068 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
6069 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
6070 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
6071 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
6072 * doc/tm.texi: Regenerate.
6073 * targhooks.h (default_label_align_after_barrier_max_skip,
6074 default_loop_align_max_skip, default_label_align_max_skip,
6075 default_jump_align_max_skip): Declare.
6076 * target.def (label_align_after_barrier_max_skip): New.
6077 (loop_align_max_skip): New.
6078 (label_align_max_skip): New.
6079 (jump_align_max_skip): New.
6080 * system.h (poison): Add those macros to the list.
6081 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
6082 (LOOP_ALIGN_MAX_SKIP): Remove.
6083 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
6084 (JUMP_ALIGN_MAX_SKIP): Remove.
6085 (default_label_align_after_barrier_max_skip): New.
6086 (default_loop_align_max_skip): New.
6087 (default_label_align_max_skip): New.
6088 (default_jump_align_max_skip): New.
6089 (compute_alignments): Use the new hooks.
6090 (shorten_branches): Likewise.
6091
6092 2010-10-19 Richard Henderson <rth@redhat.com>
6093
6094 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
6095 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
6096 (fma4i_fmadd_<mode>): New.
6097 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
6098 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
6099 standard fma patterns.
6100 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
6101 enable for FMA.
6102 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
6103 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
6104 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
6105
6106 2010-10-19 Paul Koning <pkoning@equallogic.com>
6107
6108 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
6109 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
6110
6111 2010-10-19 Richard Henderson <rth@redhat.com>
6112
6113 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
6114 (fmadf4, *fmsdf4, *nfmadf4): New.
6115 (fmaxf4, *fmsxf4, *nfmaxf4): New.
6116
6117 2010-10-19 Michael Eager <eager@eagercon.com>
6118
6119 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
6120 Use sjlj unwind info for exceptions.
6121
6122 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
6123
6124 PR fortran/43414
6125 * dwarf2out.c (add_calling_convention_attribute): Flag main
6126 Fortran subroutine with DW_AT_main_subprogram.
6127
6128 2010-10-19 Nick Clifton <nickc@redhat.com>
6129
6130 * config/rx/rx.c (rx_function_value): Small integer types are
6131 promoted to SImode.
6132 (rx_promote_function_mode): New function.
6133 (TARGET_PROMOTE_FUNCTION_MODE): Define.
6134
6135 2010-10-19 Nick Clifton <nickc@redhat.com>
6136
6137 * config/mep/mep.c (mep_print_operand): Use
6138 targetm.strip_name_encoding.
6139 (mep_output_aligned_common): Likewise.
6140
6141 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
6142
6143 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
6144
6145 2010-10-18 Richard Henderson <rth@redhat.com>
6146
6147 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
6148 (fma (neg a) (neg b) c) and (fma a (neg b) c).
6149
6150 2010-10-18 Richard Henderson <rth@redhat.com>
6151
6152 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
6153 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
6154 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
6155 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
6156 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
6157 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
6158 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
6159 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
6160 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
6161 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
6162 (bdesc_multi_arg): Remove the corresponding builtins.
6163 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
6164 (UNSPEC_FMA4_FMSUBADD): Remove.
6165 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
6166 * config/i386/sse.md (FMA4MODEF4): Remove.
6167 (FMAMODE): Add.
6168 (fma<mode>4): New expander.
6169 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
6170 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
6171 (*fma4i_fmsub_<mode>): Similarly.
6172 (*fma4i_fnmadd_<mode>): Similarly.
6173 (*fma4i_fnmsub_<mode>): Similarly.
6174 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
6175 with the first operand.
6176 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
6177 of explicit arithmetic. Macroize with AVXMODEF2P.
6178 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
6179 (xop_frcz<mode>2): Macroize with FMAMODE.
6180 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
6181 the first operand.
6182 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
6183 extra negations.
6184 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
6185 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
6186 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
6187 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
6188 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
6189 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
6190 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
6191 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
6192
6193 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
6194
6195 PR rtl-optimization/45966
6196 * combine.c (try_combine): If added_sets_2, deal with the case
6197 where i0 feeds i1 and i1 feeds i2.
6198
6199 2010-10-18 Jan Hubicka <jh@suse.cz>
6200
6201 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
6202 preserve flags before trying to guess on visibility.
6203 (varpool_externally_visible_p): New function.
6204 (function_and_variable_visibility): Use it.
6205
6206 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6207
6208 Implemented parsing @synthesize and @dynamic for Objective-C.
6209 * c-parser.c (c_parser_external_declaration): Recognize
6210 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
6211 (c_parser_objc_at_synthesize_declaration): New.
6212 (c_parser_objc_at_dynamic_declaration): New.
6213
6214 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6215
6216 * c-parser.c (c_parser_objc_class_declaration): After finding an
6217 error, parse the whole declaration then reset parser->error.
6218
6219 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
6220
6221 PR target/46041
6222 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
6223 * builtins.c (mode_has_fma): Ditto.
6224
6225 2010-10-18 Steve Ellcey <sje@cup.hp.com>
6226
6227 PR target/36898
6228 PR middle-end/43760
6229 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
6230
6231 2010-10-18 Joseph Myers <joseph@codesourcery.com>
6232
6233 * config/i386/i386.c (ix86_option_override_internal): Define and
6234 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
6235 default.
6236 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
6237 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
6238
6239 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6240
6241 Merge from 'apple/trunk' branch on FSF servers.
6242 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
6243 following Objective-C change:
6244
6245 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
6246
6247 Radar 4301047
6248 * c-parse.in (objc_quals): Build objc qualifier list same way
6249 as gcc-3.3
6250
6251 2010-10-18 Jan Hubicka <jh@suse.cz>
6252
6253 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
6254 function_and_variable_visibility): Revert accidental commit.
6255
6256 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
6257
6258 Merge from 'apple/trunk' branch on FSF servers.
6259 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
6260 the following Objective-C change:
6261
6262 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
6263
6264 Radar 4204796
6265 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
6266 'volatilized' type used in a typeof operator.
6267
6268 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
6269
6270 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
6271 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
6272 rewrite modelled on gimple_purge_dead_eh_edges.
6273 (gimple_purge_all_dead_abnormal_call_edges): New function.
6274 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
6275 directly instead of through gimple_purge_dead_abnormal_call_edges.
6276 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
6277 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
6278 removed AB side-effects from one of its statements.
6279 (init_pre): Initialize need_ab_cleanup.
6280 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
6281 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
6282
6283 2010-10-18 Jakub Jelinek <jakub@redhat.com>
6284
6285 PR c/46015
6286 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
6287 on computed goto argument.
6288
6289 2010-10-18 Richard Guenther <rguenther@suse.de>
6290
6291 PR tree-optimization/45967
6292 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
6293 (could_have_pointers): Likewise.
6294 (handle_rhs_call, handle_const_call, handle_pure_call,
6295 find_func_aliases, intra_create_variable_infos): Remove calls to them.
6296 (struct fieldoff): Add must_have_pointers field.
6297 (type_must_have_pointers): New function.
6298 (field_must_have_pointers): Likewise.
6299 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
6300 Adjust field merging.
6301 (create_function_info_for): May-have-pointers of varinfo is
6302 almost always true.
6303 (create_variable_info_for_1): Likewise.
6304
6305 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
6306
6307 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
6308 of operands to vec_concat.
6309
6310 2010-10-18 Richard Guenther <rguenther@suse.de>
6311
6312 PR lto/44950
6313 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
6314 also clear references to entries of it.
6315
6316 2010-10-18 Andi Kleen <ak@linux.intel.com>
6317
6318 PR other/43448
6319 * gccbug.in: Remove.
6320 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
6321 (doc, distclean, install-common): Remove reference to gccbug.
6322 * configure: Regenerate.
6323 * configure.ac (all_outputs): Remove gccbug.
6324 * doc/configfiles.texi: Remove references to gccbug.
6325 * doc/sourcebuild.texi: Dito.
6326
6327 2010-10-18 Jakub Jelinek <jakub@redhat.com>
6328
6329 PR middle-end/46019
6330 * fold-const.c (fold_binary_loc): If integer_pow2p has
6331 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
6332
6333 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
6334 Jeremie Salvucci <jeremie.salvucci@free.fr>
6335
6336 * gengtype.c (verbosity_level): Add variable.
6337 (set_gc_used): Count variables for verbosity.
6338 (close_output_files): Backing up files, counting written ones
6339 verbosily.
6340 (write_types): Count emitted functions for verbosity. Added
6341 debug messages.
6342 (write_enum_defn): Count structures for verbosity. Added debug
6343 messages.
6344 (gengtype_long_options): Add "verbose" & "backupdir".
6345 (print_usage): Ditto.
6346 (main): Verbose display of parsed files.
6347
6348 * gengtype.h (verbosity_level): Add declaration.
6349
6350 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
6351
6352 * gengtype.c (parse_program_options): Add allocation of
6353 plugin_files, and correct test on nb_plugin_files.
6354
6355 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6356
6357 Merge from 'apple/trunk' branch on FSF servers.
6358
6359 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
6360
6361 Radar 4133425
6362 * c-decl.c (undeclared_variable): Issue diagnostic on
6363 private 'ivar' access.
6364
6365 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
6366
6367 PR target/46051
6368 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
6369 generated sequence to match *avx_vperm2f128<mode>_nozero.
6370 (vec_interleave_lowv4df): Ditto.
6371 (vec_interleave_highv8sf): Ditto.
6372 (vec_interleave_lowv8sf): Ditto.
6373
6374 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
6375
6376 * libgcov.c (create_file_directory): Enable it for win32 case.
6377 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
6378 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
6379 (GCOV_PREFIX_SKIP): Likewise.
6380
6381 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6382
6383 * doc/objc.texi (GNU Objective-C runtime API): New section.
6384 (Modern GNU Objective-C runtime API): New section.
6385 (Traditional GNU Objective-C runtime API): New section.
6386 (Executing code before main): Mention that this section is
6387 specific to the GNU Objective-C runtime.
6388 (Garbage Collection): Same.
6389
6390 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
6391
6392 * c-parser.c (c_parser_for_statement): Move initialization of
6393 cond and incr before if.
6394
6395 2010-10-17 Anatoly Sokolov <aesok@post.ru>
6396
6397 * target.def (preferred_output_reload_class): New hook.
6398 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
6399 * doc/tm.texi: Regenerate.
6400 * targhooks.c (default_preferred_output_reload_class): New function.
6401 * targhooks.h (default_preferred_output_reload_class): Declare.
6402 * reload.c (find_dummy_reload): Change rclass argument type from
6403 enum reg_class to reg_class_t. Change this_alternative array type
6404 from enum reg_class to reg_class_t.
6405 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
6406 (push_reload): Change preferred_class variable type to reg_class_t.
6407 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
6408 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
6409 argument type from enum reg_class to reg_class_t. Use
6410 HARD_REGISTER_NUM_P predicate.
6411 * recog.h (reg_fits_class_p): Update prototype.
6412
6413 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
6414 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
6415 Remove.
6416 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
6417 static. Change regclass argument and result types from enum reg_class
6418 to reg_class_t.
6419 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
6420
6421 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
6422
6423 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
6424 visibility enum, and handle @package.
6425
6426 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
6427
6428 * doc/objc.texi (What you can and what you cannot do in +load):
6429 Document that sending messages to constant string objects in +load
6430 is not guaranteed to work.
6431
6432 2010-10-16 Jan Hubicka <jh@suse.cz>
6433
6434 PR middle-end/44206
6435 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
6436 existence of refrences before removing the function.
6437
6438 2010-10-16 Jan Hubicka <jh@suse.cz>
6439
6440 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
6441 only_called_at_startup and only_called_at_exit.
6442 (cgraph_propagate_frequency): Compute only_called_at_startup and
6443 only_called_at_exit.
6444 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
6445 only_called_at_exit.
6446 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
6447 flags.
6448 * predict.c (compute_function_frequency): Initialize the new flags.
6449
6450 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
6451
6452 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
6453 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
6454 on the bounds of its domain.
6455 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
6456
6457 2010-10-16 Anatoly Sokolov <aesok@post.ru>
6458
6459 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
6460 * config/avr/avr-protos.h (preferred_reload_class): Remove.
6461 * config/avr/avr.c (preferred_reload_class): Remove.
6462 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
6463 * config/pa/pa.c (emit_move_sequence): Update comment
6464 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
6465 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
6466 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
6467 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
6468 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
6469 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
6470 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
6471 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
6472 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
6473 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
6474 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
6475 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
6476 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
6477
6478 2010-10-16 Joseph Myers <joseph@codesourcery.com>
6479
6480 * opts.c (set_fast_math_flags,
6481 set_unsafe_math_optimizations_flags): Make static.
6482 * toplev.h (set_fast_math_flags,
6483 set_unsafe_math_optimizations_flags): Remove prototypes.
6484
6485 2010-10-16 Joseph Myers <joseph@codesourcery.com>
6486
6487 * config/arm/arm.c (arm_option_optimization): Set
6488 flag_section_anchors to 1 not 2.
6489 * config/i386/i386.c (ix86_option_override_internal): Check
6490 global_options_set.x_flag_zee and
6491 global_options_set.x_flag_omit_frame_pointer.
6492 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
6493 flag_zee to 2.
6494 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
6495 global_options_set.x_flag_omit_frame_pointer.
6496 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
6497 opts->x_flag_section_anchors to 1 not 2.
6498 * config/sh/sh.c (sh_option_optimization): Don't set
6499 flag_schedule_insns to 2.
6500 (sh_option_override): Check
6501 global_options_set.x_flag_schedule_insns.
6502 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
6503
6504 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
6505
6506 * configure.ac: Make sure inhibit_libc remains false for mingw targets
6507 as cross.
6508 * configure: Regenerated.
6509
6510 2010-10-15 Xinliang David Li <davidxl@google.com>
6511
6512 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
6513 function.
6514 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
6515 into a recursive function.
6516
6517 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
6518
6519 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
6520 (*movdfcc_1): ditto.
6521
6522 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6523
6524 * target.def (target_option.init_struct): New hook.
6525 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
6526 * doc/tm.texi: Regenerate.
6527 * hooks.c (hook_void_gcc_optionsp): New.
6528 * hooks.h (hook_void_gcc_optionsp): Declare.
6529 * langhooks-def.h (lhd_init_options_struct): Remove.
6530 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
6531 * langhooks.c (lhd_init_options_struct): Remove.
6532 * opts.c (init_options_struct): Also call
6533 targetm.target_option.init_struct.
6534 * config/i386/i386.c (ix86_option_init_struct,
6535 TARGET_OPTION_INIT_STRUCT): New.
6536 (ix86_option_optimization): Move some settings to
6537 ix86_option_init_struct.
6538 * config/pdp11/pdp11.c (pdp11_option_init_struct,
6539 TARGET_OPTION_INIT_STRUCT): New.
6540 (pdp11_option_optimization): Move some settings to
6541 pdp11_option_init_struct.
6542 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
6543 rs6000_option_init_struct. Use options structure pointer.
6544 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
6545 * config/s390/s390.c (s390_option_init_struct,
6546 TARGET_OPTION_INIT_STRUCT): New.
6547 (s390_option_optimization): Don't set
6548 flag_asynchronous_unwind_tables here.
6549 * config/sh/sh.c (sh_option_init_struct,
6550 TARGET_OPTION_INIT_STRUCT): New.
6551 (sh_option_optimization): Don't set flag_finite_math_only here.
6552 * config/spu/spu.c (spu_option_optimization): Replace by
6553 spu_option_optimization. Use options structure pointer.
6554 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
6555
6556 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
6557
6558 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
6559
6560 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
6561 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
6562 (Standard names): Document fma.
6563
6564 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
6565 __FP_FAST_FMAF, __FP_FAST_FMAL.
6566
6567 * builitns.c (expand_builtin_mathfn_ternary): New function for
6568 expanding ternary math functions, like fma.
6569 (expand_builtin): Call it for the fma builtins.
6570
6571 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
6572 ops at present.
6573
6574 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
6575 vectorizable functions to support vectorizing fma.
6576
6577 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
6578 Handle fma builtins.
6579
6580 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
6581 (UNSPEC_VSX_MSUB): Ditto.
6582 (UNSPEC_VSX_NMADD): Ditto.
6583 (UNSPEC_VSX_NMSUB): Ditto.
6584 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
6585 of UNSPEC. Renumber combiner patterns.
6586 (vsx_fmsub<mode>4*): Ditto.
6587 (vsx_fnmadd<mode>4*): Ditto.
6588 (vsx_fnmsub<mode>4*): Ditto.
6589
6590 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
6591 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
6592 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
6593 (altivec_vmaddfp_1): Ditto.
6594 (altivec_vmaddfp_2): Ditto.
6595 (atlivec_mulv4sf3): Ditto.
6596 (altivec_vnmsubfp): Ditto.
6597 (altivec_vnmsubfp_1): Ditto.
6598 (altivec_vnmsubfp_2): Ditto.
6599 (altivec_vnmsubfp_3): Delete.
6600
6601 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
6602 (fmasf4_fpr): Ditto.
6603 (fmssf4_fpr): Ditto.
6604 (fnmasf4_fpr): Ditto.
6605 (fnmssf4_fpr): Ditto.
6606 (fmadf4): Ditto.
6607 (fmadf4_fpr): Ditto.
6608 (fmsdf4_fpr): Ditto.
6609 (fnmadf4_fpr): Ditto.
6610 (fnmsdf4_fpr): Ditto.
6611
6612 * optabs.h (OTI_fma): Add fma optab.
6613 (fma_optab): Ditto.
6614
6615 * genopinit.c (optabs): Set fma optab.
6616
6617 * rtl.def (FMA): Add FMA rtl.
6618
6619 * tree.h (mode_has_fma): New function to return if MODE supports a
6620 fast multiply and add instruction.
6621 * builtins.c (mode_has_fma): Ditto.
6622
6623 2010-10-15 Jan Hubicka <jh@suse.cz>
6624
6625 * lto-streamer-out.c (write_symbol): Use pointer set of seen
6626 objects instead of bitmap.
6627 (produce_symtab): Likewise; output defined symbols first.
6628
6629 2010-10-15 Jie Zhang <jie@codesourcery.com>
6630
6631 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
6632 Option Summary and Index.
6633
6634 2010-10-15 Richard Guenther <rguenther@suse.de>
6635
6636 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
6637 for automatic variables again.
6638
6639 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6640
6641 * doc/extend.texi (Variable Length): Don't refer to VLAs not
6642 conforming to C99.
6643
6644 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6645
6646 * config/rx/rx.c (rx_option_optimization): Change to
6647 rx_override_options_after_change. Don't change
6648 flag_lto_compression_level. Don't check for changes to whether
6649 FPU instructions can be used. Check and set only
6650 flag_finite_math_only, not other fast-math flags.
6651 (rx_option_override): Call rx_override_options_after_change.
6652 (TARGET_OPTION_OPTIMIZATION): Remove.
6653 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
6654
6655 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6656
6657 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
6658 disable section anchors for lang_hooks.name[4] != 'O'.
6659
6660 2010-10-15 Joseph Myers <joseph@codesourcery.com>
6661
6662 * config/frv/frv.c (frv_option_optimization,
6663 TARGET_OPTION_OPTIMIZATION): Remove.
6664 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
6665
6666 2010-10-15 Michael Matz <matz@suse.de>
6667
6668 * cgraphunit.c (clone_of_p): Define unconditionally.
6669
6670 2010-10-15 Richard Guenther <rguenther@suse.de>
6671
6672 PR lto/45957
6673 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
6674
6675 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
6676
6677 * ifcvt.c (find_active_insn_before): New function.
6678 (find_active_insn_after): New function.
6679 (cond_exec_process_if_block): Use new functions to replace
6680 prev_active_insn() and next_active_insn().
6681
6682 2010-10-14 Yao Qi <yao@codesourcery.com>
6683
6684 PR target/45447
6685 * config/arm/arm.c (arm_build_builtin_va_list): Assign
6686 va_list_name to TYPE_STUB_DECL (va_list_type).
6687
6688 2010-10-14 Jan Hubicka <jh@suse.cz>
6689
6690 PR middle-end/45621
6691 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
6692 redirected to clone, be happy.
6693 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
6694 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
6695 former_clone_of unconditionally.
6696
6697 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6698
6699 Merge from FSF apple 'trunk' branch.
6700 2006 Fariborz Jahanian <fjahanian@apple.com>
6701
6702 Radars 4436866, 4505126, 4506903, 4517826
6703 * c-parser.c (c_parser, objc_property_attr_context) New flag.
6704 (c_lex_one_token): Handle property attributes.
6705 (c_parser_external_declaration): Handle @property.
6706 (c_parser_declaration_or_fndef): Warn on invalid attributes before
6707 @alias, @class, @end and @property objc keywords.
6708 (c_parser_objc_methodprotolist): Handle @property.
6709 (c_parser_objc_property_attrlist): New.
6710 (c_parser_objc_at_property): New.
6711 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
6712 (build_modify_expr): Likewise.
6713
6714 2010-10-14 Jakub Jelinek <jakub@redhat.com>
6715
6716 PR tree-optimization/46008
6717 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
6718
6719 2010-10-14 Richard Guenther <rguenther@suse.de>
6720
6721 PR tree-optimization/44913
6722 * tree-data-ref.c (disjoint_objects_p): Remove.
6723 (dr_may_alias_p): Simplify. Only hand the base object to
6724 the alias-oracle.
6725 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
6726 some more trees, bail out instead of asserting.
6727 (ptr_derefs_may_alias_p): Likewise. Export.
6728 (refs_may_alias_p_1): Handle STRING_CSTs.
6729 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
6730
6731 2010-10-14 Joseph Myers <joseph@codesourcery.com>
6732
6733 PR c/45969
6734 * c-typeck.c (build_binary_op): Don't try to compute a semantic
6735 type with excess precision for boolean operations.
6736
6737 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
6738 Basile Starynkevitch <basile@starynkevitch.net>
6739
6740 * gengtype.c: Include getopt.h and version.h.
6741
6742 (lang_bitmap, struct outf, outf_p)
6743 (get_output_file_with_visibility, oprintf): Definitions moved to
6744 gengtype.h
6745 (output_files, header_file, srcdir, srcdir_len, this_file)
6746 (do_dump): No more static variables.
6747 (do_debug): New.
6748 (dbgprint_count_type_at): Added new function.
6749 (gengtype_long_options): New.
6750 (print_usage, print_version, parse_program_options): New.
6751 (main): Call parse_program_options, and removed old option
6752 handling code. Added some debug output.
6753
6754 * gengtype.h: Updated copyright year.
6755 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
6756 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
6757 Moved from gengtype.c to here.
6758 (do_debug, read_state_filename, write_state_filename): New variables.
6759 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
6760
6761 * Makefile.in:
6762 (REVISION): Always defined.
6763 (version.o): Removed ifdef REVISION_c.
6764 (s-gtype): Pass arguments to build/gengtype program.
6765 (build/version.o): Added building rule.
6766 (build/gengtype$(build_exeext)): Added build/version.o.
6767
6768 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
6769
6770 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
6771 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
6772 __strong macros.
6773
6774 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
6775
6776 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
6777 may_trap_or_fault_p instead of may_trap_p predicate.
6778 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
6779 (substitute_placeholder_in_expr): Likewise.
6780 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
6781 flag on MEM_REF nodes.
6782 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
6783 flags on INDIRECT_REF nodes.
6784
6785 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
6786
6787 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
6788 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
6789 (arm*-*-eabi*) <tm_file>: Likewise.
6790 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
6791 (frv-*-*linux*) <tm_file>: Likewise.
6792 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
6793 and associated helper macros.
6794 * config/frv/frv-abi.h: Delete.
6795
6796 2010-10-14 Richard Guenther <rguenther@suse.de>
6797
6798 PR lto/44561
6799 * tree.def (NULLPTR_TYPE): New tree code.
6800 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
6801 * dwarf2out.c (is_base_type): Likewise.
6802 (gen_type_die_with_usage): Likewise.
6803 * sdbout.c (plain_type_1): Likewise.
6804 * tree.c (build_int_cst_wide): Likewise.
6805 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
6806
6807 2010-10-14 Joseph Myers <joseph@codesourcery.com>
6808
6809 * params.c (params_finished): New.
6810 (add_params): Assert !params_finished.
6811 (finish_params): New.
6812 (set_param_value_internal): Take params and params_set
6813 parameters. Assert params_finished.
6814 (set_param_value, maybe_set_param_value): Take params and
6815 params_set parameters. Update calls to set_param_value_internal.
6816 (set_default_param_value): Assert !params_finished. Don't use
6817 set_param_value_internal.
6818 (default_param_value, init_param_values): New.
6819 * params.h (struct param_info): Change value to default_value.
6820 Remove set.
6821 (set_param_value, maybe_set_param_value): Add params and
6822 params_set parameters.
6823 (PARAM_VALUE): Get parameters from global_options.
6824 (PARAM_SET_P): Remove.
6825 (finish_params, default_param_value, init_param_values): New.
6826 * common.opt (param_values): New Variable.
6827 * config/arm/arm.c (arm_option_override): Pass extra arguments to
6828 maybe_set_param_value.
6829 * config/i386/i386.c (ix86_option_override_internal): Pass extra
6830 arguments to maybe_set_param_value.
6831 * config/picochip/picochip.c (picochip_option_override): Pass
6832 extra arguments to maybe_set_param_value.
6833 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
6834 extra arguments to maybe_set_param_value.
6835 * config/s390/s390.c (s390_option_override): Use
6836 maybe_set_param_value instead of set_param_value. Pass extra
6837 arguments to maybe_set_param_value.
6838 * config/sparc/sparc.c (sparc_option_override): Pass extra
6839 arguments to maybe_set_param_value.
6840 * config/spu/spu.c (spu_option_override): Pass extra arguments to
6841 maybe_set_param_value.
6842 * opts.c (handle_param): Take opts and opts_set parameters.
6843 Update call to set_param_value.
6844 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
6845 initial_loop_invariant_max_bbs_in_loop): Remove.
6846 (init_options_once): Don't set them.
6847 (init_options_struct): Initialize parameters structures.
6848 (default_options_optimization): Use default_param_value when
6849 restoring defaults. Update calls to maybe_set_param_value.
6850 (finish_options): Update calls to maybe_set_param_value.
6851 (common_handle_option): Update calls to handle_param and
6852 set_param_value.
6853 * toplev.c (DEFPARAM): Update definition for changes to param_info.
6854 (general_init): Call finish_params.
6855
6856 2010-10-14 Nick Clifton <nickc@redhat.com>
6857
6858 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
6859 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
6860 (FIRST_PSEUDO_REGISTER): Increase by one.
6861 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
6862 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
6863 (MODES_TIEABLE): Call mn10300_modes_tieable.
6864 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
6865 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
6866 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
6867 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
6868 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
6869 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
6870 (mn10300_cc_status_mdep): Delete.
6871 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
6872 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
6873 the combine-stack-adjust pass.
6874 (print_operand): Use the mode of the comparison operation to
6875 select the comparison suffix.
6876 (notice_update_cc): Delete.
6877 (mn10300_secondary_reload_class): Remove test for stack pointer
6878 based arithmetic.
6879 (output_tst): Rename to mn10300_output_cmp.
6880 (impossible_plus_operand): Move into predicates.md.
6881 (mn10300_legitimize_address): Make static.
6882 (mn10300_legitimate_address_p): Make static. Only allow SI sized
6883 constant pic operands.
6884 (mn10300_legitimate_constant_p): New function.
6885 (mn10300_case_values_threshold): Make static.
6886 (mn10300_hard_regno_mode_ok): New function.
6887 (mn10300_modes_tieable): New function.
6888 (mn10300_select_cc_mode): New function.
6889 * config/mn10300/predicates.md (impossible_plus_operand): Define.
6890 * config/mn10300/mn10300-protos.h: Tidy.
6891 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
6892 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
6893 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
6894 with clobbers or sets of CC_REG.
6895 (CC_REG): Define.
6896 (mov*): Remove use of CLR instruction.
6897 (cbranch_si4_<code>): New pattern/split.
6898 (integer_conditional_branch): New pattern.
6899 (cbranch_sf4_<code>): New pattern/split.
6900 (float_conditional_branch): New pattern.
6901 (casesi): Use addsi3 pattern instead of movsi pattern to add and
6902 move a value at the same time.
6903 (cc0 peepholes): Remove.
6904
6905 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6906
6907 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
6908 on RTX_FRAME_RELATED_P insns and the insn to which
6909 NOTE_INSN_EPILOGUE_BEG is attached.
6910 * sched-vis.c (print_value): Allow NULL value.
6911
6912 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6913
6914 PR rtl-optimization/45570
6915 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
6916 assert that we are pipelining outer loops. Allow returning
6917 zero predecessors.
6918
6919 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
6920
6921 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
6922 (tidy_control_flow): Tidy vertical space.
6923 (sel_remove_bb): New variable idx. Use it to remember the basic
6924 block index before deleting the block.
6925 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
6926 (sel_merge_blocks): ... here.
6927 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
6928
6929 2010-10-14 Jakub Jelinek <jakub@redhat.com>
6930
6931 * cse.c (is_dead_reg): Change into inline function that is not
6932 called through for_each_rtx.
6933 (set_live_p): Adjust caller.
6934 (insn_live_p): Don't reset DEBUG_INSNs here.
6935 (struct dead_debug_insn_data): New data.
6936 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
6937 (delete_trivially_dead_insns): If there is just one setter for the
6938 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
6939 and add DEBUG_INSN for it right before the removed setter and
6940 use the DEBUG_EXPR instead of the dead pseudo.
6941
6942 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
6943
6944 * et-forest.c (et_nca): Return NULL immediately when
6945 the dominance forest has disjoint components.
6946
6947 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
6948
6949 * ira.c (setup_class_hard_regs): Fix typo in indexing
6950 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
6951
6952 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
6953
6954 * graph.c (inbb): New variable.
6955 (start_bb): Set inbb to 1 if output is inside of a building block.
6956 (end_bb): Check if output is inside of a building block.
6957
6958 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
6959
6960 PR rtl-optimization/45912
6961 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
6962 regno of registers instead of their index to compute the alignment.
6963
6964 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
6965
6966 * config/i386/i386.c (ix86_build_const_vector): Check vector
6967 mode instead of scalar mode.
6968 (ix86_build_signbit_mask): Likewise.
6969 (ix86_expand_fp_absneg_operator): Updated.
6970 (ix86_expand_copysign): Likewise.
6971 (ix86_expand_int_vcond): Likewise.
6972 (ix86_emit_swdivsf): Likewise.
6973 (ix86_sse_copysign_to_positive): Likewise.
6974 (ix86_expand_sse_fabs): Likewise.
6975 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
6976 * config/i386/sse.md (copysign<mode>3): Likewise.
6977 (sse2_cvtudq2ps): Likewise.
6978 (vec_unpacku_float_hi_v4si): Likewise.
6979 (vec_unpacku_float_lo_v4si): Likewise.
6980
6981 * config/i386/i386.c (ix86_builtins): Add
6982 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
6983 (bdesc_args): Likewise.
6984 (ix86_builtin_vectorized_function): Support
6985 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
6986 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
6987 and IX86_BUILTIN_CVTPS2DQ256.
6988 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
6989
6990 * config/i386/sse.md (STORENT_MODE): New.
6991 (VEC_FLOAT_MODE): Likewise.
6992 (VEC_EXTRACT_MODE): Likewise.
6993 (*avx_cvtdq2pd256_2): Likewise.
6994 (vec_pack_trunc_v4df): Likewise.
6995 (vec_interleave_highv8sf): Likewise.
6996 (vec_interleave_lowv8sf): Likewise.
6997 (storent<mode>): Macroized.
6998 (<code><mode>2: absneg): Likewise.
6999 (copysign<mode>3): Likewise.
7000 (vec_extract<mode>): Likewise.
7001
7002 PR target/44180
7003 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
7004 for V8SFmode.
7005
7006 2010-10-13 Richard Guenther <rguenther@suse.de>
7007 H.J. Lu <hongjiu.lu@intel.com>
7008
7009 * config/i386/sse.md (reduc_splus_v8sf): Add.
7010 (reduc_splus_v4df): Likewise.
7011 (vec_unpacks_hi_v8sf): Likewise.
7012 (vec_unpacks_lo_v8sf): Likewise.
7013 (*avx_cvtps2pd256_2): Likewise.
7014 (vec_unpacks_float_hi_v8si): Likewise.
7015 (vec_unpacks_float_lo_v8si): Likewise.
7016 (vec_interleave_highv4df): Likewise.
7017 (vec_interleave_lowv4df): Likewise.
7018
7019 2010-10-13 Richard Guenther <rguenther@suse.de>
7020
7021 PR objc/45878
7022 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
7023 alone if there are no virtual methods.
7024
7025 2010-10-13 Richard Henderson <rth@redhat.com>
7026
7027 * expr.c (build_personality_function): Take parameter LANG instead
7028 of parameter NAME. Build the name based on the lang prefix and the
7029 unwind method in use.
7030 * tree.c (lhd_gcc_personality): Update call to
7031 build_personality_function.
7032
7033 2010-10-13 Richard Guenther <rguenther@suse.de>
7034
7035 PR objc/45878
7036 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
7037
7038 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
7039
7040 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
7041 Canonicalize input operands of ASM_OPERANDS insns.
7042
7043 2010-10-13 Richard Guenther <rguenther@suse.de>
7044
7045 PR tree-optimization/45788
7046 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
7047 EH update until fixup-cfg.
7048
7049 2010-10-13 Julian Brown <julian@codesourcery.com>
7050
7051 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
7052 from CORE_REGS and GENERAL_REGS classes.
7053 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
7054 final constraint for register preferencing.
7055
7056 2010-10-13 Richard Guenther <rguenther@suse.de>
7057
7058 PR tree-optimization/45970
7059 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
7060 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
7061 (stmt_kills_ref_p): Likewise.
7062 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
7063
7064 2010-10-13 Richard Guenther <rguenther@suse.de>
7065
7066 PR tree-optimization/45982
7067 * tree-ssa-structalias.c (make_constraints_to): New function.
7068 (make_constraint_to): Implement in terms of make_constraints_to.
7069 (find_func_aliases): Properly make return values of pure/const
7070 functions escape if they assign to sth that is not a pointer.
7071
7072 2010-10-13 Richard Guenther <rguenther@suse.de>
7073
7074 PR middle-end/45874
7075 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
7076 Fixup the CFG when EH was fixed up.
7077
7078 2010-10-13 Ira Rosen <irar@il.ibm.com>
7079
7080 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
7081 Use operand's type for POINTER_PLUS_EXPR.
7082
7083 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
7084
7085 * c-parser.c (c_parser_for_statement): Initialize incr.
7086
7087 2010-10-12 Xinliang David Li <davidxl@google.com>
7088
7089 PR tree-optimization/45972
7090 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
7091 with too many arguments.
7092
7093 2010-10-12 Jakub Jelinek <jakub@redhat.com>
7094
7095 PR fortran/45636
7096 * tree-ssa-forwprop.c: Include expr.h.
7097 (constant_pointer_difference, simplify_builtin_call): New functions.
7098 (tree_ssa_forward_propagate_single_use_vars): Call
7099 simplify_builtin_call on builtin calls.
7100
7101 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
7102
7103 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
7104 (*adddi3_extend_sp32): Likewise.
7105 (*subdi3_insn_sp32): Likewise.
7106 (*subdi3_extend_sp32): Likewise.
7107 (*negdi2_sp32): Use negative test for consistency.
7108
7109 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
7110
7111 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
7112 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7113 * config/fixed-bit.h: Likewise.
7114 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7115 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
7116 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
7117 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
7118 (DF_SIZE): Likewise.
7119 * doc/tm.texi: Regenerate.
7120
7121 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
7122
7123 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
7124 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
7125 (*isel_reversed_unsigned_<mode>): New.
7126 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
7127 as valid comparisons and adjust operands and output appropriately.
7128 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
7129
7130 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
7131
7132 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
7133 DATA_ALIGNMENT and add COND parameter. Update comments above.
7134 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
7135 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
7136
7137 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
7138
7139 PR bootstrap/45958
7140 * exec-tool.in: Support '-plugin' as the second option to the linker.
7141
7142 2010-10-12 Richard Henderson <rth@redhat.com>
7143
7144 PR middle-end/45962
7145 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
7146 (expand_stack_vars): Assert large base allocated when used.
7147
7148 2010-10-12 Richard Guenther <rguenther@suse.de>
7149
7150 * tree-ssa-structalias.c (get_constraint_for_1): Constants
7151 only point to nonlocal, not anything.
7152
7153 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
7154
7155 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
7156 unwind info for exceptions.
7157
7158 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7159
7160 PR testsuite/45851
7161 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
7162 Document optional target selector.
7163
7164 2010-10-12 Joseph Myers <joseph@codesourcery.com>
7165
7166 * flag-types.h: New.
7167 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
7168 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
7169 options.h.
7170 (OPTIONS_H): Define.
7171 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
7172 of options.h.
7173 * configure.ac (tm_include_list): Include options.h not flags.h.
7174 * configure: Regenerate.
7175 * flags.h: Include flag-types.h. Include options.h at top of file
7176 again.
7177 (enum debug_info_type, enum debug_info_level, enum
7178 debug_info_usage, enum symbol_visibility, struct visibility_flags,
7179 enum ira_algorithm, enum ira_region, enum excess_precision, enum
7180 graph_dump_types, enum stack_check_type,
7181 enum warn_strict_overflow_code): Move to flag-types.h
7182 * opth-gen.awk: Include flag-types.h in options.h.
7183
7184 2010-10-12 Jakub Jelinek <jakub@redhat.com>
7185
7186 * expr.c (store_expr): Share code for STRING_CST and
7187 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
7188 check if target is a MEM.
7189
7190 * rtl.h: Include hashtab.h.
7191 (iterative_hash_rtx): New prototype.
7192 * rtl.c (iterative_hash_rtx): New function.
7193 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
7194 (output_loc_list): Return immediately if emitted is set, set it.
7195 (hash_loc_operands, hash_locs, hash_loc_list,
7196 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
7197 optimize_location_lists_1, optimize_location_lists): New function.
7198 (dwarf2out_finish): Call optimize_location_lists.
7199 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
7200
7201 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7202
7203 PR testsuite/45974
7204 Revert:
7205 * Makefile.in ($(lang_checks_parallel))
7206 ($(lang_checks_parallelized)): Use single quotes for
7207 $(RUNTESTFLAGS), to allow passing quoted content.
7208
7209 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7210
7211 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
7212 actual_oldval. Use __builtin_expect.
7213 (SUBWORD_VAL_CAS): Likewise.
7214
7215 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
7216
7217 * recog.c (nonmemory_operand): Call immediate_operand for
7218 CONSTANT_P operands.
7219
7220 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
7221
7222 * config/i386/i386.md (movmem<mode>): Macroize expander from
7223 movmem{si,di} using SWI48 mode iterator.
7224 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
7225 *strmovsi_rex_1 using P mode iterator.
7226 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
7227 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
7228 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
7229 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
7230 (setmem<mode>): Macroize expander from setmem{si,di} using
7231 SWI48 mode iterator.
7232 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
7233 *strsetsi_rex_1 using P mode iterator.
7234 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
7235 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
7236 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
7237 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
7238 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
7239 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
7240 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
7241 mode iterator.
7242 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
7243 *strlenqi_rex_1 using P mode iterator.
7244
7245 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
7246
7247 PR bootstrap/45445
7248 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
7249 static functions.
7250 (mark_ref_live, mark_ref_dead): Use them.
7251 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
7252 Save the original reg, and use the new functions.
7253 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
7254 changed.
7255 (check_and_make_def_conflict): Save the original reg.
7256
7257 2010-10-11 Martin Jambor <mjambor@suse.cz>
7258
7259 PR middle-end/45699
7260 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
7261 thunks.
7262
7263 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7264
7265 * Makefile.in ($(lang_checks_parallel))
7266 ($(lang_checks_parallelized)): Use single quotes for
7267 $(RUNTESTFLAGS), to allow passing quoted content.
7268
7269 PR bootstrap/35855
7270 * opt-functions.awk (BEGIN): New section.
7271 (lower, upper, digit, alnum): New variables.
7272 (static_var, opt_sanitized_name): Use alnum instead of character
7273 classes, for non-C locale.
7274 * optc-gen.awk: Likewise.
7275 * opth-gen.awk: Likewise.
7276
7277 2010-10-11 Anatoly Sokolov <aesok@post.ru>
7278
7279 * target.def (preferred_reload_class): New hook.
7280 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
7281 * doc/tm.texi: Regenerate.
7282 * targhooks.c (default_preferred_reload_class): New function.
7283 * targhooks.h (default_preferred_reload_class): Declare.
7284 * reload.c (find_dummy_reload): Change preferred_class variable type
7285 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
7286 target hook.
7287 (find_reloads): Change goal_alternative array type from int to
7288 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
7289 (push_reload, find_reloads_address_part): Use
7290 TARGET_PREFERRED_RELOAD_CLASS target hook.
7291 * reload1.c (emit_input_reload_insns): Ditto.
7292 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
7293 hook. Change rclass argument and secondary_class variable types from
7294 'enum reg_class' to reg_class_t.
7295
7296 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
7297 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
7298 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
7299 Change regclass argument and result types from enum reg_class to
7300 reg_class_t.
7301 (TARGET_PREFERRED_RELOAD_CLASS): Define.
7302
7303 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
7304
7305 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
7306 in masking operations.
7307 (simplify_const_unary_operation): Likewise.
7308 (simplify_binary_operation_1): Likewise.
7309 (simplify_const_binary_operation): Likewise.
7310 (simplify_const_relational_operation): Likewise.
7311 (simplify_ternary_operation): Likewise.
7312 (simplify_immed_subreg): Likewise.
7313
7314 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7315
7316 PR middle-end/45862
7317 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
7318 (TARGET_SUPPORTS_WEAK): New.
7319 * doc/tm.texi: Regenerate.
7320 * defaults.h (SUPPORTS_WEAK): Update comment.
7321 (TARGET_SUPPORTS_WEAK): New.
7322 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
7323 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
7324 SUPPORTS_WEAK.
7325 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
7326 make_decl_one_only): Likewise.
7327 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
7328 TARGET_SUPPORTS_WEAK.
7329 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
7330 instead of SUPPORTS_WEAK.
7331
7332 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7333
7334 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
7335
7336 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
7337
7338 * vec.h (VEC_qsort): Define.
7339 * dbxout.c (output_used_types): Use it.
7340 * df-scan.c (df_sort_and_compress_refs): Likewise.
7341 (df_sort_and_compress_mws): Likewise.
7342 * genautomata.c (uniq_sort_alt_states): Likewise.
7343 (evaluate_equiv_classes): Likewise.
7344 (output_trans_table): Likewise.
7345 (output_state): Likewise.
7346 * gimplify.c (compare_case_labels): Likewise.
7347 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
7348 * ipa.c (build_cdtor_fns): Likewise.
7349 * lto.c (lto_wpa_write_files): Likewise.
7350 * sel-sched.c (fill_vec_av_set): Likewise.
7351 * tree-predcom.c (determine_roots_comp): Likewise.
7352 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
7353 (splice_param_accesses): Likewise.
7354 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
7355 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7356 (reassociate_bb): Likewise.
7357 * tree-ssa-sccvn.c (sort_scc): Likewise.
7358 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
7359
7360 2010-10-11 Ian Lance Taylor <iant@google.com>
7361
7362 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
7363 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
7364 TREE_THIS_NOTRAP when appropriate.
7365 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
7366 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
7367 newly created MEM_REF.
7368
7369 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
7370
7371 Nathan Froyds patch to hooks FUNCTION_ARG etc.
7372 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
7373 (picochip_incoming_function_arg): Delete.
7374 (picochip_arg_advance): Delete.
7375 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
7376 (FUNCTION_INCOMING_ARG): Delete.
7377 (FUNCTION_ARG_ADVANCE): Delete.
7378 * config/picochip/picochip.c (picochip_function_arg): Take a
7379 const_tree and a bool.
7380 (picochip_incoming_function_arg): Likewise.
7381 (picochip_arg_advance): Likewise.
7382 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7383 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7384
7385 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7386
7387 PR middle-end/45955
7388 * ipa.c (build_cdtor): Delete endless loop.
7389
7390 2010-10-07 Andi Kleen <ak@linux.intel.com>
7391
7392 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
7393 checksum-options.
7394 (checksum-options): Add.
7395 (cc1-dummy): Remove.
7396 (cc1-checksum): Change to run checksum over object files
7397 and options only.
7398 * dummy-checksum.c: Remove.
7399 * genchecksum.c: Update copyright.
7400 (usage): Allow multiple arguments.
7401 (BLOCKSIZE): Add.
7402 (dosum): Change for incremental checksum. Remove C output.
7403 (main): Iterate over all argument files. Add C output.
7404
7405 2010-10-11 Joseph Myers <joseph@codesourcery.com>
7406
7407 * params.c (set_param_value_internal): New.
7408 (set_param_value): Use set_param_value_internal.
7409 (maybe_set_param_value, set_default_param_value): New.
7410 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
7411 (maybe_set_param_value, set_default_param_value): Declare.
7412 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
7413 * config/i386/i386.c (ix86_option_override_internal): Use
7414 maybe_set_param_value.
7415 * config/ia64/ia64.c (ia64_option_default_params,
7416 TARGET_OPTION_DEFAULT_PARAMS): New.
7417 (ia64_option_optimization): Move some code to
7418 ia64_option_default_params.
7419 * config/picochip/picochip.c (picochip_option_override): Use
7420 maybe_set_param_value.
7421 * config/rs6000/rs6000.c (rs6000_option_default_params,
7422 TARGET_OPTION_DEFAULT_PARAMS): New.
7423 (rs6000_option_override_internal): Use maybe_set_param_value.
7424 (rs6000_option_optimization): Move some code to
7425 rs6000_option_default_params.
7426 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
7427 * config/sh/sh.c (sh_option_default_params,
7428 TARGET_OPTION_DEFAULT_PARAMS): New.
7429 (sh_option_optimization): Move some code to sh_option_default_params.
7430 * config/sparc/sparc.c (sparc_option_override): Use
7431 maybe_set_param_value.
7432 * config/spu/spu.c (spu_option_default_params,
7433 TARGET_OPTION_DEFAULT_PARAMS): New.
7434 (spu_option_optimization): Move some code to spu_option_default_params.
7435 (spu_option_override): Use maybe_set_param_value.
7436 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
7437 * doc/tm.texi: Regenerate.
7438 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
7439 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
7440 compiler_params.
7441 (default_options_optimization): Use maybe_set_param_value.
7442 (finish_options): Use maybe_set_param_value.
7443 * target.def (target_option.default_params): New hook.
7444 * toplev.c (general_init): Call targetm.target_option.default_params.
7445
7446 2010-10-11 Ira Rosen <irar@il.ibm.com>
7447
7448 PR tree-optimization/45902
7449 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
7450 vector type for constants, unless it's a pointer.
7451
7452 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
7453
7454 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
7455
7456 2010-10-11 Jakub Jelinek <jakub@redhat.com>
7457
7458 PR target/45870
7459 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
7460 (ix86_delegitimize_address): Use it.
7461
7462 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
7463
7464 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
7465
7466 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
7467
7468 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
7469 to cum struct in the call to function_arg_advance.
7470 (alpha_function_arg_advance): Mark named as unused.
7471
7472 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
7473
7474 * config/mips/mips.c (mips_handle_option): Make "value" with
7475 ATTRIBUTE_UNUSED.
7476
7477 2010-10-09 Richard Henderson <rth@redhat.com>
7478
7479 PR rtl-opt/33721
7480 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
7481 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
7482 required_align, tidy the code a bit. Emit split_stack code in the
7483 right place. Mark the return value with the alignment properly.
7484 * expr.h (allocate_dynamic_stack_space): Update decl.
7485 * builtins.c (expand_builtin_apply): Update call to
7486 allocate_dynamic_stack_space.
7487 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
7488 * calls.c (initialize_argument_information): Update call to
7489 allocate_dynamic_stack_space.
7490 (expand_call): Likewise.
7491
7492 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
7493 Don't update_stack_alignment here.
7494 (alloc_stack_frame_space): Make ALIGN unsigned.
7495 (stack_var_cmp): Sort by alignment too.
7496 (partition_stack_vars): Don't merge large and small alignment vars.
7497 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
7498 Take care when BASE is not virtual_stack_vars_rtx.
7499 (expand_stack_vars): Allocate dynamic stack space for large
7500 alignment variables.
7501 (expand_one_stack_var): Update all to expand_one_stack_var_at.
7502 (defer_stack_allocation): True for large alignment vars.
7503 (update_stack_alignment): Merge into ...
7504 (expand_one_var): ... here.
7505 (gimple_expand_cfg): Place code from expand_stack_vars.
7506
7507 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7508
7509 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7510 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
7511 (pdp11_function_arg_advance): New function.
7512 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7513
7514 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7515
7516 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
7517 * libgcc2.c: Likewise.
7518
7519 2010-10-09 Richard Guenther <rguenther@suse.de>
7520
7521 PR lto/45956
7522 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
7523 Properly check if a decl is an automatic var.
7524
7525 2010-10-09 Richard Guenther <rguenther@suse.de>
7526
7527 PR lto/45947
7528 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
7529
7530 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7531
7532 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
7533 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7534 * config/mmix/mmix.c (mmix_function_arg): Rename to...
7535 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
7536 bool arguments.
7537 (mmix_function_arg): New function.
7538 (mmix_function_incoming_arg): New function.
7539 (mmix_function_arg_advance): New function.
7540 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
7541 (TARGET_FUNCTION_ARG_ADVANCE): Define.
7542
7543 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7544
7545 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7546 * config/vax/vax.c (vax_function_arg): New function.
7547 (vax_function_arg_advance): New function.
7548 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7549
7550 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7551
7552 * config/pa/pa-protos.h (function_arg): Delete.
7553 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7554 * config/pa/pa.c (function_arg): Rename to...
7555 (pa_function_arg): ...this. Make static. Take a const_tree and
7556 a bool.
7557 (pa_function_arg_advance): New function.
7558 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7559
7560 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7561
7562 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7563 * config/m68k/m68k.c (m68k_function_arg): New function.
7564 (m68k_function_arg_advance): New function.
7565 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7566
7567 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7568
7569 * config/avr/avr-protos.h (function_arg): Delete.
7570 (function_arg_advance): Delete.
7571 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7572 * config/avr/avr.c (function_arg): Rename to...
7573 (avr_function_arg): ...this. Make static. Take a const_tree and
7574 a bool.
7575 (function_arg_advance): Rename to...
7576 (avr_function_arg_advance): ...this. Make static. Take a
7577 const_tree and a bool.
7578 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7579
7580 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7581
7582 * config/alpha/alpha-protos.h (function_arg): Delete.
7583 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7584 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
7585 * config/alpha/alpha.c (function_arg): Rename to...
7586 (alpha_function_arg): ...this. Make static. Take a const_tree and
7587 a bool. Delete TARGET_ABI_UNICOSMK code.
7588 (alpha_function_arg_advance): New function.
7589 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7590
7591 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7592
7593 * config/mep/mep-protos.h (mep_function_arg): Delete.
7594 (mep_function_arg_advance): Delete.
7595 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7596 * config/mep/mep.c (mep_function_arg): Make static. Take a
7597 const_tree and a bool.
7598 (mep_function_arg_advance): Likewise.
7599 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7600
7601 2010-10-09 Richard Guenther <rguenther@suse.de>
7602
7603 PR tree-optimization/45945
7604 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
7605
7606 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
7607
7608 PR tree-optimization/45612
7609 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
7610 Test LABEL_DECLs as well. Fix formatting issues.
7611 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
7612 whose label is present in NON_SSA_VARS.
7613 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
7614 as well. Fix formatting issues.
7615 (visit_bb): Fix typos and formatting issue.
7616
7617 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
7618
7619 PR tree-optimization/45950
7620 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
7621 before initializing vno->op.
7622
7623 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
7624
7625 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
7626 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
7627
7628 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
7629
7630 PR target/45913
7631 * config/i386/i386.c (ix86_binary_operator_ok): Support
7632 "andhi/andsi/anddi" as a zero-extending move.
7633
7634 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7635
7636 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
7637 into a temporary array.
7638
7639 2010-10-08 Jakub Jelinek <jakub@redhat.com>
7640
7641 PR tree-optimization/45903
7642 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
7643 of {A,L}SHIFTRT of MEM.
7644
7645 2010-10-08 Richard Guenther <rguenther@suse.de>
7646
7647 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
7648 Re-construct BLOCK_VARS.
7649 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
7650 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
7651 * tree.c (free_lang_data_in_block): Remove.
7652 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
7653 Do not touch the BLOCK tree.
7654 * expr.c (expand_expr_real_1): Allow externals.
7655
7656 2010-10-08 Richard Guenther <rguenther@suse.de>
7657
7658 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
7659 Do not output BLOCK_SUBBLOCKS.
7660 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
7661 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
7662 Re-construct BLOCK_SUBBLOCKS of parent block.
7663 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
7664 for BINFO_BASE_ACCESSES.
7665
7666 2010-10-08 Joseph Myers <joseph@codesourcery.com>
7667
7668 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
7669 (TREE_H): Include $(FLAGS_H) instead of options.h.
7670 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
7671 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
7672 * common.opt (flag_complex_method, flag_evaluation_order,
7673 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
7674 Variable declarations.
7675 * configure.ac (tm_include_list): Include flags.h instead of options.h.
7676 * configure: Regenerate.
7677 * flags.h: Condition out contents for target libraries. Include
7678 options.h at end of file.
7679 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
7680 flag_evaluation_order, flag_warn_unused_result): Remove.
7681 * gcc.c (main): Intialize global_options with global_options_init.
7682 * langhooks-def.h (lhd_init_options_struct): Declare.
7683 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
7684 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
7685 * langhooks.c (lhd_init_options_struct): New.
7686 * langhooks.h (struct lang_hooks): Add init_options_struct.
7687 Update comment on init_options.
7688 * optc-gen.awk: Generate initializer for global_options_init, not
7689 global_options.
7690 * opth-gen.awk: Condition out structure declarations for target
7691 libraries. Declare global_options_init.
7692 * opts-common.c: Include flags.h instead of options.h.
7693 * opts.c (flag_warn_unused_result): Remove.
7694 (read_cmdline_options): Take gcc_options parameters. Pass them to
7695 read_cmdline_option.
7696 (initial_lang_mask, initial_min_crossjump_insns,
7697 initial_max_fields_for_field_sensitive,
7698 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
7699 (init_options_once): New. Split out of decode_options.
7700 (init_options_struct): New. Split out of decode_options.
7701 (decode_cmdline_options_to_array_default_mask): New.
7702 (default_options_optimization): New. Split out of decode_options.
7703 (decode_options): Move most code to other functions. Update call
7704 to read_cmdline_options.
7705 (finish_options): New. Split out of decode_options.
7706 * opts.h (decode_options): Add gcc_options parameters.
7707 (init_options_once, init_options_struct,
7708 decode_cmdline_options_to_array_default_mask): New.
7709 * toplev.c (flag_complex_method, flag_ira_algorithm,
7710 flag_ira_region, flag_evaluation_order): Remove.
7711 (general_init): Use global_options_init for initial flag values
7712 for global_dc.
7713 (toplev_main): Call init_options_once, init_options_struct,
7714 lang_hooks.init_options_struct,
7715 decode_cmdline_options_to_array_default_mask and
7716 lang_hooks.init_option before decode_options. Update arguments to
7717 decode_options.
7718 * tree.h: Include flags.h instead of options.h.
7719
7720 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7721
7722 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7723
7724 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7725
7726 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
7727 Delete.
7728 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
7729 (FUNCTION_INCOMING_ARG): Delete.
7730 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
7731 (function_arg_slotno): Likewise. Take bool arguments.
7732 (sparc_arg_partial_bytes): Update call to it.
7733 (function_arg): Rename to...
7734 (sparc_function_arg_1): ...this. Take bool arguments.
7735 (sparc_function_arg, sparc_function_incoming_arg): New functions.
7736 (function_arg_advance): Rename to...
7737 (sparc_function_arg_advance): ...this. Take bool argument.
7738 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
7739 (TARGET_FUNCTION_INCOMING_ARG): Define.
7740
7741 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7742
7743 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
7744 Delete.
7745 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7746 * config/bfin/bfin.c (function_arg_advance): Rename to...
7747 (bfin_function_arg_advance): ...this. Make static. Take const_tree
7748 and bool arguments.
7749 (function_arg): Rename to...
7750 (bfin_function_arg): ...this. Make static. Take const_tree and bool
7751 arguments.
7752 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7753
7754 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7755
7756 * config/score/score-protos.h (score_function_arg): Delete.
7757 (score_function_arg_advance): Delete.
7758 * config/score/score3.h (score3_function_arg_advance): Take a
7759 const_tree and a bool.
7760 (score3_function_arg): Likewise.
7761 * config/score/score7.h (score7_function_arg_advance): Likewise.
7762 (score7_function_arg): Likewise.
7763 * config/score/score3.c (score3_classify_arg): Likewise.
7764 (score3_function_arg_advance, score3_function_arg): Likewise.
7765 * config/score/score7.c (score7_classify_arg): Likewise.
7766 (score7_function_arg_advance, score7_function_arg): Likewise.
7767 * config/score/score.c (score_function_arg_advance): Likewise.
7768 (score_function_arg): Likewise. De-const-ify `cum' argument.
7769 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7770
7771 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7772
7773 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
7774 (s390_function_arg): Delete.
7775 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
7776 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
7777 (s390_function_arg_integer): Likewise.
7778 (s390_function_arg_advance): Make static. Take a const_tree and
7779 a bool.
7780 (s390_function_arg): Likewise.
7781 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7782
7783 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7784
7785 * config/spu/spu-protos.h (spu_function_arg): Delete.
7786 * config/spu/spu.h (FUNCTION_ARG): Delete.
7787 (FUNCTION_ARG_ADVANCE): Move code to ...
7788 * config/spu/spu.c (spu_function_arg_advance): New function.
7789 (spu_function_arg): Make static. Take a const_tree and a bool.
7790 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
7791 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
7792
7793 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7794
7795 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7796
7797 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7798
7799 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
7800 (init_vn_nary_op_from_op): New function.
7801 (init_vn_nary_op_from_stmt): New function.
7802 (vn_nary_op_lookup_1): New function.
7803 (sizeof_vn_nary_op): New function.
7804 (alloc_vn_nary_op_noinit): New function.
7805 (alloc_vn_nary_op): New function.
7806 (vn_nary_op_insert_into): New function.
7807 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
7808 (vn_nary_op_lookup): Likewise.
7809 (vn_nary_op_lookup_stmt): Likewise.
7810 (vn_nary_op_insert_pieces): Likewise.
7811 (vn_nary_op_insert): Likewise.
7812 (vn_nary_op_insert_stmt): Likewise.
7813 (copy_nary): Likewise.
7814 (set_value_id_for_result): New function.
7815 (set_hashtable_value_ids): Call it.
7816
7817 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7818
7819 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7820 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
7821
7822 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
7823
7824 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
7825 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
7826
7827 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
7828
7829 PR debug/45656
7830 * cse.c (cse_extended_basic_block): Preserve cc0 info across
7831 debug isnsn. Skip them when searching for cc0 setter.
7832 (set_live_p): Skip debug insns when searching for cc0 user.
7833
7834 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
7835
7836 PR debug/45673
7837 PR debug/45604
7838 PR debug/45419
7839 PR debug/45408
7840 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
7841 type of MEM_REFs to INTEGER_CSTs.
7842
7843 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
7844
7845 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
7846 m68hc11_print_operand_address.
7847
7848 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
7849
7850 * builtins.c (rewrite_call_expr): Move code to...
7851 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
7852 (rewrite_call_expr_array): New function.
7853 (fold_builtin_sprintf_chk_1): New function.
7854 (fold_builtin_sprintf_chk): Call it.
7855 (gimple_fold_builtin_sprintf_chk): Likewise.
7856 (fold_builtin_snprintf_chk_1): New function.
7857 (fold_builtin_snprintf_chk): Call it.
7858 (gimple_fold_builtin_snprintf_chk): Likewise.
7859 (gimple_rewrite_call_expr): Delete.
7860
7861 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7862
7863 * config.host: Update copyright year.
7864
7865 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7866
7867 * config.host (host_lto_plugin_soname): New shell variable.
7868 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
7869 * config.in: Regenerate.
7870 * configure: Regenerate.
7871 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
7872 LTO plugin shared library.
7873
7874 2010-10-07 Richard Henderson <rth@redhat.com>
7875
7876 * target.h (enum unwind_info_type): Move ...
7877 * coretypes.h: ... here.
7878
7879 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
7880
7881 * doc/objc.texi (Fast enumeration protocol): Mention that
7882 'unsigned int' can also be used instead of 'unsigned long' in
7883 countByEnumeratingWithState:objects:count:.
7884
7885 2010-10-07 Martin Jambor <mjambor@suse.cz>
7886
7887 * tree-sra.c (struct access): New field grp_assignment_write.
7888 (dump_access): Dump grp_assignment_write.
7889 (build_accesses_from_assign): Set grp_assignment_write.
7890 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
7891 (mark_read_status): Renamed to mark_rw_status, individual values
7892 renamed too.
7893 (analyze_access_subtree): Changed type of mark_write to
7894 mark_read_status. Fixed propagating of mark_read and
7895 mark_write. Changed benefit estimate. Updated comment.
7896
7897 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
7898
7899 PR Tree-Vect/45847
7900 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
7901 check for vectype_out returned by get_vectype_for_scalar_type().
7902
7903 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
7904
7905 PR target/45805
7906 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
7907 constraint, add register specifier in instruction template.
7908 (neon_vec_pack_trunc_<mode>): Likewise.
7909 (neon_vec_<US>mult_<mode>): Add register specifier to
7910 instruction template.
7911
7912 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
7913
7914 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
7915 cygwin2.o.
7916 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
7917 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
7918 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
7919 (cygwin2.o): Likewise.
7920 * config/i386/cygwin1.c: Delete file.
7921 * config/i386/cygwin2.c: Likewise.
7922 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
7923 make all {%!mno-cygwin} ones unconditional.
7924 (STARTFILE_SPEC): Likewise.
7925 (REAL_LIBGCC_SPEC): Likewise.
7926 (LIB_SPEC): Likewise.
7927 (CXX_WRAP_SPEC): Likewise.
7928 (LINK_SPEC): Likewise.
7929 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
7930 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
7931 (cygwin_gplusplus_include_dir): Delete now-unused array.
7932 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
7933 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
7934 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
7935 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
7936 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
7937 (cygwin_local_include_dir): Delete now-unused array.
7938 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
7939 (cygwin_cross_include_dir): Delete now-unused array.
7940 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
7941 (cygwin_tool_include_dir): Delete now-unused array.
7942 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
7943 (cygwin_standard_include_dir): Delete now-unused array.
7944 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
7945 (GEN_CVT_ARRAY): Delete now-unused macro definition.
7946 (cvt_to_mingw): Delete now-unused array.
7947 (mingw_scan): Remove prototype of deleted function.
7948 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
7949 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
7950 * doc/invoke.texi (-mcygwin): Don't document removed option.
7951 (-mno-cygwin): Likewise.
7952
7953 2010-10-07 Richard Guenther <rguenther@suse.de>
7954
7955 * machmode.h (mode_for_vector): Declare.
7956 * stor-layout.c (mode_for_vector): New function, split out from ...
7957 (layout_type): ... here.
7958 * tree-vectorizer.h (current_vector_size): Declare.
7959 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
7960 mask vector type is available.
7961 (get_vectype_for_scalar_type): Rename to ...
7962 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
7963 size argument.
7964 (get_vectype_for_scalar_type): New wrapper around
7965 get_vectype_for_scalar_type_and_size using current_vector_size.
7966 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
7967 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
7968 of vect_analyze_loop here.
7969 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
7970 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
7971 to autodetect.
7972 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
7973 V8SF to V8SI conversion builtin.
7974
7975 2010-10-07 Richard Guenther <rguenther@suse.de>
7976
7977 * target.def (autovectorize_vector_sizes): New target hook.
7978 * targhooks.c (default_autovectorize_vector_sizes): New function.
7979 * targhooks.h (default_autovectorize_vector_sizes): Declare.
7980 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
7981 Document.
7982 * doc/tm.texi: Update.
7983 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
7984 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
7985
7986 2010-10-07 Richard Guenther <rguenther@suse.de>
7987
7988 * target.def (units_per_simd_word): Rename to ...
7989 (preferred_simd_mode): ... this. Return mode instead of size.
7990 * targhooks.c (default_units_per_simd_word): Rename to ...
7991 (default_preferred_simd_mode): ... this. Return word_mode.
7992 * targhooks.h (default_preferred_simd_mode): Declare.
7993 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
7994 (arm_preferred_simd_mode): ... this. Re-implement.
7995 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
7996 (ix86_preferred_simd_mode): ... this. Re-implement.
7997 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
7998 (sparc_preferred_simd_mode): ... this. Re-implement.
7999 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
8000 (mips_preferred_simd_mode): ... this. Re-implement.
8001 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
8002 (rs6000_preferred_simd_mode): ... this. Re-implement.
8003 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
8004 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
8005 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
8006 * doc/tm.texi: Update.
8007
8008 2010-10-07 Richard Guenther <rguenther@suse.de>
8009
8010 PR middle-end/45869
8011 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
8012 of pointers.
8013
8014 2010-10-07 Alan Modra <amodra@gmail.com>
8015
8016 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
8017 rather than sign extension by hand.
8018
8019 2010-10-07 Jan Hubicka <jh@suse.cz>
8020
8021 PR middle-end/45926
8022 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
8023
8024 2010-10-07 Richard Guenther <rguenther@suse.de>
8025
8026 PR bootstrap/45914
8027 * configure.ac: Fix typo.
8028 * configure: Regenerated.
8029
8030 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8031
8032 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
8033 define_builtin_std where it's unnecessary.
8034 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
8035
8036 2010-10-06 Anatoly Sokolov <aesok@post.ru>
8037
8038 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
8039 * doc/tm.texi.in: Regenerate.
8040 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
8041 * targhooks.c (default_class_likely_spilled_p): Don't use the
8042 CLASS_LIKELY_SPILLED_P macro.
8043
8044 * config/arm/arm.md: Update comment.
8045
8046 2010-10-06 Jan Hubicka <jh@suse.cz>
8047
8048 * ipa.c (cgraph_remove_unreachable_nodes): External references can
8049 always be removed.
8050 (cgraph_externally_visible_p): We can not bring local comdats that
8051 are known to linker; fix handling of internal visibility.
8052 (function_and_variable_visibility): Likewise.
8053
8054 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
8055
8056 PR rtl-optimization/45394
8057 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
8058 (struct rtx_subst_pair): Remove AFTER field.
8059 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
8060 (propagate_for_debug): Remove MOVE parameter and adjust.
8061 (try_combine): In the special case where I2 is a PARALLEL, combine only
8062 destinations of SETs and set I2SRC to the I2 source.
8063 Adjust calls to propagate_for_debug throughout.
8064 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
8065 insns.
8066
8067 2010-10-06 Olivier Hainque <hainque@adacore.com>
8068
8069 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
8070 switch on insn codes as sequence of ifs.
8071
8072 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
8073
8074 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
8075 be UI_NONE for picochip.
8076 (picochip_option_override): Do not disable exception flags.
8077 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
8078 Declare.
8079
8080 2010-10-06 Richard Guenther <rguenther@suse.de>
8081
8082 * Makefile.in (regmove.o): Depend on $(TARGET_H).
8083
8084 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
8085
8086 Implemented fast enumeration for Objective-C.
8087 * c-parser.c (objc_could_be_foreach_context): New.
8088 (c_lex_one_token): Recognize RID_IN keyword in a potential
8089 Objective-C foreach context.
8090 (c_parser_declaration_or_fndef): Added parameter. Accept
8091 Objective-C RID_IN keyword as terminating a declaration; in that
8092 case, return the declaration in the new parameter.
8093 (c_parser_extenral_declaration): Updated calls to
8094 c_parser_declaration_or_fndef.
8095 (c_parser_declaration_or_fndef): Same change.
8096 (c_parser_compound_statement_nostart): Same change.
8097 (c_parser_label): Same change.
8098 (c_parser_objc_methodprotolist): Same change.
8099 (c_parser_omp_for_loop): Same change.
8100 (c_parser_for_statement): Detect and parse Objective-C foreach
8101 statements.
8102 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
8103 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
8104 fast enumeration parsing code to turn off the c99 error but still
8105 perform checks on the loop declarations.
8106 * c-tree.h (check_for_loop_decls): Updated declaration.
8107 * doc/objc.texi: Document fast enumeration.
8108
8109 2010-10-06 Nick Clifton <nickc@redhat.com>
8110
8111 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
8112 (MDR_REGNUM): Define.
8113 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
8114 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
8115 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
8116 (REGISTER_NAMES): Add MDR.
8117 (DWARF2_DEBUGGING_INFO): Define to 1.
8118 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
8119 (F): New function. Sets RTX_FRAME_RELATED_P.
8120 (mn10300_gen_multiple_store): Use F.
8121 (expand_prologue): Use F. Use gen_movsf() to push floating
8122 point registers.
8123 (expand_epilogue): Use gen_movsf() to pop floating point registers.
8124 (mn10300_option_override): Disable combine stack adjust pass.
8125
8126 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
8127
8128 PR target/45901
8129 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
8130 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
8131
8132 2010-10-06 Jakub Jelinek <jakub@redhat.com>
8133
8134 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
8135 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
8136 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
8137 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
8138 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
8139 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
8140 BUILT_IN_TOUPPER): Mark as leaf.
8141
8142 PR middle-end/45838
8143 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
8144 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
8145 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
8146 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
8147 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
8148 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
8149 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
8150
8151 2010-10-05 Anatoly Sokolov <aesok@post.ru>
8152
8153 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
8154 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8155 (m68hc11_class_likely_spilled_p): New function.
8156
8157 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
8158
8159 * c-parser.c (c_parser_objc_method_definition): Updated comment.
8160
8161 2010-10-05 Jan Hubicka <jh@suse.cz>
8162
8163 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
8164 Document.
8165 * opts.c (decode_options): Handle lto partitions.
8166 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
8167 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
8168
8169 2010-10-05 Jan Hubicka <jh@suse.cz>
8170
8171 * cgraphunit.c (assemble_function): Output thunks and aliases before
8172 the function itself.
8173
8174 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
8175
8176 * config/picochip/picochip.c (picochip_option_override): Disable
8177 exception flags for picochip.
8178
8179 2010-10-05 Joseph Myers <joseph@codesourcery.com>
8180
8181 * opts-common.c (handle_option, handle_generated_option,
8182 read_cmdline_option, set_option): Add diagnostic_context
8183 parameter. Update calls among these functions.
8184 (set_option): Don't use global_dc.
8185 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
8186 (decode_options): Pass global_dc to enable_warning_as_error.
8187 (common_handle_option): Pass global_dc to enable_warning_as_error.
8188 (enable_warning_as_error): Add diagnostic_context parameter.
8189 Document parameters. Don't use global_dc. Pass
8190 diagnostic_context parameter to handle_generated_option.
8191 * opts.h (set_option, handle_option, handle_generated_option,
8192 read_cmdline_option, enable_warning_as_error): Add
8193 diagnostic_context parameter.
8194 * Makefile.in (lto-opts.o): Update dependencies.
8195 * coretypes.h (struct diagnostic_context, diagnostic_context):
8196 Declare here.
8197 * diagnostic.h (diagnostic_context): Don't declare typedef here.
8198 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
8199 * langhooks-def.h (struct diagnostic_context): Don't declare here.
8200 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
8201 using diagnostic_context typedef.
8202 * langhooks.c (lhd_initialize_diagnostics): Declare using
8203 diagnostic_context typedef.
8204 * langhooks.h (struct diagnostic_context): Don't declare here.
8205 (initialize_diagnostics, print_error_function): Declare using
8206 diagnostic_context typedef.
8207 * lto-opts.c: Include diagnostic.h.
8208 (lto_reissue_options): Pass global_dc to set_option. Pass
8209 DK_UNSPECIFIED not 0.
8210 * plugin.c (plugins_internal_error_function): Declare using
8211 diagnostic_context typedef.
8212 * plugin.h (struct diagnostic_context): Don't declare here.
8213 (plugins_internal_error_function): Declare using
8214 diagnostic_context typedef.
8215
8216 2010-10-05 Olivier Hainque <hainque@adacore.com>
8217 Nicolas Roche <roche@adacore.com>
8218
8219 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
8220 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
8221
8222 2010-10-05 Ira Rosen <irar@il.ibm.com>
8223
8224 PR tree-optimization/45752
8225 * tree-vect-slp.c (vect_get_mask_element): Remove static
8226 variables, make them function arguments.
8227 (vect_transform_slp_perm_load): Pass new arguments to
8228 vect_get_mask_element.
8229
8230 2010-10-05 Richard Guenther <rguenther@suse.de>
8231
8232 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
8233 (gimple_mod_pow2): Likewise.
8234 (gimple_mod_subtract): Likewise.
8235 (gimple_ic): Likewise.
8236 (gimple_stringop_fixed_value): Likewise.
8237 * tree-profile.c (tree_init_edge_profiler): Mark profile
8238 functions nothrow and leaf.
8239 (add_abnormal_goto_call_edges): Remove.
8240 (tree_gen_edge_profiler): Work on SSA form.
8241 (tree_gen_ic_profiler): Likewise. Simplify.
8242 (do_tree_profiling): Update SSA form.
8243 (pass_tree_profile): Remove.
8244 (do_tree_profiling): Likewise.
8245 (gate_tree_profile_ipa): New function.
8246 (pass_ipa_tree_profile): New.
8247 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
8248 state of instrumented functions.
8249 * passes.c (init_optimization_passes): Remove early non-SSA
8250 inlining. Move profiling after early optimizations.
8251 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
8252 (pass_ipa_early_inline): Likewise.
8253 * tree-pass.h (pass_ipa_early_inline): Remove.
8254 (pass_tree_profile): Likewise.
8255 (pass_ipa_tree_profile): Declare.
8256
8257 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8258 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
8259
8260 * config/s390/s390.c (z196_cost): New.
8261 (s390_handle_arch_option): Add -march=z196.
8262 (s390_option_override): Use the new cost function and use the z10
8263 defaults also for z196.
8264 (legitimate_reload_constant_p): Adjust comment.
8265 (legitimate_reload_fp_constant_p): New function.
8266 (s390_preferred_reload_class): Distingiush between FP and Int constants.
8267 (preferred_la_operand_p): Avoid la with index on z196.
8268 (s390_adjust_priority): Trigger also for z196.
8269 (s390_issue_rate): Issue rate for z196 is 3.
8270 (s390_z10_fix_long_loop_prediction): Rename to ...
8271 (s390_fix_long_loop_prediction): ... this.
8272 (s390_reorg): Apply the z10 adjustments also for z196.
8273 (s390_loop_unroll_adjust): Do this also for z196.
8274 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
8275 (enum processor_flags): Add PF_Z196.
8276 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
8277 (TARGET_CPU_Z196, TARGET_Z196): New macros.
8278 * config.gcc: Enable z196 for --with-arch.
8279 * config/s390/2817.md: New file.
8280 * config/s390/2084.md: New type for multiply and add.
8281 * config/s390/2097.md: Likewise.
8282 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
8283 (UNSPECV_ATOMIC_OP): New constants.
8284 (fmadddf, fmaddsf): New values for type attribute.
8285 (z196prop): New insn attribute.
8286 (cpu, cpu_facility): Add z196.
8287 (ATOMIC_Z196): New code iterator.
8288 (noxa): New code attribute.
8289 (gk): New mode attribute.
8290 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
8291 Support load zero for fp constants.
8292 (fixuns_truncdddi2, fixuns_trunctddi2)
8293 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
8294 for z196.
8295 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
8296 (popcounthi2, popcountqi2): New expander.
8297 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
8298 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
8299 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
8300 insn definition.
8301 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
8302 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
8303 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
8304 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
8305 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
8306 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
8307 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
8308 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
8309 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
8310 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
8311 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
8312 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
8313 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
8314 Support new z196 instructions.
8315
8316 2010-10-05 Richard Guenther <rguenther@suse.de>
8317
8318 PR middle-end/45877
8319 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
8320 case where gimplification optimizes away the stmt.
8321
8322 2010-10-04 Jakub Jelinek <jakub@redhat.com>
8323
8324 PR debug/45849
8325 * var-tracking.c (strip_pointer_flags): New function.
8326 (emit_note_insn_var_location): If rtx_equal_p check failed,
8327 retry on locations simplified with simplify_replace_fn_rtx
8328 and strip_pointer_flags as its callback.
8329
8330 2010-10-04 Jan Hubicka <jh@suse.cz>
8331
8332 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
8333 (can_refer_decl_in_current_unit_p): ... this one; reverse return
8334 value; handle comdats too.
8335 (canonicalize_constructor_val): Use it; handle function_decls
8336 correctly.
8337 (gimple_fold_obj_type_ref_known_binfo): Likewise.
8338 * gimple.c (get_base_address): Accept all kinds of decls.
8339
8340 2010-10-04 Joseph Myers <joseph@codesourcery.com>
8341
8342 * flags.h (g_switch_value, g_switch_set): Remove.
8343 * opts.c (g_switch_value, g_switch_set): Remove.
8344 * config/g.opt (G): Add Var(g_switch_value).
8345 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
8346 (alpha_option_override): Check global_options_set.x_g_switch_value
8347 instead of g_switch_set.
8348 (alpha_in_small_data_p): Remove cast in comparison with
8349 g_switch_value.
8350 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
8351 g_switch_value to unsigned HOST_WIDE_INT.
8352 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
8353 with g_switch_value.
8354 (frv_handle_option): Don't handle -G here.
8355 (frv_option_override): Check global_options_set.x_g_switch_value
8356 instead of g_switch_set. Don't modify g_switch_set.
8357 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
8358 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
8359 g_switch_value to unsigned HOST_WIDE_INT.
8360 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
8361 (ia64_option_override): Check global_options_set.x_g_switch_value
8362 instead of g_switch_set.
8363 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
8364 Remove.
8365 (lm32_in_small_data_p): Remove cast in comparison with
8366 g_switch_value.
8367 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
8368 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
8369 HOST_WIDE_INT.
8370 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
8371 (m32r_init): Check global_options_set.x_g_switch_value instead of
8372 g_switch_set.
8373 (m32r_in_small_data_p): Remove cast in comparison with
8374 g_switch_value.
8375 (m32r_file_start): Format g_switch_value with %d.
8376 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
8377 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
8378 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
8379 handle -G here.
8380 (microblaze_option_override): Check
8381 global_options_set.x_g_switch_value instead of g_switch_set.
8382 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
8383 (mips_option_override): Check global_options_set.x_g_switch_value
8384 instead of g_switch_set.
8385 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
8386 (rs6000_file_start): Format g_switch_value with %d.
8387 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
8388 comparisons with g_switch_value.
8389 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
8390 global_options_set.x_g_switch_value instead of g_switch_set.
8391 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
8392 global_options_set.x_g_switch_value instead of g_switch_set.
8393 * config/score/score.c (score_handle_option): Don't handle -G here.
8394 * config/score/score3.c (score3_option_override): Check
8395 global_options_set.x_g_switch_value instead of g_switch_set.
8396 * config/score/score7.c (score7_option_override): Check
8397 global_options_set.x_g_switch_value instead of g_switch_set.
8398
8399 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
8400
8401 * common.opt (fira-coalesce): Remove.
8402
8403 * doc/invoke.texi (flag_ira_coalesce): Remove.
8404
8405 * ira-color.c (allocno_coalesced_p): Move before
8406 copy_freq_compare_func.
8407 processed_coalesced_allocno_bitmap): Ditto.
8408 (update_conflict_hard_regno_costs): Don't use
8409 ALLOCNO_FIRST_COALESCED_ALLOCNO.
8410 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
8411 (assign_hard_reg): Assume no coalesced allocnos.
8412 (get_coalesced_allocnos_attributes): Remove.
8413 (bucket_allocno_compare_func): Assume no coalesced allocnos.
8414 (push_allocno_to_stack): Ditto.
8415 (remove_allocno_from_bucket_and_push): Use
8416 ira_print_expanded_allocno instead of print_coalesced_allocno.
8417 (push_allocnos_to_stack): Assume uncoalesced allocnos.
8418 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
8419 all_conflicting_hard_regs.
8420 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
8421 (setup_allocno_left_conflicts_size): Ditto.
8422 (put_allocno_into_bucket): Ditto.
8423 (copy_freq_compare_func): Remove.
8424 (copy_freq_compare_func, merge_allocnos): Move before
8425 coalesced_pseudo_reg_freq_compare.
8426 coalesced_allocno_conflict_p): Ditto.
8427 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
8428 parameter. Assume it true.
8429 (color_allocnos): Assume uncoalesced allocnos. Use
8430 ira_print_expanded_allocno instead of print_coalesced_allocno.
8431 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
8432 parameter.
8433
8434 * ira.c: Remove comment about coalescing.
8435
8436 2010-10-04 Joseph Myers <joseph@codesourcery.com>
8437
8438 * config/mips/mips.h (target_flags_explicit): Declare for
8439 GENERATOR_FILE.
8440
8441 2010-10-04 Andi Kleen <ak@linux.intel.com>
8442
8443 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
8444 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
8445
8446 2010-10-04 Matthias Klose <doko@ubuntu.com>
8447
8448 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
8449 multilib osdirname if it exists.
8450 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
8451
8452 2010-10-04 Jakub Jelinek <jakub@redhat.com>
8453
8454 PR middle-end/45876
8455 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
8456 arg0's type or its unsigned counterpart as utype. Convert
8457 arg1 to utype unconditionally.
8458
8459 2010-10-04 Julian Brown <julian@codesourcery.com>
8460
8461 * expr.c (expand_assignment): Add assertion to prevent emitting
8462 null rtx for movmisalign pattern.
8463 (expand_expr_real_1): Likewise.
8464 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
8465 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
8466 (arm_vector_alignment_reachable): New.
8467 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
8468 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
8469 (arm_print_operand): Include alignment qualifier in %A.
8470 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
8471 (movmisalign<mode>): New expander.
8472 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
8473 insn patterns.
8474
8475 2010-10-04 Joseph Myers <joseph@codesourcery.com>
8476
8477 * optc-gen.awk: Define global_options_set. Don't define
8478 target_flags_explicit.
8479 * opth-gen.awk: Declare global_options_set. Define
8480 target_flags_explicit as macro.
8481 * opts-common.c (handle_option): Take opts_set and generated_p
8482 parameters.
8483 (handle_generated_option, read_cmdline_option, set_option): Take
8484 opts_set parameter.
8485 (set_option): Use opts_set instead of hardcoding target_flags and
8486 target_flags_explicit.
8487 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
8488 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
8489 flag_value_profile_transformations_set, flag_peel_loops_set,
8490 flag_branch_probabilities_set, flag_inline_functions_set,
8491 flag_ipa_cp_set, flag_ipa_cp_clone_set,
8492 flag_predictive_commoning_set, flag_unswitch_loops_set,
8493 flag_gcse_after_reload_set): Remove.
8494 (common_handle_option, lang_handle_option, target_handle_option):
8495 Take opts_set parameter. Assert that it is &global_options_set.
8496 (common_handle_option): Don't set _set variables. Check opts_set
8497 instead of such variables.
8498 (enable_warning_as_error): Pass &global_options_set to
8499 handle_generated_option.
8500 * opts.h (cl_option_handler_func.handler, set_option,
8501 handle_option, handle_generated_option, read_cmdline_option): Add
8502 opts_set parameters.
8503 (handle_option): Add generated_p parameter.
8504 * config/i386/i386.c (ix86_function_specific_save,
8505 ix86_function_specific_restore): Updat for renaming of
8506 target_flags_explicit field.
8507 * config/i386/i386.opt (target_flags_explicit): Rename to
8508 ix86_target_flags_explicit.
8509 * config/ia64/ia64.c (ia64_override_options_after_change): Check
8510 global_options_set.x_flag_selective_scheduling and
8511 global_options_set.x_flag_selective_scheduling2, not
8512 sel_sched_switch_set.
8513 * flags.h (sel_sched_switch_set,
8514 flag_speculative_prefetching_set): Remove.
8515 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
8516 that it is &global_options_set.
8517 (process_command): Pass &global_options_set to read_cmdline_option.
8518 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
8519 set_option.
8520 * toplev.c (target_flags_explicit): Remove.
8521
8522 2010-10-04 Jan Hubicka <jh@suse.cz>
8523
8524 PR middle-end/45871
8525 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
8526 use get_ref_base_and_offset to handle references.
8527 (fold_const_aggregate_ref): Update.
8528
8529 2010-10-04 Martin Jambor <mjambor@suse.cz>
8530
8531 PR tree-optimization/45572
8532 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
8533 ipa_check_create_node_params.
8534 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
8535
8536 2010-10-04 Yao Qi <yao@codesourcery.com>
8537
8538 * doc/passes.texi: Clean up.
8539
8540 2010-10-03 Ian Lance Taylor <iant@google.com>
8541
8542 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
8543 referring to a field using a typedef name.
8544 (find_anonymous_field_with_type): New static function.
8545 (convert_to_anonymous_field): New static function.
8546 (convert_for_assignment): If -fplan9-extensions, permit converting
8547 pointer to struct to pointer to anonymous field.
8548 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
8549 (is_duplicate_field): New static function.
8550 (detect_field_duplicates_hash): If -fplan9-extensions, check for
8551 typedef names duplicating field names.
8552 (detect_field_duplicates): Likewise.
8553 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
8554 (C Dialect Options): Document -fplan9-extensions.
8555 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
8556
8557 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
8558
8559 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
8560 revision 164914.
8561 (vect_create_data_ref_ptr): Likewise.
8562 * tree-vect-stmts.c (vectorizable_store): Likewise.
8563 (perm_mask_for_reverse): Likewise.
8564 (reverse_vec_elements): Likewise.
8565 (vectorizable_load): Likewise.
8566
8567 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8568
8569 * cppbuiltin.c: New file.
8570 * cppbuiltin.h: New file.
8571 * Makefile.in: Take into account cppbuiltin.{h,c}.
8572
8573 2010-10-03 Andi Kleen <ak@linux.intel.com>
8574
8575 * lto-cgraph.c (input_cgraph): Check for missing sections.
8576
8577 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
8578
8579 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
8580 to nonimmediate_operand. Force operand 2 to register when allowed.
8581 (*<shiftrt_insn><mode>3_mask): Ditto.
8582 (*<rotate_insn><mode>3_mask): Ditto.
8583
8584 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
8585
8586 PR tree-optimization/45720
8587 PR tree-optimization/45764
8588 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
8589 Don't accept backwards consecutive accesses.
8590 (vect_create_data_ref_ptr): Disallow negative steps.
8591
8592 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
8593 (perm_mask_for_reverse): Removed.
8594 (reverse_vec_elements): Likewise.
8595 (vectorizable_load): Don't handle negative steps.
8596
8597 2010-10-02 Jan Hubicka <jh@suse.cz>
8598
8599 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
8600 call destination is known.
8601
8602 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8603
8604 PR target/45820
8605 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
8606 earlier.
8607
8608 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8609
8610 * doc/install.texi (Configuration): Document build_configargs,
8611 host_configargs, target_configargs.
8612
8613 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
8614
8615 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
8616 (*<shiftrt_insn><mode>3_mask): Ditto.
8617 (*<rotate_insn><mode>3_mask): Ditto.
8618
8619 2010-10-01 Steve Ellcey <sje@cup.hp.com>
8620
8621 PR tree-optimization/44716
8622 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
8623 (HOT_TEXT_SECTION_NAME): Define.
8624
8625 2010-10-01 Nick Clifton <nickc@redhat.com>
8626
8627 * common.opt: Add -fcombine-stack-adjustments.
8628 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
8629 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
8630 flag_combine_stack_adjustments.
8631 * doc/invoke.texi: Document the new option.
8632
8633 2010-10-01 Richard Guenther <rguenther@suse.de>
8634
8635 PR tree-optimization/45854
8636 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
8637
8638 2010-10-01 Anthony Green <green@moxielogic.com>
8639
8640 * config.gcc: Fix moxie-*-rtems* configuration.
8641
8642 2010-10-01 Richard Guenther <rguenther@suse.de>
8643
8644 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
8645 (gen_decl_die): Likewise.
8646
8647 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8648
8649 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
8650 to the function code for SPU MD builtins.
8651 (spu_expand_builtin): Update.
8652 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
8653
8654 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8655
8656 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
8657 sjlj_except_unwind_info.
8658
8659 2010-10-01 Tristan Gingold <gingold@adacore.com>
8660
8661 * configure.ac: Define the nop insn for avr*-*-*
8662 * configure: Regenerate.
8663
8664 2010-10-01 Alan Modra <amodra@gmail.com>
8665
8666 PR target/45807
8667 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
8668 extend toc_restore_insn.
8669
8670 2010-09-30 Richard Guenther <rguenther@suse.de>
8671
8672 PR tree-optimization/43959
8673 * function.c (gimplify_parameters): Use create_tmp_reg instead of
8674 create_tmp_var.
8675
8676 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
8677
8678 * config/sh/sh.c (sh_expand_prologue): Set
8679 current_function_static_stack_size.
8680
8681 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8682
8683 * configure.ac: Check for Solaris 8 ld with .hidden support.
8684 * configure: Regenerate.
8685
8686 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8687
8688 PR middle-end/45758
8689 * graphite.c (graphite_initialize): Call scev_reset.
8690
8691 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8692
8693 * sese.h (scev_analyzable_p): Return false for real or floating
8694 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
8695
8696 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8697
8698 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
8699 and ps.
8700 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
8701 domain.
8702 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
8703 Do not allocate ub_expr, it is passed in initialized.
8704
8705 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8706
8707 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
8708 (build_cloog_prog): Dump CLooG input file when
8709 flag_graphite_dump_cloog is set. This is disabled on trunk.
8710 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
8711
8712 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8713
8714 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
8715 verify_dominators for CDI_POST_DOMINATORS.
8716 * sese.h: Remove comment about CDI_POST_DOMINATORS.
8717 (recompute_all_dominators): Remove call to free_dominance_info
8718 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
8719 for CDI_POST_DOMINATORS.
8720
8721 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8722
8723 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
8724 over pbb_dim_iter_domain.
8725
8726 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8727
8728 * graphite-flattening.c: Fix comments.
8729
8730 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8731
8732 * Makefile.in (OBJS-common): Add graphite-flattening.o.
8733 (graphite-flattening.o): New rule.
8734 * common.opt (floop-flatten): New flag.
8735 * doc/invoke.texi (-floop-flatten): Documented.
8736 * graphite-flattening.c: New.
8737 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
8738 * graphite-poly.h (flatten_all_loops): Declared.
8739 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
8740 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
8741 is set, also set flag_graphite.
8742
8743 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8744
8745 * graphite-poly.c (cloog_checksum): New.
8746 * graphite-poly.h (cloog_checksum): Declared.
8747
8748 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8749
8750 * graphite-poly.c (pbb_number_of_iterations): Removed.
8751 (pbb_number_of_iterations_at_time): Correctly compute the number
8752 of iterations in the transformed loop.
8753 * graphite-poly.h (pbb_number_of_iterations): Removed.
8754
8755 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8756
8757 * graphite-poly.h (lst_update_scattering_seq): Removed.
8758 (lst_update_scattering): Correctly handle outermost loop dewey
8759 renumbering.
8760
8761 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8762
8763 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
8764 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
8765 * graphite-poly.h (lst_niter_for_loop): New.
8766
8767 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8768
8769 * graphite-poly.c (apply_poly_transforms): Do not abort when the
8770 transform read from disk is not legal. Call fatal_error instead.
8771
8772 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8773
8774 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
8775 (print_scop_header): Removed. Inlined in the only call place...
8776 (print_scop): ... here.
8777
8778 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8779
8780 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
8781
8782 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8783
8784 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
8785
8786 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8787
8788 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
8789 (dot_deps_stmt): Same.
8790 * graphite-poly.c (dot_lst): Same.
8791
8792 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8793
8794 * graphite-blocking.c (scop_do_strip_mine): Do not call
8795 graphite_legal_transform.
8796 (scop_do_block): Same.
8797
8798 2010-09-30 Vladimir Kargov <kargov@gmail.com>
8799
8800 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
8801 description.
8802
8803 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8804
8805 * tree-scalar-evolution.c (instantiate_array_ref): New.
8806 (instantiate_scev_r): Also handle ARRAY_REFs.
8807
8808 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8809
8810 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
8811 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
8812 RESULT_DECL, and FIELD_DECL. Return false for an
8813 SSA_NAME_IS_DEFAULT_DEF.
8814 (compute_scalar_evolution_in_loop): Do not further analyze the
8815 scalar evolution when no_evolution_in_loop_p returns true.
8816
8817 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8818
8819 * tree-chrec.h (evolution_function_is_affine_p): Do not check
8820 whether CHREC_LEFT is invariant. A function is affine when
8821 CHREC_RIGHT is invariant.
8822
8823 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8824
8825 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
8826 is_gimple_reg.
8827 (rewrite_degenerate_phi): Same.
8828 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
8829
8830 2010-09-30 Vladimir Kargov <kargov@gmail.com>
8831
8832 * graphite-scop-detection.c (graphite_can_represent_scev,
8833 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
8834 graphite_can_represent_loop): Remove outermost_loop.
8835
8836 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8837
8838 PR middle-end/45229
8839 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
8840 handle GIMPLE_CALLs with no LHS.
8841
8842 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8843
8844 * graphite-poly.c (init_graphite_out_file): New.
8845 (init_graphite_in_file): New.
8846 (apply_poly_transforms): Updated to enable reading and writing of
8847 multiple scop files.
8848
8849 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
8850
8851 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
8852 redundant checks.
8853
8854 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8855
8856 * graphite-clast-to-gimple.c (precision_for_value): Adjust
8857 computation of precision by 1.
8858
8859 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8860
8861 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
8862 (openscop_read_polyhedron_matrix): New.
8863 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
8864 (openscop_read_N_int): Same.
8865 * graphite-poly.c (openscop_read_N_int): New.
8866 (openscop_read_one_int): New.
8867 (openscop_read_N_string): New.
8868 (openscop_read_one_string): New.
8869 (openscop_read_powerset_matrix): New.
8870 (graphite_read_transforms): Remove.
8871 (graphite_read_scatt): New.
8872 (graphite_read_scop_file): New.
8873 (apply_poly_transforms): Updated to call graphite_read_scop_file.
8874
8875 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8876
8877 * graphite-poly.c: Change include order.
8878
8879 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
8880
8881 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
8882 (cloog_matrix_nrows): New.
8883
8884 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8885
8886 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
8887 from matrix lines.
8888 * graphite-poly.c (openscop_print_scattering_function_1): Same.
8889 (print_scattering_function_1): Same.
8890 (openscop_print_pbb_domain): Same.
8891 (openscop_print_scop_context): Same.
8892 (print_scop_context): Same.
8893
8894 2010-09-30 Riyadh Baghdad <baghdadi.mr@gmail.com>
8895
8896 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
8897 (openscop_print_pdr_polyhedron): Print pph.
8898
8899 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8900
8901 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
8902 priority signed types.
8903
8904 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
8905
8906 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
8907 the call to lang_hooks.types.type_for_size. Call
8908 build_nonstandard_integer_type.
8909
8910 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
8911
8912 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
8913 (openscop_print_polyhedron_matrix): New.
8914 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
8915 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
8916 (openscop_print_pdr_powerset): New.
8917 (openscop_print_powerset_matrix): New.
8918 (openscop_print_scattering_function_1): New.
8919 (print_scattering_function): Add support for scattering names and
8920 OpenScop format.
8921 (graphite_write_transforms): Remove.
8922 (print_pdr_access_layout): Updated to support OpenScop format.
8923 (print_pdr): Same.
8924 (openscop_print_pbb_domain): New.
8925 (print_pbb_body): Added a parameter to allow indicating that pbb_body
8926 is not provided.
8927 (print_pbb): Updated to call the new print_pbb_body.
8928 (openscop_print_scop_context): New.
8929 (print_scop_header): New.
8930 (print_scop): Updated to call print_scop_header.
8931 * graphite-poly.h: Document OpenScop format.
8932
8933 2010-09-30 Anatoly Sokolov <aesok@post.ru>
8934
8935 * config/cris/m32c.c (cris_memory_move_cost): New.
8936 (cris_register_move_cost): Make static. Change arguments type from
8937 enum reg_class to reg_class_t.
8938 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8939 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8940 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
8941
8942 2010-09-30 Jakub Jelinek <jakub@redhat.com>
8943
8944 PR target/45843
8945 * config/i386/i386.c (ix86_gimplify_va_arg): Use
8946 INTVAL (XEXP (slot, 1)) as prev_size.
8947
8948 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
8949
8950 PR target/45837
8951 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
8952 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
8953 defined.
8954 * config/rs6000/option-defaults.h (toplevel): Change #if
8955 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
8956 global option changes.
8957
8958 2010-09-30 Jakub Jelinek <jakub@redhat.com>
8959
8960 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
8961
8962 PR tree-optimization/31261
8963 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
8964 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
8965
8966 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8967
8968 PR bootstrap/45796
8969 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
8970 special-casing for generators and turn into ...
8971 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
8972 rule, for better error messages in case of toplevel dependency errors.
8973 (genprog): Add hooks, rename to ...
8974 (genprogerr): ... this, and let genprog also contain check,
8975 checksum, condmd.
8976 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
8977 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
8978 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
8979
8980 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
8981 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8982
8983 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
8984 for GMP, MPFR and MPC.
8985
8986 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8987
8988 * config/sparc/sparc.opt (mimpure-text): Move ...
8989 * config/sol2.opt: ... here. Correct description.
8990 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
8991 * doc/invoke.texi (Option Summary, SPARC Options): Move
8992 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
8993 (Option Summary, Solaris 2 Options): ... here.
8994 (Submodel Options, Solaris 2 Options): New menu entry.
8995 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
8996 (Solaris 2 Options): ... here.
8997
8998 2010-09-30 Michael Eager <eager@eagercon.com>
8999
9000 * extend.texi (interrupt_handler): Add MicroBlaze to list.
9001 (save_volatiles): Describe option for MicroBlaze.
9002 * invoke.texi: Add MicroBlaze Options.
9003 * contrib.texi: Add acknowledgment.
9004 * md.texi: Add MicroBlaze d and z constraints.
9005 * install.texi: Add microblaze-*-elf.
9006 * configure.ac: Add microblaze-*-* to target list.
9007 * configure: Regenerate.
9008 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
9009 * config/microblaze/microblaze-protos.h: New.
9010 * config/microblaze/crti.s: New.
9011 * config/microblaze/predicates.md: New.
9012 * config/microblaze/linux.h: New.
9013 * config/microblaze/microblaze.md: New.
9014 * config/microblaze/constraints.md: New.
9015 * config/microblaze/crtn.s: New.
9016 * config/microblaze/microblaze.opt: New.
9017 * config/microblaze/microblaze-c.c: New.
9018 * config/microblaze/t-microblaze: New.
9019 * config/microblaze/microblaze.c: New.
9020 * config/microblaze/microblaze.h: New.
9021
9022 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
9023
9024 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
9025 parse @optional/@required and set the flags as appropriate.
9026
9027 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
9028
9029 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
9030
9031 2010-09-30 Joseph Myers <joseph@codesourcery.com>
9032
9033 * opt-functions.awk (static_var): Update comment.
9034 (var_ref): Return offsetof expression or -1, not variable address.
9035 * optc-gen.awk: Generate structure field initializers instead of
9036 static variables. Expect -1 for missing variables instead of null
9037 pointer. Add gcc_options parameters to generated functions.
9038 * opth-gen.awk: Generate structure fields for static variables.
9039 Add gcc_options parameters to generated functions.
9040 * common.opt (optimize, optimize_size): Add variables.
9041 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
9042 &global_options to cl_target_option_restore.
9043 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
9044 &global_options to cl_optimization_restore, cl_target_option_save
9045 and cl_target_option_restore.
9046 (ix86_set_current_function): Pass &global_options to
9047 cl_target_option_restore.
9048 * config/pdp11/pdp11.h (optimize): Remove.
9049 * config/rs6000/rs6000.h (optimize): Remove.
9050 * config/sh/sh.h (optimize): Remove.
9051 * config/xtensa/xtensa.h (optimize): Remove.
9052 * coretypes.h (struct gcc_options): Declare.
9053 * diagnostic.c (diagnostic_initialize): Initialize
9054 context->option_state.
9055 (diagnostic_report_diagnostic): Pass option_state to
9056 option_enabled hook.
9057 * diagnostic.h (diagnostic_context.option_enabled): Add void *
9058 parameter.
9059 (diagnostic_context.option_state): New field.
9060 * final.c (final_start_function, final, final_scan_insn): Rename
9061 optimize parameter to optimize_p.
9062 * flags.h (optimize, optimize_size): Remove.
9063 * function.c (invoke_set_current_function_hook): Pass
9064 &global_options to cl_optimization_restore.
9065 * gcc.c (driver_handle_option): Take gcc_options parameter.
9066 Assert that it is &global_options.
9067 (process_command): Pass &global_options to read_cmdline_option.
9068 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
9069 option_enabled.
9070 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
9071 &global_options to set_option.
9072 * opts-common.c (handle_option, handle_generated_option,
9073 read_cmdline_option, set_option): Take explicit gcc_options
9074 parameters. Use option_flag_var.
9075 (option_flag_var): New.
9076 * opts.c (common_handle_option, lang_handle_option,
9077 target_handle_option): Take gcc_options parameter. Assert that it
9078 is &global_options.
9079 (read_cmdline_options): Pass &global_options to read_cmdline_option.
9080 (print_filtered_help): Use option_flag_var. Pass &global_options
9081 to option_enabled.
9082 (common_handle_option): Use option_flag_var.
9083 (option_enabled): Take opts parameter. Use option_flag_var.
9084 (get_option_state): Take gcc_options parameter. Use
9085 option_flag_var. Pass gcc_options parameter to option_enabled.
9086 (enable_warning_as_error): Pass &global_options to
9087 handle_generated_option.
9088 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
9089 (cl_option_handler_func.handler): Take gcc_options parameter.
9090 (option_enabled, get_option_state, set_option, handle_option,
9091 handle_generated_option, read_cmdline_option): Take gcc_options
9092 parameters.
9093 * toplev.c (optimize, optimize_size): Remove.
9094 (print_switch_values): Pass &global_options to option_enabled.
9095 (option_affects_pch_p): Use option_flag_var. Pass &global_options
9096 to get_option_state.
9097 (general_init): Initialize global_dc->option_state.
9098 * tree.c (build_optimization_node): Pass &global_options to
9099 cl_optimization_save.
9100 (build_target_option_node): Pass &global_options to
9101 cl_target_option_save.
9102
9103 2010-09-30 Martin Jambor <mjambor@suse.cz>
9104
9105 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
9106 zero sized bit-fields.
9107
9108 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
9109
9110 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
9111 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
9112 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
9113 (c_parser_objc_class_declaration): Same change.
9114 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
9115 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
9116 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
9117 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
9118 and RID_AT_PUBLIC instead of RID_PUBLIC.
9119 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
9120 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
9121
9122 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
9123
9124 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
9125 Add links to current providers of packages for Solaris and IRIX.
9126
9127 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
9128
9129 Merge from 'apple/trunk' branch on FSF servers.
9130 * c-parser.c: Applied change originally in c-parse.in.
9131
9132 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
9133
9134 Radar 4281748
9135 * c-decl.c (start_decl): Check for redeclaration of class name.
9136 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
9137
9138 2010-09-29 Steve Ellcey <sje@cup.hp.com>
9139
9140 * config/ia64/ia64.c (ia64_builtin_decl): New.
9141 (TARGET_BUILTIN_DECL): Define.
9142 (ia64_builtins): New.
9143 (ia64_init_builtins): Save decls in ia64_builtins.
9144
9145 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
9146
9147 PR target/40457
9148 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
9149 (move2add_use_add3_insn): Likewise.
9150 (reload_cse_move2add): Likewise.
9151 * rtlanal.c (get_full_rtx_cost): New function.
9152 * rtl.h (struct full_rtx_costs): New.
9153 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
9154 costs_add_n_insns): New inline functions.
9155 (get_full_rtx_cost): Declare.
9156
9157 PR c/45054
9158 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
9159 invariants. Check for reg_equiv_invariant.
9160 (reload): Assert that spilled_pseudos is empty when returning.
9161
9162 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
9163
9164 * config/i386/mingw32.h (TARGET_64BIT): replaced by
9165 TARGET_64BIT_DEFAULT in #if check.
9166
9167 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
9168
9169 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
9170
9171 2010-09-29 Mike Stump <mikestump@comcast.net>
9172
9173 * config/darwin.h (flag_mkernel): Remove.
9174 (flag_apple_kext): Likewise.
9175
9176 2010-09-29 Joseph Myers <joseph@codesourcery.com>
9177 Jack Howarth <howarth@bromo.med.uc.edu>
9178
9179 * config/darwin.opt (undefined): Add.
9180
9181 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
9182
9183 PR testsuite/45664
9184 * configure.ac: Add --enable-indirect-function option.
9185 * config.gcc: Add default_gnu_indirect_function.
9186 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
9187 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
9188 * varasm.c (do_assemble_alias): Adjust for macro name change.
9189 * configure: Rebuilt.
9190 * doc/install.texi: Document --enable-indirect-function.
9191
9192 2010-09-29 Joseph Myers <joseph@codesourcery.com>
9193
9194 * doc/options.texi (Variable, Var, Init): Update documentation
9195 without reference to VarExists.
9196 (VarExists): Remove.
9197 * common.opt, config/i386/i386.opt, config/linux.opt,
9198 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
9199 Don't use VarExists.
9200
9201 2010-09-29 Joseph Myers <joseph@codesourcery.com>
9202
9203 * optc-gen.awk: Generate global_options initializer instead of
9204 individual variables. Add x_ prefix to names of structure members.
9205 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
9206 names of structure members.
9207 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9208 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
9209 * doc/tm.texi: Regenerate.
9210 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9211 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
9212 * c-parser.c (disable_extension_diagnostics,
9213 restore_extension_diagnostics): Update names of cpp_options members.
9214 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9215 * common.opt (fcompare-debug-second): Don't use Var.
9216 * config/alpha/alpha.h (target_flags): Remove.
9217 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9218 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
9219 * config/bfin/bfin.h (target_flags): Remove.
9220 * config/cris/cris.h (target_flags): Remove.
9221 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
9222 cl_target_option members.
9223 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
9224 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
9225 ix86_can_inline_p): Update names of cl_target_option members.
9226 * config/i386/i386.h (ix86_isa_flags): Remove.
9227 * config/lm32/lm32.h (target_flags): Remove.
9228 * config/mcore/mcore.h (mcore_stack_increment): Remove.
9229 * config/mcore/mcore.md (addsi3): Remove extern declaration of
9230 flag_omit_frame_pointer.
9231 * config/mep/mep.h (target_flags): Remove.
9232 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9233 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
9234 * config/mmix/mmix.h (target_flags): Remove.
9235 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
9236 flag_expensive_optimizations): Remove.
9237 * config/s390/s390.h (flag_pic): Remove.
9238 * config/score/score-conv.h (target_flags): Remove.
9239 * config/sh/sh.h (sh_fixed_range_str): Remove.
9240 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
9241 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
9242 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9243 * diagnostic.c (diagnostic_initialize): Update names of
9244 diagnostic_context members.
9245 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
9246 warn_system_headers.
9247 (diagnostic_report_warnings_p): Update for new names.
9248 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
9249 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
9250 HARD_FRAME_POINTER_IS_ARG_POINTER.
9251 * flags.h (flag_compare_debug): Declare.
9252 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9253 * opts.c (flag_compare_debug): Define.
9254 (common_handle_option): Update names of diagnostic_context
9255 members. Handle -fcompare-debug-second.
9256 (fast_math_flags_struct_set_p): Update names of cl_optimization
9257 members.
9258 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9259 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9260 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9261 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9262 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
9263 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
9264 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
9265 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
9266 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
9267
9268 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
9269
9270 * config/picochip/picochip.c (picochip_output_internal_label):
9271 This function can now be called for debug CFI labels, which can come
9272 in the middle of a vliw instruction. Postpone until end of vliw.
9273
9274 2010-09-29 Richard Guenther <rguenther@suse.de>
9275
9276 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
9277 (DECL_FILE_SCOPE_P): Use it.
9278 (TYPE_FILE_SCOPE_P): New macro.
9279
9280 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
9281
9282 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
9283 a CPP_NAME which is a reserved word, clearly separate cases for
9284 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
9285
9286 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
9287
9288 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
9289 token->value with the canonical spelling. Do exactly like C and
9290 C++ and leave it as it is.
9291
9292 2010-09-28 Richard Henderson <rth@redhat.com>
9293
9294 * config/alpha/alpha.c (alpha_builtins): New.
9295 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
9296 (alpha_builtin_function): New.
9297 (alpha_add_builtins, alpha_init_builtins): Use it.
9298
9299 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
9300
9301 * doc/standards.texi (Standards): Expanded the section on
9302 Objective-C and Objective-C++.
9303
9304 2010-09-28 DJ Delorie <dj@redhat.com>
9305
9306 PR target/45800
9307 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
9308 volatile MEMs.
9309
9310 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
9311
9312 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
9313 attributes on methods.
9314 (c_parser_objc_method_definition): Handle attributes.
9315 (c_parser_objc_methodproto): Likewise.
9316 (c_parser_objc_maybe_method_attributes): New.
9317 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
9318 missing definition, similar to that in ObjC++.
9319
9320 2010-09-28 Richard Henderson <rth@redhat.com>
9321
9322 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
9323 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
9324 (CONFIG_SJLJ_EXCEPTIONS): Remove.
9325 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
9326 (STACK_CHECK_PROTECT): Likewise.
9327 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
9328 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
9329 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
9330 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
9331 (dwarf2out_assembly_start): Likewise.
9332 * except.c (init_eh): Use targetm.except_unwind_info.
9333 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
9334 (output_one_function_exception_table): Likewise.
9335 * final.c: Unconditionally include dwarf2out.h.
9336 (final_start_function): Unconditionally call dwarf2out routines.
9337 (final_end_function, final_scan_insn): Likewise.
9338 * function.c (expand_function_end): Use targetm.except_unwind_info.
9339 * opts.c (decode_options): Use targetm.except_unwind_info.
9340 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
9341 * target.def (debug_unwind_info, except_unwind_info): New.
9342 * target.h (enum unwind_info_type): New.
9343 * targhooks.c (default_debug_unwind_info): New.
9344 (default_except_unwind_info): New.
9345 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
9346 * targhooks.h: Declare them.
9347 * tree-tailcall.c: Include "target.h"
9348 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
9349 * Makefile.in (tree-tailcall.o): Update.
9350 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
9351 (lhd_gcc_personality): Likewise.
9352
9353 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
9354 (TARGET_EXCEPT_UNWIND_INFO): New.
9355 (DWARF2_UNWIND_INFO): Update.
9356 (TARGET_DEBUG_UNWIND_INFO): New.
9357 * doc/tm.texi: Rebuild.
9358
9359 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
9360 targetm.except_unwind_info.
9361
9362 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
9363 (arm_except_unwind_info): New.
9364 (arm_compute_func_type): Use it.
9365 (arm_expand_prologue, thumb_pushpop): Likewise.
9366 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
9367 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
9368 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
9369 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
9370 (DWARF2_UNWIND_INFO): Remove.
9371 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
9372 (ARM_EABI_UNWIND_TABLES): Remove.
9373
9374 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
9375 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
9376 (ia64_except_unwind_info): New.
9377 (ia64_output_function_prologue): Use it.
9378 (ia64_add_bundle_selector_before): Likewise.
9379 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
9380 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
9381 (TARGET_UNWIND_INFO): Remove.
9382
9383 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
9384
9385 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
9386
9387 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
9388 (c_parser_objc_protocol_definition): Likewise.
9389 (c_parser_external_declaration): Provide dummy attribute arguments.
9390 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
9391 (c_parser_objc_class_definition): Handle attributes.
9392 (c_parser_objc_protocol_definition): Likewise.
9393
9394 2010-09-28 Tobias Burnus <burnus@net-b.de>
9395
9396 PR fortran/40569
9397 PR fortran/40568
9398 * toplev.h (save_decoded_options, save_decoded_options_count):
9399 New global variables.
9400 * toplev.c (save_decoded_options, save_decoded_options_count):
9401 Export variables.
9402
9403 2010-09-28 Ian Lance Taylor <iant@google.com>
9404
9405 * config/i386/i386.c (ix86_supports_split_stack): Test
9406 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
9407
9408 2010-09-28 Ian Lance Taylor <iant@google.com>
9409
9410 PR target/45815
9411 * opts.c (decode_options): Don't test whether the target supports
9412 split stack if flag_split_stack == 0.
9413
9414 2010-09-28 Jan Hubicka <jh@suse.cz>
9415
9416 * builtin-attrs.def (ATTR_LEAF): New attribute.
9417 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
9418 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
9419 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
9420 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
9421 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
9422 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
9423 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
9424 * sync-builtins.def: Annotate all builtins by leaf.
9425 * omp-builtins.def: Annotate all builtins by leaf.
9426 * builtins.def: Annotate relevant builtins with leaf attribute.
9427 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
9428 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
9429 leaf.
9430
9431 2010-09-28 Jan Hubicka <jh@suse.cz>
9432
9433 * tree-ssa-ccp.c (fold_ctor_reference): New function.
9434 (fold_const_aggregate_ref): Use it.
9435 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
9436 into external static.
9437
9438 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9439
9440 PR target/44452
9441 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
9442 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
9443 (ix86_solaris_return_in_memory): Remove.
9444 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
9445 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
9446 (TARGET_SUBTARGET_DEFAULT): Redefine.
9447 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
9448 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
9449 (TARGET_SUBTARGET_DEFAULT): Redefine.
9450 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
9451 -mvect8-ret-in-mem.
9452 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
9453
9454 2010-09-29 Alan Modra <amodra@gmail.com>
9455
9456 PR target/45807
9457 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
9458 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
9459 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
9460 Delete.
9461 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
9462 (rs6000_emit_prologue): Don't just create frame save info for r2,
9463 actually save r2.
9464
9465 2010-09-28 Richard Henderson <rth@redhat.com>
9466
9467 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
9468 when 8 bytes are requested.
9469
9470 2010-09-28 Tristan Gingold <gingold@adacore.com>
9471
9472 * config/avr/avr.c (expand_prologue): Set
9473 current_function_static_stack_size.
9474
9475 2010-09-28 Tristan Gingold <gingold@adacore.com>
9476
9477 * config/alpha/alpha.md: Change the initial condition of the
9478 probing loop.
9479
9480 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
9481
9482 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
9483 Split from *avx_<maxmin:code><mode>3.
9484 (*avx_<smaxmin:code><mode>3): Ditto.
9485 * config/i386/i386.md (maxmin): Remove code iterator.
9486
9487 2010-09-27 Ian Lance Taylor <iant@google.com>
9488
9489 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
9490 requires assembler support for CFI directives.
9491
9492 2010-09-27 Richard Henderson <rth@redhat.com>
9493
9494 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
9495
9496 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
9497
9498 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
9499 that AFTER is not in the range FROM..TO, inclusive.
9500
9501 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
9502 Bernd Schmidt <bernds@codesourcery.com>
9503
9504 PR rtl-optimization/45792
9505 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
9506 If not all insns are to be merged, for each edge, stash the
9507 next candidate after the to-be-merged insns before doing the
9508 merge, and use them for the retry at the new insertion point.
9509 Handle CC0 targets when retrying.
9510
9511 2010-09-27 Ian Lance Taylor <iant@google.com>
9512
9513 * common.opt (fsplit-stack): New option.
9514 * opts.c (decode_options): Set flag_split_stack to final value.
9515 * target.def (supports_split_stack): New hook.
9516 * gcc.c (STACK_SPLIT_SPEC): Define.
9517 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
9518 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
9519 (Code Gen Options): Document -fsplit-stack.
9520 * doc/extend.texi (Function Attributes): Mention no_split_stack.
9521 (Function Attributes): Document no_split_stack.
9522 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
9523 TARGET_SUPPORTS_SPLIT_STACK.
9524 * doc/tm.texi: Rebuild.
9525 * function.c (thread_prologue_and_epilogue_insns): If
9526 flag_split_stack, add split stack prologue.
9527 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
9528 * varasm.c (saw_no_split_stack): New static variable.
9529 (assemble_start_function): Set saw_no_split_stack if the function
9530 has the no_split_stack attribute.
9531 (file_end_indicate_split_stack): New function.
9532 * output.h (file_end_indicate_split_stack): Declare.
9533 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
9534 and function.
9535 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
9536 routines.
9537 * config/i386/i386.c (ix86_option_override_internal): Don't set
9538 expand_builtin_va_start to NULL if -fsplit-stack.
9539 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
9540 -fsplit-stack.
9541 (ix86_va_start): If -fsplit-stack, get overflow pointer from
9542 scratch register set by prologue.
9543 (ix86_code_end): If -fsplit-stack, call
9544 file_end_indicate_split_stack.
9545 (ix86_supports_split_stack): New static function.
9546 (SPLIT_STACK_AVAILABLE): Define.
9547 (split_stack_prologue_scratch_regno): New static function.
9548 (split_stack_fn): New static variable.
9549 (ix86_expand_split_stack_prologue): New function.
9550 (ix86_live_on_entry): New static function.
9551 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
9552 (output_pic_addr_const): Likewise.
9553 (i386_asm_output_addr_const_extra): Likewise.
9554 (ix86_expand_call): Change return type to rtx. Return the new
9555 call instruction.
9556 (TARGET_SUPPORTS_SPLIT_STACK): Define.
9557 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
9558 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
9559 (split_stack_prologue, split_stack_return): New insns.
9560 (split_stack_space_check): New insn.
9561 * config/i386/i386.h (struct machine_function): Add
9562 split_stack_varargs_pointer field.
9563 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
9564 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9565 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9566 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
9567 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
9568 Declare.
9569 (ix86_expand_call): Update declaration.
9570
9571 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
9572
9573 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
9574 code. Added byref, which was missing in the list of codes.
9575 Explain that enumeration values are encoded as the integer type
9576 that the compiler uses to store them. Explain and make examples
9577 of how 'const' interacts with pointers, and the complication of
9578 the encoding of 'const char *'.
9579 (Legacy type encoding): New subsection, explaining that GCC emits
9580 incorrect type encodings for the NeXT runtime for compatibility
9581 reasons.
9582 (@@encode): New subsection, explaining @encode and particularly
9583 that protocol qualifiers are not recognized inside an @encode()
9584 expression.
9585 (Method signatures): New subsection, explaining how method
9586 signatures are encoded.
9587
9588 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
9589
9590 Merge from 'apple/trunk' branch on FSF servers. Removed small
9591 change in build_conditional_expr that had been added when fixing
9592 PR objc/27377 and which did the same check in a less complete way.
9593
9594 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
9595
9596 Radar 4229905
9597 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
9598 looking for objective-c common pointer types.
9599
9600 2005-06-22 Ziemowit Laski <zlaski@apple.com>
9601
9602 Radar 4154928
9603 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
9604 use their ObjC common type.
9605
9606 2010-09-27 Richard Guenther <rguenther@suse.de>
9607
9608 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
9609
9610 2010-09-27 Jie Zhang <jie@codesourcery.com>
9611
9612 * print-tree.c (print_node): Print in-constant-pool.
9613
9614 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
9615
9616 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
9617 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
9618 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
9619 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
9620
9621 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
9622
9623 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
9624 from pro_epilogue_adjust_stack_<mode>_{1,2}.
9625 (pro_epilogue_adjust_stack_<mode>_add): Rename from
9626 pro_epilogue_adjust_stack_<mode>_3.
9627 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
9628 renamed pro_epilogue_adjust_stack_{si,di}_add.
9629 (ix86_expand_prologue): Use indirect functions. Update for renamed
9630 pro_epilogue_adjust_stack_{si,di}_sub.
9631
9632 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
9633
9634 * config/i386/i386.md (movmsk_df): New insn.
9635 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
9636 sequence for TARGET_SSE_MATH.
9637
9638 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
9639
9640 * config/mips/mips.c (mips_builtin_decls): Declare.
9641 (mips_init_builtins): Store function declarations in
9642 mips_builtin_decls.
9643 (mips_builtin_decl): New function.
9644 (TARGET_BUILTIN_DECL): Define.
9645
9646 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
9647 Richard Henderson <rth@redhat.com>
9648
9649 * config/i386/cygwin.asm: Include auto-host.h.
9650 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
9651 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
9652 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
9653 alignment code from the 64-bit path. Use gas local labels.
9654 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
9655 from _di_2. Remove the useless constant integer argument.
9656 (pro_epilogue_adjust_stack_<mode>_3): New.
9657 (allocate_stack_worker_probe_<mode>): Macroize from
9658 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
9659 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
9660 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
9661 (__chkstk_ms): New function.
9662 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
9663 * config/i386/t-interix: Likewise.
9664 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
9665 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
9666 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
9667 * configure, config.in: Rebuild.
9668
9669 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
9670
9671 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
9672 statements because of the return slot optimization.
9673
9674 2010-09-25 Anatoly Sokolov <aesok@post.ru>
9675
9676 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
9677 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
9678 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
9679 (class_likely_spilled_p): Rename to...
9680 (avr_class_likely_spilled_p): ...this. Make static. Change argument
9681 type to reg_class_t.
9682
9683 2010-09-24 Jan Hubicka <jh@suse.cz>
9684
9685 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
9686 (lto_symtab_resolve_symbols): Set it.
9687 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
9688 store resolution field in cgraph/varpool.
9689 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
9690 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
9691 (cgraph_dump_node): Drop used_from_object_file.
9692 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
9693 (cgraph_function_body_availability): Use decl_replaceable_p.
9694 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
9695 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
9696 cgraph_used_from_object_file_p.
9697 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
9698 cgraph_used_from_object_file_p.
9699 (resolution_used_from_other_file_p): New functoin.
9700 (cgraph_used_from_object_file_p): New predicate.
9701 * cgraph.h: Include plugin-api.h
9702 (struct cgraph_local_info): Remove used_from_object_file.
9703 (struct cgraph_node): Add resolution field.
9704 (struct varpool_node): Likewise; remove used_from_object_file;
9705 reove const_value_known.
9706 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
9707 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
9708 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
9709 varpool_used_from_object_file_p): Declare.
9710 (varpool_get_node, varpool_extra_name_alias): Update prototype.
9711 * tree.h (DECL_REPLACEABLE_P): Remove.
9712 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
9713 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
9714 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
9715 input_overwrite_node, input_node, input_varpool_node): Stream
9716 resolution.
9717 * expr.c (expand_expr_real_1): Use const_value_known_p
9718 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
9719 const_value_known.
9720 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
9721 (function_and_variable_visibility): Set resolution for local vars
9722 and functions; use varpool_used_from_object_file_p.
9723 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
9724 static functions.
9725 (default_binds_local_p_1): Use resolutoin info.
9726 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
9727 * varpool.c (varpool_get_node): Constify.
9728 (const_value_known_p): Do not use vnode->const_value_known;
9729 use decl_replaceable_p.
9730 (varpool_finalize_decl): Do not set const_value_known.
9731 (cgraph_variable_initializer_availability): Use decl_replaceable_p
9732 (varpool_extra_name_alias): Return new node.
9733 (varpool_used_from_object_file_p): New function.
9734
9735 2010-09-24 Richard Henderson <rth@redhat.com>
9736
9737 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
9738 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
9739 (do_spill): Use REG_CFA_OFFSET.
9740 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
9741 as appropriate.
9742 (ia64_expand_epilogue): Likewise.
9743 (process_set): Split into ...
9744 (process_cfa_adjust_cfa): this,
9745 (process_cfa_register): this,
9746 (process_cfa_offset): and this new function.
9747 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
9748 instead of REG_FRAME_RELATED_EXPR.
9749
9750 2010-09-24 Olivier Hainque <hainque@adacore.com>
9751
9752 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
9753
9754 2010-09-24 Jan Hubicka <jh@suse.cz>
9755
9756 * doc/extend.texi: (attribute leaf): Document.
9757 * tree.c (local_define_builtin): Handle ECF_LEAF.
9758 (build_common_builtin_nodes): Set ECF_LEAF where needed.
9759 * tree.h (ECF_LEAF): New.
9760 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
9761 overwrittable and unavailable functions.
9762 (ipa_init): Put all_module_statics into optimization_summary_obstack.
9763 (copy_global_bitmap): Do not copy all_module_statics.
9764 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
9765 (propagate): Handle overwritable and unavailable leaf functions;
9766 initialize global info for overwritable and unavailable leaf functions;
9767 do not free all module statics.
9768 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
9769 local statics.
9770 * calls.c (flags_from_decl_or_type): Handle leaf.
9771 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
9772 abnormal gotos.
9773
9774 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
9775
9776 * gengtype.c: Reindented.
9777 * gengtype.h: Reindented.
9778 * gengtype-parse.c: Reindented.
9779
9780 2010-09-24 Jan Hubicka <jh@suse.cz>
9781
9782 PR tree-optimization/45738
9783 PR tree-optimization/45741
9784 * expr.c (string_constant): Allow CONST_DECL too;
9785 check that DECL_INITIAL is set.
9786 * varpool.c (const_value_known_p): Only look into VAR_DECL
9787 and CONST_DECL.
9788
9789 2010-09-24 Joseph Myers <joseph@codesourcery.com>
9790
9791 * common.opt (undef): New.
9792
9793 2010-09-24 Jakub Jelinek <jakub@redhat.com>
9794
9795 PR middle-end/45234
9796 * rtl.h (enum global_rtl_index): Add
9797 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
9798 (LAST_VIRTUAL_POINTER_REGISTER): Define.
9799 (virtual_preferred_stack_boundary_rtx,
9800 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
9801 (LAST_VIRTUAL_REGISTER): Increase by one.
9802 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
9803 instead of LAST_VIRTUAL_REGISTER.
9804 * function.c (instantiate_new_reg): Handle
9805 virtual_preferred_stack_boundary_rtx.
9806 * emit-rtl.c (init_virtual_regs): Handle
9807 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
9808 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
9809 * explow.c (round_push): If crtl->preferred_stack_boundary
9810 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
9811 virtual_preferred_stack_boundary_rtx alignment instead of
9812 crtl->preferred_stack_boundary alignment.
9813 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
9814 macros. Never decrease crtl->preferred_stack_boundary,
9815 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
9816 instead of PREFERRED_STACK_BOUNDARY. Don't modify
9817 stack_pointer_delta in dynamic allocation, even when size
9818 is constant.
9819 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
9820 macro.
9821 * print-rtl.c (print_rtx): Handle
9822 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
9823 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
9824 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
9825 * config/frv/frv.c (frv_emit_movsi): Likewise.
9826 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
9827 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
9828 Likewise.
9829
9830 Revert:
9831 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
9832
9833 PR middle-end/45234
9834 * calls.c (expand_call): Make sure that all variable sized
9835 adjustments are multiple of preferred stack boundary after
9836 stack alignment.
9837
9838 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
9839 Dominique Dhumieres <dominiq@lps.ens.fr>
9840
9841 PR bootstrap/45751
9842 * config/darwin-driver.c (darwin_default_min_version):
9843 Adjust size passed to memcpy in two places.
9844
9845 2010-09-24 Richard Guenther <rguenther@suse.de>
9846
9847 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
9848 Make sure to not call set_type_context with error_mark_node.
9849 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
9850
9851 2010-09-24 Richard Guenther <rguenther@suse.de>
9852
9853 * Makefile.in (OBJS-onestep): Remove.
9854 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
9855 (libbackend.a): Remove onestep support.
9856 (libbackend.o): Remove.
9857 * configure.ac (--enable-intermodule): Remove.
9858 * configure: Regenerate.
9859
9860 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
9861
9862 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
9863 reaching the end of a block if it occurs at a DEBUG_INSN.
9864
9865 2010-09-09 Tristan Gingold <gingold@adacore.com>
9866
9867 PR target/44242
9868 * config/vms/vms-crt0-64.c: Removed.
9869 * config/vms/vms-crt0.c: Removed.
9870 * config/vms/vms-psxcrt0-64.c: Removed.
9871 * config/vms/vms-psxcrt0.c: Removed.
9872 * config/vms/vms-ucrt0.c: New file.
9873 * config/vms/t-vms64: Removed.
9874 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
9875 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
9876 * config.gcc (alpha-dec-vms): Use t-vms.
9877
9878 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
9879
9880 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
9881 underfull hbox in DVI output.
9882 (-fobjc-class-cxx-cdtors): Same change.
9883 (-fobjc-exceptions): Tidied up documentation. Explain what the
9884 option does, but moved the (lenghty) description of the exception
9885 syntax into objc.texi.
9886 (-fobjc-gc): Explain that the option is not useful with the GNU
9887 runtime.
9888 (-fzero-link): Explain that the GNU runtime always works in
9889 "zero-link" mode.
9890 * doc/objc.texi: All sections: simplified @node declarations
9891 removing specification of next, previous, up node.
9892 (Objective-C): Updated introduction.
9893 (Garbage Collection): Updated. The bohem-gc library is now
9894 included in gcc itself. Mention that this section only applies to
9895 the GNU Objective-C runtime.
9896 (compatibility_alias): Small tidy up.
9897 (Exceptions): New section mostly containing text previously in the
9898 description of the -fobjc-exception command-line option.
9899 (Synchronization): Same.
9900
9901 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
9902
9903 * config/i386/i386.md (ix86_code_end): Move the initialization of
9904 xops array near the consumer. Use AX_REG and SP_REG instead of
9905 numerical constants.
9906
9907 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
9908
9909 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
9910 method [methodname]' for an Objective-C method instead of the less
9911 satisfactory 'too many arguments to function' (with no method name).
9912
9913 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
9914
9915 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
9916 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
9917 (execute_update_addresses_taken): Remove parameter. Execute the
9918 optimization unconditionally.
9919 * passes.c (execute_function_todo): Call execute_update_addresses_taken
9920 unconditionally if TODO_rebuild_alias is set, else only when optimizing
9921 if TODO_update_address_taken is set.
9922
9923 2010-09-23 Anatoly Sokolov <aesok@post.ru>
9924
9925 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
9926 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
9927 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
9928 (arm_output_addr_const_extra): Make static.
9929
9930 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
9931
9932 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
9933 define as unspec_volatile.
9934 ("nops"): Define as unspec_volatile. Use fputs to write to
9935 asm_out_file directly. Output NOPs on separate lines using while loop.
9936 * config/i386/i386.c (ix86_code_end): Use fputs to write to
9937 asm_out_file directly. Output NOPs on separate lines using while loop.
9938
9939 2010-09-23 Richard Guenther <rguenther@suse.de>
9940
9941 PR tree-optimization/45565
9942 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
9943 Make sure to adjust the fndecl before replacing the stmt.
9944
9945 2010-09-23 Richard Guenther <rguenther@suse.de>
9946
9947 PR middle-end/45750
9948 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
9949 gimplifying MEM_REF.
9950
9951 2010-09-23 Alan Modra <amodra@gmail.com>
9952
9953 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
9954 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
9955
9956 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
9957
9958 PR rtl-optimization/44374
9959 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
9960 * df-core.c (df_set_bb_dirty): Set it.
9961 * ifcvt.c (find_memory): Remove function.
9962 (dead_or_predicable): Use can_move_insns_across.
9963 * df.h (can_move_insns_across): Declare function.
9964 * cfgcleanup.c (block_was_dirty): New static variable.
9965 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
9966 than df_get_bb_dirty.
9967 (try_head_merge_bb): New static function.
9968 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
9969 is set.
9970 * df-problems.c: Include "target.h"
9971 (df_simulate_find_uses): New static function.
9972 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
9973 (find_memory, find_memory_store): New static functions.
9974 (can_move_insns_across): New function.
9975 * Makefile.in (df-problems.o): Update dependencies.
9976
9977 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
9978
9979 PR java/44095
9980 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
9981 is specified and the suffix of the file isn't ".c".
9982 * config/sparc/linux64.h (ASM_SPEC): Likewise.
9983
9984 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
9985
9986 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
9987 * doc/cppopts.texi: Fix markup of index entry.
9988 * doc/extend.texi (Constructing Calls): Fix markup of
9989 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
9990 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
9991 (Vague Linkage, C++ Attributes): Fix markup of index entries and
9992 keywords.
9993 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
9994 avoid long lines.
9995 (C Dialect Options, C++ Dialect Options, Warning Options)
9996 (Debugging Options, Spec Files, Darwin Options)
9997 (i386 and x86-64 Options, MIPS Options)
9998 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
9999 index entries, avoid abbreviations, allow URLs to wrap, avoid
10000 long lines, avoid overlong pages from long @itemx lists.
10001 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
10002 * doc/standards.texi (Standards): Likewise.
10003 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
10004
10005 2010-09-22 Joseph Myers <joseph@codesourcery.com>
10006
10007 * opts-common.c (prune_options): Make static. Work with decoded
10008 options.
10009 (decode_cmdline_options_to_array): Call prune_options. Don't
10010 resize option array here.
10011 * opts.h (prune_options): Remove prototype.
10012 * gcc.c (process_command): Take decoded options; don't call
10013 decode_cmdline_options_to_array here. Use decoded options for argv[0].
10014 (main): Call decode_cmdline_options_to_array here instead of
10015 prune_options. Update call to process_command.
10016 * config/darwin-driver.c: Include opts.h.
10017 (darwin_default_min_version): Work with decoded options. Don't
10018 handle -b or -V here.
10019 * config/darwin.h (darwin_default_min_version): Update prototype.
10020 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
10021 darwin_default_min_version.
10022 * config/i386/cygwin.h (mingw_scan): Update prototype.
10023 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
10024 * config/i386/cygwin1.c: Include opts.h.
10025 (mingw_scan): Work with decoded options.
10026 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
10027 * config/t-darwin (darwin-driver.o): Update dependencies.
10028
10029 2010-09-22 Joseph Myers <joseph@codesourcery.com>
10030
10031 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
10032 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
10033 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
10034 -force-link, -force-link=, -language, -language=,
10035 -library-directory, -library-directory=, -no-canonical-prefixes,
10036 -no-standard-libraries, -no-warnings, -optimize, -output,
10037 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
10038 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
10039 -print-file-name=, -print-libgcc-file-name,
10040 -print-multi-directory, -print-multi-lib,
10041 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
10042 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
10043 -profile, -save-temps, -shared, -specs, -specs=, -static,
10044 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
10045 symbolic): New.
10046 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
10047 * gcc.c (A Short Introduction to Adding a Command-Line Option):
10048 Remove comment.
10049 (cc1_options): Correct specs for passing down --help,
10050 --target-help and --help=*. Add spec for passing down --version.
10051 (struct option_map, option_map, target_option_translations,
10052 translate_options): Remove.
10053 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
10054 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
10055 OPT_fhelp_ and OPT_ftarget_help.
10056 (process_command): Don't call translate_options. Call
10057 decode_cmdline_options_to_array before checking for
10058 -no-canonical-prefixes using decoded options.
10059 * opts-common.c (tm.h): Update comment on #include.
10060 (find_opt): Allow abbreviations of long options.
10061 (struct option_map, option_map): New.
10062 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
10063 and -mno handling.
10064 (target_option_translations): New.
10065 (decode_cmdline_options_to_array): Handle
10066 TARGET_OPTION_TRANSLATE_TABLE in driver.
10067 * opts.c (common_handle_option): Don't handle OPT_fhelp,
10068 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
10069
10070 2010-09-22 Richard Guenther <rguenther@suse.de>
10071
10072 * tree-inline.c (optimize_inline_calls): Schedule cleanups
10073 only if we inlined something. Block compaction and conditional
10074 folding are done by cfg cleanup. Schedule update-address-taken.
10075 (tree_function_versioning): Remove redundant call to number_blocks.
10076 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
10077 folding is done by cfg cleanup.
10078 * passes.c (init_optimization_passes): Remove update-address-taken
10079 pass after IPA inlining.
10080
10081 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
10082
10083 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
10084 to update conditions. Fix reg_mode[] check.
10085
10086 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
10087
10088 * config/picochip/picochip.md (movhicc): Use expand to check whether
10089 movhicc is available and split it after reload.
10090
10091 2010-09-22 Richard Guenther <rguenther@suse.de>
10092
10093 * tree-ssanames.c (release_dead_ssa_names): Do not remove
10094 callee edges here.
10095 * passes.c (init_optimization_passes): Remove early CFG cleanup.
10096 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
10097 (pass_cleanup_cfg): Likewise.
10098 (execute_fixup_cfg): Cleanup.
10099 * tree-pass.h (pass_cleanup_cfg): Remove.
10100
10101 2010-09-22 Martin Jambor <mjambor@suse.cz>
10102
10103 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
10104 builtins if it is true.
10105 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
10106 parameter.
10107
10108 2010-09-22 Martin Jambor <mjambor@suse.cz>
10109
10110 * tree-sra.c (struct access): New field grp_no_warning.
10111 (create_access_replacement): Set TREE_NO_WARNING according to
10112 grp_no_warning.
10113 (create_artificial_child_access): Use build_ref_for_model and set
10114 grp_no_warning if build_user_friendly_ref_for_offset fails.
10115 (propagate_subaccesses_across_link): Likewise.
10116
10117 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
10118
10119 PR target/35664
10120 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
10121 ('f'): Likewise.
10122
10123 2010-09-22 Tristan Gingold <gingold@adacore.com>
10124
10125 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
10126
10127 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
10128
10129 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
10130 * config/i386/i386.c (decide_alg): Update for rename.
10131
10132 2010-09-22 Jakub Jelinek <jakub@redhat.com>
10133
10134 PR rtl-optimization/45739
10135 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
10136 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
10137
10138 2010-09-21 Anatoly Sokolov <aesok@post.ru>
10139
10140 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
10141 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
10142 Remove.
10143 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
10144 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10145
10146 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
10147
10148 PR objc/23710
10149 * c-parser.c (c_parser_objc_method_definition): Check the return
10150 value of objc_start_method_definition and if false is returned,
10151 parse the method definition but emit no code.
10152
10153 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
10154
10155 PR objc/25965
10156 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
10157 call objc_get_interface_ivars ().
10158
10159 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
10160
10161 PR target/45694
10162 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
10163 static chain-register is used for 64-bit.
10164
10165 2010-09-21 Richard Guenther <rguenther@suse.de>
10166
10167 * dwarf2out.c (is_cu_die): New function.
10168 (add_pubtype): Use it.
10169 (gen_subprogram_die): Likewise.
10170 (gen_struct_or_union_type_die): Likewise.
10171 (dwarf2out_finish): Likewise.
10172 (comp_unit_die): Rename to ...
10173 (single_comp_unit_die): ... this.
10174 (comp_unit_die): New function lazily constructing and
10175 returning single_comp_unit_die.
10176 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
10177 base_type_die, subrange_type_die, modified_type_die,
10178 lower_bound_default, add_bound_info, add_prototyped_attribute,
10179 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
10180 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
10181 force_decl_die, gen_namespace_die, dwarf2out_decl,
10182 dwarf2out_start_source_file, dwarf2out_end_source_file,
10183 prune_unused_types, dwarf2out_finish): Use it.
10184 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
10185 the global list of translation-unit decls.
10186 (dwarf2out_init): Do not create single_comp_unit_die here.
10187 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
10188
10189 2010-09-21 Richard Guenther <rguenther@suse.de>
10190
10191 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
10192 for bool for C++.
10193
10194 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
10195
10196 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
10197 (qhs_extenddi_cstr): Likewise.
10198 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
10199 them for the source operand.
10200
10201 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
10202
10203 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
10204 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
10205 (ix86_split_ashr): Ditto.
10206 (ix86_split_lshr): Ditto.
10207
10208 2010-09-21 Richard Guenther <rguenther@suse.de>
10209
10210 PR tree-optimization/45580
10211 * tree-ssa-propagate.c (substitute_and_fold): Always replace
10212 regular uses.
10213 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
10214 virtuals fold the call into a regular indirect one.
10215
10216 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
10217
10218 PR rtl-optimization/42775
10219 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
10220 scheduling is enabled.
10221
10222 2010-09-20 Jakub Jelinek <jakub@redhat.com>
10223
10224 PR rtl-optimization/45728
10225 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
10226 gen_lowpart_common first and if that fails, force_reg first
10227 before calling gen_lowpart.
10228
10229 PR middle-end/45678
10230 * cfgexpand.c (expand_one_stack_var_at): Use
10231 crtl->max_used_stack_slot_alignment as max_align, instead
10232 of maximum of that and PREFERRED_STACK_BOUNDARY.
10233 Don't call update_stack_alignment.
10234
10235 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
10236
10237 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
10238 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
10239 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
10240 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
10241 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
10242 (build_nonstandard_integer_type): Likewise.
10243 (build_range_type_1): New function, built from...
10244 (build_range_type): ...this. Call build_range_type_1.
10245 (build_nonshared_range_type): New function.
10246 (build_array_type_1): New function, built from...
10247 (build_array_type: ...this. Call build_array_type_1.
10248 (build_nonshared_array_type): New function.
10249 * tree.h (build_nonshared_range_type): Declare.
10250 (build_nonshared_array_type): Likewise.
10251
10252 2010-09-20 Anatoly Sokolov <aesok@post.ru>
10253
10254 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
10255 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10256 (arm_class_likely_spilled_p): New function.
10257
10258 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
10259
10260 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
10261 indirect functions.
10262 (ix86_split_ashl): Ditto.
10263 (ix86_split_ashr): Ditto.
10264 (ix86_split_lshr): Ditto.
10265 (ix86_adjust_counter): Ditto.
10266
10267 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
10268
10269 * c-family/c-common.h (constant_string_class): Documented with
10270 comment identical to the one already in c-common.c.
10271
10272 2010-09-20 Jakub Jelinek <jakub@redhat.com>
10273
10274 * dwarf2out.c (any_cfis_emitted): New static variable.
10275 (add_fde_cfi): Set it.
10276 (dwarf2out_frame_debug): Clear it before processing,
10277 if it is set afterwards, flush any queued reg saves.
10278
10279 PR debug/45124
10280 * dwarf2out.c (add_accessibility_attribute): Assume
10281 DW_ACCESS_private as the default for dwarf_version > 2
10282 and DW_TAG_class_type parent.
10283 (gen_inheritance_die): Assume DW_ACCESS_public as the default
10284 for dwarf_version > 2 and parent other than DW_TAG_class_type.
10285
10286 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
10287
10288 PR target/45726
10289 * arm.md (arm_movt): Only enable on machines with MOVT.
10290
10291 2010-09-20 Jie Zhang <jie@codesourcery.com>
10292
10293 * config/arm/arm.c (arm_address_offset_is_imm): New.
10294 (arm_early_store_addr_dep): New.
10295 (arm_early_load_addr_dep): New.
10296 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
10297 (arm_early_load_addr_dep): Declare.
10298 (arm_address_offset_is_imm): Declare.
10299 * config/arm/cortex-m4.md: New file.
10300 * config/arm/cortex-m4-fpu.md: New file.
10301 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
10302 (attr generic_sched): Exclude cortexm4.
10303 (attr generic_vfp): Exclude cortexm4.
10304
10305 2010-09-20 Richard Guenther <rguenther@suse.de>
10306
10307 PR middle-end/45704
10308 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
10309
10310 2010-09-20 Jan Hubicka <jh@suse.cz>
10311
10312 PR tree-optimize/45605
10313 * cgraph.h (const_value_known_p): Declare.
10314 (varpool_decide_const_value_known): Remove.
10315 * tree-ssa-ccp.c (get_base_constructor): Use it.
10316 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
10317 * expr.c (string_constant): Likewise.
10318 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
10319 * ipa.c (ipa_discover_readonly_nonaddressable_var,
10320 function_and_variable_visibility): Likewise.
10321 * gimplify.c (gimplify_call_expr): Likewise.
10322 * gimple-fold.c (get_symbol_constant_value): Likewise.
10323 * varpool.c (varpool_decide_const_value_known): Replace by...
10324 (const_value_known_p): ... this one; handle other kinds of DECLs
10325 too and work for automatic vars.
10326 (varpool_finalize_decl): Use const_value_known_p.
10327
10328 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
10329
10330 PR target/45726
10331 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
10332
10333 2010-09-20 Richard Guenther <rguenther@suse.de>
10334
10335 PR tree-optimization/45705
10336 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
10337
10338 2010-09-20 Jakub Jelinek <jakub@redhat.com>
10339
10340 PR rtl-optimization/45695
10341 * combine.c (try_combine): When splitting a two set pattern,
10342 make sure the pattern which will be put into i2 doesn't use REGs
10343 or MEMs set by insns in between i2 and i3.
10344
10345 2010-09-19 Jan Hubicka <jh@suse.cz>
10346
10347 PR lto/44246
10348 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
10349 processing same node twice.
10350
10351 2010-09-19 Anatoly Sokolov <aesok@post.ru>
10352
10353 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
10354 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
10355 (bfin_class_likely_spilled_p): New function
10356
10357 2010-09-19 Ira Rosen <irar@il.ibm.com>
10358
10359 PR tree-optimization/45714
10360 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
10361 created in vectorizable_call instead of the original statement in
10362 def stmt updates.
10363
10364 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
10365
10366 * config/i386/i386-protos.h (split_double_mode): New prototype.
10367 (split_di, split_ti): Remove prototypes.
10368 * config/i386/i386.c (split_double_mode): New function.
10369 (split_di, split_ti): Remove.
10370 (ix86_expand_branch): Use split_double_mode.
10371 (ix86_split_to_parts): Ditto.
10372 (ix86_split_ashl): Ditto.
10373 (ix86_split_ashr): Ditto.
10374 (ix86_split_lshr): Ditto.
10375 (ix86_force_to_memory): Ditto.
10376 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
10377
10378 2010-09-18 Jan Hubicka <jh@suse.cz>
10379
10380 PR tree-optimization/45453
10381 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
10382 virtual functions are reachable.
10383 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
10384 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
10385 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
10386 when modifying function.
10387
10388 2010-09-18 Jan Hubicka <jh@suse.cz>
10389
10390 PR tree-optimization/45605
10391 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
10392 * gimple-fold.c (static_object_in_other_unit_p): New function.
10393 (canonicalize_constructor_val): Use it.
10394 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
10395 returning NULL.
10396 (gimple_fold_obj_type_ref_known_binfo): Use
10397 static_object_in_other_unit_p.
10398
10399 2010-09-18 Richard Guenther <rguenther@suse.de>
10400
10401 PR tree-optimization/45709
10402 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
10403 insertions until after all PHI nodes of the block are processed.
10404
10405 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
10406
10407 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
10408
10409 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
10410
10411 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
10412
10413 2010-09-18 Richard Guenther <rguenther@suse.de>
10414
10415 PR tree-optimization/45709
10416 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
10417
10418 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
10419
10420 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
10421 (dot_deps_stmt): Same.
10422 * graphite-poly.c (dot_lst): Same.
10423 * graphite-scop-detection.c (dot_all_scops): Same.
10424 (dot_scop): Same.
10425
10426 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
10427
10428 Revert:
10429 2009-12-16 Ben Elliston <bje@au.ibm.com>
10430
10431 * tree-data-ref.c (dot_rdg_1): Added back.
10432 (dot_rdg): Same. Added "#if 0" around system call.
10433
10434 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
10435 Richard Henderson <rth@redhat.com>
10436
10437 * config/i386/i386.c (initial_ix86_tune_features): Add
10438 X86_TUNE_PAD_SHORT_FUNCTION.
10439 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
10440 (ix86_count_insn): New.
10441 (ix86_pad_short_function): Likewise.
10442 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
10443
10444 * config/i386/i386.h (ix86_tune_indices): Add
10445 X86_TUNE_PAD_SHORT_FUNCTION.
10446 (TARGET_PAD_SHORT_FUNCTION): New.
10447
10448 * config/i386/i386.md (UNSPEC_NOPS): New.
10449 (nops): Likewise.
10450
10451 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
10452
10453 PR middle-end/45234
10454 * calls.c (expand_call): Make sure that all variable sized
10455 adjustments are multiple of preferred stack boundary after
10456 stack alignment.
10457
10458 2010-09-17 DJ Delorie <dj@redhat.com>
10459
10460 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
10461 passed an invalid value, print an error instead of ICEing.
10462 (valid_psw_flag): New.
10463 (rx_expand_builtin): Call it for setpsw/clrpsw.
10464 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
10465
10466 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
10467 (bitclr_in_memory): Likewise.
10468 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
10469
10470 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
10471
10472 PR middle-end/45678
10473 * cfgexpand.c (update_stack_alignment): New.
10474 (get_decl_align_unit): Use it.
10475 (expand_one_stack_var_at): Call update_stack_alignment.
10476
10477 2010-09-17 Richard Guenther <rguenther@suse.de>
10478
10479 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
10480 Properly copy the read string.
10481
10482 2010-09-17 Joseph Myers <joseph@codesourcery.com>
10483
10484 * doc/options.texi (Variable): Document.
10485 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
10486 generate target_flags declarations explicitly. Don't define
10487 VarExists variables for the driver.
10488 * common.opt (target_flags): New Variable record.
10489 (flag_dump_unnumbered, flag_dump_unnumbered_links,
10490 flag_var_tracking, flag_var_tracking_assignments,
10491 flag_var_tracking_assignments_toggle): Don't mark variables with
10492 VarExists.
10493 * config/i386/i386.c (ix86_isa_flags): Don't define here.
10494 * config/i386/i386.opt (ix86_isa_flags): Define here.
10495 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
10496 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
10497 VarExists.
10498 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
10499 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
10500 Only define for generator programs.
10501 * rtlanal.c (target_flags): Remove.
10502 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
10503 flag_var_tracking_assignments_toggle): Remove.
10504
10505 2010-09-17 Michael Matz <matz@suse.de>
10506
10507 PR tree-optimization/43432
10508 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
10509 Accept backwards consecutive accesses.
10510 (vect_create_data_ref_ptr): If step is negative generate
10511 decreasing IVs.
10512 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
10513 (perm_mask_for_reverse, reverse_vec_elements): New functions.
10514 (vectorizable_load): Handle loads with negative steps when easily
10515 possible.
10516
10517 2010-09-03 Jan Hubicka <jh@suse.cz>
10518
10519 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
10520
10521 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
10522
10523 * config/v850/v850.c (v850_function_value_regno_p): Make static.
10524 Adjust comments. Declare.
10525 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
10526 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
10527
10528 2010-09-17 Richard Guenther <rguenther@suse.de>
10529
10530 * common.opt (combine): Remove.
10531 * gcc.c (default_compilers): Remove specs testing combine.
10532 The C compilers no longer can combine.
10533 (option_map): Remove -combine.
10534 (display_help): Remove -combine.
10535 (driver_handle_option): Remove OPT_combine handling.
10536 (compile_input_file_p): Remove.
10537 (do_spec): Remove code concerning combine.
10538 (main): Likewise.
10539 * doc/invoke.texi: Remove traces of -combine.
10540 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
10541
10542 2010-09-17 Richard Guenther <rguenther@suse.de>
10543
10544 PR middle-end/45678
10545 * builtins.c (fold_builtin_memory_op): Always properly adjust
10546 alignment of memory accesses.
10547
10548 2010-09-16 Jan Hubicka <jh@suse.cz>
10549
10550 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
10551 processing clone.
10552
10553 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
10554
10555 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
10556
10557 * config/i386/i386.c (predict_jump): Add prototype.
10558 (flag_opts): Add -m8bit-idiv.
10559 (ix86_split_idivmod): New.
10560
10561 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
10562 Add 2 splitters for SI/DI mode divide.
10563 (divmod<mode>4_1): New pattern.
10564 (udivmod<mode>4_1): Likewise.
10565 (testdi_ccno_1): Likewise.
10566
10567 * config/i386/i386.opt (m8bit-idiv): New.
10568
10569 * doc/invoke.texi: Document -m8bit-idiv.
10570
10571 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
10572
10573 PR bootstrap/45680
10574 * config/i386/i386.c (min_insn_size): Moved out of the
10575 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
10576
10577 2010-09-16 Jan Hubicka <jh@suse.cz>
10578
10579 * lto-cgraph.c (lto_output_node): Fix handling of clones.
10580 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
10581 unreachable clones with reachable clones.
10582 * tree-inline.c (copy_bb): Fix sanity checking when producing
10583 unreachable clone.
10584
10585 2010-09-16 Anatoly Sokolov <aesok@post.ru>
10586
10587 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
10588 (TARGET_MEMORY_MOVE_COST): Define.
10589 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
10590
10591 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
10592
10593 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
10594 maybe_tidy_empty_bb.
10595
10596 Revert:
10597 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
10598 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
10599
10600 2010-09-16 Joseph Myers <joseph@codesourcery.com>
10601
10602 * target.def (target_option.optimization): New hook.
10603 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
10604 TARGET_OPTION_OPTIMIZATION hook.
10605 * doc/tm.texi: Regenerate.
10606 * hooks.c (hook_void_int_int): New.
10607 * hooks.h (hook_void_int_int): Declare.
10608 * opts.c: Don't include tm_p.h.
10609 (decode_options): Use targetm.target_option.optimization instead
10610 of OPTIMIZATION_OPTIONS.
10611 * system.h (OPTIMIZATION_OPTIONS): Poison.
10612 * config/arm/arm-protos.h (arm_optimization_options): Remove.
10613 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
10614 (arm_optimization_options): Rename to arm_option_optimization.
10615 Make static.
10616 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
10617 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
10618 (cris_option_optimization): New.
10619 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
10620 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
10621 (crx_option_optimization): New.
10622 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
10623 * config/frv/frv-protos.h (frv_optimization_options): Remove.
10624 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
10625 (frv_optimization_options): Rename to frv_option_optimization.
10626 Make static.
10627 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
10628 * config/h8300/h8300.c (h8300_option_optimization): New.
10629 (TARGET_OPTION_OPTIMIZATION): Define.
10630 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
10631 * config/i386/i386-protos.h (optimization_options): Remove.
10632 * config/i386/i386.c (optimization_options): Rename to
10633 ix86_option_optimization. Make static.
10634 (TARGET_OPTION_OPTIMIZATION): Define.
10635 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
10636 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
10637 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
10638 (ia64_optimization_options): Rename to ia64_option_optimization.
10639 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
10640 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
10641 commented-out definition.
10642 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
10643 instead of OPTIMIZATION_OPTIONS.
10644 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
10645 (m32r_option_optimization): New.
10646 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
10647 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
10648 Remove.
10649 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
10650 (mcore_option_optimization): New.
10651 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
10652 * config/mep/mep-protos.h (mep_optimization_options): Remove.
10653 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
10654 (mep_optimization_options): Rename to mep_option_optimization.
10655 Make static. Take unused level and size parameters.
10656 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
10657 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
10658 (mmix_option_optimization): New.
10659 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
10660 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
10661 (pdp11_option_optimization): New.
10662 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
10663 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
10664 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
10665 (optimization_options): Rename to rs6000_option_optimization.
10666 Make static.
10667 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
10668 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
10669 * config/rx/rx.c (rx_set_optimization_options): Rename to
10670 rx_option_optimization. Make static. Take unused level and size
10671 parameters.
10672 (TARGET_OPTION_OPTIMIZATION): Define.
10673 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
10674 * config/s390/s390-protos.h (optimization_options): Remove.
10675 * config/s390/s390.c (optimization_options): Rename to
10676 s390_option_optimization. Make static. Don't mark size parameter
10677 unused.
10678 (TARGET_OPTION_OPTIMIZATION): Define.
10679 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
10680 * config/sh/sh-protos.h (sh_optimization_options): Remove.
10681 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
10682 (sh_optimization_options): Rename to sh_option_optimization. Make
10683 static. Don't mark parameters unused.
10684 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
10685 * config/spu/spu-protos.h (spu_optimization_options): Remove.
10686 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
10687 (spu_optimization_options): Rename to spu_option_optimization.
10688 Make static.
10689 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
10690 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
10691 (v850_option_optimization): New.
10692 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
10693 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
10694 (xtensa_option_optimization): New.
10695 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
10696
10697 2010-09-16 Joseph Myers <joseph@codesourcery.com>
10698
10699 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
10700 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
10701 * doc/tm.texi: Regenerate.
10702 * system.h (OVERRIDE_OPTIONS): Poison.
10703 * target.def (override): Default to hook_void_void.
10704 * targhooks.c (default_target_option_override): Remove.
10705 * genmodes.c, machmode.def: Update comments mentioning
10706 OVERRIDE_OPTIONS.
10707 * config/alpha/alpha-modes.def: Update comment mentioning
10708 alpha_override_options.
10709 * config/alpha/alpha-protos.h (override_options): Remove.
10710 * config/alpha/alpha.c (override_options): Rename to
10711 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
10712 (TARGET_OPTION_OVERRIDE): Define.
10713 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
10714 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
10715 of OVERRIDE_OPTIONS.
10716 * config/arc/arc-protos.h (arc_init): Remove.
10717 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
10718 (arc_init): Rename to arc_option_override. Make static.
10719 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
10720 (OVERRIDE_OPTIONS): Remove.
10721 * config/arm/arm-protos.h (arm_override_options): Remove.
10722 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
10723 (arm_override_options): Rename to arm_option_override. Make
10724 static. Call SUBTARGET_OVERRIDE_OPTIONS.
10725 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
10726 * config/arm/arm.md: Update comment referring to arm_override_options.
10727 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
10728 instead of OVERRIDE_OPTIONS.
10729 * config/avr/avr-protos.h (avr_override_options): Remove.
10730 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
10731 (avr_override_options): Rename to avr_option_override. Make static.
10732 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
10733 * config/bfin/bfin-protos.h (override_options): Remove (twice).
10734 * config/bfin/bfin.c (override_options): Rename to
10735 bfin_option_override. Make static.
10736 (TARGET_OPTION_OVERRIDE): Define.
10737 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
10738 * config/cris/cris-protos.h (cris_override_options): Remove.
10739 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
10740 (cris_override_options): Rename to cris_option_override. Make static.
10741 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
10742 * config/frv/frv-protos.h (frv_override_options): Remove.
10743 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
10744 (frv_override_options): Rename to frv_option_override. Make static.
10745 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
10746 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
10747 * config/h8300/h8300.c (h8300_init_once): Rename to
10748 h8300_option_override. Make static.
10749 (TARGET_OPTION_OVERRIDE): Define.
10750 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
10751 * config/i386/i386-protos.h (override_options): Remove.
10752 * config/i386/i386.c (override_options): Rename to
10753 ix86_option_override_internal. Make static. Comments referring
10754 to this function and callers changed.
10755 (ix86_option_override): New.
10756 (TARGET_OPTION_OVERRIDE): Define.
10757 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
10758 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
10759 * config/ia64/ia64.c (ia64_file_start): Update comment referring
10760 to ia64_override_options.
10761 * config/iq2000/iq2000-protos.h (override_options): Remove.
10762 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
10763 (override_options): Rename to iq2000_option_override. Make static.
10764 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
10765 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
10766 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
10767 (lm32_override_options): Rename to lm32_option_override. Make static.
10768 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
10769 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
10770 (m32r_option_override): New.
10771 (m32r_init): Update comment.
10772 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
10773 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
10774 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
10775 (m68hc11_override_options): Rename to m68hc11_option_override.
10776 Make static. Return void.
10777 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
10778 * config/m68k/m68k-protos.h (override_options): Remove.
10779 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
10780 (override_options): Rename to m68k_option_override. Make static.
10781 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
10782 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
10783 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
10784 (mcore_override_options): Rename to mcore_option_override. Make
10785 static.
10786 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
10787 * config/mep/mep-protos.h (mep_override_options): Remove.
10788 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
10789 (mep_override_options): Rename to mep_option_override. Make static.
10790 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
10791 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
10792 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
10793 (mmix_override_options): Rename to mmix_option_override. Make static.
10794 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
10795 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
10796 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
10797 (mn10300_override_options): Rename to mn10300_option_override.
10798 Make static.
10799 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
10800 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
10801 * config/moxie/moxie.c (moxie_override_options): Rename to
10802 moxie_option_override. Make static.
10803 (TARGET_OPTION_OVERRIDE): Define.
10804 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
10805 * config/picochip/picochip-protos.h (picochip_override_options):
10806 Remove. Update comment referring to picochip_override_options.
10807 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
10808 (picochip_override_options): Rename to picochip_option_override.
10809 Make static. Update comment and definition of
10810 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
10811 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
10812 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10813 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10814 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10815 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10816 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10817 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
10818 instead of OVERRIDE_OPTIONS.
10819 * config/rs6000/rs6000-modes.def: Update comment referring to
10820 rs6000_override_options.
10821 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
10822 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
10823 (rs6000_override_options): Rename to
10824 rs6000_option_override_internal. Make static. Commented
10825 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
10826 (rs6000_option_override): New.
10827 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
10828 instead of OVERRIDE_OPTIONS.
10829 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
10830 * config/s390/s390-protos.h (override_options): Remove.
10831 * config/s390/s390.c (override_options): Rename to
10832 s390_option_override. Make static.
10833 (TARGET_OPTION_OVERRIDE): Define.
10834 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
10835 * config/score/score-protos.h (score_override_options): Remove.
10836 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
10837 (score_override_options): Rename to score_option_override. Make
10838 static.
10839 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
10840 Update comment referring to override_options.
10841 * config/score/score3.c (score3_override_options): Rename to
10842 score3_option_override.
10843 * config/score/score3.h (score3_override_options): Rename to
10844 score3_option_override.
10845 * config/score/score7.c (score7_override_options): Rename to
10846 score7_option_override.
10847 * config/score/score7.h (score7_override_options): Rename to
10848 score7_option_override.
10849 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
10850 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
10851 (sparc_override_options): Rename to sparc_option_override. Make
10852 static. Call SUBTARGET_OVERRIDE_OPTIONS.
10853 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
10854 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
10855 instead of OVERRIDE_OPTIONS.
10856 * config/spu/spu-protos.h (spu_override_options): Remove.
10857 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
10858 (spu_override_options): Rename to spu_option_override. Make
10859 static.
10860 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
10861 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
10862 OVERRIDE_OPTIONS.
10863 * config/vax/vax-protos.h (override_options): Remove.
10864 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
10865 (override_options): Rename to vax_option_override. Make static.
10866 Call SUBTARGET_OVERRIDE_OPTIONS.
10867 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
10868 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
10869 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
10870 * config/xtensa/xtensa-protos.h (override_options): Remove.
10871 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
10872 (override_options): Rename to xtensa_option_override. Make static.
10873 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
10874
10875 2010-09-16 Richard Guenther <rguenther@suse.de>
10876
10877 PR tree-optimization/45623
10878 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
10879 (get_constraint_for_component_ref): If computing a constraint
10880 for the rhs handle type punning through unions.
10881 (get_constraint_for_address_of): Adjust.
10882 (get_constraint_for_1): Likewise.
10883 (get_constraint_for): Likewise.
10884 (get_constraint_for_rhs): New function.
10885 (do_structure_copy): Adjust.
10886 (make_constraint_to): Likewise.
10887 (handle_const_call): Likewise.
10888 (find_func_aliases): Likewise.
10889 (process_ipa_clobber): Likewise.
10890 (create_variable_info_for): Likewise.
10891
10892 2010-09-16 Ira Rosen <irar@il.ibm.com>
10893
10894 * tree-vectorizer.c: Fix documentation.
10895 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
10896 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
10897 is_pattern_stmt_p, is_loop_header_bb_p,
10898 stmt_vinfo_set_inside_of_loop_cost,
10899 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
10900 known_alignment_for_access_p): Likewise.
10901 * tree-vect-loop.c: Fix documentation.
10902 (vect_get_cost): Start function name from new line.
10903 * tree-vect-data-refs.c: Fix documentation.
10904 * tree-vect_stmts.c: Likewise.
10905 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
10906 (vectorizable_store): Free vec_oprnds if allocated.
10907 (vectorizable_condition): Initialize several variables to avoid
10908 warnings.
10909 * tree-vect-slp.c: Fix documentation.
10910
10911 2010-09-16 Richard Guenther <rguenther@suse.de>
10912
10913 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
10914 is TS_TRANSLATION_UNIT_DECL.
10915 (initialize_tree_contains_struct): Adjust.
10916 (all_translation_units): New global vector.
10917 (build_translation_unit_decl): New function.
10918 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
10919 (struct tree_translation_unit_decl): New.
10920 (all_translation_units): Declare.
10921 (union tree_node): Add translation_unit_decl member.
10922 (build_translation_unit_decl): Declare.
10923 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
10924 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
10925 New function.
10926 (pack_value_fields): Call it.
10927 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
10928 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
10929 (lto_output_tree_pointers): Call it.
10930 * lto-streamer-in.c (lto_input_tree_ref): Handle references
10931 to TRANSLATION_UNIT_DECL.
10932 (unpack_ts_translation_unit_decl_value_fields): New function.
10933 (unpack_value_fields): Call it.
10934 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
10935 (lto_input_tree_pointers): Call it.
10936 * lto-streamer.c (check_handled_ts_structures): Adjust.
10937 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
10938 * c-decl.c (all_translation_units): Remove.
10939 (pop_scope): Use build_translation_unit_decl.
10940 (collect_all_refs): Adjust.
10941 (for_each_global_decl): Likewise.
10942 (c_write_global_declarations): Likewise.
10943
10944 2010-09-16 Jakub Jelinek <jakub@redhat.com>
10945
10946 PR bootstrap/45686
10947 * fold-const.c (fold_checksum_tree): Change slot from const void **
10948 to void **, use CONST_CAST_TREE to store into *slot.
10949
10950 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
10951
10952 * config/i386/i386.md: Remove unneeded empty conditions and
10953 preparation statements from expanders.
10954 * config/i386/mmx.md: Ditto.
10955 * config/i386/sse.md: Ditto.
10956
10957 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
10958
10959 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
10960
10961 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
10962
10963 PR rtl-optimization/45593
10964 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
10965 insns that were in delay slots as stand-alone insns.
10966
10967 2010-09-15 Ian Lance Taylor <iant@google.com>
10968
10969 * incpath.c (remove_duplicates): If name is not a directory, issue
10970 a warning rather than an error.
10971
10972 2010-09-15 Martin Jambor <mjambor@suse.cz>
10973
10974 PR middle-end/45644
10975 * tree-sra.c (create_access): Check for bit-fields directly.
10976
10977 2010-09-15 Jakub Jelinek <jakub@redhat.com>
10978
10979 PR tree-optimization/45633
10980 * tree-cfg.c (verify_gimple_assign_binary): Allow
10981 MINUS_EXPR with lhs and rhs1 pointer vector and
10982 rhs2 sizetype vector.
10983 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
10984 or vector pointer use TER to optimize pointer subtraction.
10985
10986 2010-09-15 Jie Zhang <jie@codesourcery.com>
10987
10988 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
10989 fcmpd to fcmps.
10990
10991 2010-09-15 Ian Lance Taylor <iant@google.com>
10992
10993 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
10994
10995 2010-09-15 Ian Lance Taylor <iant@google.com>
10996
10997 * function.c (get_arg_pointer_save_area): Set
10998 arg_pointer_save_area_init to true.
10999
11000 2010-09-15 Martin Jambor <mjambor@suse.cz>
11001
11002 * tree-sra.c (generate_subtree_copies): Updated comment.
11003 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
11004 obtained from the statement iterator instead.
11005 (load_assign_lhs_subreplacements): Removed parameters lhs and
11006 right_offset, which is obtained from top_racc instead. Parameter lacc
11007 is now expected to be the root of the processed tree rather than root's
11008 first child. Updated all callers.
11009
11010 2010-09-15 Joseph Myers <joseph@codesourcery.com>
11011
11012 * config/pdp11/pdp11.c (register_move_cost): Rename to
11013 pdp11_register_move_cost.
11014 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
11015 pdp11_register_move_cost.
11016 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
11017 pdp11_register_move_cost instead of register_move_cost.
11018
11019 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
11020
11021 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
11022 pattern for vmovn. Expansion in case of non
11023 -mvectorize-with-neon-quad.
11024 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
11025 non- -mvectorize-with-neon-quad case.
11026 (move_lo_quad_<mode>): New expansion to vmov into low part.
11027 (move_hi_quad_<mode>): New expansion to vmov into high part.
11028 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
11029 (move_lo_quad_v4sf): Likewise.
11030 (move_lo_quad_v8hi): Likewise.
11031 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
11032 low part.
11033 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
11034 high part.
11035 * config/arm/iterators.md (ANY128): New mode iterator.
11036 (V_narrow_pack): New mode attribute.
11037 (V_HALF): Add attribute.
11038 (V_DOUBLE): Add attribute.
11039 (V_mode_nunits): Add attribute.
11040
11041 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
11042
11043 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
11044 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
11045
11046 2010-09-15 Olivier Hainque <hainque@adacore.com>
11047 Jose Ruiz <ruiz@adacore.com>
11048
11049 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
11050 * config/alpha/osf5-unwind.h: New file.
11051
11052 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
11053
11054 PR bootstrap/45672
11055 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
11056 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
11057 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
11058
11059 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
11060
11061 * c-lang.h (struct lang_type): Add variable_size GTY option.
11062
11063 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
11064
11065 PR bootstrap/45672
11066 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
11067
11068 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
11069
11070 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
11071 result isn't used in memory address.
11072
11073 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
11074
11075 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
11076 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
11077 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
11078 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
11079 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
11080 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
11081
11082 * target.def: Add units_per_simd_word to vectorize.
11083
11084 * targhooks.c (default_units_per_simd_word): New.
11085 * targhooks.h (default_units_per_simd_word): Likewise.
11086 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
11087 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11088 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
11089 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11090 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
11091 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11092 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
11093 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
11094
11095 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
11096 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
11097
11098 * tree-vect-stmts.c: Don't include "tm_p.h".
11099 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
11100 with targetm.vectorize.units_per_simd_word.
11101
11102 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
11103
11104 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
11105
11106 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
11107 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
11108
11109 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
11110 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
11111
11112 * doc/tm.texi: Regenerated.
11113
11114 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
11115
11116 * tree-vect-stmts.c: Include "tm_p.h".
11117
11118 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
11119 out of RTX_CODE.
11120
11121 2010-09-14 Martin Jambor <mjambor@suse.cz>
11122
11123 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
11124 location of generated statement. Changed all callers.
11125 (build_ref_for_model): New parameter loc which used to set location of
11126 all generated expressions. Changed all callers.
11127 (generate_subtree_copies): Likewise.
11128 (init_subtree_with_zero): Likewise.
11129 (sra_modify_expr): Set locations of all generated statements and
11130 expressions to the location the original statement.
11131 (handle_unscalarized_data_in_subtree): Likewise.
11132 (load_assign_lhs_subreplacements): Likewise.
11133 (sra_modify_constructor_assign): Likewise.
11134 (sra_modify_assign): Likewise.
11135
11136 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
11137
11138 PR target/45277
11139 PR target/45363
11140 PR target/45407
11141 * doc/install.texi (sparc*-*-*): New section.
11142 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
11143
11144 2010-09-14 Jakub Jelinek <jakub@redhat.com>
11145
11146 PR middle-end/45567
11147 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
11148 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
11149 (expand_builtin): Adjust caller.
11150 (expand_builtin_unop): Only use subtarget if it has the right mode.
11151
11152 2010-09-14 Tristan Gingold <gingold@adacore.com>
11153
11154 * configure.ac (plugins): Fix typos.
11155 * configure: Regenerate.
11156
11157 2010-09-14 Jakub Jelinek <jakub@redhat.com>
11158
11159 PR debug/45660
11160 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
11161 gen_type_die for function/method return type.
11162
11163 2010-09-14 Ira Rosen <irar@il.ibm.com>
11164
11165 PR tree-optimization/45470
11166 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11167 can throw an exception.
11168 * tree-vect-stmts.c (vectorizable_call): Likewise.
11169
11170 2010-09-14 DJ Delorie <dj@redhat.com>
11171
11172 PR target/44749
11173 * config/mep/mep-protos.h (mep_save_register_info,
11174 mep_reinit_regs, mep_init_regs): Declare.
11175
11176 * config/mep/mep.c: Move all target definitions to the end of the
11177 file to avoid the need for duplicate declarations.
11178 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
11179 (mep_reorg_erepeat): Remove unused variables.
11180 (mep_expand_builtin): Likewise.
11181
11182 * config/mep/mep-pragma.c: Don't include rtl.h.
11183 (INVALID_REGNUM): New.
11184 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
11185 functions.
11186 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
11187 Avoid enum/integer math.
11188
11189 2010-09-13 Joseph Myers <joseph@codesourcery.com>
11190
11191 PR target/44749
11192 * config/mep/t-mep (GTM_H): Add insn-constants.h.
11193 * config/mep/mep.c (mep_conditional_register_usage): Take no
11194 parameters.
11195 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
11196 prototype.
11197 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
11198 call to mep_conditional_register_usage.
11199
11200 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
11201
11202 PR debug/43937
11203 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
11204 the DECL as well.
11205
11206 2010-09-13 Jakub Jelinek <jakub@redhat.com>
11207
11208 PR rtl-optimization/45617
11209 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
11210 even if low N bits of X aren't known to be zero.
11211
11212 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
11213
11214 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
11215
11216 * config/i386/i386.c (initial_ix86_tune_features): Add
11217 X86_TUNE_VECTORIZE_DOUBLE.
11218 (ix86_units_per_simd_word): New.
11219
11220 * config/i386/i386.h (ix86_tune_indices): Add
11221 X86_TUNE_VECTORIZE_DOUBLE.
11222 (TARGET_VECTORIZE_DOUBLE): New.
11223 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
11224
11225 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
11226
11227 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
11228 (new_temp_expr_table): Allocate call_cnt vector.
11229 (free_temp_expr_table): Free it.
11230 (process_replaceable): Add call_cnt parm and set in vector.
11231 (find_replaceable_in_bb): Skip replacement if def/use span a call.
11232 (debug_ter): Dump call_cnt value, remove stderr uses.
11233
11234 2010-09-13 Jan Hubicka <jh@suse.cz>
11235
11236 * tree.c (build_zero_cst): New.
11237 * tree.h (build_zero_cst): Declare.
11238 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
11239 (get_base_constructor): Break out from ...
11240 (fold_const_aggregate_ref): Here; handle empty constructors.
11241
11242 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
11243
11244 * config/arm/arm.md: (define_attr "conds"): Update comment.
11245 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
11246 conds attribute to clob.
11247 (arm_sync_compare_and_swapsi): Likewise.
11248 (arm_sync_compare_and_swap<mode>): Likewise.
11249 (arm_sync_lock_test_and_setsi): Likewise.
11250 (arm_sync_lock_test_and_set<mode>): Likewise.
11251 (arm_sync_new_<sync_optab>si): Likewise.
11252 (arm_sync_new_nandsi): Likewise.
11253 (arm_sync_new_<sync_optab><mode>): Likewise.
11254 (arm_sync_new_nand<mode>): Likewise.
11255 (arm_sync_old_<sync_optab>si): Likewise.
11256 (arm_sync_old_nandsi): Likewise.
11257 (arm_sync_old_<sync_optab><mode>): Likewise.
11258 (arm_sync_old_nand<mode>): Likewise.
11259
11260 2010-09-13 Olivier Hainque <hainque@adacore.com>
11261
11262 * fwprop.c (forward_propagate_and_simplify): Only attach a
11263 REG_EQUAL note to an insn if the destination is a register.
11264 * gcse.c (try_replace_reg): Likewise.
11265
11266 2010-09-13 Richard Guenther <rguenther@suse.de>
11267
11268 PR tree-optimization/45611
11269 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
11270 (copy_ref_info): Likewise.
11271
11272 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
11273
11274 PR debug/45604
11275 PR debug/45419
11276 PR debug/45408
11277 * tree-pretty-print.c (dump_generic_node): Disregard top-level
11278 types of MEM_REF pointer types to the same type.
11279
11280 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
11281
11282 PR rtl-optimization/41087
11283 * ifcvt.c (noce_get_condition): Don't allow conditions with
11284 side-effects.
11285
11286 2010-09-12 Anatoly Sokolov <aesok@post.ru>
11287
11288 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11289 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
11290 * config/frv/frv.c (frv_register_move_cost): Make static. Change
11291 arguments type to reg_class_t. Add mode argument.
11292 (frv_memory_move_cost): New.
11293 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
11294
11295 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
11296
11297 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
11298 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
11299
11300 2010-09-10 Jan Hubicka <jh@suse.cz>
11301
11302 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
11303
11304 2010-09-10 Richard Guenther <rguenther@suse.de>
11305
11306 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
11307 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
11308 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
11309 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
11310 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
11311
11312 2010-09-10 Richard Guenther <rguenther@suse.de>
11313
11314 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
11315 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
11316 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
11317 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
11318
11319 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
11320
11321 PR middle-end/45634
11322 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
11323 of string folding is of integral type.
11324
11325 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
11326
11327 * doc/invoke.texi (-x): Fix typo.
11328
11329 2010-09-10 Richard Guenther <rguenther@suse.de>
11330
11331 PR debug/44115
11332 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
11333 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
11334 Output DECL_DEBUG_EXPR.
11335 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11336 Input DECL_DEBUG_EXPR.
11337
11338 2010-09-10 Richard Guenther <rguenther@suse.de>
11339
11340 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
11341 (build_index_type): Implement in terms of build_range_type.
11342 (build_range_type): Do not allow NULL_TREE type, improve
11343 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
11344 if we didn't hash.
11345 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
11346 create a distinct copy of the type.
11347
11348 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
11349
11350 * configure: Regenerated.
11351 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
11352
11353 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11354
11355 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
11356 * config/arm/cortex-a9-neon.md: New and partially generated.
11357 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
11358
11359 2010-09-10 Richard Guenther <rguenther@suse.de>
11360
11361 * tree.h (build_index_2_type): Remove.
11362 * tree.c (build_index_2_type): Remove.
11363
11364 2010-09-10 Jakub Jelinek <jakub@redhat.com>
11365
11366 PR bootstrap/45630
11367 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
11368 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
11369 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
11370
11371 2010-09-10 Martin Jambor <mjambor@suse.cz>
11372
11373 PR tree-optimization/44972
11374 * tree-sra.c: Include toplev.h.
11375 (build_ref_for_offset): Entirely reimplemented.
11376 (build_ref_for_model): New function.
11377 (build_user_friendly_ref_for_offset): New function.
11378 (analyze_access_subtree): Removed build_ref_for_offset check.
11379 (propagate_subaccesses_across_link): Likewise.
11380 (create_artificial_child_access): Use
11381 build_user_friendly_ref_for_offset.
11382 (propagate_subaccesses_across_link): Likewise.
11383 (ref_expr_for_all_replacements_p): Removed.
11384 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
11385 (sra_modify_expr): Use build_ref_for_model.
11386 (load_assign_lhs_subreplacements): Likewise.
11387 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
11388 checks for return values of build_ref_for_offset.
11389 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
11390 build_ref_for_offset.
11391 * ipa-prop.h: Include gimple.h
11392 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
11393 (ipa_analyze_indirect_call_uses): Update comment.
11394 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
11395 (IPA_PROP_H): Likewise.
11396
11397 2010-09-10 Martin Jambor <mjambor@suse.cz>
11398
11399 PR tree-optimization/44972
11400 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
11401 calling build_ref_for_offset.
11402
11403 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11404
11405 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
11406 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
11407 * config/arm/arm-tune.md: Regenerate.
11408 * doc/invoke.texi (ARM Options): Document it.
11409
11410 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
11411
11412 * config/i386/i386.c: Include sched-int.h.
11413 (TARGET_SCHED_DISPATCH): Defined.
11414 (TARGET_SCHED_DISPATCH_DO): Defined.
11415 (DISPATCH_WINDOW_SIZE): Defined.
11416 (MAX_DISPATCH_WINDOWS): Defined.
11417 (MAX_INSN): Defined.
11418 (MAX_IMM): Defined.
11419 (MAX_IMM_SIZE): Defined.
11420 (MAX_IMM_32): Defined.
11421 (MAX_IMM_64): Defined.
11422 (MAX_LOAD): Defined.
11423 (MAX_STORE): Defined.
11424 (BIG): Defined.
11425 (dispatch_group): New.
11426 (num_allowable_groups): New.
11427 (group_name): New.
11428 (sched_insn_info_s): New.
11429 (dispatch_windows_s): New.
11430 (imm_info_s): New.
11431 (dispatch_window_list): New.
11432 (dispatch_window_list1): New.
11433 (get_mem_group): New.
11434 (is_cmp): New.
11435 (dispatch_violation): New.
11436 (is_branch): New.
11437 (is_prefetch): New.
11438 (init_window): New.
11439 (allocate_window): New.
11440 (init_dispatch_sched): New.
11441 (is_end_basic_block): New.
11442 (process_end_window): New.
11443 (allocate_next_window): New.
11444 (find_constant_1): New.
11445 (find_constant): New.
11446 (get_num_immediates): New.
11447 (has_immediate): New.
11448 (get_insn_path): New.
11449 (get_insn_group): New.
11450 (count_num_restricted): New.
11451 (fits_dispatch_window): New.
11452 (add_insn_window): New.
11453 (add_to_dispatch_window): New.
11454 (debug_dispatch_window_file): New.
11455 (debug_dispatch_window): New.
11456 (debug_insn_dispatch_info_file): New.
11457 (debug_ready_dispatch): New.
11458 (do_dispatch): New.
11459 (has_dispatch): New.
11460 * config/i386/i386.h (debug_ready_dispatch): Declared.
11461 (debug_dispatch_window): Declared.
11462 * config/i386/i386.opt (mdispatch-scheduler): New flag.
11463 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
11464 (TARGET_SCHED_DISPATCH_DO): New.
11465 * doc/tm.texi: Regererated.
11466 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
11467 ready_remove_first_dispatch
11468 (schedule_block): Call targetm.sched.dispatch and
11469 targetm.sched.dispatch_do.
11470 (sched_init): Call targetm.sched.dispatch and
11471 targetm.sched.dispatch_do.
11472 (ready_remove_first_dispatch): New.
11473 (number_in_ready): New.
11474 (get_ready_element): New.
11475 * hooks.c (hook_bool_rtx_int_false): New.
11476 (hook_void_rtx_int): New.
11477 * hooks.h (hook_bool_rtx_int_false): Declared.
11478 (hook_void_rtx_int): Declared.
11479 * sched-int.h (IS_DISPATCH_ON): Defined.
11480 (IS_CMP): Defined.
11481 (DISPATCH_VIOLATION): Defined.
11482 (FITS_DISPATCH_WINDOW): Defined.
11483 (DISPATCH_INIT): Defined.
11484 (ADD_TO_DISPATCH_WINDOW): Defined.
11485 (get_ready_element): Declared.
11486 (number_in_ready): Declared.
11487 * target.def (dispatch): Defined.
11488 (dispatch_do): Defined.
11489
11490 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
11491
11492 PR middle-end/45312
11493 * reload1.c (merge_assigned_reloads): Remove.
11494 (reload_as_needed): Don't call it.
11495
11496 2010-09-09 Anatoly Sokolov <aesok@post.ru>
11497
11498 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
11499 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11500 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11501
11502 2010-09-09 Matthias Klose <doko@ubuntu.com>
11503
11504 PR bootstrap/43847
11505 * configure.ac (--enable-plugin): Enhance for cross builds.
11506 * configure: Regenerate.
11507
11508 2010-09-09 Jan Hubicka <jh@suse.cz>
11509
11510 PR tree-optimization/45598
11511 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
11512 string folding is of integral type.
11513
11514 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
11515
11516 * configure.ac (gnu_indirect_function): New test.
11517 * configure: Rebuilt.
11518 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
11519 * defaults.h (IFUNC_ASM_TYPE): Provide default.
11520
11521 * doc/extend.texi (Function Attributes): Document ifunc.
11522 * varasm.c (do_assemble_alias): Deal with ifuncs too.
11523
11524 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
11525
11526 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
11527 epilogue instruction move.
11528
11529 2010-09-09 Jan Hubicka <jh@suse.cz>
11530
11531 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
11532 command line to allow more partitions than input files.
11533
11534 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
11535
11536 PR middle-end/44554
11537 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
11538
11539 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
11540
11541 PR middle-end/40386
11542 * ira.c (pseudo_for_reload_consideration_p): Don't use
11543 flag_ira_share_spill_slots.
11544
11545 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11546
11547 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
11548 point zero operands that fit into a single GPR.
11549 (s390_preferred_reload_class): Ensure we only return general-purpose
11550 register classes.
11551 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
11552 floating-point zero operands into GPRs.
11553 ("*mov<mode>_64"): Likewise.
11554 ("mov<mode>"): Likewise using lhi.
11555
11556 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11557
11558 * config/s390/s390.c (s390_symref_operand_p): Return false for
11559 literal pool references.
11560 (s390_check_qrst_address): Update caller.
11561
11562 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
11563
11564 * config/i386/predicates.md (ext_register_operand): Check that
11565 SUBREG_REG is really a register before looking for REGNO.
11566 (reg_not_xmm0_operand): Handle SUBREGs correctly.
11567 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
11568
11569 2010-09-09 Jakub Jelinek <jakub@redhat.com>
11570
11571 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
11572 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
11573 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
11574 * print-rtl.c (print_rtx): Likewise.
11575 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
11576 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
11577 for ADDR_EXPR with non-addressable object.
11578 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
11579 (struct dw_val_struct): Add v.val_decl_ref.
11580 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
11581 Handle DW_OP_GNU_implicit_pointer.
11582 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
11583 (get_ref_die_offset_label): New function.
11584 (implicit_ptr_descriptor): New function.
11585 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
11586 (loc_descriptor): Likewise.
11587 (gen_variable_die): Put even definitions into decl_die_table.
11588 (resolve_addr_in_expr): Resolve still unresolved
11589 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
11590 return false.
11591 (dwarf2out_finish): Call output_location_lists after outputting
11592 .debug_info and .debug_abbrev instead of before.
11593
11594 2010-09-09 Roland McGrath <roland@redhat.com>
11595
11596 * dwarf2out.c (DWARF_REF_SIZE): Define.
11597 (size_of_loc_descr): Use it for DW_OP_call_ref.
11598
11599 2010-09-09 Alan Modra <amodra@gmail.com>
11600
11601 * doc/invoke.text: Reinstate mcmodel=medium.
11602 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11603 CMODEL_MEDIUM as default.
11604 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
11605 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
11606 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
11607 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
11608
11609 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11610
11611 PR target/45250
11612 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
11613 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
11614 (builtin_longjmp): Likewise.
11615 (allocate_stack): Use hard_frame_pointer_rtx instead of
11616 frame_pointer_rtx.
11617 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
11618 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
11619 (pa_can_eliminate): Likewise.
11620 (TARGET_INTERNAL_ARG_POINTER): Define.
11621 (TARGET_CAN_ELIMINATE): Define.
11622 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
11623 pointer.
11624 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
11625 (pa_internal_arg_pointer, pa_can_eliminate,
11626 pa_initial_elimination_offset): New.
11627 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
11628 (HARD_FRAME_POINTER_REGNUM): Set to register three.
11629 (INITIAL_FRAME_POINTER_OFFSET): Delete.
11630 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
11631 Define.
11632 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
11633 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
11634 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
11635 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
11636 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
11637 new soft frame pointer.
11638 * config/pa/pa64-regs.h: Likewise.
11639
11640 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
11641
11642 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
11643 numerical constant.
11644 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
11645
11646 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
11647
11648 PR debug/45531
11649 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
11650
11651 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
11652
11653 PR debug/45419
11654 PR debug/45408
11655 * tree-pretty-print.c (dump_generic_node): Disregard top-level
11656 qualifiers in otherwise equal MEM_REF pointer types.
11657 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
11658 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
11659
11660 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11661
11662 PR target/44392
11663 * config/arm/arm.md (bswapsi2): Handle condition correctly
11664 for armv6 and optimize_size.
11665
11666 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11667
11668 PR other/18555
11669 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
11670
11671 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
11672
11673 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
11674 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
11675 ix86_expand_strlen, legitimate_pic_address_disp_p,
11676 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
11677 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
11678 ix86_check_movabs, ix86_secondary_memory_needed): Change function
11679 prototype to bool.
11680 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
11681 return_in_memory_ms_64, ix86_check_movabs,
11682 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
11683 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
11684 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
11685 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
11686 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
11687 ix86_secondary_memory_needed): Change to bool. Return
11688 "true" and "false" values.
11689 * config/i386/i386.md: Return "true" and "false" values.
11690
11691 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11692
11693 * doc/sourcebuild.texi (Effective-Target Keywords): Document
11694 run_expensive_tests.
11695
11696 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11697
11698 * toplev.c (output_stack_usage): Use lbasename instead of basename.
11699
11700 2010-09-08 Martin Jambor <mjambor@suse.cz>
11701
11702 PR other/45443
11703 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
11704 at -O3.
11705
11706 2010-09-08 Richard Guenther <rguenther@suse.de>
11707
11708 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
11709 (visit): Adjust.
11710 (iterative_hash_gimple_type): Likewise.
11711 (gimple_type_hash): Likewise.
11712 (gimple_register_type): Likewise.
11713 (print_gimple_types_stats): Likewise.
11714 (free_gimple_type_tables): Likewise.
11715
11716 2010-09-08 Michael Matz <matz@suse.de>
11717
11718 PR tree-optimization/43430
11719 * tree-vect-stmts.c (vectorizable_condition): Support multiple
11720 copies for conditional statements if it's not part of a reduction.
11721
11722 2010-09-08 Michael Matz <matz@suse.de>
11723
11724 PR tree-optimization/33244
11725 * tree-ssa-sink.c (statement_sink_location): Don't sink into
11726 empty loop latches.
11727
11728 2010-09-08 Richard Guenther <rguenther@suse.de>
11729
11730 PR tree-optimization/45578
11731 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
11732 Be more careful when transfering alignment information to
11733 the new induction variable.
11734 (copy_ref_info): Likewise.
11735
11736 2010-09-08 Richard Guenther <rguenther@suse.de>
11737
11738 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
11739 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
11740
11741 2010-09-08 Arnaud Charlet <charlet@adacore.com>
11742
11743 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
11744 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
11745
11746 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
11747
11748 PR doc/45587
11749 * doc/md.texi: Fixed modes on several standard pattern names.
11750
11751 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
11752
11753 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
11754 (ashl<mode>3): ...this.
11755 (loongson_psra<V_suffix>): Rename to...
11756 (ashr<mode>3): ...this.
11757 (loongson_psrl<V_suffix>): Rename to...
11758 (lshr<mode>3): ...this.
11759 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
11760 (CODE_FOR_loongson_psllw): Define.
11761 (CODE_FOR_loongson_psrlh): Define.
11762 (CODE_FOR_loongson_psrlw): Define.
11763 (CODE_FOR_loongson_psrah): Define.
11764 (CODE_FOR_loongson_psraw): Define.
11765
11766 2010-09-07 Richard Henderson <rth@redhat.com>
11767
11768 * tree-vect-data-refs.c: Include tm_p.h.
11769 * Makefile.in (tree-vect-data-refs.o): Update deps.
11770 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
11771 Move delarations outside #ifdef RTX_CODE.
11772
11773 2010-09-07 Richard Henderson <rth@redhat.com>
11774
11775 * final.c (rest_of_handle_final): Unconditionally do
11776 output_function_exception_table before assemble_end_function.
11777
11778 2010-09-07 Jan Hubicka <jh@suse.cz>
11779
11780 * tree-inline.c (tree_inlinable_function_p): Do not test
11781 DECL_REPLACEABLE_P.
11782 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
11783 update_callee_keys, cgraph_decide_inlining): Test function availability.
11784 * cif-code.def (OVERWRITABLE): New code.
11785
11786 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
11787 Jack Howarth <howarth@bromo.med.uc.edu>
11788
11789 PR target/36502
11790 PR target/42313
11791 PR target/44651
11792 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
11793 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
11794 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
11795 MAX macro.
11796
11797 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11798
11799 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
11800 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
11801
11802 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11803
11804 * config.gcc: Don't append t-android for Android targets.
11805
11806 * config/t-android: Removed.
11807
11808 2010-09-07 Richard Henderson <rth@redhat.com>
11809
11810 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
11811 * doc/tm.texi.in: Add doc marker.
11812 * doc/tm.texi: Rebuild.
11813 * except.c (switch_to_exception_section): Always build.
11814 (output_one_function_exception_table): Move section switch,
11815 personality output, and label output ...
11816 (output_function_exception_table): ... here. Use the new
11817 personality hook.
11818
11819 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
11820 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
11821 TARGET_ASM_INIT_SECTIONS): New.
11822 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
11823 make static.
11824 (TARGET_ASM_UNWIND_EMIT): Update to match.
11825 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
11826
11827 * config/arm/arm.c (arm_asm_emit_except_personality): New.
11828 (arm_asm_init_sections): New.
11829 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
11830
11831 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11832
11833 * config/arm/arm.md: Remove unused variable.
11834
11835 2010-09-07 Anatoly Sokolov <aesok@post.ru>
11836
11837 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
11838 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
11839 (m32r_memory_move_cost): New function.
11840
11841 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
11842
11843 * config.gcc: Append t-android for Android targets.
11844
11845 * config/t-android: New.
11846
11847 2010-09-07 Richard Henderson <rth@redhat.com>
11848
11849 * target.def (unwind_emit_before_insn): New hook.
11850 * doc/tm.texi.in: Add @hook marker for it.
11851 * doc/tm.texi: Rebuild.
11852 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
11853
11854 2010-09-07 Martin Jambor <mjambor@suse.cz>
11855
11856 PR fortran/43665
11857 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
11858 are any type attributes.
11859
11860 2010-09-07 Jan Hubicka <jh@suse.cz>
11861
11862 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
11863 array_ref_low_bound in string access folding.
11864
11865 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
11866
11867 PR target/45206
11868 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
11869 eh_return fixup sequence.
11870
11871 2010-09-07 Jan Hubicka <jh@suse.cz>
11872
11873 * gimple-fold.c (maybe_fold_reference): Verify that operand is
11874 gimple_min_invariant.
11875
11876 2010-09-07 Richard Guenther <rguenther@suse.de>
11877
11878 PR middle-end/45569
11879 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
11880 nor CONSTRUCTOR can trap.
11881 * tree-complex.c (update_complex_assignment): Update EH info.
11882
11883 2010-09-07 Richard Guenther <rguenther@suse.de>
11884
11885 PR middle-end/45569
11886 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
11887 * passes.c (execute_function_todo): Do not verify anything if
11888 we saw errors.
11889
11890 2010-09-07 Richard Guenther <rguenther@suse.de>
11891
11892 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
11893
11894 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
11895
11896 PR target/43137
11897 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
11898 New define_mode_attrs.
11899 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
11900 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
11901 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
11902 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
11903 Remove pool_range attribute.
11904 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
11905 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
11906 pool_range and neg_pool_range attributes.
11907 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
11908 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
11909 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
11910
11911 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
11912
11913 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
11914 check glibc.
11915
11916 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
11917
11918 PR target/22152
11919 * config/i386/mmx.md (*mov<mode>_internal_rex64,
11920 *mov<mode>_internal_avx, *mov<mode>_internal,
11921 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
11922 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
11923
11924 2010-09-06 Mark Mitchell <mark@codesourcery.com>
11925
11926 * c-typeck.c (do_warn_double_promotion): Remove.
11927 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
11928 Objective-C++ too.
11929
11930 2010-09-06 Anatoly Sokolov <aesok@post.ru>
11931
11932 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
11933 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
11934 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
11935 argument type to reg_class_t. Change result type to bool.
11936 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
11937
11938 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
11939
11940 PR libobjc/19850
11941 * gthr-posix.h (__gthread_objc_thread_detach): Use
11942 _objc_thread_attribs when detaching a thread.
11943 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
11944
11945 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
11946
11947 PR target/45524
11948 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
11949 * configure: Regenerated.
11950
11951 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11952
11953 * combine.c (try_combine): Set subst_low_luid to i0.
11954
11955 2010-09-06 Richard Guenther <rguenther@suse.de>
11956
11957 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
11958 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
11959 (build_aligned_type): Declare.
11960 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
11961 (check_aligned_type): New function.
11962 (build_aligned_type): Likewise.
11963 * expr.c (expand_assignment): Handle misaligned stores via
11964 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
11965 (expand_expr_real_1): Likewise.
11966 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
11967 * tree-vect-stmts.c (vectorizable_store): Do not build
11968 MISALIGNED_INDIRECT_REF but initialize alignment information.
11969 (vectorizable_load): Likewise.
11970 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
11971 handling.
11972 * cfgexpand.c (expand_debug_expr): Likewise.
11973 * dwarf2out.c (loc_list_from_tree): Likewise.
11974 * fold-const.c (maybe_lvalue_p): Likewise.
11975 (operand_equal_p): Likewise.
11976 (build_fold_addr_expr_with_type_loc): Likewise.
11977 * gimplify.c (gimplify_addr_expr): Likewise.
11978 (gimplify_expr): Likewise.
11979 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
11980 (verify_gimple_assign_single): Likewise.
11981 * tree-dump.c (dequeue_and_dump): Likewise.
11982 (tree_could_trap_p): Likewise.
11983 * tree-predcom.c (ref_at_iteration): Likewise.
11984 * tree-pretty-print.c (dump_generic_node): Likewise.
11985 (op_code_prio): Likewise.
11986 (op_symbol_code): Likewise.
11987 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
11988 * tree-ssa-loop-im.c (for_each_index): Likewise.
11989 (gen_lsm_tmp_name): Likewise.
11990 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
11991 (find_interesting_uses_address): Likewise.
11992 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
11993 * tree-ssa-operands.c (get_expr_operands): Likewise.
11994 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
11995 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
11996 (ao_ref_init_from_vn_reference): Likewise.
11997 * tree.c (staticp): Likewise.
11998 (build1_stat): Likewise.
11999 (reference_alias_ptr_type): Likewise.
12000 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
12001 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
12002 MISALIGNED_INDIRECT_REF handling.
12003
12004 2010-09-06 Richard Guenther <rguenther@suse.de>
12005
12006 PR tree-optimization/45534
12007 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
12008 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
12009 on the target.
12010 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
12011 valid on the target.
12012
12013 2010-09-06 Andreas Schwab <schwab@redhat.com>
12014
12015 * configure.ac: Quote argument of AC_MSG_WARN.
12016 * configure: Regenerate.
12017
12018 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
12019
12020 * sel-sched.c (move_cond_jump): Correct arguments to
12021 maybe_tidy_empty_bb.
12022 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
12023
12024 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
12025
12026 PR rtl-optimization/44919
12027 * sel-sched.c (move_cond_jump): Remove assert, check that
12028 the several blocks case can only happen with mutually exclusive
12029 insns instead. Rewrite the movement code to support moving through
12030 several basic blocks.
12031
12032 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
12033
12034 * config/i386/i386.md (iptrsize): New mode attribute.
12035 (tp_seg): Ditto.
12036 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
12037 mode iterator.
12038 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
12039 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
12040 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
12041 (stack_tls_protect_set_<mode>): Ditto from
12042 stack_tls_protect_set_{si,di}. Use %@ to output segment register
12043 of thread base pointer load.
12044 (stack_tls_protect_test_<mode>): Ditto from
12045 stack_tls_protect_test_{si,di}. Use %@ to output segment register
12046 of thread base pointer load.
12047 (stack_protect_set): Rewrite using indirect functions.
12048 (stack_protect_test): Ditto.
12049 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
12050 (ix86_print_operand): Handle '@'.
12051
12052 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
12053
12054 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
12055 MINUS_EXPR.
12056
12057 2010-09-05 Mark Mitchell <mark@codesourcery.com>
12058
12059 * doc/invoke.texi: Document -Wdouble-promotion.
12060 * c-typeck.c (convert_arguments): Check for implicit conversions
12061 from float to double.
12062 (do_warn_double_promotion): New function.
12063 (build_conditional_expr): Use it.
12064 (build_binary_op): Likewise.
12065
12066 2010-09-05 Richard Guenther <rguenther@suse.de>
12067
12068 PR tree-optimization/45535
12069 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
12070 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
12071 dereferencing it.
12072 (indirect_refs_may_alias_p): Likewise.
12073
12074 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
12075
12076 * config/sh/sh.c (sh_option_override): Make static.
12077 Adjust comments. Declare.
12078 (sh_function_value_regno_p): Likewise.
12079 (sh_register_move_cost): Modify the arguments, make static.
12080 Adjust comments. Declare.
12081 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
12082 TARGET_FUNCTION_VALUE_REGNO_P): Define.
12083 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
12084 REGISTER_MOVE_COST): Delete.
12085 * config/sh/sh-protos.h (sh_override_options): Delete.
12086 (sh_register_move_cost): Delete.
12087 (sh_function_value_regno_p): Delete.
12088
12089 2010-09-04 Anatoly Sokolov <aesok@post.ru>
12090
12091 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
12092 m32r_function_value_regno_p): New functions.
12093 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
12094 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
12095 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
12096 FUNCTION_VALUE_REGNO_P): Remove.
12097
12098 2010-09-04 Jan Hubicka <jh@suse.cz>
12099
12100 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
12101 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
12102 fold_read_from_constant_string.
12103
12104 * gimple.h (canonicalize_constructor_val): Declare.
12105 * gimple-fold.c (canonicalize_constructor_val): New function.
12106 (get_symbol_constant_value):Use it.
12107 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
12108
12109 2010-09-04 Jan Hubicka <jh@suse.cz>
12110
12111 * tree-switch-conversion.c (build_one_array): Set constructor to be
12112 static.
12113 * varpool.c (varpool_finalize_decl): Compute const_value_known.
12114
12115 2010-09-04 Richard Guenther <rguenther@suse.de>
12116
12117 PR bootstrap/45519
12118 * tree-flow.h (force_gimple_operand_1): Declare.
12119 (force_gimple_operand_gsi_1): Likewise.
12120 * gimplify.c (force_gimple_operand_1): New worker taking a
12121 gimple predicate for ...
12122 (force_gimple_operand): ... which now wraps it.
12123 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
12124 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
12125 last change.
12126 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
12127 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
12128 (create_mem_ref): Likewise.
12129
12130 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
12131
12132 * config/i386/predicates.md (sse_reg_operand): New predicate.
12133 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
12134 predicate for operand 1.
12135 (XFmode push splitter): Use fp_register_operand predicate
12136 for operand 1.
12137 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
12138 (SF-DF float_extend push splitter): Add reload_completed insn
12139 predicate.
12140 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
12141 MODEF mode macro. Add reload_completed insn predicate.
12142
12143 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
12144
12145 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
12146 (struct df_extract_ref): Remove.
12147 (union df_ref_d): Remove extract_ref member.
12148 (df_ref_create): Remove last three arguments.
12149 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
12150 * df-scan.c (df_ref_record): Remove last three arguments, do not
12151 pass them to df_ref_create_structure.
12152 (df_uses_record): Remove first and last three arguments. Replace
12153 first argument with DF_REF_REGULAR, adjust calls to remove the
12154 width, offset and mode. Always call recursively on the second
12155 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
12156 (df_ref_create_structure): Remove first argument.
12157 (struct df_scan_problem_data): Remove ref_extract_pool.
12158 (df_scan_free_internal): Do not free it.
12159 (df_scan_alloc): Do not allocate it.
12160 (df_ref_create): Remove last three arguments, do not pass them to
12161 df_ref_create_structure.
12162 (df_free_ref): Remove DF_REF_EXTRACT case.
12163 (df_notes_rescan): Adjust call to df_uses_record.
12164 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
12165 Remove DF_REF_EXTRACT case.
12166 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
12167 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
12168 and SUBREG definitions.
12169 (df_get_conditional_uses): Remove references to width/offset/mode,
12170 adjust call to df_ref_create_structure.
12171 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
12172 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
12173 calls to df_uses_record and df_ref_record.
12174 * fwprop.c (update_df): Remove references to width/offset/mode,
12175 adjust call to df_ref_create.
12176
12177 2010-09-03 Jan Hubicka <jh@suse.cz>
12178
12179 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
12180 (build_cdtor_fns): Update use of build_cdtor.
12181
12182 2010-09-03 Joseph Myers <joseph@codesourcery.com>
12183
12184 * doc/options.texi (SeparateAlias): Document.
12185 * opt-functions.awk (switch_flags): Handle SeparateAlias.
12186 * opth-gen.awk: Generate enumeration names for options marked
12187 SeparateAlias, but not for those marked Ignore.
12188 * opts-common.c (generate_canonical_option): Don't output separate
12189 argument for options marked CL_SEPARATE_ALIAS.
12190 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
12191 * opts.h (CL_SEPARATE_ALIAS): New.
12192 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
12193 CL_COMMON): Adjust definitions.
12194 * config/i386/darwin.opt, config/mips/sde.opt: New.
12195 * common.opt (fdump-final-insns): New.
12196 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
12197 i386/darwin.opt.
12198 (mips*-sde-elf*): Add mips/sde.opt.
12199 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
12200 -mno-data-in-code and -mcode-xonly here.
12201 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
12202 * gcc.c (option_map): Add "j" to --dump entry.
12203 (translate_options): Don't translate -d to -foutput-class-dir= here.
12204
12205 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
12206
12207 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
12208 DR_IS_WRITE.
12209 (compute_all_dependences): Same.
12210 (create_rdg_edge_for_ddr): Same.
12211 * tree-data-ref.h (DR_IS_WRITE): New.
12212 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
12213 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
12214 (write_memrefs_written_at_least_once): Same.
12215 * tree-predcom.c (suitable_component_p): Same.
12216 (determine_roots_comp): Same.
12217 (execute_load_motion): Same.
12218 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
12219 (vect_enhance_data_refs_alignment): Same.
12220 (vect_analyze_group_access): Same.
12221
12222 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
12223
12224 PR testsuite/42843
12225 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
12226 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
12227
12228 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
12229
12230 * dwarf2out.c (file scope): Remove #if0'd code.
12231 (gen_subprogram_die): Same.
12232
12233 2010-09-03 Jakub Jelinek <jakub@redhat.com>
12234
12235 PR middle-end/45484
12236 * dwarf2out.c (flush_queued_reg_saves): Rename to...
12237 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
12238 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
12239 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
12240 * config/i386/i386.c (output_set_got): Call it.
12241
12242 2010-09-03 Michael Matz <matz@suse.de>
12243
12244 PR middle-end/45415
12245 * tree-sra.c (sra_modify_assign): If we modify the statement,
12246 say so.
12247
12248 * tree-ssa.c (verify_ssa): Check number of operands and links
12249 per statement to agree.
12250
12251 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
12252 Iain Sandoe <iains@gcc.gnu.org>
12253
12254 PR target/45476
12255 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
12256 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
12257 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
12258
12259 2010-09-03 Richard Guenther <rguenther@suse.de>
12260
12261 * lto-streamer-out.c (output_function): Output function
12262 start and end loci.
12263 * lto-streamer-in.c (input_function): Input function start
12264 and end loci.
12265
12266 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
12267
12268 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
12269 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
12270 * configure: Regenerate.
12271 * aclocal.m4: Regenerate.
12272
12273 2010-09-03 Jan Hubicka <jh@suse.cz>
12274
12275 PR lto/44812
12276 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
12277 on functions/variables in other partition.
12278
12279 2010-09-03 Jan Hubicka <jh@suse.cz>
12280
12281 * cgraph.h (struct varpool_node): Add const_value_known.
12282 (varpool_decide_const_value_known): Declare.
12283 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
12284 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
12285 (input_varpool_node): Restore const_value_known.
12286 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
12287 initializer folding.
12288 * ipa.c (ipa_discover_readonly_nonaddressable_var,
12289 function_and_variable_visibility): Compute const_value_known.
12290 * gimple-fold.c (get_symbol_constant_value): Use varpool for
12291 initializer folding.
12292 * varpool.c (varpool_decide_const_value_known): New function.
12293
12294 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
12295
12296 * config/i386/i386.md: Remove empty preparation statements
12297 from splitters.
12298
12299 2010-09-03 Jan Hubicka <jh@suse.cz>
12300
12301 * passes.c (rest_of_decl_compilation): Do not add local vars into
12302 varpool.
12303 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
12304 static or extern vars are in varpool.
12305 (varpool_finalize_decl): Sanity check that only static vars are
12306 finalized.
12307
12308 2010-09-03 Jakub Jelinek <jakub@redhat.com>
12309
12310 PR debug/45500
12311 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
12312 not just generic vectors with BLKmode.
12313
12314 2010-09-03 Richard Guenther <rguenther@suse.de>
12315
12316 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
12317 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
12318 * tree.h (TMR_SYMBOL): Remove.
12319 (TMR_BASE, TMR_OFFSET): Adjust.
12320 (TMR_INDEX2): New.
12321 * alias.c (ao_ref_from_mem): Use TMR_BASE.
12322 * builtins.c (get_object_alignment): Merge TMR_BASE and
12323 TMR_SYMBOL handling.
12324 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
12325 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
12326 handling. Also allow TARGET_MEM_REF as base address.
12327 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
12328 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
12329 base. Gimplify TMR_INDEX2.
12330 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
12331 * tree-dfa.c (get_ref_base_and_extent): Likewise.
12332 (get_addr_base_and_unit_offset): Likewise.
12333 * tree-eh.c (tree_could_trap_p): Likewise.
12334 * tree-pretty-print.c (dump_generic_node): Likewise.
12335 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
12336 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
12337 base to index2.
12338 (get_address_description): Reconstruct addres description
12339 from merged TMR_BASE and TMR_INDEX2.
12340 (maybe_fold_tmr): Fold propagated addresses.
12341 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
12342 MEM_REF and TARGET_MEM_REF paths.
12343 (indirect_refs_may_alias_p): Likewise.
12344 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
12345 instead of TMR_SYMBOL.
12346 * tree-ssa-operands.c (get_tmr_operands): Simplify.
12347 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
12348 according to changes ...
12349 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
12350 Split TARGET_MEM_REF into two fields plus the base.
12351 * tree.c (mem_ref_offset): Simplify.
12352 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
12353 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
12354 Strip NOPs when folding MEM_REF addresses.
12355 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
12356 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
12357 (fold_gimple_assign): ... not here.
12358
12359 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
12360
12361 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
12362 * config/mips/mips.c (mips_shift_truncation_mask): New function.
12363 (TARGET_SHIFT_TRUNCATION_MASK): Define.
12364
12365 2010-09-02 Richard Henderson <rth@redhat.com>
12366
12367 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
12368 instead of readelf in the test.
12369 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
12370 in the .debug_frame section for coff targets.
12371 * configure: Rebuild.
12372
12373 2010-09-02 Anatoly Sokolov <aesok@post.ru>
12374
12375 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
12376 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
12377 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12378 (m32c_class_likely_spilled_p): Make static. Change argument type to
12379 reg_class_t. Change result type to bool.
12380
12381 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12382
12383 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
12384 to convert (double)(long) into a single FRIZ instruction or not
12385 when -ffast-math is used.
12386
12387 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
12388 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
12389 or FRIZ instruction if -ffast-math.
12390 * config/rs6000/rs6000.md (friz): Ditto.
12391
12392 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
12393
12394 2010-09-02 Joseph Myers <joseph@codesourcery.com>
12395
12396 * opth-gen.awk (quote, comma): Remove unused variables.
12397
12398 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
12399
12400 * arm.c (arm_override_options): Correct fall-back code to use
12401 SUBTARGET_CPU_DEFAULT.
12402
12403 2010-09-02 Julian Brown <julian@codesourcery.com>
12404
12405 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
12406 unspecs.
12407 (vcond<mode>, vcondu<mode>): New expanders.
12408 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
12409 comparisons with zero.
12410 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
12411 * config/arm/constraints.md (Dz): New constraint.
12412
12413 2010-09-02 Anatoly Sokolov <aesok@post.ru>
12414
12415 * target.def (class_likely_spilled_p): New hook.
12416 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
12417 * doc/tm.texi: Regenerate.
12418 * targhooks.c (default_class_likely_spilled_p): New function.
12419 * targhooks.h (default_class_likely_spilled_p): Declare.
12420 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
12421 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
12422 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
12423 Use fixed_reg_set instead of fixed_regs.
12424 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
12425 * calls.c (avoid_likely_spilled_reg): Ditto.
12426 * ira-conflicts.c (ira_build_conflicts): Ditto.
12427 * ira.c (update_equiv_regs): Ditto.
12428 * mode-switching.c (create_pre_exit): Ditto.
12429 * regmove.c (find_matches): Ditto.
12430 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
12431 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
12432 (small_register_class_p): New inline function.
12433 (push_secondary_reload, find_reusable_reload, find_reloads): Use
12434 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
12435
12436 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
12437 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
12438 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
12439
12440 2010-09-02 Richard Guenther <rguenther@suse.de>
12441
12442 PR tree-optimization/44937
12443 PR tree-optimization/45412
12444 * ipa-split.c (split_function): Properly remove PHI nodes.
12445
12446 2010-09-02 Joseph Myers <joseph@codesourcery.com>
12447
12448 * opts.h (struct cl_option): Add warn_message field.
12449 (struct cl_decoded_option): Add warn_message field.
12450 * doc/options.texi (Ignore, Warn): Document.
12451 * opt-functions.awk (needs_state_p): Don't consider aliases or
12452 ignored options to need state saved.
12453 * optc-gen.awk: Handle Warn and Ignore.
12454 * opth-gen.awk: Output OPT_SPECIAL_ignore.
12455 * opts-common.c (decode_cmdline_option): Set warn_message field.
12456 Handle ignored options.
12457 (decode_cmdline_options_to_array, generate_option,
12458 generate_option_input_file): Set warn_message field.
12459 (read_cmdline_option): Generate warnings from warn_message field.
12460 Handle ignored options.
12461 * common.opt (Wunreachable-code, fargument-alias,
12462 fargument-noalias, fargument-noalias-global,
12463 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
12464 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
12465 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
12466 ftree-salias): Mark Ignore.
12467 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
12468 -mintel-syntax and -mno-intel-syntax here.
12469 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
12470 using Warn.
12471 * opts.c (common_handle_option): Don't handle options marked as
12472 ignored.
12473 (enable_warning_as_error): Handle ignored options.
12474
12475 2010-09-02 Joseph Myers <joseph@codesourcery.com>
12476
12477 PR driver/44076
12478 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
12479 alias_target fields.
12480 * opt-functions.awk (opt_sanitized_name): Don't handle
12481 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
12482 * optc-gen.awk: Generate alias fields.
12483 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
12484 Don't generate such constants for aliases.
12485 * opts-common.c (generate_canonical_option): New.
12486 (decode_cmdline_option): Handle aliases. Use
12487 generate_canonical_option for known options instead of copying the
12488 input option text.
12489 * doc/options.texi (Alias): Document.
12490 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
12491 fstack-check, specs): Mark as aliases.
12492 * gcc.c (driver_handle_option): Canonicalize -L options to joined
12493 arguments.
12494 (driver_handle_option): Don't handle OPT_specs.
12495 * opts.c (common_handle_option): Don't handle options marked as
12496 aliases.
12497 (enable_warning_as_error): Handle aliases.
12498 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
12499 OPT_Wlarger_than_eq.
12500 * tree-optimize.c (tree_rest_of_compilation): Use
12501 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
12502
12503 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
12504
12505 * config/i386/i386.md (nonmemory_operand): New mode attribute.
12506 (push memory peephole2): Macroize peepholes using SWI mode iterator.
12507 (move immediate to memory peephole2): Macroize peepholes using
12508 SWI124 mode iterator.
12509 (non-pairable NOT peephole2): Macroize peepholes using SWI124
12510 mode iterator.
12511 (simple lea add peephole2): Macroize peepholes using SWI48
12512 mode iterator.
12513 (simple lea mult peephole2): Ditto.
12514 (imul by 3,5,9 to lea peephole2): Ditto.
12515 (mov $-1, reg peephole2): Macroize peepholes using SWI248
12516 mode iterator.
12517 (imul $32bit_imm,mem,reg peephole2): Ditto.
12518 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
12519
12520 2010-09-02 Ian Bolton <ian.bolton@arm.com>
12521
12522 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
12523
12524 2010-09-02 Olivier Hainque <hainque@adacore.com>
12525
12526 PR middle-end/44763
12527 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
12528 (allocno_priority_compare_func): Use it instead of a straight
12529 difference computation over priorities.
12530
12531 2010-09-02 Andi Kleen <ak@linux.intel.com>
12532
12533 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
12534
12535 2010-09-02 Ira Rosen <irar@il.ibm.com>
12536
12537 * tree-vectorizer.h (get_later_stmt): New function.
12538 (vect_analyze_data_ref_dependences): Add argument.
12539 * tree-vect-loop.c (vect_analyze_loop): Update call to
12540 vect_analyze_data_ref_dependences.
12541 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
12542 New function.
12543 (vect_analyze_data_ref_dependence): Add argument for basic block
12544 dependencies. Check dependencies in basic block vectorization.
12545 (vect_analyze_data_ref_dependences): Add argument and update call to
12546 vect_analyze_data_ref_dependences.
12547 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
12548 (vect_bb_vectorizable_with_dependencies): New.
12549 (vect_slp_analyze_bb): Check dependencies in basic block.
12550 (vect_schedule_slp_instance): Insert stores before the last store in
12551 SLP instance.
12552
12553 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
12554
12555 PR target/45476
12556 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
12557 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
12558
12559 2010-09-01 Jakub Jelinek <jakub@redhat.com>
12560
12561 PR middle-end/45458
12562 * bb-reorder.c (add_labels_and_missing_jumps): Treat
12563 bbs ending with throwing insns like blocks ending with a call.
12564 (fix_up_fall_thru_edges): Likewise.
12565
12566 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
12567
12568 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
12569 (m32c_function_arg_advance): Delete.
12570 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12571 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
12572 comments. Take a const_tree and a bool. Declare.
12573 (m32c_function_arg_advance): Likewise.
12574 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12575
12576 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
12577
12578 PR target/45476
12579 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
12580 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
12581 * config/i386/mingw32.h: ... here.
12582
12583 2010-09-01 Andi Kleen <ak@linux.intel.com>
12584
12585 PR lto/45475
12586 * lto-streamer-in.c (lto_input_ts_target_option): Add.
12587 (lto_input_tree_pointers): Call lto_input_ts_target_option.
12588 * lto-streamer-out (lto_output_ts_target_option): Add.
12589 (lto_output_tree_pointers): Call lto_output_ts_target_option.
12590
12591 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
12592
12593 PR/target 45452
12594 * config/i386/cygwin.h: Change order of specified import libraries.
12595 * config/i386/mingw32.h: Likewise.
12596 * config/i386/t-cygwin: Likewise.
12597 * config/i386/t-mingw32: Likewise.
12598 * config/i386/t-mingw-w32: Likewise.
12599 * config/i386/t-mingw-w64: Likewise.
12600
12601 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12602
12603 * config/arm/neon-schedgen.ml (core): New type.
12604 (allCores): List of supported cores.
12605 (availability_table): Add supported cores.
12606 (collate_bypasses): Accept core as a parameter.
12607 (worst_case_latencies_and_bypasses): Accept core as a parameter.
12608 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
12609 and coreStr to get tune attribute and prefix for functional units.
12610 (emit_bypasses): Accept core name and use it.
12611 (calculate_per_core_availability_table): New.
12612 (filter_core): New.
12613 (calculate_core_availability_table): New.
12614 (main): Use calculate_core_availablity_table.
12615 * config/arm/cortex-a8-neon.md: Update copyright year.
12616 Regenerated from ml file and merged in.
12617 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
12618 cortex_a8_neon_mrc.
12619
12620 2010-09-01 Ian Bolton <ian.bolton@arm.com>
12621
12622 * Makefile.in (tree-switch-conversion.o): Update dependencies.
12623
12624 2010-09-01 Richard Guenther <rguenther@suse.de>
12625
12626 * alias.c (ao_ref_from_mem): Adjust.
12627 * builtins.c (get_object_alignment): Likewise.
12628 * cfgexpand.c (expand_debug_expr): Likewise.
12629 * gimple.c (get_base_address): Likewise.
12630 * tree-dfa.c (get_ref_base_and_extent): Likewise.
12631 (get_addr_base_and_unit_offset): Likewise. Fix for
12632 both TMR_SYMBOL and TMR_BASE being set.
12633 * tree-eh.c (tree_could_trap_p): Likewise.
12634 * gimplify.c (gimplify_expr): Do not attempt to gimplify
12635 TMR_SYMBOL. Always gimplify TMR_BASE.
12636 * tree-cfg.c (verify_types_in_gimple_reference): Verify
12637 TMR_BASE if there is a TMR_SYMBOL.
12638 * tree-pretty-print.c (dump_generic_node): Adjust.
12639 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
12640 (tree_mem_ref_addr): Likewise.
12641 (create_mem_ref_raw): Likewise.
12642 (move_fixed_address_to_symbol): Likewise.
12643 (create_mem_ref): Likewise.
12644 (dump_mem_address): Likewise.
12645 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
12646 Fix for both TMR_SYMBOL and TMR_BASE being set.
12647 (indirect_refs_may_alias_p): Likewise.
12648 * tree-ssa-operands.c (get_tmr_operands): Adjust.
12649 * tree.def (TARGET_MEM_REF): Adjust documentation.
12650
12651 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
12652
12653 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
12654 Rename from X86_TUNE_ADD_ESP_4.
12655 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
12656 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
12657 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
12658 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
12659 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
12660 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
12661 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
12662 * config/i386/i386.c (initial_ix86_tune_features)
12663 <X86_TUNE_SINGLE_POP>: Invert members.
12664 <X86_TUNE_DOUBLE_POP>: Ditto.
12665 <X86_TUNE_SINGLE_PUSH>: Ditto.
12666 <X86_TUNE_DOUBLE_PUSH>: Ditto.
12667 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
12668 No longer exported.
12669 (push peephole2 patterns): Macroize peepholes using P mode iterator.
12670 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
12671 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
12672 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
12673
12674 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
12675
12676 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
12677 a volatile LHS if the constructor has only one element.
12678
12679 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
12680
12681 PR bootstrap/45321
12682 * tree.c (stdarg_p): Make fntype parameter const.
12683 * tree.h (stdarg_p): Likewise.
12684 (function_args_iterator): Remove unused fntype field.
12685 (function_args_iter_init): Do not initialize fntype
12686 field. Make fntype parameter const.
12687
12688 2010-09-01 Richard Guenther <rguenther@suse.de>
12689
12690 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
12691 estimate.
12692 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
12693 (execute_vrp): Compute number of iteration estimates.
12694 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
12695 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
12696 * tree-data-ref.c (estimated_loop_iterations): Adjust.
12697 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
12698 Infer loop bounds from undefined behavior based on a new parameter.
12699 (estimate_numbers_of_iterations): Likewise.
12700 (scev_probably_wraps_p): Adjust.
12701 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
12702
12703 2010-09-01 Nick Clifton <nickc@redhat.com>
12704
12705 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
12706 where appropriate.
12707 (xstormy16_legitimate_address_p): Use true and false instead of 1
12708 and 0.
12709 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
12710 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
12711 magic constant 2.
12712 (xstormy16_expand_call): Fix comment at start of function.
12713
12714 2010-09-01 Nick Clifton <nickc@redhat.com>
12715
12716 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
12717 when pushing accumulator register.
12718 (rx_get_stack_layout): Always save call clobbered registers inside
12719 interrupt handlers.
12720 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
12721
12722 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
12723
12724 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
12725 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
12726
12727 * libgcc-std.ver (GCC_4.6.0): Define version.
12728
12729 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
12730
12731 * tree-nested.c (convert_all_function_calls): Iterate until after the
12732 sum of static chains in the nest doesn't change.
12733
12734 2010-08-31 Anatoly Sokolov <aesok@post.ru>
12735
12736 * config/m32c/m32c.c (classes_intersect): Remove.
12737 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
12738 reg_classes_intersect_p instead of classes_intersect.
12739 (class_can_hold_mode): Change arguments type from enum reg_class to
12740 reg_class_t. Use reg_class_contents instead of class_contents.
12741 (m32c_register_move_cost): Make static. Change arguments type from
12742 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
12743 classes_intersect. Use reg_class_contents instead of class_contents.
12744 (m32c_memory_move_cost): Make static. Change arguments type from
12745 enum reg_class to reg_class_t.
12746 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
12747 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
12748 * config/m32c/m32c-protos.h (m32c_register_move_cost,
12749 m32c_memory_move_cost): Remove.
12750
12751 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12752
12753 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
12754 (arm_function_arg): Delete.
12755 (arm_needs_doubleword_align): Take a const_tree.
12756 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12757 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
12758 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
12759 (arm_function_arg): Make static. Take a const_tree and a bool.
12760 (arm_function_arg_advance): Likewise.
12761 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12762
12763 2010-08-31 Andi Kleen <ak@linux.intel.com>
12764
12765 * common.opt (fwhopr=): Update for -fwhopr=jobserver
12766 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
12767 * lto-wrapper.c (run_gcc): Add jobserver mode.
12768 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
12769 argument.
12770
12771 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
12772
12773 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
12774 (popsi1): Ditto.
12775 (*popdi1_epilogue): Ditto.
12776 (*popsi1_epilogue): Ditto.
12777 (popsi, popdi peephole2 patterns): Update peepholes for changed
12778 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
12779
12780 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
12781 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
12782
12783 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
12784 (override_options): Do not initialize removed ix86_gen_pop1.
12785 (gen_pop): New static function.
12786 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
12787 (release_scratch_register_on_entry): Ditto.
12788 (ix86_restore_reg_using_pop): Ditto.
12789 (ix86_expand_epilogue): Ditto.
12790
12791 2010-08-31 Jakub Jelinek <jakub@redhat.com>
12792
12793 PR middle-end/45461
12794 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
12795
12796 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12797
12798 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
12799 semicolons.
12800
12801 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12802
12803 * doc/extend.texi: Fix documentation of the return value of
12804 __builtin_choose_expr.
12805
12806 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12807
12808 * config/v850/v850-protos.h (function_arg): Delete.
12809 * config/v850/v850.h (FUNCTION_ARG): Delete.
12810 (FUNCTION_ARG_ADVANCE): Move code to...
12811 * config/v850/v850.c (v850_function_arg_advance): ...here.
12812 (v850_function_arg): Make static. Take a const_tree and a bool.
12813 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12814
12815 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12816
12817 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
12818 these...
12819 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
12820 ...and these...
12821 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
12822 ..to here..
12823 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
12824 ...and here.
12825 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12826
12827 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
12828
12829 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
12830 Delete.
12831 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12832 * config/rx/rx.c (rx_function_arg_size): Make static.
12833 (rx_function_arg): Likewise.
12834 (rx_function_arg_advance): New function.
12835 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12836
12837 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
12838
12839 * config/arm/arm.c (arm_override_options): Remove superfluous test.
12840 Fix indentation.
12841
12842 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
12843
12844 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
12845 (dwarf2out_decl) <CONST_DECL>: Likewise.
12846
12847 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
12848
12849 Stack usage support
12850 * common.opt (-fstack-usage): New option.
12851 * doc/invoke.texi (Debugging options): Document it.
12852 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
12853 allocate_dynamic_stack_space.
12854 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
12855 and propagate it to allocate_dynamic_stack_space.
12856 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
12857 * calls.c (initialize_argument_information): Pass TRUE as 4th
12858 argument to allocate_dynamic_stack_space.
12859 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
12860 to 1 when pushing a variable-sized argument onto the stack. Pass
12861 TRUE as 4th argument to allocate_dynamic_stack_space.
12862 Update current_function_pushed_stack_size.
12863 (emit_library_call_value_1): Likewise.
12864 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
12865 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
12866 attempt to find an upper bound. Remove redundant code for the
12867 SETJMP_VIA_SAVE_AREA case.
12868 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
12869 * function.h (struct stack_usage): New structure.
12870 (current_function_static_stack_size): New macro.
12871 (current_function_dynamic_stack_size): Likewise.
12872 (current_function_pushed_stack_size): Likewise.
12873 (current_function_dynamic_alloc_count): Likewise.
12874 (current_function_has_unbounded_dynamic_stack_size): Likewise.
12875 (current_function_allocates_dynamic_stack_space): Likewise.
12876 (struct function): Add new field 'su'.
12877 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
12878 add the value of the dynamic offset to the dynamic stack usage.
12879 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
12880 for variable-sized objects.
12881 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
12882 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
12883 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
12884 BUILT_IN_ALLOCA for variable-sized objects.
12885 * output.h (output_stack_usage): Declare.
12886 * toplev.c (stack_usage_file): New file pointer.
12887 (output_stack_usage): New function.
12888 (open_auxiliary_file): Likewise.
12889 (lang_dependent_init): Open file if flag_stack_usage is set.
12890 (finalize): Close file if stack_usage_file is not null.
12891 * tree.h (ALLOCA_FOR_VAR_P): New macro.
12892 * config/alpha/alpha.c (compute_frame_size): New function.
12893 (alpha_expand_prologue): Use it.
12894 (alpha_start_function): Likewise.
12895 (alpha_expand_epilogue): Likewise. Set stack usage info.
12896 * config/i386/i386.c (ix86_expand_prologue): Likewise.
12897 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
12898 * config/mips/mips.c (mips_expand_prologue): Likewise.
12899 * config/pa/pa.c (hppa_expand_prologue): Likewise.
12900 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
12901 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
12902
12903 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
12904
12905 PR tree-optimization/45427
12906 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
12907 Handle the case that the exit is never taken correctly.
12908 (number_of_iterations_ne): Pass exit_must_be_taken to
12909 number_of_iterations_ne_max.
12910
12911 2010-08-30 Catherine Moore <clm@codesourcery.com>
12912
12913 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
12914 Infer -mdspr2 for the the 74K.
12915
12916 2010-08-30 Jakub Jelinek <jakub@redhat.com>
12917
12918 PR debug/45419
12919 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
12920
12921 PR middle-end/45423
12922 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
12923 and TRUTH_{AND,OR,XOR}_EXPR.
12924 * c-parser.c (c_parser_omp_atomic): Handle boolean
12925 {PRE,POST}_{INC,DEC}REMENT.
12926
12927 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
12928
12929 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
12930 (function_arg): Delete.
12931 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
12932 (FUNCTION_INCOMING_ARG): Delete.
12933 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
12934 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
12935 and a bool.
12936 (function_arg): Rename to...
12937 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
12938 a bool.
12939 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
12940 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
12941 (TARGET_FUNCTION_INCOMING_ARG): Define.
12942
12943 2010-08-30 Richard Guenther <rguenther@suse.de>
12944
12945 PR tree-optimization/21602
12946 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
12947 using points-to information.
12948
12949 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
12950
12951 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
12952
12953 2010-08-30 Richard Guenther <rguenther@suse.de>
12954
12955 PR tree-optimization/45449
12956 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
12957 variables.
12958
12959 2010-08-30 Joseph Myers <joseph@codesourcery.com>
12960
12961 * opts.h (CL_ERR_NEGATIVE): Define.
12962 * opts.c (unknown_option_callback): Don't postpone warnings for
12963 options marked with CL_ERR_NEGATIVE.
12964 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
12965 for negative versions of CL_REJECT_NEGATIVE options.
12966
12967 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
12968
12969 * config/i386/i386.md (zero_extendsidi2_1): Rename from
12970 zero_extendsidi2_32.
12971 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
12972 using SWI12 mode iterator.
12973 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
12974 to define_insn_and_split pattern.
12975 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
12976 using SWI24 mode iterator.
12977 (*zero_extendqi<mode>2_and): Macroize insn from
12978 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
12979 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
12980 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
12981 SWI24 mode iterator.
12982 (*zero_extendqi<mode>2_movzbl): Ditto from
12983 *zero_extendqi{hi,si}2_movzbl.
12984 (extendsidi2_1): Rename from extendsidi2_32.
12985 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
12986 SWI12 mode iterator.
12987
12988 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
12989
12990 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
12991 general purpose registers.
12992 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
12993 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
12994 with general purpose registers and memory operands. Add associated
12995 CCImode post-reload splitter.
12996 * config/ia64/div.md: Change BImode to CCImode throughout.
12997
12998 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
12999
13000 * config/ia64/ia64.md (cstorebi4): Fix thinko.
13001
13002 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
13003
13004 * config/picochip/picochip.c (reorder_var_tracking_notes): This
13005 function was dropping debug insns which caused PR45299.
13006
13007 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
13008
13009 * config/i386/sse.md (extsuffix): New code attribute.
13010 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
13011 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
13012 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
13013 and sse4_1_zero_extendv4qiv4si2.
13014 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
13015 and sse4_1_zero_extendv2qiv2di2.
13016 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
13017 and sse4_1_zero_extendv4hiv4si2.
13018 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
13019 and sse4_1_zero_extendv2hiv2di2.
13020 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
13021 and sse4_1_zero_extendv2siv2di2
13022
13023 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
13024 using any_extend code iterator.
13025 (*avx_<s>mulv8hi3_highpart): Macroize insn from
13026 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
13027 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
13028
13029 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
13030 gen_sse4_1_sign_extend* functions.
13031 (struct builtin_description bdesc_args): Ditto.
13032
13033 2010-08-27 Xinliang David Li <davidxl@google.com>
13034
13035 PR/45422
13036 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
13037 (iv_ca_set_no_cp): Update used inv expr count.
13038 (iv_ca_set_cp): Ditto.
13039 (iv_ca_new): Initialize new member.
13040 (iv_ca_free): Free memory.
13041
13042 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
13043
13044 * config/sh/sh-protos.h (sh_function_arg): Delete.
13045 (sh_function_arg_advance): Delete.
13046 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13047 (PASS_IN_REG_P): Eliminate cast.
13048 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
13049 const_tree and a bool.
13050 (sh_function_arg): Likewise.
13051 (sh_output_mi_thunk): Call sh_function_arg_advance) and
13052 sh_function_arg.
13053 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13054
13055 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
13056 Kaz Kojima <kkojima@gcc.gnu.org>
13057
13058 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
13059 when possible.
13060 (sh_expand_epilogue): Likewise.
13061 * config/sh/sh.md (movml_push_banked): New insn.
13062 (movml_pop_banked): Likewise.
13063
13064 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
13065
13066 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
13067 gen_regexp_oneof, gen_regexp_sequence): Use the string found
13068 in vector element 0 rather than the original string when there's
13069 only one element.
13070 (gen_regexp): Remove extra semicolon.
13071
13072 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
13073 thumb2_movsf_vfp): Set attribute "insn".
13074 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
13075 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
13076 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
13077 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
13078 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
13079 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
13080 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
13081 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
13082 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
13083 if_not_arith, if_arith_not, cond_move_not): Likewise.
13084
13085 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13086
13087 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
13088 New declaration.
13089 (rs6000_allocate_stack_temp): Ditto.
13090 (rs6000_expand_convert_si_to_sfdf): Ditto.
13091
13092 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
13093 line. Update the options set if power6 or power7 server/embedded
13094 type options are used. If we give a warning for no vsx under
13095 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
13096 (rs6000_allocate_stack_temp): New function to allocate a stack
13097 tempoary and adjust the address so it meets either REG+OFFSET or
13098 REG+REG addressing requirements.
13099 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
13100 that they can be used with the LFIWAX/LFIWZX instrucitons.
13101 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
13102 converting signed/unsigned SImode to either SFmode/DFmode.
13103
13104 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
13105 whether certain instructions can be generated.
13106 (TARGET_FCTIDZ): Ditto.
13107 (TARGET_STFIWX): Ditto.
13108 (TARGET_LFIWAX): Ditto.
13109 (TARGET_LFIWZX): Ditto.
13110 (TARGET_FCFIDS): Ditto.
13111 (TARGET_FCFIDU): Ditto.
13112 (TARGET_FCFIDUS): Ditto.
13113 (TARGET_FCTIDUZ): Ditto.
13114 (TARGET_FCTIWUZ): Ditto.
13115
13116 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
13117 (UNSPEC_FCTID): Ditto.
13118 (UNSPEC_LFIWAX): Ditto.
13119 (UNSPEC_LFIWZX): Ditto.
13120 (UNSPEC_FCTIWUZ): Ditto.
13121 (rreg): Use correct constraints.
13122 (SI_CONVERT_FP): New mode attribute for floating point conversion
13123 tests.
13124 (E500_CONVERT): Ditto.
13125 (lfiwax): New insns for converting from integer to floating point
13126 utilizing newer instructions. Attempt to optimize conversions
13127 that come from memory so that we don't load the value into a GPR,
13128 spill it to the stack and reload it into a FPR.
13129 (floatsi<mode>2_lfiwax): Ditto.
13130 (floatsi<mode>2_lfiwax_mem): Ditto.
13131 (floatsi<mode>2_lfiwax_mem2): Ditto.
13132 (lfiwzx): Ditto.
13133 (floatunssi<mode>2_lfiwzx): Ditto.
13134 (floatunssi<mode>2_lfiwzx_mem): Ditto.
13135 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
13136 (floatdidf2_mem): Ditto.
13137 (floatunsdidf2_fcfidu): Ditto.
13138 (floatunsdidf2_mem): Ditto.
13139 (floatunsdisf2): Ditto.
13140 (floatunsdisf2_fcfidus): Ditto.
13141 (floatunsdisf2_mem): Ditto.
13142 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
13143 Use FCFID on 32-bit hosts that support it.
13144 (floatsidf2_internal): Ditto.
13145 (floatunssisf2): Ditto.
13146 (floatunssidf2): Ditto.
13147 (floatunssidf2_internal): Ditto.
13148 (floatsisf2): Ditto.
13149 (floatdidf2): Ditto.
13150 (floatdidf2_fpr): Ditto.
13151 (floatunsdidf2): Ditto.
13152 (floatdisf2): Ditto.
13153 (floatdisf2_fcfids): Ditto.
13154 (floatdisf2_internal1): Ditto.
13155 (fixuns_truncsfsi2): Delete, merge into common pattern for both
13156 SF/DF. Add power7 support.
13157 (fix_truncsfsi2): Ditto.
13158 (fixuns_truncdfsi2): Ditto.
13159 (fixuns_truncdfdi2): Ditto.
13160 (fix_truncdfsi2): Ditto.
13161 (fix_truncdfsi2_internal): Ditto.
13162 (fix_truncdfsi2_internal_gfxopt): Ditto.
13163 (fix_truncdfsi2_mfpgpr): Ditto.
13164 (fctiwz): Ditto.
13165 (btruncdf2): Ditto.
13166 (btruncdf2_fpr): Ditto.
13167 (btructsf2): Ditto.
13168 (ceildf2): Ditto.
13169 (ceildf2_fpr): Ditto.
13170 (ceilsf2): Ditto.
13171 (floordf2): Ditto.
13172 (floordf2_fpr): Ditto.
13173 (floorsf2): Ditto.
13174 (rounddf2): Ditto.
13175 (rounddf2_fpr): Ditto.
13176 (roundsf2): Ditto.
13177 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
13178 (fix_trunc<mode>di2): Ditto.
13179 (fixuns_trunc<mode>si2): Ditto.
13180 (fixuns_trunc<mode>di2): Ditto.
13181 (fctiwz_<mode>): Ditto.
13182 (btrunc<mode>2): Ditto.
13183 (btrunc<mode>2_fpr): Ditto.
13184 (ceil<mode>2): Ditto.
13185 (ceil<mode>2_fpr): Ditto.
13186 (floor<mode>2): Ditto.
13187 (float<mode>2_fpr): Ditto.
13188 (round<mode>2): Ditto.
13189 (round<mode>2_fpr): Ditto.
13190 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
13191 (fixuns_trunc<mode>si2_stfiwx): Ditto.
13192 (fix_truncdfsi2_internal): Ditto.
13193 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
13194 converted value on stack, loaded into GPR, and then stored into
13195 the final destination.
13196 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
13197 FCTIDZ.
13198 (lrint<mode>di2): New insn, provide the lrint builtin functions.
13199 (ftruncdf2): Delete, unused.
13200 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
13201
13202 * config/rs6000/vsx.md (toplevel): Update copyright year.
13203 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
13204 (VSr3): Ditto.
13205
13206 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
13207 Jeremie Salvucci <jeremie.salvucci@free.fr>
13208
13209 * gengtype.c (output_type_enum): Test the right union member.
13210
13211 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
13212
13213 PR target/41484
13214 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
13215 operands for operand 1.
13216 (sse4_1_extendv4qiv4si2): Ditto.
13217 (sse4_1_extendv2qiv2di2): Ditto.
13218 (sse4_1_extendv4hiv4si2): Ditto.
13219 (sse4_1_extendv2hiv2di2): Ditto.
13220 (sse4_1_extendv2siv2di2): Ditto.
13221 (sse4_1_zero_extendv8qiv8hi2): Ditto.
13222 (sse4_1_zero_extendv4qiv4si2): Ditto.
13223 (sse4_1_zero_extendv2qiv2di2): Ditto.
13224 (sse4_1_zero_extendv4hiv4si2): Ditto.
13225 (sse4_1_zero_extendv2hiv2di2): Ditto.
13226 (sse4_1_zero_extendv2siv2di2): Ditto.
13227 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
13228 (*sse4_1_extendv4qiv4si2): Ditto.
13229 (*sse4_1_extendv2qiv2di2): Ditto.
13230 (*sse4_1_extendv4hiv4si2): Ditto.
13231 (*sse4_1_extendv2hiv2di2): Ditto.
13232 (*sse4_1_extendv2siv2di2): Ditto.
13233 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
13234 (*sse4_1_zero_extendv4qiv4si2): Ditto.
13235 (*sse4_1_zero_extendv2qiv2di2): Ditto.
13236 (*sse4_1_zero_extendv4hiv4si2): Ditto.
13237 (*sse4_1_zero_extendv2hiv2di2): Ditto.
13238 (*sse4_1_zero_extendv2siv2di2): Ditto.
13239
13240 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
13241
13242 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
13243 (mips_function_arg): Delete.
13244 (mips_function_arg_boundary): Take a const_tree.
13245 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
13246 (mips_arg_info): Likewise.
13247 (mips_setup_incoming_varargs): Call mips_function_arg_advance
13248 instead of FUNCTION_ARG_ADVANCE.
13249 (mips_function_arg_advance): Adjust prototype. Make static.
13250 (mips_function_arg): Likewise.
13251 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13252 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
13253
13254 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
13255
13256 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
13257 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
13258 (function_arg): Delete.
13259 (function_arg_boundary): Take a const_tree.
13260 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
13261 (rs6000_spe_function_arg): Likewise.
13262 (rs6000_parm_start): Likewise.
13263 (rs6000_arg_size): Likewise.
13264 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
13265 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
13266 (rs6000_mixed_function_arg): Likewise.
13267 (function_arg): Rename to...
13268 (rs6000_function_arg): ...this.
13269 (function_arg_advance): Rename to...
13270 (rs6000_function_arg_advance_1): ...this
13271 (rs6000_function_arg_advance): New function. Call it.
13272 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
13273 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
13274 (rs6000_function_value): Likewise.
13275 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
13276
13277 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13278
13279 * config/arm/arm.md (enabled): Test the value of arch_enabled
13280 rather than just using it.
13281
13282 2010-08-27 Olivier Hainque <hainque@adacore.com>
13283 Eric Botcazou <ebotcazou@adacore.com>
13284
13285 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
13286 cover all the possible offsets from this base.
13287 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
13288
13289 2010-08-26 Jakub Jelinek <jakub@redhat.com>
13290
13291 PR tree-optimization/44485
13292 * calls.c (flags_from_decl_or_type): For const or pure
13293 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
13294 together with ECF_CONST resp. ECF_PURE.
13295 * builtins.c (expand_builtin): Use flags_from_decl_or_type
13296 instead of querying flags directly.
13297 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
13298 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
13299
13300 2010-08-26 Richard Guenther <rguenther@suse.de>
13301
13302 PR tree-optimization/45255
13303 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
13304 and externals are also invariant.
13305
13306 2010-08-25 Jakub Jelinek <jakub@redhat.com>
13307
13308 PR rtl-optimization/44858
13309 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
13310 newi2pat, make sure they don't affect newpat.
13311
13312 PR rtl-optimization/45400
13313 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
13314 SUBREG_REG if both modes are of MODE_INT class.
13315
13316 2010-08-25 Julian Brown <julian@codesourcery.com>
13317
13318 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
13319 * config/arm/arm.md (generic_sched): No for Cortex-A5.
13320 (generic_vfp): Likewise.
13321 (cortex-a5.md): Include.
13322 * config/arm/cortex-a5.md: New.
13323
13324 2010-08-25 Richard Guenther <rguenther@suse.de>
13325
13326 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
13327 * gimple.c (gimple_get_alias_set): Remove special handling
13328 for pointers.
13329
13330 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
13331
13332 PR middle-end/45355
13333 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
13334 dead_or_set_p when computing i0_feeds_i2_n.
13335
13336 * combine.c (find_split_point): Undo canonicalization of multiply-add
13337 to (minus x (mult)) when it seems likely that this will increase the
13338 chances of a split.
13339
13340 2010-08-25 Richard Guenther <rguenther@suse.de>
13341
13342 PR lto/44562
13343 * lto-streamer.c (lto_record_common_node): Do not mess with
13344 TYPE_CANONICAL when not in lto.
13345 * gimple.c (gimple_register_type): Likewise.
13346
13347 2010-08-25 Richard Guenther <rguenther@suse.de>
13348
13349 PR tree-optimization/45316
13350 * tree-ssa-pre.c (eliminate): Properly clean EH info.
13351
13352 2010-08-25 Richard Guenther <rguenther@suse.de>
13353
13354 PR tree-optimization/45393
13355 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
13356 and clean EH info. Avoid SSA update.
13357 (execute_cse_sincos): Cleanup the CFG if it has changed.
13358
13359 2010-08-25 Richard Guenther <rguenther@suse.de>
13360
13361 PR middle-end/45379
13362 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
13363 TARGET_MEM_REF in alignment computation.
13364
13365 2010-08-25 Jakub Jelinek <jakub@redhat.com>
13366
13367 PR tree-optimization/45059
13368 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
13369 type conversions from newop{1,2}. Assert t is a comparison and
13370 newop{1,2} after the stripping are gimple vals.
13371
13372 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
13373
13374 * config/arm/iterators.md (VU, SE, V_widen_l): New.
13375 (V_unpack, US): New.
13376 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
13377 (vec_unpack<US>_lo_<mode>): Likewise.
13378 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
13379 (neon_vec_unpack<US>_lo_<mode>): Likewise.
13380 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
13381 (vec_widen_<US>mult_hi_<mode>): Likewise.
13382 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
13383 (neon_vec_<US>mult_hi_<mode>"): Likewise.
13384 (neon_unpack<US>_<mode>): Widening move intermediate step for
13385 vectorizing without -mvectorize-with-neon-quad.
13386 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
13387 for vectorizing without -mvectorize-with-neon-quad.
13388 * config/arm/predicates.md (vect_par_constant_high): Check for
13389 high-half lanes of a vector.
13390 (vect_par_constant_low): Check for low-half lanes of a vector.
13391
13392 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
13393
13394 * tree-if-conv.c (struct ifc_dr): New.
13395 (IFC_DR): New.
13396 (DR_WRITTEN_AT_LEAST_ONCE): New.
13397 (DR_RW_UNCONDITIONALLY): New.
13398 (memref_read_or_written_unconditionally): Use the cached values
13399 when possible.
13400 (write_memref_written_at_least_once): Same.
13401 (if_convertible_loop_p): Initialize and free DR->aux fields.
13402
13403 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
13404
13405 * gimple.c (gimple_could_trap_p_1): Not static anymore.
13406 Pass an extra bool parameter include_mem.
13407 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
13408 (gimple_assign_rhs_could_trap_p): Same.
13409 * gimple.h (gimple_could_trap_p_1): Declared.
13410 * tree-data-ref.h (same_data_refs_base_objects): New.
13411 (same_data_refs): New.
13412 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
13413 (write_memrefs_written_at_least_once): New.
13414 (ifcvt_memrefs_wont_trap): New.
13415 (operations_could_trap): New.
13416 (ifcvt_could_trap_p): New.
13417 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
13418 Gets a vector of data refs.
13419 (if_convertible_stmt_p): Same.
13420 (if_convertible_loop_p_1): New.
13421 (if_convertible_loop_p): Call if_convertible_loop_p_1.
13422
13423 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
13424
13425 * common.opt (ftree-loop-if-convert-stores): New flag.
13426 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
13427 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
13428 the created statement before GSI.
13429 (if_convertible_phi_p): Allow virtual phi nodes when
13430 flag_loop_if_convert_stores is set.
13431 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
13432 Do not handle types that do not match is_gimple_reg_type.
13433 Remove loop and bb parameters. Call gimple_could_trap_p instead of
13434 when flag_loop_if_convert_stores is set, as LHS can contain
13435 memory refs.
13436 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
13437 to if_convertible_gimple_assign_stmt_p.
13438 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
13439 (replace_phi_with_cond_gimple_assign_stmt): Renamed
13440 predicate_scalar_phi. Do not handle virtual phi nodes.
13441 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
13442 Call predicate_scalar_phi.
13443 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
13444 just after the labels for flag_loop_if_convert_stores, otherwise
13445 insert the predicate in the end of the BB.
13446 (predicate_mem_writes): New.
13447 (combine_blocks): Call predicate_all_scalar_phis. When
13448 flag_loop_if_convert_stores is set, call predicate_mem_writes.
13449 (tree_if_conversion): Call mark_sym_for_renaming when
13450 flag_loop_if_convert_stores is set.
13451 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
13452 flag_loop_if_convert_stores is set.
13453
13454 2010-08-24 Anatoly Sokolov <aesok@post.ru>
13455
13456 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
13457 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
13458 (pa_function_value): Make static.
13459 (override_options): Rename to...
13460 (pa_option_override): ...this. Make static.
13461 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
13462 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
13463 TARGET_OPTION_OVERRIDE): Define.
13464 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
13465 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
13466 Remove.
13467 * config/pa/pa-protos.h (override_options): Remove.
13468
13469 2010-08-24 Richard Guenther <rguenther@suse.de>
13470
13471 PR middle-end/45379
13472 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
13473 if addr->index is NULL or zero.
13474 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
13475 TARGET_MEM_REF more properly.
13476 (indirect_ref_may_alias_decl_p): Likewise.
13477 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
13478 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
13479
13480 2010-08-23 Anatoly Sokolov <aesok@post.ru>
13481
13482 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
13483 (m32c_override_options): Rename to...
13484 (m32c_option_override): ...this. Make static.
13485 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
13486 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
13487 Remove.
13488 * config/m32c/m32c-protos.h (m32c_override_options,
13489 m32c_function_value_regno_p): Remove.
13490
13491 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
13492
13493 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
13494 Fix a typo in a previous commit.
13495
13496 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
13497
13498 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
13499 Pre-initialize innerloop_iters to one.
13500
13501 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
13502
13503 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
13504 existing static function global.
13505
13506 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
13507 is changed to global.
13508
13509 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
13510 may_be_nonaddressable_p on base, and don't collect this reference
13511 if the address of the base could not be taken.
13512
13513 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
13514
13515 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
13516 enable the compiler to autovectorize mathmetical functions for
13517 power7 using the Mathematical Acceleration Subsystem library.
13518
13519 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
13520 handle which vector math library we have.
13521 (rs6000_override_options): Add -mveclibabi=mass support.
13522 (rs6000_builtin_vectorized_libmass): New function to handle auto
13523 vectorizing math functions that are in the MASS library.
13524 (rs6000_builtin_vectorized_function): Call it.
13525
13526 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
13527 -mveclibabi=mass.
13528
13529 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13530
13531 PR boehm-gc/34544
13532 * gthr-posix.h (__gthread_active_init): Delete.
13533 (__gthread_active_p): Do activity check here.
13534 Don't include errno.h on hppa-hpux. Update comment.
13535 * gthr-posix95.h (__gthread_active_init): Delete.
13536 (__gthread_active_p): Do activity check here.
13537 Don't include errno.h on hppa-hpux. Update comment.
13538 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
13539 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
13540 add -lpthread when -mt or -pthread is specified.
13541 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
13542 (LINK_GCC_C_SEQUENCE_SPEC): Define.
13543 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
13544 (stublib.c, pthread_default_stacksize_np-stub.o,
13545 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
13546 $(T)libgcc_stub.a): Add methods.
13547 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
13548 (stublib.c, pthread_default_stacksize_np-stub.o,
13549 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
13550 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
13551 pthread_mutex_unlock): New stubs.
13552
13553 2010-08-22 Joseph Myers <joseph@codesourcery.com>
13554
13555 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
13556 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
13557 options.
13558 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
13559 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
13560 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
13561 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
13562 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
13563 "-l".
13564 * cppspec.c: Include opts.h.
13565 (lang_specific_driver): Use cl_decoded_option structures.
13566 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
13567 * doc/tm.texi: Regenerate.
13568 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
13569 (driver_handle_option): Allow driver options needing no special
13570 processing.
13571 (process_command): Decode options before call to
13572 lang_specific_driver. Pass decoded options to
13573 lang_specific_driver.
13574 * gcc.h (lang_specific_driver): Update prototype.
13575 * gccspec.c: Include opts.h.
13576 (lang_specific_driver): Use cl_decoded_option structures.
13577 * opts-common.c (option_ok_for_language, generate_option,
13578 generate_option_input_file): New.
13579 (decode_cmdline_option): Use option_ok_for_language.
13580 (decode_cmdline_options_to_array): Use generate_option_input_file.
13581 (handle_generated_option): Use generate_option.
13582 * opts.h (generate_option, generate_option_input_file): Declare.
13583
13584 2010-08-22 Anatoly Sokolov <aesok@post.ru>
13585
13586 * config/mips/mips.c (mips_override_options): Rename to...
13587 (mips_option_override): ...this. Make static.
13588 (TARGET_OPTION_OVERRIDE): Define.
13589 (mips_in_small_data_p): Update comment.
13590 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
13591 (FIXED_REGISTERS): Update comment.
13592 * config/mips/mips-protos.h (mips_override_options): Remove.
13593
13594 2010-08-21 Olivier Hainque <hainque@adacore.com>
13595
13596 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
13597
13598 2010-08-21 Olivier Hainque <hainque@adacore.com>
13599
13600 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
13601 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
13602
13603 2010-08-20 Jan Hubicka <jh@suse.cz>
13604
13605 * tree-pass.h (pass_ipa_cdtor_merge): New function.
13606 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
13607 heap allocated.
13608 (record_cdtor_fn): Move to ipa.c; do not test for
13609 have_ctors_dtors.
13610 (build_cdtor): Move to ipa.c; add code avoiding construction
13611 when target have ctors/dtors and there is only one ctor/dtor at given
13612 priority.
13613 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
13614 sort; reverse order of constructors.
13615 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
13616 (cgraph_finalize_function): Do not call record_cdtor_fn.
13617 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
13618 (cgraph_build_static_cdtor): Move to ipa.c.
13619 * ipa.c: Include target.h and tree-iterator.h.
13620 (cgraph_build_static_cdtor, static_ctors, static_dtors,
13621 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
13622 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
13623 pass_ipa_cdtor_merge): New.
13624 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
13625 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
13626 bounds access.
13627
13628 2010-08-20 Jan Hubicka <jh@suse.cz>
13629
13630 PR c++/45307
13631 PR c++/17736
13632 * cgraph.h (cgraph_only_called_directly_p,
13633 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
13634 static cdtors.
13635 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
13636 are not needed.
13637 (cgraph_finalize_function): Static cdtors are reachable.
13638 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
13639
13640 2010-08-20 Jan Hubicka <jh@suse.cz>
13641
13642 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
13643 flag_wpa.
13644 * lto-streamer-out.c (lto_output): Likewise.
13645 * passes.c (ipa_write_optimization_summaries): Initialize statement
13646 uids.
13647
13648 2010-08-20 Olivier Hainque <hainque@adacore.com>
13649
13650 * tree.h (alias_diag_flags): New enum.
13651 (alias_pair): Add an 'emitted_diags' field.
13652 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
13653 (assemble_alias): Initialize emitted_diags of new pairs.
13654
13655 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
13656
13657 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
13658 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13659 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
13660 (STACK_CHECK_PROTECT): Define.
13661 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
13662 (output_probe_stack_range): Likewise.
13663 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
13664 builtin stack checking is enabled.
13665 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
13666 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
13667 (probe_stack_range): New insn.
13668
13669 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
13670
13671 PR target/45336
13672 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
13673 short first.
13674
13675 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
13676 char first.
13677
13678 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13679
13680 PR target/45336
13681 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
13682 to cover zero extension into 64-bit register.
13683 (*sse2_pextrw): Likewise.
13684 (*sse4_1_pextrd_zext): New insn.
13685
13686 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
13687
13688 revert r163410, partially revert r163267.
13689 * config/rs6000/darwin.h (LIB_SPEC): Remove.
13690 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
13691 Darwin versions.
13692
13693 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13694
13695 PR middle-end/44974
13696 * builtins.c (expand_builtin): Don't optimize away
13697 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
13698
13699 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
13700
13701 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
13702 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
13703 alternative 1 of operand 2.
13704
13705 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13706 Paolo Bonzini <bonzini@gnu.org>
13707
13708 * simplify-rtx.c (simplify_unary_operation_1): Optimize
13709 (sign_extend (zero_extend (...)) and
13710 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
13711
13712 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13713
13714 PR rtl-optimization/45353
13715 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
13716 after bb_note is a BARRIER.
13717
13718 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
13719
13720 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
13721 linking libgcc.a.
13722
13723 2010-08-20 Jakub Jelinek <jakub@redhat.com>
13724 Michael Matz <matz@suse.de>
13725
13726 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
13727
13728 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
13729
13730 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
13731 (ggc_mark_roots): ...here.
13732
13733 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
13734
13735 * vec.h (FOR_EACH_VEC_ELT): Define.
13736 * c-decl.c: Use it.
13737 * cfgloop.c: Likewise.
13738 * cfgloopmanip.c: Likewise.
13739 * cgraph.c: Likewise.
13740 * cgraphunit.c: Likewise.
13741 * combine.c: Likewise.
13742 * config/bfin/bfin.c: Likewise.
13743 * config/mips/mips.c: Likewise.
13744 * config/rs6000/rs6000.c: Likewise.
13745 * dbxout.c: Likewise.
13746 * df-scan.c: Likewise.
13747 * dominance.c: Likewise.
13748 * dse.c: Likewise.
13749 * dwarf2out.c: Likewise.
13750 * except.c: Likewise.
13751 * expr.c: Likewise.
13752 * function.c: Likewise.
13753 * gcse.c: Likewise.
13754 * genattr.c: Likewise.
13755 * ggc-common.c: Likewise.
13756 * gimplify.c: Likewise.
13757 * graphite-blocking.c: Likewise.
13758 * graphite-clast-to-gimple.c: Likewise.
13759 * graphite-dependences.c: Likewise.
13760 * graphite-interchange.c: Likewise.
13761 * graphite-poly.c: Likewise.
13762 * graphite-scop-detection.c: Likewise.
13763 * graphite-sese-to-poly.c: Likewise.
13764 * graphite.c: Likewise.
13765 * haifa-sched.c: Likewise.
13766 * ifcvt.c: Likewise.
13767 * implicit-zee.c: Likewise.
13768 * ipa-prop.c: Likewise.
13769 * ipa-struct-reorg.c: Likewise.
13770 * ipa.c: Likewise.
13771 * ira-build.c: Likewise.
13772 * ira-color.c: Likewise.
13773 * ira-emit.c: Likewise.
13774 * lambda-code.c: Likewise.
13775 * loop-invariant.c: Likewise.
13776 * loop-unroll.c: Likewise.
13777 * lower-subreg.c: Likewise.
13778 * lto-cgraph.c: Likewise.
13779 * lto-opts.c: Likewise.
13780 * lto-streamer-in.c: Likewise.
13781 * lto-streamer-out.c: Likewise.
13782 * lto-streamer.c: Likewise.
13783 * lto-symtab.c: Likewise.
13784 * matrix-reorg.c: Likewise.
13785 * opts.c: Likewise.
13786 * predict.c: Likewise.
13787 * print-tree.c: Likewise.
13788 * sdbout.c: Likewise.
13789 * sel-sched-dump.c: Likewise.
13790 * sel-sched-ir.c: Likewise.
13791 * sel-sched.c: Likewise.
13792 * sese.c: Likewise.
13793 * stor-layout.c: Likewise.
13794 * tree-cfg.c: Likewise.
13795 * tree-cfgcleanup.c: Likewise.
13796 * tree-chrec.c: Likewise.
13797 * tree-data-ref.c: Likewise.
13798 * tree-emutls.c: Likewise.
13799 * tree-inline.c: Likewise.
13800 * tree-into-ssa.c: Likewise.
13801 * tree-loop-distribution.c: Likewise.
13802 * tree-loop-linear.c: Likewise.
13803 * tree-mudflap.c: Likewise.
13804 * tree-outof-ssa.c: Likewise.
13805 * tree-parloops.c: Likewise.
13806 * tree-predcom.c: Likewise.
13807 * tree-pretty-print.c: Likewise.
13808 * tree-scalar-evolution.c: Likewise.
13809 * tree-ssa-live.c: Likewise.
13810 * tree-ssa-loop-im.c: Likewise.
13811 * tree-ssa-loop-ivcanon.c: Likewise.
13812 * tree-ssa-loop-ivopts.c: Likewise.
13813 * tree-ssa-loop-manip.c: Likewise.
13814 * tree-ssa-loop-niter.c: Likewise.
13815 * tree-ssa-loop-prefetch.c: Likewise.
13816 * tree-ssa-phiprop.c: Likewise.
13817 * tree-ssa-pre.c: Likewise.
13818 * tree-ssa-reassoc.c: Likewise.
13819 * tree-ssa-sccvn.c: Likewise.
13820 * tree-ssa-structalias.c: Likewise.
13821 * tree-ssa.c: Likewise.
13822 * tree-vect-data-refs.c: Likewise.
13823 * tree-vect-loop-manip.c: Likewise.
13824 * tree-vect-loop.c: Likewise.
13825 * tree-vect-patterns.c: Likewise.
13826 * tree-vect-slp.c: Likewise.
13827 * tree-vect-stmts.c: Likewise.
13828 * tree-vrp.c: Likewise.
13829 * tree.c: Likewise.
13830 * value-prof.c: Likewise.
13831 * var-tracking.c: Likewise.
13832 * varasm.c: Likewise.
13833 * vmsdbgout.c: Likewise.
13834
13835 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
13836 Richard Guenther <richard.guenther@gmail.com>
13837
13838 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
13839 copy the src value and return a copy.
13840 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
13841 (C++ Volatiles): Adjust to describe C++ semantics only.
13842
13843 2010-08-20 Joseph Myers <joseph@codesourcery.com>
13844
13845 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
13846 be zero or nonzero.
13847 * doc/tm.texi: Regenerate.
13848 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
13849 * df-scan.c (df_get_exit_block_use_set), reginfo.c
13850 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
13851 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
13852 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
13853 to 1.
13854
13855 2010-08-20 Olivier Hainque <hainque@adacore.com>
13856
13857 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
13858 an extra nop past a sibling call at the very end.
13859
13860 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
13861
13862 PR bootstrap/45350
13863 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
13864 a comment.
13865
13866 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
13867
13868 * target.def (function_arg, function_incoming_arg): Remove const
13869 qualifier on CUMULATIVE_ARGS parameter.
13870 * targhooks.h (default_function_arg, default_function_incoming_arg):
13871 Likewise.
13872 * targhooks.c (default_function_arg, default_function_incoming_arg):
13873 Likewise.
13874 * config/i386/i386.c (ix86_function_arg): Likewise.
13875
13876 2010-08-19 Jakub Jelinek <jakub@redhat.com>
13877
13878 PR target/45336
13879 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
13880 SIGN_EXTENDs or ZERO_EXTENDs.
13881
13882 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
13883
13884 PR target/42172
13885 * combine.c (combine_validate_cost): New arg I0. All callers changed.
13886 Take its cost into account if nonnull.
13887 (insn_a_feeds_b): New static function.
13888 (combine_instructions): Look for four-insn combinations.
13889 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
13890 them into account when computing all_adjacent and looking for other
13891 uses.
13892 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
13893 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
13894 (try_combine): New arg I0. Handle four-insn combinations.
13895 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
13896 like ELIM_I1.
13897
13898 2010-08-19 Jason Merrill <jason@redhat.com>
13899
13900 PR c++/45307
13901 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
13902 if ctor is empty.
13903 (gimplify_modify_expr_rhs): Adjust.
13904
13905 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
13906
13907 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
13908 bitmap_bit_p.
13909 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
13910 * dominance.c (iterate_fix_dominators): Likewise.
13911 * dse.c (set_usage_bits): Likewise.
13912 (set_position_unneeded, record_store): Likewise.
13913 * gimple-fold.c (get_maxval_strlen): Likewise.
13914 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
13915 * ipa-inline.c (update_caller_keys): Likewise.
13916 * ipa-split.c (verify_non_ssa_vars): Likewise.
13917 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
13918 (close_type_exposed_parameter, close_type_full_escape): Likewise.
13919 (close_addressof_down): Likewise.
13920 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
13921 (setup_allocno_left_conflicts_size): Likewise.
13922 (ira_reassign_conflict_allocnos): Likewise.
13923 (ira_reassign_pseudos): Likewise.
13924 * ira-emit.c (change_loop): Likewise.
13925 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
13926 * lto-streamer-out.c (write_symbol): Likewise.
13927 * predict.c (expr_expected_value_1): Likewise.
13928 * regstat.c (regstat_bb_compute_ri): Likewise.
13929 * sel-sched.c (create_block_for_bookkeeping): Likewise.
13930 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
13931 * stmt.c (expand_case): Likewise.
13932 * tree-eh.c (emit_eh_dispatch): Likewise.
13933 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
13934 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
13935 Likewise.
13936 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
13937 (rdg_build_components): Likewise.
13938 * tree-object-size.c (collect_object_sizes_for): Likewise.
13939 * tree-sra.c (convert_callers): Likewise.
13940 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
13941 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
13942 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
13943
13944 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
13945
13946 * config/i386/i386.md (*lea_1): Use P mode iterator.
13947 (lea add splitter): Also handle DImode operands.
13948 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
13949 predicate. Do not use ix86_lea_for_add_ok.
13950 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
13951 (lea ashift splitter): Also handle DImode operands.
13952 (DImode lea ashift splitter): Remove splitter.
13953
13954 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
13955
13956 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
13957 ix86_binary_operator_ok.
13958
13959 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
13960
13961 PR rtl-optimization/44691
13962 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
13963 is not a register.
13964
13965 2010-08-19 Ian Bolton <ian.bolton@arm.com>
13966
13967 PR target/45070
13968 * config/arm/arm.c (arm_output_epilogue): Ensure that return
13969 value of size 1-3 is handled correctly.
13970
13971 2010-08-19 Ian Bolton <ian.bolton@arm.com>
13972
13973 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
13974 type for the conditional has wide enough range.
13975
13976 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
13977
13978 PR target/45327
13979 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
13980 ix86_binary_operator_ok.
13981
13982 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
13983
13984 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
13985 <default>: Swap operands 1 and 2 for alternative 2 to use existing
13986 code to output insn mnemonic. Fix comment.
13987 (*addsi_1_zext): Add r-r-0 alternative 1.
13988 <TYPE_LEA>: Split insn to lea.
13989 <default>: Handle alternative 1.
13990 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
13991 multi-level if_then_else RTX to set "type" attribute.
13992 <default>: Handle alternative 2.
13993 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
13994 Use cond RTX instead of multi-level if_then_else RTX to set
13995 "type" attribute.
13996 <default>: Handle alternatives 2 and 4.
13997 (lea splitters): Update calls to ix86_lea_for_add_ok.
13998
13999 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
14000 argument.
14001 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
14002
14003 2010-08-18 Richard Guenther <rguenther@suse.de>
14004
14005 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
14006 use operand helpers.
14007
14008 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
14009
14010 PR middle-end/45292
14011 * optabs.c (expand_bool_compare_and_swap): Expand pending
14012 pops before trying the optab.
14013
14014 2010-08-18 Yao Qi <yao@codesourcery.com>
14015
14016 PR target/45094
14017 * config/arm/arm.c (output_move_double): Fix typo generating
14018 instructions ('ldr'->'str').
14019
14020 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
14021
14022 PR rtl-optimization/42575
14023 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
14024 live ranges.
14025
14026 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
14027
14028 * config/arm/arm-protos.h (arm_expand_sync): New.
14029 (arm_output_memory_barrier, arm_output_sync_insn): New.
14030 (arm_sync_loop_insns): New.
14031 * config/arm/arm.c (FL_ARCH7): New.
14032 (FL_FOR_ARCH7): Include FL_ARCH7.
14033 (arm_arch7): New.
14034 (arm_print_operand): Support %C markup.
14035 (arm_legitimize_sync_memory): New.
14036 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
14037 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
14038 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
14039 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
14040 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
14041 (arm_process_output_sync_insn, arm_output_sync_insn): New.
14042 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
14043 * config/arm/arm.h (struct arm_sync_generator): New.
14044 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
14045 (TARGET_HAVE_MEMORY_BARRIER): New.
14046 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
14047 * config/arm/arm.md: Include sync.md.
14048 (UNSPEC_MEMORY_BARRIER): New.
14049 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
14050 (VUNSPEC_SYNC_OP):New.
14051 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
14052 (sync_result, sync_memory, sync_required_value): New attributes.
14053 (sync_new_value, sync_t1, sync_t2): Likewise.
14054 (sync_release_barrier, sync_op): Likewise.
14055 (length): Add logic to length attribute defintion to call
14056 arm_sync_loop_insns when appropriate.
14057 * config/arm/sync.md: New file.
14058
14059 2010-08-17 Jakub Jelinek <jakub@redhat.com>
14060
14061 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
14062 ENABLE_TREE_CHECKING.
14063 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
14064 and GCC >= 4.3.
14065
14066 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
14067
14068 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
14069 or optimizing for size, always avoid lea if possible.
14070
14071 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
14072
14073 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
14074
14075 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
14076 Dunmmy function with NULL return unless the target is
14077 OSX >= 10.6 (Darwin10).
14078
14079 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
14080
14081 * gcc.c (spec_function): Add remove-outfile.
14082 (remove_outfile_spec_function): New function.
14083 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
14084 * invoke.texi (replace-outfile): Document.
14085
14086 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
14087
14088 PR target/45296
14089 * reginfo.c (globalize_reg): Reject stack registers.
14090
14091 2010-08-17 Richard Guenther <rguenther@suse.de>
14092
14093 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
14094 list of conditional equivalences.
14095 (free_all_edge_infos): Adjust.
14096 (record_equivalences_from_incoming_edge): Likewise.
14097 (record_cond): Likewise.
14098 (build_and_record_new_cond): Likewise.
14099 (record_conditions): Likewise.
14100 (dom_opt_leave_block): Likewise.
14101
14102 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
14103
14104 * doc/invoke.texi (ms-extension): Add documentation.
14105
14106 2010-08-17 Richard Guenther <rguenther@suse.de>
14107
14108 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
14109
14110 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
14111
14112 PR c/40563
14113 * c-decl.c (diagnose_uninitialized_cst_member): New function.
14114 (finish_decl): Use it to issue a -Wc++-compat warning about
14115 uninitialized const field in struct or union.
14116
14117 (finish_struct): Use strip_array_types.
14118
14119 2010-08-17 Jakub Jelinek <jakub@redhat.com>
14120
14121 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
14122 functions.
14123 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
14124 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
14125 call block_nreverse here.
14126 (blocks_nreverse): Rename decl temporary to block.
14127
14128 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
14129
14130 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
14131 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
14132 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
14133 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
14134 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
14135 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
14136 thumb2_iorsi3): Delete.
14137 (orsi_notsi_si): No longer a named pattern.
14138 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
14139 * config/arm/predicates.md (shift_amount_operand): New.
14140 (mult_operator): New.
14141 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
14142 attr enabled): New.
14143 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
14144 arch matches t2.
14145 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
14146 (not_shiftsi_compare0): Likewise, renamed from
14147 arm_notsi_shiftsi_compare0.
14148 (not_shiftsi_compare0_scratch): Likweise, renamed from
14149 arm_notsi_shiftsi_compare0_scratch.
14150 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
14151 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
14152 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
14153 so that the register alternative is disabled when the shift_operator
14154 is MULT. Use "M" as the constraint for constants.
14155 (arith_shiftsi splitter): Enable for TARGET_32BIT.
14156 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
14157 constraint for constants.
14158 (arith_shiftsi_compare0_scratch): Likewise.
14159 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
14160 Handle Thumb2 alternative.
14161
14162 2010-08-16 Joseph Myers <joseph@codesourcery.com>
14163
14164 * doc/options.texi (NoDriverArg): Document.
14165 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
14166 -MDX and -MMDX.
14167 * opt-functions.awk (switch_flags): Handle NoDriverArg.
14168 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
14169 marking for CL_NO_DRIVER_ARG options when in the driver.
14170 * opts.h (CL_NO_DRIVER_ARG): Define.
14171 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
14172 CL_COMMON): Update values.
14173
14174 2010-08-16 Joseph Myers <joseph@codesourcery.com>
14175
14176 * common.opt: Add driver options.
14177 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
14178 * doc/options.texi (Driver, RejectDriver): Document.
14179 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
14180 print_prog_name, print_multi_directory, print_sysroot,
14181 print_multi_os_directory, print_multi_lib,
14182 print_sysroot_headers_suffix, report_times, combine_flag,
14183 use_pipes, wrapper_string): Remove.
14184 (save_switch, driver_unknown_option_callback,
14185 driver_wrong_lang_callback, driver_post_handling_callback,
14186 driver_handle_option): New.
14187 (spec_lang, last_language_n_infiles): Make file-scope static
14188 instead of local to process_command.
14189 (process_command): Use decode_cmdline_options_to_array and
14190 read_cmdline_option for option processing. Compute have_c in
14191 prescan of decoded options.
14192 * opt-functions.awk (switch_flags): Handle Driver and
14193 RejectDriver.
14194 (var_type, var_type_struct): Handle Separate options as generating
14195 const char * variables.
14196 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
14197 CL_TARGET to be passed by caller if required.
14198 (decode_cmdline_options_to_array): Update comment.
14199 * opts.c (complain_wrong_lang): Handle options only valid for the
14200 driver.
14201 (decode_options): Update call to decode_cmdline_options_to_array.
14202 (print_filtered_help): Ignore driver-only options.
14203 (print_specific_help): Ignore CL_DRIVER.
14204 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
14205 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
14206 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
14207 Update values.
14208
14209 2010-08-16 Richard Guenther <rguenther@suse.de>
14210
14211 * tree-cfg.c (verify_types_in_gimple_reference): Verify
14212 TARGET_MEM_REF a bit.
14213 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
14214 (create_mem_ref_raw): Always create TMR_OFFSET, store the
14215 alias pointer type via it.
14216 (copy_mem_ref_info): Adjust.
14217 (maybe_fold_tmr): Likewise.
14218 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
14219 (reference_alias_ptr_type): Likewise.
14220 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
14221 adjust documentation of TMR_OFFSET operand.
14222 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
14223 use the alias pointer type.
14224 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
14225 initialize mem attrs but the TMR itself.
14226 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
14227 similar to MEM_REF.
14228 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
14229 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
14230 (unshare_and_remove_ssa_names): Likewise.
14231 (copy_ref_info): Adjust.
14232 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
14233 TARGET_MEM_REF case.
14234 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
14235 at TMR_ORIGINAL.
14236 * tree.h (TMR_ORIGINAL): Remove.
14237 * gimple.c (get_base_address): For TARGET_MEM_REF with a
14238 symbol return that.
14239 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
14240 with a symbol.
14241 (get_addr_base_and_unit_offset): Likewise.
14242 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
14243 TARGET_MEM_REFs.
14244 (indirect_ref_may_alias_decl_p): Likewise.
14245 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
14246
14247 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
14248
14249 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
14250 with GCC version 4.6, the default setting (when not optimizing
14251 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
14252 been changed to -fomit-frame-pointer.
14253
14254 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
14255
14256 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
14257 Darwin10. Do not link libgcc.a for Darwin >= 9.
14258
14259 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
14260
14261 * doc/invoke.texi (Warning Options): Fix terminology and markup
14262 in the description of how unknown warning options are handled.
14263
14264 2010-08-15 Ira Rosen <irar@il.ibm.com>
14265
14266 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
14267 in basic blocks.
14268 (vect_supportable_dr_alignment): Check alignment for basic blocks.
14269 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
14270 data references.
14271 (vect_bb_vectorization_profitable_p): New function.
14272 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
14273 check if it's worthwhile to vectorize the basic block.
14274
14275 2010-08-14 Anatoly Sokolov <aesok@post.ru>
14276
14277 * reload.h (register_move_cost, memory_move_secondary_cost,
14278 secondary_reload_class): Adjust prototype.
14279 * rtl.h (reg_class_subset_p): Adjust prototype.
14280 * reload.c (secondary_reload_class): Change arguments type from
14281 enum reg_class to reg_class_t. Change result type to reg_class_t.
14282 * reginfo.c (register_move_cost, reg_class_subset_p): Change
14283 arguments type from enum reg_class to reg_class_t.
14284 (memory_move_secondary_cost): Change arguments type from
14285 enum reg_class to reg_class_t. Change type of saved_flags to
14286 reg_class_t.
14287
14288 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14289 Remove macros.
14290 (mips_cost): Remove.
14291 (struct mips_rtx_cost_data): Moved to mips.c.
14292 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
14293 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
14294 (mips_cost): Make static.
14295 (mips_canonicalize_move_class): Change argument type to reg_class_t.
14296 Change result type to reg_class_t.
14297 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
14298 type from enum reg_class to reg_class_t.
14299 (mips_register_move_cost): Make static. Change arguments
14300 type from enum reg_class to reg_class_t.
14301 (mips_memory_move_cost): New function.
14302 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
14303
14304 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
14305
14306 PR rtl-optimization/43358
14307 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
14308 of a single hard register, using simplify_subreg_regno to decide
14309 what that register should be.
14310
14311 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
14312
14313 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
14314 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
14315 (loongson_pmull<V_suffix>): Rename to...
14316 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
14317
14318 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
14319
14320 * configure.ac: Enable -fomit-frame-pointer on darwin
14321 which support dwarf2.
14322 * config/i386/i386.c (override_options): Same.
14323
14324 2010-08-13 Jie Zhang <jie@codesourcery.com>
14325
14326 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
14327
14328 2010-08-12 Joseph Myers <joseph@codesourcery.com>
14329
14330 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
14331 -MMD.
14332
14333 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
14334
14335 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
14336 up dot_prod pattern searching if a stmt is outside the loop.
14337
14338 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
14339 Uros Bizjak <ubizjak@gmail.com>
14340
14341 * config.gcc: Handle --enable-frame-pointer.
14342
14343 * configure.ac: Add --enable-frame-pointer.
14344 * configure: Regenerated.
14345
14346 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
14347 (override_options): If not configured with --enable-frame-pointer,
14348 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
14349 optimizing for size), -fasynchronous-unwind-tables and
14350 -maccumulate-outgoing-args by default.
14351
14352 2010-08-12 Jakub Jelinek <jakub@redhat.com>
14353
14354 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
14355
14356 PR middle-end/45262
14357 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
14358 -a overflows. Normalize the range.
14359
14360 2010-08-12 Richard Guenther <rguenther@suse.de>
14361
14362 PR tree-optimization/45232
14363 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
14364 for types with undefined overflow.
14365 (reassociate_bb): Allow re-associating of bit and min/max
14366 operations for types with undefined overflow.
14367 * tree-ssa-forwprop.c (associate_plusminus): New function.
14368 (tree_ssa_forward_propagate_single_use_vars): Call it.
14369
14370 2010-08-12 Richard Guenther <rguenther@suse.de>
14371
14372 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
14373 * tree-ssa-alias.c (get_ptr_info): Move ...
14374 * tree-ssanames.c (get_ptr_info): ... here. Initialize
14375 align and misalign fields conservatively.
14376 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
14377 derive alignment information.
14378 (evaluate_stmt): Derive alignment information from memory
14379 allocation functions.
14380 * tree.h (get_pointer_alignment): Make unsigned.
14381 * builtins.c (get_object_alignment): Use alignment information we
14382 have computed for pointers.
14383 (get_pointer_alignment): Likewise. Make conservative, return
14384 and unsigned value.
14385 (expand_builtin_strlen): Adjust.
14386 (expand_builtin_memcmp): Likewise.
14387 (expand_builtin_strcmp): Likewise.
14388 (expand_builtin_strncmp): Likewise.
14389 (get_builtin_sync_mem): Use at least mode alignment.
14390 (fold_builtin_memset): Adjust.
14391 (fold_builtin_memory_op): Likewise.
14392 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
14393 information also dump pointer alignment knowledge.
14394 (dump_gimple_stmt): Likewise.
14395
14396 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
14397
14398 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
14399 (EMPTY_FIELD_BOUNDARY): Remove.
14400 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
14401
14402 2010-08-12 Jakub Jelinek <jakub@redhat.com>
14403
14404 PR debug/45259
14405 * caller-save.c (save_call_clobbered_regs): Only swap notes with
14406 DEBUG_INSNs if n_regs_saved.
14407
14408 2010-08-12 Wei Guozhi <carrot@google.com>
14409
14410 PR target/44999
14411 * config/arm/arm.md (andsi3): Change to zero extension if possible.
14412 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
14413
14414 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
14415
14416 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
14417
14418 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
14419
14420 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14421
14422 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
14423 the case removed in the previous patch, when the only phi argument
14424 is defined in the same loop as the phi node itself. Handle it
14425 separately from the invariant case by both propagating it outside
14426 the region and replacing the phi node with an assign.
14427
14428 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14429
14430 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
14431 constant phi nodes with one argument are is_gimple_min_invariant
14432 and SSA_NAME_IS_DEFAULT_DEF.
14433
14434 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14435
14436 * graphite-cloog-util.c (oppose_constraint):
14437 Extend loop counter's value range (CLOOG_ORG).
14438 (cloog_matrix_to_ppl_constraint): Same.
14439 (new_Constraint_System_from_Cloog_matrix): Same.
14440 * graphite-cloog-compat.h (matrix_num_type): New.
14441
14442 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14443
14444 * graphite.c (graphite_initialize): Do not initialize
14445 CLooG and initialize the Parma Polyhedra Library
14446 manually when using CLOOG_ORG.
14447 (graphite_finalize): Do not finalize CLooG and finalize
14448 the Parma Polyhedra Library manually when using CLOOG_ORG.
14449 * graphite-cloog-compat.h (cloog_initialize): Hide function
14450 when using CLOOG_ORG.
14451 (cloog_finalize): Same.
14452
14453 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14454
14455 * graphite-clast-to-gimple.c (free_scattering): Change
14456 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
14457 (CLOOG_ORG).
14458 (build_cloog_prog): Same.
14459 * graphite-cloog-compat.h (cloog_domain): Removed.
14460 (cloog_scattering): New.
14461 (cloog_set_domain): Removed.
14462 (cloog_set_scattering): New.
14463 (cloog_next_domain): Removed.
14464 (cloog_next_scattering): New.
14465 (cloog_set_next_domain): Removed.
14466 (cloog_set_next_scattering): New.
14467 (CloogScatteringList): New.
14468 (CloogScattering): New.
14469 (cloog_scattering_free): New.
14470 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
14471 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
14472 New.
14473
14474 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14475
14476 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
14477 CloogState.
14478 (set_cloog_options): Same.
14479 (print_clast_stmt): Same.
14480 (scop_to_clast): Same.
14481 (print_generated_program): Same.
14482 (gloog): Same.
14483 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
14484 (scop_to_clast): Extend with CloogState.
14485 * graphite-cloog-util.c: Include graphite-cloog-compat.h
14486 (new_Cloog_Domain_from_ppl_Polyhedron):
14487 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
14488 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
14489 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14490 * graphite-cloog-util.h (build_cloog_prog): Same.
14491 * graphite-cloog-copat.h (build_cloog_prog): New.
14492 (CloogState): New.
14493 (cloog_state_malloc): New.
14494 (cloog_state_free): New.
14495 (cloog_loop_malloc): New.
14496 (cloog_options_malloc): New.
14497 (cloog_statement_alloc): New.
14498 (cloog_domain_from_cloog_matrix): New.
14499 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
14500 (new_Cloog_Domain_from_ppl_Polyhedron): New.
14501
14502 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14503
14504 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
14505 type of NAME now depends on used CLooG version.
14506 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
14507 (gcc_type_for_clast_expr): Same.
14508 (print_clast_stmt): Replace pprint with clast_pprint.
14509 * graphite-cloog-compat.h: Provide compatibility macros for
14510 CLooG Legacy.
14511 (clast_name_p): New.
14512 (clast_expr_term): New.
14513 (clast_expr_red): New.
14514 (clast_expr_bin): New.
14515 (clast_pprint): New.
14516
14517 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14518
14519 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
14520 compatible to newer CLooG releases (CLOOG_ORG).
14521 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
14522 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
14523 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
14524 (build_cloog_prog) : New.
14525 (cloog_program_extract_scalars): New.
14526 (cloog_program_scatter): New.
14527
14528 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14529
14530 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
14531 conditionally (CLOOG_ORG).
14532 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
14533 (cloog_statement_usr): New.
14534 (cloog_domain): Same.
14535 (cloog_set_domain): Same.
14536 (cloog_next_domain): Same.
14537 (cloog_set_next_domain): Same.
14538 (cloog_program_nb_scattdims): Same.
14539 (cloog_program_set_nb_scattdims): Same.
14540 (cloog_program_names): Same.
14541 (cloog_program_set_names): Same.
14542 (cloog_program_set_context): Same.
14543 (cloog_program_set_loop): Same.
14544 (cloog_program_blocklist): Same.
14545 (cloog_program_set_blocklist): Same.
14546 (cloog_program_scaldims): Same.
14547 (cloog_program_set_scaldims): Same.
14548 (cloog_names_nb_parameters): Same.
14549 (cloog_names_set_nb_parameters): Same.
14550 (cloog_names_parameters): Same.
14551 (cloog_names_set_parameters): Same.
14552 (cloog_names_set_nb_iterators): Same.
14553 (cloog_names_set_iterators): Same.
14554 (cloog_names_set_nb_scattering): Same.
14555 (cloog_names_set_scattering): Same.
14556 (cloog_statement_set_usr): Same.
14557 (cloog_loop_set_next): Same.
14558 (cloog_loop_set_domain): Same.
14559 (cloog_loop_set_block): Same.
14560 (cloog_block_list_next): Same.
14561 (cloog_block_list_set_next):
14562 (cloog_block_list_set_block): Same.
14563
14564 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14565
14566 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
14567 a bool.
14568 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
14569 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
14570 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
14571 when something has been changed.
14572 (rewrite_commutative_reductions_out_of_ssa): Same.
14573
14574 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14575
14576 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
14577 handle the case when def is in the sese region.
14578 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
14579 for invariant expressions.
14580 (rewrite_cross_bb_phi_deps): Removed.
14581 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
14582 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
14583 rewrite_cross_bb_phi_deps.
14584
14585 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14586
14587 * graphite-sese-to-poly.c
14588 (rewrite_commutative_reductions_out_of_ssa_loop): Call
14589 scev_analyzable_p only on is_gimple_reg
14590
14591 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14592
14593 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
14594 (rewrite_close_phi_out_of_ssa): Propagate constant values or
14595 parametric expressions outside the scop region.
14596 (rewrite_cross_bb_scalar_deps): Same.
14597 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
14598
14599 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14600
14601 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
14602 SSA_NAME_DEF_STMT only on SSA_NAMEs.
14603
14604 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14605
14606 * tree-scalar-evolution.c (instantiate_scev_name): Do not
14607 instantiate default definitions.
14608
14609 2010-08-11 Vladimir Kargov <kargov@gmail.com>
14610 Sebastian Pop <sebastian.pop@amd.com>
14611
14612 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
14613 (loop_exits_from_bb_p): New.
14614 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
14615 (loop_exits_from_bb_p): Declared.
14616 * graphite-scop-detection.c (scopdet_basic_block_info): Call
14617 loop_exits_to_bb_p.
14618
14619 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14620
14621 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
14622 extra parameter for the region. Call scev_analyzable_p.
14623 (rewrite_reductions_out_of_ssa): Update call to
14624 rewrite_close_phi_out_of_ssa.
14625 (rewrite_cross_bb_phi_deps): Same.
14626 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
14627 parameter for the region. Call scev_analyzable_p.
14628 (rewrite_commutative_reductions_out_of_ssa): Update call to
14629 rewrite_commutative_reductions_out_of_ssa_loop.
14630
14631 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14632
14633 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
14634
14635 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14636
14637 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
14638 SSA scalar phi nodes that can be scev_analyzable_p.
14639
14640 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14641
14642 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
14643 handle SSA_NAME_IS_DEFAULT_DEF.
14644
14645 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14646
14647 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
14648
14649 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14650
14651 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
14652 case non close-phi nodes with one argument.
14653
14654 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14655
14656 * sese.h (scev_analyzable_p): Scevs could be expressions without
14657 chrecs and still be scev_analyzable_p.
14658
14659 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14660
14661 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
14662
14663 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14664
14665 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
14666 * cfgloop.h (struct loop): Remove single_iv field.
14667 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
14668 (scop_canonicalize_loops): Removed.
14669 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
14670 over all the loop phi nodes in loop->header.
14671 (build_poly_scop): Remove use of scop_canonicalize_loops.
14672
14673 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14674
14675 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
14676 handle GIMPLE_CALL.
14677
14678 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14679
14680 * tree-chrec.c (chrec_apply): Should only apply to the specified
14681 variable. Also handle multivariate chains of recurrences that
14682 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
14683
14684 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14685
14686 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
14687 (debug_clast_name_indexes_1): Removed.
14688 (debug_clast_name_indexes): Removed.
14689 (pbb_to_depth_to_oldiv): Removed.
14690 (build_iv_mapping): Replace the use of rename_map with iv_map.
14691 (translate_clast_user): Remove uses of rename_map. Allocate and
14692 free iv_map.
14693 (translate_clast_for_loop): Remove uses of rename_map.
14694 (translate_clast_for): Same.
14695 (translate_clast_guard): Same.
14696 (translate_clast): Same.
14697 (gloog): Same.
14698 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
14699 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
14700 * sese.c (set_rename): Now static.
14701 (rename_variables_in_stmt): Removed.
14702 (rename_uses): New.
14703 (is_parameter): Removed.
14704 (is_iv): Removed.
14705 (expand_scalar_variables_call): Removed.
14706 (expand_scalar_variables_ssa_name): Removed.
14707 (expand_scalar_variables_expr): Removed.
14708 (expand_scalar_variables_stmt): Removed.
14709 (expand_scalar_variables): Removed.
14710 (rename_variables): Removed.
14711 (remove_condition): Removed.
14712 (get_true_edge_from_guard_bb): Removed.
14713 (get_false_edge_from_guard_bb): Removed.
14714 (struct igp): Removed.
14715 (default_before_guard): Removed.
14716 (convert_for_phi_arg): Removed.
14717 (add_guard_exit_phis): Removed.
14718 (insert_guard_phis): Removed.
14719 (graphite_copy_stmts_from_block): Now also uses iv_map and a
14720 region. Do not copy conditions. Do not copy induction variables.
14721 Call rename_uses.
14722 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
14723 the translated statement. Use the iv_map for the induction
14724 variable renaming.
14725 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
14726 (set_rename): Removed declaration.
14727 (scev_analyzable_p): ...here.
14728 * tree-chrec.c (chrec_apply_map): New.
14729 * tree-chrec.h (chrec_apply_map): Declared.
14730
14731 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14732
14733 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
14734 insert_loop_close_phis.
14735 * sese.c (name_defined_in_loop_p): Removed.
14736 (expr_defined_in_loop_p): Removed.
14737 (alive_after_loop): Removed.
14738 (close_phi_not_yet_inserted_p): Removed.
14739 (struct alep): Removed.
14740 (add_loop_exit_phis): Removed.
14741 (insert_loop_close_phis): Removed.
14742
14743 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14744
14745 * graphite-cloog-util.c
14746 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
14747 * graphite-poly.c
14748 (psct_scattering_dim_for_loop_depth): Same.
14749
14750 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14751
14752 * graphite-cloog-util.h: Added cloog.h.
14753 * graphite-blocking.c: Removed cloog.h.
14754 * graphite-dependences.c: Same.
14755 * graphite-interchange.c: Same.
14756 * graphite-poly.c: Same.
14757 * graphite-ppl.c: Same.
14758 * graphite-scop-detection.c: Same.
14759 * graphite-sese-to-poly.c:
14760 Removed cloog.h.
14761 Removed graphite-clast-to-gimple.h.
14762 (check_poly_representation): Removed (unused).
14763 * graphite-sese-to-poly.h
14764 (check_poly_representation): Removed (unused).
14765
14766 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14767
14768 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
14769 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
14770 (graphite-cloog-util.o): New.
14771 (graphite-ppl.o): Added graphite-cloog-util.h.
14772 * graphite-clast-to-gimple.c:
14773 Added graphite-cloog-util.h to include statements.
14774 * graphite-cloog-util.c: New.
14775 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
14776 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14777 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14778 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14779 (insert_constraint_into_matrix): Same.
14780 (ppl_Constrain_System_number_of_constraints): Same.
14781 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
14782 (oppose_constraint): Same.
14783 (cloog_matrix_to_ppl_constraint): Same.
14784 (new_Constraint_System_from_Cloog_Matrix): Same.
14785 * graphite-cloog-util.h: New.
14786 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
14787 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14788 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14789 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14790 (insert_constraint_into_matrix): Same.
14791 * graphite-ppl.c:
14792 Added graphite-cloog-util.h to include statements.
14793 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
14794 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14795 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14796 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14797 (insert_constraint_into_matrix): Same.
14798 (ppl_Constrain_System_number_of_constraints): Same.
14799 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
14800 (oppose_constraint): Same.
14801 (cloog_matrix_to_ppl_constraint): Same.
14802 (new_Constraint_System_from_Cloog_Matrix): Same.
14803 * graphite-ppl.h:
14804 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
14805 graphite-cloog-util.h.
14806 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
14807 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
14808 (new_C_Polyhedron_from_Cloog_Matrix): Same.
14809 (insert_constraint_into_matrix): Same.
14810
14811 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
14812
14813 * graphite-clast-to-gimple.c
14814 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
14815 (precision_for_interval): Same.
14816 (gcc_type_for_interval): Same.
14817 (compute_type_for_level): Same.
14818 * graphite-interchange.c
14819 (lst_interchange_profitable_p): Same.
14820 * graphite-poly.c
14821 (psct_scattering_dim_for_loop_depth): Same.
14822 * graphite-ppl.c
14823 (ppl_max_for_le_pointset): Same.
14824 (ppl_min_for_le_pointset): Same.
14825
14826 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14827
14828 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
14829 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
14830
14831 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14832
14833 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
14834 rewrite_close_phi_out_of_ssa.
14835
14836 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14837
14838 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
14839
14840 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14841
14842 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
14843 rename_map.
14844 * sese.c (debug_rename_map): Same.
14845 (get_rename): Same.
14846 (set_rename): Same.
14847 (rename_variables_in_stmt): Same.
14848 (expand_scalar_variables_call): Same.
14849 (expand_scalar_variables_ssa_name): Same.
14850 (expand_scalar_variables_expr): Same.
14851 (expand_scalar_variables_stmt): Same.
14852 (expand_scalar_variables): Same.
14853 (rename_variables): Same.
14854 (graphite_copy_stmts_from_block): Same.
14855 (copy_bb_and_scalar_dependences): Same.
14856
14857 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14858
14859 * graphite-clast-to-gimple.c (copy_renames): Removed.
14860 (translate_clast_for): Do not call copy_renames.
14861 (translate_clast_guard): Same.
14862
14863 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14864
14865 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
14866 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
14867 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
14868 before rewrite_cross_bb_scalar_deps.
14869
14870 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14871
14872 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
14873 Early return in when flag_associative_math is not set.
14874
14875 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14876
14877 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
14878 of SSA copies on edges except for loop->latch.
14879
14880 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14881
14882 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
14883 Split out of rewrite_reductions_out_of_ssa.
14884 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
14885 Declared.
14886 * graphite.c (graphite_transform_loops): Call it.
14887
14888 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14889
14890 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
14891
14892 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
14893
14894 * dbgcnt.def (graphite_scop): New counter.
14895 * graphite.c: Include dbgcnt.h.
14896 (graphite_transform_loops): Use new counter to limit transformations.
14897 * Makefile.in (graphite.o): Depend on DBGCNT_H.
14898
14899 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14900
14901 * passes.c (init_optimization_passes): Add pass_graphite.
14902 Schedule a pass_copy_prop before pass_graphite_transforms.
14903 * timevar.def (TV_GRAPHITE): Declared.
14904 * tree-pass.h (pass_graphite): Declared.
14905 * tree-ssa-loop.c (pass_graphite): New.
14906
14907 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14908
14909 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
14910 Remove calls to rename_nb_iterations and rename_sese_parameters.
14911 * graphite-clast-to-gimple.h (gloog): Update declaration.
14912 * graphite.c (graphite_transform_loops): Update call to gloog.
14913 * sese.c (rename_variables_in_expr): Removed.
14914 (rename_nb_iterations): Removed.
14915 (rename_sese_parameters): Removed.
14916 * sese.h (rename_nb_iterations): Removed.
14917 (rename_sese_parameters): Removed.
14918
14919 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14920
14921 * graphite-clast-to-gimple.c (gloog): Remove call to
14922 sese_adjust_liveout_phis.
14923 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
14924 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
14925 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
14926 rewrite_phi_out_of_ssa.
14927 * sese.c (get_vdef_before_sese): Removed.
14928 (sese_adjust_vphi): Removed.
14929 (sese_adjust_liveout_phis): Removed.
14930 * sese.h (sese_adjust_liveout_phis): Removed.
14931
14932 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14933
14934 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
14935 argument for the place after which to insert the out of SSA copy.
14936 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
14937 (rewrite_phi_out_of_ssa): Same.
14938 (rewrite_cross_bb_scalar_deps): Same.
14939 (insert_copyout): Removed.
14940 (insert_copyin): Removed.
14941 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
14942 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
14943 insert_copyin.
14944
14945 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14946
14947 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
14948 (rewrite_reductions_out_of_ssa): Same.
14949 (rewrite_commutative_reductions_out_of_ssa): Same.
14950 (build_poly_scop): Do not call these functions.
14951 * graphite-sese-to-poly.h (build_poly_scop): Declared.
14952 (rewrite_reductions_out_of_ssa): Declared.
14953 (rewrite_commutative_reductions_out_of_ssa): Declared.
14954 * graphite.c (graphite_transform_loops): Call on every scop
14955 rewrite_commutative_reductions_out_of_ssa before calling
14956 rewrite_reductions_out_of_ssa and build_scop_bbs.
14957
14958 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14959
14960 * graphite-dependences.c (dot_deps): Make system call to dotty run
14961 in background.
14962 (dot_deps_stmt): Same.
14963 * graphite-poly.c (dot_lst): Same.
14964
14965 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
14966
14967 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
14968 phi_arg_in_outermost_loop.
14969 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
14970 (remove_invariant_phi): Same.
14971
14972 2010-08-11 Anatoly Sokolov <aesok@post.ru>
14973
14974 * target.def (output_addr_const_extra): New hook.
14975 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
14976 * doc/tm.texi: Regenerate.
14977 * targhooks.c (default_asm_output_addr_const_extra): New function.
14978 * targhooks.h (default_asm_output_addr_const_extra): Declare.
14979 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
14980 target hook.
14981
14982 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14983 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
14984 * config/i386/i386.h (output_addr_const_extra): Rename to...
14985 (i386_asm_output_addr_const_extra): ...this. Make static.
14986 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14987
14988 2010-08-11 Richard Henderson <rth@redhat.com>
14989
14990 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
14991
14992 2010-08-11 Nick Clifton <nickc@redhat.com>
14993
14994 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
14995 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
14996 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
14997 stormy16-lib2-cmpsi.c.
14998
14999 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
15000 -O2.
15001
15002 2010-08-11 Joseph Myers <joseph@codesourcery.com>
15003
15004 * opts.h (struct cl_option_handler_func): Make handler take
15005 cl_decoded_option structure as parameter, not individual elements.
15006 (struct cl_option_handlers): Make callbacks take cl_decoded_option
15007 structure as parameter, not individual elements.
15008 (handle_option): Take cl_decoded_option structure as parameter,
15009 not individual elements.
15010 (handle_generated_option): Declare.
15011 * opts-common.c (handle_option): Take cl_decoded_option structure
15012 as parameter, not individual elements. Update calls to callback
15013 and handler functions.
15014 (handle_generated_option): New.
15015 (read_cmdline_option): Update calls to callback functions and
15016 handle_option.
15017 * opts.c (common_handle_option, complain_wrong_lang,
15018 unknown_option_callback, post_handling_callback,
15019 lang_handle_option, target_handle_option): Take cl_decoded_option
15020 structure as parameter, not individual elements.
15021 (lang_handle_option, target_handle_option, common_handle_option):
15022 Assert option has at most one argument.
15023 (enable_warning_as_error): Call handle_generated_option instead of
15024 handle_option. Do not pass -Werror argument as argument of
15025 generated option.
15026
15027 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15028
15029 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
15030 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
15031 (SUBWORD_BOOL_CAS): Likewise.
15032 (SUBWORD_SYNC_OP): Likewise.
15033 (SUBWORD_TEST_AND_SET): Likewise.
15034 (FETCH_AND_OP_WORD): Parenthesise INF_OP
15035 (SUBWORD_SYNC_OP): Likewise.
15036 (OP_AND_FETCH_WORD): Likewise.
15037
15038 2010-08-10 Xinliang David Li <davidxl@google.com>
15039
15040 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
15041 compute max/min offset in address.
15042
15043 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
15044
15045 * ira-live.c: Include sbitmap.h.
15046 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
15047 Compress live ranges even more.
15048
15049 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
15050
15051 * coverage.c (ctr_labels): Delete.
15052
15053 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
15054
15055 PR bootstrap/45177
15056 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
15057 test here from arm_gen_load_multiple_1.
15058 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
15059 multiple_operation_profitable_p.
15060
15061 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
15062
15063 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
15064 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
15065
15066 2010-08-10 Richard Henderson <rth@redhat.com>
15067
15068 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
15069 after saving registers. Assert that SSE registers are only saved
15070 with a sufficiently aligned frame.
15071 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
15072 remove stack_realign_fp handling.
15073 (ix86_expand_prologue): Save int registers before stack_realign_fp,
15074 and do not mark the stack alignment as frame related.
15075 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
15076
15077 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
15078 saves when re-aligning the stack.
15079
15080 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
15081
15082 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
15083 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
15084 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
15085
15086 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
15087
15088 * dwarf2out.c (struct die_struct): Move die_tag to the end.
15089
15090 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
15091
15092 * config/arm/iterators.md: New file.
15093 * config/arm/arm.md: Include iterators.md.
15094 (QHSI): Move to new file.
15095 (LTUGEU, cnb, optab, ior_xor): Likewise.
15096 * config/arm/iwmmxt.md (VMMX): Move to new file.
15097 (VSHFT, MMX_char): Likewise.
15098 * config/arm/neon.md (VD): Move to new file.
15099 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
15100 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
15101 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
15102 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
15103 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
15104 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
15105 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
15106 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
15107 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
15108 (Is_d_reg, V_mode_nunits): Likewise.
15109 * config/arm/vec-common.md (VALL): Move to new file.
15110 (VALLW, VINT, VINTW): Likewise.
15111
15112 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
15113
15114 PR middle-end/45182
15115 * combine.c (make_compound_operation): Don't try to convert
15116 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
15117
15118 2010-08-10 Richard Guenther <rguenther@suse.de>
15119
15120 * tree.h (get_object_alignment): Adjust prototype.
15121 * builtins.c (get_object_alignment): Return unsigned int,
15122 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
15123 and TARGET_MEM_REF properly.
15124 (get_pointer_alignment): Adjust.
15125 * emit-rtl.c (get_mem_align_offset): Adjust comment.
15126 (set_mem_attributes_minus_bitpos): Adjust.
15127 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
15128
15129 2010-08-10 Richard Guenther <rguenther@suse.de>
15130
15131 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
15132 (copy_prop_visit_assignment): Simplify.
15133 (copy_prop_visit_stmt): Also visit assignments from
15134 constants.
15135 (copy_prop_visit_phi_node): Use operand_equal_p.
15136
15137 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
15138
15139 * ipa-split.c (find_split_points): Free stack.
15140
15141 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
15142
15143 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
15144 * tree.c (tree_node_kind): Delete corresponding entries.
15145
15146 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
15147
15148 * alias.c (may_alias_p): Remove unused ret.
15149
15150 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
15151
15152 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
15153 alias_sets_conflict_p.
15154 (walk_mems_1): Moved from alias.c.
15155 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
15156 in alias.c.
15157 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
15158 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
15159 * alias.c (walk_mems_2): Moved to ddg.c.
15160 (walk_mems_1): Ditto.
15161 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
15162 to ddg.c.
15163 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
15164 disambiguation.
15165 *(may_alias_p): New function to check whether two memory expression
15166 may alias or not. Currently used in buidling inter-iteration memory
15167 dependence.
15168 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
15169 (insn_alias_sets_conflict_p): Removed
15170 *rtl.h (may_alias_p): New function prototype.
15171
15172 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
15173
15174 * tree.c (nreverse): Assert that we don't have a BLOCK.
15175
15176 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
15177
15178 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
15179 * config/arm/arm.c (arm_get_pcs_model): Likewise.
15180 * config/avr/avr.c (init_cumulative_args): Likewise.
15181 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
15182 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
15183 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
15184 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
15185 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
15186 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15187 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
15188 * dwarf2out.c (gen_subprogram_die): Likewise.
15189 * function.c (allocate_struct_function): Likewise.
15190 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
15191 (deserves_ellipsis): Delete.
15192
15193 2010-08-09 Richard Guenther <rguenther@suse.de>
15194
15195 * tree-ssa-copy.c (cached_last_copy_of): Remove.
15196 (valueize_val): New function.
15197 (get_last_copy_of): Remove.
15198 (set_copy_of_val): Simplify.
15199 (dump_copy_of): Likewise.
15200 (copy_prop_visit_cond_stmt): Use valueize_val.
15201 (copy_prop_visit_phi_node): Properly handle unvisited names.
15202 Drop code managing copy-of chains.
15203 (init_copy_prop): Adjust.
15204 (fini_copy_prop): Likewise.
15205 (execute_copy_prop): Remove obsolete comment.
15206
15207 2010-08-09 Richard Guenther <rguenther@suse.de>
15208
15209 PR middle-end/44632
15210 * function.c (gimplify_parameters): Do not clear addressable
15211 bit of the original parameter.
15212
15213 2010-08-09 Richard Guenther <rguenther@suse.de>
15214
15215 PR middle-end/45212
15216 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
15217 alignment from MEM_REF offset only if we took it from the
15218 base object.
15219
15220 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
15221
15222 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
15223
15224 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
15225
15226 * c-tree.h (build_arg_info): Declare.
15227 * c-decl.c (build_arg_info): Define.
15228 (get_parm_info): Call it. Delete initialization code.
15229 * c-parser.c (c_parser_parms_declarator): Likewise.
15230 (c_parser_parms_list_declaractor): Likewise.
15231
15232 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
15233
15234 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
15235 (struct c_arg_info): Change type of tags field.
15236 * c-decl.c (grokdeclarator): Update for changed type of tags field.
15237 (get_parm_info): Likewise.
15238 (store_parm_decls_newstyle): Likewise.
15239
15240 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
15241
15242 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
15243 (branch_island_list): Delete.
15244 (branch_islands): Declare.
15245 (add_compiler_branch_island): Adjust for branch_islands instead of
15246 branch_island_list.
15247 (macho_branch_islands): Likewise.
15248 (no_previous_def): Likewise.
15249 (get_prev_label): Likewise.
15250
15251 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15252
15253 PR boehm-gc/34544
15254 * gthr-posix.h (__gthread_start): Delete.
15255 (__gthread_active_init): Use pthread_default_stacksize_np instead of
15256 pthread_create to determine if hpux pthreads are active.
15257 * gthr-posix95.h (__gthread_start): Delete.
15258 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
15259
15260 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
15261
15262 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
15263 _WIN64 not expanded.
15264
15265 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
15266 H.J. Lu <hongjiu.lu@intel.com>
15267
15268 PR target/45213
15269 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
15270 to output 32bit SFmode immediate as 8 byte sign extended value.
15271
15272 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
15273
15274 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
15275 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
15276 (SUBWORD_BOOL_CAS): Likewise.
15277 (SUBWORD_SYNC_OP): Likewise.
15278 (SUBWORD_TEST_AND_SET): Likewise.
15279 (FETCH_AND_OP_WORD): Parenthesise INF_OP
15280 (SUBWORD_SYNC_OP): Likewise.
15281 (OP_AND_FETCH_WORD): Likewise.
15282
15283 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15284
15285 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
15286 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
15287 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
15288 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
15289 generic part.
15290 (cortex_a9_sched_adjust_cost): New function.
15291 (xscale_sched_adjust_cost): New function.
15292 * config/arm/arm-protos.h (struct tune_params): New field
15293 sched_adjust_cost.
15294 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
15295
15296 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
15297
15298 PR target/44942
15299 * config/sparc/sparc.c (function_arg_advance): Always take into account
15300 the padding, if any.
15301
15302 2010-08-06 Richard Guenther <rguenther@suse.de>
15303
15304 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
15305 (dump_lattice_value): Dump it.
15306 (get_default_value): Adjust.
15307 (get_constant_value): Likewise.
15308 (set_value_varying): Likewise.
15309 (set_lattice_value): Make sure to not go up the lattice
15310 with bitwise constant values.
15311 (get_value_for_expr): Handle ADDR_EXPRs.
15312 (value_to_double_int): New function.
15313 (get_value_from_alignment): Likewise.
15314 (do_dbg_cnt): Adjust.
15315 (ccp_lattice_meet): Handle partially constant values.
15316 (bit_value_unop_1): New function.
15317 (bit_value_binop_1): Likewise.
15318 (bit_value_unop): Likewise.
15319 (bit_value_binop): Likewise.
15320 (evaluate_stmt): Track partially constant values if
15321 flag_tree_bit_ccp is set.
15322 (ccp_fold_stmt): Dump if we folded a predicate.
15323 (ccp_visit_stmt): Adjust.
15324 * common.opt (ftree-bit-ccp): New flag.
15325 * doc/invoke.texi (ftree-bit-ccp): Document.
15326 * opts.c (decode_options): Enable bit-CCP at -O1.
15327
15328 2010-08-06 Alan Modra <amodra@gmail.com>
15329
15330 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
15331 and -mrelocatable-lib description.
15332
15333 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
15334
15335 From Martin Thuresson <martint@google.com>
15336 * postreload.c (reload_cse_simplify_operands): Use
15337 SET_REGNO_RAW instead of SET_REGNO.
15338 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
15339 SET_REGNO.
15340 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
15341 instead of SET_REGNO.
15342 * rtl.h (SET_REGNO_RAW): New macro.
15343
15344 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
15345
15346 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
15347 computations. Fix formatting issues.
15348 (num_sign_bit_copies1): Likewise.
15349 (canonicalize_condition): Likewise.
15350
15351 2010-08-05 Richard Henderson <rth@redhat.com>
15352
15353 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
15354 (floor_log2): Use clz_hwi.
15355 (exact_log2): Use ctz_hwi.
15356 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
15357 * builtins.c (fold_builtin_bitop): Use them.
15358 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
15359 * combine.c (get_pos_from_mask): Use ctz_hwi.
15360 * double-int.c (double_int_ctz): Likewise.
15361 * explow.c (force_reg): Likewise.
15362 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
15363
15364 2010-08-05 Richard Henderson <rth@redhat.com>
15365
15366 PR target/45189
15367 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
15368 the alignment constant is properly sign-extended.
15369
15370 2010-08-05 Richard Guenther <rguenther@suse.de>
15371
15372 * expr.c (store_expr): Use emit_block_move only if both
15373 source and target are MEMs. Use store_bit_field if only
15374 the target is a MEM.
15375
15376 2010-08-05 Richard Henderson <rth@redhat.com>
15377
15378 PR debug/45188
15379 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
15380 (INCOMING_RETURN_ADDR_RTX): Likewise.
15381 (dwarf2out_do_frame): Remove conditional compilation.
15382 (dwarf2out_frame_init): Likewise.
15383
15384 2010-08-05 Nicolas Setton <setton@adacore.com>
15385
15386 * gcov.c (flag_display_progress): New static variable.
15387 (main): Display progress info on standard output if requested.
15388 (options): Add -d/--display-progress.
15389 (print_usage): Print them.
15390 (process_args): Handle them.
15391 * doc/gcov.texi: Document them.
15392
15393 2010-08-05 Martin Jambor <mjambor@suse.cz>
15394
15395 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
15396 (ipcp_insert_stage): Redirect only edges not flagged with
15397 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
15398 discovered constants.
15399
15400 2010-08-05 Martin Jambor <mjambor@suse.cz>
15401
15402 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
15403 (struct ipa_param_descriptor): New fields types and
15404 cannot_devirtualize.
15405 (ipa_param_cannot_devirtualize_p): New function.
15406 (ipa_param_types_vec_empty): Likewise.
15407 (ipa_make_edge_direct_to_target): Declare.
15408 * ipa-cp.c: Fixed first stage driver name in initial comment,
15409 described devirtualization there too.
15410 (ipcp_analyze_node): Call ipa_analyze_params_uses.
15411 (ipcp_print_all_lattices): Print devirtualization info.
15412 (ipa_set_param_cannot_devirtualize): New function.
15413 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
15414 lattice to BOTTOM.
15415 (ipcp_init_stage): Merged into...
15416 (ipcp_generate_summary): ...its caller.
15417 (ipcp_change_tops_to_bottom): Also process type lists.
15418 (ipcp_add_param_type): New function.
15419 (ipcp_copy_types): Likewise.
15420 (ipcp_propagate_types): Likewise.
15421 (ipcp_propagate_stage): Also propagate types.
15422 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
15423 Also return true if propagated types require it.
15424 (ipcp_update_callgraph): Dump redirection info.
15425 (ipcp_process_devirtualization_opportunities): New function.
15426 (ipcp_const_param_count): Include known type information.
15427 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
15428 on new node. Fixed formatting.
15429 * ipa-prop.c (make_edge_direct_to_target): Renamed to
15430 ipa_make_edge_direct_to_target and changed all callers. Made
15431 externally visible.
15432 (ipa_node_duplication_hook): Duplicate types vector.
15433 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
15434 redirect outgoing calls for which we can't get a decl from the
15435 statement. Check that we can get a decl from the call statement.
15436 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
15437 ipa_analyze_params_uses only when ipa-cp is disabled.
15438 * tree-inline.c (get_indirect_callee_fndecl): Removed.
15439 (expand_call_inline): Do not call get_indirect_callee_fndecl.
15440 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
15441 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
15442
15443 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
15444
15445 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
15446 temporary. Emit move from temporary to accum, so REG_EQUAL note will
15447 be attached to this insn in correct mode.
15448
15449 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
15450
15451 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
15452 using REGNO of base_reg directly.
15453
15454 2010-08-05 Jie Zhang <jie@codesourcery.com>
15455
15456 PR tree-optimization/45144
15457 * tree-sra.c (type_consists_of_records_p): Return false
15458 if the record contains bit-field.
15459
15460 2010-08-04 Richard Henderson <rth@redhat.com>
15461
15462 * config/i386/i386.c (struct ix86_frame): Remove padding and
15463 to_allocate members.
15464 (ix86_compute_frame_layout): Don't store them.
15465 (ix86_can_use_return_insn_p): Use a more direct and more obviously
15466 correct condition for the position of the stack pointer.
15467 (ix86_expand_prologue): Compute remaining stack allocation based
15468 on the ultimate stack pointer offset.
15469 (ix86_expand_epilogue): Use more obvious expressions testing for
15470 the stack pointer already pointing to the saved registers.
15471
15472 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
15473 duplication deconstructing the frame pointer. Simplify
15474 deallocation of the local stack frame.
15475
15476 * reg-notes.def (CFA_EXPRESSION): New.
15477 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
15478 (dwarf2out_frame_debug_cfa_expression): New.
15479 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
15480
15481 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
15482 * config/i386/i386.c (ix86_expand_prologue): Set it.
15483 (ix86_expand_epilogue): Clear it.
15484 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
15485 context, add REG_CFA_EXPRESSION notes.
15486
15487 * config/i386/i386.h (struct machine_frame_state): Rename from
15488 machine_cfa_state. Add members tracking SP and FP regardless
15489 of the current CFA register.
15490 (ix86_cfa_state): Remove.
15491 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
15492 and sse_reg_save_offset members.
15493 (ix86_compute_frame_layout): Set them.
15494 (gen_push): Increment sp_offset too.
15495 (choose_baseaddr_len, choose_baseaddr): New.
15496 (ix86_emit_save_reg_using_mov): New.
15497 (ix86_emit_save_regs_using_mov): Use it.
15498 (ix86_emit_save_sse_regs_using_mov): Likewise.
15499 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
15500 compare vs the saved red_zone_offset.
15501 (pro_epilogue_adjust_stack): Adjust sp_offset.
15502 (ix86_adjust_stack_and_probe): Likewise.
15503 (ix86_expand_prologue): Set up, use, and validate the new
15504 frame_state_info members. Use gen_frame_mem.
15505 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
15506 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
15507 new frame_state_info members.
15508 (ix86_emit_leave): Likewise.
15509 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
15510 out-of-range stack pointer offsets here.
15511 (ix86_emit_restore_sse_regs_using_mov): Likewise.
15512 (ix86_expand_epilogue): Use and validate the new frame_state_info
15513 members. Break up and simplify the logic selecting the
15514 restore_regs_via_mov code path. Ensure that there will be no
15515 out-of-range stack pointer offsets.
15516
15517 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
15518
15519 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
15520 argument name to reflect the expected tree; fix indentation.
15521 (ix86_asm_output_function_label): Output the entire 32-bit
15522 ms_hook here as bytes ...
15523 (ix86_expand_prologue): ... not here as insns. Attach the
15524 unwind info for the ms_hook to a blockage insn.
15525 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
15526 (ix86_ms_bitfield_layout_p): Fix indentation.
15527 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
15528
15529 * config/i386/i386.c (ix86_using_red_zone): New.
15530 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
15531 ix86_expand_prologue, ix86_force_to_memory): Use it.
15532
15533 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
15534 saving the int registers.
15535
15536 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
15537 and DWARF2_UNWIND_INFO conditional compilation.
15538
15539 2010-08-04 Richard Henderson <rth@redhat.com>
15540
15541 PR debug/45171
15542 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
15543 an is_naming_typedef_decl.
15544
15545 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
15546
15547 PR rtl-optimization/45162
15548 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
15549 * dce.c (word_dce_process_block): Likewise.
15550
15551 2010-08-04 Steve Ellcey <sje@cup.hp.com>
15552
15553 PR target/44583
15554 * config/ia64/constraints.md (Z): New.
15555 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
15556 (xfreg_or_signed_fp01_operand): New.
15557 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
15558 with fr_reg_or_signed_fp01_operand and constraint G with Z.
15559 (subsf3): Ditto.
15560 (*maddsf4): Ditto.
15561 (*msubsf4): Ditto.
15562 (adddf3): Ditto.
15563 (adddf3_trunc): Ditto.
15564 (subdf3): Ditto.
15565 (*subdf3_trunc): Ditto.
15566 (*madddf4): Ditto.
15567 (*madddf4_trunc): Ditto.
15568 (*msubdf4): Ditto.
15569 (*msubdf4_trunc): Ditto.
15570 (addxf3): Replace xfreg_or_fp01_operand with
15571 xfreg_or_signed_fp01_operand and constraint G with Z.
15572 (*addxf3_truncsf): Ditto.
15573 (*addxf3_truncdf): Ditto.
15574 (subxf3): Ditto.
15575 (*subxf3_truncsf): Ditto.
15576 (*subxf3_truncdf): Ditto.
15577 (*maddxf4): Ditto.
15578 (*maddxf4_truncsf): Ditto.
15579 (*maddxf4_truncdf): Ditto.
15580 (*msubxf4): Ditto.
15581 (*msubxf4_truncsf): Ditto.
15582 (*msubxf4_truncdf): Ditto.
15583
15584 2010-08-04 Richard Guenther <rguenther@suse.de>
15585
15586 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
15587 if either alias-set is zero.
15588
15589 2010-08-04 Richard Guenther <rguenther@suse.de>
15590
15591 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
15592 * tree-ssa-ccp.c: ... here.
15593 * tree-ssa-copy.c: ... and here.
15594 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
15595 value_range_t): Move ...
15596 * tree-vrp.c: ... here.
15597 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
15598 (substitute_and_fold): Adjust prototype.
15599 * tree-ssa-propagate.c (replace_uses_in): Adjust.
15600 (replace_phi_args_in): Likewise.
15601 (substitute_and_fold): Take callback to query lattice instead
15602 of pointer to lattice. Replace SSA name defs with lattice
15603 values first.
15604 * tree-ssa-ccp.c (ccp_finalize): Adjust.
15605 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
15606 (get_value): New function.
15607 (fini_copy_prop): Adjust.
15608 * tree-vrp.c (vrp_finalize): Adjust.
15609
15610 2010-08-04 Richard Guenther <rguenther@suse.de>
15611
15612 PR middle-end/45176
15613 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
15614 points-to set for original MEM_REF.
15615
15616 2010-08-04 Richard Guenther <rguenther@suse.de>
15617
15618 * tree-ssa-ccp.c (get_constant_value): New function.
15619 (get_rhs_assign_op_for_ccp): Remove.
15620 (valueize_op): New function.
15621 (ccp_fold): Use get_constant_value and valueize_op.
15622 (fold_const_aggregate_ref): Likewise.
15623 (ccp_fold_stmt): Likewise.
15624 (visit_assignment): Simplify.
15625
15626 2010-08-04 Richard Guenther <rguenther@suse.de>
15627
15628 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
15629 * double-int.h (double_int_ctz): Declare.
15630 * double-int.c (double_int_ctz): New function.
15631
15632 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
15633
15634 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
15635 Define.
15636 picochip_expand_movmemhi : Expand movmem pattern.
15637 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
15638 Declare.
15639 * config/picochip/picochip.md (movmemhi) : New pattern.
15640
15641 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
15642
15643 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
15644
15645 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
15646
15647 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
15648 NEG as operand of a MULT by merging it with the other operand.
15649 * combine.c (make_compound_operation): Use trunc_int_for_mode when
15650 generating a MULT with constant. Canonicalize PLUS and MINUS involving
15651 MULT.
15652 * config/arm/constraints.md (M): Examine only 32 bits of a
15653 HOST_WIDE_INT.
15654 * config/arm/predicates.md (power_of_two_operand): Likewise.
15655
15656 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15657
15658 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
15659 non-NOTE insns.
15660
15661 2010-08-03 Jan Hubicka <jh@suse.cz>
15662
15663 * ipa-split.c (struct split_point): Add split_part_set_retval.
15664 (find_retval): Forward declare.
15665 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
15666 (consider_split): Compute current->split_part_set_retval.
15667 (visit_bb): Do not look into return value.
15668 (split_function): Handle !split_part_set_retval
15669
15670 2010-08-03 Martin Jambor <mjambor@suse.cz>
15671
15672 * tree-sra.c (completely_scalarize_record): New parameter REF, create
15673 its own access->expr intead of using build_ref_for_offset.
15674
15675 2010-08-03 Joseph Myers <joseph@codesourcery.com>
15676
15677 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
15678 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
15679 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
15680 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
15681 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
15682 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
15683 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
15684 DEFAULT_SWITCH_TAKES_ARG.
15685 * config/rx/rx.opt (-patch=): Remove option.
15686 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
15687 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
15688 * doc/invoke.texi (RX Options): Remove -patch=.
15689 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
15690 (option_map): Remove --profile-blocks, --quiet and --silent.
15691
15692 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
15693
15694 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
15695 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
15696 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
15697 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
15698 Update calls to ix86_expand_compare and ix86_expand_branch.
15699 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
15700 ix86_expand_compare.
15701 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
15702 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
15703 Make static.
15704 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
15705 and ix86_compare_op1. Update calls to ix86_expand_compare.
15706 (ix86_expand_int_movcc): Ditto.
15707 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
15708 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
15709 (ix86_expand_setcc): Ditto.
15710 (ix86_expand_compare): Remove prototype.
15711 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
15712 ix86_compare_op0 and ix86_compare_op1. Update calls
15713 to ix86_expand_branch to directly pass operands[1] and operands[2].
15714 (cbranchxf4): Ditto.
15715 (cbranch<MODEF:mode>4): Ditto.
15716 (cbranchcc4): Ditto.
15717 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
15718 Update calls to ix86_expand_setcc to directly pass operands[2] and
15719 operands[3].
15720 (cstorexf4): Ditto.
15721 (cstore<MODEF:mode>4): Ditto.
15722 (cstorecc4): Ditto.
15723
15724 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
15725
15726 PR target/45063
15727 * caller-save.c (save_call_clobbered_regs): Remove regs from
15728 hard_regs_saved when they are set.
15729
15730 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
15731
15732 PR target/41089
15733 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
15734 as volatile.
15735
15736 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
15737
15738 * common.opt (ftree-loop-distribute-patterns): New.
15739 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
15740 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
15741 at -O3.
15742 * tree-data-ref.c (stores_zero_from_loop): New.
15743 * tree-data-ref.h (stores_zero_from_loop): Declared.
15744 * tree-loop-distribution.c (tree_loop_distribution): Call
15745 stores_zero_from_loop.
15746 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
15747
15748 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
15749
15750 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
15751 into account.
15752
15753 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
15754 * config/arm/arm.c (thumb1_code): New variable.
15755 (arm_override_options): Set it.
15756 (thumb1_final_prescan_insn): Keep track of condition code status.
15757 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
15758 jumps that depend on them.
15759 * config/arm/arm.h (thumb1_code): Declare variable.
15760 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
15761 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
15762 thumb1_cc_mode.
15763 (CC_STATUS_INIT): New macro.
15764 * config/arm/constraints.md (Pd): New constraint.
15765 * config/arm/predicates.md (noov_comparison_operator): New predicate.
15766 * config/arm/arm.md (is_thumb1): New define_attr.
15767 (conds): Set default to "clob" when generating Thumb1 code.
15768 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
15769 code are set. Use two-operand assembly syntax.
15770 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
15771 pattern.
15772 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
15773 codes are set. Use two-operand assembly syntax.
15774 (zero_extendhisi splitter): Remove constraints.
15775 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
15776 thumb1_movsf_insn): Set conds attribute as appropriate.
15777 (cbranchsi4_insn): Use condition code status from struct
15778 machine_function to determine whether the comparison can be eliminated.
15779 Discourage the alternative using high registers.
15780 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
15781 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
15782 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
15783 subsi3_cbranch): Delete.
15784 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
15785 one subtract and one cbranch insn.
15786
15787 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
15788 thumb2_movdf_soft_insn): Delete patterns.
15789 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
15790 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
15791 (pool_range, neg_pool_range): Use them to define defaults.
15792 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
15793 and allow for TARGET_32BIT.
15794
15795 PR target/40457
15796 * config/arm/arm.h (arm_regs_in_sequence): Declare.
15797 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
15798 load_multiple_sequence, store_multiple_sequence): Delete
15799 declarations.
15800 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
15801 declarations.
15802 * config/arm/ldmstm.md: New file.
15803 * config/arm/arm.c (arm_regs_in_sequence): New array.
15804 (load_multiple_sequence): Now static. New args SAVED_ORDER,
15805 CHECK_REGS. All callers changed.
15806 If SAVED_ORDER is nonnull, copy the computed order into it.
15807 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
15808 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
15809 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
15810 If SAVED_ORDER is nonnull, copy the computed order into it.
15811 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
15812 like REGS. Handle Thumb mode.
15813 (arm_gen_load_multiple_1): New function, broken out of
15814 arm_gen_load_multiple.
15815 (arm_gen_store_multiple_1): New function, broken out of
15816 arm_gen_store_multiple.
15817 (arm_gen_multiple_op): New function, with code from
15818 arm_gen_load_multiple and arm_gen_store_multiple moved here.
15819 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
15820 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
15821 changed.
15822 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
15823 * config/arm/predicates.md (commutative_binary_operator): New.
15824 (load_multiple_operation, store_multiple_operation): Handle more
15825 variants of these patterns with different starting offsets. Handle
15826 Thumb-1.
15827 * config/arm/arm.md: Include "ldmstm.md".
15828 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
15829 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
15830 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
15831 peepholes): Delete.
15832 * config/arm/ldmstm.md: New file.
15833 * config/arm/arm-ldmstm.ml: New file.
15834
15835 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
15836 if statement which adds extra costs to frame-related expressions.
15837
15838 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15839
15840 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
15841
15842 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
15843
15844 PR target/45142
15845 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
15846 alternative 2.
15847 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
15848 split V4SI operands.
15849
15850 2010-08-01 Anatoly Sokolov <aesok@post.ru>
15851
15852 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15853 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
15854 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
15855 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
15856
15857 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
15858
15859 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
15860 LOCAL_INCLUDE_DIR.
15861
15862 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
15863
15864 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
15865 used in the call to optab_for_tree_code. Fix the second
15866 is_widening_mult_p call. Check that both unwidened operands
15867 have the same sign.
15868
15869 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
15870
15871 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
15872
15873 2010-07-31 Anatoly Sokolov <aesok@post.ru>
15874
15875 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
15876
15877 2010-07-30 DJ Delorie <dj@redhat.com>
15878
15879 * config/rx/predicates.md (rx_constshift_operand): New.
15880 * config/rx/rx.md (zs_cond): New.
15881 (cbranchsi4): Remove mode.
15882 (*cbranchsi4_<code>): Likewise.
15883 (*tstbranchsi4_<code>): New.
15884 (*tstbranchsi4r_<code>): New.
15885 (*tstbranchsi4m_eq): New.
15886 (*tstbranchsi4m_ne): New.
15887 (cbranchsf4): Remove mode.
15888 (*cbranchsf4_<code>): Likewise.
15889
15890 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
15891
15892 * rtlanal.c (simplify_subreg_regno): Don't treat
15893 HARD_FRAME_POINTER_REGNUM specially.
15894
15895 2010-07-30 Joseph Myers <joseph@codesourcery.com>
15896
15897 * common.opt (-G): Don't define option here.
15898 * config/g.opt: New.
15899 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
15900 rs6000/powerpc and score targets.
15901 * opts.c (common_handle_option): Don't handle -G here.
15902 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
15903 * config/frv/frv.c (frv_handle_option): Handle -G.
15904 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
15905 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
15906 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
15907 * config/mips/mips.c (mips_handle_option): Handle -G.
15908 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
15909 * config/score/score.c (score_handle_option): Handle -G.
15910
15911 2010-07-30 Anatoly Sokolov <aesok@post.ru>
15912
15913 * config/mmix/mmix.c: Include basic-block.h.
15914
15915 2010-07-30 Jakub Jelinek <jakub@redhat.com>
15916
15917 PR debug/45055
15918 PR rtl-optimization/45137
15919 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
15920 prototypes.
15921 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
15922 New functions.
15923 * combine.c (next_nonnote_nondebug_insn): Removed.
15924 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
15925 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
15926 * sched-deps.c (sched_analyze_insn): Likewise.
15927 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
15928 * rtlanal.c (canonicalize_condition): Likewise.
15929 * postreload.c (reload_combine_recognize_pattern): Likewise.
15930 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
15931
15932 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
15933
15934 * config/i386/i386.md (int_cond): Remove code iterator.
15935 (fp_cond): Ditto.
15936 (cbranch<mode>4): Use ordered_comparison_operator predicate
15937 for operator0.
15938 (cstore<mode>4): Ditto for operator1.
15939 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
15940 (add<mode>cc): ditto.
15941
15942 2010-07-30 Richard Guenther <rguenther@suse.de>
15943
15944 PR middle-end/45141
15945 * expr.c (expand_expr_real_1): Check for not handled base address.
15946
15947 2010-07-30 Richard Guenther <rguenther@suse.de>
15948
15949 * ipa-prop.c (ipa_modify_formal_parameters): Use
15950 build_distinct_type_copy.
15951
15952 2010-07-30 Anthony Green <green@moxielogic.com>
15953
15954 * config/moxie/rtems.h: New file.
15955 * config.gcc: Add moxie-rtems support.
15956
15957 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
15958
15959 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
15960 df flags as in run_fast_df_dce.
15961
15962 2010-07-29 Jakub Jelinek <jakub@redhat.com>
15963
15964 Revert:
15965 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
15966
15967 * rtl.def (NOTE): Swap operands 4 and 5.
15968 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
15969 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
15970 Adjust accordingly.
15971 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
15972
15973 2010-07-29 Jakub Jelinek <jakub@redhat.com>
15974
15975 PR debug/45110
15976 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
15977 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
15978 (gen_subprogram_die): Likewise. Remove it when removing declaration's
15979 formal parameters.
15980 (gen_decl_die): Change return type to dw_die_ref, return what
15981 gen_formal_parameter_die returned.
15982
15983 2010-07-29 Martin Jambor <mjambor@suse.cz>
15984
15985 * dbgcnt.def (eipa_sra): New counter.
15986 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
15987
15988 2010-07-29 Xinliang David Li <davidxl@google.com>
15989
15990 PR bootstrap/45119
15991 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
15992 in revision 162652.
15993
15994 2010-07-29 Richard Guenther <rguenther@suse.de>
15995
15996 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
15997 (TV_TREE_STORE_CCP): Likewise.
15998 (TV_TREE_REDPHI): Likewise.
15999
16000 2010-07-29 Richard Guenther <rguenther@suse.de>
16001
16002 * double-int.h (double_int_and_not): New function.
16003 * combine.c (try_combine): Use it.
16004 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
16005
16006 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
16007
16008 PR rtl-optimization/42575
16009 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
16010 Argument AU removed. All callers changed. Ignore artificial refs.
16011 Use return value of df_word_lr_simulate_defs to decide whether an insn
16012 is necessary.
16013 (fast_dce): Rename arg to WORD_LEVEL.
16014 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
16015 static.
16016 (pass_fast_rtl_byte_dce): Delete.
16017 * dce.h (run_word_dce): Declare.
16018 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
16019 All callers changed. Simplify code to only deal with two-word regs.
16020 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
16021 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
16022 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
16023 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
16024 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
16025 (df_word_lr_mark_ref): Declare.
16026 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
16027 df_word_lr_simulate_uses): Declare or rename from byte variants.
16028 (df_byte_lr_simulate_artificial_refs_at_top,
16029 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
16030 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
16031 declarations.
16032 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
16033 (enum df_mm): Delete.
16034 * df-byte-scan.c: Delete file.
16035 * df-problems.c (df_word_lr_problem_data): Renamed from
16036 df_byte_lr_problem_data, all members deleted except for
16037 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
16038 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
16039 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
16040 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
16041 df_byte_lr_confluence_0): Delete functions.
16042 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
16043 callers changed.
16044 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
16045 Don't initialize members that were deleted, don't try to discover data
16046 about registers. Ignore hard regs.
16047 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
16048 (df_word_lr_mark_ref): New function.
16049 (df_word_lr_bb_local_compute): Renamed from
16050 df_byte_bb_lr_local_compute; all callers changed. Use
16051 df_word_lr_mark_ref. Assert that artificial refs don't include
16052 pseudos. Ignore hard registers.
16053 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
16054 Assert that exit block uses don't contain pseudos.
16055 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
16056 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
16057 callers changed. Ignore hard regs.
16058 (df_word_lr_transfer_function): Renamed from
16059 df_byte_lr_transfer_function; all callers changed.
16060 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
16061 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
16062 changed.
16063 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
16064 callers changed.
16065 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
16066 confluence operator 0 set to NULL.
16067 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
16068 callers changed.
16069 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
16070 Return bool, true if bitmap changed or insn otherwise necessary.
16071 All callers changed. Simplify using df_word_lr_mark_ref.
16072 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
16073 all callers changed. Simplify using df_word_lr_mark_ref.
16074 * lower-subreg.c: Include "dce.h"
16075 (decompose_multiword_subregs): Call run_word_dce if df available.
16076 * Makefile.in (lower-subreg.o): Adjust dependencies.
16077 (df-byte-scan.o): Delete.
16078 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
16079
16080 2010-07-29 Richard Guenther <rguenther@suse.de>
16081
16082 * tree.c (build_vector): Assert that the vector constant
16083 has enough elements.
16084 (build_vector_from_ctor): Pad with trailing zeros.
16085
16086 2010-07-29 Richard Guenther <rguenther@suse.de>
16087
16088 PR tree-optimization/45120
16089 * tree-ssa-structalias.c (get_constraint_for_component_ref):
16090 Handle offset in DEREFs properly.
16091 (get_constraint_for_1): Handle MEM_REF offset properly.
16092
16093 2010-07-29 Richard Guenther <rguenther@suse.de>
16094
16095 PR middle-end/45034
16096 * convert.c (convert_to_integer): Always use an unsigned
16097 type for narrowed negate and bitwise not.
16098
16099 2010-07-29 Ira Rosen <irar@il.ibm.com>
16100
16101 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
16102 to outer loop when creating reduction epilogue for double reduction,
16103 and switch back to the inner loop when updating the phi nodes.
16104 Update uses of outer loop exit phi nodes in double reduction (instead
16105 of uses of reduction).
16106
16107 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16108
16109 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
16110 popcount on power7 and parity on power6 systems.
16111 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
16112 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
16113 instructions.
16114
16115 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
16116 (UNSPEC_PARITY): Ditto.
16117 (SFDF): New iterator for SF/DF.
16118 (rreg2): New mode attribute for floating register constraint.
16119 (TARGET_FLOAT): New mode attribute for whether single/double float
16120 is supported.
16121 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
16122 pattern.
16123 (parity<mode>2_cmpb): New insn for parity on power6 and newer
16124 machines.
16125 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
16126 pattern. Add support for fcpsgn instruction added in power6.
16127 (copysignsf3): Delete.
16128 (copysigndf3): Delete.
16129 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
16130 instead of if_then_else in RTL to avoid problems with -0.
16131
16132 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
16133 of if_then_else to mirror scalar code.
16134 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
16135 rs6000.md.
16136
16137 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
16138 instead of if_then_else.
16139
16140 2010-07-28 Xinliang David Li <davidxl@google.com>
16141
16142 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
16143 (dump_cand): Dump var_before/after.
16144 (htab_inv_expr_eq): New function.
16145 (htab_inv_expr_hash): New function.
16146 (tree_ssa_iv_optimize_init): Support pseudo invariants.
16147 (add_candidate_1): consider base type precision.
16148 (set_use_iv_cost): New parameter.
16149 (adjust_setup_cost): Use profile information.
16150 (get_address_cost): Do not hard code width in computing address
16151 offset limits.
16152 (compare_aff_trees): New function.
16153 (get_loop_invariant_expr_id): New function.
16154 (get_computation_cost_at): New parameter and use profile information.
16155 (get_computation_cost): New parameter.
16156 (determine_use_iv_cost_generic): Pass new parameter.
16157 (determine_use_iv_cost_address): Ditto.
16158 (determine_use_iv_cost_condition): Ditto.
16159 (autoinc_possible_for_pair): Ditto.
16160 (determine_use_iv_costs): More dumps.
16161 (iv_ca_get_num_inv_exprs): New function.
16162 (iv_ca_recount_cost): Consider loop invariants in register pressure
16163 cost.
16164 (iv_ca_add_use): New parameter.
16165 (iv_ca_dump): Better dumping.
16166 (iv_ca_extend): New parameter.
16167 (try_add_cand_for): Attempt to get better partial solution.
16168 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
16169 (create_new-ivs): More dumps.
16170 (rewrite_use_compare): Ditto.
16171 (free_loop_data): More cleanup.
16172 (treee_ssa_iv_optimize_finalize): Ditto.
16173
16174 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
16175
16176 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
16177 * config/i386/i386.c (ix86_profile_before_prologue): New.
16178 (override_options): Add special handling for -mfentry.
16179 (ix86_function_regparm): Likewise.
16180 (ix86_function_sseregparm): Likewise.
16181 (ix86_frame_pointer_required): Likewise.
16182 (ix86_expand_prologue): Check for ms_hook_prologue.
16183 (x86_function_profiler): Adjust mcount output.
16184 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
16185 * config/i386/i386.opt (mfentry): New.
16186 * doc/invoke.texi (mfentry): Add documentation.
16187 * doc/tm.texi: Regenerated..
16188 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
16189 * final.c (final_start_function): Replace macro
16190 PROFILE_BEFORE_PROLOGUE by target hook.
16191 * function.c (thread_prologue_and_epilogue_insns): Likewise.
16192 * target.def (profile_before_prologue): New hook.
16193 * targhooks.c (default_profile_before_prologue): New.
16194 * targhooks.h (default_profile_before_prologue): New.
16195
16196 2010-07-28 Jakub Jelinek <jakub@redhat.com>
16197
16198 PR debug/45105
16199 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
16200
16201 PR debug/45103
16202 * dwarf2out.c (dwarf2out_var_location): Always consider
16203 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
16204
16205 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
16206
16207 PR rtl-optimization/45107
16208 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
16209
16210 2010-07-28 Richard Guenther <rguenther@suse.de>
16211
16212 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
16213 (set_lattice_value): Do not query an old default value.
16214 (get_value_for_expr): New function. Properly canonicalize
16215 float values.
16216 (ccp_visit_phi_node): Use it.
16217
16218 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
16219
16220 * config/arm/arm.c (arm_pcs_default): Remove static.
16221 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
16222 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
16223 (arm_pcs_default): Declare.
16224
16225 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
16226
16227 * config/rs6000/rs6000.c (rs6000_override_options):
16228 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
16229 ... to darwin_rs6000_override_options.
16230 (rs6000_return_in_memory): Update preceding comment for darwin
16231 64 bit ABI. Use TARGET_MACHO inline.
16232 (rs6000_darwin64_struct_check_p): New.
16233 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
16234 (function_arg): Likewise.
16235 (rs6000_arg_partial_bytes): Likewise.
16236 (rs6000_function_value): Likewise.
16237
16238 2010-07-28 Andi Kleen <ak@linux.intel.com>
16239
16240 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
16241
16242 2010-07-28 Richard Guenther <rguenther@suse.de>
16243
16244 PR middle-end/44903
16245 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
16246 targets try harder to not generate unaligned accesses.
16247
16248 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
16249
16250 PR rtl-optimization/45101
16251 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
16252 for gcse-las.
16253
16254 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
16255
16256 PR tree-optimization/44885
16257 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
16258 with non-aliased component.
16259
16260 2010-07-28 Joseph Myers <joseph@codesourcery.com>
16261
16262 * config/darwin-driver.c (SWITCH_TAKES_ARG,
16263 WORD_SWITCH_TAKES_ARG): Remove.
16264 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
16265 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
16266 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
16267 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
16268 definitions from gcc.c.
16269 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
16270 defaults.h.
16271 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
16272 Move to defaults.h.
16273 * opts-common.c: Include tm.h.
16274 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
16275 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
16276 Handle more than one argument. Set canonical_option_num_elements.
16277 (decode_cmdline_options_to_array): Set
16278 canonical_option_num_elements and trailing elements of
16279 canonical_option.
16280 * opts.h (struct cl_decoded_option): Allow four elements in
16281 canonical_option. Add field canonical_option_num_elements.
16282 * Makefile.in (opts-common.o): Update dependencies.
16283
16284 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
16285
16286 PR middle-end/44790
16287 PR middle-end/44993
16288 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
16289 sure the base has address_mode before adding the offset.
16290
16291 2010-07-27 Xinliang David Li <davidxl@google.com>
16292
16293 * tree-flow.h (create_mem_ref): Add one new parameter.
16294 * tree-ssa-address.c (create_mem_ref): New parameter.
16295 (addr_to_parts): Ditto.
16296 (move_variant_to_index): New function.
16297 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
16298
16299 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
16300
16301 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
16302 4 and 5.
16303 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
16304 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
16305 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
16306 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
16307 CODE_LABELs and NOTEs.
16308 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
16309 * combine.c (try_combine): Likewise.
16310 * ira.c (setup_prohibited_mode_move_regs): Likewise.
16311 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
16312
16313 2010-07-27 Joseph Myers <joseph@codesourcery.com>
16314
16315 * coretypes.h (struct cl_option_handlers): Declare.
16316 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
16317 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
16318 * langhooks-def.h (lhd_handle_option): Declare.
16319 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
16320 * langhooks.c (lhd_handle_option): New.
16321 * langhooks.h (struct lang_hooks): Update prototype and return
16322 value type of handle_option hook.
16323 * optc-gen.awk: Generate target_flags_explicit definition for the
16324 driver.
16325 * opts-common.c: Include diagnostic.h.
16326 (handle_option): Move from opts.c. Update prototype and return
16327 value type. Use handlers structure.
16328 (read_cmdline_option): Move from opts.c. Update prototype. Use
16329 handlers structure.
16330 (set_option): Move from opts.c.
16331 * opts.c (common_handle_option): Update prototype and return value
16332 type. Update calls to handle_option and enable_warning_as_error.
16333 (unknown_option_callback, post_handling_callback,
16334 lang_handle_option, target_handle_option): New.
16335 (handle_option, read_cmdline_option): Move to opts-common.c.
16336 (read_cmdline_options): Update prototype. Update call to
16337 read_cmdline_option.
16338 (decode_options): Initialize and use handlers structure.
16339 (set_option): Move to opts-common.c.
16340 (enable_warning_as_error): Update prototype. Update call to
16341 handle_option.
16342 * opts.h (struct cl_option_handler_func, struct
16343 cl_option_handlers): New.
16344 (handle_option, enable_warning_as_error): Update prototypes.
16345 (read_cmdline_option): Declare.
16346 * Makefile.in (opts-common.o): Update dependencies.
16347
16348 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16349
16350 * config/arm/arm.c (params.h): Include.
16351 (arm_override_options): Tune gcse-unrestricted-cost.
16352 * config/arm/t-arm (arm.o): Define dependencies.
16353
16354 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16355
16356 PR target/42495
16357 PR middle-end/42574
16358 * basic-block.h (get_dominated_to_depth): Declare.
16359 * dominance.c (get_dominated_to_depth): New function, use
16360 get_all_dominated_blocks as a base.
16361 (get_all_dominated_blocks): Use get_dominated_to_depth.
16362
16363 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
16364 (hoist_exprs): Remove.
16365 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
16366 (compute_code_hoist_vbeinout): Add debug print outs.
16367 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
16368
16369 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
16370 quadratic behavior.
16371 * params.h (MAX_HOIST_DEPTH): New macro.
16372 * doc/invoke.texi (max-hoist-depth): Document.
16373
16374 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16375
16376 PR rtl-optimization/40956
16377 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
16378 constants.
16379
16380 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16381
16382 PR target/42495
16383 PR middle-end/42574
16384 * config/arm/arm.c (legitimize_pic_address): Use
16385 gen_calculate_pic_address pattern to emit calculation of PIC address.
16386 (will_be_in_index_register): New function.
16387 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
16388 (thumb1_legitimate_address_p): Use it provided !strict_p.
16389 * config/arm/arm.md (calculate_pic_address): New expand and split.
16390
16391 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16392
16393 PR target/42495
16394 PR middle-end/42574
16395 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
16396 * config/arm/arm.md (define_split "J", define_split "K"): Make
16397 IRA/reload friendly.
16398
16399 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16400
16401 * gcse.c (insert_insn_end_basic_block): Update signature, remove
16402 unused checks.
16403 (pre_edge_insert, hoist_code): Update.
16404
16405 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16406
16407 PR target/42495
16408 PR middle-end/42574
16409 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
16410
16411 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16412
16413 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
16414
16415 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16416
16417 PR rtl-optimization/40956
16418 PR target/42495
16419 PR middle-end/42574
16420 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
16421 for hoisting.
16422 (hoist_code): Count occurences in current block too.
16423
16424 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16425
16426 * gcse.c (struct expr:max_distance): New field.
16427 (doing_code_hoisting_p): New static variable.
16428 (want_to_gcse_p): Change signature. Allow constrained hoisting of
16429 simple expressions, don't change behavior for PRE. Set max_distance.
16430 (insert_expr_in_table): Set new max_distance field.
16431 (hash_scan_set): Update.
16432 (hoist_expr_reaches_here_p): Stop search after max_distance
16433 instructions.
16434 (find_occr_in_bb): New static function. Use it in ...
16435 (hoist_code): Calculate sizes of basic block before any changes are
16436 done. Pass max_distance to hoist_expr_reaches_here_p.
16437 (one_code_hoisting_pass): Set doing_code_hoisting_p.
16438
16439 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
16440 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
16441 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
16442 macros.
16443 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
16444 Document.
16445
16446 2010-07-27 Jeff Law <law@redhat.com>
16447 Maxim Kuvyrkov <maxim@codesourcery.com>
16448
16449 * gcse.c (compute_transpout, transpout): Remove, move logic
16450 to prune_expressions.
16451 (compute_pre_data): Move pruning of trapping expressions ...
16452 (prune_expressions): ... here. New static function.
16453 (compute_code_hoist_data): Use it.
16454 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
16455
16456 2010-07-27 Xinliang David Li <davidxl@google.com>
16457
16458 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
16459 (rewrite_use_address): Adjust iv update position when needed.
16460
16461 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
16462
16463 * dbgcnt.def (hoist_insn): New debug counter.
16464 * gcse.c (hoist_code): Use it.
16465
16466 2010-07-27 Xinliang David Li <davidxl@google.com>
16467
16468 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
16469 (niter_for_single_dom_exit): Passes additional parameter.
16470 (iv_period): Fix comments.
16471 (may_eliminate_iv): Handles multiple exit loops properly.
16472 (free_tree_niter_desc): New function.
16473 (free_loop_data): Frees up loop iteration descriptors.
16474
16475 2010-07-27 Jakub Jelinek <jakub@redhat.com>
16476
16477 PR target/44542
16478 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
16479 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
16480 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
16481 (expand_one_var): Don't consider DECL_ALIGN for variables for
16482 which expand_one_stack_var_at has been already called.
16483
16484 PR testsuite/44701
16485 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
16486 constraints on IA-64.
16487
16488 2010-07-27 Jie Zhang <jie@codesourcery.com>
16489
16490 PR target/44290
16491 Revert:
16492 2010-07-23 Jie Zhang <jie@codesourcery.com>
16493
16494 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
16495 false if ! tree_versionable_function_p.
16496
16497 2010-07-27 Jakub Jelinek <jakub@redhat.com>
16498
16499 * dwarf2out.c (add_data_member_location_attribute): Use
16500 add_AT_unsigned instead of add_AT_int if offset is non-negative.
16501
16502 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
16503
16504 * postreload.c (try_replace_in_use): New static function.
16505 (reload_combine_recognize_const_pattern): Use it here. Allow
16506 substituting into a final add insn, and substituting into a memory
16507 reference in an insn that sets the reg.
16508
16509 2010-07-27 Joseph Myers <joseph@codesourcery.com>
16510
16511 * common.opt (o): Add MissingArgError.
16512 * doc/options.texi (MissingArgError): Document.
16513 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
16514 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
16515 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
16516 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
16517 * langhooks.h (struct lang_hooks): Remove missing_argument.
16518 * optc-gen.awk: Handle MissingArgError and output new structure
16519 field initializers.
16520 * opts.c (read_cmdline_option): Use missing_argument_error field
16521 instead of missing_argument langhook.
16522 * opts.h (struct cl_option): Add missing_argument_error field.
16523 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
16524
16525 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
16526
16527 PR target/29090
16528 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
16529 Darwin64 ABI, for zero-sized objects.
16530
16531 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
16532
16533 PR target/35491
16534 PR target/29090
16535
16536 Merge from Apple local 4.2.1.
16537 2005-05-11 Stan Shebs <shebs@apple.com>
16538 Fix 64-bit varargs for Darwin (Radar 4028089).
16539 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
16540 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
16541 Add argument, add case for 8-byte register half-filled with a float.
16542 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
16543 single-precision floats specially.
16544
16545 2010-07-27 Ira Rosen <irar@il.ibm.com>
16546
16547 PR tree-optimization/44152
16548 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
16549 complex numbers for further check.
16550 (vect_supported_load_permutation_p): Check nodes with
16551 complex numbers.
16552
16553 2010-07-27 Joseph Myers <joseph@codesourcery.com>
16554
16555 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
16556 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
16557 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
16558 (LANG_HOOKS_INITIALIZER): Add new hooks.
16559 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
16560 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
16561 and complain_wrong_lang_p. Update init_options prototype.
16562 * c-objc-common.c (c_initialize_diagnostics): First call
16563 c_common_initialize_diagnostics.
16564 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
16565 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
16566 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
16567 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
16568 (hook_uint_void_0): New.
16569 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
16570 (hook_uint_void_0): New.
16571 * opts-common.c (decode_cmdline_option,
16572 decode_cmdline_options_to_array): Also fill in canonical_option field.
16573 * opts.c (complain_wrong_lang): Use langhook to determine whether
16574 to complain instead of special-casing LTO.
16575 (decode_options): Separate lang_mask determination with
16576 option_lang_mask hook from call of init_options hook.
16577 * opts.h (struct cl_decoded_option): Add canonical_option.
16578
16579 2010-07-27 Jakub Jelinek <jakub@redhat.com>
16580
16581 PR tree-optimization/45083
16582 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
16583
16584 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
16585
16586 * postreload.c (reload_combine_recognize_const_pattern): Move test
16587 for limiting the insn movement to the right scope.
16588
16589 PR rtl-optimization/45051
16590 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
16591 than reg_mentioned_p.
16592
16593 2010-07-26 Richard Henderson <rth@redhat.com>
16594
16595 PR target/44132
16596 * tree-emutls.c: New file.
16597 * Makefile.in (OBJS-common): Add it.
16598 * tree-pass.h (pass_ipa_lower_emutls): Declare.
16599 * passes.c (init_optimization_passes): Add it.
16600
16601 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
16602 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
16603 * expr.c (emutls_var_address): Delete.
16604 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
16605 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
16606 (emutls_finish): Delete.
16607 * toplev.c (compile_file): Don't call it.
16608 * tree.h (emutls_decl): Delete.
16609 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
16610 (emutls_finish, emutls_finalize_control_var): Delete.
16611 (emutls_object_type): Move to tree-emutls.c.
16612 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
16613 default_emutls_var_fields, get_emutls_object_type,
16614 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
16615 default_emutls_var_init): Likewise.
16616 (get_variable_section): Don't special case emutls.
16617 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
16618 default_elf_select_section, default_unique_section,
16619 default_encode_section_info): Likewise.
16620 * varpool.c (decide_is_variable_needed): Likewise.
16621 * gimple-iterator.c (update_call_edge_frequencies): New
16622 (gsi_insert_on_edge_immediate): Use it.
16623 (gsi_insert_seq_on_edge_immediate): Likewise.
16624 (gsi_commit_one_edge_insert): Likewise.
16625
16626 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
16627 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
16628 (x86_64_elf_unique_section): Likewise.
16629
16630 2010-07-26 Jan Hubicka <jh@suse.cz>
16631
16632 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
16633 GTY((skip)).
16634
16635 2010-07-26 Anatoly Sokolov <aesok@post.ru>
16636
16637 * target.def (output_source_filename): New hook.
16638 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
16639 * doc/tm.texi: Regenerate.
16640 * toplev.c (output_file_directive) Remove function.
16641 * toplev.h (output_file_directive) Remove.
16642 * output.h (default_asm_output_source_filename,
16643 output_file_directive): Declare.
16644 * varasm.h (default_asm_output_source_filename,
16645 output_file_directive): New functions.
16646
16647 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
16648 * config/mips/mips-protos.h (mips_output_filename): Remove.
16649 * config/mips/mips.c (mips_output_filename): Make Static.
16650 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
16651
16652 2010-07-26 Richard Guenther <rguenther@suse.de>
16653
16654 PR tree-optimization/43784
16655 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
16656 if the destination is used by the call.
16657
16658 2010-07-26 Richard Guenther <rguenther@suse.de>
16659
16660 PR middle-end/45073
16661 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
16662 SSA updating on being in SSA form.
16663
16664 2010-07-26 Richard Guenther <rguenther@suse.de>
16665
16666 PR middle-end/45056
16667 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
16668
16669 2010-07-26 Richard Guenther <rguenther@suse.de>
16670
16671 PR tree-optimization/45071
16672 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
16673 adjust op->opcode.
16674
16675 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
16676
16677 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
16678 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
16679 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
16680 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
16681 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
16682 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
16683 save_r31, return_r31, save_interrupt, return_interrupt,
16684 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
16685 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
16686 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
16687 new ABI requirements.
16688 (save_r6_r9, L_callt_save_r6_r9): Remove.
16689 * config/v850/predicates.md (even_reg_operand, disp23_operand,
16690 const_float_1_operand const_float_0_operand): New Predicates.
16691 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
16692 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
16693 * config/v850/t-v850: Update multilibs for new target variants.
16694 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
16695 * config/v850/t-v850e: Likewise.
16696 * config/v850/v850.c (v850_issue_rate): New.
16697 (v850_strict_argument_naming): New.
16698 (function_arg): Modify to generate a different ABI.
16699 (print_operand): Update case 'z' to support float modes.
16700 (output_move_single): Modify to generate appropriate and better
16701 assembly.
16702 (v850_float_z_comparison_operator, v850_select_cc_mode,
16703 v850_float_nz_comparison_operator, v850_gen_float_compare,
16704 v850_gen_compare): New functions to support comparison of float values.
16705 (ep_memory_offset): Add support for V850E2 targets.
16706 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
16707 (INTERRUPT_REGPARM_NUM): Remove.
16708 (compute_register_save_size): Add extra case to save/restore long call.
16709 (use_prolog_function): New function to support prologue.
16710 (expand_prologue): Add support for V850E2 targets and modified
16711 as per the current ABI requirements.
16712 (expand_epilogue): Likewise.
16713 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
16714 (construct_save_jarl): Likewise.
16715 (construct_dispose_instruction): Update as per the current ABI
16716 requirements.
16717 (construct_prepare_instruction): Likewise.
16718 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
16719 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
16720 (CPP_SPEC): Updated to support v850e2 targets.
16721 (STRICT_ALIGNMENT): Modified.
16722 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
16723 (FIXED_REGISTERS): Likewise.
16724 (CALL_USED_REGISTERS): Likewise.
16725 (CONDITIONAL_REGISTER_USAGE): Updated.
16726 (HARD_REGNO_MODE_OK): Updated.
16727 (reg_class): Updated to add even registers.
16728 (REG_CLASS_NAMES): Likewise.
16729 (REG_CLASS_CONTENTS): Likewise.
16730 (REGNO_REG_CLASS): Updated for CC registers.
16731 (REG_CLASS_FROM_LETTER): Added support for even registers.
16732 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
16733 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
16734 ARG_POINTER_REGNUM): Updated.
16735 (FUNCTION_ARG_ADVANCE): Define.
16736 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
16737 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
16738 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
16739 (GO_IF_LEGITIMATE_ADDRESS): Updated.
16740 (SELECT_CC_MODE): Define.
16741 (REGISTER_NAMES): Updated to add psw and fcc registers.
16742 (ADDITIONAL_REGISTER_NAMES): Updated.
16743 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
16744 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
16745 * config/v850/v850.md (define_constants): Define new constants.
16746 (type): Update store,bit1,macc,div,fpu and single attributes.
16747 (cpu): New attribute.
16748 (cc): Add set_z attribute.
16749 (unsign23byte_load, sign23byte_load, unsign23hword_load,
16750 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
16751 23word_store): New instructions for 23-bit displacement load and store.
16752 (movqi_internal, movhi_internal): Update the attributes.
16753 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
16754 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
16755 the attributes.
16756 (v850_tst1): Modified using CC_REGNUM.
16757 (tstsi): Remove.
16758 (cmpsi): Modified as define_expand from define_insn.
16759 (cmpsi_insn, cmpsf, cmpdf): New instructions.
16760 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
16761 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
16762 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
16763 one_cmplsi2): Clobber the CC_REGNUM register.
16764 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
16765 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
16766 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
16767 (setf_insn, set_z_insn, set_nz_insn): New instructions for
16768 v850e2v3 target.
16769 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
16770 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
16771 targets.
16772 (sasf_1, sasf_2): Remove.
16773 (sasf): New instruction.
16774 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
16775 targets. CC_REGNUM register is clobbered and attributes are
16776 updated.
16777 (branch_z_normal, branch_z_invert, branch_nz_normal,
16778 branch_nz_invert): New branch related instructions.
16779 (jump): Updated the attributes.
16780 (switch): Update to support new targets. CC_REGNUM register is
16781 clobbered and attributes are updated.
16782 (call_internal_short, call_internal_long, call_value_internal_short,
16783 call_value_internal_long): Updated the attributes.
16784 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
16785 clobbered and attributes are updated.
16786 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
16787 Update to support new targets. CC_REGNUM register is clobbered.
16788 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
16789 instructions.
16790 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
16791 are updated.
16792 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
16793 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
16794 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
16795 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
16796 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
16797 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
16798 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
16799 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
16800 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
16801 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
16802 point instructions defined for V850e2v3 target.
16803 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
16804 Add support for V850E2 targets and CC_REGNUM register is clobbered.
16805 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
16806 support for new targets.
16807 * config/v850/v850-modes.def: New file.
16808 * config/v850/v850.opt(mstrict-align): Remove.
16809 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
16810 mv850e2v3): New command line options for V850.
16811 * config.gcc: Update the newly added files.
16812 * doc/invoke.texi: Update the newly added command line options for
16813 V850 target.
16814
16815 2010-07-26 Richard Guenther <rguenther@suse.de>
16816
16817 PR tree-optimization/45052
16818 * ipa-pure-const.c (check_stmt): Check volatileness.
16819
16820 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
16821
16822 PR target/44707
16823 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
16824 * config/sparc/sparc.c: Include reload.h.
16825 (legitimize_tls_address): Rename into...
16826 (sparc_legitimize_tls_address): ...this.
16827 (legitimize_pic_address): Rename into...
16828 (sparc_legitimize_pic_address): ...this.
16829 (sparc_expand_move): Adjust to above renaming.
16830 (sparc_tls_referenced_p): Likewise.
16831 (sparc_legitimize_tls_address): Likewise.
16832 (sparc_legitimize_pic_address): Likewise.
16833 (sparc_legitimize_address): Likewise.
16834 (sparc_output_mi_thunk): Likewise.
16835 (sparc_legitimize_reload_address): New global function. Recognize
16836 (lo_sum (high ...) ...) patterns generated by earlier passes.
16837 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
16838
16839 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
16840
16841 PR target/44484
16842 * config/sparc/predicates.md (memory_reg_operand): Delete.
16843 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
16844 (*sync_compare_and_swap): Encode the address form in the pattern.
16845 (*sync_compare_and_swapdi_v8plus): Likewise.
16846
16847 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
16848
16849 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
16850 Streamline paragraph on compatibility with the system compiler.
16851
16852 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
16853
16854 PR middle-end/45035
16855 * alias.c (true_dependence_1): Fix thinko in merge of old
16856 true_dependence and canon_true_dependence.
16857
16858 2010-07-23 Jan Hubicka <jh@suse.cz>
16859
16860 * lto-streamer-out.c (write_symbol): Fix visibilities of external
16861 references.
16862
16863 2010-07-23 Le-Chun Wu <lcwu@google.com>
16864
16865 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
16866 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
16867 and an unnecessary assignment.
16868 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
16869 self-assign warning.
16870 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
16871 unnecessary self-init.
16872
16873 2010-07-23 Richard Guenther <rguenther@suse.de>
16874
16875 PR lto/43071
16876 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
16877 for -flto and -fwhopr.
16878
16879 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
16880
16881 PR target/41943
16882 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
16883 (stmp-int-hdrs): Prefix/postfix headers by include_next.
16884 * config.gcc (user_headers_inc_next_pre): New.
16885 (user_headers_inc_next_post): Likewise.
16886 (*-w64-mingw*): Use for float.h post-fixing, and for
16887 stddef.h/stdarg.h pre-fixing by include_next.
16888 * configure.ac (user_headers_inc_next_post): New.
16889 (user_headers_inc_next_pre): New.
16890 * configure: Regenerated.
16891
16892 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16893
16894 * configure.ac: Don't disable TLS on Solaris 8/9 by default
16895 Set tga_func for Solaris 2/x86 resp. SPARC.
16896 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
16897 (LIB_THREAD_LDFLAGS_SPEC): Define.
16898 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
16899 * configure: Regenerate.
16900 * config.in: Regenerate.
16901 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
16902 -pthread, -threads, LIB_TLS_SPEC with -pthread.
16903 * doc/install.texi (Specific, *-*-solaris2*): Document use of
16904 alternate thread libraries on Solaris 8.
16905 Document TLS patch requirements.
16906 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
16907 Document tls.
16908
16909 PR target/18788
16910 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
16911 -shared.
16912
16913 2010-07-23 Jakub Jelinek <jakub@redhat.com>
16914
16915 * tree.h (struct tree_base): Add nameless_flag bitfield.
16916 (TYPE_NAMELESS, DECL_NAMELESS): Define.
16917 * omp-low.c (create_omp_child_function, scan_omp_parallel,
16918 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
16919 DECL_ARTIFICIAL where needed.
16920 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
16921 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
16922 has DECL_NAMELESS set.
16923
16924 2010-07-23 Martin Jambor <mjambor@suse.cz>
16925
16926 PR tree-optimization/44915
16927 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
16928 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
16929 (analyze_function): Likewise.
16930
16931 2010-07-23 Martin Jambor <mjambor@suse.cz>
16932
16933 PR tree-optimization/44914
16934 * tree-sra.c (sra_modify_function_body): Return true if CFG was
16935 changed, add purging dead eh edges.
16936 (ipa_sra_modify_function_body): Return true if CFG was changed,
16937 simplify purging dead eh edges.
16938 (modify_function): Return true if CFG was changed.
16939 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
16940 was changed.
16941 (ipa_early_sra): Likewise.
16942
16943 2010-07-23 Jie Zhang <jie@codesourcery.com>
16944
16945 PR target/44290
16946 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
16947 if "naked".
16948 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
16949 false if ! tree_versionable_function_p.
16950
16951 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
16952
16953 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
16954 * ipa-pure-const.c (special_builtlin_state): Remove
16955 BUILT_IN_ARGS_INFO case.
16956 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
16957 * builtins.c (expand_builtin): Likewise.
16958 (expand_builtin_args_info): Remove.
16959 * doc/tm.texi (__builtin_args_info): Remove.
16960 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
16961 * doc/tm.text.in: Likewise.
16962
16963 2010-07-23 Richard Guenther <rguenther@suse.de>
16964
16965 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
16966 (lto_symtab_merge_decls_2): Likewise.
16967 * tree-ssa.c (useless_type_conversion_p): Likewise.
16968 * lto-streamer-in.c (input_gimple_stmt): Likewise.
16969 * gimple.c (gtc_visited2, gtc_ob2): Remove.
16970 (struct type_pair_d): Make same_p an array indexed by mode.
16971 Update comment.
16972 (lookup_type_pair): Update initialization.
16973 (struct sccs): Adjust same_p type.
16974 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
16975 Adjust.
16976 (print_gimple_types_stats): Likewise.
16977 * gimple.h (enum gtc_mode): New.
16978 (gimple_types_compatible_p): Adjust prototype.
16979
16980 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
16981
16982 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
16983 again after processing insn.
16984
16985 2010-07-23 Jie Zhang <jie@codesourcery.com>
16986
16987 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
16988 proper words when !tree_versionable_function_p.
16989
16990 2010-07-23 Richard Guenther <rguenther@suse.de>
16991
16992 PR tree-optimization/45037
16993 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
16994
16995 2010-07-23 Jie Zhang <jie@codesourcery.com>
16996
16997 * doc/extend.texi: Remove IP2K from the description of naked attribute.
16998 Add MCORE instead.
16999
17000 2010-07-10 Andi Kleen <ak@linux.intel.com>
17001
17002 PR lto/44992
17003 * lto-opts.c (lto_write_options): Add NULL file_data argument to
17004 lto_get_section_name.
17005 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
17006 * lto-streamer-out.c (produce_asm): Likewise.
17007 (copy_function): Likewise.
17008 (produce_symtab): Likewise.
17009 (produce_asm_for_decls): Likewise.
17010 * lto-streamer.c (lto_get_section_name): Add file_data argument.
17011 Rewrite to add random postfix to LTO sections.
17012 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
17013 (lto_get_section_name): Add file_data argument to prototype.
17014
17015 2010-07-10 Andi Kleen <ak@linux.intel.com>
17016
17017 * lto-section-in.c (lto_section_name): Synchronize names
17018 with lto_get_section_name.
17019
17020 2010-07-10 Andi Kleen <ak@linux.intel.com>
17021
17022 * lto-opts.c (lto_read_file_options): Check for missing section.
17023
17024 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
17025
17026 * ira.c (check_allocation): Correctly handle the case where an allocno
17027 with two objects was allocated to a single reg.
17028
17029 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
17030
17031 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
17032 (is_widening_mult_p): Likewise.
17033 (convert_to_widen): Use them.
17034 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
17035 well as integer ones.
17036
17037 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
17038
17039 * alias.c (true_dependence_1): New function, merged version of
17040 true_dependence and canon_true_dependence.
17041 (true_dependence): Simplify.
17042 (canon_true_dependence): Simplify.
17043
17044 2010-07-22 Richard Henderson <rth@redhat.com>
17045
17046 PR target/45027
17047 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
17048 of V4SFmode for the SSE saves; increase stack alignment if needed.
17049 (ix86_gimplify_va_arg): Don't increase stack alignment here.
17050
17051 2010-07-22 Jakub Jelinek <jakub@redhat.com>
17052
17053 PR bootstrap/45028
17054 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
17055 call cprop_find_used_regs again via note_uses.
17056
17057 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
17058
17059 * alias.c (get_alias_set): Fix formatting issues.
17060
17061 2010-07-22 Steve Ellcey <sje@cup.hp.com>
17062
17063 PR middle-end/44878
17064 * stmt.c (expand_value_return): Call promote_function_mode with
17065 a for_return argument of 2 when returning by reference.
17066
17067 2010-07-22 Dodji Seketeli <dodji@redhat.com>
17068
17069 PR debug/45024
17070 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
17071 unit DIE if we can find the scope DIE.
17072
17073 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
17074
17075 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
17076 changed. Initialize OBJECT_SUBWORD.
17077 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
17078 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
17079 all callers changed.
17080 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
17081 (finish_allocno): Likewise.
17082 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
17083 (remove_low_level_allocnos): Likewise.
17084 (update_bad_spill_attribute): Likewise.
17085 (setup_min_max_allocno_live_range_point): Likewise.
17086 (sort_conflict_id_map): Likewise.
17087 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
17088 (ior_hard_reg_conflicts): New function.
17089 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
17090 (compress_conflict_vecs): Iterate over objects, not allocnos.
17091 (ira_add_live_range_to_object): New function.
17092 (object_range_compare_func): Renamed from allocno_range_compare_func.
17093 All callers changed.
17094 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
17095 subobjects, widen the min/max range of the lowest-order object to
17096 potentially include all other such low-order objects.
17097 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
17098 (check_allocation): Likewise. Use more fine-grained tests for register
17099 conflicts.
17100 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
17101 allocno subobjects.
17102 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
17103 choices about which bits to set in each set. Don't use
17104 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
17105 using the multiple sets we computed.
17106 (push_allocno_to_stack): Iterate over allocno subobjects.
17107 (all_conflicting_hard_regs_coalesced): New static function.
17108 (setup_allocno_available_regs_num): Use it.
17109 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
17110 subobjects.
17111 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
17112 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
17113 by ALLOCNO_NUM_OBJECTS.
17114 (calculate_spill_cost): Likewise.
17115 (color_pass): Express if statement in a more normal way.
17116 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
17117 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
17118 (setup_slot_coalesced_allocno_live_ranges): Likewise.
17119 (allocno_reload_assign): Likewise.
17120 (ira_reassign_pseudos): Likewise.
17121 (fast_allocation): Likewise.
17122 * ira-conflicts.c (build_conflict_bit_table): Likewise.
17123 (print_allocno_conflicts): Likewise.
17124 (ira_build_conflicts): Likewise.
17125 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
17126 callers changed. Test subword 0 of each allocno for conflicts.
17127 (build_object_conflicts): Renamed from build_allocno_conflicts. All
17128 callers changed. Iterate over allocno subobjects.
17129 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
17130 * ira-int.h (struct ira_allocno): New member: num_objects.
17131 Rename object to objects and change it into an array.
17132 (ALLOCNO_OBJECT): Add new argument N.
17133 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
17134 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
17135 (ior_hard_reg_conflicts): Declare.
17136 (ira_add_live_range_to_object): Declare.
17137 (ira_allocno_object_iterator): New.
17138 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
17139 (FOR_EACH_ALLOCNO_OBJECT): New macro.
17140 * ira-lives.c (objects_live): Renamed from allocnos_live; all
17141 uses changed.
17142 (allocnos_processed): New sparseset.
17143 (make_object_born): Renamed from make_allocno_born; take an
17144 ira_object_t argument. All callers changed.
17145 (make_object_dead): Renamed from make_allocno_dead; take an
17146 ira_object_t argument. All callers changed.
17147 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
17148 All callers changed.
17149 (mark_pseudo_regno_live): Iterate over allocno subobjects.
17150 (mark_pseudo_regno_dead): Likewise.
17151 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
17152 functions.
17153 (mark_ref_live): Detect subword accesses and call
17154 mark_pseudo_regno_subword_live as appropriate.
17155 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
17156 (process_bb_nodes_live): Deal with object-related updates first; set
17157 and test bits in allocnos_processed to avoid computing allocno
17158 statistics more than once.
17159 (create_start_finish_chains): Iterate over objects, not allocnos.
17160 (print_object_live_ranges): New function.
17161 (print_allocno_live_ranges): Use it.
17162 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
17163 and objects_live.
17164
17165 2010-07-22 Richard Guenther <rguenther@suse.de>
17166
17167 PR lto/42451
17168 * gimple.c (gtc_next_dfs_num): New global.
17169 (struct sccs): Make value a union, add integer same_p member.
17170 (gtc_visit): New function.
17171 (gimple_types_compatible_p_1): New function, split out from ...
17172 (gimple_types_compatible_p): ... here. Start a DFS walk here.
17173 (iterative_hash_gimple_type): Adjust for sccs change.
17174
17175 2010-07-22 Martin Jambor <mjambor@suse.cz>
17176
17177 PR tree-optimization/44891
17178 * tree-sra.c: Include gimple-pretty-print.h.
17179 (replace_uses_with_default_def_ssa_name): Renamed to
17180 get_repl_default_def_ssa_name, return the new SSA name instead of
17181 replacing the old one.
17182 (sra_modify_assign): Dump a message when removing a load, if the LHS
17183 is an SSA_NAME, do not do any propagation, just set the RHS to a
17184 default definition SSA NAME, type convert if necessary.
17185 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
17186
17187 2010-07-22 Richard Guenther <rguenther@suse.de>
17188
17189 PR tree-optimization/45017
17190 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
17191 TYPE_PRECISION of integral types in addition to size.
17192
17193 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
17194
17195 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
17196 when no C library is specified.
17197
17198 2010-07-22 Martin Jambor <mjambor@suse.cz>
17199
17200 * ipa-prop.h (struct ipa_node_params): Updated comment.
17201 (struct ipa_edge_args): Likewise.
17202 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
17203
17204 2010-07-22 Martin Jambor <mjambor@suse.cz>
17205
17206 * cgraphunit.c (verify_edge_count_and_frequency): New function.
17207 (verify_cgraph_node): Verify frequencies of indirect edges.
17208 * tree-inline.c (tree_function_versioning): Update frequencies of
17209 indirect edges.
17210
17211 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17212
17213 PR target/43698
17214 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
17215 Set *arm_rev to be predicable.
17216
17217 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
17218
17219 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
17220 (LINK_COMMAND_SPEC_A): New.
17221 (DSYMUTIL): New.
17222 (DSYMUTIL_SPEC): New.
17223 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
17224 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
17225
17226 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
17227
17228 * calls.c (load_register_parameters): Move check for zero
17229 sized items so that only the call to
17230 mem_overlaps_already_clobbered_arg_p () is protected.
17231
17232 2010-07-22 Jan Hubicka <jh@suse.cz>
17233
17234 * ipa-pure-const.c (varying_state): Break out from ...
17235 (get_function_state): ... here; always return varying_state
17236 when state would be NULL otherwise.
17237 (remove_node_data): Do not free varying state.
17238
17239 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
17240
17241 PR bootstrap/44970
17242 PR middle-end/45009
17243 * postreload.c: Include "target.h".
17244 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
17245 into account.
17246 (fixup_debug_insns): Don't copy the rtx.
17247 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
17248 Don't copy when replacing. Call fixup_debug_insns in the case where
17249 we merged one add with another.
17250 (reload_combine_recognize_pattern): Fail if there aren't any uses.
17251 Try harder to determine whether we're picking a valid index register.
17252 Don't set store_ruid for an insn we're going to scan in the
17253 next iteration.
17254 (reload_combine): Remove unused code.
17255 (reload_combine_note_use): When updating use information for
17256 an old insn, ignore a use that occurs after store_ruid.
17257 * Makefile.in (postreload.o): Update dependencies.
17258
17259 * function.c (record_hard_reg_sets): Restrict the previous change
17260 to cases where the incoming nominal mode is the same as the
17261 incoming promoted mode and everything happens in MODE_INT.
17262
17263 2010-07-21 Jakub Jelinek <jakub@redhat.com>
17264
17265 PR debug/45015
17266 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
17267 ASM_OPERANDS_OUTPUT_IDX.
17268 (adjust_insn): For inline asm with multiple sets ensure first
17269 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
17270 the insn.
17271
17272 2010-07-21 Richard Henderson <rth@redhat.com>
17273
17274 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
17275 comparison for avoiding xmm register saves. Emit the xmm register
17276 saves explicitly.
17277 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
17278 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
17279 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
17280 Remove patterns and the associated splitters.
17281
17282 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
17283
17284 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
17285 and imagine parts of a complex, so that they can have the same
17286 base and fall into the same group.
17287
17288 2010-07-21 Richard Guenther <rguenther@suse.de>
17289
17290 PR lto/45018
17291 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
17292 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
17293 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
17294
17295 2010-07-21 Martin Jambor <mjambor@suse.cz>
17296
17297 PR tree-optimization/44900
17298 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
17299 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
17300
17301 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
17302
17303 PR middle-end/44738
17304 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
17305
17306 2010-07-21 Richard Guenther <rguenther@suse.de>
17307
17308 PR middle-end/45013
17309 * tree-ssa.c (useless_type_conversion_p): Dispatch to
17310 gimple_types_compatible_p only when in lto.
17311 * gimple.c (gimple_types_compatible_p): Use canonical types
17312 to speed up comparison.
17313
17314 2010-07-21 Richard Guenther <rguenther@suse.de>
17315
17316 * tree-flow.h (referenced_var): Move define ...
17317 * tree-flow-inline.h (referenced_var): ... here as an inline
17318 function. Assert here ...
17319 * tree-dfa.c (referenced_var_lookup): ... instead of here.
17320 * tree-ssa.c (maybe_optimize_var): Check if the variable
17321 is in referenced vars.
17322 (execute_update_addresses_taken): Remove old broken check.
17323 * gimple-pretty-print.c (pp_points_to_solution): Use
17324 referenced_var_lookup.
17325 * tree-into-ssa.c (dump_decl_set): Likewise.
17326
17327 2010-07-21 Jakub Jelinek <jakub@redhat.com>
17328
17329 PR debug/45003
17330 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
17331 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
17332 ZERO_EXTEND here.
17333
17334 2010-07-20 Richard Henderson <rth@redhat.com>
17335
17336 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
17337
17338 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
17339
17340 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
17341 computing the sum of the stack pointer and a large constant.
17342 * config/arm/constraints.md (M): Remove superfluous parentheses.
17343 (Pc): New constraint.
17344
17345 2010-07-20 Jakub Jelinek <jakub@redhat.com>
17346
17347 PR debug/45006
17348 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
17349 operand's type if exp is tcc_unary class tree.
17350
17351 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
17352
17353 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
17354 Reverse sense of if_then_else condition.
17355
17356 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
17357
17358 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
17359 * config/rs6000/rs6000.c (rs6000_override_options): Set
17360 rs6000_block_move_inline_limit appropriately.
17361 (expand_block_move): Use rs6000_block_move_inline_limit.
17362 * doc/invoke.texi (mblock-move-inline-limit): Document.
17363
17364 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
17365
17366 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
17367 FROM and TO. All callers changed. Don't look for tracked uses,
17368 just scan the RTL for DEBUG_INSNs and substitute.
17369 (reload_combine_recognize_pattern): Call fixup_debug_insns.
17370 (reload_combine): Ignore DEBUG_INSNs.
17371
17372 2010-07-20 Jakub Jelinek <jakub@redhat.com>
17373
17374 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
17375 depth to 8 from 5.
17376
17377 PR debug/45003
17378 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
17379 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
17380 instead of the result's type.
17381
17382 2010-07-20 Richard Guenther <rguenther@suse.de>
17383
17384 PR tree-optimization/44977
17385 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
17386 SSA form.
17387
17388 2010-07-20 Richard Guenther <rguenther@suse.de>
17389
17390 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
17391 (lto_symtab_merge_decls_2): Likewise.
17392 * gimple.h (gimple_types_compatible_p): Declare.
17393 * gimple.c (gimple_queue_type_fixup): Remove.
17394 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
17395 (gimple_compatible_complete_and_incomplete_type_p): New function.
17396 (gimple_types_compatible_p): Adjust.
17397 (gimple_register_type): Remove type fixup code.
17398 (print_gimple_types_stats): Adjust.
17399 (free_gimple_type_tables): Likewise.
17400 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
17401 * tree-ssa.c (useless_type_conversion_p): Likewise.
17402
17403 2010-07-20 Richard Guenther <rguenther@suse.de>
17404
17405 PR middle-end/44971
17406 PR middle-end/44988
17407 * tree-ssa.c (maybe_optimize_var): New function split out from ...
17408 (execute_update_addresses_taken): ... here.
17409 (non_rewritable_mem_ref_base): Likewise.
17410 (execute_update_addresses_taken): Do not iterate over all referenced
17411 vars but just all local decls and parms.
17412 Properly check call and asm arguments and rewrite call arguments.
17413
17414 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
17415
17416 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
17417 to top level.
17418 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
17419 definitions ...
17420 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
17421 New macro.
17422 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
17423
17424 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
17425
17426 * gengtype.c (start_root_entry): New function, split out from
17427 write_root. Check whether V is null and raise an error if so.
17428 (write_field_root): Check for V being null. Don't raise an error here;
17429 set V to null instead.
17430 (write_root): Update comment above function. Use start_root_entry.
17431
17432 2010-07-19 Xinliang David Li <davidxl@google.com>
17433
17434 PR testsuite/44932
17435 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
17436 def edges.
17437 (find_uninit_use): Add dump.
17438 (is_use_properly_guarded): Ditto.
17439 (warn_uninitialized_phi): Ditto.
17440 (execute_late_warn_uninitialized): Ditto.
17441
17442 2010-07-19 Richard Guenther <rguenther@suse.de>
17443
17444 PR middle-end/44941
17445 * expr.c (emit_block_move_hints): Move zero size check first.
17446 Move asserts to more useful places.
17447 * calls.c (load_register_parameters): Check for zero size.
17448
17449 2010-07-19 Richard Henderson <rth@redhat.com>
17450
17451 * tree-optimize.c (execute_all_early_local_passes): New. Change
17452 cgraph_state here ...
17453 (execute_early_local_optimizations): ... not here. Remove.
17454 (pass_early_local_passes, pass_all_early_optimizations): Update.
17455
17456 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
17457
17458 * postreload.c (reload_combine_closest_single_use): Ignore the
17459 number of uses for DEBUG_INSNs.
17460 (fixup_debug_insns): New static function.
17461 (reload_combine_recognize_const_pattern): Use it. Don't let the
17462 main loop be affected by DEBUG_INSNs.
17463 Really disallow moving adds past a jump insn.
17464 (reload_combine_recognize_pattern): Don't update use_ruid here.
17465 (reload_combine_note_use): Do it here.
17466 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
17467
17468 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
17469
17470 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
17471 of a loop.
17472 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
17473
17474 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
17475
17476 * config/i386/darwin.h: Define darwin_emit_branch_islands.
17477 (TARGET_MACHO_BRANCH_ISLANDS): New.
17478 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
17479 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
17480 default value.
17481 * config/i386/i386.c (output_pic_addr_const): Do not emit
17482 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
17483 (x86_output_mi_thunk): Adjust symbol creation.
17484 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
17485 Remove out of date comment.
17486 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
17487 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
17488 (DARWIN_GENERATE_ISLANDS): Ditto.
17489 (output_call): Do not emit branch islands unless
17490 darwin_emit_branch_islands is set.
17491 * config/darwin.c: Declare darwin_emit_branch_islands.
17492 (machopic_indirect_data_reference): Do not emit unless
17493 darwin_emit_branch_islands is set.
17494 (darwin_override_options): Set darwin_emit_branch_islands
17495 where it is needed.
17496 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
17497
17498 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17499
17500 * doc/sourcebuild.texi (Effective-Target Keywords): Document
17501 sse_runtime, sse2_runtime.
17502
17503 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
17504
17505 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
17506 low half of a single-register SCmode return value before ORing
17507 it with the high half.
17508 * config/mips/mips16.S (MERGE_GPRf): Likewise.
17509
17510 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
17511
17512 PR target/44805
17513 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
17514 on all targets.
17515
17516 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
17517
17518 PR target/42235
17519 * postreload.c (reload_cse_move2add): Return bool, true if anything.
17520 changed. All callers changed.
17521 (move2add_use_add2_insn): Likewise.
17522 (move2add_use_add3_insn): Likewise.
17523 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
17524 reload_combine.
17525 (RELOAD_COMBINE_MAX_USES): Bump to 16.
17526 (last_jump_ruid): New static variable.
17527 (struct reg_use): New members CONTAINING_MEM and RUID.
17528 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
17529 (reload_combine_split_one_ruid, reload_combine_split_ruids,
17530 reload_combine_purge_insn_uses, reload_combine_closest_single_use
17531 reload_combine_purge_reg_uses_after_ruid,
17532 reload_combine_recognize_const_pattern): New static functions.
17533 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
17534 is true for our reg and that we have available index regs.
17535 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
17536 callers changed. Use them to initialize fields in struct reg_use.
17537 (reload_combine): Initialize last_jump_ruid. Be careful when to
17538 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
17539 Call reload_combine_recognize_const_pattern.
17540 (reload_combine_note_store): Update REAL_STORE_RUID field.
17541
17542 2010-07-16 Jason Merrill <jason@redhat.com>
17543
17544 * Makefile.in (opts-common.o): Depend on options.h.
17545
17546 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
17547
17548 * tree.c (build_common_builtin_nodes): Use build_function_type_list
17549 instead of build_function_type.
17550 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
17551 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
17552
17553 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
17554
17555 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
17556 do all the work.
17557 (rs6000_emit_int_cmove): Use function pointers for insn generation.
17558 Don't force values into registers unnecessarily.
17559 (output_isel): Assert that we're not given conditions we can't handle.
17560 Delete corresponding code.
17561 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
17562 scc_comparison_operator constraint. Permit 0 for the consequent
17563 operand. Permit any GPR for the alternative operand.
17564 (isel_unsigned_<mode>): Likewise.
17565
17566 2010-07-16 Jakub Jelinek <jakub@redhat.com>
17567
17568 PR target/44942
17569 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
17570 argument to const_tree.
17571 * config/i386/i386.c (function_arg_advance): If padding needs to be
17572 inserted before argument, increment cum->words by number of padding
17573 words as well.
17574 (contains_aligned_value_p): Change argument to const_tree.
17575 (ix86_function_arg_boundary): Change second argument to const_tree.
17576
17577 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
17578
17579 PR target/42235
17580 * function.c (record_hard_reg_sets): New static function.
17581 (assign_parm_setup_reg): If an optab for extending exists and the
17582 generated code clobbbers no hard regs, emit the insn directly and
17583 create a REG_EQUIV note.
17584
17585 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
17586
17587 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
17588 TREE_CHAIN.
17589 * c-typeck.c (push_init_level): Likewise.
17590 (process_init_element): Likewise.
17591
17592 2010-07-15 Anatoly Sokolov <aesok@post.ru>
17593
17594 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
17595 (integer_three_node): Add.
17596 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
17597 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
17598 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
17599 of call build_int_cst.
17600 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
17601 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
17602 (find_interesting_uses_address): Ditto.
17603 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
17604 * tree-eh.c (lower_eh_constructs_2): Ditto.
17605 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
17606 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
17607 * expmed.c (expand_divmod): Ditto.
17608 * tree-mudflap.c (mx_register_decls): Ditto.
17609 * varasm.c (array_size_for_constructor): Ditto.
17610 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
17611 * c-parser.c (c_parser_postfix_expression): Ditto.
17612
17613 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
17614
17615 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
17616 New static variables.
17617 (reload_combine_recognize_pattern): New static function, broken out
17618 of reload_combine.
17619 (reload_combine): Use it. Only initialize first_index_reg and
17620 last_index_reg once.
17621
17622 2010-07-15 Richard Henderson <rth@redhat.com>
17623
17624 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
17625 when done.
17626
17627 2010-07-15 Jan Hubicka <jh@suse.cz>
17628
17629 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
17630 comdats for broken gold.
17631 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
17632
17633 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
17634
17635 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
17636
17637 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
17638
17639 * tree.h (DECL_CHAIN): Define.
17640 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
17641 * c-decl.c: Likewise.
17642 * c-parser.c: Likewise.
17643 * c-typeck.c: Likewise.
17644 * cfgexpand.c: Likewise.
17645 * cgraph.c: Likewise.
17646 * cgraphunit.c: Likewise.
17647 * combine.c: Likewise.
17648 * config/alpha/alpha.c: Likewise.
17649 * config/arm/arm.c: Likewise.
17650 * config/frv/frv.c: Likewise.
17651 * config/i386/i386.c: Likewise.
17652 * config/i386/winnt-cxx.c: Likewise.
17653 * config/ia64/ia64.c: Likewise.
17654 * config/iq2000/iq2000.c: Likewise.
17655 * config/mep/mep.c: Likewise.
17656 * config/mips/mips.c: Likewise.
17657 * config/pa/som.h: Likewise.
17658 * config/rs6000/rs6000.c: Likewise.
17659 * config/s390/s390.c: Likewise.
17660 * config/sh/sh.c: Likewise.
17661 * config/sh/symbian-cxx.c: Likewise.
17662 * config/sparc/sparc.c: Likewise.
17663 * config/spu/spu.c: Likewise.
17664 * config/stormy16/stormy16.c: Likewise.
17665 * config/vxworks.c: Likewise.
17666 * config/xtensa/xtensa.c: Likewise.
17667 * coverage.c: Likewise.
17668 * dbxout.c: Likewise.
17669 * dwarf2out.c: Likewise.
17670 * emit-rtl.c: Likewise.
17671 * expr.c: Likewise.
17672 * function.c: Likewise.
17673 * gimple-low.c: Likewise.
17674 * gimple-pretty-print.c: Likewise.
17675 * gimplify.c: Likewise.
17676 * integrate.c: Likewise.
17677 * ipa-inline.c: Likewise.
17678 * ipa-prop.c: Likewise.
17679 * ipa-split.c: Likewise.
17680 * ipa-struct-reorg.c: Likewise.
17681 * ipa-type-escape.c: Likewise.
17682 * langhooks.c: Likewise.
17683 * lto-cgraph.c: Likewise.
17684 * omp-low.c: Likewise.
17685 * stor-layout.c: Likewise.
17686 * tree-cfg.c: Likewise.
17687 * tree-complex.c: Likewise.
17688 * tree-dfa.c: Likewise.
17689 * tree-dump.c: Likewise.
17690 * tree-inline.c: Likewise.
17691 * tree-mudflap.c: Likewise.
17692 * tree-nested.c: Likewise.
17693 * tree-object-size.c: Likewise.
17694 * tree-pretty-print.c: Likewise.
17695 * tree-sra.c: Likewise.
17696 * tree-ssa-live.c: Likewise.
17697 * tree-ssa-loop-niter.c: Likewise.
17698 * tree-ssa-math-opts.c: Likewise.
17699 * tree-ssa-reassoc.c: Likewise.
17700 * tree-ssa-sccvn.c: Likewise.
17701 * tree-ssa-structalias.c: Likewise.
17702 * tree-tailcall.c: Likewise.
17703 * tree-vrp.c: Likewise.
17704 * tree.c: Likewise.
17705 * var-tracking.c: Likewise.
17706 * varasm.c: Likewise.
17707
17708 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17709
17710 PR target/44877
17711 * config/spu/spu.c (spu_expand_builtin_1): Allow references
17712 (as well as pointers) as argument to mask_for_load builtins.
17713
17714 2010-07-15 Richard Guenther <rguenther@suse.de>
17715
17716 PR tree-optimization/44946
17717 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
17718 with accessing only padding properly.
17719
17720 2010-07-15 Jan Hubicka <jh@suse.cz>
17721
17722 * ipa.c (function_and_variable_visibility): Variables marked as used
17723 should not be localized.
17724
17725 2010-07-15 Jan Hubicka <jh@suse.cz>
17726
17727 * cgraph.c: Include lto-streamer.h
17728 (change_decl_assembler_name): Work when assembler name hash is at place.
17729 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
17730 be sure to rename it to avoid name clash.
17731 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
17732 Localize hidden symbols only when locally defined.
17733
17734 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
17735
17736 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
17737
17738 2010-07-15 Magnus Granberg <zorry@gentoo.org>
17739 Kevin F. Quinn <kevquinn@gentoo.org>
17740
17741 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
17742 * common.opt: Add -Wtrampolines.
17743 * doc/invoke.texi: Add -Wtrampolines.
17744
17745 2010-07-15 Jie Zhang <jie@codesourcery.com>
17746
17747 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
17748 cortex_a8_issue_ls.
17749
17750 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
17751
17752 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
17753 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
17754
17755 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
17756
17757 * config/spu/spu.c (reg_names): Remove prototype.
17758 (call_used_regs): Likewise.
17759
17760 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
17761
17762 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
17763 "unused" with attribute "used".
17764 (__JCR_END__): Likewise.
17765 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
17766 "used" attribute.
17767 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
17768
17769 2010-07-14 Richard Guenther <rguenther@suse.de>
17770
17771 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
17772 (maybe_fixup_decls): Likewise.
17773 (input_gimple_stmt): Do not fixup anything.
17774 * lto-streamer-out.c (output_gimple_stmt): Make sure all
17775 non-automatic variable uses are wrapped inside a MEM_REF.
17776
17777 2010-07-14 Richard Henderson <rth@redhat.com>
17778
17779 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
17780 for functions.
17781 * varasm.c (assemble_variable): Remove early exit for functions;
17782 assert that we're given a variable.
17783
17784 2010-07-14 Jie Zhang <jie@codesourcery.com>
17785
17786 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
17787 cortex_a8_default when neon_type is not none.
17788
17789 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17790
17791 * lower-subreg.c (subreg_context): New static bitmap.
17792 (decompose_multiword_subregs): Allocate and free it.
17793 (find_decomposable_subregs): Set a bit in it for a register that
17794 occurs in a subreg that changes mode but not size.
17795 (can_decompose_p): Test it instead of non_decomposable_context.
17796
17797 2010-07-14 Richard Guenther <rguenther@suse.de>
17798
17799 PR tree-optimization/44824
17800 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
17801 is_gimple_mem_ref_addr.
17802 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
17803 non-decl_address_invariant_p addresses.
17804
17805 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17806
17807 * reload.c (find_reloads): Revert code to penalize small register
17808 classes that was brought in with the IRA merge.
17809
17810 2010-07-14 Richard Guenther <rguenther@suse.de>
17811
17812 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
17813 as base of ARRAY_REFs.
17814
17815 2010-07-14 Richard Guenther <rguenther@suse.de>
17816
17817 PR middle-end/44930
17818 * tree-pretty-print.c (do_niy): Do not print a newline.
17819
17820 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
17821
17822 * ira-int.h (struct ira_object): New.
17823 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
17824 (struct ira_allocno): Remove members min, max,
17825 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
17826 conflict_allocnos_num and conflict_vec_p. Add new member object.
17827 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
17828 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
17829 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
17830 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
17831 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
17832 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
17833 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
17834 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
17835 an ira_object_t rather than ira_allocno_t. All uses changed.
17836 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
17837 contains a vector of ira_object_t; all uses changed.
17838 (ira_objects_num): Declare variable.
17839 (ira_create_allocno_object): Declare function.
17840 (ira_conflict_vector_profitable_p): Adjust prototype.
17841 (ira_allocate_conflict_vec): Renamed from
17842 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
17843 (ira_allocate_object_conflicts): Renamed from
17844 ira_allocate_allocno_conflicts; first arg now ira_object_t.
17845 (struct ira_object_iterator): New.
17846 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
17847 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
17848 to conflict_vec_p. All uses changed.
17849 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
17850 Changed to take into account that conflicts are now tracked for
17851 objects.
17852 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
17853 Args changed to accept ira_object_t. All uses changed.
17854 (allocnos_conflict_p): New static function.
17855 (collected_conflict_objects): Renamed from collected_allocno_objects;
17856 now a vector of ira_object_t. All uses changed.
17857 (build_conflict_bit_table): Changed to take into account that
17858 conflicts are now tracked for objects.
17859 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
17860 (print_allocno_conflicts, ira_build_conflicts): Likewise.
17861 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
17862 setup_allocno_left_conflicts_size, allocno_reload_assign,
17863 fast_allocation): Likewise.
17864 * ira-lives.c (make_hard_regno_born, make_allocno_born)
17865 process_single_reg_class_operands, process_bb_node_lives): Likewise.
17866 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
17867 Likewise.
17868 * ira-build.c (ira_objects_num): New variable.
17869 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
17870 contains a vector of ira_object_t; all uses changed.
17871 (ira_object_id_map_vec): Corresponding change.
17872 (object_pool): New static variable.
17873 (initiate_allocnos): Initialize it.
17874 (finish_allocnos): Free it.
17875 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
17876 New functions.
17877 (ira_create_allocno): Don't set members that were removed.
17878 (ira_set_allocno_cover_class): Don't change conflict hard regs.
17879 (merge_hard_reg_conflicts): Changed to take into account that
17880 conflicts are now tracked for objects.
17881 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
17882 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
17883 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
17884 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
17885 setup_min_max_conflict_allocno_ids, ): Likewise.
17886 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
17887 to ira_object_t; all callers changed.
17888 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
17889 to ira_object_t, all callers changed.
17890 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
17891 to ira_object_t, all callers changed.
17892 (conflict_check, curr_conflict_check_tick): Renamed from
17893 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
17894 changed.
17895 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
17896 arg changed to ira_object_t, all callers changed.
17897 (create_cap_allocno): Call ira_create_allocno_object.
17898 (finish_allocno): Free the corresponding object.
17899 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
17900 callers changed. Adjusted for dealing with objects.
17901 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
17902 dealing with objects.
17903 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
17904
17905 * ira-int.h (struct live_range): Rename allocno member to object
17906 and change type to ira_object_t.
17907 (struct ira_object): New member live_ranges.
17908 (struct ira_allocno): Remove member live_ranges.
17909 (ALLOCNO_LIVE_RANGES): Remove.
17910 (OBJECT_LIVE_RANGES): New macro.
17911 (ira_create_live_range, ira_copy_live_range_list,
17912 ira_merge_live_range_list, ira_live_ranges_intersect_p,
17913 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
17914 * ira-build.c (ira_create_object): Initialize live ranges here.
17915 (ira_create_allocno): Not here.
17916 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
17917 changed to ira_object_t, all callers changed.
17918 (copy_live_range): Rename from copy_allocno_live_range, all callers
17919 changed.
17920 (ira_copy_live_range_list): Rename from
17921 ira_copy_allocno_live_range_list, all callers changed.
17922 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
17923 all callers changed.
17924 (ira_live_ranges_intersect_p): Rename from
17925 ira_allocno_live_ranges_intersect_p, all callers changed.
17926 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
17927 callers changed.
17928 (ira_finish_live_range_list): Rename from
17929 ira_finish_allocno_live_range_list, all callers changed.
17930 (change_object_in_range_list): Rename from change_allocno_in_range_list,
17931 last arg changed to ira_object_t, all callers changed.
17932 (finish_allocno): Changed to expect live ranges in the allocno's object.
17933 (move_allocno_live_ranges, copy_allocno_live_ranges,
17934 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
17935 ira_flattening, ira_build): Likewise.
17936 * ira-color.c (allocnos_have_intersected_live_ranges_p,
17937 slot_coalesced_allocno_live_ranges_intersect,
17938 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
17939 * ira-conflicts.c (build_conflict_bit_table): Likewise.
17940 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
17941 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
17942 make_allocno_dead, create_start_finish_chains,
17943 remove_some_program_points_and_update_live_ranges,
17944 ira_debug_live_range_list): Likewise.
17945
17946 * ira-int.h (ira_object_conflict_iterator): Rename from
17947 ira_allocno_conflict_iterator.
17948 (ira_object_conflict_iter_init): Rename from
17949 ira_allocno_conflict_iter_init, second arg changed to
17950 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
17951 FOR_EACH_ALLOCNO_CONFLICT.
17952 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
17953 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
17954 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
17955 * ira-conflicts.c (print_allocno_conflicts): Likewise.
17956
17957 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
17958
17959 PR other/44874
17960 * tree-dump.c (dump_options): Add enumerate_locals entry.
17961 Add TDF_NOID exclusion to all entry.
17962 * tree-dump.h (dump_enumerated_decls): Declare.
17963 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
17964 Don't display type uid.
17965 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
17966 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
17967 * tree-ssa-live.c: Include gimple.h.
17968 (numbered_tree_d): New struct.
17969 (numbered_tree): New typedef.
17970 (DEF_VEC_O (numbered_tree): New.
17971 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
17972 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
17973 (dump_enumerated_decls): Likewise.
17974 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
17975 debug info and flag_dump_final_insns, call dump_enumerated_decls.
17976 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
17977 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
17978
17979 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
17980
17981 * expmed.h (MAX_BITS_PER_WORD): Move to...
17982 * defaults.h (MAX_BITS_PER_WORD): ...here.
17983
17984 2010-07-13 DJ Delorie <dj@redhat.com>
17985
17986 * config/h8300/h8300.c (h8300_init_once): Default to
17987 -fstrict_volatile_bitfields.
17988
17989 * config/sh/sh.c (sh_override_options): Default to
17990 -fstrict_volatile_bitfields.
17991
17992 * config/rx/rx.c (rx_option_override): New.
17993
17994 * config/m32c/m32c.c (m32c_override_options): Default to
17995 -fstrict_volatile_bitfields.
17996
17997 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
17998
17999 * tree.h (build_function_call_expr): Delete.
18000 (build_call_expr_loc_array): New function.
18001 (build_call_expr_loc_vec): New function.
18002 * tree-flow.h (struct omp_region): Change type of ws_args field
18003 to a VEC.
18004 * builtins.c (build_function_call_expr): Delete.
18005 (build_call_expr_loc_array): New function.
18006 (build_call_expr_loc): Call it. Use XALLOCAVEC.
18007 (build_call_expr): Likewise.
18008 (build_call_expr_loc_vec): New function.
18009 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
18010 build_function_call_expr.
18011 * expr.c (emutls_var_address): Likewise.
18012 * varasm.c (emutls_common_1): Likewise.
18013 * omp-low.c (expand_omp_atomic_mutex): Likewise.
18014 (expand_omp_taskreg): Adjust for new type of region->ws_args.
18015 (get_ws_args_for): Return a VEC instead of a tree.
18016 (expand_parallel_call): Call build_call_expr_loc_vec instead of
18017 build_function_call_expr.
18018 * stor-layout.c (self_referential_size): Likewise.
18019
18020 2010-07-13 Jakub Jelinek <jakub@redhat.com>
18021
18022 PR testsuite/44701
18023 * recog.c (constrain_operands): Allow side-effects in memory
18024 operands if either < or > constraint is used, rather than if
18025 both < and > is used.
18026
18027 2010-07-13 Richard Guenther <rguenther@suse.de>
18028
18029 PR middle-end/44911
18030 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
18031 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
18032 without name.
18033
18034 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
18035
18036 PR target/44761
18037 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
18038 to variable emited.
18039 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
18040 * config/sh/sh.md (symGOT_load): Likewise.
18041 (symDTPOFF2reg): Likewise.
18042 (symTPOFF2reg): Likewise.
18043
18044 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18045
18046 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
18047 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
18048
18049 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18050
18051 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
18052 explanation.
18053 Find ucontext_t * on Solaris 11.
18054 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
18055 Handle new Solaris 11 __sighndlr patterns.
18056
18057 2010-07-13 Jakub Jelinek <jakub@redhat.com>
18058
18059 PR debug/44901
18060 * vec.h (VEC_block_remove): Fix comment.
18061 * tree-ssa-live.c (remove_unused_locals): Don't use
18062 VEC_unordered_remove on local_decls, instead replace a single
18063 vector element in each iteration if at least one element had
18064 to be removed and VEC_truncate at the end.
18065 * omp-low.c (expand_omp_taskreg): Likewise.
18066
18067 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
18068
18069 * c-decl.c (finish_function): Fix typo in comment.
18070
18071 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
18072
18073 PR bootstrap/44921
18074 * postreload.c (move2add_use_add3_insn): Silence gcc warning
18075 on min_regno.
18076
18077 2010-07-12 Jakub Jelinek <jakub@redhat.com>
18078
18079 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
18080 (simplify_stmt_using_ranges): Use it.
18081
18082 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18083
18084 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
18085 member. Do not mark as GTY(()).
18086 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
18087 (spu_builtin_decls): New static variable.
18088 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
18089 (spu_init_builtins): Likewise.
18090 (spu_builtin_mul_widen_even): Likewise.
18091 (spu_builtin_mul_widen_odd): Likewise.
18092 (spu_builtin_mask_for_load): Likewise.
18093 (spu_builtin_vec_perm): Likewise.
18094 * config/spu/spu-c.c: Include "target.h".
18095 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
18096 of using spu_builtins[].fndecl.
18097
18098 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18099
18100 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
18101 imply -minterlink-mips16.
18102
18103 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18104
18105 * config/mips/mips.h (mips16_globals): Declare.
18106 (SWITCHABLE_TARGET): Define.
18107 * config/mips/mips.c: Include target-globals.h.
18108 (mips16_globals): New variable.
18109 (mips_set_mips16_mode): Use save_target_globals and
18110 restore_target_globals instead of target_reinit.
18111
18112 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18113
18114 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
18115 to say that the function can be called more than once.
18116 * target-globals.c (save_target_globals): Call init_reg_sets.
18117
18118 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18119
18120 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
18121 * bb-reorder.h: New file.
18122 * bb-reorder.c (default_target_bb_reorder): New variable.
18123 (this_target_bb_reorder): New conditional variable.
18124 (uncond_jump_length): Redefine as a macro.
18125 * target-globals.h (this_target_bb_reorder): Declare.
18126 (target_globals): Add a bb_reorder field.
18127 (restore_target_globals): Copy the bb_reorder field to
18128 this_target_bb-reorder.
18129 * target-globals.c: Include bb-reorder.h.
18130 (default_target_globals): Initialize the bb_reorder field.
18131 (save_target_globals): Likewise.
18132
18133 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18134
18135 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
18136 * gcse.h: New file.
18137 * gcse.c: Include gcse.h.
18138 (default_target_gcse): New variable.
18139 (this_target_gcse): New conditional variable.
18140 (can_copy): Redefine as a macro.
18141 (can_copy_init_p): New macro.
18142 (can_copy_p): Remove can_copy_init_p.
18143 * target-globals.h (this_target_gcse): Declare.
18144 (target_globals): Add a gcse field.
18145 (restore_target_globals): Copy the gcse field to this_target_gcse.
18146 * target-globals.c: Include gcse.h.
18147 (default_target_globals): Initialize the gcse field.
18148 (save_target_globals): Likewise.
18149
18150 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18151
18152 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
18153 and x_ira_prohibited_mode_move_regs_initialized_p.
18154 (ira_prohibited_mode_move_regs): Redefine as a macro.
18155 * ira.c (ira_prohibited_mode_move_regs): Delete.
18156 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
18157
18158 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18159
18160 * reload.h (target_reload): Add x_cached_reg_save_code and
18161 x_cached_reg_restore_code.
18162 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
18163 Redefine as macros.
18164
18165 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18166
18167 * Makefile.in (target-globals.o): Depend on builtins.h.
18168 * builtins.h: New file.
18169 * builtins.c: Include builtins.h.
18170 (default_target_builtins): New variable.
18171 (this_target_builtins): New conditional variable.
18172 (apply_args_mode, apply_result_mode): Redefine as macros.
18173 * target-globals.h (this_target_builtins): Declare.
18174 (target_globals): Add a builtins field.
18175 (restore_target_globals): Copy the builtins field to
18176 this_target_builtins.
18177 * target-globals.c: Include builtins.h.
18178 (default_target_globals): Initialize the builtins field.
18179 (save_target_globals): Likewise.
18180
18181 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18182
18183 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
18184 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
18185 from expmed.c.
18186 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
18187 (alg_hash, alg_hash_used_p): New macros.
18188 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
18189 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
18190 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
18191
18192 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18193
18194 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
18195 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
18196 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
18197 (this_op_costs, costs_classes): Redefine as macros.
18198 (record_reg_classes): Don't take op_costs as a parameter.
18199 (record_operand_costs): Likewise. Update calls to record_reg_classes.
18200 (scan_one_insn): Update call to record_operand_costs.
18201
18202 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18203
18204 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
18205 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
18206 (target_ira_int): New structure.
18207 (default_target_ira_int): Declare.
18208 (this_target_ira_int): Declare as a variable or define as a macro.
18209 (ira_reg_mode_hard_regset, ira_register_move_cost)
18210 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
18211 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
18212 (prohibited_class_mode_regs, ira_important_classes_num)
18213 (ira_important_classes, ira_reg_class_intersect)
18214 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
18215 (ira_reg_class_union): Redefine as macros.
18216 * ira.h (target_ira): New structure.
18217 (default_target_ira): Declare.
18218 (this_target_ira): Declare as a variable or define as a macro.
18219 (ira_available_class_regs, ira_hard_regno_cover_class)
18220 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
18221 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
18222 (ira_class_hard_regs_num): Redefine as macros.
18223 * ira.c (default_target_ira, default_target_ira_int): New variables.
18224 (this_target_ira, this_target_ira_int): New conditional variables.
18225 (ira_reg_mode_hard_regset, ira_memory_move_cost)
18226 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
18227 (ira_class_subset_p): Delete.
18228 (no_unit_alloc_regs): Redefine as a macro.
18229 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
18230 (ira_class_hard_regs_num, ira_class_hard_reg_index)
18231 (ira_available_class_regs): Delete.
18232 (alloc_reg_class_subclasses): Redefine as a macro.
18233 (ira_reg_class_cover_size, ira_reg_class_cover)
18234 (ira_important_classes_num, ira_important_classes)
18235 (ira_important_class_nums, ira_class_translate): Delete.
18236 (cover_class_order): Document the variable's lifetime.
18237 (reorder_important_classes): Don't set ira_important_class_nums.
18238 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
18239 (ira_reg_class_super_classes, ira_reg_class_union)
18240 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
18241 Delete.
18242 (setup_reg_class_nregs): Don't set ira_max_regs.
18243 (prohibited_class_mode_regs): Delete.
18244 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
18245 (target_globals): Add ira and ira_int fields.
18246 (restore_target_globals): Copy the ira field to this_target_ira
18247 and the ira_int field to this_target_ira_int.
18248 * target-globals.c: Include ira-int.h.
18249 (default_target_globals): Initialize the ira and ira_int fields.
18250 (save_target_globals): Likewise.
18251
18252 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18253
18254 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
18255 * cfgloop.h (target_cfgloop): New structure.
18256 (default_target_cfgloop): Declare.
18257 (this_target_cfgloop): Declare as a variable or define as a macro.
18258 (target_avail_regs, target_clobbered_regs, target_res_regs)
18259 (target_reg_cost, target_spill_cost): Redefine as macros.
18260 * cfgloopanal.c (default_target_cfgloop): New variable.
18261 (this_target_cfgloop): New conditional variable.
18262 (target_avail_regs, target_clobbered_regs, target_res_regs)
18263 (target_reg_cost, target_spill_cost): Delete.
18264 * target-globals.h (this_target_cfgloop): Declare.
18265 (target_globals): Add a cfgloop field.
18266 (restore_target_globals): Copy the cfgloop field to
18267 this_target_cfgloop.
18268 * target-globals.c: Include cfgloop.h.
18269 (default_target_globals): Initialize the cfgloop field.
18270 (save_target_globals): Likewise.
18271
18272 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18273
18274 * regs.h (target_regs): Add x_direct_load, x_direct_store and
18275 x_float_extend_from_mem.
18276 (direct_load, direct_store, float_extend_from_mem): New macros.
18277 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
18278
18279 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18280
18281 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
18282 (target-globals.o): Depend on $(LIBFUNCS_H).
18283 * libfuncs.h: Include hashtab.h.
18284 (libfunc_entry): Moved from optabs.c.
18285 (target_libfuncs): New structure.
18286 (default_target_libfuncs): Declare.
18287 (this_target_libfuncs): Declare as a variable or define as a macro.
18288 (libfunc_table): Redefine as a macro.
18289 * optabs.c (default_target_libfuncs): New variable.
18290 (this_target_libfuncs): New conditional variable.
18291 (libfunc_table): Delete.
18292 (libfunc_entry): Moved to optabs.h.
18293 (libfunc_hash): Redefine as a macro.
18294 (hash_libfunc, eq_libfunc): Fix comments.
18295 (init_optabs): Use libfunc_hash to detect cases where the function
18296 has already been called. Clear the hash table instead of
18297 recreating it.
18298 * target-globals.h (this_target_libfuncs): Declare.
18299 (target_globals): Add a libfuncs field.
18300 (restore_target_globals): Copy the libfuncs field to
18301 this_target_libfuncs.
18302 * target-globals.c: Include libfuncs.h.
18303 (default_target_globals): Initialize the libfuncs field.
18304 (save_target_globals): Likewise.
18305
18306 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18307
18308 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
18309 in all dependency lists.
18310
18311 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18312
18313 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
18314 * optabs.h (target_optabs): New structure.
18315 (default_target_optabs): Declare.
18316 (this_target_optabs): Declare as a variable or define as a macro.
18317 (optab_table, convert_optab_table, direct_optab_table): Redefine
18318 as macros.
18319 * optabs.c (default_target_optabs): New variable.
18320 (this_target_optabs): New conditional variable.
18321 (optab_table, convert_optab_table, direct_optab_table): Delete.
18322 * target-globals.h (this_target_optabs): Declare.
18323 (target_globals): Add a optabs field.
18324 (restore_target_globals): Copy the optabs field to
18325 this_target_optabs.
18326 * target-globals.c: Include expr.h and optabs.h.
18327 (default_target_globals): Initialize the optabs field.
18328 (save_target_globals): Likewise.
18329
18330 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18331
18332 * flags.h (target_flagstate): Add x_flag_excess_precision.
18333 (flag_excess_precision): Redefine as a macro.
18334 * toplev.c (flag_excess_precision): Delete.
18335
18336 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18337
18338 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
18339 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
18340 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
18341 (no_caller_save_reg_set): Redefine as a macro.
18342 * reload.h (target_reload): Add x_caller_save_initialized_p and
18343 x_regno_save_mode.
18344 (caller_save_initialized_p): Redefine as a macro.
18345 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
18346 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
18347 (regno_save_mode): Redefine as a macro.
18348
18349 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18350
18351 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
18352 * expmed.h: New file.
18353 * expmed.c (default_target_costs): New variable.
18354 (this_target_costs): New conditional variable.
18355 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
18356 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
18357 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
18358 * target-globals.h (this_target_expmed): Declare.
18359 (target_globals): Add a expmed field.
18360 (restore_target_globals): Copy the expmed field to
18361 this_target_expmed.
18362 * target-globals.c: Include expmed.h.
18363 (default_target_globals): Initialize the expmed field.
18364 (save_target_globals): Likewise.
18365
18366 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18367
18368 * Makefile.in (target-globals.o): Depend on reload.h.
18369 * reload.h (target_reload): New structure.
18370 (default_target_reload): Declare.
18371 (this_target_reload): Declare as a variable or define as a macro.
18372 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
18373 * reload1.c (default_target_reload): New variable
18374 (this_target_reload): New conditional variable.
18375 (indirect_symref_ok, double_reg_address_ok): Delete.
18376 (spill_indirect_levels): Redefine as a macro.
18377 * target-globals.h (this_target_reload): Declare.
18378 (target_globals): Add a reload field.
18379 (restore_target_globals): Copy the reload field to
18380 this_target_reload.
18381 * target-globals.c: Include hard-reg-set.h.
18382 (default_target_globals): Initialize the reload field.
18383 (save_target_globals): Likewise.
18384
18385 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18386
18387 * rtl.h (target_rtl): Add x_static_reg_base_value.
18388 * alias.c (static_reg_base_value): Redefine as a macro.
18389
18390 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18391
18392 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
18393 (GTFILES): Remove reginfo.c.
18394 * rtl.h (target_rtl): Add x_top_of_stack.
18395 (top_of_stack): New macro.
18396 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
18397 (top_of_stack): Delete.
18398
18399 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18400
18401 * regs.h (target_regs): Add x_hard_regs_of_mode,
18402 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
18403 x_may_move_out_cost and x_last_mode_for_init_move_cost.
18404 (have_regs_of_mode, contains_reg_of_mode, move_cost)
18405 (may_move_in_cost, may_move_out_cost): Redefine as macros.
18406 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
18407 (may_move_in_cost, may_move_out_cost): Delete.
18408 (last_mode_for_init_move_cost): Redefine as a macro.
18409
18410 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18411
18412 * hard-reg-set.h (target_hard_regs): New structure.
18413 (default_target_hard_regs): Declare.
18414 (this_target_hard_regs): Declare as a variable or define as a macro.
18415 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
18416 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
18417 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
18418 (reg_class_size, reg_class_subclasses, reg_class_subunion)
18419 (reg_class_superunion, reg_names): Redefine as macros.
18420 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
18421 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
18422 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
18423 (reg_class_contents, reg_class_size, reg_class_subclasses)
18424 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
18425 (default_target_hard_regs): New variable
18426 (this_target_hard_regs, initial_call_really_used_regs)
18427 (initial_reg_alloc_order): New conditional variables.
18428 (initial_reg_names): New variable.
18429 (init_reg_sets): Assert that initial_call_really_used_regs,
18430 initial_reg_alloc_order and initial_reg_names
18431 are all the same size as their variable counterparts. Use them to
18432 initialize those counterparts.
18433 * target-globals.h (this_target_hard_regs): Declare.
18434 (target_globals): Add a hard_regs field.
18435 (restore_target_globals): Copy the hard_regs field to
18436 this_target_hard_regs.
18437 * target-globals.c: Include hard-reg-set.h.
18438 (default_target_globals): Initialize the hard_regs field.
18439 (save_target_globals): Likewise.
18440
18441 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18442
18443 * Makefile.in (target-globals.o): Depend on $(RTL_H).
18444 * rtl.h (target_rtl): New structure.
18445 (default_target_rtl): Declare.
18446 (this_target_rtl): Declare as a variable or define as a macro.
18447 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
18448 Redefine as macros.
18449 * emit-rtl.c (default_target_rtl): New variable.
18450 (this_target_rtl): New conditional variable.
18451 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
18452 (return_address_pointer_rtx): Delete.
18453 (initial_regno_reg_rtx): New macro.
18454 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
18455 (init_emit_regs): Likewise.
18456 * target-globals.h (this_target_rtl): Declare.
18457 (target_globals): Add a rtl field.
18458 (restore_target_globals): Copy the rtl field to this_target_rtl.
18459 * target-globals.c: Include rtl.h.
18460 (default_target_globals): Initialize the rtl field.
18461 (save_target_globals): Likewise.
18462
18463 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18464
18465 * Makefile.in (target-globals.o): Depend on $(REGS_H).
18466 * regs.h (target_reg_modes): New structure.
18467 (default_target_reg_modes): Declare.
18468 (this_target_reg_modes): Declare as a variable or define as a macro.
18469 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
18470 * reginfo.c (default_target_reg_modes): New variable.
18471 (this_target_reg_modes): New conditional variable.
18472 (hard_regno_nregs, reg_raw_mode): Delete.
18473 * target-globals.h (this_target_regs): Declare.
18474 (target_globals): Add a regs field.
18475 (restore_target_globals): Copy the regs field to this_target_regs.
18476 * target-globals.c: Include regs.h.
18477 (default_target_globals): Initialize the regs field.
18478 (save_target_globals): Likewise.
18479
18480 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
18481
18482 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
18483 * doc/tm.texi: Regenerate.
18484 * Makefile.in (OBJS-common): Add target-globals.o.
18485 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
18486 and target-globals.h.
18487 (target-globals.o): New rule.
18488 (GTFILES): Include $(srcdir)/target-globals.h.
18489 * defaults.h (SWITCHABLE_TARGET): Define.
18490 * gengtype.c (open_base_files): Add target-globals.h to the
18491 list of includes.
18492 * target-globals.h: New file.
18493 * target-globals.c: Likewise.
18494
18495 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
18496 * flags.h (target_flag_state): New structure.
18497 (default_target_flag_state): Declare.
18498 (this_target_flag_state): Declare as a variable or define as a macro.
18499 (align_loops_log): Redefine as a macro.
18500 (align_loops_max_skip, align_jumps_log): Likewise.
18501 (align_jumps_max_skip, align_labels_log): Likewise.
18502 (align_labels_max_skip, align_functions_log): Likewise.
18503 * toplev.c (default_target_flag_state): New variable.
18504 (this_target_flag_state): New conditional variable.
18505 (align_loops_log): Delete.
18506 (align_loops_max_skip, align_jumps_log): Likewise.
18507 (align_jumps_max_skip, align_labels_log): Likewise.
18508 (align_labels_max_skip, align_functions_log): Likewise.
18509 * target-globals.h (this_target_flag_state): Declare.
18510 (target_globals): Add a flag_state field.
18511 (restore_target_globals): Copy the flag_state field to
18512 this_target_flag_state.
18513 * target-globals.c: Include flags.h.
18514 (default_target_globals): Initialize the flag_state field.
18515 (save_target_globals): Likewise.
18516
18517 2010-07-12 Jie Zhang <jie@codesourcery.com>
18518
18519 * postreload.c (reg_symbol_ref[]): New.
18520 (move2add_use_add2_insn): New.
18521 (move2add_use_add3_insn): New.
18522 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
18523 (move2add_note_store): Likewise.
18524
18525 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
18526
18527 PR rtl-optimization/44752
18528 * genautomata.c (main): Don't emit an empty file even if there
18529 is no automaton.
18530
18531 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18532
18533 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
18534 ix86_solaris_return_in_memory.
18535 * config/i386-protos.h: Reflect this.
18536 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
18537 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
18538 Move ...
18539 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
18540
18541 2010-07-12 Jie Zhang <jie@codesourcery.com>
18542
18543 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
18544 align the stack when it's going to be saved.
18545
18546 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18547
18548 PR pch/14940
18549 * config/host-solaris.c (mmap_fixed): New function.
18550 (sol_gt_pch_get_address): Use it.
18551 (sol_gt_pch_use_address): Likewise.
18552
18553 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18554
18555 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
18556 pentiumpro on Solaris 8 and 9/x86.
18557 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
18558 Document SSE/SSE2 support.
18559 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
18560
18561 2010-07-12 Andi Kleen <ak@linux.intel.com>
18562
18563 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
18564 instead of gcc_assert to print better error message for multiple
18565 prevailing defs.
18566
18567 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
18568
18569 * config/i386/i386.c (ix86_asm_output_function_label): Change format
18570 string placeholder from 0x%x to %#x.
18571 (ix86_code_end): Use putc to output '\n'.
18572 (ix86_print_operand) <case ';'>: Use putc to output ';'.
18573
18574 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
18575
18576 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
18577 in directive -export.
18578
18579 2010-07-10 Anatoly Sokolov <aesok@post.ru>
18580
18581 * reginfo.h (reg_classes_intersect_p): Change arguments type to
18582 reg_class_t.
18583 * rtl.h (reg_classes_intersect_p): Adjust prototype.
18584
18585 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
18586 Remove macros.
18587 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
18588 rs6000_memory_move_cost): Remove
18589 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
18590 TARGET_MEMORY_MOVE_COST): Define.
18591 (rs6000_register_move_cost): Make static. Change arguments type from
18592 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
18593 (rs6000_memory_move_cost): Make static. Change arguments type from
18594 'enum reg_class' to reg_class_t.
18595
18596 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
18597
18598 PR middle-end/42505
18599 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
18600 lookup code into....
18601 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
18602 new functions.
18603 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
18604 * cfgloopanal.c (target_clobbered_regs): Define.
18605 (init_set_costs): Initialize target_clobbered_regs.
18606 (estimate_reg_pressure_cost): Add call_p argument. When true,
18607 adjust the number of available registers to exclude the
18608 call-clobbered registers.
18609 * cfgloop.h (target_clobbered_regs): Declare.
18610 (estimate_reg_pressure_cost): Adjust declaration.
18611 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
18612 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
18613 (determine_set_costs): Dump target_clobbered_regs.
18614 (loop_body_includes_call): New function.
18615 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
18616 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
18617 call_p flag through.
18618 (best_gain_for_invariant): Likewise.
18619 (find_invariants_to_move): Likewise.
18620 (move_single_loop_invariants): Likewise, using already-computed
18621 has_call field.
18622
18623 2010-07-10 Richard Guenther <rguenther@suse.de>
18624 Joern Rennecke <joern.rennecke@embecosm.com>
18625
18626 PR debug/44832
18627 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
18628 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
18629 unless they have DECL_IGNORED_P set.
18630
18631 2010-07-10 Richard Guenther <rguenther@suse.de>
18632
18633 PR lto/44889
18634 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
18635 helper function.
18636 (gimple_types_compatible_p): Similar to pointed-to
18637 types allow and merge a mix of complete and incomplete aggregate.
18638 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
18639 (iterative_hash_gimple_type): Adjust for that.
18640
18641 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
18642
18643 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
18644
18645 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
18646
18647 PR objc/44140
18648 * config/darwin.c (output_objc_section_asm_op): Save and restore
18649 section when outputting ObjC section list.
18650
18651 2010-07-09 Jan Hubicka <jh@suse.cz>
18652
18653 * lto-streamer-out.c (produce_symtab): Do not write alias
18654 cgraph/varpool nodes.
18655
18656 2010-07-09 Jan Hubicka <jh@suse.cz>
18657
18658 * tree-inline.c (declare_return_variable): Fix ICE while
18659 inlining DECL_BY_VALUE function not in SSA form
18660
18661 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
18662
18663 PR tree-optimization/44576
18664 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
18665 New. Pull out from is_loop_prefetching_profitable to implement
18666 the trip count to ahead ratio heuristic.
18667 (mem_ref_count_reasonable_p): New. Pull out from
18668 is_loop_prefetching_profitable to implement the instruction to
18669 memory reference ratio heuristic. Also consider not reasonable if
18670 the memory reference count is above a threshold (to avoid
18671 explosive compilation time.
18672 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
18673 is_loop_prefetching_profitable to implement the instruction to
18674 prefetch ratio heuristic.
18675 (is_loop_prefetching_profitable): Removed.
18676 (loop_prefetch_arrays): Distribute the cost analysis across the
18677 function to allow early exit of the prefetch analysis.
18678 is_loop_prefetching_profitable is splitted into three functions,
18679 with each one called as early as possible.
18680 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
18681 number of memory references in a loop is considered too many.
18682
18683 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
18684
18685 * reload.c (find_reloads): Don't clear badop if we have a winreg
18686 alternative, but not win, and the class only has fixed regs.
18687 * hard-reg-set.h (class_only_fixed_regs): Declare.
18688 * reginfo.c (class_only_fixed_regs): New array.
18689 (init_reg_sets_1): Initialize it.
18690 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
18691 discourage alternatives using the stack pointer.
18692
18693 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
18694
18695 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
18696
18697 * config/arm/arm.md (cbranchqi4): Fix array size.
18698 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
18699 calculating length.
18700
18701 2010-07-09 Richard Guenther <rguenther@suse.de>
18702
18703 * gimple.c (struct type_fixup_s): New struct and VEC type.
18704 (gimple_register_type_fixups): New static global.
18705 (gimple_queue_type_fixup): New function.
18706 (gimple_types_compatible_p): Queue type fixups instead of
18707 applying them here.
18708 (gimple_register_type): Apply queued fixups for the
18709 canonical type. Empty the type fixup queue.
18710
18711 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
18712
18713 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
18714 * configure: Regenerate.
18715 * config.in: Ditto.
18716
18717 2010-07-09 Jakub Jelinek <jakub@redhat.com>
18718 Denys Vlasenko <dvlasenk@redhat.com>
18719 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18720
18721 PR tree-optimization/28632
18722 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
18723 (extract_range_from_binary_expr): Further optimize
18724 BIT_AND_EXPR and BIT_IOR_EXPR.
18725
18726 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
18727
18728 * tree-if-conv.c (fold_or_predicates): New.
18729 (add_to_predicate_list): Call it.
18730
18731 2010-07-09 Richard Guenther <rguenther@suse.de>
18732
18733 PR middle-end/44890
18734 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
18735 if base is a pointer.
18736 * tree-cfg.c (verify_expr): Update MEM_REF checking.
18737
18738 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
18739
18740 PR target/44877
18741 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
18742 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
18743 builtin mask for load/store builtins.
18744
18745 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
18746
18747 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
18748 for "lock addl".
18749 * configure: Regenerate.
18750 * config/i386/i386.c (ix86_print_operand) <case ';'>:
18751 Remove TARGET_MACHO.
18752
18753 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
18754
18755 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
18756 default ISA flags.
18757 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
18758
18759 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
18760
18761 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
18762
18763 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
18764
18765 * config/picochip/picochip.md (commsTestPort): Emit more
18766 efficient sequence for tstport instruction.
18767
18768 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
18769
18770 * config/i386/i386.c (ix86_veclib_handler): Make static.
18771
18772 2010-07-09 Richard Guenther <rguenther@suse.de>
18773
18774 PR tree-optimization/44852
18775 * tree-ssa-alias.c: Include toplev.h for exact_log2.
18776 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
18777 in MEM_REF.
18778 (indirect_refs_may_alias_p): Likewise.
18779 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
18780
18781 2010-07-09 Richard Guenther <rguenther@suse.de>
18782
18783 PR tree-optimization/44882
18784 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
18785 sets do conflict.
18786 (vectorizable_load): Likewise.
18787
18788 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
18789
18790 PR target/40657
18791 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
18792 All callers changed.
18793 Handle the case when we're called for the epilogue.
18794 (thumb_unexpanded_epilogue): Use it.
18795 (thumb1_expand_epilogue): Likewise.
18796
18797 2010-07-09 Jakub Jelinek <jakub@redhat.com>
18798
18799 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
18800 both ranges are range_int_cst_p with non-negative minimum,
18801 try harder to derive smaller range.
18802
18803 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
18804
18805 * genrecog.c: Include diagnostic-core.h before toplev.h.
18806 * genoutput.c: Likewise.
18807 * genextract.c: Likewise.
18808 * genautomata.c: Likewise.
18809 * genemit.c: Likewise.
18810 * genpeep.c: Likewise.
18811 * genattrtab.c: Likewise.
18812 * genconditions.c: Likewise.
18813 * genpreds.c: Likewise.
18814
18815 2010-07-08 Andi Kleen <ak@linux.intel.com>
18816
18817 * lto-section-in.c (lto_section_name): Add missing comma.
18818
18819 2010-07-08 Anatoly Sokolov <aesok@post.ru>
18820
18821 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
18822 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
18823 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
18824 (ia64_override_options): Rename to...
18825 (ia64_option_override): ... this one. Make static.
18826
18827 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18828
18829 PR middle-end/44843
18830 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
18831 pointed-to type of the offset in a MEM_REF to compute the alignment.
18832
18833 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
18834
18835 * final.c (final_scan_insn): Replace
18836 TARGET_UNWIND_INFO macro check by unwind_emit
18837 hook NULL check.
18838 * targhooks.c (default_unwind_emit): Removed.
18839 * targhooks.h (default_unwind_emit): Likewise.
18840 * target.def (unwind_emit): Set default value to NULL.
18841
18842 * config/i386/i386-protos.h (ix86_asm_output_function_label):
18843 New prototype.
18844 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
18845 for NULL fntype argument and allow 64-bit targets.
18846 (ix86_asm_output_function_label): New function.
18847 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
18848 (ix86_handle_fndecl_attribute): Likewise.
18849 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
18850 * doc/doc/tm.texi: Regenerated.
18851 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
18852 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
18853 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
18854 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
18855 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
18856 * config/elfos.h: Likewise.
18857 * config/i386/cygming.h: Likewise.
18858 * config/netbsd-aout.h: Likewise.
18859 * config/openbsd.h: Likewise.
18860 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
18861 by ix86_asm_output_function_label function call.
18862 * varasm.c (assemble_start_function): Use
18863 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
18864
18865 2010-07-08 Jan Hubicka <jh@suse.cz>
18866
18867 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
18868 New function.
18869 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
18870 Declare.
18871 * ipa-cp.c (ipcp_estimate_growth): Use it.
18872 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
18873 Likewise.
18874
18875 2010-07-08 Jan Hubicka <jh@suse.cz>
18876
18877 * tree-inline.c (declare_return_variable): Allocate annotation for new
18878 temporary.
18879
18880 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
18881
18882 PR tree-optimization/44710
18883 * tree-if-conv.c (parse_predicate): New.
18884 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
18885 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
18886
18887 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
18888
18889 * common.opt (ftree-loop-if-convert): New flag.
18890 * doc/invoke.texi (ftree-loop-if-convert): Documented.
18891 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
18892 when flag_tree_loop_if_convert is set.
18893
18894 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
18895
18896 * config/i386/i386.c: Use short syntax for function calls
18897 through function pointers.
18898 * config/i386/i386.md: Ditto.
18899
18900 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18901
18902 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
18903
18904 2010-07-08 Richard Guenther <rguenther@suse.de>
18905
18906 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
18907 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
18908
18909 2010-07-08 Jakub Jelinek <jakub@redhat.com>
18910
18911 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
18912 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
18913 (loc_list_from_tree): Likewise.
18914 (output_loc_operands): Handle outputting DW_OP_const[48]u
18915 with loc->dtprel set.
18916 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
18917
18918 2010-07-08 Jan Hubicka <jh@suse.cz>
18919
18920 * ipa.c: Include pointer-set.h
18921 (cgraph_externally_visible_p): New attribute ALIASED;
18922 when in LTO, hidden symbols are local unless they are aliased.
18923 (function_and_variable_visibility): Compute aliased nodes;
18924 handle LTO and hidden symbol on functions and vars.
18925 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
18926 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
18927
18928 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18929
18930 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
18931 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18932 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18933 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18934 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
18935 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
18936 (ix86_gen_probe_stack_range): Likewise.
18937 (override_options): Set them.
18938 (ix86_target_stack_probe): New function.
18939 (ix86_compute_frame_layout): Force use of push instructions to
18940 save registers if stack checking with probes is enabled.
18941 (get_scratch_register_on_entry): New function.
18942 (release_scratch_register_on_entry): Likewise.
18943 (ix86_adjust_stack_and_probe): Likewise.
18944 (output_adjust_stack_and_probe): Likewise.
18945 (ix86_emit_probe_stack_range): Likewise.
18946 (output_probe_stack_range): Likewise.
18947 (ix86_expand_prologue): Emit stack checking code if static built-in
18948 stack checking is enabled.
18949 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
18950 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
18951 (output_adjust_stack_and_probe): Likewise.
18952 (output_probe_stack_range): Likewise.
18953 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
18954 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
18955 TARGET_STACK_PROBE.
18956 (allocate_stack_worker_64): Likewise.
18957 (allocate_stack): Likewise.
18958 (adjust_stack_and_probe): New insn.
18959 (probe_stack_range): Likewise.
18960
18961 2010-07-08 Richard Guenther <rguenther@suse.de>
18962
18963 PR tree-optimization/44831
18964 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
18965 a MEM_REF preserving TBAA info of the original dereference.
18966 Dereference the original pointer if the address is not invariant.
18967 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
18968 at least one invariant address that we are going to dereference.
18969
18970 2010-07-08 Richard Guenther <rguenther@suse.de>
18971
18972 PR tree-optimization/44861
18973 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
18974 information when building MEM_REFs.
18975 (vectorizable_load): Likewise.
18976 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
18977
18978 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
18979
18980 * config/sol2-c.c: Do not include diagnostic-core.h.
18981
18982 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18983
18984 PR bootstrap/44768
18985 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
18986 with respect to current_function_decl. Pass decl of the function.
18987 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
18988 * ipa-inline.c (compute_inline_parameters): Pass decl to
18989 estimated_stack_frame_size.
18990
18991 2010-07-08 Richard Guenther <rguenther@suse.de>
18992
18993 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
18994 New function.
18995 (valueize_refs): Call it.
18996
18997 2010-07-08 Richard Guenther <rguenther@suse.de>
18998
18999 PR rtl-optimization/44838
19000 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
19001 SSA form do not use pointer equivalence.
19002
19003 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
19004
19005 * dwarf2out.c (AT_linkage_name): Delete.
19006 (add_linkage_attr): New function.
19007 (add_linkage_name): Call it to emit the linkage attribute.
19008 (dwarf2out_finish): Likewise.
19009 (move_linkage_attr): Explicitly accept both attribute variants.
19010
19011 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
19012
19013 * toplev.h: Do not include diagnostic-core.h.
19014 Include diagnostic-core.h in every file that includes toplev.h.
19015 * c-tree.h: Do not include toplev.h.
19016 * pretty-print.h: Update comment.
19017 * Makefile.in: Update dependencies.
19018 * alias.c: Include diagnostic-core.h in every file that includes
19019 toplev.h.
19020 * attribs.c: Likewise.
19021 * auto-inc-dec.c: Likewise.
19022 * bb-reorder.c: Likewise.
19023 * bt-load.c: Likewise.
19024 * caller-save.c: Likewise.
19025 * calls.c: Likewise.
19026 * cfg.c: Likewise.
19027 * cfganal.c: Likewise.
19028 * cfgbuild.c: Likewise.
19029 * cfgcleanup.c: Likewise.
19030 * cfghooks.c: Likewise.
19031 * cfgloop.c: Likewise.
19032 * combine.c: Likewise.
19033 * config/alpha/alpha.c: Likewise.
19034 * config/arc/arc.c: Likewise.
19035 * config/arm/arm.c: Likewise.
19036 * config/arm/pe.c: Likewise.
19037 * config/avr/avr.c: Likewise.
19038 * config/bfin/bfin.c: Likewise.
19039 * config/cris/cris.c: Likewise.
19040 * config/crx/crx.c: Likewise.
19041 * config/darwin-c.c: Likewise.
19042 * config/darwin.c: Likewise.
19043 * config/fr30/fr30.c: Likewise.
19044 * config/frv/frv.c: Likewise.
19045 * config/h8300/h8300.c: Likewise.
19046 * config/host-darwin.c: Likewise.
19047 * config/i386/i386.c: Likewise.
19048 * config/i386/netware.c: Likewise.
19049 * config/i386/nwld.c: Likewise.
19050 * config/i386/winnt-cxx.c: Likewise.
19051 * config/i386/winnt-stubs.c: Likewise.
19052 * config/i386/winnt.c: Likewise.
19053 * config/ia64/ia64-c.c: Likewise.
19054 * config/ia64/ia64.c: Likewise.
19055 * config/iq2000/iq2000.c: Likewise.
19056 * config/lm32/lm32.c: Likewise.
19057 * config/m32c/m32c-pragma.c: Likewise.
19058 * config/m32c/m32c.c: Likewise.
19059 * config/m32r/m32r.c: Likewise.
19060 * config/m68hc11/m68hc11.c: Likewise.
19061 * config/m68k/m68k.c: Likewise.
19062 * config/mcore/mcore.c: Likewise.
19063 * config/mep/mep-pragma.c: Likewise.
19064 * config/mep/mep.c: Likewise.
19065 * config/mmix/mmix.c: Likewise.
19066 * config/mn10300/mn10300.c: Likewise.
19067 * config/moxie/moxie.c: Likewise.
19068 * config/pa/pa.c: Likewise.
19069 * config/pdp11/pdp11.c: Likewise.
19070 * config/picochip/picochip.c: Likewise.
19071 * config/rs6000/rs6000-c.c: Likewise.
19072 * config/rs6000/rs6000.c: Likewise.
19073 * config/rx/rx.c: Likewise.
19074 * config/s390/s390.c: Likewise.
19075 * config/score/score.c: Likewise.
19076 * config/score/score3.c: Likewise.
19077 * config/score/score7.c: Likewise.
19078 * config/sh/sh.c: Likewise.
19079 * config/sh/symbian-base.c: Likewise.
19080 * config/sh/symbian-c.c: Likewise.
19081 * config/sh/symbian-cxx.c: Likewise.
19082 * config/sol2-c.c: Likewise.
19083 * config/sol2.c: Likewise.
19084 * config/sparc/sparc.c: Likewise.
19085 * config/spu/spu.c: Likewise.
19086 * config/stormy16/stormy16.c: Likewise.
19087 * config/v850/v850-c.c: Likewise.
19088 * config/v850/v850.c: Likewise.
19089 * config/vax/vax.c: Likewise.
19090 * config/vxworks.c: Likewise.
19091 * config/xtensa/xtensa.c: Likewise.
19092 * convert.c: Likewise.
19093 * cse.c: Likewise.
19094 * cselib.c: Likewise.
19095 * dbgcnt.c: Likewise.
19096 * dbxout.c: Likewise.
19097 * ddg.c: Likewise.
19098 * dominance.c: Likewise.
19099 * emit-rtl.c: Likewise.
19100 * explow.c: Likewise.
19101 * expmed.c: Likewise.
19102 * fixed-value.c: Likewise.
19103 * fold-const.c: Likewise.
19104 * fwprop.c: Likewise.
19105 * gcse.c: Likewise.
19106 * ggc-common.c: Likewise.
19107 * ggc-page.c: Likewise.
19108 * ggc-zone.c: Likewise.
19109 * gimple-low.c: Likewise.
19110 * gimplify.c: Likewise.
19111 * graph.c: Likewise.
19112 * haifa-sched.c: Likewise.
19113 * ifcvt.c: Likewise.
19114 * implicit-zee.c: Likewise.
19115 * integrate.c: Likewise.
19116 * ira-build.c: Likewise.
19117 * ira-color.c: Likewise.
19118 * ira-conflicts.c: Likewise.
19119 * ira-costs.c: Likewise.
19120 * ira-lives.c: Likewise.
19121 * ira.c: Likewise.
19122 * lists.c: Likewise.
19123 * loop-doloop.c: Likewise.
19124 * loop-iv.c: Likewise.
19125 * lto-opts.c: Likewise.
19126 * lto-symtab.c: Likewise.
19127 * main.c: Likewise.
19128 * modulo-sched.c: Likewise.
19129 * optabs.c: Likewise.
19130 * params.c: Likewise.
19131 * plugin.c: Likewise.
19132 * postreload-gcse.c: Likewise.
19133 * postreload.c: Likewise.
19134 * predict.c: Likewise.
19135 * profile.c: Likewise.
19136 * real.c: Likewise.
19137 * regcprop.c: Likewise.
19138 * reginfo.c: Likewise.
19139 * regmove.c: Likewise.
19140 * reorg.c: Likewise.
19141 * resource.c: Likewise.
19142 * rtl.c: Likewise.
19143 * rtlanal.c: Likewise.
19144 * sched-deps.c: Likewise.
19145 * sched-ebb.c: Likewise.
19146 * sched-rgn.c: Likewise.
19147 * sdbout.c: Likewise.
19148 * sel-sched-dump.c: Likewise.
19149 * sel-sched-ir.c: Likewise.
19150 * simplify-rtx.c: Likewise.
19151 * stmt.c: Likewise.
19152 * stor-layout.c: Likewise.
19153 * store-motion.c: Likewise.
19154 * targhooks.c: Likewise.
19155 * tree-cfg.c: Likewise.
19156 * tree-cfgcleanup.c: Likewise.
19157 * tree-dump.c: Likewise.
19158 * tree-eh.c: Likewise.
19159 * tree-inline.c: Likewise.
19160 * tree-nomudflap.c: Likewise.
19161 * tree-object-size.c: Likewise.
19162 * tree-optimize.c: Likewise.
19163 * tree-outof-ssa.c: Likewise.
19164 * tree-phinodes.c: Likewise.
19165 * tree-profile.c: Likewise.
19166 * tree-ssa-ccp.c: Likewise.
19167 * tree-ssa-coalesce.c: Likewise.
19168 * tree-ssa-live.c: Likewise.
19169 * tree-ssa-loop-niter.c: Likewise.
19170 * tree-ssa-loop-prefetch.c: Likewise.
19171 * tree-ssa-loop.c: Likewise.
19172 * tree-ssa-structalias.c: Likewise.
19173 * tree-ssa-uninit.c: Likewise.
19174 * tree-ssa.c: Likewise.
19175 * tree-vect-data-refs.c: Likewise.
19176 * tree-vect-loop-manip.c: Likewise.
19177 * tree-vect-loop.c: Likewise.
19178 * tree-vect-patterns.c: Likewise.
19179 * tree-vect-stmts.c: Likewise.
19180 * tree-vrp.c: Likewise.
19181 * varasm.c: Likewise.
19182 * vec.c: Likewise.
19183 * web.c: Likewise.
19184 * xcoffout.c: Likewise.
19185
19186 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
19187
19188 * gengtype.c (write_field_root): New function.
19189 (write_root): Use it.
19190
19191 2010-07-07 Wei Guozhi <carrot@google.com>
19192
19193 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
19194 of lowest bits to lshift/compare): Add a missing line.
19195
19196 2010-07-07 Wei Guozhi <carrot@google.com>
19197
19198 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
19199 of lowest bits to lshift/compare): New.
19200
19201 2010-07-07 Tom Tromey <tromey@redhat.com>
19202
19203 * doc/tm.texi: Update.
19204 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
19205 Add @hook.
19206 * target.def (want_debug_pub_sections): New hook.
19207 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
19208 * dwarf2out.c (add_pubname_string): Check
19209 targetm.want_debug_pub_sections.
19210 (add_pubname): Likewise.
19211 (add_pubtype): Likewise.
19212
19213 2010-07-07 Jie Zhang <jie@codesourcery.com>
19214
19215 * genautomata.c (output_automata_list_min_issue_delay_code):
19216 Correctly decompress min_issue_delay.
19217
19218 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
19219
19220 PR rtl-optimization/44404
19221 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
19222 possible, use reg_overlap_mentioned_p instead.
19223
19224 2010-07-07 Duncan Sands <baldrick@free.fr>
19225
19226 PR middle-end/41355
19227 * tree.c (build_function_type_skip_args): Copy the original type using
19228 build_distinct_type_copy rather than copy_node.
19229
19230 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
19231
19232 PR target/44850
19233 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
19234 revision 161876.
19235 (ix86_expand_prologue): Likewise.
19236 (ix86_handle_fndecl_attribute): Likewise.
19237 (ix86_asm_declare_function_name): Likewise.
19238 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19239 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
19240 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
19241 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
19242 * doc/extend.texi: Likewise.
19243
19244 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
19245
19246 PR target/44844
19247 * config/i386/i386.md (rdrand<mode>): Changed to expand to
19248 retry if the carry flag isn't valid.
19249 (rdrand<mode>_1): New.
19250
19251 2010-07-07 Richard Guenther <rguenther@suse.de>
19252
19253 PR middle-end/44790
19254 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
19255 for expanding the constant offset for MEM_REFs.
19256
19257 2010-07-07 Richard Guenther <rguenther@suse.de>
19258
19259 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
19260 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
19261 * gimple.h (is_gimple_operand): Remove.
19262 * gimple.c (is_gimple_operand): Likewise.
19263 (walk_gimple_op): Fix wi->val_only setting for calls.
19264 * tree-cfg.c (verify_gimple_call): Fix argument validation.
19265 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
19266 invalid gimple calls.
19267
19268 2010-07-06 Jan Hubicka <jh@suse.cz>
19269
19270 * lto-cgraph.c (output_cgraph): Add missing declaration.
19271
19272 2010-07-06 Jan Hubicka <jh@suse.cz>
19273
19274 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
19275 partition.
19276
19277 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
19278
19279 * doc/gimple.texi (GIMPLE_DEBUG): Document.
19280 * doc/rtl.texi (Debug Information): New node.
19281 (NOTE_INSN_VAR_LOCATION): Document.
19282 (debug_insn): Likewise.
19283 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
19284
19285 2010-07-07 Jan Hubicka <jh@suse.cz>
19286
19287 With parts by Richard Guenther.
19288
19289 PR middle-end/44813
19290 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
19291 for functions passed by reference.
19292 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
19293 in memory when passed by reference.
19294 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
19295 beggining.
19296 * ipa-split.c (split_function): Cleanup way return value is passed;
19297 handle SSA DECL_BY_REFERENCE retvals.
19298 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
19299 DECL_BY_REFERENCE is set.
19300 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
19301 find_what_p_points_to): Handle RESULT_DECL.
19302 * tree-inline.c (declare_return_variable): Get new entry_block argument;
19303 when passing by reference ensure that RESULT_DECL is gimple_val.
19304 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
19305 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
19306
19307 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
19308
19309 PR rtl-optimization/44787
19310 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
19311 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
19312
19313 2010-07-06 Jan Hubicka <jh@suse.cz>
19314
19315 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
19316 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
19317 with body can prevail.
19318 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
19319 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
19320 * cgraph.c (cgraph_get_node_or_alias): New function.
19321 * cgraph.h (cgraph_get_node_or_alias): Declare.
19322
19323 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
19324
19325 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
19326 support.
19327 (ix86_expand_prologue): Likewise.
19328 (ix86_handle_fndecl_attribute): Likewise.
19329 (ix86_asm_declare_function_name): New function for
19330 ASM_DECLARE_FUNCTION_NAME.
19331 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
19332 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
19333 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
19334 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
19335 * doc/extend.texi: Adjust documentation about ms_hook_prologue
19336 attribute.
19337
19338 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
19339
19340 * config/i386/i386.md (immediate_operand): New mode attribute.
19341
19342 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
19343 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
19344 using P mode iterator.
19345 (pro_epilogue_adjust_stack_di_2): Rename from
19346 pro_epilogue_adjust_stack_rex64_2.
19347
19348 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
19349
19350 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
19351
19352 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
19353 through gen_mov_insv_1 function pointer.
19354 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
19355 gen_truncxf<mode>2 through gen_truncxf function pointer.
19356 (remainder<mode>3): Ditto.
19357 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
19358 (allocate_stack): Call gen_allocate_stack_worker_64 or
19359 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
19360 function pointer.
19361 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
19362 function pointer.
19363
19364 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
19365
19366 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
19367 operand constraint instead of <r><i>m.
19368
19369 2010-07-06 Richard Guenther <rguenther@suse.de>
19370
19371 PR middle-end/44828
19372 * convert.c (convert_to_integer): Watch out for overflowing
19373 MULT_EXPR as well.
19374
19375 2010-07-05 Jan Hubicka <jh@suse.cz>
19376
19377 * lto-streamer.c (write_symbol_vec): Rename to ...
19378 (write_symbol) ... this one; write only symbol given and when
19379 present in cache. Sanity check that what is defined is present
19380 in cgraph/varpool with body/finalized decl.
19381 (write_symbols_of_kind): Remove.
19382 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
19383 pairs to produce symtab.
19384 (produce_asm_for_decls): Update call of produce_symtab; don't do so
19385 when doing WPA streaming.
19386
19387 2010-07-05 Jan Hubicka <jh@suse.cz>
19388
19389 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
19390 function is still available to fold into.
19391
19392 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
19393
19394 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
19395 * function.h (struct_function): Change type of local_decls field
19396 to a VEC.
19397 (add_local_decl): New function.
19398 (FOR_EACH_LOCAL_DECL): New macro.
19399 * cfgexpand.c (init_vars_expansion): Adjust for new type of
19400 cfun->local_decls.
19401 (estimated_stack_frame_size): Likewise.
19402 (expand_used_vars): Likewise.
19403 * cgraphbuild.c (build_cgraph_edges): Likewise.
19404 * function.c (instantiate_decls_1): Likewise.
19405 * ipa-struct-reorg.c (build_data_structure): Likewise.
19406 * ipa-type-escape.c (analyze_function): Likewise.
19407 * lto-streamer-in.c (input_function): Likewise.
19408 * lto-streamer-out.c (output_function): Likewise.
19409 * tree-ssa-live.c (remove_unused_locals): Likewise.
19410 * tree.c (free_lang_data_in_decl): Likewise.
19411 (find_decls_types_in_node): Likewise.
19412 * omp-low.c (remove_exit_barrier): Likewise.
19413 (expand_omp_taskreg): Likewise.
19414 (list2chain): Rename to...
19415 (vec2chain): ...this. Adjust.
19416 * cgraphunit.c (assemble_thunk): Call add_local_decl.
19417 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
19418 * gimple-low.c (record_vars_into): Likewise.
19419 * tree-inline.c (remap_decls): Likewise.
19420 (declare_return_variable): Likewise.
19421 (declare_inline_vars): Likewise.
19422 (copy_forbidden): Adjust for new type of cfun->local_decls.
19423 (add_local_variables): New function.
19424 (expand_call_inline): Call it.
19425 (tree_function_versioning): Likewise.
19426
19427 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
19428
19429 AVX Programming Reference (June, 2010)
19430 * config/i386/cpuid.h (bit_F16C): New.
19431 (bit_RDRND): Likewise.
19432 (bit_FSGSBASE): Likewise.
19433
19434 * config/i386/i386-builtin-types.def: Add
19435 "DEF_FUNCTION_TYPE (UINT16)", function types for
19436 float16 <-> float conversions and
19437 "DEF_FUNCTION_TYPE (VOID, UINT64)".
19438
19439 * config/i386/i386-c.c (ix86_target_macros_internal): Support
19440 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
19441 OPTION_MASK_ISA_F16C.
19442
19443 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
19444 (OPTION_MASK_ISA_RDRND_SET): Likewise.
19445 (OPTION_MASK_ISA_F16C_SET): Likewise.
19446 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
19447 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
19448 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
19449 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
19450 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
19451 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
19452 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
19453 (override_options): Handle them.
19454 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
19455 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
19456 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
19457 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
19458 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
19459 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
19460 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
19461 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
19462 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
19463 (bdesc_args): Likewise.
19464 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
19465 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
19466 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
19467 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
19468 Handle non-memory store.
19469
19470 * config/i386/i386.h (TARGET_FSGSBASE): New.
19471 (TARGET_RDRND): Likewise.
19472 (TARGET_F12C): Likewise.
19473
19474 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
19475 (UNSPEC_VCVTPS2PH): Likewise.
19476 (UNSPECV_RDFSBASE): Likewise.
19477 (UNSPECV_RDGSBASE): Likewise.
19478 (UNSPECV_WRFSBASE): Likewise.
19479 (UNSPECV_WRGSBASE): Likewise.
19480 (UNSPECV_RDRAND): Likewise.
19481 (rdfsbase<mode>): Likewise.
19482 (rdgsbase<mode>): Likewise.
19483 (wrfsbase<mode>): Likewise.
19484 (wrgsbase<mode>): Likewise.
19485 (rdrand<mode>): Likewise.
19486
19487 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
19488
19489 * config/i386/immintrin.h (_rdrand_u16): New.
19490 (_rdrand_u32): Likewise.
19491 (_readfsbase_u32): Likewise.
19492 (_readfsbase_u64): Likewise.
19493 (_readgsbase_u32): Likewise.
19494 (_readgsbase_u64): Likewise.
19495 (_writefsbase_u32): Likewise.
19496 (_writefsbase_u64): Likewise.
19497 (_writegsbase_u32): Likewise.
19498 (_writegsbase_u64): Likewise.
19499 (_rdrand_u64): Likewise.
19500 (_cvtsh_ss): Likewise.
19501 (_mm_cvtph_ps): Likewise.
19502 (_mm256_cvtph_ps): Likewise.
19503 (_cvtss_sh): Likewise.
19504 (_mm_cvtps_ph): Likewise.
19505 (_mm256_cvtps_ph): Likewise.
19506
19507 * config/i386/sse.md (vcvtph2ps): New.
19508 (*vcvtph2ps_load): Likewise.
19509 (vcvtph2ps256): Likewise.
19510 (vcvtps2ph): Likewise.
19511 (*vcvtps2ph): Likewise.
19512 (*vcvtps2ph_store): Likewise.
19513 (vcvtps2ph256): Likewise.
19514
19515 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
19516
19517 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
19518
19519 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
19520
19521 PR bootstrap/44512
19522 * genenums.c (main): Output include of insn-constants.h
19523 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
19524
19525 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
19526
19527 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
19528 (override_options): Initialize it.
19529 (ix86_expand_prologue): Use it.
19530
19531 2010-07-05 Jakub Jelinek <jakub@redhat.com>
19532
19533 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
19534
19535 2010-07-05 Anatoly Sokolov <aesok@post.ru>
19536
19537 * double-int.h (fit_double_type): Remove declaration.
19538 * double-int.c (fit_double_type): Remove function.
19539 * tree.h (int_fits_type_p): Adjust prototype.
19540 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
19541 instead of fit_double_type.
19542 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
19543 instead of fit_double_type and build_int_cst_wide.
19544 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
19545 instead of fit_double_type and build_int_cst_wide.
19546 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
19547 of fit_double_type.
19548
19549 2010-07-05 Jan Hubicka <jh@suse.cz>
19550
19551 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
19552 in_other_partition.
19553 * lto-cgraph.c (referenced_from_other_partition_p,
19554 reachable_from_other_partition_p): Use in_other_partition flags.
19555 (output_node, output_varpool_node): COMDAT nodes always have private
19556 copies and thus are never used from other partition.
19557
19558 2010-07-05 Anatoly Sokolov <aesok@post.ru>
19559
19560 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
19561 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
19562 * config/ia64/ia64.c Include reload.h.
19563 (ia64_memory_move_cost): New function.
19564 (TARGET_MEMORY_MOVE_COST): Define.
19565 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
19566 memory_move_cost.
19567
19568 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
19569
19570 PR middle-end/42505
19571 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
19572 comments about cost model.
19573 (try_add_cand_for): Add second strategy for choosing initial set
19574 based on original IVs, controlled by ORIGINALP argument.
19575 (get_initial_solution): Add ORIGINALP argument.
19576 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
19577 (find_optimal_iv_set): Try two different strategies for choosing
19578 the IV set, and return the one with lower cost.
19579
19580 2010-07-05 Richard Guenther <rguenther@suse.de>
19581
19582 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
19583
19584 2010-07-05 Richard Guenther <rguenther@suse.de>
19585
19586 * tree.c (reference_alias_ptr_type): New function.
19587 * tree.h (reference_alias_ptr_type): Declare.
19588 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
19589 allow non-TARGET_MEM_REF new refs.
19590 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
19591 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
19592 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
19593 (create_mem_ref): Get alias pointer type. Adjust calls to
19594 create_mem_ref_raw.
19595 (maybe_fold_tmr): Likewise.
19596 * tree-flow.h (create_mem_ref): Adjust prototype.
19597
19598 2010-07-05 Jakub Jelinek <jakub@redhat.com>
19599
19600 PR c++/44808
19601 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
19602 *from_p is VAR_DECL.
19603
19604 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
19605
19606 * tree.h (build_call_list): Remove.
19607 * tree.c (build_call_list): Remove.
19608
19609 2010-07-05 Richard Guenther <rguenther@suse.de>
19610
19611 * double-int.h (double_int_sub): Declare.
19612 * double-int.c (double_int_sub): New function.
19613 * dwarf2out.c (field_byte_offset): Use it.
19614 * fixed-value.c (do_fixed_add): Likewise.
19615 (do_fixed_multiply): Likewise.
19616 (do_fixed_divide): Likewise.
19617 * tree-predcom.c (add_ref_to_chain): Likewise.
19618 (determine_roots_comp): Likewise.
19619 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
19620
19621 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
19622
19623 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
19624 implementations.
19625
19626 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
19627
19628 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
19629 * arm-modes.def (CC_NOTB): Don't define.
19630 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
19631 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
19632 (LTUGEU): New code_iterator.
19633 (cnb, optab): New corresponding code_attrs.
19634 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
19635 to canonical form. Operands 1 and 2 are commutative. Parametrize
19636 using LTUGEU.
19637 (addsi3_carryin_shift_<optab>): Likewise.
19638 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
19639 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
19640 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
19641 (subsi3_compare): Renamed from subsi3_compare0_c.
19642 Change CC_NOTB to CC.
19643 (arm_subsi3_insn): Allow constants for operand 0.
19644 (compare_scc peephole for eq case): New.
19645 (compare_scc splitters): Change CC_NOTB to CC.
19646
19647 2010-07-05 Richard Guenther <rguenther@suse.de>
19648
19649 * tree-ssa-loop-im.c (for_each_index): Do not handle
19650 ALIGN_INDIRECT_REF.
19651 (gen_lsm_tmp_name): Likewise.
19652 * tree-dump.c (dequeue_and_dump): Likewise.
19653 * tree-pretty-print.c (dump_generic_node): Likewise.
19654 (op_code_prio): Likewise.
19655 (op_symbol_code): Likewise.
19656 * tree.c (staticp): Likewise.
19657 (build1_stat): Likewise.
19658 * tree.h (INDIRECT_REF_P): Likewise.
19659 * fold-const.c (maybe_lvalue_p): Likewise.
19660 (operand_equal_p): Likewise.
19661 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
19662 (ao_ref_init_from_vn_reference): Likewise.
19663 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
19664 (find_interesting_uses_address): Likewise.
19665 * dwarf2out.c (loc_list_from_tree): Likewise.
19666 * gimplify.c (gimplify_expr): Likewise.
19667 * tree-eh.c (tree_could_trap_p): Likewise.
19668 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
19669 * cfgexpand.c (expand_debug_expr): Likewise.
19670 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
19671 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
19672 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
19673 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
19674 * tree-ssa-operands.c (get_expr_operands): Likewise.
19675 * expr.c (safe_from_p): Likewise.
19676 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
19677 * tree-vect-data-refs.c (vect_setup_realignment): Build
19678 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
19679 * tree-vect-stmts.c (vectorizable_load): Likewise.
19680 * tree.def (ALIGN_INDIRECT_REF): Remove.
19681
19682 2010-07-05 Richard Guenther <rguenther@suse.de>
19683
19684 PR tree-optimization/44784
19685 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
19686 for inserted stmts.
19687 (find_or_generate_expression): Fix SCCVN insertion check.
19688
19689 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
19690
19691 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
19692 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
19693 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
19694 directives.
19695
19696 2010-07-05 Ira Rosen <irar@il.ibm.com>
19697
19698 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
19699 statements that are not vectorized.
19700 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
19701 in INSIDE_COST.
19702
19703 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
19704
19705 PR bootstrap/44820
19706 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
19707
19708 2010-07-05 Richard Guenther <rguenther@suse.de>
19709
19710 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
19711 RESULT_DECLs properly.
19712
19713 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
19714
19715 PR rtl-optimization/44695
19716 * config/i386/i386.md (extract_code): Removed.
19717 (<u>divmodqi4): Likewise.
19718 (divmodqi4): New.
19719 (udivmodqi4): Likewise.
19720 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
19721 (udivmodhiqi3): Likewise.
19722
19723 2010-07-04 Jan Hubicka <jh@suse.cz>
19724
19725 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
19726
19727 2010-07-04 Jan Hubicka <jh@suse.cz>
19728
19729 * cgraphunit.c (init_cgraph): Only initialize dump file if it
19730 is not already initialized.
19731
19732 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
19733
19734 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
19735 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
19736 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
19737 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
19738 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
19739 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
19740 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
19741 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
19742 (sync_new_nand_optab): Redefine as macros.
19743 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
19744 Delete.
19745 (direct_optab_index): New enum.
19746 (direct_optab_d): New structure.
19747 (direct_optab): New typedef.
19748 (direct_optab_table): Declare.
19749 (direct_optab_handler, set_direct_optab_handler): New functions.
19750 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
19751 (sync_lock_release_optab): New macros.
19752 * optabs.c (direct_optab_table): New variable.
19753 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
19754 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
19755 cmpstr_optab and cmpstrn_optab.
19756 (emit_conditional_move): Likewise for movcc_optab.
19757 (can_conditionally_move_p): Likewise for movcc_gen_code.
19758 (init_insn_codes): Clear direct_optab_table.
19759 (init_optabs): Don't initialize the new "direct optabs" here.
19760 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
19761 vcond_gen_code.
19762 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
19763 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
19764 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
19765 (expand_sync_operation): Likewise other sync_*_optabs.
19766 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
19767 to sync_compare_and_swap_optab.
19768 (expand_sync_lock_test_and_set): Use direct_optab_handler for
19769 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
19770 to the names of both.
19771 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
19772 cmpstr_optab and cmpstrn_optab.
19773 (expand_builtin_lock_release): Likewise sync_lock_release.
19774 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
19775 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
19776 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
19777 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
19778 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
19779 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
19780 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
19781 (sync_lock_test_and_set, sync_lock_release): Delete.
19782 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
19783 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
19784 * genopinit.c (optabs): Use set_direct_optab_handler for the new
19785 macro optabs.
19786 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
19787 the "optab" local variable. Use direct_optab_handler for optab and
19788 sync_compare_and_swap_optab.
19789 * reload1.c (reload_in_optab, reload_out_optab): Delete.
19790 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
19791 reload_in_optab and reload_out_optab.
19792 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
19793 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
19794 * config/pa/pa.c (pa_secondary_reload): Likewise.
19795 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
19796 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
19797 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
19798 (VMSupportsCS8_builtin): Likewise.
19799
19800 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
19801
19802 * optabs.h (optab_handlers): Change type of insn_code to int.
19803 (optab_handler, set_optab_handler, convert_optab_handler)
19804 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
19805 CODE_FOR_nothing".
19806 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
19807 (init_insn_codes): Zero both the above arrays.
19808 (init_optabs): Never call init_insn_codes first time around.
19809
19810 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
19811
19812 * optabs.h (optab_handler, convert_optab_handler): Turn into
19813 inline functions that return an insn code.
19814 (set_optab_handler, set_convert_optab_handler): New functions.
19815 * builtins.c: Replace optab_handler(X)->insn_code with
19816 optab_handler or set_optab_handler thoughout. Likewise
19817 convert_optab_handler(X)->insn_code with convert_optab_handler
19818 and set_convert_optab_handler.
19819 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
19820 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
19821 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
19822 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
19823 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
19824 config/spu/spu.c: Likewise.
19825
19826 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
19827
19828 PR target/44531
19829 * config.gcc (sh*-*-*): Use regular expressions instead of
19830 the 'i' modifier for sed substitutions.
19831
19832 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
19833
19834 * gimple.c (gimple_body): Comments added.
19835
19836 2010-07-04 Richard Guenther <rguenther@suse.de>
19837
19838 PR middle-end/44809
19839 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
19840 of an INDIRECT_REF.
19841
19842 2010-07-04 Richard Guenther <rguenther@suse.de>
19843
19844 PR tree-optimization/44479
19845 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
19846 extra SSA name copy statements which preserves points-to
19847 information.
19848 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
19849 Copy points-to information for all pointers. Properly handle
19850 MEM_REFs.
19851 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
19852 copy statements.
19853 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
19854 dependency.
19855
19856 2010-07-04 Richard Guenther <rguenther@suse.de>
19857
19858 PR middle-end/44785
19859 * tree-inline.c (initialize_inlined_parameters): Do not
19860 re-use pointer-map slot over remap_type call.
19861
19862 2010-07-04 Richard Guenther <rguenther@suse.de>
19863
19864 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
19865
19866 2010-07-04 Richard Guenther <rguenther@suse.de>
19867
19868 PR tree-optimization/44656
19869 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
19870 again after value-replacing in the defintions lhs.
19871
19872 2010-07-04 Ira Rosen <irar@il.ibm.com>
19873 Revital Eres <eres@il.ibm.com>
19874
19875 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
19876 Document new arguments.
19877 * doc/tm.texi: Regenerate.
19878 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
19879 Handle unaligned store.
19880 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
19881 * target.def (builtin_vectorization_cost): Add new arguments.
19882 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
19883 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
19884 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
19885 (vect_vfa_segment_size): Fix indentation.
19886 * tree-vectorizer.h (struct _vect_peel_info): New.
19887 (struct _vect_peel_extended_info): New.
19888 (struct _loop_vec_info): Add new field for peeling hash table and a
19889 macro for its access.
19890 (VECT_MAX_COST): Define.
19891 (vect_get_load_cost): Declare.
19892 (vect_get_store_cost, vect_get_known_peeling_cost,
19893 vect_get_single_scalar_iteraion_cost): Likewise.
19894 (vect_supportable_dr_alignment): Add new argument.
19895 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
19896 field.
19897 (destroy_loop_vec_info): Free peeling hash table.
19898 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
19899 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
19900 vect_analyze_slp. Fix indentation.
19901 (vect_get_single_scalar_iteraion_cost): New function.
19902 (vect_get_known_peeling_cost): Likewise.
19903 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
19904 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
19905 statement. Move outside cost calculation inside unknown peeling case.
19906 Call vect_get_known_peeling_cost for known amount of peeling.
19907 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
19908 reference to the print message of forced alignment.
19909 (vect_verify_datarefs_alignment): Update call to
19910 vect_supportable_dr_alignment.
19911 (vect_get_data_access_cost): New function.
19912 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
19913 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
19914 vect_peeling_hash_choose_best_peeling): Likewise.
19915 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
19916 to store all the accesses in the loop and find best possible access to
19917 align using peeling for known alignment case. For unknown alignment
19918 check if stores are preferred or if peeling is worthy.
19919 (vect_find_same_alignment_drs): Analyze pairs of loads too.
19920 (vect_supportable_dr_alignment): Add new argument and check aligned
19921 accesses according to it.
19922 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
19923 (cost_for_stmt): Call vect_get_stmt_cost.
19924 (vect_model_simple_cost): Likewise.
19925 (vect_model_store_cost): Call vect_get_stmt_cost. Call
19926 vect_get_store_cost to calculate the cost of the statement.
19927 (vect_get_store_cost): New function.
19928 (vect_model_load_cost): Call vect_get_stmt_cost. Call
19929 vect_get_load_cost to calculate the cost of the statement.
19930 (vect_get_load_cost): New function.
19931 (vectorizable_store): Update call to vect_supportable_dr_alignment.
19932 (vectorizable_load): Likewise.
19933 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
19934 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
19935 arguments. Handle unaligned store.
19936 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
19937 (rs6000_builtin_support_vector_misalignment): Return true for word and
19938 double word alignments for VSX.
19939 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
19940 vect_supportable_dr_alignment and builtin_vectorization_cost.
19941
19942 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19943
19944 PR target/44597
19945 * config/pa/predicates.md (prefetch_cc_operand): Remove.
19946 (prefetch_nocc_operand): Likewise.
19947 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
19948 (prefetch_20): New insn.
19949 (prefetch_cc): Remove.
19950 (prefetch_nocc): Likewise.
19951
19952 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
19953
19954 * expr.c (vector_mode_valid_p): Move to c-common.c.
19955 * expr.h (vector_mode_valid_p): Do not declare here.
19956 * system.h: Poison GCC_EXPR_H in front-ends.
19957 * Makefile.in: Update dependencies.
19958
19959 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
19960
19961 PR target/44705
19962 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
19963
19964 2010-07-03 Jan Hubicka <jh@suse.cz>
19965
19966 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
19967 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
19968 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
19969 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
19970 Likewise.
19971
19972 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
19973 Update timevars.V
19974 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
19975 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
19976 TV_IPA_LTO_DECL_OUT): New.
19977 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
19978
19979 2010-07-03 Jan Hubicka <jh@suse.cz>
19980
19981 * ipa-inline.c (update_edge_key): Break out from ...
19982 update_callers_keys): ... here;
19983 (update_callee_keys): Update only the edges from caller to callee.
19984 (update_all_calle_keys): Do what update_calle_keys did.
19985 (decide_inlining_of_small_functions): Avoid recomputing of all
19986 callees when badness increase.
19987
19988 2010-07-03 Jie Zhang <jie@codesourcery.com>
19989
19990 * config/arm/arm.c (arm_attr_length_move_neon): New.
19991 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
19992 * config/arm/neon.md (define_mode_attr V_slen): Remove.
19993 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
19994 to compute length attribute.
19995
19996 2010-07-03 Jie Zhang <jie@codesourcery.com>
19997
19998 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
19999 as predicate for operand 1 and remove its constraint.
20000 * config/arm/predicates.md (vfp_register_operand): New.
20001 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
20002 (*push_fp_multi): Likewise.
20003
20004 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
20005
20006 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
20007
20008 2010-07-03 Jan Hubicka <jh@suse.cz>
20009
20010 * config/i386/i386.c (override_options): Revert accidental commit.
20011
20012 2010-07-02 Le-Chun Wu <lcwu@google.com>
20013
20014 PR c++/44128
20015 * doc/invoke.texi: Update documentation of -Wshadow.
20016
20017 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
20018 Julian Brown <julian@codesourcery.com>
20019 Sandra Loosemore <sandra@codesourcery.com>
20020
20021 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
20022 comparisons. Adjust to take both operands.
20023 (arm_select_cc_mode): Handle DImode comparisons.
20024 (arm_gen_compare_reg): Generate a scratch register for DImode
20025 comparisons which require one. Use xor for Thumb equality checks.
20026 (arm_const_double_by_immediates): New.
20027 (arm_print_operand): Allow 'Q' and 'R' for constants.
20028 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
20029 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
20030 arm_canonicalize_comparison.
20031 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
20032 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
20033 prototype.
20034 (arm_const_double_by_immediates): Declare.
20035 * config/arm/constraints.md (Di): New constraint.
20036 * config/arm/predicates.md (arm_immediate_di_operand)
20037 (arm_di_operand, cmpdi_operand): New.
20038 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
20039 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
20040 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
20041 (cstoredi4): Handle non-Cirrus also.
20042
20043 2010-07-02 Julian Brown <julian@codesourcery.com>
20044 Sandra Loosemore <sandra@codesourcery.com>
20045
20046 PR target/43703
20047 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
20048 (smax<mode>3): Disable for NEON float modes when
20049 flag_unsafe_math_optimizations is false.
20050 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
20051 (*mul<mode>3_neon)
20052 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
20053 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
20054 for NEON float modes when flag_unsafe_math_optimizations is false.
20055 (quad_halves_<code>v4sf): Only enable if
20056 flag_unsafe_math_optimizations is true.
20057 * doc/invoke.texi (ARM Options): Add note about floating point
20058 vectorization requiring -funsafe-math-optimizations.
20059
20060 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
20061 Julian Brown <julian@codesourcery.com>
20062
20063 * config/arm/neon.md (UNSPEC_VABA): Delete.
20064 (UNSPEC_VABAL): Delete.
20065 (UNSPEC_VABS): Delete.
20066 (UNSPEC_VMUL_N): Delete.
20067 (adddi3_neon): New.
20068 (subdi3_neon): New.
20069 (mul<mode>3add<mode>_neon): Make the pattern named.
20070 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
20071 (neon_vadd<mode>): Replace with define_expand, and move the remaining
20072 unspec parts...
20073 (neon_vadd<mode>_unspec): ...to this.
20074 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
20075 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
20076 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
20077 (neon_vaba<mode>): Rewrite in terms of vabd.
20078 (neon_vabal<mode>): Rewrite in terms of vabdl.
20079 (neon_vabs<mode>): Rewrite without unspec.
20080 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
20081 (*arm_subdi3): Likewise.
20082 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
20083 No_op attribute to disable assembly output checks.
20084 * config/arm/arm_neon.h: Regenerated.
20085 * doc/arm-neon-intrinsics.texi: Regenerated.
20086
20087 2010-07-02 Jan Hubicka <jh@suse.cz>
20088
20089 * ipa-split.c (split_function): For aggregate values, set the return
20090 slot optimization bit. When passing DECL_BY_REFERENCE, produce
20091 *<retval> = fncall.part ().
20092 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
20093
20094 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
20095
20096 * config/arm/neon.md (UNSPEC_VAND): Delete.
20097 (UNSPEC_VBIC): Delete.
20098 (UNSPEC_VCLZ): Delete.
20099 (UNSPEC_VCNT): Delete.
20100 (UNSPEC_VEOR): Delete.
20101 (UNSPEC_VORN): Delete.
20102 (UNSPEC_VORR): Delete.
20103 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
20104 core registers too.
20105 (anddi3_neon): Likewise.
20106 (orndi3_neon): Likewise.
20107 (bicdi3_neon): Likewise.
20108 (xordi3_neon): Likewise.
20109 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
20110 rid of unspec and handle unused operand.
20111 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
20112 * config/arm/predicates.md (imm_for_neon_logic_operand):
20113 Require TARGET_NEON.
20114 (imm_for_neon_inv_logic_operand): Likewise.
20115 * config/arm/arm.md (define_split for logical_binary_operator):
20116 Disable for NEON registers.
20117 (anddi3): Add new define_expand, and rename the insn. Disable
20118 this insn for NEON, where anddi3_neon now applies.
20119 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
20120 (iordi3): As for anddi3.
20121 (xordi3): Likewise.
20122 * config/arm/neon.ml (Vand): Split DImode variants and mark them
20123 as No_op to disable testing for exact instruction match.
20124 (Vorr): Likewise.
20125 (Veor): Likewise.
20126 (Vbic): Likewise.
20127 (Vorn): Likewise.
20128 * config/arm/arm_neon.h: Regenerated.
20129 * doc/arm-neon-intrinsics.texi: Regenerated.
20130
20131 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
20132
20133 * expr.h (emit_stack_probe): Declare.
20134 * explow.c (emit_stack_probe): Make global.
20135 (anti_adjust_stack_and_probe): Fix comments.
20136 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
20137 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20138 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20139 * config/sparc/sparc.c: Include except.h.
20140 (sparc_emit_probe_stack_range): New function.
20141 (output_probe_stack_range): Likewise.
20142 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
20143 built-in stack checking is enabled.
20144 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
20145 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
20146 (probe_stack_range): New insn.
20147
20148 2010-07-02 Richard Guenther <rguenther@suse.de>
20149
20150 PR target/43958
20151 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
20152 for argument alignment.
20153
20154 2010-07-02 Jan Hubicka <jh@suse.cz>
20155
20156 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
20157 walk backwards from entry_bb to check only those basic block of header
20158 that might lead to execution of split part.
20159 (consider_split) ... here.
20160 (find_return_bb): Allow assignment in return BB.
20161 (find_retval): New.
20162 (split_function): Fix name of cloned function; take care of updating
20163 return value in return_bb containing move.
20164
20165 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
20166
20167 PR target/44771
20168 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
20169 used variable insn.
20170
20171 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
20172
20173 * implicit-zee.c (combine_reaching_defs): Fix long lines.
20174 (is_set_with_extension_DI): Delete.
20175 (struct zero_extend_info): New structure.
20176 (add_removable_zero_extend): New function.
20177 (find_removable_zero_extends): Use note_stores to find SETs.
20178 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
20179
20180 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
20181
20182 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
20183 is_miss_rate_acceptable. Pull total_positions computation
20184 out of the loops. Early return if miss_positions exceeds
20185 the acceptable threshold.
20186 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
20187 is_miss_rate_acceptable after renaming of compute_miss_rate.
20188
20189 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
20190
20191 PR middle-end/44576
20192 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
20193 of 1000) for miss rate if the address diference is greater than or
20194 equal to the cache line size (the two reference will never hit the
20195 same cache line).
20196
20197 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
20198
20199 PR target/42835
20200 * config/arm/arm-modes.def (CC_NOTB): New mode.
20201 * config/arm/arm.c (get_arm_condition_code): Handle it.
20202 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
20203 * config/arm/arm.md (subsi3_compare0_c): New pattern.
20204 (compare_scc): Now a define_and_split. Add a number of extra
20205 splitters before it.
20206
20207 PR target/42172
20208 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
20209 and ZERO_EXTEND.
20210 (arm_rtx_costs_1): Likewise.
20211 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
20212 * config/arm/arm.md (is_arch6): New attribute.
20213 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
20214 extendqisi2): Tighten the code somewhat, avoiding invalid
20215 RTL to occur in the expander patterns.
20216 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
20217 (thumb1_zero_extendhisi2_v6): Delete.
20218 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
20219 (thumb1_extendhisi2_v6): Delete.
20220 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
20221 (thumb1_extendqisi2_v6): Delete.
20222 (zero_extendhisi2 for register input splitter): New.
20223 (zero_extendqisi2 for register input splitter): New.
20224 (thumb1_extendhisi2 for register input splitter): New.
20225 (extendhisi2 for register input splitter): New.
20226 (extendqisi2 for register input splitter): New.
20227 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
20228 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
20229 and add support for a register alternative requiring a split.
20230 (thumb1_zero_extendqisi2): Likewise.
20231 (arm_zero_extendqisi2): Likewise.
20232 (arm_extendhisi2): Likewise.
20233 (arm_extendqisi2): Likewise.
20234
20235 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
20236
20237 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
20238 instead of an unspec.
20239 (neon_expand_vector_init): Likewise.
20240 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
20241 (UNSPEC_VDUP_LANE): Delete.
20242 (UNSPEC VDUP_N): Delete.
20243 (UNSPEC_VGET_HIGH): Delete.
20244 (UNSPEC_VGET_LANE): Delete.
20245 (UNSPEC_VGET_LOW): Delete.
20246 (UNSPEC_VMVN): Delete.
20247 (UNSPEC_VSET_LANE): Delete.
20248 (V_double_vector_mode): New.
20249 (vec_set<mode>_internal): Make code emitted match that for the
20250 corresponding intrinsics.
20251 (vec_setv2di_internal): Likewise.
20252 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
20253 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
20254 (neon_vset_lane<mode>): Combine double and quad patterns and
20255 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
20256 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
20257 (neon_vdup_n<mode>): Rewrite RTL without unspec.
20258 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
20259 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
20260 with neon_vdup_lanev2di, adjusting the pattern from the latter
20261 to be predicable for consistency.
20262 (neon_vdup_lane<mode>_internal): New.
20263 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
20264 to avoid using an unspec.
20265 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
20266 (neon_vdup_lanev2di): Turn into a define_expand.
20267 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
20268 (neon_vget_high<mode>): Replace with....
20269 (neon_vget_highv16qi): New pattern using canonical RTL.
20270 (neon_vget_highv8hi): Likewise.
20271 (neon_vget_highv4si): Likewise.
20272 (neon_vget_highv4sf): Likewise.
20273 (neon_vget_highv2di): Likewise.
20274 (neon_vget_low<mode>): Replace with....
20275 (neon_vget_lowv16qi): New pattern using canonical RTL.
20276 (neon_vget_lowv8hi): Likewise.
20277 (neon_vget_lowv4si): Likewise.
20278 (neon_vget_lowv4sf): Likewise.
20279 (neon_vget_lowv2di): Likewise.
20280
20281 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
20282 test for this emitting vmov.
20283 (Vset_lane): Likewise.
20284 (Vdup_n): Likewise.
20285 (Vmov_n): Likewise.
20286
20287 * doc/arm-neon-intrinsics.texi: Regenerated.
20288
20289 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
20290
20291 * config/arm/neon.md (vec_extractv2di): Correct error in register
20292 numbering to reconcile with neon_vget_lanev2di.
20293
20294 2010-07-02 Richard Guenther <rguenther@suse.de>
20295
20296 * tree-ssa-structalias.c (pt_solution_set_var): New function.
20297 * tree-ssa-alias.h (pt_solution_set_var): Declare.
20298 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
20299 points-to information.
20300
20301 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
20302
20303 * config/s390/s390.c (override_options): Adopt prefetching
20304 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
20305
20306 2010-07-02 Jan Hubicka <jh@suse.cz>
20307
20308 * df-problems.c (df_kill_notes): Do not collect dead notes.
20309 (df_set_note): Just call add_reg_note.
20310 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
20311 df_create_unused_note): Do not deal with lists of old notes.
20312 (df_note_bb_compute): Likewise.
20313
20314 2010-07-02 Richard Guenther <rguenther@suse.de>
20315
20316 * tree-ssa-structalias.c (find_func_aliases): Handle
20317 pointer alignment via BIT_AND_EXPR.
20318 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
20319
20320 2010-07-02 Richard Guenther <rguenther@suse.de>
20321
20322 * tree-data-ref.c (initialize_data_dependence_relation): Handle
20323 mismatching number of dimensions properly.
20324
20325 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20326
20327 PR target/44707
20328 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
20329 (lo_sum (high ...) ...) patterns generated by earlier passes.
20330
20331 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20332
20333 * doc/install.texi (Prerequisites): Document Perl requirement on
20334 Solaris 2.
20335 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
20336
20337 2010-07-02 Richard Guenther <rguenther@suse.de>
20338
20339 PR middle-end/44777
20340 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
20341
20342 2010-07-02 Jan Hubicka <jh@suse.cz>
20343
20344 PR middle-end/44706
20345 * predict.c (predict_paths_for_bb): Handle case when control dependence
20346 BB has only abnormal edges.
20347
20348 2010-07-02 Richard Guenther <rguenther@suse.de>
20349
20350 PR tree-optimization/44748
20351 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
20352 the embedded conversion in MEM_REFs.
20353
20354 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
20355
20356 * reload.c: Include toplev.h.
20357 * recog.c: Likewise.
20358 * Makefile.in: Adjust dependencies.
20359
20360 2010-07-01 Jakub Jelinek <jakub@redhat.com>
20361
20362 PR debug/44694
20363 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
20364 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
20365
20366 2010-07-01 Richard Guenther <rguenther@suse.de>
20367
20368 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
20369 types for offsets.
20370
20371 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
20372
20373 PR target/44732
20374 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
20375 Fix argument types.
20376
20377 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
20378
20379 PR target/44727
20380 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20381 Make sure operand 0 dies.
20382
20383 2010-07-01 Richard Guenther <rguenther@suse.de>
20384
20385 PR middle-end/42834
20386 PR middle-end/44468
20387 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
20388 * doc/generic.texi (References to storage): Document MEM_REF.
20389 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
20390 (print_call_name): Likewise.
20391 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
20392 (build_simple_mem_ref_loc): New function.
20393 (mem_ref_offset): Likewise.
20394 * tree.h (build_simple_mem_ref_loc): Declare.
20395 (build_simple_mem_ref): Define.
20396 (mem_ref_offset): Declare.
20397 * fold-const.c: Include tree-flow.h.
20398 (operand_equal_p): Handle MEM_REF.
20399 (build_fold_addr_expr_with_type_loc): Likewise.
20400 (fold_comparison): Likewise.
20401 (fold_unary_loc): Fold
20402 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
20403 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
20404 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
20405 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
20406 (ptr_deref_may_alias_ref_p_1): Likewise.
20407 (ao_ref_base_alias_set): Properly differentiate base object for
20408 offset and TBAA.
20409 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
20410 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
20411 (indirect_refs_may_alias_p): Likewise.
20412 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
20413 chasing code.
20414 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
20415 (call_may_clobber_ref_p_1): Likewise.
20416 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
20417 * expr.c (expand_assignment): Handle MEM_REF.
20418 (store_expr): Handle MEM_REFs from STRING_CSTs.
20419 (store_field): If expanding a MEM_REF of a non-addressable
20420 decl use bitfield operations.
20421 (get_inner_reference): Handle MEM_REF.
20422 (expand_expr_addr_expr_1): Likewise.
20423 (expand_expr_real_1): Likewise.
20424 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
20425 * alias.c (ao_ref_from_mem): Handle MEM_REF.
20426 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
20427 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
20428 (dr_analyze_indices): Likewise.
20429 (dr_analyze_alias): Likewise.
20430 (object_address_invariant_in_loop_p): Likewise.
20431 * gimplify.c (mark_addressable): Handle MEM_REF.
20432 (gimplify_cond_expr): Build MEM_REFs.
20433 (gimplify_modify_expr_to_memcpy): Likewise.
20434 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
20435 (gimple_fold_indirect_ref): Adjust.
20436 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
20437 * tree.def (MEM_REF): New tree code.
20438 * tree-dfa.c: Include toplev.h.
20439 (get_ref_base_and_extent): Handle MEM_REF.
20440 (get_addr_base_and_unit_offset): New function.
20441 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
20442 * gimple-fold.c (may_propagate_address_into_dereference): Handle
20443 MEM_REF.
20444 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
20445 accesses if the array has just one dimension. Remove always true
20446 parameter. Do not require type compatibility here.
20447 (maybe_fold_offset_to_component_ref): Remove.
20448 (maybe_fold_stmt_indirect): Remove.
20449 (maybe_fold_reference): Remove INDIRECT_REF handling.
20450 Fold back to non-MEM_REF.
20451 (maybe_fold_offset_to_address): Simplify. Deal with type
20452 mismatches here.
20453 (maybe_fold_reference): Likewise.
20454 (maybe_fold_stmt_addition): Likewise. Also handle
20455 &ARRAY + I in addition to &ARRAY[0] + I.
20456 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
20457 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
20458 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
20459 * tree-ssa.c (useless_type_conversion_p): Make most pointer
20460 conversions useless.
20461 (warn_uninitialized_var): Handle MEM_REF.
20462 (maybe_rewrite_mem_ref_base): New function.
20463 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
20464 to SSA form.
20465 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
20466 INDIRECT_REF handling.
20467 (copy_tree_body_r): Handle MEM_REF.
20468 * gimple.c (is_gimple_addressable): Adjust.
20469 (is_gimple_address): Likewise.
20470 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
20471 invariant base are invariant.
20472 (is_gimple_min_lval): Adjust.
20473 (is_gimple_mem_ref_addr): New function.
20474 (get_base_address): Handle MEM_REF.
20475 (count_ptr_derefs): Likewise.
20476 (get_base_loadstore): Likewise.
20477 * gimple.h (is_gimple_mem_ref_addr): Declare.
20478 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
20479 * tree-cfg.c (verify_address): New function, split out from ...
20480 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
20481 the address operand of MEM_REFs. Verify MEM_REFs. Reject
20482 INDIRECT_REFs.
20483 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
20484 INDIRECT_REF. Allow conversions.
20485 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
20486 a register does not change its size.
20487 (verify_types_in_gimple_reference): Verify MEM_REF.
20488 (verify_gimple_assign_single): Disallow INDIRECT_REF.
20489 Handle MEM_REF.
20490 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
20491 New.
20492 (mark_address_taken): Handle MEM_REF.
20493 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
20494 (get_asm_expr_operands): Pass opf_not_non_addressable.
20495 (get_expr_operands): Handle opf_[not_]non_addressable.
20496 Handle MEM_REF. Remove INDIRECT_REF handling.
20497 * tree-vrp.c (check_array_ref): Handle MEM_REF.
20498 (search_for_addr_array): Likewise.
20499 (check_array_bounds): Likewise.
20500 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
20501 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
20502 (ref_always_accessed_p): Likewise.
20503 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
20504 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
20505 Handle MEM_REF.
20506 * cgraphbuild.c (mark_load): Properly check for NULL result
20507 from get_base_address.
20508 (mark_store): Likewise.
20509 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
20510 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
20511 handling for MEM_REF.
20512 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
20513 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
20514 * builtins.c (stabilize_va_list_loc): Use the function ABI
20515 valist type if we couldn't canonicalize the argument type.
20516 Always dereference with the canonical va-list type.
20517 (maybe_emit_free_warning): Handle MEM_REF.
20518 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
20519 memmove to memcpy.
20520 * builtins.c (fold_builtin_memory_op): Use ref-all types
20521 for all memcpy foldings.
20522 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
20523 (build_outer_var_ref): Likewise.
20524 (scan_omp_1_op): Likewise.
20525 (lower_rec_input_clauses): Likewise.
20526 (lower_lastprivate_clauses): Likewise.
20527 (lower_reduction_clauses): Likewise.
20528 (lower_copyprivate_clauses): Likewise.
20529 (expand_omp_atomic_pipeline): Likewise.
20530 (expand_omp_atomic_mutex): Likewise.
20531 (create_task_copyfn): Likewise.
20532 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
20533 Remove old union trick. Initialize constant offsets.
20534 (ao_ref_init_from_vn_reference): Likewise. Do not handle
20535 INDIRECT_REF. Init base_alias_set properly.
20536 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
20537 (vn_reference_fold_indirect): Adjust for MEM_REFs.
20538 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
20539 for ARRAY_REFs.
20540 (may_insert): Remove.
20541 (visit_reference_op_load): Do not test may_insert.
20542 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
20543 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
20544 a field to store the constant offset this op applies.
20545 (run_scc_vn): Adjust prototype.
20546 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
20547 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
20548 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
20549 bother about volatile qualifiers on pointers.
20550 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
20551 * tree-ssa-loop-ivopts.c
20552 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
20553 (strip_offset_1): Likewise.
20554 (find_interesting_uses_address): Replace INDIRECT_REF handling with
20555 MEM_REF handling.
20556 (get_computation_cost_at): Likewise.
20557 * ipa-pure-const.c (check_op): Handle MEM_REF.
20558 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
20559 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
20560 and constants.
20561 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
20562 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
20563 (eliminate_local_variables_1): Likewise.
20564 (create_call_for_reduction_1): Likewise.
20565 (create_loads_for_reductions): Likewise.
20566 (create_loads_and_stores_for_name): Likewise.
20567 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
20568 (ssa_accessed_in_tree): Handle MEM_REF.
20569 (ssa_accessed_in_assign_rhs): Likewise.
20570 (update_type_size): Likewise.
20571 (analyze_accesses_for_call_stmt): Likewise.
20572 (analyze_accesses_for_assign_stmt): Likewise.
20573 (transform_access_sites): Likewise.
20574 (transform_allocation_sites): Likewise.
20575 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
20576 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
20577 not handle INDIRECT_REF.
20578 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
20579 (cond_store_replacement): Likewise.
20580 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
20581 MEM_REF, no not handle INDIRECT_REFs.
20582 (insert_into_preds_of_block): Properly initialize avail.
20583 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
20584 for ARRAY_REFs. Properly handle reference lookups that
20585 require a bit re-interpretation.
20586 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
20587 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
20588 (build_ref_for_offset_1): Remove.
20589 (build_ref_for_offset): Build MEM_REFs.
20590 (gate_intra_sra): Disable for now.
20591 (sra_ipa_modify_expr): Handle MEM_REF.
20592 (ipa_early_sra_gate): Disable for now.
20593 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
20594 MEM_REF handling.
20595 (disqualify_base_of_expr): Likewise.
20596 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
20597 MEM_REF handling.
20598 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
20599 Use mem_ref_offset. Remove bogus folding.
20600 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
20601 (make_fancy_name_1): Add support for MEM_REF.
20602 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
20603 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
20604 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
20605 (compute_complex_ancestor_jump_func): Likewise.
20606 (ipa_analyze_virtual_call_uses): Likewise.
20607 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
20608 INDIRECT_REF folding with more generalized MEM_REF folding.
20609 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
20610 (forward_propagate_addr_into_variable_array_index): Also handle
20611 &ARRAY + I in addition to &ARRAY[0] + I.
20612 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
20613 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
20614 creates assignments with overlap.
20615 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
20616 (get_frame_field): Likewise.
20617 (get_nonlocal_debug_decl): Likewise.
20618 (convert_nonlocal_reference_op): Likewise.
20619 (struct nesting_info): Add mem_refs pointer-set.
20620 (create_nesting_tree): Allocate it.
20621 (convert_local_reference_op): Insert to be folded mem-refs.
20622 (fold_mem_refs): New function.
20623 (finalize_nesting_tree_1): Perform defered folding of mem-refs
20624 (free_nesting_tree): Free the pointer-set.
20625 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
20626 (vectorizable_load): Likewise.
20627 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
20628 (propagate_with_phi): Likewise.
20629 * tree-object-size.c (addr_object_size): Handle MEM_REFs
20630 instead of INDIRECT_REFs.
20631 (compute_object_offset): Handle MEM_REF.
20632 (plus_stmt_object_size): Handle MEM_REF.
20633 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
20634 for &MEM_REF.
20635 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
20636 (symbol_marked_for_renaming): Likewise.
20637 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
20638 (fold-const.o): Add $(TREE_FLOW_H).
20639 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
20640 (find_func_clobbers): Likewise.
20641 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
20642 (decompose_access): Likewise.
20643 (replace_field_acc): Likewise.
20644 (replace_field_access_stmt): Likewise.
20645 (insert_new_var_in_stmt): Likewise.
20646 (get_stmt_accesses): Likewise.
20647 (reorg_structs_drive): Disable.
20648 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
20649 (ix86_canonical_va_list_type): Likewise.
20650
20651 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
20652
20653 PR other/44566
20654 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
20655 * target.def (struct gcc_target): Replace enum reg_class with
20656 reg_class_t in hook argument / return types.
20657 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
20658 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
20659 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
20660 * targhooks.h (default_branch_target_register_class): Likewise.
20661 (default_ira_cover_classes, default_secondary_reload): Likewise.
20662 (default_memory_move_cost, default_register_move_cost): Likewise.
20663 * targhooks.c (default_branch_target_register_class): Likewise.
20664 (default_ira_cover_classes, default_secondary_reload): Likewise.
20665 (default_memory_move_cost, default_register_move_cost): Likewise.
20666 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
20667 * bt-load.c (branch_target_load_optimize): Likewise.
20668 * ira.c (setup_cover_and_important_classes): Likewise.
20669 * ira-costs.c (copy_cost): Likewise.
20670 * reload1.c (emit_input_reload_insns): Likewise.
20671 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
20672 * config/frv/frv.c (frv_secondary_reload): Likewise.
20673 * config/s390/s390.c (s390_secondary_reload): Likewise.
20674 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
20675 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
20676 (ix86_register_move_cost): Likewise.
20677 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
20678 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
20679 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
20680 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
20681 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
20682 (rs6000_ira_cover_classes): Likewise.
20683 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
20684 * config/picochip/picochip-protos.h (picochip_secondary_reload):
20685 Likewise.
20686 * config/pa/pa.c (pa_secondary_reload): Likewise.
20687 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
20688 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
20689 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
20690 * doc/tm.texi: Regenerate.
20691
20692 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
20693
20694 PR bootstrrap/44726
20695 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
20696 use.
20697 (build_alias_set_optimal_p): Likewise.
20698 (build_base_obj_set_for_drs): Likewise.
20699
20700 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
20701
20702 * target.def: Remove comment about licensing problems of function
20703 declarations.
20704
20705 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
20706 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
20707 * doc/tm.texi: Regenerate.
20708
20709 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
20710 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
20711
20712 * target.def (enum_va_list_p): Use DEFHOOK.
20713 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
20714 Rename ptype to ptree.
20715 * doc/tm.texi: Regenerate.
20716
20717 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
20718 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
20719 * doc/tm.texi: Regenerate.
20720
20721 * target.def (memory_move_cost): Use DEFHOOK.
20722 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
20723 Rename regclass AKA class to rclass.
20724 * doc/tm.texi: Regenerate.
20725
20726 * target.def (pragma_parse): Use DEFHOOK.
20727 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
20728 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
20729 * doc/tm.texi: Regenerate.
20730
20731 * target.def (pass_by_reference): Use DEFHOOK.
20732 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
20733 * doc/tm.texi: Regenerate.
20734
20735 * target.def (resolve_overloaded_builtin): Rename params to arglist.
20736 Use DEFHOOK.
20737 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
20738 * doc/tm.texi: Regenerate.
20739
20740 * target.def (return_pops_args): Use DEFHOOK.
20741 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
20742 Rename stack-size to size.
20743 * doc/tm.texi: Regenerate.
20744
20745 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
20746 last-sched_cycle to last_clock, cur_cycle to clock.
20747 * doc/tm.texi.in: Use @hook.
20748 * doc/tm.texi: Regenerate.
20749
20750 * target.def (print_operand, print_operand_address): Update comment.
20751 (print_operand_punct_valid_p): Likewise.
20752
20753 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
20754
20755 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
20756 to rtl.h.
20757 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
20758 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
20759 * rtl-error.h: New.
20760 * regrename.c: Do not include toplev.h. Include rtl-error.h.
20761 * rtl-error.c: Likewise.
20762 * reload.c: Likewise.
20763 * recog.c: Likewise.
20764 * sel-sched.c: Likewise.
20765 * function.c: Likewise.
20766 * reg-stack.c: Likewise.
20767 * cfgrtl.c: Likewise.
20768 * reload1.c: Likewise.
20769 * final.c: Include rtl-error.
20770 * Makefile.in: Adjust dependencies.
20771
20772 2010-06-30 Jan Hubicka <jh@suse.cz>
20773
20774 PR middle-end/PR44706
20775 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
20776 to return the value.
20777
20778 2010-06-30 Michael Matz <matz@suse.de>
20779
20780 PR bootstrap/44699
20781 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
20782 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
20783 a gimple reg, attach the original VDEF to the last store in the
20784 sequence.
20785
20786 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
20787
20788 PR other/44034
20789 * config/darwin.c (darwin_override_options): Use renamed
20790 targetm.asm_out.emit_unwind_label.
20791
20792 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
20793
20794 PR tree-optimization/39799
20795 * tree-inline.c (remap_ssa_name): Initialize variable only if
20796 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
20797
20798 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
20799
20800 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
20801
20802 2010-06-30 Richard Guenther <rguenther@suse.de>
20803
20804 PR target/44722
20805 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
20806 against oscillation with reverse peephole2.
20807
20808 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
20809
20810 PR target/44721
20811 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20812 Fix last commit.
20813
20814 2010-06-30 Nick Clifton <nickc@redhat.com>
20815
20816 * config/rx/rx-modes.def: New file.
20817 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
20818 (CC_REGNUM): Define.
20819 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
20820 register.
20821 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
20822 (SELECT_CC_MODE): Define.
20823 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
20824 (reg:CC CC_REG) instead of (cc0).
20825 (attr "cc"): Delete.
20826 (cbranchsi4): Do not split compare and branch here. Instead move
20827 it to...
20828 (cbranchsi4_<code>): ... here. New patterns.
20829 (cmpsi): Call rx-compare_redundant to find out if it is necessary
20830 to emit the compare instruction.
20831 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
20832 cc_status flags.
20833 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
20834 FIRST_PSEUDO_REGNUM.
20835 (rx_expand_prologue, rx_expand_epilogue): Likewise.
20836 (rx_notice_update_cc): Delete.
20837 (rx_cc_modes_compatible): New function.
20838 (flags_needed_for_conditional): New function.
20839 (flags_from_mode): New function.
20840 (rx_compare_redundant): New function - scans backwards through
20841 insn list to find out if condition flags are already set correctly.
20842 (TARGET_CC_MODES_COMPATIBLE): Define.
20843 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
20844
20845 * config/rx/rx.h (BRANCH_COST): Define.
20846 (REGISTER_MOVE_COST): Define.
20847 * config/rx/predicates (rx_source_operand): Allow all constant types.
20848 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
20849 (tstsi4): New pattern.
20850 * config/rx/rx.c (rx_memory_move_cost): Define.
20851 (TARGET_MEMORY_MOVE_COST): Define.
20852
20853 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
20854
20855 * tree.h (block_may_fallthru): Declare here.
20856 * tree-flow.h (block_may_fallthru): Do not declare here.
20857 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
20858 bitmap.h
20859 * Makefile.in (c-typeck.o): Update dependencies.
20860
20861 2010-06-30 Jakub Jelinek <jakub@redhat.com>
20862
20863 PR debug/44694
20864 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
20865 * cselib.c (cfa_base_preserved_regno): New static variable.
20866 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
20867 of REGNO (cfa_base_preserved_val->locs->loc).
20868 (cselib_preserve_cfa_base_value): Add regno argument, set
20869 cfa_base_preserved_regno to it.
20870 (cselib_invalidate_regno): Allow removal of registers other than
20871 cfa_base_preserved_regno from cfa_base_preserved_val.
20872 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
20873 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
20874 of MEM addresses, if not on LHS.
20875 (reverse_op): Don't add reverse ops for cfa_base_rtx.
20876 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
20877
20878 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
20879
20880 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
20881 static variables.
20882 (peep2_buf_position): New static function.
20883 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
20884 peephole2_optimize): Use it.
20885 (peep2_attempt, peep2_update_life): New static functions, broken out
20886 of peephole2_optimize.
20887 (peep2_fill_buffer): New static function.
20888 (peephole2_optimize): Change the main loop to try to fill the buffer
20889 with the maximum number of insns before matching them against
20890 peepholes. Use a forward scan. Remove special case for targets with
20891 conditional execution.
20892 * genrecog.c (change_state): Delete dead code.
20893 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
20894 Rewrite so as not to expect the second insn to have had a peephole
20895 applied yet.
20896
20897 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20898
20899 * genhooks.c (emit_findices): Cast field precision to int.
20900 (emit_documentation): Likewise.
20901
20902 2010-06-29 Jakub Jelinek <jakub@redhat.com>
20903
20904 PR tree-optimization/43801
20905 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
20906 if old_decl was DECL_ONE_ONLY.
20907
20908 PR debug/44668
20909 * dwarf2out.c (add_accessibility_attribute): New function.
20910 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
20911 instead of adding DW_AT_accessibility manually.
20912 (gen_enumeration_type_die, gen_struct_or_union_type_die,
20913 gen_typedef_die): Use it.
20914
20915 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20916
20917 * vmsdbgout.c (full_name): Just output the file name if not native.
20918
20919 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20920
20921 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
20922 (funcnam_table): New static table.
20923 (funcnum_table): New static table.
20924 (write_rtnbeg): Write value saved in funcnum_table.
20925 (write_rtnend): Write value saved in funcnum_table.
20926 (vmsdbgout_begin_function): Save current function info in
20927 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
20928 (vmsdbgout_finish): Iterate over funcnum_table.
20929
20930 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20931
20932 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
20933 (vmsdbgout_type_decl): Declare
20934 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
20935 (FUNC_EPILOGUE_LABEL): New macro
20936 (vmsdbgout_begin_epilogue): New function.
20937 (vmsdbgout_type_decl): New function.
20938
20939 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20940
20941 * vmsdbg.h: Update copyright.
20942
20943 2010-06-29 Douglas B Rupp <rupp@gnat.com>
20944
20945 * vmsdbg.h (DST_K_TBG): New DST constant.
20946 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
20947 (write_modbeg): Cast module_language to avoid warning.
20948 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
20949
20950 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
20951
20952 PR other/44034
20953 * target.def, doc/tm.texi.in, genhooks.c: New files.
20954 * target.h: Instead of defining individual hook members,
20955 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
20956 include target.def.
20957 * target-def.h: Instead of defining individual hook initializers,
20958 include target-hooks-def.h.
20959 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
20960 targetm.live_on_entry -> targetm.extra_live_on_entry
20961 targetm.sched.md_finish ->targetm.sched.finish
20962 targetm.sched.md_init -> targetm.sched.init
20963 targetm.sched.md_init_global -> targetm.sched.init_global
20964 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
20965 targetm.asm_out.except_table_label ->
20966 targetm.asm_out.emit_except_table_label
20967 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
20968 targetm.target_help -> targetm.help
20969 targetm.vectorize.builtin_support_vector_misalignment ->
20970 targetm.vectorize.support_vector_misalignment
20971 targetm.file_start_app_off -> targetm.asm_file_start_app_off
20972 targetm.file_start_file_directive ->
20973 targetm.asm_file_start_file_directive
20974 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
20975 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
20976 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
20977 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
20978 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
20979 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
20980 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
20981 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
20982 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
20983 * Makefile.in (TARGET_H): Depend on target.def.
20984 (TARGET_DEF_H): Depend on target-hooks-def.h.
20985 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
20986 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
20987 * doc/tm.texi: Regenerate.
20988
20989 * Makefile.in (s-tm-texi): Remove stray tab / rule.
20990
20991 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
20992 (targetm.sched.init): Likewise.
20993
20994 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
20995
20996 PR bootstrap/44713
20997 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
20998 (function_arg_advance_32): Const-ify TYPE parameter.
20999 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
21000 (ix86_function_arg_advance): Change type of NAMED to bool.
21001 (function_arg_32): Const-ify CUM and TYPE parameters.
21002 (function_arg_64): Likewise. Change type of NAMED to bool.
21003 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
21004 to bool.
21005 (ix86_function_arg): Change type of NAMED to bool.
21006 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
21007 last argument as a bool.
21008
21009 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
21010
21011 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
21012 (OVERRIDE_OPTIONS): Add note of obsolescence.
21013 Replace references with references to TARGET_OPTION_OVERRIDE.
21014 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
21015 the macro).
21016 * targhooks.c (default_target_option_override): New function.
21017 * targhooks.h (default_target_option_override): Declare.
21018 * target.h (struct gcc_target): Add override member to
21019 target_option member.
21020 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
21021 targetm.target_option.override call.
21022 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
21023 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
21024
21025 2010-06-29 Jan Hubicka <jh@suse.cz>
21026
21027 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
21028
21029 2010-06-29 Jan Hubicka <jh@suse.cz>
21030
21031 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
21032 unreachable.
21033 (rebuild_frequencies): New function.
21034 * predict.h (rebuild_frequencies): Declare.
21035 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
21036 entry block and edge reaching new_entry.
21037 (tree_function_versioning): When doing partial cloning, rebuild
21038 frequencies when done.
21039 * passes.c (execute_function_todo): Use rebild_frequencies.
21040
21041 2010-06-29 Richard Guenther <rguenther@suse.de>
21042
21043 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
21044 * tree-flow.h (enum noalias_state): Remove.
21045 (struct var_ann_d): Remove noalias_state member.
21046
21047 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
21048
21049 PR target/43902
21050 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
21051 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
21052 (maddhidi4): Likewise.
21053
21054 Revert parts of the change for PR25130.
21055 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
21056 MEM_ALIAS_SET.
21057
21058 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
21059
21060 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
21061 targetm.calls.function_incoming_arg, and
21062 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
21063 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
21064 * target.h (struct gcc_target): Add function_arg_advance,
21065 function_arg, and function_incoming_arg fields.
21066 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
21067 (TARGET_FUNCTION_INCOMING_ARG): Define.
21068 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
21069 and TARGET_FUNCTION_INCOMING_ARG.
21070 * targhooks.h (default_function_arg_advance): Declare.
21071 (default_function_arg, default_function_incoming_arg): Declare.
21072 * targhooks.c (default_function_arg_advance): New function.
21073 (default_function_arg, default_function_incoming_arg): New function.
21074 * config/i386/i386.c (function_arg_advance): Rename to...
21075 (ix86_function_arg_advance): ...this. Make static.
21076 (function_arg): Rename to...
21077 (ix86_function_arg): ...this. Make static.
21078 (TARGET_FUNCTION_ARG_ADVANCE): Define.
21079 (TARGET_FUNCTION_ARG): Define.
21080 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
21081 (FUNCTION_ARG): Delete.
21082 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
21083 (function_arg): Delete prototype.
21084
21085 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
21086
21087 * reginfo.c (init_reg_sets_1): Adjust comments.
21088 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
21089 * calls.c (prepare_call_address): Likewise.
21090 (emit_call_1): Use targetm.calls.return_pops_args.
21091 (expand_call): Likewise.
21092 * function.c (assign_parms): Likewise.
21093 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
21094 * target.h (struct gcc_target) [struct calls]: Add
21095 return_pops_args field.
21096 * targhooks.h (default_return_pops_args): Declare.
21097 * targhooks.c (default_return_pops_args): Define.
21098 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
21099 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
21100 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
21101 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
21102 documentation.
21103 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
21104 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
21105 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
21106 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
21107 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
21108 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
21109 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
21110 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
21111 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
21112 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
21113 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
21114 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
21115 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
21116 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
21117 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
21118 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
21119 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
21120 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
21121 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
21122 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
21123 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
21124 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
21125 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
21126 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
21127 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
21128 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
21129 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
21130 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
21131 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
21132 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
21133 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
21134 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
21135 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
21136 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
21137 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
21138 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
21139 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
21140 * config/i386/i386.c (ix86_return_pops_args): Make static.
21141 Constify arguments.
21142 (TARGET_RETURN_POPS_ARGS): Define.
21143 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
21144 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
21145 (TARGET_RETURN_POPS_ARGS): Define.
21146 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
21147 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
21148 (TARGET_RETURN_POPS_ARGS): Define.
21149
21150 2010-06-29 Richard Guenther <rguenther@suse.de>
21151
21152 PR middle-end/44667
21153 * tree-inline.c (initialize_inlined_parameters): Make sure
21154 to remap the inlined parameter variable substitutions types.
21155
21156 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
21157
21158 PR rtl-optimization/44659
21159 * combine.c (make_compound_operation) <SUBREG>: Do not return the
21160 result of force_to_mode if it partially re-expanded the compound.
21161
21162 2010-06-28 Jan Hubicka <jh@suse.cz>
21163
21164 PR middle-end/44671
21165 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
21166 RESULT_DECL.
21167
21168 2010-06-28 Anatoly Sokolov <aesok@post.ru>
21169
21170 * double-int.h (force_fit_type_double): Remove declaration.
21171 * double-int.c (force_fit_type_double): Move to tree.c.
21172 * tree.h (force_fit_type_double): Declare.
21173 * tree.h (force_fit_type_double): Moved from double-int.c. Use
21174 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
21175 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
21176 * convert.c (convert_to_pointer): Adjust call to
21177 force_fit_type_double.
21178 * tree-vrp.c (extract_range_from_assert,
21179 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
21180 * fold-const.c: Update comment.
21181 (int_const_binop, fold_convert_const_int_from_int,
21182 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
21183 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
21184 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
21185 round_up_loc): Adjust call to force_fit_type_double.
21186
21187 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21188
21189 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
21190
21191 2010-06-28 Martin Jambor <mjambor@suse.cz>
21192
21193 * tree-sra.c (convert_callers): New parameter, change fndecls of
21194 recursive calls.
21195 (modify_function): Pass the old decl to convert_callers.
21196
21197 2010-06-28 Martin Jambor <mjambor@suse.cz>
21198
21199 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
21200 ipa_check_create_node_params and ipa_initialize_node_params with
21201 checking asserts they are not necessary.
21202
21203 2010-06-28 Jan Hubicka <jh@suse.cz>
21204
21205 PR tree-optimization/44687
21206 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
21207
21208 2010-06-28 Martin Jambor <mjambor@suse.cz>
21209
21210 PR c++/44535
21211 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
21212 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
21213 instead of BINFO_BASE_BINFO.
21214
21215 2010-06-28 Michael Matz <matz@suse.de>
21216
21217 PR middle-end/44592
21218 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
21219 proper VDEF chain for intermediate stores in the sequence.
21220
21221 2010-06-28 Jan Hubicka <jh@suse.cz>
21222
21223 PR tree-optimization/44357
21224 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
21225 uninlinable functions.
21226
21227 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
21228
21229 * config.gcc (powerpc*-*-*): Handle titan.
21230 * config/rs6000/rs6000.c (titan_cost): New costs.
21231 (rs6000_override_options): Add "titan" to processor_target_table.
21232 Add Titan to branch alignment logic.
21233 Correctly set rs6000_cost for titan.
21234 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
21235 * config/rs6000/titan.md: New file.
21236 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
21237
21238 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
21239
21240 * tree-browser.c (TB_history_stack): Convert to a VEC.
21241 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
21242 (TB_history_prev): Likewise.
21243
21244 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
21245
21246 * vec.h (vec_heap_free): Add parentheses around free.
21247
21248 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
21249
21250 * system.h: Poison GCC_EXCEPT_H for front-end files.
21251
21252 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
21253 langhook.
21254 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
21255 Define to NULL by default.
21256 * except.h: Define GCC_EXCEPT_H.
21257 (doing_eh): Remove prototype.
21258 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
21259 (lang_protect_cleanup_actions): Remove.
21260 * except.c (lang_protect_cleanup_actions): Remove.
21261 (doing_eh): Remove.
21262 (gen_eh_region): Don't check doing_eh here.
21263 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
21264 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
21265 instead of lang_protect_cleanup_actions.
21266 * omp-low.c (maybe_catch_exception): Likewise.
21267 * Makefile.in: Update dependencies.
21268
21269 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
21270
21271 * cgraph.h (struct varpool_node): new used_from_object_file flag.
21272 (struct cgraph_local_info): new used_from_object_file flag.
21273 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
21274 (cgraph_clone_node): initialize used_from_object_file.
21275 (cgraph_create_virtual_clone): initialize used_from_object_file.
21276 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
21277 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
21278 when compiling with -fwhole-program.
21279 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
21280 internal resolver.
21281 * ipa.c (function_and_variable_visibility): Set externally_visible
21282 flag of varpool_node if used_from_object_file flag is set.
21283 (cgraph_externally_visible_p): check used_from_object_file flag.
21284 * doc/invoke.texi (-fwhole-program option): Change description of
21285 externally_visible attribute accordingly.
21286 * doc/extend.texi (externally_visible): Ditto.
21287
21288 2010-06-27 Jan Hubicka <jh@suse.cz>
21289
21290 * params.def (max-inline-insns-auto): Default to 40.
21291 * doc/invoke.texi (max-inline-insns-auto): Document the change.
21292
21293 2010-06-27 Jan Hubicka <jh@suse.cz>
21294
21295 PR middle-end/44671
21296 PR middle-end/44686
21297 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
21298 signature change.
21299 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
21300 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
21301
21302 2010-06-27 Anatoly Sokolov <aesok@post.ru>
21303
21304 * target.h (struct gcc_target): Add register_move_cost field.
21305 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
21306 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
21307 * targhooks.c (default_register_move_cost): New function.
21308 * targhooks.h (default_register_move_cost): Declare function.
21309 * defaults.h (REGISTER_MOVE_COST): Delete.
21310 * ira-int.h (ira_register_move_cost): Update comment.
21311 * ira.c (ira_register_move_cost): Update comment.
21312 * reload.h (register_move_cost): Declare.
21313 * reginfo.c (register_move_cost): New function.
21314 (move_cost): Update comment.
21315 (init_move_cost, memory_move_secondary_cost): Replace
21316 REGISTER_MOVE_COST with register_move_cost.
21317 * postreload.c (reload_cse_simplify_set): (Ditto.).
21318 * reload.c (find_valid_class, find_reloads): (Ditto.).
21319 * reload1.c (choose_reload_regs): (Ditto.).
21320 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
21321 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
21322 * doc/md.texi (can_create_pseudo_p): Update documentation.
21323
21324 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21325 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21326 * config/i386/i386.h (ix86_memory_move_cost): Make static.
21327 (TARGET_MEMORY_MOVE_COST): Define.
21328
21329 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
21330 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
21331 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
21332 (TARGET_MEMORY_MOVE_COST): Define.
21333
21334 2010-06-27 Richard Guenther <rguenther@suse.de>
21335
21336 PR tree-optimization/44683
21337 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
21338 false edge from the inverted condition.
21339
21340 2010-06-27 Richard Guenther <rguenther@suse.de>
21341
21342 PR middle-end/44684
21343 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
21344 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
21345 for register LHS. Or non-store assignments.
21346
21347 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
21348
21349 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
21350 (sparc_emit_set_const64): Likewise. Remove disabled code.
21351 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
21352 (sparc_emit_set_const64): Likewise.
21353
21354 2010-06-26 Catherine Moore <clm@codesourcery.com>
21355
21356 * config/mips/mips.md (alu_type): New attribute.
21357 (type): Infer type from alu_type.
21358 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
21359 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
21360 *subsi3_extended, negsi2, negdi2, *low<mode>,
21361 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
21362 xor<mode>3, *nor<mode>3,
21363 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
21364 *zero_extendhi_truncqi): Set alu_type instead of type.
21365
21366 2010-06-26 Douglas B Rupp <rupp@gnat.com>
21367
21368 * config/alpha/alpha.c (alpha_need_linkage): Adjust
21369 splay_tree_new_ggc call.
21370 (alpha_use_linkage): Likewise.
21371
21372 2010-06-26 Joseph Myers <joseph@codesourcery.com>
21373
21374 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
21375 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
21376 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
21377 (static_specs): Remove switches_need_spaces.
21378 (process_command, do_self_spec): Hardcode handling "-o" instead of
21379 checking switches_need_spaces.
21380 * system.h (SWITCHES_NEED_SPACES): Poison.
21381
21382 2010-06-26 Richard Guenther <rguenther@suse.de>
21383
21384 PR tree-optimization/44393
21385 * tree-loop-distribution.c (generate_loops_for_partition): Fix
21386 stmt removal and VOP renaming.
21387 (generate_memset_zero): Remove redundant stmt updating.
21388 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
21389 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
21390
21391 2010-06-26 Jan Hubicka <jh@suse.cz>
21392
21393 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
21394 edges comming from header are equivalent.
21395 (visit_bb): Handle PHIs correctly.
21396 * tree-inline.c (copy_phis_for_bb): Be able to copy
21397 PHI from entry edge.
21398 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
21399
21400 2010-06-26 Richard Guenther <rguenther@suse.de>
21401
21402 PR middle-end/44674
21403 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
21404 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
21405
21406 2010-06-26 Joseph Myers <joseph@codesourcery.com>
21407
21408 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
21409 add_infile, alloc_switch): New.
21410 (process_command): Remove variable lang_n_infiles. Process
21411 options in a single pass. Use new functions for allocating
21412 infiles and switches arrays. Properly skip operands of
21413 -Xpreprocessor and -Xassembler.
21414
21415 2010-06-26 Jan Hubicka <jh@suse.cz>
21416
21417 PR middle-end/44671
21418 * cgraphunit.c (cgraph_function_versioning): Remove wrong
21419 cgraph_make_decl_local call; fix typo copying RTL data.
21420
21421 2010-06-25 DJ Delorie <dj@redhat.com>
21422
21423 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
21424 (m32c_output_aligned_common): Likewise.
21425 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
21426 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
21427 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
21428 (m32c_register_pragmas): Register it.
21429 * config/m32c/m32c.c (m32c_get_pragma_address): New.
21430 (m32c_insert_attributes): Set #pragma address decls volatile.
21431 (pragma_entry_eq): New.
21432 (pragma_entry_hash): New.
21433 (m32c_note_pragma_address): New.
21434 (m32c_get_pragma_address): New.
21435 (m32c_output_aligned_common): New.
21436 * doc/extend.texi: Document the new pragma.
21437
21438 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
21439 also.
21440 * config/m32c/predicates.md (m32c_any_operand): Check the code
21441 instead of memory_operand so as to allow matching volatile MEMs.
21442 (m32c_nonimmediate_operand): Likewise.
21443 (mra_operand): Allow volatiles.
21444
21445 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
21446
21447 PR debug/44610
21448 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
21449 address if the offset is unknown.
21450
21451 2010-06-25 Douglas B Rupp <rupp@gnat.com>
21452
21453 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
21454 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
21455 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
21456 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
21457 to ia64_start_function. Invoke it.
21458 * config/ia64/ia64.c (ia64_start_function): Call new function
21459 dwarf2out_vms_debug_main_pointer.
21460
21461 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
21462
21463 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
21464 statements computing the true predicate.
21465
21466 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
21467
21468 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
21469 to boolean_true_node.
21470 (reset_bb_predicate): New.
21471 (predicate_bbs): Call reset_bb_predicate.
21472
21473 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
21474
21475 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
21476 (tree_if_conversion): Returns true when something has been changed.
21477 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
21478 changed something.
21479
21480 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
21481
21482 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
21483 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
21484 * tree-if-conv.c: Include dbgcnt.h.
21485 (tree_if_conversion): Use if_conversion_tree to count the number of
21486 if-convertible loops.
21487
21488 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
21489
21490 * common.opt (fprefetch-loop-arrays): Re-define
21491 -fprefetch-loop-arrays as a tri-state option with the initial
21492 value of -1.
21493 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
21494 pass only when flag_prefetch_loop_arrays > 0.
21495 * toplev.c (process_options): Note that, with tri-states,
21496 flag_prefetch_loop_arrays>0 means prefetching is enabled.
21497 * config/i386/i386.c (override_options): Enable prefetching at -O3
21498 for a set of CPUs that sw prefetching is helpful.
21499 (software_prefetching_beneficial_p): New. Return TRUE if software
21500 prefetching is beneficial for the given CPU.
21501
21502 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
21503
21504 PR rtl-optimization/44326
21505 * implicit-zee.c (find_removable_zero_extends): Replace
21506 INSN_P with NONDEBUG_INSN_P.
21507
21508 2010-06-25 Martin Jambor <mjambor@suse.cz>
21509
21510 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
21511 (struct ipa_node_params): Removed the modification_analysis_done flag.
21512 (ipa_is_param_modified): Removed.
21513 (ipa_analyze_node): Declare.
21514 (ipa_compute_jump_functions): Remove declaration.
21515 (ipa_count_arguments): Likewise.
21516 (ipa_detect_param_modifications): Likewise.
21517 (ipa_analyze_params_uses): Likewise.
21518 * ipa-prop.c (struct param_analysis_info): New type.
21519 (visit_store_addr_for_mod_analysis): Removed.
21520 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
21521 moved down in the file.
21522 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
21523 (ipa_count_arguments): Made static.
21524 (mark_modified): New function.
21525 (is_parm_modified_before_call): New function.
21526 (compute_pass_through_member_ptrs): New parameter parms_info, call
21527 is_parm_modified_before_call instead of ipa_is_param_modified.
21528 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
21529 it to compute_pass_through_member_ptrs.
21530 (ipa_compute_jump_functions): New parameter parms_info, pass it to
21531 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
21532 on the callee if it is analyzed. Made static.
21533 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
21534 is_parm_modified_before_call instead of ipa_is_param_modified.
21535 (ipa_analyze_call_uses): New parameter parms_info, pass it to
21536 ipa_analyze_indirect_call_uses.
21537 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
21538 ipa_analyze_call_uses.
21539 (ipa_analyze_params_uses): New parameter parms_info, pass it to
21540 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
21541 (ipa_analyze_node): New function.
21542 (ipa_print_node_params): Do not dump the modified flag.
21543 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
21544 it. Do not stream the modified parameter flag.
21545 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
21546 it. Do not stream the modified parameter flag.
21547 * ipa-cp.c (ipcp_analyze_node): Removed.
21548 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
21549 with only a call to ipa_analyze_node.
21550 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
21551 node with only a call to ipa_analyze_node.
21552
21553 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
21554
21555 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
21556
21557 2010-06-25 Jan Hubicka <jh@suse.cz>
21558
21559 * tree-pass.h (pass_split_functions): Declare.
21560 * opts.c (decode_options): Enable function splitting at -O2
21561 * timevar.def (TV_IPA_FNSPLIT): New macro.
21562 * ipa-split.c: New file.
21563 * common.opt (-fpartial-inlining): New flag.
21564 * Makefile.in (ipa-split.o): New object file.
21565 * passes.c (init_optimization_passes): Add ipa-split.
21566 * params.def (partial-inlining-entry-probability): New parameters.
21567 * doc/invoke.texi (-fpartial-inlining): New.
21568
21569 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
21570
21571 PR 44665
21572 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
21573 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
21574 (gimplify_expr): Likewise.
21575
21576 2010-06-25 Martin Jambor <mjambor@suse.cz>
21577
21578 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
21579 statements instead of bailing out on them.
21580 (ipa_analyze_indirect_call_uses): Do not require that loads from the
21581 parameter are in the same BB as the condition. Update comments.
21582
21583 2010-06-25 Jakub Jelinek <jakub@redhat.com>
21584
21585 PR middle-end/43866
21586 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
21587 true or always false, return NULL_TREE.
21588 (tree_unswitch_single_loop): Optimize conditions even when reaching
21589 max-unswitch-level parameter. If num > 0, optimize first all conditions
21590 using entry checks, then do still reachable block discovery and consider
21591 only conditions in still reachable basic blocks in the loop.
21592
21593 PR tree-optimization/44539
21594 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
21595 the call doesn't have LHS, but has VDEF.
21596
21597 2010-06-25 Joseph Myers <joseph@codesourcery.com>
21598
21599 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
21600 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
21601 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
21602 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
21603 * system.h (MODIFY_TARGET_NAME): Poison.
21604
21605 2010-06-25 Alan Modra <amodra@gmail.com>
21606
21607 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
21608 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
21609 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
21610 CMODEL_LARGE as default.
21611 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
21612 (offsettable_ok_by_alignment): Delete.
21613 (rs6000_emit_move): Remove mcmodel=medium optimization.
21614
21615 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
21616
21617 With large parts from Jim Wilson:
21618 PR target/43902
21619 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
21620 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
21621 * optabs.c (optab_for_tree_code): Likewise.
21622 (expand_widen_pattern_expr): Likewise.
21623 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
21624 out of execute_optimize_widening_mul.
21625 (convert_plusminus_to_widen): New function.
21626 (execute_optimize_widening_mul): Use the two new functions.
21627 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
21628 Remove code to generate widening multiply-accumulate. Add support
21629 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
21630 * gimple-pretty-print.c (dump_ternary_rhs): New function.
21631 (dump_gimple_assign): Call it when appropriate.
21632 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
21633 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
21634 (expand_gimple_stmt_1): Likewise.
21635 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
21636 WIDEN_MULT_MINUS_EXPR.
21637 * tree-ssa-operands.c (get_expr_operands): Likewise.
21638 * tree-inline.c (estimate_operator_cost): Likewise.
21639 * gimple.c (extract_ops_from_tree_1): Renamed from
21640 extract_ops_from_tree. Add new arg for a third operand; fill it.
21641 (gimple_build_assign_stat): Support operations with three operands.
21642 (gimple_build_assign_with_ops_stat): Likewise.
21643 (gimple_assign_set_rhs_from_tree): Likewise.
21644 (gimple_assign_set_rhs_with_ops_1): Renamed from
21645 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
21646 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
21647 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
21648 WIDEN_MULT_MINUS_EXPR.
21649 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
21650 (extract_ops_from_tree_1): Adjust declaration.
21651 (gimple_assign_set_rhs_with_ops_1): Likewise.
21652 (gimple_build_assign_with_ops): Pass NULL for last operand.
21653 (gimple_build_assign_with_ops3): New macro.
21654 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
21655 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
21656 functions.
21657 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
21658 (verify_gimple_assign): Call it.
21659 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
21660 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
21661 functions for dealing with three-operand statements.
21662 * tree.c (commutative_ternary_tree_code): New function.
21663 * tree.h (commutative_ternary_tree_code): Declare it.
21664 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
21665 ternary statements.
21666 (gimple_assign_nonzero_warnv_p): Likewise.
21667 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
21668 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
21669 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
21670 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
21671 (struct hashtable_expr): New member ternary in the union.
21672 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
21673 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
21674 (iterative_hash_hashable_expr): Likewise.
21675 (print_expr_hash_elt): Handle EXPR_TERNARY.
21676 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
21677 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
21678 statements. Handle GIMPLE_TERNARY_RHS.
21679
21680 2010-06-25 Jan Hubicka <jh@suse.cz>
21681
21682 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
21683
21684 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
21685
21686 PR c/44517
21687 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
21688 parameters are not good.
21689 (c_parser_parameter_declaration): Error unknown type name if the type
21690 name can't start declaration specifiers.
21691
21692 2010-06-25 Joseph Myers <joseph@codesourcery.com>
21693
21694 * gcc.c (translate_options): Don't mention +e in comment.
21695 (process_command): Don't handle +e specially.
21696
21697 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
21698
21699 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
21700
21701 * ira-build.c (merge_hard_reg_conflicts): New function.
21702 (create_cap_allocno, copy_info_to_removed_store_destinations,
21703 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
21704 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
21705 (remove_unnecessary_allocnos, remove_low_level_allocnos)
21706 copy_nifo_to_removed_store_destination): Use them.
21707 * ira-lives.c (make_hard_regno_born): New function, split out of
21708 make_regno_born.
21709 (make_allocno_born): Likewise.
21710 (make_hard_regno_dead): New function, split out of make_regno_dead.
21711 (make_allocno_dead): Likewise.
21712 (inc_register_pressure): New function, split out of set_allocno_live.
21713 (dec_register_pressure): New function, split out of clear_allocno_live.
21714 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
21715 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
21716 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
21717 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
21718 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
21719 mark_pseudo_regno_live.
21720 (process_bb_node_lives): Use mark_pseudo_regno_live,
21721 make_hard_regno_born and make_allocno_dead.
21722 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
21723 set_allocno_live, clear_allocno_live): Delete functions.
21724
21725 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
21726 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
21727 functions.
21728 (ira_flattening): Use ira_parent_allocno.
21729 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
21730 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
21731
21732 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
21733 statement.
21734
21735 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
21736 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
21737 minmax_set_iter_cond, minmax_set_iter_next,
21738 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
21739 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
21740 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
21741 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
21742 uses changed.
21743
21744 * ira-int.h (struct live_range, live_range_t): Renamed from struct
21745 ira_allocno_live_range and allocno_live_range_t; all uses changed.
21746 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
21747 All uses changed.
21748
21749 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
21750
21751 * thumb2.md (thumb2_tlobits_cbranch): Delete.
21752 (peephole2 to convert zero_extract/compare of single bit to
21753 lshift/compare): New.
21754
21755 2010-06-24 Anatoly Sokolov <aesok@post.ru>
21756
21757 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
21758 recursive call and call to 'int_const_binop'.
21759 (build_range_check, fold_cond_expr_with_comparison, unextend,
21760 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
21761 multiple_of_p): Adjust call to const_binop.
21762
21763 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
21764
21765 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
21766 determine size of XFmode operand.
21767 (XFmode extended DFmode push splitter): Ditto.
21768 (XFmode extended SFmode push splitter): Ditto.
21769
21770 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
21771
21772 PR target/44588
21773 * config/i386/i386.md (extract_code): New.
21774 (<u>divmodqi4): Likewise.
21775 (divmodhiqi3): Likewise.
21776 (udivmodhiqi3): Likewise.
21777 (<u>divqi3): Remvoved.
21778
21779 2010-06-24 Jakub Jelinek <jakub@redhat.com>
21780
21781 PR middle-end/44492
21782 * recog.h (struct recog_data): Add is_asm field.
21783 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
21784 present in constraints of inline-asm operand and memory operand
21785 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
21786 (extract_insn): Initialize recog_data.is_asm.
21787 * doc/md.texi (Constraints): Document operand side-effect rules.
21788
21789 2010-06-24 Andi Kleen <ak@linux.intel.com>
21790
21791 * c-parser.c (c_parser_conditional_expression): Call
21792 warn_for_omitted_condop.
21793 * doc/invoke.texi: Document omitted condop warning.
21794
21795 2010-06-24 Nick Clifton<nickc@redhat.com>
21796
21797 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
21798 insn in the sequence is a jump insn before setting its label.
21799
21800 2010-06-24 Alan Modra <amodra@gmail.com>
21801
21802 * collect2.c (main): Match exactly --version and --help.
21803
21804 2010-06-24 DJ Delorie <dj@redhat.com>
21805
21806 * config/m32c/m32c-pragma.c: Don't include rtl.h.
21807
21808 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
21809
21810 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
21811 using X87MODEF mode iterator.
21812 (pushsf splitter): Macroize splitter using P mode iterator.
21813 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
21814 mode iterator.
21815
21816 (*movxf_internal): Rename from *movxf_integer.
21817 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
21818 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
21819 (*movdf_internal): Rename from *movdf_integer.
21820 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
21821 (*movsf_internal): Rename from *movdf_1.
21822
21823 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
21824
21825 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
21826 (const_gimple_seq_node): Removed typedefs.
21827
21828 * gimple.h (gimple_seq_node_d, gimple_seq_node)
21829 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
21830
21831 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
21832
21833 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
21834 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
21835 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
21836 and CODE_FOR_vec_extract_lo_v4df.
21837
21838 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
21839 Changed to define_insn_and_split.
21840 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
21841 (vec_extract_lo_v16hi): Likewise.
21842 (vec_extract_lo_v32qi): Likewise.
21843 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
21844 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
21845
21846 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
21847
21848 PR target/44640
21849 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
21850 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
21851 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
21852 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
21853 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
21854
21855 PR target/44640
21856 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
21857
21858 PR other/44644
21859 * df-core.c (struct df): Rename to df_d.
21860 * df.h (struct df): Likewise.
21861 * dse.h (struct df): Remove forward declaration.
21862 * recog.h (struct insn_data): Rename to:
21863 (struct_insn_data_d). Adjusted all users.
21864
21865 2010-06-23 Arnaud Charlet <charlet@adacore.com
21866
21867 PR ada/22220
21868 * doc/install.texi: Update requirements to build GNAT.
21869
21870 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
21871
21872 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
21873 enum type.
21874 (m68k_sched_attr_opx_type): Remove unreachable return.
21875 (m68k_sched_attr_opy_type): Likewise.
21876 (m68k_sched_attr_size): Likewise.
21877 (sched_get_opxy_mem_type): Likewise.
21878 (m68k_sched_attr_op_mem): Likewise.
21879
21880 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
21881
21882 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
21883 new statement and adjust VDEF only if necessary. Remove superfluous
21884 call to maybe_clean_or_replace_eh_stmt.
21885 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
21886 copy the flags.
21887 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
21888 * tree-inline.c (copy_bb): ...and not there.
21889
21890 2010-06-22 Cary Coutant <ccoutant@google.com>
21891
21892 * dwarf2out.c (is_nested_in_subprogram): New function.
21893 (should_move_die_to_comdat): Use it.
21894 (copy_ancestor_tree): Don't mark DIEs here.
21895 (copy_decls_walk): Start walk from root of newly-added tree;
21896 mark DIEs here instead.
21897
21898 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
21899
21900 * config/i386/i386.md (unit): Also check sseishft1.
21901
21902 2010-06-22 Jan Hubicka <jh@suse.cz>
21903
21904 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
21905 enabled.
21906
21907 2010-06-22 Jan Hubicka <jh@suse.cz>
21908
21909 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
21910 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
21911 Return true if something changed.
21912 * df.h (df_confluence_function_n): Return bool.
21913 * df-core.c (df_worklist_propagate_forward,
21914 df_worklist_propagate_backward): Track changes and ages.
21915 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
21916 track ages.
21917 * dse.c (dse_confluence_n): Return always true.
21918
21919 2010-06-22 Jan Hubicka <jh@suse.cz>
21920
21921 * bitmap.c (bitmap_clear_bit): Micro optimize.
21922
21923 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
21924
21925 * config/i386/i386.md (SWI1248x): New mode iterator.
21926 (SWI48x): Ditto.
21927 (SWI12): Ditto.
21928 (SWI24): Ditto.
21929
21930 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
21931 SWI1248x mode iterator.
21932 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
21933 using SWI124 mode iterator.
21934 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
21935 mode iterator.
21936 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
21937 *pushdi2_prologue_rex64 using P mode iterator.
21938 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
21939 using SWI48 mode iterator.
21940 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
21941 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
21942 using SWI1248x mode iterator.
21943 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
21944 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
21945 SWI48 mode iterator.
21946 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
21947 iterator.
21948 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
21949 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
21950 SWI12 mode iterator.
21951 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
21952 SWI12 mode iterator.
21953 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
21954 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
21955 SWI24 mode iterator.
21956 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
21957 SWI48 mode iterator.
21958 (mov<mode>_insn_1): New expander.
21959 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
21960 using SWI48x mode iterator.
21961
21962 (*movoi_internal_avx): Rename from *movoi_internal.
21963 (*movti_internal_rex64): Rename from *movti_rex64.
21964 (*movti_internal_sse): Rename from *movti_sse.
21965 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
21966 (*movdi_internal): Rename from *movdi_2.
21967 (*movsi_internal): Rename from *movsi_1.
21968 (*movhi_internal): Rename from *movhi_1.
21969 (*movqi_internal): Rename from *movqi_1.
21970
21971 (insv): Update the call to gen_movsi_insv_1 for rename.
21972 * config/i386/i386.c (promote_duplicated_reg): Ditto.
21973
21974 2010-06-22 Jan Hubicka <jh@suse.cz>
21975
21976 * passes.c (execute_function_todo): Move call of statistics_fini_pass
21977 to ...
21978 (execute_todo) ... this one.
21979
21980 2010-06-22 Alan Modra <amodra@gmail.com>
21981
21982 PR target/44364
21983 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
21984 * caller-save.c (insert_restore, insert_save): Use non-validate
21985 form of adjust_address.
21986
21987 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21988
21989 PR target/39690
21990 * config/pa/pa.c (override_options): Disable
21991 -freorder-blocks-and-partition.
21992
21993 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
21994
21995 PR target/44615
21996 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
21997
21998 * config/i386/i386.md (type): Add sseishft1
21999
22000 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
22001 (ppro_insn_load): Likewise.
22002 (ppro_insn_store): Likewise.
22003 (ppro_insn_both): Likewise.
22004
22005 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
22006 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
22007 for type.
22008 (*vec_extractv2di_1_avx): Likewise.
22009 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
22010 type. Remove atom_unit.
22011 (*vec_extractv2di_1_sse2): Likewise.
22012
22013 2010-06-21 DJ Delorie <dj@redhat.com>
22014
22015 * diagnostic.h (diagnostic_classification_change_t): New.
22016 (diagnostic_context): Add history and push/pop list.
22017 (diagnostic_push_diagnostics): Declare.
22018 (diagnostic_pop_diagnostics): Declare.
22019 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
22020 from pragmas in a history chain instead of the global table.
22021 (diagnostic_push_diagnostics): New.
22022 (diagnostic_pop_diagnostics): New.
22023 (diagnostic_report_diagnostic): Scan history chain to find state
22024 of diagnostics as of the diagnostic location.
22025 * opts.c (set_option): Pass UNKNOWN_LOCATION to
22026 diagnostic_classify_diagnostic.
22027 (enable_warning_as_error): Likewise.
22028 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
22029 use in the history chain.
22030 * doc/extend.texi: Document pragma GCC diagnostic changes.
22031
22032 2010-06-21 Jakub Jelinek <jakub@redhat.com>
22033
22034 * dwarf2out.c (add_linkage_name): New function. Don't add
22035 anything to DW_TAG_member DIEs.
22036 (add_name_and_src_coords_attributes): Use it.
22037 (gen_variable_die): Call it for C++ static data members if
22038 specification is DW_TAG_member.
22039
22040 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
22041 C++ char16_t and char32_t.
22042
22043 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
22044 * genattrtab.c: Include vecprim.h.
22045 (cached_attrs, cached_attr_count, attrs_seen_once,
22046 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
22047 attrs_cached_after): New variables.
22048 (find_attrs_to_cache): New function.
22049 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
22050 (write_test_expr): Add attrs_cached argument, return it too,
22051 attempt to cache non-const attributes used more than once in
22052 a single case handling.
22053 (write_attr_get): Use find_attrs_to_cache, for caching candidates
22054 emit cached_* variables. Adjust write_attr_set callers.
22055 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
22056 to find attributes that should be cached in this block. Adjust
22057 write_test_expr callers.
22058 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
22059 callers.
22060 (make_automaton_attrs): Adjust write_test_expr caller.
22061
22062 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
22063 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
22064 (make_automaton_attrs): If find_tune_attr returns non-NULL,
22065 write separate internal_dfa_insn_code_* and insn_default_latency_*
22066 functions for each attribute's value and emit init_sched_attrs
22067 function and function pointers.
22068 * genattr.c (const_attrs, reservations): New variables.
22069 (gen_attr): Add const attributes to const_attrs vector.
22070 (check_tune_attr, find_tune_attr): New functions.
22071 (main): Add reservations to reservations vector. If find_tune_attr
22072 returns true, add prototype for init_sched_attrs and make
22073 internal_dfa_insn_code and insn_default_latency function pointers,
22074 otherwise define init_sched_attrs as dummy macro.
22075 * cfgexpand.c: Include insn-attr.h.
22076 (gimple_expand_cfg): Call init_sched_attrs.
22077
22078 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
22079
22080 PR target/44575
22081 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
22082 va_arg from a set of register save slots into a temporary,
22083 if the container is bigger than type size, do the copying
22084 using smaller mode or using memcpy.
22085
22086 PR bootstrap/44426
22087 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
22088 prototype.
22089 (sel_print_to_dot): Remove macro.
22090 (sel_print): Likewise. New prototype.
22091 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
22092 (sel_print): New function.
22093
22094 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22095
22096 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
22097 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
22098
22099 2010-06-21 Nick Clifton <nickc@redhat.com>
22100
22101 * config/rx/rx.h (PTRDIFF_TYPE): Define.
22102 (SMALL_REGISTER_CLASS): Define (to zero).
22103 (PRINT_OPERAND): Delete.
22104 (PRINT_OPERAND_ADDRESS): Delete.
22105 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
22106 (rx_print_operand_address): Delete prototype.
22107 * config/rx/rx.c (rx_print_operand): Make static.
22108 Allow %H and %L to handle CONST_DOUBLEs.
22109 (rx_print_operand_address): Make static.
22110 (rx_gen_move_template): Rename local variable 'template' to
22111 out_template.
22112 (rx_function_arg): Do not pass unknown sized objects in registers.
22113 (TARGET_PRINT_OPERAND): Define.
22114 (TARGET_PRINT_OPERAND_ADDRESS): Define.
22115
22116 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
22117
22118 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
22119
22120 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
22121
22122 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
22123 stack-alignment for simple leaf-functions.
22124
22125 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
22126
22127 * doc/install.texi: Document bootstrap-lto.
22128
22129 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
22130
22131 PR debug/44248
22132 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
22133 (input_function): Drop them here, if VTA is disabled.
22134
22135 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
22136
22137 PR target/44546
22138 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
22139 New predicate.
22140 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
22141 ix86_swapped_fp_comparsion_operator instead of
22142 ix86_fp_comparison_operator.
22143
22144 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
22145 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
22146 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
22147 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
22148 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
22149 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
22150
22151 2010-06-20 Joseph Myers <joseph@codesourcery.com>
22152
22153 PR other/32998
22154 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
22155 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
22156 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
22157 (decode_cmdline_option): Update for this return value. Set
22158 orig_option_with_args_text field. Set arg field for unknown
22159 options. Make static.
22160 (decode_cmdline_options_to_array): New.
22161 (prune_options): Update handling of find_opt return value.
22162 * opts.c (read_cmdline_option): Take decoded option. Return void.
22163 (read_cmdline_options): Take decoded options.
22164 (decode_options): Add parameters for decoded options. Use
22165 decode_cmdline_options_to_array. Use decoded options for -O
22166 scan. Use integral_argument for -O parameters. Update call to
22167 read_cmdline_options.
22168 (enable_warning_as_error): Update handling of find_opt return value.
22169 * opts.h: Update comment on unknown options.
22170 (struct cl_decoded_option): Update comments on opt_index and arg.
22171 Add orig_option_with_args_text.
22172 (decode_cmdline_option): Remove.
22173 (decode_cmdline_options_to_array): Declare.
22174 (decode_options): Update prototype.
22175 * toplev.c (save_argv): Remove.
22176 (save_decoded_options, save_decoded_options_count): New.
22177 (read_integral_parameter): Remove.
22178 (print_switch_values): Use decoded options.
22179 (toplev_main): Don't set save_argv. Update call to decode_options.
22180 * toplev.h (read_integral_parameter): Remove.
22181 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
22182
22183 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
22184
22185 PR target/44072
22186 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
22187 immediate.
22188 * constraints.md (Pw, Px): New constraints.
22189 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
22190
22191 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
22192
22193 * config/i386/sse.md (fma4modesuffixf4): Removed.
22194 (ssemodesuffixf2s): Likewise.
22195 (ssemodesuffixf4): Likewise.
22196 (ssemodesuffixf2c): Likewise.
22197 (ssescalarmodesuffix2s): Likewise.
22198 (avxmodesuffixf2c): Likewise.
22199 (ssemodesuffix): New.
22200 (ssescalarmodesuffix): Likewise.
22201 Update patterns with ssemodesuffix and ssescalarmodesuffix.
22202
22203 2010-06-19 Philip Herron <herron.philip@googlemail.com>
22204
22205 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
22206
22207 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
22208
22209 * stor-layout.c (debug_rli): Remove unused local variables.
22210
22211 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
22212
22213 PR rtl-optimization/40900
22214 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
22215 original expression for later reuse.
22216 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
22217 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
22218
22219 2010-06-18 Anatoly Sokolov <aesok@post.ru>
22220
22221 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
22222 double_int_fits_in_uhwi_p): Implement as static inline.
22223 (double_int_xor): New inline function.
22224 (double_int_lrotate, double_int_rrotate, double_int_max,
22225 double_int_umax, double_int_smax, double_int_min, double_int_umin,
22226 double_int_smin): Declare.
22227 (lrotate_double, rrotate_double): Remove declaration.
22228 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
22229 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
22230 (double_int_lrotate, double_int_rrotate, double_int_max,
22231 double_int_umax, double_int_smax, double_int_min, double_int_umin,
22232 double_int_smin): New function.
22233 * fold-const.c (int_const_binop): Clean up, use double_int_*
22234 functions.
22235 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
22236 double_int_* and immed_double_int_const functions.
22237
22238 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
22239
22240 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
22241 * function.c (types_used_by_cur_var_decl): Likewise.
22242 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
22243
22244 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
22245
22246 * tree.h (record_layout_info): Change type of pending_statics field
22247 to a VEC.
22248 * stor-layout.c (start_record_layout): Store NULL into
22249 pending_statics.
22250 (debug_rli): Call debug_vec_tree instead of debug_tree.
22251 (place_field): Likewise.
22252 (finish_record_layout): Likewise.
22253
22254 2010-06-18 Alan Modra <amodra@gmail.com>
22255
22256 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
22257
22258 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22259
22260 PR target/43740
22261 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
22262 for SET source operand from SET destination operand.
22263
22264 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
22265
22266 PR rtl-optimization/39871
22267 * reload1.c (init_eliminable_invariants): For flag_pic, disable
22268 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
22269 (function_invariant_p): Rule out a plus of frame or arg pointer with
22270 a SYMBOL_REF.
22271 * ira.c (find_reg_equiv_invariant_const): Likewise.
22272
22273 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
22274
22275 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
22276 print_operand_address and puts to output the operand for CONST.
22277
22278 2010-06-17 Jakub Jelinek <jakub@redhat.com>
22279
22280 PR debug/44572
22281 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
22282 hook.
22283
22284 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
22285
22286 * v850-protos.h (print_operand): Delete.
22287 (print_operand_address): Delete.
22288 * v850.h (PRINT_OPERAND): Delete.
22289 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22290 (PRINT_OPERAND_ADDRESS): Delete.
22291 * v850.c (print_operand_address): Rename to...
22292 (v850_print_operand_address): ...this. Make static. Call
22293 v850_print_operand.
22294 (print_operand): Rename to...
22295 (v850_print_operand): ...this. Make static. Call
22296 v850_print_operand_address.
22297 (v850_print_operand_punct_valid_p): New function.
22298 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22299 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22300
22301 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
22302
22303 * config/sh/sh-protos.h (print_operand): Delete.
22304 (print_operand_address): Delete.
22305 * config/sh/sh.h (PRINT_OPERAND): Delete.
22306 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22307 (PRINT_OPERAND_ADDRESS): Delete.
22308 * config/sh/sh.c (sh_print_operand_address): Make static.
22309 (sh_print_operand): Make static. Call sh_print_operand_address
22310 and sh_print_operand.
22311 (sh_print_operand_punct_valid_p): New function.
22312 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22313 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22314
22315 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
22316
22317 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
22318 (mcore_print_operand_address): Delete.
22319 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
22320 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22321 (PRINT_OPERAND_ADDRESS): Delete.
22322 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
22323 (mcore_print_operand): Make static.
22324 (mcore_print_operand_punct_valid_p): New function.
22325 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
22326 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
22327
22328 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
22329
22330 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
22331 (print_operand_address): Delete.
22332 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
22333 (PRINT_OPERAND_ADDRESS): Delete.
22334 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
22335 static.
22336 (m68hc11_print_operand): Make static.
22337 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
22338
22339 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
22340
22341 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
22342 (m32r_print_operand_address): Delete.
22343 * config/m32r/m32r.h (m32r_punct_chars): Delete.
22344 (PRINT_OPERAND): Delete.
22345 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22346 (PRINT_OPERAND_ADDRESS): Delete.
22347 * config/m32r/m32r.c (m32r_punct_chars): Make static.
22348 (m32r_print_operand_address): Make static.
22349 (m32r_print_operand): Make static.
22350 (m32r_print_operand_punct_valid_p): New function.
22351 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22352 (TARGET_PRINT_OPERAND_ADDRESS): Define.
22353
22354 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
22355
22356 * config/iq2000/iq2000-protos.h (print_operand): Delete.
22357 (print_operand_address): Delete.
22358 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
22359 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22360 (PRINT_OPERAND_ADDRESS): Delete.
22361 (iq2000_print_operand_punct): Delete.
22362 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
22363 (iq2000_print_operand_address): Make static.
22364 (iq2000_print_operand): Make static.
22365 (iq2000_print_operand_punct_valid_p): New function.
22366 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22367 (TARGET_PRINT_OPERAND_ADDRESS): Define.
22368
22369 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
22370
22371 * config/frv/frv-protos.h (frv_print_operand): Delete.
22372 (frv_print_operand_address): Delete.
22373 * config/frv/frv.h (PRINT_OPERAND): Delete.
22374 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22375 (PRINT_OPERAND_ADDRESS): Delete.
22376 * config/frv/frv.c (frv_print_operand_address): Make static.
22377 (frv_print_operand): Make static.
22378 (frv_print_operand_punct_valid_p): New function.
22379 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22380 (TARGET_PRINT_OPERAND_ADDRESS): Define.
22381
22382 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
22383
22384 * tree.h (vec_member): Declare.
22385 * tree.c (vec_member): Define.
22386
22387 2010-06-17 Richard Guenther <rguenther@suse.de>
22388
22389 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
22390 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
22391
22392 2010-06-17 Richard Guenther <rguenther@suse.de>
22393
22394 * tree-inline.c (declare_return_variable): Remove bogus code.
22395
22396 2010-06-17 Richard Guenther <rguenther@suse.de>
22397
22398 * gimplify.c (gimplify_bind_expr): Always promote complex
22399 and vector variables to registers if possible.
22400
22401 2010-06-17 Richard Guenther <rguenther@suse.de>
22402
22403 * expr.c (get_inner_reference): Use double_int for bit_offset
22404 calculation.
22405
22406 2010-06-16 DJ Delorie <dj@redhat.com>
22407
22408 * common.opt (-fstrict-volatile-bitfields): new.
22409 * doc/invoke.texi: Document it.
22410 * fold-const.c (optimize_bit_field_compare): For volatile
22411 bitfields, use the field's type to determine the mode, not the
22412 field's size.
22413 * expr.c (expand_assignment): Likewise.
22414 (get_inner_reference): Likewise.
22415 (expand_expr_real_1): Likewise.
22416 * expmed.c (store_fixed_bit_field): Likewise.
22417 (extract_bit_field_1): Likewise.
22418 (extract_fixed_bit_field): Likewise.
22419
22420 2010-06-16 Richard Guenther <rguenther@suse.de>
22421
22422 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
22423
22424 2010-06-16 Douglas B Rupp <rupp@gnat.com>
22425
22426 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
22427 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
22428 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
22429 * debug.c: Likewise.
22430 * sdbout.c: Likewise.
22431 * vmsdbgout.c: Likewise.
22432 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
22433 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
22434 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
22435 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
22436 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
22437 * dwarf2out.c (dw_fde_struct): New fields
22438 dw_fde_vms_{end,begin}_prologue.
22439 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
22440 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
22441 (dwarf2out_vms_end_prologue): New function.
22442 (dwarf2out_vms_begin_epilogue): New function.
22443 (dw_val_struct): New value dw_val_class_vms_delta.
22444 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
22445 begin_epilogue for VMS.
22446 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
22447 new static functions.
22448 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
22449 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
22450 static functions.
22451 (print_die): New case dw_val_class_vms_delta.
22452 (attr_checksum): Likewise.
22453 (same_dw_val_p: Likewise.
22454 (size_of_die): Likewise.
22455 (value_format): Likewise.
22456 (output_die): Likewise.
22457 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
22458 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
22459 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
22460 dwarf2out_cfi_begin_epilogue
22461 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
22462
22463 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
22464
22465 * config/cris/cris-protos.h (cris_print_operand): Delete.
22466 (cris_print_operand_address): Delete.
22467 * config/cris/cris.h (PRINT_OPERAND): Delete.
22468 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22469 (PRINT_OPERAND_ADDRESS): Delete.
22470 * config/cris/cris.c (cris_print_operand_address): Make static.
22471 (cris_print_operand): Make static.
22472 (cris_print_operand_punct_valid_p): New function.
22473 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22474 (TARGET_PRINT_OPERAND_ADDRESS): Define.
22475
22476 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
22477
22478 * config/arm/arm-protos.h (arm_print_operand): Delete.
22479 (arm_print_operand_address): Delete.
22480 * config/arm/arm.h (PRINT_OPERAND): Delete.
22481 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
22482 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
22483 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
22484 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
22485 (arm_print_operand): Make static.
22486 (arm_print_operand_punct_valid_p): New function.
22487 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
22488 (TARGET_PRINT_OPERAND_ADDRESS): Define.
22489
22490 2010-06-16 Nick Clifton <nickc@redhat.com>
22491
22492 * config/rx/constraints.md (NEGint4): New constraint.
22493 * config/rx/rx.md (attr cc): Add set_zsc.
22494 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
22495 initialised.
22496 (cmpsf): Likewise.
22497 (call_internal): Clobber the cc0 register.
22498 (call_value_internal): Likewise.
22499 (cstoresi4): Likewise.
22500 (movsieq): Likewise.
22501 (movsine): Likewise.
22502 (addsi3): Add alternative to handle small negative constants.
22503 (sunsi3): Likewise.
22504 (addsi3): Do not set the O bit in the cc0 register.
22505 (adddi3): Likewise.
22506 (subsi3): Likewise.
22507 (subdi3): Likewise.
22508 (andsi3): Reorder alternatives to prefer shorter forms.
22509 (mulsi3): Likewise.
22510 (iorsi3): Likewise.
22511 (negsi2): Note that the cc0 flags are set.
22512 (rotlsi3): Note that only the Z and S bits are set in cc0.
22513 (lshrsi3): Likewise.
22514 (ashlsi3): Likewise.
22515 (subsf3): Use %Q for the MEM operand.
22516 (fix_truncsfsi2): Likewise.
22517 (floatsisf2): Likewise.
22518 (bitset): Remove early clobber from destination.
22519 (bitset_in_memory): Likewise.
22520 (lrintsf2): Clobber the cc0 register.
22521 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
22522 (rx_print_operand): Handle %N.
22523
22524 2010-06-16 Jan Hubicka <jh@suse.cz>
22525
22526 * df-core.c (df_compact_blocks): Free problem_temps vector.
22527
22528 2010-06-16 Martin Jambor <mjambor@suse.cz>
22529
22530 PR tree-optimization/43905
22531 * tree-sra.c: Include tree-inline.h.
22532 (create_abstract_origin): Removed.
22533 (modify_function): Version the call graph node instead of creating
22534 abstract origins and dealing with same_body aliases.
22535 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
22536 function is versionable.
22537 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
22538
22539 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
22540
22541 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
22542 (CHOOSE_DYNAMIC_LINKER): Update.
22543
22544 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
22545
22546 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
22547 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
22548 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
22549 *prefetch_3dnow_rex.
22550
22551 2010-06-15 Anatoly Sokolov <aesok@post.ru>
22552
22553 * target.h (struct asm_out):Add declare_constant_name field.
22554 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
22555 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
22556 * output.h (default_asm_declare_constant_name): Declare.
22557 (assemble_label): Update prototype.
22558 * varasm.c (assemble_constant_contents): Use
22559 targetm.asm_out.declare_constant_name target hook.
22560 (assemble_label): Add 'file' argument.
22561 (default_asm_declare_constant_name): New function.
22562 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
22563 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
22564 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
22565
22566 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
22567 * config/darwin.c (darwin_asm_declare_constant_name): New function.
22568 (machopic_output_indirection): Update assemble_label argument list.
22569 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
22570 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
22571
22572 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
22573
22574 PR middle-end/44391
22575 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
22576 size_one_node for pointer types. Do not call gmp_cst_to_tree.
22577
22578 2010-06-15 Richard Guenther <rguenther@suse.de>
22579
22580 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
22581
22582 2010-06-15 Paul Brook <paul@codesourcery.com>
22583
22584 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
22585 hard-float ABI.
22586
22587 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
22588
22589 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
22590 don't get a vector type for output.
22591
22592 2010-06-15 Jakub Jelinek <jakub@redhat.com>
22593
22594 PR fortran/44536
22595 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
22596 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
22597 (LANG_HOOKS_DECLS): Add it.
22598 * gimplify.c (omp_notice_variable): Call
22599 lang_hooks.decls.omp_report_decl.
22600
22601 2010-06-15 Martin Jambor <mjambor@suse.cz>
22602
22603 PR lto/44464
22604 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
22605 on the newly dead SSA name.
22606
22607 2010-06-15 Alan Modra <amodra@gmail.com>
22608
22609 * doc/invoke.texi: Add mcmodel to powerpc options.
22610 * configure.ac: Add HAVE_LD_LARGE_TOC test.
22611 * configure: Regenerate.
22612 * config.in: Regenerate.
22613 * config/rs6000/linux64.opt (mcmodel): New.
22614 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
22615 (TARGET_CMODEL, SET_CMODEL): Define.
22616 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
22617 select CMODEL_MEDIUM default.
22618 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
22619 (TARGET_CMODEL): Define default.
22620 * config/rs6000/rs6000.c (cmodel): New variable.
22621 (rs6000_explicit_options): Add cmodel field.
22622 (rs6000_handle_option): Handle -mcmodel.
22623 (create_TOC_reference): Add largetoc_reg param. Generate high,
22624 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
22625 (rs6000_delegitimize_address): Recognise new toc reference rtl
22626 and minimal-toc rtl.
22627 (rs6000_legitimize_reload_address): Handle new toc references.
22628 (print_operand_address): Handle legitimate_constant_pool_address_p
22629 match before lo_sum.
22630 (rs6000_eliminate_indexed_memrefs): Tidy.
22631 (rs6000_emit_move): Tweak threshold for inlining constants.
22632 Keep rs6000_emit_allocate_stack large stack frame offsets
22633 loaded into r0 inline.
22634 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
22635 (tocrel_base, tocrel_offset): New variables.
22636 (toc_relative_expr_p): Set them here.
22637 (print_operand_address): Skip over any offset on constant pool address.
22638 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
22639 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
22640 (offsettable_ok_by_alignment): New function.
22641 (rs6000_emit_move): Address suitably aligned local symbol_refs
22642 relative to the toc pointer for -mcmodel=medium.
22643 (legitimate_constant_pool_address_p): Make param const_rtx. Add
22644 strict param. Allow lo_sum version of addressing. Verify reg
22645 used for -mminimal-toc and -mcmodel != small. Update all callers.
22646 * config/rs6000/constraints.md: Update for above change.
22647 * config/rs6000/predicates.md: Likewise.
22648 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
22649 code.
22650 (tls_gd): Split for -mcmodel=medium/large.
22651 (tls_gd_high, tls_gd_low): New.
22652 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
22653 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
22654 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
22655 (largetoc_high, largetoc_low): New.
22656 (cmptf_internal2): Add clobber.
22657 * config/rs6000/rs6000-protos.h: Update.
22658
22659 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
22660
22661 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
22662 true if no prefetch is going to be generated for a given group.
22663 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
22664 estimate the prefetch_count.
22665 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
22666 prefetch count by considering the unroll_factor and prefetch_mod
22667 for is_loop_prefetching_profitable.
22668
22669 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
22670
22671 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
22672 anything if the argument is not a MEM.
22673
22674 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
22675
22676 PR debug/43650
22677 PR debug/44181
22678 PR debug/44247
22679 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
22680 debug stmts.
22681 (canonicalize_loop_ivs): Likewise.
22682
22683 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
22684
22685 PR debug/43656
22686 * haifa-sched.c (setup_insn_reg_pressure_info,
22687 update_register_pressure): Reject debug insns.
22688 (ready_sort): Don't setup reg pressure for debug insns.
22689 (schedule_insn): Don't update reg pressure for debug insns.
22690
22691 2010-06-14 Richard Guenther <rguenther@suse.de>
22692
22693 * lto-streamer.c (cached_bp): Remove.
22694 (bitpack_delete): Likewise.
22695 (bitpack_create): Likewise.
22696 (bp_get_next_word): Likewise.
22697 (bp_pack_value, bp_unpack_value): Move ...
22698 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
22699 Re-implement.
22700 (struct bitpack_d): Likewise.
22701 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
22702 New inline functions.
22703 * lto-streamer-out.c (lto_output_bitpack): Remove.
22704 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
22705 (pack_value_fields): Adjust.
22706 (lto_write_tree): Likewise.
22707 (output_gimple_stmt): Likewise.
22708 (output_function): Likewise.
22709 * lto-streamer-in.c (input_gimple_stmt): Adjust.
22710 (input_function): Likewise.
22711 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
22712 (lto_input_bitpack): Remove.
22713 (lto_materialize_tree): Adjust.
22714 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
22715 * lto-cgraph.c (lto_output_edge): Adjust.
22716 (lto_output_node): Likewise.
22717 (lto_output_varpool_node): Likewise.
22718 (lto_output_ref): Likewise.
22719 (input_node): Likewise.
22720 (input_varpool_node): Likewise.
22721 (input_ref): Likewise.
22722 (input_edge): Likewise.
22723 (output_node_opt_summary): Likewise.
22724 (input_node_opt_summary): Likewise.
22725 * ipa-pure-const.c (pure_const_write_summary): Likewise.
22726 (pure_const_read_summary): Likewise.
22727 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
22728 (ipa_read_indirect_edge_info): Likewise.
22729 (ipa_write_node_info): Likewise.
22730 (ipa_read_node_info): Likewise.
22731
22732 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
22733
22734 PR target/44534
22735 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
22736 (vec_extract_lo_v16hi): Likewise.
22737 (vec_extract_lo_v32qi): Likewise.
22738
22739 2010-06-14 Jakub Jelinek <jakub@redhat.com>
22740
22741 PR bootstrap/44426
22742 * tree.h (build_call_expr): Don't define as vararg macro, instead
22743 add a prototype.
22744 * builtins.c (build_call_nofold): Remove.
22745 (expand_builtin_int_roundingfn, expand_builtin_pow,
22746 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
22747 expand_builtin_memset_args, expand_builtin_strcmp,
22748 expand_builtin_strncmp, expand_builtin_memory_chk): Use
22749 build_call_nofold_loc instead of build_call_nofold.
22750 (build_call_expr): New function.
22751
22752 PR tree-optimization/44508
22753 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
22754 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
22755 don't eliminate trivially dead stmts.
22756 * tree-vrp.c (vrp_finalize): Pass false as last argument
22757 to substitute_and_fold.
22758 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
22759 to substitute_and_fold.
22760 * tree-ssa-ccp.c (ccp_finalize): Likewise.
22761
22762 PR bootstrap/44509
22763 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
22764
22765 2010-06-14 Ira Rosen <irar@il.ibm.com>
22766
22767 PR tree-optimization/44507
22768 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
22769 to build initial vector for BIT_AND_EXPR.
22770 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
22771
22772 2010-06-14 Jakub Jelinek <jakub@redhat.com>
22773
22774 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
22775 adjust z10prop set_attr.
22776
22777 2010-06-13 Jan Hubicka <jh@suse.cz>
22778
22779 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
22780 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
22781 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
22782 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
22783 datastructure checks into checking asserts.
22784 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
22785 * tree-ssa-sccvn.c (VN_INFO): Likewise.
22786 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
22787 df_ref_create_structure): Likewise.
22788 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
22789 pool_free): Use gcc_checking_assert.
22790 * alias.c (get_alias_set): Likewise.
22791 * var-tracking.c (variable_htab_free, shared_hash_copy,
22792 canonicalize_values_mark, variable_merge_over_cur): Likewise.
22793 * lto-streamer.c (bp_unpack_value): Likewise.
22794
22795 2010-06-13 Richard Guenther <rguenther@suse.de>
22796
22797 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
22798 Do not stream but initialize TYPE_CANONICAL to NULL.
22799 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
22800 * gimple.c (gimple_types_compatible_p): Disregard
22801 TYPE_STRUCTURAL_EQUALITY_P.
22802 (gimple_register_type): Use TYPE_CANONICAL as cache.
22803 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
22804 before registering common types.
22805 * config/i386/i386.c (ix86_function_arg_boundary): Do not
22806 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
22807 * tree.h (TYPE_CANONICAL): Clarify documentation.
22808
22809 2010-06-13 Anatoly Sokolov <aesok@post.ru>
22810
22811 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
22812 LIBCALL_VALUE): Remove macros.
22813 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
22814 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22815 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22816 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
22817 (ia64_function_value): Make static. Handle receiving the function
22818 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
22819
22820 2010-06-12 Jan Hubicka <jh@suse.cz>
22821
22822 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
22823 at correct place.
22824
22825 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
22826
22827 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
22828
22829 2010-06-12 Jan Hubicka <jh@suse.cz>
22830
22831 * df-core.c (df_clear_bb_info): New function.
22832 (df_set_blocks): bb_info is always allocated.
22833 (df_get_bb_info): Use block_info_elt_size.
22834 (df_set_bb_info): Likewise.
22835 (df_compact_blocks): Update for new block_info.
22836 (grow_bb_info): New function.
22837 * df-problems.c (df_grow_bb_info): Move to df-core.c
22838 (df_rd_set_bb_info): Remove.
22839 (df_rd_free_bb_info): Do not free block pool.
22840 (df_rd_alloc): Do not create pool, use check for
22841 obstack presence instead of NULL pointer for new blocks.
22842 (df_rd_free): DO not free alloc pool; clear block_info.
22843 (problem_RD): Add size of block info structure.
22844 (df_lr_set_bb_info): Remove.
22845 (df_lr_free_bb_info): Do not free block pool.
22846 (df_lr_alloc): Do not create pool, use check for
22847 obstack presence instead of NULL pointer for new blocks.
22848 (df_lr_free): DO not free alloc pool; clear block_info.
22849 (problem_LR): Add size of block info structure.
22850 (df_live_set_bb_info): Remove.
22851 (df_live_free_bb_info): Do not free block pool.
22852 (df_live_alloc): Do not create pool, use check for
22853 obstack presence instead of NULL pointer for new blocks.
22854 (df_live_free): DO not free alloc pool; clear block_info.
22855 (problem_LIVE): Add size of block info structure.
22856 (problem_CHAIN): Add size of block info structure.
22857 (df_byte_lr_set_bb_info): Remove.
22858 (df_byte_lr_free_bb_info): Do not free block pool.
22859 (df_byte_lr_alloc): Do not create pool, use check for
22860 obstack presence instead of NULL pointer for new blocks.
22861 (df_byte_lr_free): DO not free alloc pool; clear block_info.
22862 (problem_BYTE_LR): Add size of block info structure.
22863 (problem_NOTE): Add size of block info structure.
22864 (df_byte_MD_set_bb_info): Remove.
22865 (df_byte_MD_free_bb_info): Do not free block pool.
22866 (df_byte_MD_alloc): Do not create pool, use check for
22867 obstack presence instead of NULL pointer for new blocks.
22868 (df_byte_MD_free): DO not free alloc pool; clear block_info.
22869 (problem_BD): Add size of block info structure.
22870 * df-scan.c (df_scan_free_internal): Free block pool.
22871 (df_scan_set_bb_info): Remove.
22872 (df_scan_free_bb_info): Check for artificial_defs instead
22873 of bb_info being non-NULL.
22874 (df_scan_alloc): DO not create df_scan_block pool.
22875 (problem_SCAN): Set size of block info.
22876 (df_bb_refs_record): Do not allocate bb_info.
22877 * df.h (df_problem): Add block_info_elt_size.
22878 (struct dataflow): Change block_info to void *.
22879 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
22880 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
22881 in-line structures.
22882
22883 2010-06-12 Jan Hubicka <jh@suse.cz>
22884
22885 PR tree-optimize/44485
22886 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
22887 containing use of return value of noreturn function.
22888
22889 2010-06-12 Anatoly Sokolov <aesok@post.ru>
22890
22891 * targhooks.c (default_function_value): Don't use
22892 FUNCTION_OUTGOING_VALUE.
22893 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
22894 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
22895
22896 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
22897
22898 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
22899 Add crtfastmath.o to extra_parts.
22900 * config/mips/crtfastmath.c: New.
22901 * config/mips/linux.h (ENDFILE_SPEC): New.
22902
22903 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
22904
22905 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
22906 old_type in parameter.
22907 (gcc_type_for_value): Update call to gcc_type_for_interval.
22908 (compute_type_for_level_1): Renamed compute_type_for_level.
22909 Update call to gcc_type_for_interval.
22910
22911 2010-06-11 Joseph Myers <joseph@codesourcery.com>
22912
22913 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
22914 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
22915
22916 2010-06-11 Joseph Myers <joseph@codesourcery.com>
22917
22918 * opts-common.c: Include options.h.
22919 (integral_argument): Move from opts.c.
22920 (decode_cmdline_option): New. Based on read_cmdline_option.
22921 * opts.c (integral_argument): Move to opts-common.c.
22922 (read_cmdline_option): Move most contents to
22923 decode_cmdline_option. Use %qs in diagnostics.
22924 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
22925 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
22926 decode_cmdline_option): New.
22927
22928 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
22929
22930 PR target/44481
22931 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
22932 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
22933 (partiysi2_cmp): Ditto.
22934 (*partiyhi2_cmp): Ditto.
22935 (*parityqi2_cmp): Remove.
22936
22937 2010-06-11 Jan Hubicka <jh@suse.cz>
22938
22939 * bitmap.h (bmp_iter_next_bit): New.
22940 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
22941
22942 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
22943 Eric Botcazou <ebotcazou@adacore.com>
22944
22945 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
22946 computed cost.
22947
22948 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
22949
22950 * config/i386/i386.md (unspec): New define_c_enum.
22951 (unspecv): Ditto.
22952
22953 2010-06-10 Jakub Jelinek <jakub@redhat.com>
22954
22955 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
22956
22957 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
22958
22959 PR middle-end/44483
22960 * tree-if-conv.c (bb_predicate_s): New struct.
22961 (bb_predicate_p): New.
22962 (bb_has_predicate): New.
22963 (bb_predicate): New.
22964 (set_bb_predicate): New.
22965 (bb_predicate_gimplified_stmts): New.
22966 (set_bb_predicate_gimplified_stmts): New.
22967 (add_bb_predicate_gimplified_stmts): New.
22968 (init_bb_predicate): New.
22969 (free_bb_predicate): New.
22970 (is_predicated): Use bb_predicate.
22971 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
22972 (predicate_bbs): Same. Gimplify the condition of the basic blocks
22973 before processing their successors.
22974 (clean_predicate_lists): Removed.
22975 (find_phi_replacement_condition): Use bb_predicate.
22976 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
22977 computations.
22978 (insert_gimplified_predicates): New.
22979 (combine_blocks): Call insert_gimplified_predicates.
22980 (tree_if_conversion): Call free_bb_predicate instead of
22981 clean_predicate_lists.
22982
22983 2010-10-11 Paul Brook <paul@codesourcery.com>
22984
22985 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
22986 * config/arm/arm.c (all_architectures): Change v7e-m default to
22987 cortexm4.
22988 * config/arm/arm-cores.def: Add cortex-m4.
22989 * config/arm/arm-tune.md: Regenerate.
22990
22991 2010-06-11 Jan Hubicka <jh@suse.cz>
22992
22993 * ipa-pure-const.c (special_builtlin_state): New function.
22994 (check_call): Use it instead of special casign BUILT_IN_RETURN.
22995 (propagate_pure_const): Use it.
22996
22997 2010-06-11 Jan Hubicka <jh@suse.cz>
22998
22999 * df-problems.c (df_live_scratch): Convert to bitmap_head.
23000 (df_live_alloc): Initialize df_live_scratch when initializing
23001 problem_data.
23002 (df_live_transfer_function): Update uses of df_live_scratch.
23003 (df_live_free): Free problem_data; clear df_live_scratch before
23004 releasing the obstack.
23005 (df_md_free): Free problem data.
23006
23007 2010-06-11 Jan Hubicka <jh@suse.cz>
23008
23009 * doc/invoke.texi (Wsuggest-attribute): Document.
23010 (Wmissing-noreturn): Remove.
23011 * ipa-pure-const.c (warn_function_noreturn): New function.
23012 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
23013 warn_missing_noreturn.
23014 * common.opt (Wsuggest-attribute=noreturn): New.
23015 * tree-flow.h (warn_function_noreturn): Declare.
23016 * tree-cfg.c (execute_warn_function_noreturn): Use
23017 warn_function_noreturn.
23018 (gate_warn_function_noreturn): New.
23019 (pass_warn_function_noreturn): Update.
23020
23021 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
23022
23023 * c-typeck.c (handle_warn_cast_qual): Add loc
23024 parameter. Improve warning message.
23025 (build_c_cast): Pass location to handle_warn_cast_qual.
23026
23027 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
23028
23029 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
23030 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
23031 insn mnemonic.
23032 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
23033
23034 2010-06-10 Dodji Seketeli <dodji@redhat.com>
23035
23036 Fix bootstap on mips
23037 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
23038 be naming typedefs.
23039
23040 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
23041
23042 * system.h (helper_const_non_const_cast): New inline for
23043 gcc version <= 4.0.
23044 (CONST_CAST2): For gcc version <= 4.0 use
23045 new helper to do const/non-const casting.
23046
23047 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23048
23049 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
23050 * Makefile.in (OBJS-common): Include insn-enums.o.
23051 (insn-enums.o): New rule.
23052 (simple_generated_c): Add insn-enums.c.
23053 (build/genenums.o): New rule.
23054 (genprogmd): Add "enums".
23055 * genconstants.c (print_enum_type): Declare a C string array
23056 for each enum.
23057 * genenums.c: New file.
23058 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
23059 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
23060 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
23061
23062 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23063
23064 * doc/md.texi (define_enum_attr): Document.
23065 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
23066 * read-md.h (lookup_enum_type): Declare.
23067 * read-md.c (lookup_enum_type): New function.
23068 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
23069 * genattrtab.c (attr_desc): Add an enum_name field.
23070 (evaluate_eq_attr): Take the associated attribute as argument.
23071 Get the enum prefix from the enum_name field, if defined.
23072 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
23073 (simplify_test_exp): Pass attr to evaluate_eq_attr.
23074 (add_attr_value): New function, split out from...
23075 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
23076 (write_test_expr): Pass attr to evaluate_eq_attr.
23077 (write_attr_get): Use the enum_name as the enum tag, if defined.
23078 (write_attr_valueq): Use the enum_name as a prefix, if defined.
23079 (find_attr): Initialize enum_name.
23080 (main): Handle DEFINE_ENUM_ATTR.
23081 * gensupport.c (process_rtx): Likewise.
23082 * config/mips/mips.h (mips_tune_attr): Delete.
23083 * config/mips/mips.md (cpu): Use define_attr_enum.
23084
23085 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23086
23087 * doc/md.texi (define_c_enum, define_enum): Document.
23088 * read-md.h (md_constant): Add a parent_enum field.
23089 (enum_value, enum_type): New structures.
23090 (upcase_string, traverse_enum_types): Declare.
23091 * read-md.c (enum_types): New variable.
23092 (upcase_string, add_constant): New functions.
23093 (handle_constants): Don't create the hash table here.
23094 Use add_constant.
23095 (traverse_md_constants): Don't check for a null md_constants.
23096 (decimal_string, handle_enum, traverse_enum_types): New functions.
23097 (read_md_files): Initialize md_constants and md_enums.
23098 * genconstants.c (print_md_constant): Ignore info argument.
23099 Only print constants that belong to no enum.
23100 (print_enum_type): New function.
23101 (main): Don't pass stdout to print_md_constant. Call print_enum_type
23102 for each defined enum type.
23103 * config/mips/mips.md (processor): New define_enum.
23104 (unspec): New define_c_enum.
23105 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
23106 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
23107 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
23108 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
23109 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
23110 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
23111 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
23112 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
23113 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
23114 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
23115 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
23116 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
23117 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
23118 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
23119 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
23120 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
23121 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
23122 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
23123 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
23124 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
23125 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
23126 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
23127 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
23128 (UNSPEC_RDDSP): Move to mips-dsp.md.
23129 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
23130 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
23131 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
23132 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
23133 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
23134 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
23135 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
23136 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
23137 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
23138 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
23139 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
23140 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
23141 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
23142 Moved to mips-dspr2.md.
23143 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
23144 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
23145 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
23146 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
23147 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
23148 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
23149 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
23150 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
23151 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
23152 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
23153 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
23154 UNSPEC_LOONGSON_PSADBH)
23155 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
23156 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
23157 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
23158 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
23159 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
23160 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
23161 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
23162 (cpu): Update comment.
23163 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
23164 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
23165 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
23166 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
23167 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
23168 UNSPEC_LOONGSON_PCMPEQ)
23169 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
23170 UNSPEC_LOONGSON_PINSR_0)
23171 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
23172 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
23173 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
23174 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
23175 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
23176 UNSPEC_LOONGSON_PSADBH)
23177 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
23178 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
23179 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
23180 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
23181 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
23182 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
23183 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
23184 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
23185 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
23186 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
23187 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
23188 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
23189 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
23190 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
23191 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
23192 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
23193 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
23194 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
23195 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
23196 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
23197 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
23198 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
23199 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
23200 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
23201 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
23202 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
23203 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
23204 (UNSPEC_RDDSP): Moved from mips.md.
23205 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
23206 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
23207 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
23208 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
23209 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
23210 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
23211 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
23212 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
23213 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
23214 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
23215 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
23216 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
23217 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
23218 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
23219 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
23220 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
23221 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
23222 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
23223 (UNSPEC_SCC): Moved from mips.md.
23224 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
23225 "processor_type" to "processor".
23226 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
23227 * config/mips/mips.h (processor_type): Delete.
23228 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
23229 "processor_type" to "processor".
23230
23231 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23232
23233 * configure.ac (tm_include_list): Add insn-constants.h.
23234 * configure: Regenerate.
23235 * Makefile.in (GTM_H): Move insn-constants.h here from...
23236 (TM_H): ...here.
23237 * mkconfig.sh: Remove special handling for insn-constants.h.
23238
23239 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23240
23241 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
23242 (BUILD_MD): ...this new variable.
23243 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
23244 that include the old contents of simple_generated_h and
23245 simple_generated_c.
23246 (simple_generated_h, simple_generated_c): Include them. Add
23247 insn-constants.h.
23248 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
23249 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
23250 Remove these dependencies from the main rule and include
23251 insn-conditions.md in the command line only if it appears
23252 in the dependency list.
23253 (insn-constants.h, s-constants): Delete.
23254 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
23255 or gensupport.h.
23256 (build/genmddeps.o): Likewise.
23257 (genprogrtl): New variable that contains everything from genprogmd
23258 except mddeps and constants.
23259 (genprogmd): Redefine in terms of genprogrtl. Make these programs
23260 depend on $(BUILD_MD)
23261 (genprog): New variable. Make these programs depend on
23262 $(BUILD_ERRORS).
23263 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
23264 (main): Use read_md_files instead of init_rtx_reader_args.
23265 * genconstants.c: As for genmddeps.c.
23266 * read-md.h (read_skip_construct): Declare.
23267 * read-md.c (read_skip_construct): New function.
23268 (handle_file): Allow a null handle_directive, skipping the
23269 construct if so.
23270 (parse_include): Update the comment accordingly.
23271
23272 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23273
23274 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
23275 * genmddeps.c: Include read-md.h.
23276 (main): Call init_rtx_reader_args instead of init_md_reader_args.
23277 * genattr.c (main): Likewise.
23278 * genattrtab.c (main): Likewise.
23279 * genautomata.c (main): Likewise.
23280 * gencodes.c (main): Likewise.
23281 * genconditions.c (main): Likewise.
23282 * genconfig.c (main): Likewise.
23283 * genconstants.c (main): Likewise.
23284 * genemit.c (main): Likewise.
23285 * genextract.c (main): Likewise.
23286 * genflags.c (main): Likewise.
23287 * genopinit.c (main): Likewise.
23288 * genoutput.c (main): Likewise.
23289 * genpeep.c (main): Likewise.
23290 * genrecog.c (main): Likewise.
23291 * genpreds.c (main): Likewise.
23292 * gensupport.h (in_fname): Move to read-md.h.
23293 (init_md_reader_args_cb): Rename to...
23294 (init_rtx_reader_args_cb): ...this and return a bool.
23295 (init_md_reader_args): Rename to...
23296 (init_rtx_reader_args): ...this and return a bool.
23297 (include_callback): Move to read-md.h.
23298 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
23299 (file_name_list, first_dir_md_include): Move to read-md.c
23300 (first_bracket_include): Delete unused variable.
23301 (last_dir_md_include): Move to read-md.c.
23302 (process_include): Delete, moving code to read-md.c:handle_include.
23303 (process_rtx): Don't handle INCLUDE.
23304 (save_string): Delete.
23305 (rtx_handle_directive): New function.
23306 (init_md_reader_args_cb): Rename to...
23307 (init_rtx_reader_args_cb): ...this and return a boolean success value.
23308 Use read_md_args.
23309 (init_md_reader_args): Rename to...
23310 (init_rtx_reader_args): ...this and return a boolean success value.
23311 * rtl.def (INCLUDE): Delete.
23312 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
23313 argument.
23314 * read-rtl.c (read_conditions): Don't gobble ')' here.
23315 (read_mapping): Likewise.
23316 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
23317 Handle top-level non-rtx constructs here rather than in read_rtx_1.
23318 Store the whole queue in *X. Remove call to init_md_reader.
23319 (read_rtx_1): Rename to...
23320 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
23321 Don't handle top-level non-rtx constructs here. Don't handle (nil)
23322 here.
23323 (read_nested_rtx): New function. Handle (nil) here rather than
23324 in read_rtx_code.
23325 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
23326 gobble ')' here.
23327 * read-md.h (directive_handler_t): New type.
23328 (in_fname, include_callback): Moved from read-md.h.
23329 (read_constants, init_md_reader): Delete.
23330 (read_md_files): Declare.
23331 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
23332 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
23333 from gensupport.c.
23334 (read_constants): Rename to...
23335 (handle_constants): ...this. Don't gobble ')' here.
23336 (handle_include, handle_file, handle_toplevel_file)
23337 (parse_include): New functions, mostly taken from gensupport.c.
23338 (init_md_reader): Subsume into...
23339 (read_md_files): ...this new function.
23340
23341 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23342
23343 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
23344 (unread_char): Decrement read_md_lineno after putting back '\n'.
23345 * read-md.c (fatal_with_file_and_line): Push back any characters
23346 that we decide not to add to the context.
23347 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
23348 fatal_expected_char in cases where '/' ends a line (for example).
23349 (read_name): Don't increment read_md_lineno here.
23350 (read_escape): Likewise.
23351 (read_quoted_string): Likewise.
23352 (read_braced_string): Likewise.
23353
23354 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23355
23356 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
23357 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
23358 * genconstants.c: Include read-md.h.
23359 * read-rtl.c (md_constants): Move to read-md.c.
23360 (md_name): Move to read-md.h.
23361 (initialize_iterators): Use leading_string_hash instead of def_hash
23362 and leading_string_eq_p instead of def_name_eq_p.
23363 (read_name): Move to read-md.c.
23364 (def_hash, def_name_eq_p): Delete.
23365 (read_constants, traverse_md_constants): Move to read-md.c.
23366 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
23367 * read-md.h: Include hashtab.h.
23368 (md_name): Moved from read-rtl.c.
23369 (md_constant): Moved from read-md.h.
23370 (leading_string_hash, leading_string_eq_p, read_name)
23371 (read_constants, traverse_md_constants): Declare.
23372 * read-md.c (md_constants): Moved from read-rtl.c.
23373 (leading_string_hash, leading_string_eq_p): New functions.
23374 (read_name, read_constants, traverse_md_constants): Moved from
23375 read-rtl.c.
23376
23377 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23378
23379 * read-rtl.c (md_name): New structure.
23380 (read_name): Take an md_name instead of a buffer pointer.
23381 Use the "string" field instead of strcpy when expanding constants.
23382 (read_constants): Remove the tmp_char argument. Update the calls
23383 to read_name, using two local name buffers instead of the tmp_char
23384 argument. Merge the constant-creation code.
23385 (read_conditions): Remove the tmp_char argument. Update the calls
23386 to read_name, using a local name buffer instead of the tmp_char
23387 argument.
23388 (read_mapping): Replace tmp_char variable with a local name buffer.
23389 Update the calls to read_name.
23390 (read_rtx_1): Likewise. Update the calls to read_constants and
23391 read_conditions.
23392
23393 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23394
23395 * Makefile.in (build/read-md.o): Depend on errors.h.
23396 * read-md.h (error_with_line): Declare.
23397 * read-md.c: Include errors.h.
23398 (message_with_line_1): New function, extracted from...
23399 (message_with_line): ...here.
23400 (error_with_line): New function.
23401 * genattrtab.c: If a call to message_with_line is followed by
23402 "have_error = 1;", replace both statements with a call to
23403 error_with_line.
23404 * genoutput.c: Likewise.
23405 * genpreds.c: Likewise.
23406 * genrecog.c: If a call to message_with_line is followed by
23407 "error_count++;", replace both statements with a call to
23408 error_with_line.
23409 (errorcount): Delete.
23410 (main): Don't check it.
23411 * gensupport.c: If a call to message_with_line is followed by
23412 "errors = 1;", replace both statements with a call to error_with_line.
23413 (errors): Delete.
23414 (process_define_cond_exec): Check have_error instead of errors.
23415 (init_md_reader_args_cb): Likewise. Don't set errors.
23416
23417 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23418
23419 * read-md.h (read_md_file): Declare.
23420 (read_char, unread_char): New functions.
23421 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
23422 (read_quoted_string, read_string): Remove FILE * argument.
23423 * read-md.c (read_md_file): New variable.
23424 (read_md_filename, read_md_lineno): Update comments and remove
23425 unnecessary initialization.
23426 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
23427 (read_escape, read_quoted_string, read_braced_string, read_string):
23428 Remove FILE * argument. Update calls accordingly, using read_char
23429 and unread_char instead of getc and ungetc.
23430 * rtl.h (read_rtx): Remove FILE * argument.
23431 * read-rtl.c (iterator_group): Remove FILE * argument from
23432 "find_builtin".
23433 (iterator_traverse_data): Remove "infile" field.
23434 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
23435 (add_mapping, read_name, read_constants, read_conditions)
23436 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
23437 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
23438 Remove file arguments from all calls, using read_char and unread_char
23439 instead of getc and ungetc.
23440 * gensupport.c (process_include): Preserve read_md_file around
23441 the include. Set read_md_file to the handle of the included file.
23442 Update call to read_rtx.
23443 (init_md_reader_args_cb): Set read_md_file to the handle of the file
23444 and remove local FILE *. Update calls to read_rtx.
23445
23446 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23447
23448 * read-md.h (read_rtx_lineno): Rename to...
23449 (read_md_lineno): ...this.
23450 (read_rtx_filename): Rename to...
23451 (read_md_filename): ...this.
23452 (copy_rtx_ptr_loc): Rename to...
23453 (copy_md_ptr_loc): ...this.
23454 (print_rtx_ptr_loc): Rename to...
23455 (print_md_ptr_loc): ...this.
23456 * read-md.c: Likewise. Update references after renaming.
23457 (string_obstack): Replace RTL with MD in comment.
23458 (set_rtx_ptr_loc): Rename to...
23459 (set_md_ptr_loc): ...this.
23460 (get_rtx_ptr_loc): Rename to...
23461 (get_md_ptr_loc): ...this.
23462 * genconditions.c: Update references after renaming.
23463 * genemit.c: Likewise.
23464 * genoutput.c: Likewise.
23465 * genpreds.c: Likewise.
23466 * gensupport.c: Likewise.
23467 * read-rtl.c: Likewise.
23468
23469 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
23470
23471 * Makefile.in (READ_MD_H): New variable.
23472 (BUILD_RTL): Add build/read-md.o.
23473 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
23474 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
23475 (build/genattrtab.o, build/genconditions.o build/genemit.o)
23476 (build/genextract.o, build/genflags.o, build/genoutput.o)
23477 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
23478 (build/read-md.o): New rule.
23479 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
23480 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
23481 * coretypes.h: ...here.
23482 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
23483 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
23484 * genattr.c: Include read-md.h.
23485 * genattrtab.c: Likewise.
23486 * genconditions.c: Likewise.
23487 * genemit.c: Likewise.
23488 * genextract.c: Likewise.
23489 * genflags.c: Likewise.
23490 * genoutput.c: Likewise.
23491 * genpreds.c: Likewise.
23492 * genrecog.c: Likewise.
23493 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
23494 (join_c_conditions, print_c_condition, read_rtx_filename)
23495 (read_rtx_lineno): Move to read-md.h.
23496 * read-rtl.c: Include read-md.h.
23497 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
23498 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
23499 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
23500 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
23501 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
23502 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
23503 (read_braced_string, read_string): Move to read-md.c.
23504 (read_rtx): Move some initialization to init_md_reader and call
23505 init_md_reader here.
23506 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
23507 Move to read-md.h.
23508 * gensupport.c: Include read-md.h.
23509 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
23510 * read-md.h, read-md.c: New files.
23511
23512 2010-06-10 Anatoly Sokolov <aesok@post.ru>
23513
23514 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23515 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23516 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
23517 * config/moxie/moxie.c (moxie_function_value): Make static.
23518 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
23519 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
23520
23521 2010-06-10 Martin Jambor <mjambor@suse.cz>
23522
23523 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
23524 * dbgcnt.def (tree_sra): New counter.
23525 * tree-sra.c: Include dbgcnt.h.
23526 (gate_intra_sra): Check tree_sra debug counter.
23527
23528 2010-06-10 Martin Jambor <mjambor@suse.cz>
23529
23530 PR tree-optimization/44258
23531 * tree-sra.c (build_access_subtree): Return false iff there is a
23532 partial overlap.
23533 (build_access_trees): Likewise.
23534 (analyze_all_variable_accesses): Disqualify candidates if
23535 build_access_trees returns true for them.
23536
23537 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
23538
23539 PR debug/41371
23540 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
23541 tail-recurse into canonical node. Fast-forward over
23542 non-canonical VALUEs.
23543
23544 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
23545
23546 PR boostrap/44470
23547 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
23548 (*addsi_1_zext) <TYPE_LEA>: Likewise.
23549 (add lea splitter): Likewise.
23550 (add_zext lea splitter): Likewise.
23551
23552 2010-06-10 Joseph Myers <joseph@codesourcery.com>
23553
23554 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
23555
23556 2010-06-10 Jan Hubicka <jh@suse.cz>
23557
23558 * df-problems.c (df_live_problem_data): Add live_bitmaps.
23559 (df_live_alloc): Initialize problem data and live_osbtacks.
23560 (df_live_finalize): Remove obstack, problem data; do not
23561 clear all bitmaps.
23562 (df_live_top_dump, df_live_bottom_dump): Do not dump old
23563 data when not allocated.
23564 (df_live_verify_solution_start): Do not allocate problem data.
23565 (df_live_verify_solution_end): Check if out is allocated.
23566 (struct df_md_problem_data): New structure.
23567 (df_md_alloc): Allocate problem data.
23568 (df_md_free): Free problem data; do not clear bitmaps.
23569
23570 2010-06-10 Jan Beulich <jbeulich@novell.com>
23571
23572 PR bootstrap/37304
23573 * configure.ac: Replace $() with ${} when intending to expand
23574 variables rather than invoking commands.
23575 * configure: Re-generate.
23576
23577 2010-06-10 Jan Hubicka <jh@suse.cz>
23578
23579 PR rtl-optimization/44460
23580 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
23581 TYPE_NEEDS_CONSTRUCTING sanity check.
23582
23583 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
23584
23585 * doc/include/fdl.texi: Move to GFDL version 1.3.
23586
23587 * doc/cpp.texi: Move to GFDL version 1.3.
23588 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
23589 * doc/gccint.texi: Move to GFDL version 1.3.
23590 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
23591 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
23592 * doc/invoke.texi: Move to GFDL version 1.3.
23593
23594 2010-06-09 Jan Hubicka <jh@suse.cz>
23595
23596 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
23597 Break out from ...
23598 (propagate) ... here; swap the order.
23599
23600 2010-06-09 Jan Hubicka <jh@suse.cz>
23601
23602 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
23603 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
23604 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
23605 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
23606
23607 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
23608
23609 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
23610 Do not the gather memory reference in the outer loop if the step
23611 is not a constant.
23612
23613 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
23614
23615 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
23616 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
23617 8 to 4. Minor change of the related comments.
23618
23619 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
23620
23621 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
23622 the scev analysis when the variable is not used outside the loop
23623 in a close phi node: call compute_overall_effect_of_inner_loop.
23624
23625 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
23626
23627 * graphite-sese-to-poly.c (single_pred_cond): Renamed
23628 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
23629 (build_sese_conditions_before): Renamed call to single_pred_cond.
23630 (build_sese_conditions_after): Same.
23631
23632 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
23633
23634 * graphite-poly.h: Fix comments and indentation.
23635 * graphite-sese-to-poly.c: Same.
23636 (build_sese_conditions_before): Compute stmt and gbb only when needed.
23637 * tree-chrec.c: Fix comments and indentation.
23638 (tree-ssa-loop-niter.c): Same.
23639
23640 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
23641
23642 PR rtl-optimization/42461
23643 * dce.c (deletable_insn_p): Return true for const or pure calls again.
23644 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
23645
23646 2010-06-09 Jan Hubicka <jh@suse.cz>
23647
23648 * bitmap.c (bitmap_and): Walk array forward.
23649 (bitmap_and_compl_into): Likewise.
23650 (bitmap_xor): Likewise.
23651 (bitmap_xor_into): Likewise.
23652 (bitmap_equal_p): Likewise.
23653 (bitmap_intersect_p): Likewise.
23654 (bitmap_intersect_compl_p): Likewise.
23655 (bitmap_ior_and_into): Likewise.
23656 (bitmap_elt_copy): Likewise.
23657 (bitmap_and_compl): Likewise.
23658 (bitmap_elt_ior): Likewise.
23659
23660 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
23661
23662 * opts-common.c (prune_options): Ensure replacement argv array
23663 is correctly terminated by a NULL entry.
23664
23665 2010-06-09 Jan Hubicka <jh@suse.cz>
23666
23667 * cgraph.h (varpool_first_static_initializer,
23668 varpool_next_static_initializer): Make checking only when
23669 checking enabled.
23670 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
23671 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
23672 gcc_assert to gcc_checking_assert.
23673 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
23674 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
23675 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
23676 op_iter_init_phiuse, op_iter_init_phidef,
23677 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
23678 gcc_checking_assert.
23679 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
23680 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
23681 partition_is_global, live_on_entry, live_on_exit,
23682 live_merge_and_clear): Likewise.
23683 * system.h (gcc_checking_assert): New macro.
23684 * gimple.h (set_bb_seq): Use gcc_checking_assert.
23685
23686 2010-06-09 Jason Merrill <jason@redhat.com>
23687
23688 * Makefile.in (TAGS): Collect tags info from c-family.
23689
23690 2010-06-09 Jan Hubicka <jh@suse.cz>
23691
23692 * gimple.h (gcc_gimple_checking_assert): New macro.
23693 (gimple_set_def_ops, gimple_set_use_ops,
23694 gimple_set_vuse, gimple_set_vdef,
23695 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
23696 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
23697 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
23698 gimple_asm_output_op, gimple_asm_output_op_ptr,
23699 gimple_asm_set_output_op, gimple_asm_clobber_op,
23700 gimple_asm_set_clobber_op, gimple_asm_label_op,
23701 gimple_asm_set_label_op, gimple_try_set_kind,
23702 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
23703 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
23704 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
23705 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
23706 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
23707 gimple_omp_for_set_initial, gimple_omp_for_final,
23708 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
23709 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
23710 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
23711 conditional with ENABLE_GIMPLE_CHECKING.
23712 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
23713
23714 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
23715
23716 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
23717 (get_computation_cost_at): Use it.
23718 (determine_use_iv_cost_condition): Likewise.
23719 (determine_iv_cost): Likewise.
23720
23721 2010-06-09 Richard Guenther <rguenther@suse.de>
23722
23723 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
23724 replace constants.
23725
23726 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
23727
23728 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
23729
23730 2010-06-09 Martin Jambor <mjambor@suse.cz>
23731
23732 PR tree-optimization/44423
23733 * tree-sra.c (dump_access): Dump also grp_assignment_read.
23734 (analyze_access_subtree): Pass negative allow_replacements to children
23735 if the current type is scalar.
23736
23737 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
23738
23739 PR testsuite/42843
23740 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
23741 * doc/plugins.texi (Plugin license check): Update information
23742 on type of plugin_is_GPL_compatible.
23743 * Makefile.in (PLUGINCC): Define as $(COMPILER).
23744 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
23745
23746 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
23747
23748 * config/arm/arm.c (thumb2_reorg): New function.
23749 (arm_reorg): Call it.
23750 * config/arm/thumb2.md (define_peephole2 for flag clobbering
23751 arithmetic operations): Delete.
23752
23753 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
23754
23755 PR target/44067
23756 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
23757 e500v2 target.
23758
23759 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
23760
23761 PR plugins/44459
23762 * gcc-plugin.h: Encapsulate all declarations in extern "C".
23763
23764 2010-06-08 Jan Hubicka <jh@suse.cz>
23765
23766 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
23767 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
23768
23769 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
23770
23771 PR tree-optimization/39874
23772 PR middle-end/28685
23773 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
23774 Declare.
23775 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
23776 same_bool_result_p): New.
23777 (and_var_with_comparison, and_var_with_comparison_1,
23778 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
23779 (or_var_with_comparison, or_var_with_comparison_1,
23780 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
23781 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
23782 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
23783 of combine_comparisons.
23784 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
23785
23786 2010-06-08 Anatoly Sokolov <aesok@post.ru>
23787
23788 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
23789 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
23790 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
23791 pdp11_function_value_regno_p): New functions.
23792 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
23793 TARGET_FUNCTION_VALUE_REGNO_P): Define.
23794
23795 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
23796
23797 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
23798 Thumb-2 in the MINUS case.
23799
23800 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23801
23802 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
23803
23804 * doc/gty.texi (GTY Options): Document typed GC allocation and
23805 variable_size GTY option.
23806
23807 * ggc-internal.h: New.
23808
23809 * ggc.h: Update copyright year.
23810 (digit_string): Move to stringpool.c.
23811 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
23812 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
23813 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
23814 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
23815 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
23816 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
23817 (ggc_force_collect, ggc_get_size, ggc_statistics)
23818 (ggc_print_common_statistics): Move to ggc-internal.h.
23819 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
23820 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
23821 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
23822 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
23823 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
23824 (ggc_alloc_zone_pass_stat): Remove.
23825 (ggc_internal_alloc_stat, ggc_internal_alloc)
23826 (ggc_internal_cleared_alloc_stat): New.
23827 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
23828 (ggc_internal_vec_alloc_stat)
23829 (ggc_internal_cleared_vec_alloc_stat)
23830 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
23831 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
23832 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
23833 (ggc_cleared_alloc_ptr_array_two_args): New.
23834 (htab_create_ggc, splay_tree_new_ggc): Redefine.
23835 (ggc_splay_alloc): Change the type of the first argument to
23836 enum gt_types_enum.
23837 (ggc_alloc_string): Make macro.
23838 (ggc_alloc_string_stat): New.
23839 (ggc_strdup): Redefine.
23840 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
23841 (ggc_alloc_rtvec_sized): New.
23842 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
23843 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
23844 (ggc_internal_cleared_alloc_zone_stat)
23845 (ggc_internal_zone_alloc_stat)
23846 (ggc_internal_zone_cleared_alloc_stat)
23847 (ggc_internal_zone_vec_alloc_stat)
23848 (ggc_alloc_zone_rtx_def_stat)
23849 (ggc_alloc_zone_tree_node_stat)
23850 (ggc_alloc_zone_cleared_tree_node_stat)
23851 (ggc_alloc_cleared_gimple_statement_d_stat): New.
23852
23853 * ggc-common.c: Include ggc-internal.h.
23854 (ggc_internal_cleared_alloc_stat): Rename from
23855 ggc_alloc_cleared_stat.
23856 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
23857 (ggc_calloc): Remove.
23858 (ggc_cleared_alloc_htab_ignore_args): New.
23859 (ggc_cleared_alloc_ptr_array_two_args): New.
23860 (ggc_splay_alloc): Add obj_type parameter.
23861 (init_ggc_heuristics): Formatting fixes.
23862
23863 * ggc-none.c: Update copyright year.
23864 (ggc_alloc_stat): Rename to ggc_alloc_stat.
23865 (ggc_alloc_cleared_stat): Rename to
23866 ggc_internal_cleared_alloc_stat.
23867 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
23868
23869 * ggc-page.c: Update copyright year. Include ggc-internal.h.
23870 Remove references to ggc_alloc in comments.
23871 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
23872 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
23873 (new_ggc_zone, destroy_ggc_zone): Remove.
23874 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
23875
23876 * ggc-zone.c: Include ggc-internal.h. Remove references to
23877 ggc_alloc in comments.
23878 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
23879 (ggc_internal_alloc_zone_pass_stat): New.
23880 (ggc_internal_cleared_alloc_zone_stat): New.
23881 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
23882 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
23883 (new_ggc_zone, destroy_ggc_zone): Remove.
23884
23885 * stringpool.c: Update copyright year. Include ggc-internal.h
23886 (digit_vector): Make static.
23887 (digit_string): Moved from ggc.h.
23888 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
23889 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
23890
23891 * Makefile.in (GGC_INTERNAL_H): New.
23892 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
23893 $(GGC_INTERNAL_H) to dependencies.
23894
23895 * gentype.c: Update copyright year.
23896 (walk_type): Accept variable_size GTY option.
23897 (USED_BY_TYPED_GC_P): New macro.
23898 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
23899 whitespace at the end of strings.
23900 (get_type_specifier, variable_size_p): New functions.
23901 (alloc_quantity, alloc_zone): New enums.
23902 (write_typed_alloc_def): New function.
23903 (write_typed_struct_alloc_def): Likewise.
23904 (write_typed_typed_typedef_alloc_def): Likewise.
23905 (write_typed_alloc_defns): Likewise.
23906 (output_typename, write_splay_tree_allocator_def): Likewise.
23907 (write_splay_tree_allocators): Likewise.
23908 (main): Call write_typed_alloc_defns and
23909 write_splay_tree_allocators.
23910
23911 * lto-streamer.h (lto_file_decl_data_ptr): New.
23912
23913 * passes.c (order): Define using cgraph_node_ptr.
23914
23915 * strinpool.c (struct string_pool_data): Declare nested_ptr using
23916 ht_identifier_ptr.
23917
23918 * gimple.h (union gimple_statement_d): Likewise.
23919
23920 * rtl.h (struct rtx_def): Likewise.
23921 (struct rtvec_def): Likewise.
23922
23923 * tree.h (union tree_node): Likewise.
23924
23925 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
23926
23927 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
23928
23929 * tree-scalar-evolution.c (scev_initialize): Likewise.
23930
23931 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
23932
23933 * dwarf2asm.c (dw2_force_const_mem): Likewise.
23934
23935 * omp-low.c (lower_omp_critical): Likewise.
23936
23937 * bitmap.h (struct bitmap_head_def): Update comment to not
23938 reference ggc_alloc.
23939
23940 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
23941
23942 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
23943
23944 * ipa-prop.c (duplicate_ggc_array): Rename to
23945 duplicate_ipa_jump_func_array. Use typed GC allocation.
23946 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
23947
23948 * gimple.c (gimple_alloc_stat): Use
23949 ggc_alloc_cleared_gimple_statement_d_stat.
23950
23951 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
23952
23953 * tree.c (make_node_stat): Use
23954 ggc_alloc_zone_cleared_tree_node_stat.
23955 (make_tree_vec_stat): Likewise.
23956 (build_vl_exp_stat): Likewise.
23957 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
23958 (make_tree_binfo_stat): Likewise.
23959 (tree_cons_stat): Likewise.
23960
23961 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
23962 (shallow_copy_rtx_stat): Likewise.
23963 (make_node_stat): Likewise.
23964
23965 * lto-symtab.c: Fix comment.
23966
23967 * tree-cfg.c (create_bb): Update comment to not reference
23968 ggc_alloc_cleared.
23969 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
23970
23971 * varpool.c (varpool_node): Use typed GC allocation.
23972 (varpool_extra_name_alias): Likewise.
23973
23974 * varasm.c (emutls_decl): Likewise.
23975 (get_unnamed_section): Likewise.
23976 (get_noswitch_section): Likewise.
23977 (get_section): Likewise.
23978 (get_block_for_section): Likewise.
23979 (build_constant_desc): Likewise.
23980 (create_constant_pool): Likewise.
23981 (force_const_mem): Likewise.
23982
23983 * tree.c (build_vl_exp_stat): Likewise.
23984 (build_real): Likewise.
23985 (build_string): Likewise.
23986 (decl_debug_expr_insert): Likewise.
23987 (decl_value_expr_insert): Likewise.
23988 (type_hash_add): Likewise.
23989 (build_omp_clause): Likewise.
23990
23991 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
23992
23993 * tree-ssa.c (init_tree_ssa): Likewise.
23994
23995 * tree-ssa-structalias.c (heapvar_insert): Likewise.
23996
23997 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
23998
23999 * tree-ssa-loop-niter.c (record_estimate): Likewise.
24000
24001 * tree-ssa-alias.c (get_ptr_info): Likewise.
24002
24003 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
24004
24005 * tree-phinodes.c (allocate_phi_node): Likewise.
24006
24007 * tree-iterator.c (tsi_link_before): Likewise.
24008 (tsi_link_after): Likewise.
24009
24010 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
24011
24012 * tree-dfa.c (create_var_ann): Likewise.
24013
24014 * tree-cfg.c (create_bb): Likewise.
24015
24016 * toplev.c (alloc_for_identifier_to_locale): Likewise.
24017 (general_init): Likewise.
24018
24019 * stringpool.c (stringpool_ggc_alloc): Likewise.
24020 (gt_pch_save_stringpool): Likewise.
24021
24022 * sese.c (if_region_set_false_region): Likewise.
24023
24024 * passes.c (do_per_function_toporder): Likewise.
24025
24026 * optabs.c (set_optab_libfunc): Likewise.
24027 (set_conv_libfunc): Likewise.
24028
24029 * lto-symtab.c (lto_symtab_register_decl): Likewise.
24030
24031 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
24032 (input_eh_region): Likewise.
24033 (input_eh_lp): Likewise.
24034 (make_new_block): Likewise.
24035 (unpack_ts_real_cst_value_fields): Likewise.
24036
24037 * lto-section-in.c (lto_new_in_decl_state): Likewise.
24038
24039 * lto-cgraph.c (input_node_opt_summary): Likewise.
24040
24041 * loop-init.c (loop_optimizer_init): Likewise.
24042
24043 * lambda.h (lambda_vector_new): Likewise.
24044
24045 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
24046
24047 * ira.c (update_equiv_regs): Likewise.
24048
24049 * ipa.c (cgraph_node_set_new): Likewise.
24050 (cgraph_node_set_add): Likewise.
24051 (varpool_node_set_new): Likewise.
24052 (varpool_node_set_add): Likewise.
24053
24054 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
24055 (duplicate_ipa_jump_func_array): Likewise.
24056 (ipa_read_node_info): Likewise.
24057
24058 * ipa-cp.c (ipcp_create_replace_map): Likewise.
24059
24060 * integrate.c (get_hard_reg_initial_val): Likewise.
24061
24062 * gimple.c (gimple_alloc_stat): Likewise.
24063 (gimple_build_omp_for): Likewise.
24064 (gimple_seq_alloc): Likewise.
24065 (gimple_copy): Likewise.
24066
24067 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
24068 (gsi_insert_after_without_update): Likewise.
24069
24070 * function.c (add_frame_space): Likewise.
24071 (insert_temp_slot_address): Likewise.
24072 (assign_stack_temp_for_type): Likewise.
24073 (allocate_struct_function): Likewise.
24074 (types_used_by_var_decl_insert): Likewise.
24075
24076 * except.c (init_eh_for_function): Likewise.
24077 (gen_eh_region): Likewise.
24078 (gen_eh_region_catch): Likewise.
24079 (gen_eh_landing_pad): Likewise.
24080 (add_call_site): Likewise.
24081
24082 * emit-rtl.c (get_mem_attrs): Likewise.
24083 (get_reg_attrs): Likewise.
24084 (start_sequence): Likewise.
24085 (init_emit): Likewise.
24086
24087 * dwarf2out.c (new_cfi): Likewise.
24088 (queue_reg_save): Likewise.
24089 (dwarf2out_frame_init): Likewise.
24090 (new_loc_descr): Likewise.
24091 (find_AT_string): Likewise.
24092 (new_die): Likewise.
24093 (add_var_loc_to_decl): Likewise.
24094 (clone_die): Likewise.
24095 (clone_as_declaration): Likewise.
24096 (break_out_comdat_types): Likewise.
24097 (new_loc_list): Likewise.
24098 (loc_descriptor): Likewise.
24099 (add_loc_descr_to_each): Likewise.
24100 (add_const_value_attribute): Likewise.
24101 (tree_add_const_value_attribute): Likewise.
24102 (add_comp_dir_attribute): Likewise.
24103 (add_name_and_src_coords_attributes): Likewise.
24104 (lookup_filename): Likewise.
24105 (store_vcall_insn): Likewise.
24106 (dwarf2out_init): Likewise.
24107
24108 * dbxout.c (dbxout_init): Likewise.
24109
24110 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
24111
24112 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
24113
24114 * config/score/score7.c (score7_output_external): Likewise.
24115
24116 * config/score/score3.c (score3_output_external): Likewise.
24117
24118 * config/s390/s390.c (s390_init_machine_status): Likewise.
24119
24120 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
24121 (rs6000_init_machine_status): Likewise.
24122 (output_toc): Likewise.
24123
24124 * config/pa/pa.c (pa_init_machine_status): Likewise.
24125 (get_deferred_plabel): Likewise.
24126
24127 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
24128
24129 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
24130
24131 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
24132
24133 * config/mep/mep.c (mep_init_machine_status): Likewise.
24134 (mep_note_pragma_flag): Likewise.
24135
24136 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
24137
24138 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
24139
24140 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
24141
24142 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
24143 (i386_pe_maybe_record_exported_symbol): Likewise.
24144
24145 * config/i386/i386.c (get_dllimport_decl): Likewise.
24146 (ix86_init_machine_status): Likewise.
24147 (assign_386_stack_local): Likewise.
24148
24149 * config/frv/frv.c (frv_init_machine_status): Likewise.
24150
24151 * config/darwin.c (machopic_indirection_name): Likewise.
24152
24153 * config/cris/cris.c (cris_init_machine_status): Likewise.
24154
24155 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
24156
24157 * config/avr/avr.c (avr_init_machine_status): Likewise.
24158
24159 * config/arm/arm.c (arm_init_machine_status): Likewise.
24160
24161 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
24162 (alpha_need_linkage): Likewise.
24163 (alpha_use_linkage): Likewise.
24164
24165 * cgraph.c (cgraph_allocate_node): Likewise.
24166 (cgraph_create_edge_1): Likewise.
24167 (cgraph_create_indirect_edge): Likewise.
24168 (cgraph_add_asm_node): Likewise.
24169
24170 * cfgrtl.c (init_rtl_bb_info): Likewise.
24171
24172 * cfgloop.c (alloc_loop): Likewise.
24173 (rescan_loop_exit): Likewise.
24174
24175 * cfg.c (init_flow): Likewise.
24176 (alloc_block): Likewise.
24177 (unchecked_make_edge): Likewise.
24178
24179 * c-parser.c (c_parse_init): Likewise.
24180 (c_parse_file): Likewise.
24181
24182 * c-decl.c (bind): Likewise.
24183 (record_inline_static): Likewise.
24184 (push_scope): Likewise.
24185 (make_label): Likewise.
24186 (lookup_label_for_goto): Likewise.
24187 (finish_struct): Likewise.
24188 (finish_enum): Likewise.
24189 (c_push_function_context): Likewise.
24190
24191 * bitmap.c (bitmap_element_allocate): Likewise.
24192 (bitmap_gc_alloc_stat): Likewise.
24193
24194 * alias.c (record_alias_subset): Likewise.
24195 (init_alias_analysis): Likewise.
24196
24197 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
24198
24199 * fold-const.c (fold_comparison): Remove redundant parenthesis.
24200 * tree-inline.c (expand_call_inline): Pass translated return value of
24201 cgraph_inline_failed_string to diagnostic function.
24202
24203 2010-06-08 Andrew Pinski <pinskia@gmail.com>
24204 Shujing Zhao <pearly.zhao@oracle.com>
24205
24206 PR c/37724
24207 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
24208 implicit bad conversions is initialization.
24209 (error_init): Use gmsgid instead of msgid for argument name and change
24210 the call for error.
24211 (pedwarn_init): Use gmsgid instead of msgid for argument name and
24212 change the call for pedwarn.
24213 (warning_init): Use gmsgid instead of msgid for argument name and
24214 change the call for warning.
24215
24216 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
24217
24218 * config/mips/mips-protos.h (mips_print_operand): Delete.
24219 (mips_print_operand_address): Delete.
24220 * config/mips/mips.h (mips_print_operand_punct): Delete.
24221 (PRINT_OPERAND): Delete.
24222 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24223 (PRINT_OPERAND_ADDRESS): Delete.
24224 * config/mips/mips.c (mips_print_operand_punct): Make static.
24225 (mips_print_operand_address): Make static.
24226 (mips_print_operand): Make static. Call
24227 mips_print_operand_punct_valid_p.
24228 (mips_print_operand_punct_valid_p): New function.
24229 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
24230 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24231
24232 2010-06-07 Jan Hubicka <jh@suse.cz>
24233
24234 PR middle-end/44454
24235 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
24236 are allocated.
24237
24238 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
24239
24240 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
24241 name of RECORD.
24242
24243 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24244
24245 * doc/sourcebuild.texi (Effective-Target Keywords, Other
24246 attributes): Document gas.
24247
24248 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
24249
24250 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
24251 <TYPE_LEA>: Split instruction.
24252 <default>: Remove alternative 2 handling.
24253 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
24254 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
24255 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
24256
24257 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
24258 (ashift_zext lea splitter): Use DImode for multiplication.
24259
24260 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
24261 to generate addition.
24262
24263 2010-06-07 Joseph Myers <joseph@codesourcery.com>
24264
24265 * common.opt (fira-verbose): Use Var.
24266 (fpcc-struct-return): Use Init instead of VarExists.
24267 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
24268 toplev.c.
24269 * flags.h (flag_signed_char, flag_short_enums,
24270 flag_pcc_struct_return, flag_ira_verbose,
24271 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
24272 * toplev.c (flag_detailed_statistics, flag_signed_char,
24273 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
24274 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
24275 * toplev.h (flag_crossjumping, flag_if_conversion,
24276 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
24277 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
24278 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
24279 flag_cprop_registers, time_report, flag_ira_loop_pressure,
24280 flag_ira_coalesce, flag_ira_move_spills,
24281 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
24282
24283 2010-06-07 Jan Hubicka <jh@suse.cz>
24284
24285 * df-core.c (df_analyze_problem): Do verification after allocation.
24286
24287 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
24288 (df_lr_alloc): Initialize problem data; move bitmaps to
24289 lr_bitmaps obstack.
24290 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
24291 (df_lr_verify_solution_start): Do not initialize problem data;
24292 allocate bitmaps in lr_bitmaps.
24293 (df_lr_verify_solution_end): Do not free problem data.
24294
24295 2010-06-07 Jan Hubicka <jh@suse.cz>
24296
24297 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
24298 if caller is noreturn.
24299 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
24300 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
24301 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
24302 * ipa-pure-const.c (check_decl): Add IPA parameter.
24303 (state_from_flags): New function.
24304 (better_state, worse_state): New functions.
24305 (check_call): When in IPA mode, do not care about callees.
24306 (check_load, check_store): Update.
24307 (check_ipa_load, check_ipa_store): New.
24308 (check_stmt): When in IPA mode, use IPA checkers.
24309 (analyze_function): Use state_from_flags.
24310 (propagate): Check indirect edges and references.
24311
24312 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
24313
24314 PR rtl-optimization/44404
24315 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
24316 of count_occurrences to see if it's safe to modify mem_insn.
24317
24318 2010-06-07 Richard Guenther <rguenther@suse.de>
24319
24320 * gimplify.c (gimplify_cleanup_point_expr): For empty body
24321 and EH-only cleanup drop the cleanup instead of inserting it
24322 unconditionally.
24323
24324 2010-06-07 Ira Rosen <irar@il.ibm.com>
24325
24326 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
24327 documentation.
24328 * targhooks.c (default_builtin_vectorization_cost): New function.
24329 * targhooks.h (default_builtin_vectorization_cost): Declare.
24330 * target.h (enum vect_cost_for_stmt): Define.
24331 (builtin_vectorization_cost): Change argument and comment.
24332 * tree-vectorizer.h: Remove cost model macros.
24333 * tree-vect-loop.c: Include target.h.
24334 (vect_get_cost): New function.
24335 (vect_estimate_min_profitable_iters): Replace cost model macros with
24336 calls to vect_get_cost.
24337 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
24338 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
24339 default implementation.
24340 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
24341 calls to target hook builtin_vectorization_cost.
24342 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
24343 Likewise.
24344 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
24345 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
24346 implementation to return costs.
24347 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
24348 * config/spu/spu.h: Remove vectorizer cost model macros.
24349 * config/i386/i386.h: Likewise.
24350 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
24351 a call to target hook builtin_vectorization_cost.
24352
24353 2010-06-06 Sriraman Tallam <tmsriram@google.com>
24354
24355 PR target/44319
24356 * config/i386/i386.c (override_options): Turn zee pass on for level 2
24357 and above and defer till target is known.
24358 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
24359 turn off otherwise.
24360
24361 2010-05-25 Jan Hubicka <jh@suse.cz>
24362
24363 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
24364 (df_compact_blocks): Likewise.
24365 * df.h (struct df): Turn hardware_regs_used,
24366 regular_block_artificial_uses, eh_block_artificial_uses,
24367 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
24368 bitmap_head.
24369 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
24370 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
24371 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
24372 df_scan_blocks, df_insn_delete, df_insn_rescan,
24373 df_insn_rescan_debug_internal, df_insn_rescan_all,
24374 df_process_deferred_rescans, df_process_deferred_rescans,
24375 df_notes_rescan, df_get_call_refs, df_get_call_refs,
24376 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
24377 df_record_entry_block_defs, df_record_exit_block_uses,
24378 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
24379 df_scan_verify): Update.
24380
24381 2010-05-25 Dodji Seketeli <dodji@redhat.com>
24382
24383 PR c++/44188
24384 * c-common.c (is_typedef_decl): Move this definition ...
24385 * tree.c (is_typedef_decl): ... here.
24386 (typdef_variant_p): Move definition here from cp/tree.c.
24387 * c-common.h (is_typedef_decl): Move this declaration ...
24388 * tree.h (is_typedef_decl): ... here.
24389 (typedef_variant_p): Move declaration here from cp/cp-tree.h
24390 * dwarf2out.c (is_naming_typedef_decl): New function.
24391 (gen_tagged_type_die): Split out of ...
24392 (gen_type_die_with_usage): ... this function. When an anonymous
24393 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
24394 is emitted for the typedef.
24395 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
24396 anonymous tagged types.
24397
24398 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
24399
24400 PR c/20000
24401 * c-decl.c (grokdeclarator): Delete warning.
24402
24403 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
24404
24405 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
24406 newly built CALL_EXPR.
24407 * tree-profile.c (tree_profiling): Don't profile functions produced
24408 for built-in stuff.
24409
24410 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
24411
24412 PR bootstrap/44427
24413 PR bootstrap/44428
24414 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
24415 endianness-independent.
24416
24417 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
24418
24419 * c-common.c: Move to c-family/.
24420 * c-common.def: Likewise.
24421 * c-common.h: Likewise.
24422 * c-cppbuiltin.c: Likewise.
24423 * c-dump.c: Likewise.
24424 * c-format.c: Likewise.
24425 * c-format.h : Likewise.
24426 * c-gimplify.c: Likewise.
24427 * c-lex.c: Likewise.
24428 * c-omp.c: Likewise.
24429 * c.opt: Likewise.
24430 * c-opts.c: Likewise.
24431 * c-pch.c: Likewise.
24432 * c-ppoutput.c: Likewise.
24433 * c-pragma.c: Likewise.
24434 * c-pragma.h: Likewise.
24435 * c-pretty-print.c: Likewise.
24436 * c-pretty-print.h: Likewise.
24437 * c-semantics.c: Likewise.
24438 * stub-objc.c: Likewise.
24439
24440 * gengtype.c (get_file_langdir): Special-case files in c-family/.
24441 (get_output_file_with_visibility): Fix name for c-common.h.
24442 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
24443
24444 * c-tree.h: Update include path for moved files.
24445 * c-lang.c: Likewise.
24446 * c-lang.h: Likewise.
24447 * c-parser.c: Likewise.
24448 * c-convert.c: Likewise.
24449 * c-decl.c: Likewise.
24450 * c-objc-common.c: Likewise.
24451 * configure.ac: Make sure c-family/ exists in the build directory.
24452 * configure: Regenerate.
24453 * Makefile.in: Update paths for moved files. Regroup files per
24454 location and update dependencies. Move generated_files down after
24455 ALL_GTFILES_H.
24456
24457 * config/spu/spu-c.c: Update paths for moved files.
24458 * config/mep/mep-pragma.c: Likewise.
24459 * config/darwin-c.c: Likewise.
24460 * config/i386/msformat-c.c: Likewise.
24461 * config/i386/i386-c.c: Likewise.
24462 * config/avr/avr-c.c: Likewise.
24463 * config/sol2-c.c: Likewise.
24464 * config/ia64/ia64-c.c: Likewise.
24465 * config/rs6000/rs6000-c.c: Likewise.
24466 * config/arm/arm.c: Likewise.
24467 * config/arm/arm-c.c: Likewise.
24468 * config/h8300/h8300.c: Likewise.
24469 * config/v850/v850-c.c: Likewise.
24470
24471 * config/t-darwin: Fix dependencies for moved files.
24472 * config/t-sol2: Fix dependencies for moved files.
24473 * config/mep/t-mep: Fix dependencies for moved files.
24474 * config/ia64/t-ia64: Fix dependencies for moved files.
24475 * config/rs6000/t-rs6000: Fix dependencies for moved files.
24476 * config/v850/t-v850: Fix dependencies for moved files.
24477 * config/v850/t-v850e: Fix dependencies for moved files.
24478
24479 * config/m32c/m32c-pragma.c
24480
24481 * po/exgettext: Look in c-family/ also.
24482
24483 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
24484
24485 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
24486 (mark_control_dependent_edges_necessary): Call it instead of marking
24487 the last statement manually.
24488 (propagate_necessity): Likewise.
24489
24490 2010-06-05 Jan Hubicka <jh@suse.cz>
24491
24492 * basic-block.h (compute_dominance_frontiers): Updated.
24493 (compute_idf): Likewise.
24494
24495 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
24496 for dominance frontiers.
24497 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
24498 (insert_updated_phi_nodes_for): Likewise.
24499 (update_ssa): Likewise.
24500 * cfganal.c (compute_dominance_frontiers_1): Likewise.
24501 (compute_dominance_frontiers): Likewise.
24502 (compute_idf): Likewise.
24503 * df-problems.c (df_md_local_compute): Likewise.
24504
24505 2010-06-05 Anatoly Sokolov <aesok@post.ru>
24506
24507 * target.h (struct gcc_target): Add memory_move_cost field.
24508 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
24509 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
24510 * targhooks.c (default_memory_move_cost): New function.
24511 * targhooks.h (default_memory_move_cost): Declare function.
24512 * reload.h (memory_move_cost): Declare.
24513 (memory_move_secondary_cost): Change type of 'in' argument to bool.
24514 * reginfo.c (memory_move_cost): New function.
24515 (memory_move_secondary_cost): Change type of 'in' argument to bool.
24516 * ira.h (ira_memory_move_cost): Update comment.
24517 * ira.c (ira_memory_move_cost): Update comment.
24518 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
24519 with memory_move_cost.
24520 * postreload.c (reload_cse_simplify_set): (Ditto.).
24521 * reload1.c (choose_reload_regs): (Ditto.).
24522 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
24523 (MEMORY_MOVE_COST): Revise documentation.
24524
24525 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
24526 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
24527 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
24528 type of 'in' argument to bool.
24529 (TARGET_MEMORY_MOVE_COST): Define.
24530
24531 2010-06-05 Jan Hubicka <jh@suse.cz>
24532
24533 * ipa-pure-const.c (propagate): Fix typo in handling of functions
24534 that cannot return. Be more careful when merging the results with
24535 previously known ones.
24536
24537 2010-06-05 Matthias Klose <doko@ubuntu.com>
24538
24539 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
24540 function to add the -iplugindir option.
24541 (find_plugindir_spec_function): Add new declaration and function.
24542 (static_spec_func): Use it for "find-plugindir".
24543
24544 2010-06-05 Jakub Jelinek <jakub@redhat.com>
24545
24546 PR c++/44361
24547 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
24548 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
24549 statement expression.
24550
24551 2010-06-05 Jan Hubicka <jh@suse.cz>
24552
24553 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
24554 (df_rd_problem_data): Convert sparse_invalidated_by_call,
24555 dense_invalidated_by_call to bitmap head.
24556 (df_rd_alloc, df_rd_bb_local_compute_process_def,
24557 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
24558 df_rd_start_dump, df_lr_verify_transfer_functions,
24559 df_live_verify_transfer_functions, df_chain_create_bb,
24560 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
24561 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
24562 df_simulate_one_insn_forwards, df_md_alloc,
24563 df_md_bb_local_compute_process_def,
24564 df_md_bb_local_compute_process_def, df_md_local_compute,
24565 df_md_transfer_function df_md_free): Update.
24566
24567 2010-06-05 Joseph Myers <joseph@codesourcery.com>
24568
24569 PR c/44322
24570 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
24571 target type for ADDR_EXPR; require no changes to qualifiers except
24572 for function types.
24573 * c-tree.h (c_build_type_variant): Remove.
24574
24575 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
24576
24577 * genautomata.c (get_excl_set): Do work per element, not per char.
24578 (check_presence_pattern_sets): Similar.
24579 (check_absence_pattern_sets): Similar.
24580
24581 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
24582
24583 * genautomata.c (curr_state_pass_num): Delete.
24584 (min_issue_delay_pass_states): Delete.
24585 (min_issue_delay): Delete.
24586 (initiate_min_issue_delay_pass_states): Delete.
24587 (output_min_issue_delay_table): Compute min_issue_delay_vect
24588 using a breadth-first search variant.
24589 (output_tables): Don't call initiate_min_issue_delay_pass_states.
24590
24591 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
24592
24593 PR boostrap/44421
24594 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
24595 (df_byte_lr_bb_local_compute): Likewise.
24596
24597 2010-06-03 Jason Merrill <jason@redhat.com>
24598
24599 Implement noexcept operator (5.3.7)
24600 * c-common.c (c_common_reswords): Add noexcept.
24601 * c-common.h (enum rid): Add RID_NOEXCEPT.
24602
24603 2010-06-04 Joseph Myers <joseph@codesourcery.com>
24604
24605 * config/darwin-driver.c (darwin_default_min_version): Use
24606 GCC-specific formats in diagnostics.
24607 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
24608 diagnostics.
24609 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
24610 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
24611 eval_spec_function, handle_braces, process_brace_body, main,
24612 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
24613 getenv_spec_function, compare_version_strings,
24614 version_compare_spec_function): Use GCC-specific formats in
24615 diagnostics.
24616
24617 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
24618
24619 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
24620 that operand 0 and operand 1 are equal.
24621 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
24622 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
24623 and operand 1 are equal.
24624 <default>: Ditto. Remove ??? comment.
24625 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
24626 and operand 1 are equal.
24627 <default>: Ditto. Remove ??? comment.
24628 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
24629 are equal.
24630 (*add<mode>_4) <default>: Ditto.
24631 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
24632
24633 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
24634
24635 * config/i386/i386-protos.h (ix86_print_operand): Declare.
24636 * config/i386/i386.c (ix86_print_operand): Make non-static.
24637 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
24638 * output.h (output_operand): Declare.
24639 * final.c (output_operand): Make non-static.
24640
24641 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
24642
24643 PR rtl-optimization/44013
24644 * sched-deps.c (add_dependence_list_and_free): Don't free lists
24645 when processing debug insns.
24646
24647 PR debug/41371
24648 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
24649 recursing. Check that recursion is bounded. Rename inner var
24650 to avoid hiding incoming argument.
24651
24652 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
24653
24654 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
24655 operands[2] == 255.
24656 (*addqi_3): Ditto.
24657 (*addqi_4): Ditto.
24658 (*addqi_5): Ditto.
24659 (*addqi_ext_1_rex64): Ditto.
24660 (*addqi_ext_1): Ditto.
24661
24662 (*addqi_4): Check for incdec_operand in QImode.
24663
24664 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
24665 using SWI mode iterator.
24666 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
24667 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
24668 mode iterator.
24669 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
24670 using SWI mode iterator.
24671
24672 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
24673
24674 PR c/25880
24675 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
24676 * c-format.c (gcc_diag_flag_specs): Add hash.
24677 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
24678 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
24679 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
24680 pp_c_cv_qualifiers. Handle qualifiers spelling here.
24681 (pp_c_type_qualifier_list): Call the function above.
24682 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
24683 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
24684 (WARN_FOR_QUALIFIERS): New macro.
24685 (convert_for_assignment): Use it.
24686
24687 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
24688
24689 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
24690
24691 2010-06-04 Jan Hubicka <jh@suse.cz>
24692
24693 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
24694 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
24695 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
24696 DF_BYTE_LR_OUT): Update for embedded bitmaps.
24697 * fwprop.c (single_def_use_enter_block): Likewise.
24698 * ddg.c (create_ddg_dep_from_intra_loop_link,
24699 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
24700 * loop-iv.c (latch_dominating_def): Likewise.
24701 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
24702 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
24703 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
24704 df_rd_transfer_function, df_rd_top_dump,
24705 df_rd_bottom_dump): Update.
24706 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
24707 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
24708 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
24709 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
24710 df_lr_verify_solution_start, df_lr_verify_solution_end,
24711 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
24712 df_live_free_bb_info, df_live_alloc, df_live_reset,
24713 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
24714 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
24715 df_live_verify_solution_start, df_live_verify_solution_end,
24716 df_live_verify_transfer_functions, df_chain_create_bb,
24717 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
24718 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
24719 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
24720 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
24721 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
24722 df_byte_lr_transfer_function, df_byte_lr_top_dump,
24723 df_byte_lr_bottom_dump, df_create_unused_note,
24724 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
24725 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
24726 df_md_transfer_function, df_md_init, df_md_confluence_0,
24727 df_md_confluence_n,
24728 df_md_top_dump, df_md_bottom_dump): Update.
24729 (struct df_lr_problem_data): Embedd bitmap headers.
24730
24731 2010-06-04 Jan Hubicka <jh@suse.cz>
24732
24733 * dce.c (dce_process_block): Do not re-scan already marked
24734 instructions.
24735
24736 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
24737
24738 PR rtl-optimization/39871
24739 PR rtl-optimization/40615
24740 PR rtl-optimization/42500
24741 PR rtl-optimization/42502
24742 * ira.c (init_reg_equiv_memory_loc: New function.
24743 (ira): Call it twice.
24744 * reload.h (calculate_elim_costs_all_insns): Declare.
24745 * ira-costs.c: Include "reload.h".
24746 (regno_equiv_gains): New static variable.
24747 (init_costs): Allocate it.
24748 (finish_costs): Free it.
24749 (ira_costs): Call calculate_elim_costs_all_insns.
24750 (find_costs_and_classes): Take estimated elimination costs
24751 into account.
24752 (ira_adjust_equiv_reg_cost): New function.
24753 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
24754 * reload1.c (init_eliminable_invariants, free_reg_equiv,
24755 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
24756 (elim_bb): New static variable.
24757 (reload): Move code out of here into init_eliminable_invariants and
24758 free_reg_equiv. Call them.
24759 (calculate_elim_costs_all_insns): New function.
24760 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
24761 all callers changed. If FOR_COSTS is true, don't call alter_reg,
24762 but call note_reg_elim_costly if we turned a valid memory address
24763 into an invalid one.
24764 * Makefile.in (ira-costs.o): Depend on reload.h.
24765
24766 2010-06-04 Julian Brown <julian@codesourcery.com>
24767
24768 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
24769 for pool ranges.
24770
24771 2010-06-04 Richard Guenther <rguenther@suse.de>
24772
24773 PR lto/41584
24774 * cgraph.h (struct varpool_node): Add lto_file_data field.
24775 * lto-cgraph.c (input_varpool_node): Initialize it.
24776
24777 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
24778
24779 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
24780 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
24781 predicate in "type" attribute calculation.
24782 (*addsi_1_zext): Ditto.
24783 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
24784 (*addsi_2_zext): Ditto.
24785 (*add<mode>_3): Ditto.
24786 (*addsi_3_zext): Ditto.
24787 (*add<mode>_5): Ditto.
24788
24789 2010-06-03 Jan Hubicka <jh@suse.cz>
24790
24791 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
24792 of bitmap_bit_p.
24793 * cfganal.c (compute_dominance_frontiers_1): Likewise.
24794
24795 2010-06-03 Jan Hubicka <jh@suse.cz>
24796
24797 * df-problems.c (df_create_unused_note, df_note_bb_compute):
24798 micro-optimize the checks when to add new note.
24799
24800 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
24801
24802 * final.c (output_asm_insn): Call
24803 targetm.asm_out.print_operand_punct_valid_p. Update comments.
24804 (output_operand): Call targetm.asm_out.print_operand. Update comments.
24805 (output_address): Call targetm.asm_out.print_operand_address.
24806 Update comments.
24807 * target.h (struct gcc_target): Add print_operand,
24808 print_operand_address, and print_operand_punct_valid_p fields.
24809 * targhooks.h (default_print_operand): Declare.
24810 (default_print_operand_address): Declare.
24811 (default_print_operand_punct_valid_p): Declare.
24812 * targhooks.c (default_print_operand): Define.
24813 (default_print_operand_address): Define.
24814 (default_print_operand_punct_valid_p): Define.
24815 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
24816 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
24817 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
24818 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
24819 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
24820 * vmsdbgout.c (addr_const_to_string): Update comment.
24821 * config/i386/i386.c (print_operand): Rename to...
24822 (ix86_print_operand): ...this. Make static.
24823 (print_operand_address): Rename to...
24824 (ix86_print_operand_address): ...this. Make static. Call
24825 ix86_print_operand instead of PRINT_OPERAND.
24826 (ix86_print_operand_punct_valid_p): New function.
24827 (TARGET_PRINT_OPERAND): Define.
24828 (TARGET_PRINT_OPERAND_ADDRESS): Define.
24829 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
24830 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
24831 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
24832 (PRINT_OPERAND): Delete.
24833 (PRINT_OPERAND_ADDRESS): Delete.
24834 * config/i386/i386-protos.h (print_operand): Delete prototype.
24835 (print_operand_address): Delete prototype.
24836
24837 2010-06-03 Richard Guenther <rguenther@suse.de>
24838
24839 PR tree-optimization/44403
24840 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
24841 Preserve pointer qualifiers.
24842 (vect_create_data_ref_ptr): Likewise.
24843
24844 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
24845
24846 PR c++/44294
24847 * defaults.h (MAX_FIXED_MODE_SIZE): New.
24848
24849 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
24850
24851 2010-06-03 Jakub Jelinek <jakub@redhat.com>
24852
24853 PR debug/44375
24854 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
24855 return false if merging the bbs would lead to goto_locus
24856 location being lost from the IL.
24857
24858 2010-06-03 Jan Hubicka <jh@suse.cz>
24859 Jakub Jelinek <jakub@redhat.com>
24860
24861 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
24862 set->regs[i] is NULL or has just one entry.
24863
24864 2010-06-03 Jan Hubicka <jh@suse.cz>
24865
24866 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
24867 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
24868
24869 2010-06-03 Paul Brook <paul@codesourcery.com>
24870
24871 * config/arm/arm.c (FL_TUNE): Define.
24872 (arm_default_cpu, arm_cpu_select): Remove.
24873 (all_cores): Populate core field.
24874 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
24875 (arm_find_cpu): New function.
24876 (arm_handle_option): Lookup cpu/architecture names.
24877 (arm_override_options): Cleanup mcpu/march/mtune handling.
24878 (arm_file_start): Ditto.
24879
24880 2010-06-03 Alan Modra <amodra@gmail.com>
24881
24882 PR target/44169
24883 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
24884 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
24885 rtx to gen_load_toc_v4_PIC_1b. Tidy.
24886 (rs6000_emit_load_toc_table): Likewise.
24887
24888 2010-06-02 Jan Hubicka <jh@suse.cz>
24889
24890 * passes.c (init_optimization_passes): Put ipa reference
24891 after ipa pure-const.
24892
24893 2010-06-02 Jan Hubicka <jh@suse.cz>
24894
24895 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
24896 calls_read_all and calls_write_all.
24897 (get_reference_optimization_summary): Fix formatting.
24898 (is_proper_for_analysis): Check that decl is not readonly.
24899 (propagate_bits): Check CONST/PURE/noreturn flags.
24900 (ipa_init): Move all_module_statics to optimization_summary_obstack.
24901 (analyze_function): Ignore indirect edges.
24902 (copy_global_bitmap): For all module statics, do nothing.
24903 (generate_summary): Do not print calls_read_all/calls_write_all.
24904 (read_write_all_from_decl): Take node as argument; check
24905 cgraph_node_cannot_return.
24906 (propagate): Reorganize read_all/write_all computation;
24907 check indirect edges; check ecf flags; use all_module_statics
24908 in the results; do not free all_module_statics.
24909 (stream_out_bitmap): Handle all_module_statics.
24910 (ipa_reference_write_optimization_summary): Likewise; use
24911 varpool/cgraph encoders to get boundaries.
24912 (ipa_reference_read_optimization_summary): Read in all_module_statics;
24913 use it when possible.
24914
24915 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24916
24917 PR target/44218
24918 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
24919 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
24920
24921 * doc/extend.texi (powerpc builtins): Document vec_recip,
24922 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
24923
24924 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
24925 (rs6000_emit_swrsqrt): Ditto.
24926 (rs6000_emit_swdivsf): Delete.
24927 (rs6000_emit_swdivdf): Ditto.
24928 (rs6000_emit_swrsqrtsf): Ditto.
24929
24930 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
24931 describe the reciprocal estimate support for each type.
24932 (recip_options): Map -mrecip=<opt> into option bits.
24933 (gen_2arg_fn_t): New typedef for binary rtx gen function.
24934 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
24935 reciprocal estimate instructions.
24936 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
24937 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
24938 Set up rs6000_recip_bits based on the -mrecip* options. Print the
24939 cost information if -mdebug=cost or -mdebug=reg.
24940 (rs6000_override_options): Set -mrecip-precision for power6, and
24941 power7 machines. If -mvsx or -mdfp, enable various options that
24942 came in previous instruction set ISAs, unless the option was
24943 explicitly disabled by the command line option. Parse
24944 -mrecip=<opt> options.
24945 (rs6000_builtin_vectorized_function): Add support for vectorizing
24946 the reciprocal estimate builtins and expansions.
24947 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
24948 (bdesc_2arg): Add reciprocal estimate builtins.
24949 (bdesc_1arg): Add reciprocal square root estimate builtins.
24950 (rs6000_expand_builtin): Rewrite to use a switch statement,
24951 instead of multiple if/then/elses. Add reciprocal estimate builtins.
24952 (rs6000_init_builtins): Create declarations for reciprocal
24953 estimate builtins.
24954 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
24955 sized, prefer traditional floating point registers, if integer
24956 vector types, prefer altivec registers. Don't actually look at
24957 the memory address any more.
24958 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
24959 builtins.
24960 (rs6000_load_constant_and_splat): New helper function to load up
24961 the constant for reciprocal estimate instructions.
24962 (rs6000_emit_madd): New helper function for generating
24963 multiply/add type instructions, based on the current switches.
24964 (rs6000_emit_msub): Ditto.
24965 (rs6000_emit_mnsub): Ditto.
24966 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
24967 replace a divide with a reciprocal estimate and fixup, adding
24968 support for machines with high precision and vectors.
24969 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
24970 low precision machines.
24971 (rs6000_emit_swdiv): New common function to be called to replace a
24972 division with reciprocal estimate and fixup.
24973 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
24974 for double and vector types. Add support for high precision machines.
24975
24976 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
24977 the reciprocal estimate instructions can be generated.
24978 (TARGET_FRE): Ditto.
24979 (TARGET_FRSQRTES): Ditto.
24980 (TARGET_FRSQRTE): Ditto.
24981 (RS6000_RECIP_*): New macros for reciprocal estimate support.
24982
24983 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
24984 square root estimate on vectors.
24985 (re<mode>2): New insn for reciprocal division estimate on vectors.
24986
24987 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
24988 New builtin.
24989 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
24990 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
24991 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
24992 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
24993 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
24994 (RS6000_BUILTIN_RSQRT): Ditto.
24995 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
24996 floating point builtin.
24997
24998 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
24999 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
25000 __RECIP_PRECISION__ based on the command line switches.
25001 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
25002
25003 * config/rs6000/rs6000.opt (-mrecip): Document add support for
25004 replacing division instructions with reciprocal estimate and fixup.
25005 (-mrecip=<opt>): New option.
25006 (-mrecip-precision): Ditto.
25007
25008 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
25009 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
25010 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
25011 precision scalar.
25012
25013 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
25014 (UNSPEC_VREFP): Ditto.
25015 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
25016 conterparts with regard to support of -mno-fused-madd and -ffast-math.
25017 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
25018 reciprocal estimate instructions to be generated.
25019 (altivec_vrefp): Ditto.
25020
25021 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
25022 estimate support.
25023 (rreg): New mode attribute for reciprocal estimate support.
25024 (recip<mode>3): New insn for division using reciprocal estimate
25025 and fixup builtins.
25026 (divide define_split): New define_split to convert floating point
25027 division to use reciprocal estimate if the user used the
25028 appropriate options and the split is run when we can add new
25029 pseudo registers for the fixup.
25030 (rsqrt<mode>2): New insn for reciprocal square root support.
25031 (recipsf3): Move into recip<mode>3.
25032 (recipdf3): Ditto.
25033 (fres): Use TARGET_FRES.
25034 (rsqrtsf2): Move into rsqrt<mode>2.
25035 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
25036 (copysignsf3): Add support for VSX.
25037 (fred): Use TARGET_FRE.
25038 (fred_fpr): Ditto.
25039 (rsqrtdf_internal1): New function for frsqrte instruciton.
25040
25041 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
25042 (vec_rsqrt): Ditto.
25043
25044 2010-06-03 Richard Guenther <rguenther@suse.de>
25045
25046 PR middle-end/44291
25047 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
25048 (set_user_assembler_libfunc): Likewise.
25049
25050 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
25051
25052 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
25053 defaults.h.
25054 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
25055 to defaults.h
25056 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
25057 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
25058 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
25059 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
25060 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
25061 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
25062 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
25063 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
25064 * defaults.h: Updated for above mentioned changes.
25065
25066 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
25067
25068 * c-common.c: Remove header include of tm_p.h.
25069 * Makefile.in (c-common.o): Remove TM_P_H dependency.
25070
25071 2010-06-02 Jakub Jelinek <jakub@redhat.com>
25072
25073 * tree.h (struct tree_decl_map): New type.
25074 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
25075 (tree_decl_map_hash): New prototype.
25076 (debug_expr_for_decl, value_expr_for_decl): Change into
25077 tree_decl_map hashtab from tree_map.
25078 (init_ttree): Adjust initialization.
25079 (tree_decl_map_hash): New function.
25080 (decl_debug_expr_lookup, decl_debug_expr_insert,
25081 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
25082
25083 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25084
25085 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
25086 linker emulations.
25087 * configure: Regenerate.
25088 * config.in: Regenerate.
25089
25090 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
25091 (X86_64_EMULATION): Define.
25092 (TARGET_LD_EMULATION): Use them.
25093
25094 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
25095 (SPARC64_EMULATION): Define.
25096 (LINK_ARCH_SPEC): Use them.
25097
25098 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
25099
25100 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
25101 smallest_mode_for_size for computing the precision types of new
25102 graphite IVs. Do not call lang_hooks.types.type_for_size.
25103
25104 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
25105
25106 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
25107 information.
25108 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
25109
25110 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
25111
25112 PR middle-end/44363
25113 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
25114 return false instead.
25115
25116 2010-06-02 Jan Hubicka <jh@suse.cz>
25117
25118 PR middle-end/44295
25119 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
25120 create new cgraph node to check callee.
25121
25122 2010-06-02 Richard Guenther <rguenther@suse.de>
25123
25124 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
25125
25126 2010-06-02 Richard Guenther <rguenther@suse.de>
25127
25128 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
25129 (lto_wrapper_cleanup): ... this. Do not exit.
25130 (fatal): Adjust. Exit here.
25131 (fatal_perror): Likewise.
25132 (fatal_signal): New function.
25133 (main): Set up signal handlers to cleanup temporary files.
25134 * Makefile.in (lto-wrapper.o): Adjust dependencies.
25135
25136 2010-06-02 Richard Guenther <rguenther@suse.de>
25137
25138 PR tree-optimization/44377
25139 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
25140
25141 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25142
25143 * config/s390/2097.md (z10_fhex): Remove insn reservation.
25144 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
25145 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
25146 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
25147 instruction.
25148 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
25149
25150 2010-06-02 Jan Hubicka <jh@suse.cz>
25151
25152 * bitmap.c (bitmap_descriptor): Add search_iter.
25153 (bitmap_find_bit): Increment it.
25154 (print_statistics): Print it.
25155
25156 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
25157
25158 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
25159 instead of gimple_build_call_vec. Delete unnecessary local variable.
25160
25161 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
25162
25163 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
25164 change from yesterday.
25165
25166 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
25167
25168 * c-ada-spec.c: Clean up redundant includes.
25169
25170 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
25171
25172 * gimplify.c: Do not include except.h and optabs.h.
25173 (gimplify_body): Do not initialize RTL profiling.
25174 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
25175 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
25176 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
25177 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
25178 langhooks.h.
25179
25180 * tree-pretty-print.h: Include pretty-print.h.
25181 * gimple-pretty-print.h: Include pretty-print.h.
25182
25183 * tree-pretty-print.c: Do not include diagnostic.h.
25184 * tree-vrp.c: Likewise.
25185 * tree-tailcall.c: Likewise
25186 * tree-scalar-evolution.c: Likewise
25187 * tree-ssa-dse.c: Likewise
25188 * tree-chrec.c: Likewise
25189 * tree-ssa-sccvn.c: Likewise
25190 * tree-ssa-copyrename.c: Likewise
25191 * tree-nomudflap.c: Likewise
25192 * tree-call-cdce.c: Likewise
25193 * tree-stdarg.c: Likewise
25194 * tree-ssa-math-opts.c: Likewise
25195 * tree-nrv.c: Likewise
25196 * tree-ssa-sink.c: Likewise
25197 * tree-browser.c: Likewise
25198 * tree-ssa-loop-ivcanon.c: Likewise
25199 * tree-ssa-loop.c: Likewise
25200 * tree-parloops.c: Likewise
25201 * tree-ssa-address.c: Likewise
25202 * tree-ssa-ifcombine.c: Likewise
25203 * tree-if-conv.c: Likewise
25204 * tree-data-ref.c: Likewise
25205 * tree-affine.c: Likewise
25206 * tree-ssa-phiopt.c: Likewise
25207 * tree-ssa-coalesce.c: Likewise
25208 * tree-ssa-pre.c: Likewise
25209 * tree-ssa-live.c: Likewise
25210 * tree-predcom.c: Likewise
25211 * tree-ssa-forwprop.c: Likewise
25212 * tree-ssa-dce.c: Likewise
25213 * tree-ssa-ter.c: Likewise
25214 * tree-ssa-loop-prefetch.c: Likewise
25215 * tree-optimize.c: Likewise
25216 * tree-ssa-phiprop.c: Likewise
25217 * tree-object-size.c: Likewise
25218 * tree-outof-ssa.c: Likewise
25219 * tree-ssa-structalias.c: Likewise
25220 * tree-switch-conversion.c: Likewise
25221 * tree-ssa-reassoc.c: Likewise
25222 * tree-ssa-operands.c: Likewise
25223 * tree-vectorizer.c: Likewise
25224 * tree-vect-data-refs.c: Likewise
25225 * tree-vect-generic.c: Likewise
25226 * tree-vect-stmts.c: Likewise
25227 * tree-vect-patterns.c: Likewise
25228 * tree-vect-slp.c: Likewise
25229 * tree-vect-loop.c: Likewise
25230 * tree-ssa-loop-ivopts.c: Likewise
25231 * tree-ssa-loop-im.c: Likewise
25232 * tree-ssa-loop-niter.c: Likewise
25233 * tree-ssa-loop-unswitch.c: Likewise
25234 * tree-ssa-loop-manip.c: Likewise
25235 * tree-ssa-loop-ch.c: Likewise
25236 * tree-dump.c: Likewise
25237 * tree-complex.c: Likewise
25238
25239 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
25240 * tree-ssa-uninit.c: Likewise
25241 * tree-ssa-threadupdate.c: Likewise
25242 * tree-ssa-uncprop.c: Likewise
25243 * tree-ssa-ccp.c: Likewise
25244 * tree-ssa-dom.c: Likewise
25245 * tree-ssa-propagate.c: Likewise
25246 * tree-ssa-alias.c: Likewise
25247 * tree-dfa.c: Likewise
25248 * tree-cfgcleanup.c: Likewise
25249 * tree-sra.c: Likewise
25250 * tree-ssa-copy.c: Likewise
25251 * tree-ssa.c: Likewise
25252 * tree-profile.c: Likewise
25253 * tree-cfg.c: Likewise
25254 * tree-ssa-threadedge.c: Likewise
25255 * tree-vect-loop-manip.c: Likewise
25256
25257 * tree-inline.c: Do not include diagnostic.h and expr.h.
25258 Include rtl.h.
25259 (copy_decl_for_dup_finish): Do not use NULL_RTX.
25260
25261 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
25262 * tree-loop-distribution.c: Likewise.
25263
25264 2010-06-01 Jan Hubicka <jh@suse.cz>
25265
25266 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
25267
25268 2010-06-01 Jan Hubicka <jh@suse.cz>
25269
25270 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
25271 remove return value.
25272 (split_bbs_on_noreturn_calls) .... here.
25273 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
25274 * tree-flow.h (fixup_noreturn_call): New.
25275
25276 2010-06-01 Jan Hubicka <jh@suse.cz>
25277
25278 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
25279
25280 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
25281
25282 * tree.h (build_nt_call_list): Delete.
25283 * tree.c (build_nt_call_list): Delete.
25284
25285 2010-06-01 Jan Hubicka <jh@suse.cz>
25286
25287 * fwprop.c: Make emit-rtl.h include last.
25288 * rtlanal.c: Include emit-rtl.h.
25289 * genautomata.c: Output emit-rtl include into insn-automata.c
25290 * df-scan.c: Include emit-rtl.h.
25291 * haifa-sched.c: Indlude emit-rtl.h.
25292 * mode-switching.c: Indlude emit-rtl.h.
25293 * graph.c: Indlude emit-rtl.h.
25294 * sel-sched.c: Include emit-rtl.h.
25295 * sel-sched-ir.c: Include emit-rtl.h.
25296 * ira-build.c: Include emit-rtl.h.
25297 * emit-rtl.c (first_insn, last_insn): Remove defines.
25298 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
25299 Move to emit-rtl.h.
25300 (set_new_first_and_last_insn, get_last_insn_anywhere,
25301 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
25302 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
25303 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
25304 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
25305 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
25306 Use accessor functions.
25307 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
25308 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
25309 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
25310 mem_expr_equal_p): Move here from rtl.h.
25311 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
25312 Move here from emit-rtl.c; make inline.
25313 * cfglayout.h: Include emit-rtl.h.
25314 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
25315 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
25316 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
25317 mem_expr_equal_p, get_insns, set_first-insn,
25318 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
25319 * reg-stack.c: Include emit-rtl.h.
25320 * dce.c: Likewise.
25321
25322 2010-06-01 Jan Hubicka <jh@suse.cz>
25323
25324 * cgraph.h (tree_function_versioning): Update prototype.
25325 (cgraph_function_versioning): Update prototype.
25326 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
25327 bitmap.
25328 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
25329 (cgraph_materialize_clone, save_inline_function_body): Update use of
25330 tree_function_versioning.
25331 * tree-inline.c (copy_bb): Look for previous copied block to link
25332 after; fix debug output.
25333 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
25334 (copy_body): Likewise.
25335 (expand_call_inline): Update use of copy_body.
25336 (tree_function_versioning): Update use of copy body; accept
25337 blocks_to_copy and new_entry.
25338
25339 2010-06-01 Jan Hubicka <jh@suse.cz>
25340
25341 * gegenrtl.c: Remove unnecesary prototypes.
25342 (gendecl): Remove.
25343 (gendef): Produce static inline.
25344 (gencode): Remove.
25345 (main): Do not decode parameters; generate header only.
25346 * Makefile.in (genrtl.c): Remove.
25347
25348 2010-06-01 Jan Hubicka <jh@suse.cz>
25349
25350 * tree-switch-conversion.c (build_one_array): Make it readonly.
25351
25352 2010-06-01 Richard Guenther <rguenther@suse.de>
25353
25354 * optabs.c (init_optabs): Guard all accesses to reinit.
25355 * ipa-pure-const.c (propagate): Fix another typo.
25356 * opts.c (common_handle_option): Split assignment to bool.
25357 * c-opts.c (c_common_handle_option): Likewise.
25358
25359 2010-06-01 Arnaud Charlet <charlet@adacore.com>
25360 Matthew Gingell <gingell@adacore.com>
25361
25362 * doc/invoke.texi: Mention -fdump-ada-spec.
25363 * tree-dump.c (dump_files): Add ada-spec.
25364 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
25365 * tree-pass.h (tree_dump_index): Add TDI_ada.
25366 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
25367 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
25368 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
25369 * c-decl.c: Include c-ada-spec.h.
25370 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
25371 functions.
25372 (c_write_global_declarations): Add handling of -fdump-ada-spec.
25373 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
25374 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
25375 * c-ada-spec.h, c-ada-spec.c: New files.
25376
25377 2010-06-01 Richard Guenther <rguenther@suse.de>
25378
25379 PR lto/43853
25380 * ipa-pure-const.c (get_function_state): Hand back varying state
25381 if we do not have one.
25382 (has_function_state): New function.
25383 (duplicate_node_data): Adjust.
25384 (remove_node_data): Likewise.
25385 (pure_const_write_summary): Likewise.
25386 (propagate): Likewise. Fix typo.
25387
25388 2010-06-01 Jan Hubicka <jh@suse.cz>
25389
25390 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
25391 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
25392 (execute_all_ipa_transforms): Do not play with the states.
25393
25394 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
25395
25396 * config/arm/t-linux-androideabi: New.
25397 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
25398
25399 2010-06-01 Jan Hubicka <jh@suse.cz>
25400
25401 * tree-inline.c (estimate_num_insns): For stdarg functions look
25402 into call statement to count cost of argument passing.
25403
25404 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
25405
25406 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
25407 argument for fprintf.
25408 (ix86_output_addr_diff_elt): Likewise.
25409 (x86_function_profiler): Likewise.
25410 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
25411 (LPREFIX): Likewise.
25412 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
25413
25414 2010-05-31 Jakub Jelinek <jakub@redhat.com>
25415
25416 PR target/44338
25417 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
25418 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
25419 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
25420 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
25421 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
25422 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
25423 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
25424 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
25425 TARGET_FUSED_MADD.
25426
25427 2010-05-31 Jan Hubicka <jh@suse.cz>
25428
25429 * tree.h (tree_range_check_failed): Declare noreturn.
25430
25431 2010-05-31 Jan Hubicka <jh@suse.cz>
25432
25433 * gimple.c (gimple_call_builtin_p): New function.
25434 * gimple.h (gimple_call_builtin_p): Declare.
25435 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
25436 to exit.
25437 (execute_warn_function_return): BUILT_IN_RETURN is return.
25438 (split_critical_edges): Return edges are not critical.
25439 (is_ctrl_altering_stmt): Builtin_in_return is altering.
25440 (gimple_verify_flow_info): Handle built_in_return.
25441 (execute_warn_function_return): Handle built_in_return.
25442 * ipa-pure-const.c (check_call): Ignore builtin_return.
25443
25444 2010-05-31 Jakub Jelinek <jakub@redhat.com>
25445
25446 PR middle-end/44337
25447 * expr.c (expand_assignment): Don't store anything for out-of-bounds
25448 array accesses with non-MEM.
25449
25450 PR tree-optimization/44182
25451 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
25452 newly needs to end a bb is followed by debug stmts, instead return
25453 true from the function at the end.
25454 (maybe_move_debug_stmts_to_successors): New function.
25455 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
25456
25457 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
25458
25459 PR target/44161
25460 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
25461
25462 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
25463
25464 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
25465 for nested functions in non-optimized compilation.
25466
25467 2010-05-31 Richard Guenther <rguenther@suse.de>
25468
25469 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
25470
25471 2010-05-30 Jan Hubicka <jh@suse.cz>
25472
25473 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
25474
25475 2010-05-30 Richard Guenther <rguenther@suse.de>
25476
25477 PR lto/42975
25478 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
25479 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
25480 no longer needed.
25481
25482 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
25483
25484 * config/darwin.c (output_objc_section_asm_op): Add comment.
25485 (name_needs_quotes): Add '_' to list of valid comment chars.
25486 (machopic_output_function_base_name): Remove unneeded quotes.
25487 (darwin_encode_section_info): Adjust asm whitespace.
25488 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
25489 (ASM_OUTPUT_LOCAL): Ditto.
25490 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
25491 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
25492 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
25493
25494 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
25495
25496 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
25497 RS6000_OUTPUT_BASENAME unconditionally.
25498 (rs6000_output_function_epilogue): Likewise.
25499
25500 2010-05-30 Jan Hubicka <jh@suse.cz>
25501
25502 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
25503 nodes.
25504
25505 2010-05-30 Richard Guenther <rguenther@suse.de>
25506
25507 * tree-cfg.c (verify_gimple_assign_single): Implement
25508 verification for COND_EXPR rhs.
25509
25510 2010-05-30 Jan Hubicka <jh@suse.cz>
25511
25512 * cgraph.h (cgraph_dump_file): Declare.
25513 * cgraphunit.c (cgraph_dump_file): Export.
25514 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
25515
25516 2010-05-30 Jan Hubicka <jh@suse.cz>
25517
25518 * dwarf2out.c (reference_to_unused,
25519 premark_types_used_by_global_vars_helper): Avoid creation of new
25520 varpool nodes.
25521
25522 2010-05-30 Jan Hubicka <jh@suse.cz>
25523
25524 * cgraph.h (cgraph_node_cannot_return,
25525 cgraph_edge_cannot_lead_to_return): New functions.
25526 * cgraph.c (cgraph_node_cannot_return,
25527 cgraph_edge_cannot_lead_to_return): Use them.
25528 * ipa-pure-const.c (pure_const_names): New static var.
25529 (check_call): Handle calls not leading to return.
25530 (pure_const_read_summary): Dump info read.
25531 (propagate): Dump info about propagation process; ignore side effects
25532 of functions not leading to exit; fix handling of pure functions.
25533
25534 2010-05-30 Jan Hubicka <jh@suse.cz>
25535
25536 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
25537 for tail call epilogues.
25538
25539 2010-05-30 Jan Hubicka <jh@suse.cz>
25540
25541 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
25542 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
25543 dump files.
25544
25545 2010-05-29 Jan Hubicka <jh@suse.cz>
25546
25547 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
25548 node; remove references in node we no longer keep in cgrpah but need
25549 body of.
25550
25551 2010-05-29 Jan Hubicka <jh@suse.cz>
25552
25553 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
25554
25555 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25556
25557 PR target/44165
25558 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
25559
25560 2010-05-29 Jan Hubicka <jh@suse.cz>
25561
25562 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
25563 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
25564 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
25565 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
25566 debug_names_replaced_by, debug_update_ssa): Likewise.
25567 * sbitmap.c (debug_sbitmap): Likewise.
25568 * genrecog.c (debug_decision, debug_decision_list): Likewise.
25569 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
25570 debug_tree_chain): Likewise.
25571 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
25572 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
25573 * optabs.c (debug_optab_libfuncs): Likewise.
25574 (verify_loop_closed_ssa): Likewise.
25575 * value-prof.c (verify_histograms): Likewise.
25576 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
25577 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
25578 * cfghooks.c (verify_flow_info): Likewise.
25579 * fold-const.c (debug_fold_checksum): Likewise.
25580 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
25581 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
25582 Likewise.
25583 * omega.c (debug_omega_problem): Likewise.
25584 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
25585 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
25586 * dominance.c (verify_dominators, debug_dominance_info,
25587 debug_dominance_tree): Likewise.
25588 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
25589 * df_regno_debug, df_ref_debug,
25590 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
25591 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
25592 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
25593 * sel-sched.c (debug_state): Likewise.
25594 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
25595 Likewise.
25596 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
25597 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
25598 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
25599 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
25600 Likewise.
25601 * c-pretty-print.c (debug_c_tree): Likewise.
25602 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
25603 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
25604 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
25605 * ebitmap.c (debug_ebitmap): Likewise.
25606 * function.c (debug_find_var_in_block_tree): Likewise.
25607 * print-rtl.c (debug_rtx): Likewise.
25608 (debug_rtx_count): Likewise.
25609 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
25610 * stor-layout.c (debug_rli): Likewise.
25611 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
25612 * tree-data-ref.c (debug_data_references,
25613 debug_data_dependence_relations, debug_data_reference,
25614 debug_data_dependence_relation, debug_rdg_vertex,
25615 debug_rdg_component, debug_rdg): Likewise.
25616 * tree-affine.c (debug_aff): Likewise.
25617 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
25618 Likewise.
25619 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
25620 * emit-rtl.c (verify_rtl_sharing): Likewise.
25621 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
25622 debug_value_expressions): Likewise.
25623 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
25624 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
25625 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
25626 * cfglayout.c (verify_insn_chain): Likewise.
25627 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
25628 debug_clast_stmt, debug_generated_program): Likewise.
25629 * ggc-page.c (debug_print_page_list): Likewise.
25630 * tree-ssa-ter.c (debug_ter): Likewise.
25631 * graphite-dependences.c (debug_pddr): Likewise.
25632 * sched-deps.c (debug_ds): Likewise.
25633 * tree-ssa.c (verify_ssa): Likewise.
25634 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
25635 debug_scattering_functions, debug_iteration_domains, debug_pdr,
25636 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
25637 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
25638 * tree-inline.c (debug_find_tree): Likewise.
25639 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
25640 debug_ppl_powerset_matrix): Likewise.
25641 * var-tracking.c (debug_dv): Likewise.
25642 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
25643 * cfgloop.c (verify_loop_structure): Likewise.
25644 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
25645 * c-common.c (verify_sequence_points): Likewise.
25646 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
25647 debug_candidates, debug_rgn_dependencies): Likewise.
25648 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
25649 * debug_constraint_graph, debug_solution_for_var,
25650 debug_sa_points_to_info): Likewise.
25651 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
25652 Likewie.
25653 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
25654 debug_loops, debug_loop, debug_loop_num): Likewise.
25655 * passes.c (debug_pass): Likewise.
25656 (dump_properties): Likewise; add cfglayout property.
25657 (debug_properties): Likewise.
25658 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
25659 * varpool.c (debug_varpool): Likewise.
25660 * regcprop.c (debug_value_data): Likewise.
25661 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
25662 debug_immediate_uses_for): Likewise.
25663
25664 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
25665
25666 PR bootstrap/44315
25667 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
25668 Filter out insn-flags.h.
25669
25670 2010-05-29 Jan Hubicka <jh@suse.cz>
25671
25672 * cgraph.h (struct varpool_node_set_def,
25673 struct cgraph_node_set_def): Remove unused AUX pointer.
25674 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
25675 VEC_empty macro.
25676
25677 2010-05-29 Jan Hubicka <jh@suse.cz>
25678
25679 PR middle-end/44324
25680 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
25681
25682 2010-05-29 Richard Guenther <rguenther@suse.de>
25683
25684 * lto-streamer.c (cached_bp): New global variable.
25685 (bitpack_create): Return the cached bitpack, if available.
25686 (bitpack_delete): Clear and cache the bitpack, if appropriate.
25687 (bp_pack_value): Remove redundant asserts.
25688
25689 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
25690
25691 PR middle-end/44306
25692 * tree-if-conv.c (is_true_predicate): New.
25693 (is_predicated): Use is_true_predicate.
25694 (add_to_predicate_list): Same. Do not use unshare_expr.
25695 (add_to_dst_predicate_list): Same.
25696
25697 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
25698
25699 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
25700 field on edges.
25701 (predicate_bbs): Same.
25702 (clean_predicate_lists): Same.
25703 (find_phi_replacement_condition): Do not AND the predicate from
25704 edge->aux.
25705
25706 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
25707
25708 PR bootstrap/44315
25709 * Makefile.in (build/gencondmd.o): Add a missing `\'.
25710
25711 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
25712
25713 PR target/44261
25714 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
25715 (negdf2): Adjust expander pattern and use negdf2_slow.
25716 (negsf2): Likewise.
25717
25718 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
25719
25720 * basic-block.h (struct control_flow_graph): Move last_label_uid field
25721 up.
25722 * df.h (struct df_base_ref): Move regno field up.
25723 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
25724 * expr.h (struct separate_ops): Move location field up.
25725 * optabs.h (struct optab_d): Move libcall_basename field down.
25726 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
25727 * config/i386/i386.h (struct machine_function): Convert call_abi field
25728 into a bitfield. Move cfa field to the end of the structure.
25729
25730 2010-05-29 Jan Hubicka <jh@suse.cz>
25731
25732 * varpool.c (varpool_get_node): Fix lookup.
25733
25734 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25735
25736 * config/spu/spu-protos.h: Do not include rtl.h. Protect
25737 RTL specific prototypes with #ifdef RTX_CODE.
25738 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
25739 * config/spu/t-spu-elf: Fix dependencies.
25740
25741 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
25742
25743 2010-05-29 Mike Stump <mikestump@comcast.net>
25744
25745 PR bootstrap/44315
25746 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
25747 TM_H when building to avoid dependency loops.
25748
25749 2010-05-29 Jan Hubicka <jh@suse.cz>
25750
25751 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
25752 refs and body; not the whole node for masters of materialized clones.
25753
25754 2010-05-29 Mike Stump <mikestump@comcast.net>
25755
25756 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
25757
25758 2010-05-29 Jan Hubicka <jh@suse.cz>
25759
25760 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
25761 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
25762 use of clone_function_name.
25763 * cgraph.h (cgraph_create_virtual_clone,
25764 cgraph_function_versioning): update prototypes.
25765 (clone_function_name): Declare.
25766 * ipa-cp.c (ipcp_insert_stage): Update call of
25767 cgraph_create_virtual_clone.
25768 * omp-low.c (create_omp_child_function_name): Use
25769 cgraph_create_virtual_clone.
25770 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
25771 (cgraph_function_versioning): Take SUFFIX argument; produce new name
25772 and make decl local.
25773
25774 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25775
25776 * vec.h: Include statistics.h
25777 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
25778 with VEC_H.
25779
25780 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25781
25782 * c-lex.c: Do not include c-tree.h.
25783 * c-pretty-print.c: Likewise.
25784 * c-opts.c: Likewise.
25785 * c-gimplify.c: Likewise.
25786 * c-common.c: Likewise.
25787 * c-dump.c: Likewise. Include c-common.h.
25788
25789 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25790
25791 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
25792 before including diagnostic-core.h.
25793 (c_cpp_error): New prototype moved from c-tree.h.
25794 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
25795 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
25796 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
25797 (c_cpp_error): Prototype moved to c-common.h.
25798 * Makefile.in: Update dependency for C_COMMON_H.
25799
25800 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
25801
25802 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
25803 * c-common.c (c_register_addr_space): Remove here.
25804 * c-decl.c (c_register_addr_space): Re-add here.
25805
25806 2010-05-28 Mike Stump <mikestump@comcast.net>
25807
25808 * config/darwin-c.c: Remove c-tree.h include.
25809
25810 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25811
25812 * gcc.c: Include diagnostic.h.
25813 (error_count): Remove. All users changed to use errorcount.
25814 (programname): Remove. All users changed to use progname.
25815 (fancy_abort, internal_error, fatal_error, error, warning, inform,
25816 fnotice): Remove.
25817 (execute): Don't include "Internal error" and bug reporting
25818 information in argument of internal_error call.
25819 (process_command): Don't increment error_count after calling
25820 perror_with_name.
25821 (input_filename): Rename to gcc_input_filename. All users
25822 changed.
25823 (main): Call diagnostic_initialize. Register delete_temp_files
25824 with atexit. Use seen_error to test for errors.
25825 * gcc.h: Include diagnostic-core.h.
25826 (fatal_error, error, warning): Remove.
25827 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
25828 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
25829 (gcc.o): Update dependencies.
25830
25831 2010-05-28 Jeff Law <law@redhat.com>
25832
25833 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
25834 functions.
25835 * ira.h (ira_bad_reload_regno): Declare
25836 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
25837
25838 * ira-color.c (update_curr_costs): Free updated hard reg costs.
25839 (ira_reassign_conflict_allocnos): Remove bogus asserts.
25840 (allocno_reload_assign): Likewise.
25841
25842 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
25843
25844 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
25845 build1_stat.
25846
25847 2010-05-28 Richard Guenther <rguenther@suse.de>
25848
25849 PR lto/44312
25850 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
25851 Stream fixed-point constants mode.
25852 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
25853 and TYPE_PRECISION.
25854 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
25855 Stream fixed-point constants mode.
25856 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
25857 and TYPE_PRECISION.
25858
25859 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25860
25861 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
25862 only place it was called from.
25863 (number_of_latch_executions): Do not return chrec_dont_know when the
25864 may_be_zero is a runtime condition: instead, return a COND_EXPR
25865 including the may_be_zero condition.
25866 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
25867 of nb_iterations.
25868 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
25869 COND_EXPRs.
25870
25871 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25872
25873 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
25874 generate COND_EXPRs for degenerate_phi_result.
25875
25876 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
25877
25878 PR middle-end/44293
25879 * tree-if-conv.c (if_convertible_loop_p): Check the
25880 if-convertibility of phi nodes in non predicated BBs.
25881
25882 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25883
25884 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
25885
25886 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25887
25888 PR driver/15303
25889 * gcc.c (inform, warning, inform): New functions.
25890 (fatal_ice): Rename to internal_error; change cmsgid parameter to
25891 gmsgid. All callers changed.
25892 (notice): Rename to fnotice; add parameter fp. All callers changed.
25893 (fatal_error): Rename to fatal_signal. All users changed.
25894 (fatal): Rename to fatal_error; change cmsgid parameter to
25895 gmsgid. All callers changed.
25896 (process_command): Use warning instead of error for warnings.
25897 (end_going_arg): Don't use _() around argument of error.
25898 (do_spec_1): Use inform for message from %n specs. Use warning
25899 instead of error for warnings.
25900 (main): Use inform for comparison messages. Use warning for
25901 message about unused linker input.
25902 (error): Increment error_count. Print "error: ".
25903 * gcc.h (fatal): Change to fatal_error.
25904 (warning): Declare.
25905 * config/darwin-driver.c (darwin_default_min_version): Use warning
25906 instead of fprintf for warnings.
25907 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
25908
25909 2010-05-28 Julian Brown <julian@codesourcery.com>
25910
25911 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
25912 (*thumb2_addsi3_compare0_scratch): New.
25913 * config/arm/constraints.md (Pv): New.
25914 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
25915 for ARM mode only.
25916 (*addsi3_compare0_scratch): Likewise.
25917
25918 2010-05-28 Jan Hubicka <jh@suse.cz>
25919
25920 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
25921 check.
25922 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
25923 only on local statics.
25924
25925 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
25926
25927 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
25928
25929 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
25930
25931 PR bootstrap/44314
25932 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
25933 (OPTION_GLIBC): Define.
25934
25935 2010-05-28 Jakub Jelinek <jakub@redhat.com>
25936
25937 PR debug/41048
25938 * dwarf2out.c (double_int_type_size_in_bits): New function.
25939 (round_up_to_align): Change first argument and return value to
25940 double_int.
25941 (field_byte_offset): Work internally on double_ints.
25942
25943 PR target/43636
25944 * builtins.c (expand_movstr): Use a temporary pseudo instead
25945 of target even when target is not NULL and not const0_rtx, but
25946 fails movstr predicate.
25947 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
25948
25949 2010-05-28 Joseph Myers <joseph@codesourcery.com>
25950
25951 * final.c (rest_of_clean_state): Use %m in errors instead of
25952 strerror (errno).
25953 * gengtype.c (read_input_list, close_output_files): Use xstrerror
25954 instead of strerror.
25955 * toplev.c (process_options): Use %m in errors instead of strerror
25956 (errno).
25957 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
25958 (errno).
25959
25960 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
25961
25962 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
25963 (ix86_canonical_va_list_type): Make static. Add declaration.
25964 (ix86_enum_va_list): Make static. Reindent.
25965 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
25966 (ix86_canonical_va_list_type): Ditto.
25967 (ix86_enum_va_list): Ditto.
25968
25969 2010-05-28 Richard Guenther <rguenther@suse.de>
25970
25971 * lto-wrapper.c (run_gcc): With -save-temps generate a
25972 user-visible ltrans filename. Fixup ltrans unit numbering.
25973
25974 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
25975
25976 * c-common.c (c_common_nodes_and_builtins): Replace use
25977 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
25978 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
25979 to ix86_enum_va_list.
25980 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
25981 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
25982 (TARGET_ENUM_VA_LIST_P): Add hook description.
25983 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
25984 * target.h (gcc_target): Add enum_va_list hook.
25985
25986 PR bootstrap/44299
25987 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
25988 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
25989 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
25990
25991 2010-05-28 Alan Modra <amodra@gmail.com>
25992
25993 PR target/44266
25994 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
25995 emit_library_call machinery to set up __tls_get_addr calls.
25996
25997 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25998
25999 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
26000
26001 2010-05-28 Dodji Seketeli <dodji@redhat.com>
26002
26003 Revert fix for PR c++/44188
26004 * c-common.c (is_typedef_decl): Revert the moving of this
26005 definition ...
26006 * tree.c (is_typedef_decl): ... here.
26007 (typdef_variant_p): Revert the moving of this definition
26008 here from cp/tree.c.
26009 * c-common.h (is_typedef_decl): Revert the moving of this
26010 declaration ...
26011 * tree.h (is_typedef_decl): ... here.
26012 (typedef_variant_p): Revert the moving of this declaration here
26013 from cp/cp-tree.h
26014 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
26015 (gen_tagged_type_die): Revert the splitting out of ...
26016 (gen_type_die_with_usage): ... this function. Revert the anonymous
26017 tagged type handling.
26018 (gen_typedef_die): Revert emitting DW_TAG_typedef for
26019 typedefs naming anonymous tagged types.
26020
26021 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
26022
26023 * config/rs6000/rs6000-modes.def (PSImode): Delete.
26024
26025 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
26026
26027 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
26028 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
26029 throughout.
26030 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
26031 "xer" to "ca".
26032 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
26033 XER_REGS to CA_REGS throughout.
26034 * config/rs6000/rs6000.h: Same.
26035 (ADDITIONAL_REGISTER_NAMES): Add "xer".
26036 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
26037 that mode_iterator "P" is the size for arithmetic carries as well.
26038 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
26039
26040 2010-05-28 Jakub Jelinek <jakub@redhat.com>
26041
26042 PR bootstrap/44255
26043 * combine.c (struct rtx_subst_pair): Define unconditionally.
26044 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
26045 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
26046 Call make_compound_operation on pair->to.
26047 (propagate_for_debug): Don't call make_compound_operation here.
26048 Always use simplify_replace_fn_rtx.
26049
26050 2010-05-27 Sterling Augustine <sterling@tensilica.com>
26051
26052 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
26053 * config/xtensa/xtensa.c (override_options): Check
26054 TARGET_FORCE_NO_PIC and set flag_pic.
26055 * config/xtensa/xtensa.opt: Document -mforce-no-pic
26056
26057 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
26058
26059 PR bootstrap/44299
26060 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
26061 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
26062
26063 2010-05-27 Joseph Myers <joseph@codesourcery.com>
26064
26065 * diagnostic-core.h: New. Contents moved from diagnostic.h and
26066 toplev.h.
26067 * diagnostic.c: Don't include toplev.h.
26068 (progname): Define. Moved from toplev.c.
26069 (seen_error): New function.
26070 * diagnostic.h: Include diagnostic-core.h.
26071 (diagnostic_t, emit_diagnostic): Don't declare here.
26072 * toplev.c (progname): Move to toplev.c.
26073 (emit_debug_global_declarations, compile_file, finalize,
26074 do_compile, toplev_main): Use seen_error.
26075 * toplev.h: Include diagnostic-core.h.
26076 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
26077 internal_error, warning, warning_at, error, error_n, error_at,
26078 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
26079 verbatim, fnotice, progname): Move to diagnostic-core.h.
26080 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
26081 (expand_builtin_expect): Use seen_error.
26082 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
26083 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
26084 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
26085 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
26086 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
26087 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
26088 errorcount for errors.
26089 * c-opts.c (c_common_finish): Use seen_error.
26090 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
26091 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
26092 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
26093 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
26094 (get_coverage_counts): Use seen_error.
26095 * dwarf2out.c (dwarf2out_finish): Use seen_error.
26096 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
26097 gimplify_body): Use seen_error.
26098 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
26099 * ipa-pure-const.c (gate_pure_const): Use seen_error.
26100 * ipa-reference.c (gate_reference): Use seen_error.
26101 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
26102 * lambda-code.c: Include diagnostic-core.h instead of
26103 diagnostic.h.
26104 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
26105 * lto-compress.c: Include diagnostic-core.h instead of
26106 diagnostic.h.
26107 * lto-section-in.c: Include diagnostic-core.h instead of
26108 diagnostic.h.
26109 * lto-streamer-out.c: Include diagnostic-core.h instead of
26110 diagnostic.h.
26111 * lto-streamer.c: Include diagnostic-core.h instead of
26112 diagnostic.h.
26113 (gate_lto_out): Use seen_error.
26114 * matrix-reorg.c: Include diagnostic-core.h instead of
26115 diagnostic.h.
26116 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
26117 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
26118 (gate_expand_omp, lower_omp_1): Use seen_error.
26119 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
26120 (rest_of_decl_compilation, rest_of_type_compilation,
26121 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
26122 * tree-cfg.c (label_to_block_fn): Use seen_error.
26123 * tree-inline.c (optimize_inline_calls): Use seen_error.
26124 * tree-mudflap.c (mudflap_finish_file): Use
26125 seen_error.
26126 * tree-optimize.c (gate_all_optimizations,
26127 gate_all_early_local_passes, gate_all_early_optimizations): Use
26128 seen_error.
26129 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
26130 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
26131 (varpool_remove_unreferenced_decls,
26132 varpool_assemble_pending_decls): Use seen_error.
26133 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
26134 (TOPLEV_H, DIAGNOSTIC_H): Update.
26135 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
26136 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
26137 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
26138 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
26139 coverage.o, lambda-code.o): Update dependencies.
26140
26141 2010-05-25 Dodji Seketeli <dodji@redhat.com>
26142
26143 PR c++/44188
26144 * c-common.c (is_typedef_decl): Move this definition ...
26145 * tree.c (is_typedef_decl): ... here.
26146 (typdef_variant_p): Move definition here from cp/tree.c.
26147 * c-common.h (is_typedef_decl): Move this declaration ...
26148 * tree.h (is_typedef_decl): ... here.
26149 (typedef_variant_p): Move declaration here from cp/cp-tree.h
26150 * dwarf2out.c (is_naming_typedef_decl): New function.
26151 (gen_tagged_type_die): Split out of ...
26152 (gen_type_die_with_usage): ... this function. When an anonymous
26153 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
26154 is emitted for the typedef.
26155 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
26156 anonymous tagged types.
26157
26158 2010-05-27 Jason Merrill <jason@redhat.com>
26159
26160 * print-tree.c (debug_vec_tree): New fn.
26161 (print_vec_tree): New fn.
26162 * tree.h: Declare them.
26163 * gdbinit.in (pvt): New command.
26164
26165 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
26166
26167 * gdbinit.in (pdd): New command.
26168
26169 2010-05-27 Jan Hubicka <jh@suse.cz>
26170
26171 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
26172 (update_caller_keys): Return early if there are no callers;
26173 only update fibheap when decresing the key.
26174 (update_callee_keys): Avoid recursion.
26175 (decide_inlining_of_small_functions): When badness does not match;
26176 re-insert into fibheap.
26177
26178 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
26179
26180 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
26181 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
26182 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
26183 (ALL_HOST_OBJS): Now a union of the above two.
26184 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
26185 all files in ALL_HOST_FRONTEND_OBJS.
26186 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
26187
26188 * c-common.c: Pretend to be a backend file by undefining
26189 IN_GCC_FRONTEND (still need rtl.h here).
26190
26191 2010-05-27 Jan Hubicka <jh@suse.cz>
26192
26193 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
26194 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
26195
26196 2010-05-27 Jan Hubicka <jh@suse.cz>
26197
26198 * sched-ebb.c: Rename struct deps to struct deps_desc.
26199 * ddg.c: Likewise.
26200 * sel-sched-ir.c: Likewise.
26201 * sched-deps.c: Likewise.
26202 * sched-int.h: Likewise.
26203 * sched-rgn.c: Likewise.
26204
26205 2010-05-27 Jon Beniston <jon@beniston.com>
26206
26207 PR 43726
26208 * config/lm32/lm32.h: Remove definition of
26209 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
26210
26211 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
26212
26213 PR lto/44230
26214 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
26215
26216 2010-05-27 Richard Guenther <rguenther@suse.de>
26217
26218 PR tree-optimization/44284
26219 * tree-vect-stmts.c (vectorizable_assignment): Handle
26220 sign-changing conversions as simple copy.
26221
26222 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
26223
26224 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
26225 Bionic C library.
26226 (__gthread_active_p): Check for pthread_create if compiling against
26227 Bionic C library.
26228
26229 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
26230
26231 Support compilation for Android platform. Reimplement -mandroid.
26232
26233 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
26234 (*android*): Set ANDROID_DEFAULT.
26235 (arm*-*-linux*): Include linux-android.h.
26236 (arm*-*-eabi*): Don't include previous -mandroid implementation.
26237 * config/arm/eabi.h: Remove, move Android-specific parts ...
26238 * config/linux-android.h: ... here. New file.
26239 * config/arm/eabi.opt: Rename to ...
26240 * config/linux-android.opt: ... this.
26241 (mandroid): Allow -mno-android option. Initialize based on
26242 ANDROID_DEFAULT.
26243 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
26244 Move logic to corresponding LINUX_TARGET_* macros.
26245 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
26246 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
26247 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
26248 Android definitions.
26249 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
26250 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
26251 Document.
26252
26253 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
26254
26255 Add support for Bionic C library
26256
26257 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
26258 macro.
26259 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
26260 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
26261
26262 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
26263 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
26264 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
26265 to support multiple C libraries. Handle Bionic.
26266 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
26267 (BIONIC_DYNAMIC_LINKER64): Define.
26268 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
26269 Update.
26270 (TARGET_HAS_SINCOS): Enable for Bionic.
26271
26272 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
26273 the last option specified on command line take effect.
26274 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
26275 (mbionic): New.
26276 (mglibc, muclibc): Update.
26277
26278 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
26279 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
26280 DEFAULT_LIBC.
26281
26282 * doc/invoke.texi (-mglibc, -muclibc): Update.
26283 (-mbionic): Document.
26284
26285 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
26286
26287 * c-common.h (c_register_addr_space): Add prototype.
26288 (ADDR_SPACE_KEYWORD): Remove.
26289 * c-common.c (c_register_addr_space): New function.
26290 (c_addr_space_name): Reimplement.
26291 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
26292
26293 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
26294 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
26295
26296 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
26297 Remove TARGET_ADDR_SPACE_KEYWORDS.
26298
26299 2010-05-27 Joseph Myers <joseph@codesourcery.com>
26300
26301 * input.c: New file.
26302 * input.h (main_input_filename): Move declaration to toplev.h.
26303 * toplev.c (input_location, line_table): Move to input.c
26304 * toplev.h (main_input_filename): Move declaration from input.h.
26305 * tree.c (expand_location): Move to input.c.
26306 * Makefile.in (OBJS-common): Add input.o.
26307 (input.o): Add dependencies.
26308
26309 2010-05-27 Richard Guenther <rguenther@suse.de>
26310
26311 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
26312 for non-existant files.
26313 (fork_execute): Mark args_name file as deleted.
26314
26315 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
26316
26317 PR bootstrp/44287
26318 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
26319 (narrow_signed_type): Likewise.
26320
26321 2010-05-26 Jan Hubicka <jh@suse.cz>
26322
26323 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
26324 edge only when checking is enabled; check using former_clone_of;
26325 check inline clones too.
26326 (cgraph_materialize_clone): Record former_clone_of pointer.
26327 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
26328 combining redirections; dump args_to_skip bitmap
26329 (cgraph_materialize_all_clones): Do no redirection here.
26330 * ipa-inline.c (inline_transform): Do redirection here.
26331 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
26332 cheking only).
26333
26334 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
26335
26336 * config/avr/avr-c.c: Do not include regs.h.
26337 Include cpplib.h for cpp_define and tree.h for c-common.h.
26338 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
26339 * config/avr/t-avr: Fix dependencies for avr-c.o.
26340
26341 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
26342
26343 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
26344 string instead of SYMBOL_REF rtx.
26345 * rtl.h (set_stack_check_libfunc): Move prototype from here...
26346 * libfuncs.h: ...to here. Adjust for explow.c change.
26347
26348 2010-05-26 Joseph Myers <joseph@codesourcery.com>
26349
26350 * pretty-print.c: Don't include ggc.h.
26351 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
26352 (identifier_to_locale): Use them for allocation.
26353 * pretty-print.h (identifier_to_locale_alloc,
26354 identifier_to_locale_free): Declare.
26355 * toplev.c (alloc_for_identifier_to_locale): New.
26356 (general_init): Set identifier_to_locale_alloc and
26357 identifier_to_locale_free.
26358 * Makefile.in (pretty-print.o): Update dependencies.
26359
26360 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
26361
26362 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
26363 pointer types if they have different alignment or mode.
26364
26365 2010-05-26 Anatoly Sokolov <aesok@post.ru>
26366
26367 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
26368 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
26369 * config/sparc/sparc-protos.h (function_value): Remove declaration.
26370 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
26371 sparc_function_value_regno_p): New functions.
26372 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
26373 TARGET_FUNCTION_VALUE_REGNO_P): Define.
26374 (function_value): Rename to...
26375 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
26376 argument to 'outgoing'.
26377 (function_arg_record_value, function_arg_union_value,
26378 function_arg_vector_value): Update comment.
26379
26380 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
26381
26382 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
26383 (fde_needed_for_eh_p): New predicate.
26384 (output_call_frame_info): Use it throughout to decide whether FDEs
26385 are needed for EH purpose.
26386 (dwarf2out_begin_prologue): Reorder assignments.
26387
26388 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
26389
26390 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
26391 special case loop->header.
26392 (is_predicated): New.
26393 (if_convertible_loop_p): Call it.
26394
26395 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
26396
26397 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
26398 iterator in parameter. Do not generate code during the analysis.
26399 (tree_if_convert_cond_stmt): Removed.
26400 (tree_if_convert_stmt): Removed.
26401 (predicate_bbs): New.
26402 (if_convertible_loop_p): Call predicate_bbs.
26403 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
26404 now contains all the analysis part.
26405
26406 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
26407
26408 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
26409 statements in the analysis part.
26410 (tree_if_convert_stmt): Update comment.
26411 (remove_conditions_and_labels): New.
26412 (combine_blocks): Call remove_conditions_and_labels.
26413 (tree_if_conversion): Update comment.
26414
26415 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
26416
26417 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
26418 than 2 predecessors or more than 2 successors.
26419
26420 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
26421
26422 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
26423 of loops in which the data dependence analysis fails.
26424
26425 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
26426
26427 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
26428 CDI_POST_DOMINATORS.
26429 (tree_if_conversion): Same.
26430
26431 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
26432
26433 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
26434
26435 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
26436
26437 * tree-if-conv.c: Update copyright years. Fix comments.
26438 Fix indentation.
26439
26440 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
26441
26442 * builtin-types.def (BT_INT128): New primitive type.
26443 (BT_UINT128): Likewise.
26444 * c-common.c (c_common_r): Add __int128 keyword.
26445 (c_common_type_for_size): Handle __int128.
26446 (c_common_type_for_mode): Likewise.
26447 (c_common_signed_or_unsigned_type): Likewise.
26448 (c_common_nodes_and_builtins): Add builtin type
26449 if target supports 128-bit integer scalar.
26450 * c-common.h (enum rid): Add RID_INT128.
26451 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
26452 if target supports 128-bit integer scalar.
26453 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
26454 (finish_declspecs): Likewise.
26455 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
26456 (c_token_starts_declspecs): Likewise.
26457 (c_parser_declspecs): Likewise.
26458 (c_parser_attributes): Likewise.
26459 (c_parser_objc_selector): Likewise.
26460 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
26461 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
26462 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
26463 * tree.c (make_or_reuse_type): Likewise.
26464 (make_unsigned_type): Likewise.
26465 (build_common_tree_nodes_2): Likewise.
26466 * tree.h (enum integer_type_kind): Add itk_int128 and
26467 itk_unsigned_int128.
26468 (int128_integer_type_node): New define.
26469 (int128_unsigned_type_node): New define.
26470 * doc/extend.texi: Add documentation about __int128 type.
26471
26472 2010-05-26 Richard Guenther <rguenther@suse.de>
26473
26474 * tree-ssa-sccvn.c (copy_nary): Adjust.
26475 (copy_phis): Rename to ...
26476 (copy_phi): ... this. Adjust.
26477 (copy_references): Rename to ...
26478 (copy_reference): ... this. Adjust.
26479 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
26480 result into the valid table.
26481
26482 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
26483
26484 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
26485 insn-config.h, insn-codes.h, recog.h, and optabs.h.
26486
26487 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26488
26489 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
26490
26491 2010-05-26 Richard Guenther <rguenther@suse.de>
26492
26493 * opts.c (common_handle_option): Handle OPT_Ofast.
26494
26495 2010-05-26 Joseph Myers <joseph@codesourcery.com>
26496
26497 * diagnostic.c: Don't include opts.h.
26498 (permissive_error_option): Define.
26499 (diagnostic_initialize): Take n_opts parameter. Allocate memory
26500 for classify_diagnostic. Don't use memset for
26501 classify_diagnostic. Initialize new and recently added fields.
26502 (diagnostic_classify_diagnostic): Use context->n_opts instead of
26503 N_OPTS.
26504 (diagnostic_report_diagnostic): Pass context parameter to
26505 diagnostic_report_warnings_p. Use option_enabled and option_name
26506 hooks from context.
26507 (emit_diagnostic): Use permissive_error_option.
26508 (permerror): Likewise.
26509 * diagnostic.h: Don't include options.h.
26510 (struct diagnostic_context): Add n_opts, opt_permissive,
26511 inhibit_warnings, warn_system_headers, option_enabled and
26512 option_name fields. Change classify_diagnostic to a pointer.
26513 * opts-diagnostic.h: New file.
26514 * opts.c: Include opts-diagnostic.h.
26515 (common_handle_option): Set global_dc fields for -Wfatal-errors,
26516 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
26517 (option_name): New function.
26518 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
26519 (c_common_handle_option): Set global_dc->permissive for
26520 -fpermissive.
26521 * c-common.c (c_cpp_error): Save and restore
26522 global_dc->warn_system_headers, not variable warn_system_headers.
26523 * toplev.c: Include opts-diagnostic.h.
26524 (general_init): Update call to diagnostic_initialize. Set
26525 global_dc->show_column, global_dc->option_enabled and
26526 global_dc->option_name.
26527 (process_options): Don't set global_dc fields here.
26528 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
26529 (diagnostic.o, opts.o, toplev.o): Update dependencies.
26530
26531 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
26532
26533 * config/picochip/picochip.md (movsi): Split a movsi from a
26534 const after reload.
26535
26536 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26537
26538 * ggc-zone.c: Update copyright year.
26539 (poison_region): Mark memory for Valgrind as undefined before
26540 memset () call and inaccessible afterwards.
26541 (ggc_pch_total_size): Change type of i to int.
26542
26543 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26544
26545 * ggc-common.c (ggc_free_overhead): Allow empty slot.
26546
26547 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26548
26549 * ggc-common.c: Update copyright year.
26550 (ggc_rlimit_bound): Remove prototype. Compile only if
26551 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
26552 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
26553 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
26554 (ggc_min_heapsize_heuristic): Likewise.
26555
26556 2010-05-26 Richard Guenther <rguenther@suse.de>
26557
26558 PR rtl-optimization/44164
26559 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
26560 no-common access-path disambiguation.
26561 (indirect_ref_may_alias_decl_p): Adjust.
26562 (indirect_refs_may_alias_p): Likewise.
26563 (refs_may_alias_p_1): Likewise.
26564
26565 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
26566
26567 * c-typeck.c: Do not include expr.h.
26568
26569 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
26570
26571 * rtl.h (decl_default_tls_model): Move prototype from here...
26572 * output.h: ...to here.
26573 * c-decl.c: Do not include rtl.h.
26574 * c-pragma.c: Likewise.
26575 * c-parser.c: Likewise.
26576 * c-gimplify.c: Likewise. And also not hard-reg-set.
26577 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
26578 FIXME note for it. Add a FIXME note for expr.h.
26579 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
26580 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
26581 defined.
26582
26583 2010-05-26 Jakub Jelinek <jakub@redhat.com>
26584
26585 PR target/44199
26586 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
26587 or total_size is larger than red zone size for non-V4 ABI, emit a
26588 stack_tie resp. frame_tie insn before stack pointer restore.
26589 * config/rs6000/rs6000.md (frame_tie): New insn.
26590
26591 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
26592
26593 * function.h (struct function): Add can_throw_non_call_exceptions bit.
26594 * lto-streamer-in.c (input_function): Stream it in.
26595 * lto-streamer-out.c (output_function): Stream it out.
26596 * function.c (allocate_struct_function): Set it.
26597 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
26598 for flag_non_call_exceptions.
26599 * cfgbuild.c (control_flow_insn_p): Likewise.
26600 (make_edges): Likewise.
26601 * cfgexpand.c (expand_stack_alignment): Likewise.
26602 * combine.c (distribute_notes): Likewise.
26603 * cse.c (cse_extended_basic_block): Likewise.
26604 * except.c (insn_could_throw_p): Likewise.
26605 * gcse.c (simple_mem): Likewise.
26606 * ipa-pure-const.c (check_call): Likewise.
26607 (check_stmt ): Likewise.
26608 * lower-subreg.c (lower-subreg.c): Likewise.
26609 * optabs.c (emit_libcall_block): Likewise.
26610 (prepare_cmp_insn): Likewise.
26611 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
26612 * postreload.c (rest_of_handle_postreload): Likewise.
26613 * reload1.c (reload_as_needed): Likewise.
26614 (emit_input_reload_insns): Likewise.
26615 (emit_output_reload_insns): Likewise.
26616 (fixup_abnormal_edges): Likewise.
26617 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
26618 * store-motion.c (find_moveable_store): Likewise.
26619 * tree-eh.c (stmt_could_throw_p): Likewise.
26620 (tree_could_throw_p): Likewise.
26621 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
26622 * config/arm/arm.c (arm_expand_prologue): Likewise.
26623 (thumb1_expand_prologue): Likewise.
26624 * config/rx/rx.md (cbranchsf4): Likewise.
26625 (cmpsf): Likewise.
26626 * config/s390/s390.c (s390_emit_prologue): Likewise.
26627 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
26628 (inline_forbidden_into_p): New predicate.
26629 (expand_call_inline): Use it to forbid inlining.
26630 (tree_can_inline_p): Likewise.
26631
26632 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
26633
26634 * config/i386/i386-c.c: Do not include rtl.h.
26635 * config/i386/t-i386: Update dependencies.
26636
26637 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
26638
26639 * attribs.c: Do not include rtl.h.
26640 * Makefile.in: Update dependencies.
26641
26642 2010-05-25 Anatoly Sokolov <aesok@post.ru>
26643
26644 * double-int.h (double_int_and): New.
26645 * combine.c (try_combine): Clean up, use double_int_* and
26646 immed_double_int_const functions.
26647
26648 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26649
26650 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
26651 stderr to /dev/null instead of grep -q.
26652 * configure: Regenerate.
26653
26654 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
26655
26656 * Makefile.in (EXCEPT_H): Fix typo.
26657
26658 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
26659
26660 * ira-build.c (update_conflict_hard_reg_costs): New.
26661 (ira_build): Call update_conflict_hard_reg_costs.
26662
26663 2010-05-25 Jakub Jelinek <jakub@redhat.com>
26664
26665 PR debug/41371
26666 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
26667 ENABLE_CHECKING.
26668 (intersect_loc_chains): Walk the s2var's loc_chain together
26669 with s1node chain as long as the locations are equal, don't
26670 call find_loc_in_1pdv in that case.
26671
26672 PR debug/42801
26673 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
26674 (copy_bind_expr): ... instead of here.
26675 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
26676 if the block hasn't been remapped.
26677 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
26678 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
26679
26680 2010-05-25 Richard Guenther <rguenther@suse.de>
26681
26682 PR middle-end/44069
26683 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
26684 out-of-bounds array accesses.
26685
26686 2010-05-25 Richard Guenther <rguenther@suse.de>
26687
26688 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
26689 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
26690 (run_gcc): Re-organize to make cleanup easier.
26691
26692 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
26693
26694 * config/s390/s390.c (optimization_options): Fix and move the
26695 flag_prefetch_loop_arrays override ...
26696 (override_options): ... here.
26697
26698 2010-05-25 Joseph Myers <joseph@codesourcery.com>
26699
26700 * diagnostic.c: Don't include plugin.h.
26701 (diagnostic_report_diagnostic): Don't handle plugins specially
26702 here. Pass context to internal_error callback.
26703 * diagnostic.h (struct diagnostic_context): Add context parameter
26704 to internal_error callback.
26705 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
26706 * plugin.h (struct diagnostic_context): Declare.
26707 (warn_if_plugins, plugins_internal_error_function): Declare.
26708 * toplev.c (general_init): Set global_dc->internal_error.
26709 * Makefile.in (diagnostic.o): Update dependencies.
26710
26711 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
26712
26713 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
26714 * config/rs6000/t-darwin64: New.
26715 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
26716 build crt2.
26717
26718 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
26719
26720 PR 44203
26721 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
26722 match the original (and intended) behaviour before r159557. This
26723 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
26724 in two ways.
26725
26726 2010-05-25 Richard Guenther <rguenther@suse.de>
26727
26728 * doc/invoke.texi: Document -Ofast.
26729 * target.h (struct gcc_target): Add handle_ofast.
26730 * target-def.h (TARGET_HANDLE_OFAST): Add.
26731 (TARGET_INITIALIZER): Adjust.
26732 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
26733 * common.opt (Ofast): Add.
26734
26735 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
26736
26737 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
26738 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
26739
26740 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
26741
26742 PR target/43610
26743 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
26744 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
26745 false_rtx. Use false_rtx to compute the correct *ptest for reversed
26746 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
26747
26748 2010-05-25 Jakub Jelinek <jakub@redhat.com>
26749
26750 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
26751 DW_OP_minus with negated offset instead of DW_OP_plus.
26752 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
26753
26754 2010-05-25 Wei Guozhi <carrot@google.com>
26755
26756 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
26757 tst instruction and a new alternative.
26758 * config/arm/constraints.md (Pu): New constraint.
26759
26760 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
26761
26762 * function.c (assign_stack_local_1): Initialize variable
26763 to avoid warning when bootstrapping at -O3.
26764
26765 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
26766
26767 * configure.ac (all_lang_makefiles): Remove everything related to it.
26768 * configure: Regenerate.
26769 * Makefile.in: Fix reference to ada Make-lang.in.
26770 Remove support for LANG_MAKEFILES.
26771
26772 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
26773 Sandra Loosemore <sandra@codesourcery.com>
26774
26775 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
26776 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
26777 description. Add arm_neon_fp16_ok.
26778 (Add Options): Add arm_neon and arm_neon_fp16.
26779
26780 2010-05-24 Joseph Myers <joseph@codesourcery.com>
26781
26782 * diagnostic.c: Don't include flags.h.
26783 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
26784 context parameters. Check flags in the context passed as a parameter.
26785 (diagnostic_build_prefix): Add context parameter. Check
26786 show_column flag in context.
26787 (diagnostic_action_after_output): Check fatal_errors flag in context.
26788 (diagnostic_report_current_module): Check show_column flag in context.
26789 (default_diagnostic_starter): Update call to
26790 diagnostic_build_prefix.
26791 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
26792 (emit_diagnostic): Pass context to permissive_error_kind.
26793 (permerror): Pass context to permissive_error_kind.
26794 * diagnostic.h (struct diagnostic_context): Add show_column,
26795 pedantic_errors, permissive and fatal_errors fields.
26796 (diagnostic_build_prefix): Update prototype.
26797 * langhooks.c
26798 * toplev.c (process_options): Set flags in global_dc from
26799 flag_show_column, flag_pedantic_errors, flag_permissive,
26800 flag_fatal_errors.
26801 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
26802 to diagnostic_build_prefix.
26803 * Makefile.in (diagnostic.o): Update dependencies.
26804
26805 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
26806
26807 * config/i386/ia32intrin.h (__crc32q): Define only if
26808 __SSE4_2__ is defined.
26809
26810 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
26811
26812 PR target/44132
26813 PR middle-end/43602
26814 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
26815 DECL_VISIBILITY_SPECIFIED.
26816 (emutls_decl): Set DECL_PRESERVE_P and copy
26817 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
26818 (emutls_finalize_control_var): New callback.
26819 (emutls_finish): Finalize emutls control variables.
26820 * toplev.c (compile_file): Move the call to emutls_finish ()
26821 before varpool_assemble_pending_decls ().
26822
26823 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
26824
26825 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
26826 added to the preprocessor condition.
26827
26828 2010-05-24 Paul Brook <paul@codesourcery.com>
26829
26830 * gengtype-lex.l: Add HARD_REG_SET.
26831 * expr.c (expand_expr_real_1): Record writes to hard registers.
26832 * function.c (rtl_data): Add asm_clobbers.
26833 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
26834 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
26835 Use crtl->asm_clobbers.
26836
26837 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26838
26839 * doc/makefile.texi (Makefile): Mention stages 'profile'
26840 and 'feedback' for profiledbootstrap.
26841
26842 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
26843
26844 PR target/44245
26845 * config/i386/i386.c (def_builtin): Properly check
26846 OPTION_MASK_ISA_64BIT.
26847
26848 2010-05-23 Joseph Myers <joseph@codesourcery.com>
26849
26850 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
26851 typedefs with different but compatible types. Allow duplicate
26852 typedefs with the same type except for pedantic non-C1X, but give
26853 warning for variably modified types.
26854 * c-typeck.c (tagged_types_tu_compatible_p,
26855 function_types_compatible_p, type_lists_compatible_p,
26856 comptypes_internal): Add parameter different_types_p; set
26857 *different_types_p for different but compatible types. All
26858 callers changed.
26859 (comptypes_check_different_types): New.
26860 * c-tree.h (comptypes_check_different_types): Declare.
26861
26862 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
26863
26864 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
26865 * jump.c: Include basic-block.h.
26866 * profile.c: Likewise.
26867 * tree-profile.c: Likewise.
26868 * coverage.c: Likewise.
26869 * basic-block.h (optimize_function_for_size_p): Move to function.h.
26870 (optimize_function_for_speed_p): Likewise.
26871 * function.h (optimize_function_for_size_p,
26872 optimize_function_for_speed_p): Moved here from basic-block.h.
26873 * Makefile.in: Update dependencies.
26874
26875 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
26876
26877 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
26878 before calling make; allow override through $MAKE.
26879 * doc/invoke.texi (Optimize Options): Document override.
26880
26881 2010-05-23 Anatoly Sokolov <aesok@post.ru>
26882
26883 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
26884 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26885 (rs6000_mode_dependent_address_ptr): Make static.
26886 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26887 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
26888 Remove.
26889
26890 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
26891
26892 PR target/43869
26893 * config/i386/i386.c: Make sure that the correct regparm is passed.
26894
26895 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
26896
26897 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
26898 * sbitmap.c: ...to here to internalize sbitmap element access.
26899 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
26900 Explain why basic-block.h is included.
26901 * function.h: Include tm.h for CUMULATIVE_ARGS.
26902 * Makefile.in: Update dependencies.
26903
26904 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
26905
26906 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
26907 New core types.
26908 * sbitmap.h (struct sbitmap_def): Do not typedef here.
26909 * sbitmap.c: Include sbitmap.h.
26910 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
26911 hard-reg-set.h. Split everything related to regsets out from here...
26912 * regset.h: ...to here. New file.
26913 * df.h: Include regset.h and sbitmap.h.
26914 * tree-flow.h: Likewise.
26915 * cfgloop.h: Likewise.
26916 * except.h: Do not include sbitmap.h. Include hashtab.h.
26917 * cgraph.h: Include vec.h and function.h.
26918 * reload.h (struct insn_chain): Change types of live_throughout
26919 and dead_or_set from regset_head to bitmap_head.
26920 (compute_use_by_pseudos): Be defined also if regset.h is not included.
26921 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
26922 spilled_regs from regset_head to bitmap_head to avoid dependency
26923 in regset.h.
26924 * sel-sched-ir.h: Include regset.h.
26925 * reload.c: Include df.h before reload.h.
26926 * caller-save.c: Likewise.
26927 * reload1.c: Likewise.
26928 * ira.c: Likewise.
26929 (mark_elimination): Update type of r to bitmap, consistent with
26930 DF_LR_IN.
26931 * dominance.c: Include bitmap.h.
26932 * modulo-sched.c: Include df.h.
26933 * cfganal.c: Include bitmap.h and sbitmap.h.
26934 * cfgbuild.c: Include sbitmap.h.
26935 * lcm.c: Include sbitmap.h.
26936 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
26937 * domwalk.c: Include sbitmap.h, exclude ggc.h.
26938 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
26939 * cselib.c: Include bitmap.h.
26940 * tree-optimize.c: Include regset.h.
26941 * stmt.c: Include bitmap.h.
26942 * Makefile.in: Update dependencies.
26943
26944 2010-05-22 Jan Hubicka <jh@suse.cz>
26945
26946 * cgraph.h (struct varpool_node): Add same_comdat_group.
26947 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
26948 pointer.
26949 (output_varpool): Update call of lto_output_varpool_node.
26950 (input_varpool): Read same_comdat_group pointer.
26951 (input_varpool_1): Fixup same_comdat_group pointer.
26952 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
26953 group is needed, all are.
26954 * varpool.c (varpool_remove_node): Remove node from same comdat group
26955 linklist too.
26956 (varpool_analyze_pending_decls): Walk same comdat groups.
26957
26958 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
26959
26960 * rtl.h (union rtunion_def): Remove rt_bit member.
26961 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
26962 * print-rtl (print_rtx): Do not print the member.
26963 * gengtype.c (adjust_field_rtx_def): Do not handle it.
26964 * gengenrtl.c (type_from_format): Likewise.
26965 (accessor_from_format): Likewise.
26966
26967 2010-05-22 Joseph Myers <joseph@codesourcery.com>
26968
26969 * dbgcnt.c: Include toplev.h instead of errors.h.
26970 * ira-emit.c: Don't include errors.h.
26971 * ira.c: Include toplev.h instead of errors.h.
26972 * lto-compress.c: Include toplev.h instead of errors.h.
26973 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
26974 ira.o, dbgcnt.o): Update dependencies.
26975
26976 2010-05-22 Richard Guenther <rguenther@suse.de>
26977
26978 * gimple.c (gimple_types_compatible_p): Check type qualifications
26979 before merging pointer to complete and pointer to incomplete type.
26980 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
26981 we use our own resolution algorithm. The gold linker plugin
26982 doesn't do the job we want it to do here.
26983
26984 2010-05-22 Anatoly Sokolov <aesok@post.ru>
26985
26986 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
26987 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
26988 (sparc_mode_dependent_address_p): New function.
26989
26990 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
26991
26992 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
26993
26994 * timevar.c: Do not include any core headers.
26995 (timevar_print): De-i18n-ize.
26996 (print_time): Likewise.
26997 * timevar.h (timevar_push, timevar_pop): Make inline functions.
26998
26999 2010-05-21 Joseph Myers <joseph@codesourcery.com>
27000
27001 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
27002 langhooks-def.h.
27003 (diagnostic_initialize): Initialize x_data not last_function.
27004 (diagnostic_report_current_function): Move to tree-diagnostic.c.
27005 (default_diagnostic_starter): Call
27006 diagnostic_report_current_module not
27007 diagnostic_report_current_function.
27008 (diagnostic_report_diagnostic): Initialize x_data not
27009 abstract_origin.
27010 (verbatim): Likewise.
27011 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
27012 x_data.
27013 (struct diagnostic_context): Change last_function to x_data.
27014 (diagnostic_auxiliary_data): Replace with
27015 diagnostic_context_auxiliary_data and
27016 diagnostic_info_auxiliary_data.
27017 (diagnostic_last_function_changed, diagnostic_set_last_function,
27018 diagnostic_report_current_function): Move to tree-diagnostic.h.
27019 (print_declaration, dump_generic_node, print_generic_stmt,
27020 print_generic_stmt_indented, print_generic_expr,
27021 print_generic_decl, debug_c_tree, dump_omp_clauses,
27022 print_call_name, debug_generic_expr, debug_generic_stmt,
27023 debug_tree_chain, default_tree_printer): Move to
27024 tree-pretty-print.h.
27025 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
27026 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
27027 gimple-pretty-print.h.
27028 * pretty-print.c: Don't include tree.h
27029 (pp_base_format): Don't handle %K here.
27030 (pp_base_tree_identifier): Move to tree-pretty-print.c.
27031 * pretty-print.h (text_info): Change abstract_origin to x_data.
27032 (pp_tree_identifier, pp_unsupported_tree,
27033 pp_base_tree_identifier): Move to tree-pretty-print.h.
27034 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
27035 tree-pretty-print.h: New files.
27036 * tree-pretty-print.c: Include tree-pretty-print.h.
27037 (percent_K_format): New. Moved from pretty-print.c.
27038 (pp_base_tree_identifier): Move from pretty-print.c.
27039 * c-objc-common.c: Include tree-pretty-print.h.
27040 (c_tree_printer): Handle %K here.
27041 * langhooks.c: Include tree-diagnostic.h.
27042 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
27043 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
27044 (default_tree_printer): Handle %K using percent_K_format.
27045 (general_init): Use default_tree_diagnostic_starter.
27046 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
27047 (free_lang_data): Use default_tree_diagnostic_starter.
27048 * c-pretty-print.c: Include tree-pretty-print.h.
27049 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27050 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27051 * dwarf2out.c: Include tree-pretty-print.h.
27052 * except.c: Include tree-pretty-print.h.
27053 * gimple-pretty-print.c: Include tree-pretty-print.h and
27054 gimple-pretty-print.h.
27055 * gimplify.c: Include tree-pretty-print.h.
27056 * graphite-poly.c: Include tree-pretty-print.h and
27057 gimple-pretty-print.h.
27058 * ipa-cp.c: Include tree-pretty-print.h.
27059 * ipa-inline.c: Include gimple-pretty-print.h.
27060 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27061 * ipa-pure-const.c: Include gimple-pretty-print.h.
27062 * ipa-struct-reorg.c: Include tree-pretty-print.h and
27063 gimple-pretty-print.h.
27064 * ipa-type-escape.c: Include tree-pretty-print.h.
27065 * print-rtl.c: Include tree-pretty-print.h.
27066 * print-tree.c: Include gimple-pretty-print.h.
27067 * sese.c: Include tree-pretty-print.h.
27068 * tree-affine.c: Include tree-pretty-print.h.
27069 * tree-browser.c: Include tree-pretty-print.h.
27070 * tree-call-cdce.c: Include gimple-pretty-print.h.
27071 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
27072 * tree-chrec.c: Include tree-pretty-print.h.
27073 * tree-data-ref.c: Include tree-pretty-print.h and
27074 gimple-pretty-print.h.
27075 * tree-dfa.c: Include tree-pretty-print.h.
27076 * tree-if-conv.c: Include tree-pretty-print.h and
27077 gimple-pretty-print.h.
27078 * tree-inline.c: Include tree-pretty-print.h.
27079 * tree-into-ssa.c: Include tree-pretty-print.h and
27080 gimple-pretty-print.h.
27081 * tree-nrv.c: Include tree-pretty-print.h.
27082 * tree-object-size.c: Include tree-pretty-print.h and
27083 gimple-pretty-print.h.
27084 * tree-outof-ssa.c: Include tree-pretty-print.h and
27085 gimple-pretty-print.h.
27086 * tree-parloops.c: Include tree-pretty-print.h and
27087 gimple-pretty-print.h.
27088 * tree-predcom.c: Include tree-pretty-print.h and
27089 gimple-pretty-print.h.
27090 * tree-scalar-evolution.c: Include tree-pretty-print.h and
27091 gimple-pretty-print.h.
27092 * tree-sra.c: Include tree-pretty-print.h.
27093 * tree-ssa-address.c: Include tree-pretty-print.h.
27094 * tree-ssa-alias.c: Include tree-pretty-print.h.
27095 * tree-ssa-ccp.c: Include tree-pretty-print.h and
27096 gimple-pretty-print.h.
27097 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
27098 * tree-ssa-copy.c: Include tree-pretty-print.h and
27099 gimple-pretty-print.h.
27100 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
27101 * tree-ssa-dce.c: Include tree-pretty-print.h and
27102 gimple-pretty-print.h.
27103 * tree-ssa-dom.c: Include tree-pretty-print.h and
27104 gimple-pretty-print.h.
27105 * tree-ssa-dse.c: Include gimple-pretty-print.h.
27106 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
27107 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
27108 * tree-ssa-live.c: Include tree-pretty-print.h and
27109 gimple-pretty-print.h.
27110 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
27111 gimple-pretty-print.h.
27112 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
27113 gimple-pretty-print.h.
27114 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
27115 gimple-pretty-print.h.
27116 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
27117 gimple-pretty-print.h.
27118 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
27119 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
27120 * tree-ssa-operands.c: Include tree-pretty-print.h and
27121 gimple-pretty-print.h.
27122 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
27123 gimple-pretty-print.h.
27124 * tree-ssa-pre.c: Include tree-pretty-print.h and
27125 gimple-pretty-print.h.
27126 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
27127 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
27128 gimple-pretty-print.h.
27129 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
27130 gimple-pretty-print.h.
27131 * tree-ssa-sink.c: Include gimple-pretty-print.h.
27132 * tree-ssa-ter.c: Include tree-pretty-print.h and
27133 gimple-pretty-print.h.
27134 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
27135 * tree-ssa.c: Include tree-pretty-print.h and
27136 gimple-pretty-print.h.
27137 * tree-stdarg.c: Include gimple-pretty-print.h.
27138 * tree-switch-conversion.c: Include gimple-pretty-print.h.
27139 * tree-tailcall.c: Include tree-pretty-print.h and
27140 gimple-pretty-print.h.
27141 * tree-vect-data-refs.c: Include tree-pretty-print.h and
27142 gimple-pretty-print.h.
27143 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
27144 gimple-pretty-print.h.
27145 * tree-vect-loop.c: Include tree-pretty-print.h and
27146 gimple-pretty-print.h.
27147 * tree-vect-patterns.c: Include gimple-pretty-print.h.
27148 * tree-vect-slp.c: Include tree-pretty-print.h and
27149 gimple-pretty-print.h.
27150 * tree-vect-stmts.c: Include tree-pretty-print.h and
27151 gimple-pretty-print.h.
27152 * tree-vectorizer.c: Include tree-pretty-print.h.
27153 * tree-vrp.c: Include tree-pretty-print.h and
27154 gimple-pretty-print.h.
27155 * value-prof.c: Include tree-pretty-print.h and
27156 gimple-pretty-print.h.
27157 * var-tracking.c: Include tree-pretty-print.h.
27158 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
27159 (tree-diagnostic.o): New dependencies.
27160 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
27161 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
27162 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
27163 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
27164 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
27165 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
27166 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
27167 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
27168 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
27169 tree-ssa-address.o, tree-ssa-loop-niter.o,
27170 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
27171 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
27172 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
27173 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
27174 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
27175 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
27176 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
27177 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
27178 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
27179 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
27180 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
27181 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
27182 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
27183 tree-switch-conversion.o, var-tracking.o, value-prof.o,
27184 cfgexpand.o, pretty-print.o): Update dependencies.
27185
27186 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
27187
27188 * tree-ssa-structalias.c: Remove tm_p.h from include.
27189
27190 2010-05-21 Jeff Law <law@redhat.com>
27191
27192 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
27193
27194 2010-05-21 Jason Merrill <jason@redhat.com>
27195
27196 * tree-eh.c (cleanup_is_dead_in): New.
27197 (lower_try_finally): Don't generate a dead cleanup region.
27198 (lower_cleanup): Likewise.
27199
27200 2010-05-21 Jakub Jelinek <jakub@redhat.com>
27201
27202 PR debug/44223
27203 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
27204 unchain each use from the cyclic next_regno_use chain first.
27205
27206 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
27207
27208 * real: Do not include gmp.h, mpfr.h, and mpc.h.
27209 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
27210 (real_value_negate, real_value_abs): New prototypes.
27211 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
27212 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
27213 new include file for interface between MPFR and REAL_VALUE_TYPE.
27214 * real.c: Include realmpfr.h.
27215 (real_arithmetic2): Remove legacy function.
27216 (real_value_negate): New.
27217 (real_value_abs): New.
27218 (mfpr_from_real, real_from_mpfr): Move from here...
27219 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
27220 * builtins.c: Include realmpfr.h.
27221 * fold-const.c: Include realmpfr.h.
27222 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
27223 (fold_negate_const): Likewise.
27224 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
27225 * toplev.c: Include realmpfr.h.
27226 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
27227 and real_value_negate.
27228 * fixed-value.c (check_real_for_fixed_mode): Likewise.
27229 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
27230 (vfp3_const_double_index): Likewise.
27231 (arm_print_operand): Likewise.
27232 * Makefile.in: Update dependencies.
27233
27234 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27235
27236 * config/s390/s390.c (override_options): Increase the default
27237 of max-completely-peel-times.
27238
27239 2010-05-21 Julian Brown <julian@codesourcery.com>
27240 Mark Mitchell <mark@codesourcery.com>
27241
27242 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
27243 sibling calls for Thumb-1.
27244 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
27245 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
27246 Thumb-2.
27247 (*call_insn, *call_value_insn): Don't use for Thumb-2.
27248 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
27249 for Thumb-2.
27250 (return): New expander.
27251 (*arm_return): New name for ARM return insn.
27252 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
27253
27254 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
27255
27256 * config.gcc (sparc64-*-rtems*): New target.
27257
27258 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
27259
27260 * tree.c (build_function_decl_skip_args): Fix grammar.
27261 (build_function_type_list_1): Fix typos, adjust formatting.
27262
27263 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
27264
27265 * tree.h: Include real.h and fixed-value.h as basic datatypes.
27266 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
27267 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
27268 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
27269 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
27270 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
27271 tree-pretty-print.c, tree-loop-distribution.c,
27272 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
27273 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
27274 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
27275 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
27276 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
27277 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
27278 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
27279 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
27280 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
27281 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
27282 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
27283 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
27284 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
27285 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
27286 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
27287 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
27288 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
27289 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
27290 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
27291 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
27292 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
27293 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
27294 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
27295 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
27296 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
27297 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
27298 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
27299 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
27300 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
27301 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
27302 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
27303 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
27304 config/score/score7.c, config/score/score.c, config/arm/arm.c,
27305 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
27306 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
27307 config/bfin/bfin.c: Clean up redundant includes.
27308 * Makefile.in: Update accordingly.
27309
27310 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
27311
27312 PR middle-end/44204
27313 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
27314 statement has no arguments.
27315
27316 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
27317
27318 PR/44139
27319 * varasm.c (emutls_decl): Merge attributes to new decl.
27320
27321 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
27322
27323 PR middle-end/44101
27324 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
27325 around the uniquized constructor if its type requires a conversion.
27326
27327 2010-05-21 Jakub Jelinek <jakub@redhat.com>
27328
27329 PR debug/44205
27330 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
27331 at -O0 goto_locus of any of the incoming edges differs from
27332 goto_locus of outgoing edge, or gimple_location of any of the
27333 labels differs.
27334
27335 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
27336
27337 * ira.c (ira_non_ordered_class_hard_regs): Define.
27338 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
27339 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
27340 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
27341 cost of unaligned hard regs when allocating multi-reg pseudos.
27342
27343 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
27344
27345 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
27346 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
27347 for TARGET_NO_FLOAT.
27348 * config/mips/mips.c (mips_file_start): Expand conditional expression
27349 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
27350 (mips_override_options): Move -mno-float override -msoft-float and
27351 -mhard-float.
27352 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
27353 Condition(TARGET_SUPPORTS_NO_FLOAT).
27354 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
27355 __mips_no_float here.
27356 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
27357 (TARGET_SUPPORTS_NO_FLOAT): Define.
27358 * config/mips/sdemtk.opt: Delete.
27359
27360 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
27361
27362 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
27363
27364 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
27365
27366 PR target/43733
27367 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
27368 * configure: Regenerate.
27369 * config.in: Regenerate.
27370 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
27371 instead of sahf only for 64bit targets.
27372
27373 2010-05-20 Jakub Jelinek <jakub@redhat.com>
27374
27375 PR debug/44178
27376 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
27377 setup_ref_regs for DEBUG_INSNs.
27378
27379 2010-05-20 Jan Hubicka <jh@suse.cz>
27380
27381 PR middle-end/44197
27382 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
27383
27384 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
27385
27386 PR bootstrap/43870
27387 * df-scan.c (df_ref_compare): Stabilize sort.
27388
27389 2010-05-20 Jakub Jelinek <jakub@redhat.com>
27390
27391 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
27392 argument. Don't use DW_OP_piece if offset is non-zero,
27393 put offset into second DW_OP_bit_piece argument.
27394 (dw_sra_loc_expr): Adjust callers. For memory expressions
27395 compute offset.
27396
27397 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
27398
27399 PR target/44202
27400 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
27401 settings for 16-bit-constant "addo" alternative.
27402
27403 2010-05-19 James E. Wilson <wilson@codesourcery.com>
27404
27405 * config/mips/mips-dsp.md (add<DSPV:mode>3,
27406 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
27407
27408 PR target/43764
27409 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
27410 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
27411 Use it.
27412
27413 2010-05-19 Joseph Myers <joseph@codesourcery.com>
27414
27415 * diagnostic.c (FLOAT, FFS): Don't undefine.
27416 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
27417 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
27418 include ordering.
27419
27420 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
27421
27422 * combine.c (propagate_for_debug): Call make_compound_operation
27423 on the source value.
27424 (try_combine): When implementing a split chosen by find_split_point,
27425 either copy i2src or set it to null. Assert that i2src is not null
27426 before substituting into CALL_INSN_FUNCTION_USAGE.
27427
27428 2010-05-19 Anatoly Sokolov <aesok@post.ru>
27429
27430 * double-int.h (double_int_ior): New function.
27431 * tree.h (build_int_cst_wide_type): Remove.
27432 * tree.c (build_int_cst_wide_type): Remove.
27433 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
27434 of build_int_cst_wide_type.
27435 * stor-layout.c (set_sizetype): (Ditto.).
27436 * dojump.c (do_jump): Use build_int_cstu instead of
27437 build_int_cst_wide_type.
27438
27439 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
27440
27441 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
27442 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
27443 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
27444 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
27445 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
27446 propagate the 'data' argument to copy_tree_r.
27447 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
27448 Propagate 'data' argument to walk_tree.
27449 (copy_if_shared): New function.
27450 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
27451 (unmark_visited): New function.
27452 (unshare_body): Call copy_if_shared instead of doing it manually.
27453 (unvisit_body): Call unmark_visited instead of doing it manually.
27454
27455 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
27456
27457 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
27458 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
27459 * hooks.c: Likewise.
27460 * target-def.h (TARGET_FOLD_BUILTIN): Define to
27461 hook_tree_tree_int_treep_bool_null.
27462 * target.h (struct gcc_target): Update signature of fold_builtin
27463 field.
27464 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
27465 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
27466 instead of the call expression.
27467 (fold_builtin_call_array): Pass n and argarray directly.
27468 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
27469 consing a list.
27470 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
27471 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
27472 `i' and use it in place of `arity'.
27473 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
27474 Dereference `args' directly.
27475 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
27476
27477 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27478
27479 * doc/sourcebuild.texi (Effective-Target Keywords): Document
27480 3dnow, sse3, sse2.
27481 (Directives): Document optional dg-require-effective-target
27482 selector.
27483
27484 2010-05-19 Richard Guenther <rguenther@suse.de>
27485
27486 PR lto/44196
27487 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
27488
27489 2010-05-19 Richard Guenther <rguenther@suse.de>
27490
27491 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
27492 * common.opt (fwhopr=): New.
27493 * opts.c (common_handle_option): Handle OPT_fwhopr.
27494 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
27495 * collect2.c (main): Match -fwhopr*.
27496 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
27497 Execute ltrans stage in parallel when jobs is bigger than 1.
27498
27499 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27500
27501 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
27502 pentiumpro on Solaris 8/x86 with Sun as.
27503 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
27504 hidden alias bug.
27505 (gcc_cv_as_ix86_quad): Check for .quad directive.
27506 * configure: Regenerate.
27507 * config.in: Regenerate.
27508 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
27509
27510 2010-05-19 Martin Jambor <mjambor@suse.cz>
27511
27512 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
27513 also for indirect edges. Actual printing moved...
27514 (ipa_print_node_jump_functions_for_edge): ...here.
27515 (ipa_compute_jump_functions): Renamed to
27516 ipa_compute_jump_functions_for_edge and made static.
27517 (ipa_compute_jump_functions): New function.
27518 (make_edge_direct_to_target): Check if the number of arguments on
27519 the newly direct edge is the same as the number of parametrs of
27520 the callee.
27521 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
27522 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
27523 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
27524 analysis functions unconditionally, call the new
27525 ipa_analyze_params_uses on the node instead of every edge.
27526
27527 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
27528
27529 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
27530 to tree.
27531 (dump_mem_ref): Adopt debug code to handle a tree as step. This
27532 also checks for a constant int vs. non-constant but
27533 loop-invariant steps.
27534 (find_or_create_group): Change the sort algorithm to only consider
27535 steps that are constant ints.
27536 (idx_analyze_ref): Adopt code to handle a tree instead of a
27537 HOST_WIDE_INT for step.
27538 (gather_memory_references_ref): Handle tree instead of int and be
27539 prepared to see a NULL_TREE.
27540 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
27541 prefetches if the step cannot be calculated at compile time.
27542 (issue_prefetch_ref): Issue prefetches for non-constant but
27543 loop-invariant steps.
27544
27545 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
27546
27547 Revert:
27548 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
27549
27550 * tree.h (build_call_list): Remove.
27551 * tree.c (build_call_list): Remove.
27552
27553 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
27554
27555 * tree.h (build_call_list): Remove.
27556 * tree.c (build_call_list): Remove.
27557
27558 2010-05-18 Jan Hubicka <jh@suse.cz>
27559
27560 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
27561
27562 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
27563
27564 PR rtl-optimization/43332
27565 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
27566
27567 2010-05-18 Anatoly Sokolov <aesok@post.ru>
27568
27569 * tree.h (build_int_cstu): Implement as static inline.
27570 * tree.c (build_int_cstu): Remove function.
27571 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
27572 sign extended.
27573
27574 2010-05-18 Richard Guenther <rguenther@suse.de>
27575
27576 PR lto/44143
27577 * lto-wrapper.c (verbose): New variable. Initialize from -v.
27578 (debug): Initialize from -save-temps.
27579 (collect_execute): Print command-line when verbose.
27580 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
27581 for ltrans invocation. Produce -dumpbase flag again.
27582 (process_args): Remove.
27583 (main): Simplify.
27584 * collect2.c (maybe_run_lto_and_relink): Only pass object
27585 files to lto-wrapper.
27586 * gcc.c (LINK_COMMAND_SPEC): Likewise.
27587
27588 2010-05-18 Jan Hubicka <jh@suse.cz>
27589
27590 * opts.c (decode_options): Do not disable whopr at ipa_cp.
27591 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
27592
27593 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
27594
27595 PR lto/44184
27596 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
27597 in a GIMPLE_ASM.
27598 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
27599 in a GIMPLE_ASM.
27600
27601 2010-05-18 Jakub Jelinek <jakub@redhat.com>
27602
27603 PR debug/41371
27604 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
27605 rtx_equal_p inline.
27606
27607 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
27608
27609 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
27610 lto-macho as lto_binary_reader.
27611
27612 * darwin.c (darwin_asm_named_section): Do not add assembler comment
27613 after .section directive; just print it before the directive instead.
27614
27615 2010-05-17 Jan Hubicka <jh@suse.cz>
27616
27617 * cgraph.c (cgraph_create_virtual_clone): Only check
27618 versionable_function_p when not in wpa and checking is enabled.
27619 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
27620 there are no more functions to materialize.
27621
27622 2010-05-17 Jan Hubicka <jh@suse.cz>
27623
27624 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
27625 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
27626 New functions.
27627 (output_cgraph): Call output_cgraph_opt_summary.
27628 (input_cgrpah): Call input_cgraph_opt_summary.
27629 (output_cgraph_opt_summary_p, output_node_opt_summary,
27630 input_node_opt_summary, input_cgraph_opt_section): New functions.
27631 * lto-section-in.c (lto_section_name): Add cgraphopt.
27632 * tree-inline.c (tree_function_versioning): Handle parm_num.
27633 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
27634 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
27635
27636 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
27637
27638 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
27639 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
27640 the insn to prefetch ratio heuristic to loops with known trip count.
27641
27642 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
27643
27644 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
27645 (schedule_prefetches): Do not generate a prefetch if the unroll factor
27646 is far from what is required by the prefetch.
27647
27648 2010-05-17 Jan Hubicka <jh@suse.cz>
27649
27650 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
27651 (ipcp_estimate_growth): Likewise.
27652 (ipcp_const_param_count): Likewise.
27653 (ipcp_insert_stage): Likewise.
27654 * ipa-prop.c (visit_load_for_mod_analysis): New function.
27655 (visit_store_addr_for_mod_analysis): Set used flag.
27656 (ipa_detect_param_modifications): Set used flag for SSE params;
27657 update use of walk_stmt_load_store_addr_ops.
27658 (ipa_print_node_params): Print used flag.
27659 (ipa_write_node_info): Stream used flag.
27660 (ipa_read_node_info): Likewise.
27661 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
27662 (ipa_is_param_used): New function.
27663 (lto_ipa_fixup_call_notes): Remove unused declaration.
27664
27665 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27666
27667 PR target/44074
27668 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
27669 * configure: Regenerate.
27670 * config.in: Regenerate.
27671 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
27672 !HAVE_AS_IX86_REP_LOCK_PREFIX.
27673 Don't emit whitespace.
27674 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
27675 (*rep_movsi): Likewise.
27676 (*rep_movsi_rex64): Likewise.
27677 (*rep_movqi): Likewise.
27678 (*rep_movqi_rex64): Likewise.
27679 (*rep_stosdi_rex64): Likewise.
27680 (*rep_stossi): Likewise.
27681 (*rep_stossi_rex64): Likewise.
27682 (*rep_stosqi): Likewise.
27683 (*rep_stosqi_rex64): Likewise.
27684 (*cmpstrnqi_nz_1): Use {%;} after repz.
27685 (*cmpstrnqi_nz_rex_1): Likewise.
27686 (*cmpstrnqi_1): Likewise.
27687 (*cmpstrnqi_rex_1): Likewise.
27688 (*strlenqi_1): Use {%;} after repnz.
27689 (*strlenqi_rex_1): Likewise.
27690 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
27691 (*sync_compare_and_swap<mode>): Likewise.
27692 (sync_double_compare_and_swap<mode>): Likewise.
27693 (*sync_double_compare_and_swapdi_pic): Likewise.
27694 (sync_old_add<mode>): Likewise.
27695 (sync_add<mode>): Likewise.
27696 (sync_sub<mode>): Likewise.
27697 (sync_<code><mode>): Likewise.
27698
27699 2010-05-17 Martin Jambor <mjambor@suse.cz>
27700
27701 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
27702 otr_token and polymorphic.
27703 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
27704 (cgraph_clone_edge): Copy the above fields.
27705 * tree.c (get_binfo_at_offset): New function.
27706 * tree.h (get_binfo_at_offset): Declare.
27707 * ipa-prop.h (enum jump_func_type): Added known_type jump function
27708 type, reordered items, updated comments.
27709 (union jump_func_value): Added base_type field, reordered fields.
27710 (enum ipa_lattice_type): Moved down in the file.
27711 (struct ipa_param_descriptor): New field polymorphic.
27712 (ipa_is_param_polymorphic): New function.
27713 * ipa-prop.c: Include gimple.h and gimple-fold.h.
27714 (ipa_print_node_jump_functions): Print known type jump functions.
27715 (compute_complex_pass_through): Renamed to...
27716 (compute_complex_assign_jump_func): this.
27717 (compute_complex_ancestor_jump_func): New function.
27718 (compute_known_type_jump_func): Likewise.
27719 (compute_scalar_jump_functions): Create known type and complex ancestor
27720 jump functions.
27721 (ipa_note_param_call): New parameter polymorphic, set the corresponding
27722 flag in the call note accordingly.
27723 (ipa_analyze_call_uses): Renamed to...
27724 (ipa_analyze_indirect_call_uses): this. New parameter target, define
27725 variable var only in the block where it is used.
27726 (ipa_analyze_virtual_call_uses): New function.
27727 (ipa_analyze_call_uses): Likewise.
27728 (combine_known_type_and_ancestor_jfs): Likewise.
27729 (update_jump_functions_after_inlining): Implemented handling of a
27730 number of new jump function types combination.
27731 (print_edge_addition_message): Removed.
27732 (make_edge_direct_to_target): New function.
27733 (try_make_edge_direct_simple_call): Likewise.
27734 (try_make_edge_direct_virtual_call): Likewise.
27735 (update_call_notes_after_inlining): Renamed to...
27736 (update_indirect_edges_after_inlining): this. Moved edge creation for
27737 indirect calls to try_make_edge_direct_simple_call, also calls
27738 try_make_edge_direct_virtual_call for virtual calls.
27739 (ipa_print_node_params): Changed the header message.
27740 (ipa_write_jump_function): Stream also known type jump functions.
27741 (ipa_read_jump_function): Likewise.
27742 (ipa_write_indirect_edge_info): Stream new fields in
27743 cgraph_indirect_call_info.
27744 (ipa_read_indirect_edge_info): Likewise.
27745 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
27746 GIMPLE_FOLD_H.
27747
27748 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27749
27750 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
27751
27752 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
27753
27754 * tree.h (CALL_EXPR_ARGS): Delete.
27755 (call_expr_arglist): Delete.
27756 * tree.c (call_expr_arglist): Delete.
27757 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
27758 targetm.fold_builtin.
27759 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
27760 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
27761 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
27762 arglist parameter. Use CALL_EXPR_ARG.
27763 (picochip_expand_builtin_3op): Likewise.
27764 (picochip_expand_builtin_2opvoid): Likewise.
27765 (picochip_expand_array_get): Likewise.
27766 (picochip_expand_array_put): Likewise.
27767 (picochip_expand_array_testport): Likewise.
27768 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
27769 rather than arglist.
27770 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
27771 CALL_EXPR_ARGS.
27772 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
27773 than TREE_VALUE and TREE_CHAIN.
27774 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
27775 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
27776 the arglist.
27777
27778 2010-05-17 Jakub Jelinek <jakub@redhat.com>
27779
27780 PR bootstrap/42347
27781 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
27782 to have no fallthru edge.
27783
27784 PR middle-end/44102
27785 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
27786 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
27787 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
27788 add BARRIER after previous bb if needed.
27789
27790 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
27791
27792 * tree.c (build_function_type_list_1): Remove bogus assert condition.
27793
27794 2010-05-17 Alan Modra <amodra@gmail.com>
27795
27796 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
27797 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
27798 with copy_reg rtx param.
27799 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
27800 Correct cases where code for ABI_V4 did not initialise the reg
27801 used to access frame. Also leave frame_reg_rtx as sp for large
27802 frames that save no regs.
27803
27804 2010-05-17 Martin Jambor <mjambor@suse.cz>
27805
27806 PR middle-end/44133
27807 * tree-sra.c (create_access_replacement): New parameter rename, mark
27808 the replaement for renaming only when it is true.
27809 (get_access_replacement): Pass true in the rename parameter of
27810 create_access_replacement.
27811 (get_unrenamed_access_replacement): New function.
27812 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
27813 replacement declaration from it.
27814
27815 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
27816
27817 * function.c (try_fit_stack_local, add_frame_space): New static
27818 functions.
27819 (assign_stack_local_1): Use them. Look for opportunities to use
27820 space previously wasted on alignment.
27821 * function.h (struct frame_space): New.
27822 (struct rtl_data): Add FRAME_SPACE_LIST member.
27823 * reload1.c (something_was_spilled): New static variable.
27824 (alter_reg): Set it.
27825 (reload): Test it in addition to testing if the frame size changed.
27826
27827 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
27828
27829 * config/s390/s390.c: Define sane prefetch settings and activate
27830 flag_prefetch_loop_arrays on -O3.
27831 * config/s390/s390.h: Declare that read can use write prefetch.
27832
27833 2010-05-17 Jakub Jelinek <jakub@redhat.com>
27834
27835 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
27836 build.
27837
27838 2010-05-16 Jan Hubicka <jh@suse.cz>
27839
27840 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
27841 function body; do not check stdarg field of struct function.
27842
27843 2010-05-16 Jan Hubicka <jh@suse.cz>
27844
27845 * cgraph.c (dump_cgraph_node): Dump versionable flag.
27846 * cgraph.h (cgraph_local_info): Add versionable flag.
27847 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
27848 (ipcp_versionable_function_p): Use it.
27849 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
27850 versionable flag.
27851
27852 2010-05-16 Jan Hubicka <jh@suse.cz>
27853
27854 * cgraph.c (cgraph_clone_node): Take decl argument and insert
27855 clone into hash when it is different from orig.
27856 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
27857 * cgraph.h (cgraph_clone_node): Update prototype.
27858 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
27859 (lto_cgraph_encoder_delete): Delete body map.
27860 (lto_cgraph_encoder_size): Move to header.
27861 (lto_cgraph_encoder_encode_body_p,
27862 lto_set_cgraph_encoder_encode_body): New.
27863 (lto_output_node): Do not take written_decls argument; output clone_of
27864 pointer.
27865 (add_node_to): Add include_body_argument; call
27866 lto_set_cgraph_encoder_encode_body on master of the clone.
27867 (add_references): Update use of add_node_to.
27868 (compute_ltrans_boundary): Likewise.
27869 (output_cgraph): Do not create written_decls bitmap.
27870 (input_node): Take nodes argument; stream in clone_of correctly.
27871 (input_cgraph_1): Update use of input_node.
27872 * lto-streamer-out.c (lto_output): Use encoder info to decide
27873 what bodies to output.
27874 * ipa-inline.c (cgraph_clone_inlined_nodes,
27875 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
27876 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
27877 (lto_cgraph_encoder_size): Define here.
27878 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
27879 Declare.
27880
27881 2010-05-16 Richard Guenther <rguenther@suse.de>
27882
27883 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
27884 -fipa-type-escape.
27885 * ipa-type-escape.c (gate_type_escape_vars): Run when
27886 -fipa-struct-reorg runs.
27887 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
27888 * common.opt (fipa-type-escape): Remove.
27889
27890 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
27891
27892 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
27893 (decode_options): Likewise.
27894 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
27895
27896 2010-05-16 Jan Hubicka <jh@suse.cz>
27897
27898 * ipa.c (function_and_variable_visibility): Also bring local all
27899 aliases.
27900
27901 2010-05-16 Richard Guenther <rguenther@suse.de>
27902
27903 * alias.c (nonoverlapping_memrefs_p): Remove use of
27904 IPA type-escape information.
27905
27906 2010-05-16 Joseph Myers <joseph@codesourcery.com>
27907
27908 * c-common.c (c_common_reswords): Add _Static_assert for C.
27909 * c-parser.c (c_token_starts_declaration,
27910 c_parser_next_token_starts_declaration,
27911 c_parser_static_assert_declaration_no_semi,
27912 c_parser_static_assert_declaration): New.
27913 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
27914 Handle static assertions if static_assert_ok.
27915 (c_parser_external_declaration, c_parser_declaration_or_fndef,
27916 c_parser_compound_statement_nostart, c_parser_label,
27917 c_parser_for_statement, c_parser_objc_methodprotolist,
27918 c_parser_omp_for_loop): All callers of
27919 c_parser_declaration_or_fndef changed.
27920 (c_parser_struct_declaration): Handle static assertions.
27921 (c_parser_compound_statement_nostart): Use
27922 c_parser_next_token_starts_declaration and
27923 c_token_starts_declaration to detect start of declarations.
27924 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
27925 Likewise.
27926
27927 2010-05-16 Anatoly Sokolov <aesok@post.ru>
27928
27929 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
27930 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
27931 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
27932 TARGET_FUNCTION_VALUE_REGNO_P): Define.
27933 (mmix_function_outgoing_value): Rename to...
27934 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
27935 (mmix_function_value_regno_p): Make static.
27936 (mmix_libcall_value): New function.
27937 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
27938 mmix_function_value_regno_p): Remove declaration.
27939
27940 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
27941
27942 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
27943 BUILT_IN_ALLOCA if stack checking is enabled.
27944
27945 2010-05-16 Richard Guenther <rguenther@suse.de>
27946
27947 * var-tracking.c (vars_copy_1): Inline ...
27948 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
27949 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
27950 (variable_merge_over_cur): Adjust. Merge asserts.
27951 (variable_merge_over_src): Likewise.
27952 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
27953 (variable_post_merge_new_vals): Merge asserts.
27954 (variable_post_merge_perm_vals): Likewise.
27955 (find_mem_expr_in_1pdv): Likewise.
27956 (dataflow_set_different_value): Remove.
27957 (onepart_variable_different_p): Merge asserts.
27958 (variable_different_p): Likewise.
27959 (dataflow_set_different_1): Inline ...
27960 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
27961 (emit_notes_for_differences_1): Merge asserts.
27962
27963 2010-05-16 Richard Guenther <rguenther@suse.de>
27964
27965 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
27966 * optabs.c (libfunc_decl_hash): Likewise.
27967 * varasm.c (emutls_decl): Likewise.
27968
27969 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
27970
27971 * c-decl.c: Don't include gimple.h.
27972 (merge_decls): Do not copy gimple_body.
27973
27974 2010-05-15 Jason Merrill <jason@redhat.com>
27975
27976 * c.opt: Add -fnothrow-opt.
27977
27978 2010-05-15 Jan Hubicka <jh@suse.cz>
27979
27980 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
27981 analyzed.
27982 * passes.c (ipa_write_summaries): Write all analyzed nodes.
27983
27984 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
27985
27986 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
27987 * Makefile.in: Add it.
27988 Fix all other Makefile dependencies for changes below.
27989 * tree.h: Include it instead of defining VEC primitives here.
27990 * gimple.h: Likewise.
27991 * rtl.h: Likewise.
27992 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
27993 * except.h: Include vecir.h, break dependence on tree.h.
27994
27995 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
27996 Move from here...
27997 * tree-iterator.c: ...to here.
27998 * tree-iterator.h: Fix file introduction comment. Add extern markers.
27999
28000 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
28001 tm_p.h.
28002 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
28003 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
28004 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
28005 tree-mudflap.h, and target.h.
28006 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
28007 predict.h, tree-inline.h, gimple.h, and langhooks.h.
28008 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
28009 Add FIXME for why gimple.h is still included (should be unnecessary
28010 since GCC 4.5 gimplification unit-at-a-time).
28011 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
28012 * c-pragma.c: Add FIXME for why function.h needs to be included just
28013 for cfun, at front-end level.
28014 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
28015 Do not include ggc.h, but include vecprim.h for VEC(char).
28016 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
28017 Explain why target.h is included.
28018 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
28019 Explain why gimple.h is included.
28020 * c-ppoutput.c: Do not include tm.h.
28021 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
28022 * c-parses.c: Explain why rtl.h is included, and that this (and only
28023 this) is also why tm.h must be included.
28024 Do not include except.h.
28025 * c-lang.c: Do not include ggc.h.
28026
28027 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
28028
28029 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
28030
28031 2010-05-15 Joseph Myers <joseph@codesourcery.com>
28032
28033 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
28034 unions by default if those structs and unions have no tags. Do
28035 not condition anonymous struct and unions handling on flag_iso.
28036 Allow anonymous structs and unions for C1X.
28037 (finish_struct): Do not diagnose lack of named fields when
28038 anonymous structs and unions present for C1X. Accept flexible
28039 array members in structure with anonymous structs or unions but no
28040 directly named fields.
28041 * doc/extend.texi (Unnamed Fields): Update.
28042
28043 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
28044
28045 * gimple.h (compare_field_offset): Rename into...
28046 (gimple_compare_field_offset): ...this.
28047 * gimple.c (compare_field_offset): Rename into...
28048 (gimple_compare_field_offset): ...this. Compare the full access if
28049 the offset is self-referential.
28050 (gimple_types_compatible_p): Adjust for above renaming.
28051 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
28052 DECL_NONADDRESSABLE_P flag of fields before merging them.
28053
28054 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
28055
28056 * tree.h (ctor_to_list): Delete.
28057 * tree.c (ctor_to_list): Delete.
28058
28059 2010-05-15 Jan Hubicka <jh@suse.cz>
28060
28061 * ipa-reference.c: Include toplev.h
28062 (is_proper_for_analysis): Only add to all_module_statics
28063 if it is allocated.
28064 (write_node_summary_p, stream_out_bitmap,
28065 ipa_reference_write_optimization_summary,
28066 ipa_reference_read_optimization_summary): New.
28067 (struct ipa_opt_pass_d pass_ipa_reference): Add
28068 optimization summary streaming.
28069 * lto-cgraph.c (referenced_from_this_partition_p,
28070 reachable_from_this_partition_p): New functions.
28071 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
28072 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
28073 * opts.c (decode_options): Enable ipa_reference.
28074 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
28075 * lto-streamer.h (referenced_from_this_partition_p,
28076 reachable_from_this_partition_p): Declare.
28077
28078 2010-05-15 Richard Guenther <rguenther@suse.de>
28079
28080 PR tree-optimization/44038
28081 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
28082 taking the address of a V_C_E of a constant.
28083
28084 2010-05-14 Jan Hubicka <jh@suse.cz>
28085
28086 * tree.h (memory_identifier_string): Remove.
28087 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
28088 (ipa_reference_global_vars_info_d): Remove statics_not_read and
28089 statics_not_written.
28090 (ipa_reference_optimization_summary_d): New structure.
28091 (ipa_reference_optimization_summary_t): New type and vector.
28092 (ipa_reference_vars_info_d): Embedd structures instead of using
28093 pointers.
28094 (reference_vars_to_consider): Remove out of GGC space.
28095 (module_statics_escape): Remove.
28096 (global_info_obstack): Rename to ...
28097 (optimization_summary_obstack): ... this one.
28098 (initialization_status_t): Remove.
28099 (memory_identifier_string): Remove.
28100 (get_reference_vars_info): Fix indenting.
28101 (set_reference_vars_info): Likewise.
28102 (get_reference_optimization_summary): New.
28103 (set_reference_optimization_summary): New.
28104 (get_global_reference_vars_info): Remove.
28105 (ipa_reference_get_read_global): Remove.
28106 (ipa_reference_get_written_global): Remove.
28107 (ipa_reference_get_not_read_global): Update.
28108 (ipa_reference_get_not_written_global): Update.
28109 (is_proper_for_analysis): Outlaw addressable.
28110 (propagate_bits): Update for new datastructures.
28111 (analyze_variable): Remove.
28112 (init_function_info): Update for new datastructures.
28113 (clean_function_local_data): Remove.
28114 (clean_function): Remove.
28115 (copy_global_bitmap): Use optimizations_summary_obstack.
28116 (duplicate_node_data): Duplicate optimization summary only.
28117 (remove_node_data): Remove optimization summary only.
28118 (generate_summary): Do not analyze variables; do not compute
28119 module_statics_escape; do not prune solutions by it.
28120 (read_write_all_from_decl): Fix typos in comments.
28121 (propagate): Doscover readonly and nonaddressable first;
28122 update for new datastructures; share global bitmaps.
28123 * ipa-reference.h (ipa_reference_get_read_global,
28124 ipa_reference_get_written_global): Remove.
28125 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
28126 * Makefile.in: Remove ipa-refereference from GT files.
28127
28128 2010-05-14 Jakub Jelinek <jakub@redhat.com>
28129
28130 PR debug/44112
28131 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
28132 for all SYMBOL_REF_DECLs.
28133
28134 2010-05-14 Jan Hubicka <jh@suse.cz>
28135
28136 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
28137 (varpool_all_refs_explicit_p): New inline function.
28138 * ipa-reference.c: Update comment.
28139 (module_statics_written): Remove.
28140 (get_static_decl): Remove.
28141 (ipa_init): Do not initialize module_statics_written.
28142 (analyze_function): Likewise.
28143 (generate_summary): Likewise; do not compute module_statics_readonly
28144 and do not update variable flags.
28145 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
28146 * ipa.c: Inlucde flags.h
28147 (cgraph_local_node_p): New.
28148 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
28149 promote functions to local.
28150 (ipa_discover_readonly_nonaddressable_vars): New function.
28151 (function_and_variable_visibility): Use cgraph_local_node_p.
28152 * varpool.c (varpool_finalize_decl): Set force_output for
28153 DECL_PRESERVE_P vars.
28154
28155 2010-05-14 Jan Hubicka <jh@suse.cz>
28156
28157 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
28158
28159 2010-05-14 Richard Guenther <rguenther@suse.de>
28160
28161 PR tree-optimization/44119
28162 * tree-ssa-pre.c (eliminate): Properly mark replacement of
28163 a PHI node necessary.
28164
28165 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
28166
28167 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
28168
28169 2010-05-14 Jason Merrill <jason@redhat.com>
28170
28171 PR c++/44127
28172 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
28173 (gimple_call_set_nothrow): New.
28174 * gimple.c (gimple_build_call_from_tree): Call it.
28175 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
28176
28177 PR c++/44127
28178 * gimplify.c (gimplify_seq_add_stmt): No longer static.
28179 * gimple.h: Declare it.
28180 * gimple.c (gimple_build_eh_filter): No ops.
28181
28182 2010-05-14 Jan Hubicka <jh@suse.cz>
28183
28184 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
28185 nodes already in queue.
28186 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
28187 re-enqueueing node.
28188
28189 2010-05-14 Jakub Jelinek <jakub@redhat.com>
28190
28191 PR debug/44136
28192 * cfgexpand.c (expand_debug_expr): If non-memory op0
28193 has BLKmode, return NULL.
28194
28195 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
28196
28197 * config.gcc: Add support for --with-cpu option for bdver1.
28198 * config/i386/i386.h (TARGET_BDVER1): New macro.
28199 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
28200 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
28201 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
28202 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
28203 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
28204 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
28205 (processor_type): Add PROCESSOR_BDVER1.
28206 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
28207 processor_type in config/i386/i386.h.
28208 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
28209 movaps <reg, reg> instead of movapd <reg, reg> when replacing
28210 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
28211 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
28212 to emit packed xor instead of packed double/packed integer
28213 xor for SSE and AVX when moving a zero value.
28214 * config/i386/sse.md: Add check for
28215 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
28216 movapd/movdqa for SSE and AVX.
28217 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
28218 single logical operations i.e and, or and xor instead of packed double
28219 logical operations for SSE and AVX.
28220 * config/i386/i386-c.c (ix86_target_macros_internal):
28221 Add PROCESSOR_BDVER1.
28222 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
28223 (has_fma4, has_xop): New.
28224 * config/i386/i386.c (bdver1_cost): New variable.
28225 (m_BDVER1): New macro.
28226 (m_AMD_MULTIPLE): Add m_BDVER1.
28227 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
28228 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
28229 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
28230 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
28231 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
28232 x86_tune_sse_partial_reg_dependency,
28233 x86_tune_sse_unaligned_load_optimal,
28234 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
28235 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
28236 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
28237 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
28238 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
28239 Enable/disable for bdver1.
28240 (processor_target_table): Add bdver1_cost.
28241 (cpu_names): Add bdver1.
28242 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
28243 processor_alias_table.
28244 (ix86_expand_vector_move_misalign): Change.
28245 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
28246 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
28247 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
28248 of movupd/movdqu for SSE and AVX.
28249 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
28250 (ix86_tune_adjust_cost): Add code for bdver1.
28251 (standard_sse_constant_opcode): Add check for
28252 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
28253 of packed double xor for SSE and AVX.
28254
28255 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
28256
28257 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
28258 result to unsigned.
28259
28260 2010-05-14 Tristan Gingold <gingold@adacore.com>
28261
28262 * toplev.c (default_debug_hooks): Remove this variable.
28263 (process_options): Remove assignments to default_debug_hooks.
28264
28265 2010-05-14 Martin Jambor <mjambor@suse.cz>
28266
28267 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
28268 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
28269 * langhooks.h (struct lang_hooks_for_decls): Removed field
28270 fold_obj_type_ref.
28271 * tree.c (free_lang_data): Remove assignment to
28272 lang_hooks.fold_obj_type_ref.
28273 * tree.def (OBJ_TYPE_REF): Update comment.
28274
28275 2010-05-14 Richard Guenther <rguenther@suse.de>
28276
28277 PR tree-optimization/44124
28278 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
28279
28280 2010-05-14 Alan Modra <amodra@gmail.com>
28281
28282 PR target/44075
28283 * config/rs6000/rs6000.c (struct machine_function): Reorder
28284 fields for better packing. Add lr_save_state.
28285 (rs6000_ra_ever_killed): Return lr_save_state if set.
28286 (rs6000_emit_eh_reg_restore): Set lr_save_state.
28287
28288 2010-05-13 Jan Hubicka <jh@suse.cz>
28289
28290 * varpool.c (decide_is_variable_needed): Drop code checking
28291 TREE_SYMBOL_REFERENCED.
28292
28293 2010-05-13 Jan Hubicka <jh@suse.cz>
28294
28295 * final.c (output_addr_const): Do not call mark_decl_referenced.
28296 * cgraphunit.c (process_function_and_variable_attributes): Use
28297 mark_needed_node dirrectly.
28298 (assemble_thunk): Do not call mark_decl_referenced.
28299
28300 2010-05-13 Anatoly Sokolov <aesok@post.ru>
28301
28302 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
28303
28304 2010-05-13 Jeff Law <law@redhat.com>
28305
28306 * ira-conflicts.c (print_allocno_conflicts): New function broken out
28307 from...
28308 (print_conflicts): Call print_allocno_conflicts.
28309
28310 2010-05-13 Jakub Jelinek <jakub@redhat.com>
28311
28312 PR debug/44104
28313 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
28314 if it is NULL.
28315
28316 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
28317
28318 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
28319 t-mingw-w64 or t-mingw-w32 for multilib configuration.
28320 * config/i386/t-mingw-w32: New.
28321 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
28322
28323 2010-05-13 Martin Jambor <mjambor@suse.cz>
28324
28325 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
28326 gimple-fold.c).
28327 * gimple-fold.c (get_base_binfo_for_type): New function.
28328 (gimple_get_relevant_ref_binfo): Likewise.
28329 (gimple_fold_obj_type_ref_known_binfo): Likewise.
28330 (gimple_fold_obj_type_ref): Likewise.
28331 (fold_gimple_call): Simplify condition for folding virtual calls
28332 and call gimple_fold_obj_type_ref.
28333 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
28334 (gimple_fold_obj_type_ref_known_binfo): Likewise.
28335
28336 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
28337
28338 * config/rs6000/rs6000-protos.h
28339 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
28340 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
28341 (rs6000_debug_mode_dependent_address)
28342 (rs6000_mode_dependent_address_ptr): Likewise.
28343
28344 2010-05-13 Jakub Jelinek <jakub@redhat.com>
28345
28346 PR debug/43983
28347 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
28348 by SRA.
28349 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
28350 * tree-sra.c (create_access_replacement): Call unshare_expr before
28351 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
28352 * dwarf2out.c: Include tree-flow.h.
28353 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
28354 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
28355 Handle DW_OP_bit_piece.
28356 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
28357 construct_piece_list, adjust_piece_list): New functions.
28358 (add_var_loc_to_decl): Handle SRA optimized variables.
28359 Adjust for var_loc_note to loc field renaming.
28360 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
28361 in VAR_LOCATION note.
28362 (new_loc_descr_op_bit_piece): New function.
28363 (dw_sra_loc_expr): New function.
28364 (dw_loc_list): Use it. Don't handle the last range after the
28365 loop, handle it inside of the loop. Adjust for var_loc_note
28366 to loc field renaming.
28367 (add_location_or_const_value_attribute): Only special case
28368 single entry loc lists if loc is NOTE_P. Adjust for
28369 var_loc_note to loc field renaming.
28370 (dwarf2out_var_location): Don't set newloc->var_loc_note
28371 and newloc->next here.
28372
28373 2010-05-12 Jan Hubicka <jh@suse.cz>
28374
28375 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
28376 flag.
28377 * cgraph.h (cgraph_only_called_directly_p,
28378 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
28379 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
28380 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
28381 (assemble
28382 * ipa.c (cgraph_remove_unreachable_nodes): Use
28383 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
28384 flags.
28385 * tree-inline.c (copy_bb): Check address_taken flag.
28386 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
28387 externally_visible flag.
28388
28389 2010-05-12 Jason Merrill <jason@redhat.com>
28390
28391 PR bootstrap/44048
28392 PR target/44099
28393 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
28394 * sdbout.c (plain_type_1): Likewise.
28395 * dwarf2out.c (is_base_type): Likewise.
28396 (gen_type_die_with_usage): Likewise. Generate
28397 DW_TAG_unspecified_type for any LANG_TYPE.
28398
28399 2010-05-12 Jan Hubicka <jh@suse.cz>
28400
28401 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
28402 indrect edges too.
28403 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
28404 (cgraph_clone_edge): Update.
28405 (cgraph_node_remove_callees): Remove indirect calls too.
28406 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
28407 (cgraph_create_indirect_edge): Update prototype.
28408 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
28409 is_proper_for_analysis.
28410 (add_new_function, visited_nodes, function_insertion_hook_holder,
28411 get_local_reference_vars_info, mark_address_taken, mark_address,
28412 mark_load, mark_store, check_asm_memory_clobber, check_call,
28413 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
28414 (ipa_init): Do not initialize visited_nodes;
28415 function_insertion_hook_holder.
28416 (analyze_variable): Rewrite.
28417 (analyze_function): Rewrite.
28418 (copy_local_bitmap): Remove.
28419 (duplicate_node_dat): Do not duplicate local info.
28420 (generate_summary): Simplify to only walk cgraph.
28421 (write_node_summary_p, ipa_reference_write_summary,
28422 ipa_reference_read_summary): Remove.
28423 (propagate): Do not remove function insertion;
28424 generate summary.
28425 (pass_ipa_reference): NULLify summary handling fields.
28426 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
28427 (input_edge): Input ecf_flags.
28428 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
28429 (update_indirect_edges_after_inlining): Ignore edges with unknown
28430 param.
28431
28432 2010-05-12 Sriraman Tallam <tmsriram@google.com>
28433
28434 * implicit-zee.c: New file.
28435 * tree-pass.h (pass_implicit_zee): Declare.
28436 * passes.c (init_optimization_passes): Add zee pass.
28437 * common.opt (fzee): New flag.
28438 * timevar.def (TV_ZEE): Define.
28439 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
28440 and beyond.
28441 * Makefile.in (implicit-zee.o): Add new build file.
28442
28443 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
28444 Nathan Froyd <froydnj@codesourcery.com>
28445
28446 * c-common.c (sync_resolve_params): Remove write-only variable.
28447
28448 2010-05-12 Anatoly Sokolov <aesok@post.ru>
28449
28450 * target.h (struct gcc_target): Add mode_dependent_address_p field.
28451 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
28452 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
28453 * targhooks.c (default_mode_dependent_address_p): New function.
28454 * targhooks.h (default_mode_dependent_address_p): Declare function.
28455 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
28456 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
28457 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
28458 target hook. Change return type to bool.
28459 * recog.h (mode_dependent_address_p): Change return type to bool.
28460
28461 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
28462 Nathan Froyd <froydnj@codesourcery.com>
28463
28464 * tree-mudflap.c (build_function_type_0, build_function_type_1,
28465 build_function_type_2, build_function_type_3): Remove.
28466 (mudflap_init): Use build_function_type_list.
28467
28468 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
28469 Nathan Froyd <froydnj@codesourcery.com>
28470
28471 * coverage.c (build_fn_info_value): Call build_constructor instead of
28472 build_constructor_from_list.
28473 (build_ctr_info_value): Likewise.
28474 (build_gcov_info): Likewise.
28475
28476 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
28477
28478 * tree.c (build_constructor): Compute TREE_CONSTANT for the
28479 resultant constructor.
28480 (build_constructor_single): Don't set TREE_CONSTANT.
28481 (build_constructor_from_list): Don't compute TREE_CONSTANT.
28482
28483 2010-05-12 Jan Hubicka <jh@suse.cz>
28484
28485 * cgraph.h (struct varpool_node): Add aux.
28486 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
28487 * varpool.c (varpool_remove_node): Do not remove initializer.
28488 (varpool_reset_queue): Export.
28489 (varpool_finalize_decl): Volatile vars are forced to be output.
28490 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
28491 replaced decl.
28492 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
28493 process_references, varpool_can_remove_if_no_refs): New functions.
28494 (cgraph_remove_unreachable_nodes): Handle variables too.
28495
28496 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
28497
28498 PR target/44088
28499 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
28500
28501 2010-05-12 Jakub Jelinek <jakub@redhat.com>
28502
28503 PR middle-end/44085
28504 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
28505 change value of ORT_TASK.
28506 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
28507 (omp_notice_threadprivate_variable): New function.
28508 (omp_notice_variable): Call it for threadprivate variables.
28509 If enclosing ctx is a task, print enclosing task rather than
28510 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
28511 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
28512 if task has untied clause.
28513
28514 PR debug/42278
28515 * dwarf2out.c (base_type_die): Don't add name attribute here.
28516 (modified_type_die): Instead of sizetype use
28517 its underlying original type. If a DW_TAG_base_type doesn't
28518 have name added, add __unknown__.
28519 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
28520 always call force_type_die instead.
28521
28522 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
28523
28524 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
28525 for __stack_chk_guard.
28526
28527 2010-05-11 Jakub Jelinek <jakub@redhat.com>
28528
28529 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
28530 don't call start_source_file debug hook here...
28531 (finish_options): ... but here, after outputting predefined and
28532 command line defines and undefs.
28533
28534 PR middle-end/44071
28535 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
28536 no fallthru edge.
28537 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
28538 optimizing away empty bb with no successors, move over its
28539 footer chain to fallthru predecessor.
28540 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
28541 (rtl_split_edge): For asm goto call patch_jump_insn even if
28542 splitting fallthru edge.
28543
28544 PR c++/44059
28545 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
28546 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
28547 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
28548 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
28549 on DW.ref.* decls.
28550
28551 PR c++/44062
28552 * c-parser.c (c_parser_expression): Mark LHS of a comma
28553 expression as read if it is a decl, handled component or
28554 COMPOUND_EXPR with that on the RHS.
28555 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
28556 if it is a decl or handled component.
28557
28558 2010-05-11 Jan Hubicka <jh@suse.cz>
28559
28560 * lto-symtab.c (lto_symtab_free): New function.
28561 * lto-streamer.h (lto_symtab_free): Declare.
28562
28563 2010-05-11 Jan Hubicka <jh@suse.cz>
28564
28565 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
28566 that if function is needed it is reachable.
28567 (lto_output_node): See if it the function is reachable or referenced.
28568 (output_cgraph): Update call of lto_output_node.
28569 * lto-streamer.h (reachable_from_other_partition_p): Declare.
28570
28571 2010-05-11 Jan Hubicka <jh@suse.cz>
28572
28573 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
28574 Mark as used.
28575
28576 2010-05-11 Jan Hubicka <jh@suse.cz>
28577
28578 PR tree-optimize/44063
28579 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
28580 queue.
28581 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
28582 limits.
28583 (estimate_function_body_sizes): Compute sizes even when disregarding.
28584
28585 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
28586
28587 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
28588
28589 2010-05-11 Jan Hubicka <jh@suse.cz>
28590
28591 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
28592 into every boundary.
28593
28594 2010-05-11 Jan Hubicka <jh@suse.cz>
28595
28596 * matrix-reorg.c (matrix_reorg): Rebuild edges.
28597
28598 2010-05-11 Jan Hubicka <jh@suse.cz>
28599
28600 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
28601 lto_streamer_cache_delete): Put nodes into heap.
28602 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
28603 heap.
28604
28605 2010-05-11 Jan Hubicka <jh@suse.cz>
28606
28607 * cgraphbuild.c (cgraph_rebuild_references): New.
28608 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
28609 out extern inlines.
28610 * cgraph.h (cgraph_rebuild_references): Declare.
28611 * tree-inline.c (tree_function_versioning): Use it.
28612 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
28613
28614 2010-05-11 Jan Hubicka <jh@suse.cz>
28615
28616 * cgraph.c: Include ipa-utils.h
28617 (cgraph_create_virtual_clone): Update references.
28618 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
28619
28620 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
28621
28622 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
28623 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
28624 cache size.
28625
28626 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
28627
28628 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
28629
28630 2010-05-11 Jakub Jelinek <jakub@redhat.com>
28631
28632 * gcc.c (execute): For -### don't quote arguments that
28633 contain just alphanumerics and _/-. characters.
28634 * doc/invoke.texi: Document that change for -###.
28635
28636 PR debug/44023
28637 * df-problems.c (struct dead_debug): Add to_rescan field.
28638 (dead_debug_init): Clear to_rescan field.
28639 (dead_debug_finish): Rescan all debug insns in to_rescan
28640 bitmap and free the bitmap.
28641 (dead_debug_insert_before): Instead of rescanning debug insns
28642 immediately queue their rescanning until dead_debug_finish.
28643 (df_note_bb_compute): After dead_debug_add do continue instead
28644 of break.
28645
28646 2010-05-10 Jakub Jelinek <jakub@redhat.com>
28647
28648 PR debug/44028
28649 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
28650 clear also INSN_REG_USE_LIST.
28651
28652 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28653
28654 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
28655
28656 2010-05-10 Jan Hubicka <jh@suse.cz>
28657
28658 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
28659 commited change.
28660
28661 2010-05-10 Jan Hubicka <jh@suse.cz>
28662
28663 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
28664 Allocate encoders.
28665 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
28666 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
28667 (lto_streamer_cache_create): Init alloc pool.
28668 (lto_streamer_cache_delete): Free alloc pool.
28669 * lto-streamer.h: Include alloc pool.
28670 (lto_streamer_cache_d): Use alloc pool.
28671 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
28672
28673 2010-05-10 Jan Hubicka <jh@suse.cz>
28674
28675 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
28676 * cgraphbuild.c: Include except.h
28677 (record_type_list, record_eh_tables): New function.
28678 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
28679
28680 2010-05-10 Jan Hubicka <jh@suse.cz>
28681
28682 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
28683 __frame_dummy_init_array_entry, force_to_data): Attribute as used
28684 rather than unused.
28685
28686 2010-05-10 Michael Matz <matz@suse.de>
28687
28688 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
28689 (can_reassociate_p): Use FLOAT_TYPE_P.
28690 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
28691 (vect_force_simple_reduction): ... this.
28692 * tree-parloops.c (gather_scalar_reductions): Use
28693 vect_force_simple_reduction.
28694 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
28695 vect_is_simple_reduction, add modify argument, if true rewrite
28696 "a-b" into "a+(-b)".
28697 (vect_is_simple_reduction, vect_force_simple_reduction): New
28698 functions.
28699 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
28700
28701 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
28702 Vladimir Makarov <vmakarov@redhat.com>
28703
28704 PR rtl-optimization/44012
28705 * ira-build.c (remove_unnecessary_allocnos): Nullify
28706 regno_allocno_map of the removed allocno.
28707
28708 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28709
28710 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
28711 to /dev/null.
28712 * configure: Regenerate.
28713
28714 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28715
28716 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
28717 unused.
28718 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
28719 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
28720 support in Sun ld.
28721 * configure: Regenerate.
28722
28723 2010-05-10 Richard Guenther <rguenther@suse.de>
28724
28725 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
28726 marked if the entry identifier is marked.
28727
28728 2010-05-10 Richard Guenther <rguenther@suse.de>
28729
28730 * c-common.c (struct c_common_attributes): Add fnspec attribute.
28731 (handle_fnspec_attribute): New function.
28732 * gimple.h (gimple_call_return_flags): Declare.
28733 (gimple_call_arg_flags): Likewise.
28734 * gimple.c (gimple_call_arg_flags): New function.
28735 (gimple_call_return_flags): Likewise.
28736 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
28737 New argument flags.
28738 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
28739 return value flags.
28740 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
28741 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
28742 main work to ...
28743 (make_heapvar_for): ... this new function.
28744 (handle_rhs_call): Handle fnspec attribute argument specifiers.
28745 (handle_lhs_call): Likewise.
28746 (find_func_aliases): Adjust.
28747
28748 2010-05-10 Richard Guenther <rguenther@suse.de>
28749
28750 PR tree-optimization/44050
28751 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
28752
28753 2010-05-10 Wei Guozhi <carrot@google.com>
28754
28755 PR target/42879
28756 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
28757
28758 2010-05-09 Joseph Myers <joseph@codesourcery.com>
28759
28760 PR c/10676
28761 * c-typeck.c (lookup_field): Take a type directly. Update
28762 recursive calls.
28763 (build_component_ref): Update call to lookup_field.
28764 (set_init_label): Use lookup_field to find initialized field.
28765 Handle returned list of fields like a sequence of designators.
28766
28767 2010-05-09 Richard Guenther <rguenther@suse.de>
28768
28769 PR middle-end/44024
28770 * fold-const.c (tree_single_nonzero_warnv_p): Properly
28771 handle &FUNCTION_DECL.
28772
28773 2010-05-09 Joseph Myers <joseph@codesourcery.com>
28774
28775 PR c/4784
28776 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
28777 structures and unions recursively.
28778 (detect_field_duplicates): Move duplicate detection with a hash to
28779 detect_field_duplicates_hash. Always use a hash if anonymous
28780 structures or unions are present.
28781 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
28782 give errors.
28783
28784 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
28785
28786 PR target/44046
28787 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
28788 detect Atom, Core 2 and Core i7.
28789
28790 2010-05-09 Richard Guenther <rguenther@suse.de>
28791
28792 * gcc.c (store_arg): Handle temporary file deletion for
28793 joined arguments.
28794
28795 2010-05-09 Richard Guenther <rguenther@suse.de>
28796
28797 PR middle-end/44043
28798 * ipa-inline.c (estimate_function_body_sizes): Return after
28799 disregarding inline limits.
28800
28801 2010-05-09 Richard Guenther <rguenther@suse.de>
28802
28803 * gcc.c (store_arg): Revert last change.
28804
28805 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
28806
28807 PR middle-end/28685
28808 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
28809 (optimize_ops_list): Call it.
28810
28811 2010-05-08 Richard Guenther <rguenther@suse.de>
28812
28813 PR tree-optimization/44030
28814 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
28815 NECESSARY flag if we propagate from a inserted expression.
28816
28817 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
28818
28819 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
28820 domain types as equal if they are both PLACEHOLDER_EXPRs.
28821
28822 2010-05-08 Richard Guenther <rguenther@suse.de>
28823
28824 * lto-wrapper.c (run_gcc): Remove linker output from
28825 command line for LTRANS invocation.
28826
28827 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
28828
28829 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
28830 lto-macho as lto_binary_reader.
28831 * target.h (struct gcc_target): New hooks lto_start and lto_end.
28832 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
28833 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
28834 in lto_start and lto_end calls.
28835 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
28836 magic numbers.
28837 (scan_prog_file): Update is_elf_or_coff call.
28838 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
28839
28840 * collect2.c (main): Fix enum comparison.
28841
28842 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
28843 Add prototypes.
28844 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
28845 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
28846 and TARGET_ASM_LTO_END.
28847 * darwin.c: Include obstack.h and lto-streamer.h.
28848 (lto_section_names_offset, lto_section_names_obstack,
28849 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
28850 global variables.
28851 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
28852 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
28853 to a temporary file.
28854 (darwin_asm_lto_end): New function. Restore asm_out_file.
28855 (darwin_asm_named_section): For LTO sections, replace the name with
28856 the offset of the section name in a string table, and build this
28857 table.
28858 (darwin_file_start): Initialize global vars for LTO support.
28859 (darwin_file_end): If output to asm_out_file was redirected, append it
28860 to the proper asm_out_file here. Add the section names section.
28861
28862 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
28863
28864 * c-pragma.c (pending_weak_d, pending_weak): New.
28865 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
28866 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
28867 handle_pragma_weak): Update the uses of pending_weaks.
28868
28869 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28870
28871 PR documentation/44016
28872 * doc/standards.texi (Standards): Link to unversioned
28873 cxx0x_status.html page.
28874
28875 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
28876
28877 PR target/43708
28878 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
28879 in addition to TREE_USED, to avoid "set but unused" warnings.
28880
28881 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28882
28883 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
28884 (is_loop_prefetching_profitable): Do not insert prefetches
28885 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
28886 times the prefetch ahead distance.
28887
28888 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28889
28890 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
28891 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
28892 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
28893 the unroll_factor.
28894
28895 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
28896
28897 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
28898 a diagnostic info when the insn-to-mem ratio is too small.
28899
28900 2010-05-07 Richard Guenther <rguenther@suse.de>
28901
28902 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
28903 the linker plugin.
28904 (store_arg): Queue temp_filename for deletion instead of
28905 the whole argument.
28906
28907 2010-05-07 Richard Guenther <rguenther@suse.de>
28908
28909 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
28910 (run_gcc): Handle LTRANS phase invocation.
28911 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
28912
28913 2010-05-07 Jakub Jelinek <jakub@redhat.com>
28914
28915 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
28916 this is also meaningful on PARM_DECLs and RESULT_DECLs.
28917
28918 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28919
28920 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
28921
28922 2010-05-07 Richard Guenther <rguenther@suse.de>
28923
28924 PR tree-optimization/44020
28925 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
28926 code when PRE is not yet initialized.
28927
28928 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28929
28930 * config/mips/dbxmdebug.h: Remove.
28931 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
28932
28933 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
28934
28935 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
28936 with null pointer and also warn about ordered comparison of zero with
28937 pointer if -Wextra.
28938
28939 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
28940
28941 * graphite-blocking.c
28942 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
28943 * graphite-clast-to-gimple.c
28944 (clast_to_gcc_expression): Same.
28945 (precision_for_value): Same.
28946 (precision_for_interval): Same.
28947 (gcc_type_for_interval): Same.
28948 (graphite_create_new_guard): Same.
28949 (compute_bounds_for_level): Same.
28950 (graphite_create_new_loop_guard): Same.
28951 * graphite-interchange.c
28952 (build_linearized_memory_access): Same.
28953 (pdr_stride_in_loop): Same.
28954 (memory_strides_in_loop_1): Same.
28955 (memory_strides_in_loop): Same.
28956 (extend_scattering): Same.
28957 (psct_scattering_dim_for_loop_depth): Same.
28958 (pbb_number_of_iterations): Same.
28959 * graphite-poly.h
28960 (debug_iteration_domains): Same.
28961 * graphite-ppl.c
28962 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
28963 (ppl_set_inhomogeneous_gmp): Same.
28964 (ppl_strip_loop): Same.
28965 (ppl_lexico_compare_linear_expressions): Same.
28966 (ppl_read_polyhedron_matrix): Same.
28967 (ppl_max_for_le_pointset): Same.
28968 * graphite-ppl.h
28969 (ppl_read_polyhedron_matrix): Same.
28970 (tree_int_to_gmp): Same.
28971 (gmp_cst_to_tree): Same.
28972 (ppl_set_inhomogeneous): Same.
28973 (ppl_set_inhomogeneous_tree): Same.
28974 (ppl_set_coef): Same.
28975 (ppl_set_coef_tree): Same.
28976 * graphite-sese-to-poly.c
28977 (build_pbb_scattering_polyhedrons): Same.
28978 (build_scop_scattering): Same.
28979 (scan_tree_for_params_right_scev): Same.
28980 (scan_tree_for_params): Same.
28981 (find_params_in_bb): Same.
28982 (find_scop_parameters): Same.
28983 (add_upper_bounds_from_estimated_nit): Same.
28984 (build_loop_iteration_domains): Same.
28985 (add_condition_to_domain): Same.
28986 (pdr_add_memory_accesses): Same.
28987
28988 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
28989
28990 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
28991 CLooG's value_* macros to their respective mpz_* counterparts.
28992 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
28993 (graphite_create_new_loop_guard): Same.
28994 * graphite-interchange.c (build_linearized_memory_access): Same.
28995 (pdr_stride_in_loop): Same.
28996 (memory_strides_in_loop_1): Same.
28997 (1st_interchange_profitable_p): Same.
28998 * graphite-poly.c (extend_scattering): Same.
28999 (psct_scattering_dim_for_loop_depth): Same.
29000 (pbb_number_of_iterations): Same.
29001 (pbb_number_of_iterations_at_time): Same.
29002 * graphite-poly.h (new_1st_loop): Same.
29003 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
29004 (oppose_constraint): Same.
29005 (insert_constraint_into_matrix): Same.
29006 (ppl_set_inhomogeneous_gmp): Same.
29007 (ppl_set_coef_gmp): Same.
29008 (ppl_strip_loop): Same.
29009 (ppl_lexico_compare_linear_expressions): Same.
29010 (ppl_max_for_le_pointset): Same.
29011 (ppl_min_for_le_pointset): Same.
29012 (ppl_build_realtion): Same.
29013 * graphite-ppl.h (gmp_cst_to_tree): Same.
29014 (ppl_set_inhomogeneous): Same.
29015 (ppl_set_inhomogeneous_tree): Same.
29016 (ppl_set_coef): Same.
29017 (ppl_set_coef_tree): Same.
29018 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
29019 (build_scop_scattering): Same.
29020 (add_value_to_dim): Same.
29021 (scan_tree_for_params_right_scev): Same.
29022 (scan_tree_for_params_int): Same.
29023 (scan_tree_for_params): Same.
29024 (find_params_in_bb): Same.
29025 (find_scop_parameters): Same.
29026 (add_upper_bounds_from_estimated_nit): Same.
29027 (build_loop_iteration_domains): Same.
29028 (create_linear_expr_from_tree): Same.
29029 (add_condition_to_domain): Same.
29030 (pdr_add_memory_accesses): Same.
29031
29032 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
29033 Jason Merrill <jason@redhat.com>
29034
29035 * c-common.c (c_common_reswords): Add nullptr.
29036 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
29037 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
29038 (gen_type_die_with_usage): Likewise.
29039 * dbxout.c (dbxout_type): Likewise.
29040 * sdbout.c (plain_type_1): Likewise.
29041
29042 2010-05-06 Jason Merrill <jason@redhat.com>
29043
29044 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
29045 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
29046 ret appropriately.
29047 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
29048
29049 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
29050 stripping WITH_SIZE_EXPR.
29051 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
29052 change.
29053
29054 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29055
29056 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
29057 list of obsolete configurations.
29058 Disabled check for obsolete configurations.
29059 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
29060 Removed support for previous versions.
29061 * config/mips/iris.h: Removed.
29062 * config/mips/iris5.h: Removed.
29063 * config/mips/iris6.h: Merged old iris.h contents.
29064 (TARGET_IRIX): Removed.
29065 (DRIVER_SELF_SPECS): Removed mabi=32.
29066 (IDENT_ASM_OP): Removed undef.
29067 (STARTFILE_SPEC): Removed mabi=32.
29068 (ENDFILE_SPEC): Likewise.
29069 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
29070 (MACHINE_TYPE): Update for IRIX 6.5.
29071 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
29072 TARGET_IRIX by TARGET_IRIX6.
29073 (mips_file_start): Likewise.
29074 (mips_output_external): Remove IRIX 5/6 O32 support.
29075 (mips_output_function_prologue): Likewise.
29076 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
29077 TARGET_IRIX6.
29078 (TARGET_CPU_CPP_BUILTINS): Likewise.
29079 (TARGET_IRIX): Removed.
29080 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
29081 (MULTILIB_DIRNAMES): Removed 32.
29082 (MULTILIB_OSDIRNAMES): Removed ../lib.
29083 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
29084 (Specific, mips-sgi-irix5): Document removal.
29085 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
29086 Remove references to older IRIX 6 releases and the O32 ABI.
29087
29088 2010-05-06 Jakub Jelinek <jakub@redhat.com>
29089
29090 PR bootstrap/43994
29091 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
29092 instead of DF_REF_REAL_REG.
29093
29094 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
29095
29096 PR target/43888
29097 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
29098 handling to still return true for x64 targets.
29099
29100 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
29101
29102 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
29103
29104 2010-05-06 Jan Hubicka <jh@suse.cz>
29105
29106 PR tree-optimization/43791
29107 * ipa-inline.c (update_caller_keys): Remove bogus
29108 disregard_inline_limits check.
29109
29110 2010-05-06 Michael Matz <matz@suse.de>
29111
29112 PR tree-optimization/43984
29113 * tree-ssa-pre.c (inserted_phi_names): Remove.
29114 (inserted_exprs): Change to bitmap.
29115 (create_expression_by_pieces): Set bits, don't append to vector.
29116 (insert_into_preds_of_block): Don't handle inserted_phi_names.
29117 (eliminate): Don't look at inserted_phi_names, remove deleted
29118 insns from inserted_exprs.
29119 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
29120 (init_pre, fini_pre): Allocate and free bitmaps.
29121 (execute_pre): Insert insns on edges before elimination.
29122
29123 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
29124
29125 * tree.c (initializer_zerop): Handle STRING_CST.
29126
29127 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
29128
29129 PR 40989
29130 * doc/invoke.texi (Wimplicit): Document as C only.
29131 * opts.c (common_handle_option): Add argument kind.
29132 (handle_option): Rename as read_cmdline_option. Factor out code to...
29133 (handle_option): ... here. New.
29134 (handle_options): Rename as read_cmdline_options.
29135 (decode_options): Update call.
29136 (set_option): Use option index instead of option pointer. Classify
29137 diagnostics correctly.
29138 (enable_warning_as_error): Call handle_option.
29139 * opts.h (set_option): Update declaration.
29140 (handle_option): Declare.
29141 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
29142 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
29143 * c-opts.c (set_Wimplicit): Delete.
29144 (c_family_lang_mask): New static constant.
29145 (c_common_handle_option): Add argument kind. Use handle_option
29146 instead of set_Wimplicit.
29147 (c_common_post_options): warn_implicit and warn_implicit_int
29148 are disabled by default.
29149 * c-common.c (warn_implicit): Do not define here.
29150 * c-common.h (warn_implicit): Do not declare here.
29151 (c_common_handle_option): Update declaration.
29152 * lto-opts.c (lto_reissue_options): Update call to set_option.
29153
29154 2010-05-06 Richard Guenther <rguenther@suse.de>
29155
29156 PR tree-optimization/43571
29157 * domwalk.c (walk_dominator_tree): Walk the dominator
29158 sons in more optimal order.
29159
29160 2010-05-06 Richard Guenther <rguenther@suse.de>
29161
29162 PR tree-optimization/43934
29163 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
29164 (stmt_cost): Likewise.
29165 (extract_true_false_args_from_phi): New helper.
29166 (determine_max_movement): For PHI nodes verify we can hoist them
29167 and compute their cost.
29168 (determine_invariantness_stmt): Handle PHI nodes.
29169 (move_computations_stmt): Likewise. Hoist PHI nodes in
29170 if-converted form using COND_EXPRs.
29171 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
29172 (tree_ssa_lim): Likewise.
29173 * tree-flow.h (tree_ssa_lim): Adjust prototype.
29174 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
29175
29176 2010-05-06 Richard Guenther <rguenther@suse.de>
29177
29178 PR tree-optimization/43987
29179 * tree-ssa-structalias.c (could_have_pointers): For possibly
29180 address-taken variables force pointers to be recorded.
29181 (create_variable_info_for_1): Likewise.
29182 (push_fields_onto_fieldstack): Pass in wheter all fields
29183 must have pointers.
29184 (find_func_aliases): Query types instead of vars whether
29185 they contain pointers where appropriate.
29186
29187 2010-05-06 Jan Hubicka <jh@suse.cz>
29188
29189 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
29190 (record_reference, mark_address, mark_load, mark_store): Record
29191 references.
29192 (record_references_in_initializer): Update call of record_references.
29193 (rebuild_cgraph_edges): Remove all references before rebuiding.
29194 * cgraph.c (cgraph_create_node): Clear ref list.
29195 (cgraph_remove_node): Remove references.
29196 (dump_cgraph_node): Dump references.
29197 (cgraph_clone_node): Clone references.
29198 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
29199 (struct cgraph_node, varpool_node): Add ref_lst.
29200 * ipa-ref.c: New file.
29201 * ipa-ref.h: New file.
29202 * ipa-ref-inline.h: New file.
29203 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
29204 (referenced_from_other_partition_p): New function.
29205 (lto_output_varpool_node): Take set arugment; call
29206 referenced_from_other_partition.
29207 (lto_output_ref): New.
29208 (add_references): New.
29209 (output_refs): New.
29210 (output_cgraph): Compute boundary based on references; output refs.
29211 (output_varpool): Accept cgraph_node_set argument.
29212 (input_ref): New.
29213 (input_refs): New.
29214 (input_cgraph): Call input_refs.
29215 * lto-section-in.c (lto_section_name): Add refs.
29216 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
29217 (ipa-ref.o): New file.
29218 * varpool.c (varpool_node): Clear ipa ref list.
29219 (varpool_remove_node): Remove references.
29220 (dump_varpool_node): Dump references.
29221 (varpool_assemble_decl): Only compile finalized ones.
29222 (varpool_extra_name_alias): Initialize ref list.
29223 * lto-streamer.c (lto-get_section_name): Add .refs section.
29224 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
29225 (referenced_from_other_partition_p): Declared.
29226
29227 2010-05-06 Ira Rosen <irar@il.ibm.com>
29228
29229 PR tree-optimization/43901
29230 * tree-vect-stmts.c (vectorizable_call): Assert that vector
29231 type is not NULL if it's transformation phase, and return
29232 FALSE if it's analysis.
29233 (vectorizable_conversion, vectorizable_operation,
29234 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
29235
29236 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
29237
29238 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
29239 Delete.
29240 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
29241 New define.
29242 * config/mips/mips-protos.h
29243 (mips_small_register_classes_for_mode_p): Delete prototype.
29244
29245 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
29246
29247 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
29248 * config/arm/arm.c (multiple_operation_profitable_p,
29249 compute_offset_order): New static functions.
29250 (load_multiple_sequence, store_multiple_sequence): Use them.
29251 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
29252 memory offsets, not register numbers.
29253 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
29254
29255 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
29256
29257 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
29258 (get_pending_sizes, put_pending_size, put_pending_sizes):
29259 Update the uses of pending_sizes.
29260 * c-decl.c (store_parm_decls): Likewise.
29261 * c-tree.h (struct c_arg_info): Likewise.
29262 * tree.h: Update the prototype for get_pending_sizes and
29263 put_pending_sizes.
29264
29265 2010-05-05 Jason Merrill <jason@redhat.com>
29266
29267 PR debug/43370
29268 * c-common.c (handle_aligned_attribute): Respect
29269 ATTR_FLAG_TYPE_IN_PLACE.
29270
29271 PR testsuite/43758
29272 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
29273 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
29274 (TARGET_INITIALIZER): Use it.
29275 * c-common.c (attribute_takes_identifier_p): Call it.
29276 * c-common.h: Update prototype.
29277 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
29278 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
29279
29280 2010-05-05 Jakub Jelinek <jakub@redhat.com>
29281
29282 PR debug/43950
29283 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
29284 DW_ID_down_case for Fortran compilation units.
29285
29286 2010-05-05 Jan Hubicka <jh@suse.cz>
29287
29288 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
29289 handle aliases.
29290
29291 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
29292
29293 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
29294 a variable-sized RESULT_DECL.
29295
29296 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
29297
29298 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
29299
29300 2010-05-05 Jason Merrill <jason@redhat.com>
29301
29302 PR c++/43787
29303 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
29304 returns GS_OK.
29305 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
29306
29307 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
29308 Jakub Jelinek <jakub@redhat.com>
29309
29310 PR debug/43478
29311 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
29312 (dead_debug_init, dead_debug_finish): New functions.
29313 (dead_debug_add, dead_debug_insert_before): Likewise.
29314 (df_note_bb_compute): Initialize a dead_debug object, add dead
29315 debug uses to it, insert debug bind insns before death insns,
29316 reset debug insns that refer to pending uses at the end.
29317 * rtl.h (make_debug_expr_from_rtl): New prototype.
29318 * varasm.c (make_debug_expr_from_rtl): New function.
29319
29320 2010-05-05 Jan Hubicka <jh@suse.cz>
29321
29322 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
29323 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
29324 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
29325 lto_varpool_encoder_deref, lto_varpool_encoder_size,
29326 lto_varpool_encoder_encode_initializer_p,
29327 lto_set_varpool_encoder_encode_initializer): New functions.
29328 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
29329 call output_varpool.
29330 (input_varpool_node): Do not always set analyzed.
29331 (input_cgraph_1): Return vector of cgraph nodes.
29332 (input_varpool_1): Return vector of varpools.
29333 (input_cgraph): Free the vectors.
29334 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
29335 output only initializers needed.
29336 (lto_output): Only call output_cgraph.
29337 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
29338 * lto-section-out.c (lto_new_out_decl_state): Initialize
29339 state->varpool_node_encoder.
29340 * lto-streamer.h (lto_varpool_encoder_d): New.
29341 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
29342 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
29343 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
29344 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
29345 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
29346 Declare.
29347 (output_varpool, input_varpool): Remove declarations.
29348
29349 2010-05-05 Jan Hubicka <jh@suse.cz>
29350
29351 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
29352 with body can prevail.
29353
29354 2010-05-05 Jan Hubicka <jh@suse.cz>
29355
29356 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
29357 size.
29358
29359 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
29360
29361 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
29362
29363 * gengtype.h (erro_at_line): Constify pos argument.
29364
29365 * gengtype.c: Include hashtab.h.
29366 (enum gc_used): Document GC_MAYBE_POINTED_TO.
29367 (error_at_line): Constify pos argument.
29368 (do_typedef): Initialize p->opt field.
29369 (get_file_gtfilename): Fix comment typo.
29370 (struct walk_type_data): Constify line field.
29371 (get_output_file_for_structure): New function.
29372 (write_local_func_for_structure): Constify orig_s argument.
29373 Use get_output_file_for_structure.
29374 (write_func_for_structure): Use get_output_file_for_structure.
29375 (INDENT): New define.
29376 (dump_pair, dump_type, dump_type_list, dump_typekind)
29377 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
29378 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
29379 functions.
29380 (seen_types): New variable.
29381 (main): New variable do_dump. Process "-d" command line option.
29382 Call dump_everything if dump requested.
29383
29384 2010-05-05 Jakub Jelinek <jakub@redhat.com>
29385
29386 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
29387 in a temporary instead of invoking the macro multiple times.
29388 (track_expr_p): Likewise.
29389
29390 2010-05-04 Neil Vachharajani <nvachhar@google.com>
29391
29392 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
29393 per new semantics.
29394 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
29395 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
29396 conditions for printing notes.
29397 * common.opt (-Wcoverage-mismatch): Allow negative, default to
29398 true, update documentation.
29399 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
29400
29401 2010-05-04 Jakub Jelinek <jakub@redhat.com>
29402
29403 PR c/43981
29404 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
29405 on dimen.
29406
29407 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
29408
29409 PR target/43799
29410 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
29411 (*sse_prologue_save_insn1): Likewise.
29412 (SSE prologue save splitter): Likewise.
29413
29414 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
29415
29416 * tree.c (free_lang_data_in_one_sizepos): New inline function.
29417 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
29418 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
29419 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
29420 all decls. Call it on DECL_FIELD_OFFSET of fields.
29421 (find_decls_types_r): Follow DECL_VALUE_EXPR.
29422 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
29423
29424 2010-05-04 Martin Jambor <mjambor@suse.cz>
29425
29426 * tree-sra.c (build_access_from_expr_1): The first parameter type
29427 changed to simple tree.
29428 (build_access_from_expr): Likewise, gsi parameter was eliminated.
29429 (scan_assign_result): Renamed to assignment_mod_result, enum elements
29430 renamed as well.
29431 (build_accesses_from_assign): Removed all parameters except for a
29432 simple gimple statement. Now returns a simple bool.
29433 (scan_function): All non-analysis parts moved to separate functions
29434 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
29435 parameters and updated both callers.
29436 (sra_modify_expr): Removed parameter data.
29437 (sra_modify_function_body): New function.
29438 (perform_intra_sra): Call sra_modify_function_body to modify the
29439 function body.
29440 (replace_removed_params_ssa_names): Parameter data changed into
29441 adjustments vector.
29442 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
29443 changed the parameter dont_convert to convert with the opposite
29444 meaning.
29445 (sra_ipa_modify_assign): Parameter data changed into adjustments
29446 vector, return value changed to bool.
29447 (ipa_sra_modify_function_body): New function.
29448 (sra_ipa_reset_debug_stmts): Updated a comment.
29449 (modify_function): Use ipa_sra_modify_function_body to modify function
29450 body.
29451
29452 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
29453
29454 PR middle-end/43671
29455 * alias.c (true_dependence): Handle the same VALUE in x and mem.
29456 (canon_true_dependence): Likewise.
29457 (write_dependence_p): Likewise.
29458
29459 2010-05-04 Jan Hubicka <jh@suse.cz>
29460
29461 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
29462 * cgraphbuild.c: Include ipa-utils.h
29463 (record_reference_ctx): New struct.
29464 (record_reference): Simplify to work on initializers; not statements.
29465 (mark_address, mark_load, mark_store): New.
29466 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
29467 walk PHI nodes too.
29468 (record_references_in_initializer): Update use of record_reference.
29469 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
29470 walk PHI nodes too.
29471
29472 2010-05-04 Jan Hubicka <jh@suse.cz>
29473
29474 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
29475 node will be removed anyway.
29476 (lto_varpool_replace_node): Allow also unanalyzed nodes;
29477 relink aliases of node into prevailing node.
29478 * varpool.c (varpool_remove_node): Remove aliases properly;
29479 when removing node, remove all its aliases too; remove DECL_INITIAL
29480 of removed node; ggc_free the varpool node.
29481
29482 2010-05-04 Richard Guenther <rguenther@suse.de>
29483
29484 PR tree-optimization/43879
29485 * tree-ssa-structalias.c (alias_get_name): Use
29486 DECL_ASSEMBLER_NAME if available.
29487 (create_function_info_for): Return the varinfo node.
29488 (ipa_pta_execute): Associate same-body aliases and extra names
29489 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
29490
29491 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
29492
29493 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
29494
29495 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
29496
29497 PR bootstrap/43964
29498 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
29499 only if HONOR_REG_ALLOC_ORDER is not defined.
29500
29501 2010-05-04 Richard Guenther <rguenther@suse.de>
29502
29503 PR tree-optimization/43949
29504 * tree-vrp.c (extract_range_from_binary_expr): Only handle
29505 TRUNC_MOD_EXPR.
29506
29507 2010-04-26 Jason Merrill <jason@redhat.com>
29508
29509 * c.opt (-fstrict-enums): New.
29510 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
29511
29512 2010-05-03 David Ung <davidu@mips.com>
29513 James E. Wilson <wilson@codesourcery.com>
29514
29515 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
29516 emit the trap instruction before the divide for TUNE_74K.
29517
29518 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
29519
29520 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
29521 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
29522 based on the above, for new target hook.
29523
29524 * hooks.c (hook_bool_mode_true): New generic hook.
29525 * hooks.h (hook_bool_mode_true): Add prototype.
29526
29527 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
29528 target hook.
29529 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
29530 target hook, set to hook_bool_mode_false.
29531 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
29532 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
29533 with targetm.small_register_classes_for_mode_p.
29534 (find_reusable_reload): Likewise.
29535 (combine_reloads): Likewise.
29536 * reload1.c (reload_as_needed): Likewise.
29537 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
29538 * ifcvt.c (noce_process_if_block, check_cond_move_block,
29539 dead_or_predicable): Likewise.
29540 * regmove.c (optimize_reg_copy_1): Likewise.
29541 * calls.c (prepare_call_address): Likewise.
29542 (precompute_register_parameters): Likewise.
29543
29544 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
29545 hook definition.
29546 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
29547 implementation of the hook that considers all register classes
29548 small except for SH64.
29549 (sh_override_options): Use the new hook.
29550 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
29551 Add prototype.
29552
29553 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
29554 hook definition.
29555 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
29556 implementation of the hook that considers all register classes
29557 small for THUMB1.
29558 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
29559 Add prototype.
29560
29561 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
29562 hook definition.
29563 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
29564 implementation of the hook that considers all register classes
29565 small for MIPS16.
29566 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
29567 Add prototype.
29568
29569 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
29570 hook definition.
29571 * config/m32c/m32c.h: Likewise.
29572 * config/pdp11/pdp11.h: Likewise.
29573 * config/avr/avr.h: Likewise.
29574 * config/xtensa/xtensa.h: Likewise.
29575 * config/m68hc11/m68hc11.h: Likewise.
29576 * config/mn10300/mn10300.h: Likewise.
29577 * config/mcore/mcore.h: Likewise.
29578 * config/h8300/h8300.h: Likewise.
29579 * config/bfin/bfin.h: Likewise.
29580
29581 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
29582 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
29583
29584 2010-05-03 Anatoly Sokolov <aesok@post.ru>
29585
29586 * double-int.h (tree_to_double_int): Remove macro.
29587 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
29588 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
29589 (tree_to_double_int): New function.
29590 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
29591 Move ...
29592 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
29593
29594 2010-05-03 Richard Guenther <rguenther@suse.de>
29595
29596 PR tree-optimization/43971
29597 * tree-ssa-structalias.c (get_constraint_for_1): Fix
29598 constraints in the !flag_delete_null_pointer_checks case.
29599
29600 2010-05-03 Jakub Jelinek <jakub@redhat.com>
29601
29602 PR debug/43972
29603 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
29604 result mode matches original rtl mode.
29605
29606 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
29607
29608 PR target/43888
29609 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
29610
29611 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
29612
29613 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
29614 when processing flag options.
29615
29616 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
29617
29618 * gcov-iov.c (main): Change format string placeholder
29619 from %#08x to 0x%08x.
29620 * genchecksum.c (dosum): Change format string placeholder
29621 from %#02x to 0x%02x.
29622
29623 2010-05-02 Richard Guenther <rguenther@suse.de>
29624
29625 PR tree-optimization/43879
29626 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
29627
29628 2010-05-02 Bruno Haible <bruno@clisp.org>
29629
29630 * doc/extend.texi (Function Attributes): Fix a typo.
29631
29632 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
29633
29634 Revert:
29635 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
29636 placeholder from 0x%x to %#x.
29637 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
29638 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
29639 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
29640 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
29641 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
29642 * config/i386/i386.c (ix86_target_string): Ditto.
29643 * config/i386/i386.c (output_pic_addr_const): Ditto.
29644 (print_operand): Ditto.
29645
29646 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
29647
29648 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
29649 placeholder from 0x%x to %#x.
29650 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
29651 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
29652 (ASM_OUTPUT_DEBUG_DATA): Ditto.
29653 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
29654 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
29655 * optc-gen.awk: Ditto.
29656 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
29657 (HOST_WIDE_INT_PRINT_HEX): Ditto.
29658 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
29659 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
29660
29661 2010-05-01 Anatoly Sokolov <aesok@post.ru>
29662
29663 * target.h (struct calls): Add function_value_regno_p field.
29664 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
29665 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
29666 * targhooks.c (default_function_value_regno_p): New function.
29667 * targhooks.h (default_function_value_regno_p): Declare function.
29668 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
29669 * builtins.c. (apply_result_size): (Ditto.).
29670 * combine.c. (likely_spilled_retval_p): (Ditto.).
29671 * mode-switching.c. Include 'target.h'.
29672 (create_pre_exit): Use function_value_regno_p hook.
29673 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
29674 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
29675 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
29676
29677 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
29678 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
29679 (ix86_function_value_regno_p): Declare as static, change argument
29680 type to const unsigned int.
29681 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
29682
29683 2010-05-01 Richard Guenther <rguenther@suse.de>
29684
29685 PR tree-optimization/43949
29686 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
29687 types.
29688 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
29689
29690 2010-05-01 Anatoly Sokolov <aesok@post.ru>
29691
29692 * rtl.h (CONST_DOUBLE_P): Define.
29693 (rtx_to_double_int): Declare.
29694 * emit-rtl.c (rtx_to_double_int): New function.
29695 * dwarf2out.c (insert_double): New function.
29696 (loc_descriptor, add_const_value_attribute): Clean up, use
29697 rtx_to_double_int and insert_double functions.
29698
29699 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
29700
29701 * doc/extend.texi (Inline): Add missing return keyword to examples.
29702 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
29703 "command-line".
29704
29705 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
29706
29707 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
29708 the variable part of the offset as well. Use highest_pow2_factor for
29709 all alignment checks.
29710
29711 2010-04-30 Richard Guenther <rguenther@suse.de>
29712
29713 PR tree-optimization/43879
29714 * tree-ssa-structalias.c (type_could_have_pointers): Functions
29715 can have pointers.
29716
29717 2010-04-30 Jan Hubicka <jh@suse.cz>
29718
29719 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
29720 varpool.
29721 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
29722
29723 2010-04-30 Jan Hubicka <jh@suse.cz>
29724
29725 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
29726 New.
29727 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
29728 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
29729 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
29730 cgraph_node_set_needs_ltrans_p): Remove.
29731
29732 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
29733
29734 * sdbout.c: Include vec.h, do not include varray.h.
29735 (deferred_global_decls, sdbout_global_decl,
29736 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
29737 * toplev.c: Do not include varray.h.
29738 (dump_memory_report): Do not dump VARRAY statistics.
29739 * gengtype.c (open_base_file): Ignore varray.h.
29740 * Makefile.in: Update for abovementioned changes.
29741 Remove all traces of varray.c and varray.h.
29742 * varray.c: Remove file.
29743 * varray.h: Remove file.
29744
29745 2010-04-30 Jan Hubicka <jh@suse.cz>
29746
29747 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
29748 references.
29749
29750 2010-04-30 Jan Hubicka <jh@suse.cz>
29751
29752 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
29753 needed.
29754
29755 2010-04-30 Richard Guenther <rguenther@suse.de>
29756
29757 * tree-ssa-structalias.c (get_constraint_for_1): Generate
29758 constraints for CONSTRUCTOR.
29759
29760 2010-04-30 Richard Guenther <rguenther@suse.de>
29761
29762 PR lto/43946
29763 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
29764 first after all lowering passes.
29765
29766 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
29767
29768 * toplev.c: Include varray.h for statistics dumping.
29769 * tree.h: Do not declare varray_head_tag.
29770 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
29771 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
29772 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
29773 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
29774 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
29775 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
29776 c-common.c, c-common.h, reg-stack.c, basic-block.h,
29777 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
29778 include varray.h.
29779 * Makefile.in: Update for abovementioned changes.
29780
29781 2010-04-30 Jakub Jelinek <jakub@redhat.com>
29782
29783 PR debug/43942
29784 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
29785
29786 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
29787
29788 * config/picochip/picochip.c (picochip_legitimize_address): Define.
29789 Use this function to do machine-specific conversion.
29790 (picochip_legitimize_reload_address): Likewise.
29791 (picochip_legitimate_address_p): Check valid base register only if
29792 strict.
29793 (picochip_check_conditional_copy): Check for modw only if opnd is
29794 register.
29795 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
29796 to call the function in c.
29797 * config/picochip/picochip-protos.h
29798 (picochip_legitimize_reload_address): Define.
29799 * config/picochip/picochip.md (supported_compare1): Define.
29800
29801 2010-04-30 Jan Hubicka <jh@suse.cz>
29802
29803 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
29804 (cgraph_global_info): Remove inlined.
29805 (LTO_cgraph_tag_names): Remove.
29806 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
29807 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
29808 simplify cgraph tags and document.
29809 (lto_output_node): Use only LTO_cgraph_unavail_node and
29810 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
29811 for_functions_valid, global info, process and output flags.
29812 (input_overwrite_node): Initialize estimated stack size and
29813 estimated growth. Do not read flags we no longer store.
29814 (input_node): Likewise do not read info no longer stored.
29815 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
29816 flag.
29817
29818 2010-04-30 Richard Guenther <rguenther@suse.de>
29819
29820 PR tree-optimization/43879
29821 * tree-ssa-structalias.c (get_constraint_for_1): Properly
29822 handle non-zero initializers.
29823
29824 2010-04-30 Richard Guenther <rguenther@suse.de>
29825
29826 * builtins.c (fold_builtin_1): Delete free (0).
29827
29828 2010-04-29 Jan Hubicka <jh@suse.cz>
29829
29830 * gengtype.c (open_base_files): Add lto-streamer.h
29831 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
29832 (pass_ipa_cp): GGC collect.
29833 * toplev. (compile_file): Do not output symbols.
29834 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
29835 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
29836 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
29837 * lto-section-in.c: Include ggc.h
29838 (lto_new_in_decl_state): Alloc in GGC.
29839 (lto_delete_in_decl_state): Likewise.
29840 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
29841 Collect.
29842
29843 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
29844
29845 PR target/42895
29846 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
29847 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
29848 (HONOR_REG_ALLOC_ORDER): Describe new macro.
29849 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
29850 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
29851 account only if HONOR_REG_ALLOC_ORDER is not defined.
29852 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
29853 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
29854
29855 2010-04-29 Jon Grant <04@jguk.org>
29856
29857 * collect2.c (vflag): Change type from int to bool.
29858 (debug): Likewise.
29859 (helpflag): New global bool.
29860 (main): Set vflag and debug with boolean, not integer truth values.
29861 Accept new "--help" option and output usage text if found.
29862 * collect2.h (vflag): Update prototype.
29863 (debug): Likewise.
29864
29865 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
29866
29867 PR bootstrap/43936
29868 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
29869
29870 2010-04-29 Richard Guenther <rguenther@suse.de>
29871
29872 PR bootstrap/43935
29873 * plugin.h (invoke_plugin_callbacks): Annotate arguments
29874 with ATTRIBUTE_UNUSED.
29875
29876 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
29877
29878 PR target/43921
29879 * config/i386/i386.c (get_some_local_dynamic_name): Replace
29880 INSN_P with NONDEBUG_INSN_P.
29881 (distance_non_agu_define): Likewise.
29882 (distance_agu_use): Likewise.
29883
29884 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
29885
29886 From Dominique d'Humieres <dominiq@lps.ens.fr>
29887 PR bootstrap/43858
29888 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
29889 test_set.
29890
29891 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
29892
29893 * plugin.h (invoke_plugin_callbacks): New inline function.
29894 * plugin.c (flag_plugin_added): New global flag.
29895 (add_new_plugin): Initialize above flag.
29896 (invoke_plugin_callbacks): Rename to ...
29897 (invoke_plugin_callbacks_full): ... this.
29898
29899 2010-04-28 Jan Hubicka <jh@suse.cz>
29900
29901 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
29902 (lto_varpool_replace_node): New.
29903 (lto_symtab_resolve_symbols): Resolve varpool nodes.
29904 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
29905 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
29906 * cgraph.h (varpool_node_ptr): New type.
29907 (varpool_node_ptr): New vector.
29908 (varpool_node_set_def): New structure.
29909 (varpool_node_set): New type.
29910 (varpool_node_set): New vector.
29911 (varpool_node_set_element_def): New structure.
29912 (varpool_node_set_element, const_varpool_node_set_element): New types.
29913 (varpool_node_set_iterator): New type.
29914 (varpool_node): Add prev pointers, add used_from_other_partition,
29915 in_other_partition.
29916 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
29917 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
29918 varpool_get_node, varpool_remove_node): Declare.
29919 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
29920 varpool_node_set_size): New inlines.
29921 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
29922 * tree-pass.h (varpool_node_set_def): Forward declare.
29923 (ipa_opt_pass_d): Summary writting takes vnode sets too.
29924 (ipa_write_optimization_summaries): Update prototype.
29925 * ipa-cp.c (ipcp_write_summary): Update.
29926 * ipa-reference.c (ipa_reference_write_summary): Update.
29927 * lto-cgraph.c (lto_output_varpool_node): New static function.
29928 (output_varpool): New function.
29929 (input_varpool_node): New static function.
29930 (input_varpool_1): New function.
29931 (input_cgraph): Input varpool.
29932 * ipa-pure-const.c (pure_const_write_summary): Update.
29933 * lto-streamer-out.c (lto_output): Update, output varpool too.
29934 (write_global_stream): Kill WPA hack.
29935 (produce_asm_for_decls): Update.
29936 (output_alias_pair_p): Handle variables.
29937 (output_unreferenced_globals): Output only needed partition of varpool.
29938 * ipa-inline.c (inline_write_summary): Update.
29939 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
29940 cgraph.
29941 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
29942 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
29943 varpool_node_set_new, varpool_node_set_add,
29944 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
29945 debug_varpool_node_set): New functions.
29946 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
29947 (execute_one_pass): Process new decls too.
29948 (ipa_write_summaries_2): Pass around vsets.
29949 (ipa_write_summaries_1): Likewise.
29950 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
29951 to add.
29952 (ipa_write_optimization_summaries_1): Pass around vsets.
29953 (ipa_write_optimization_summaries): Likewise.
29954 * varpool.c (varpool_get_node): New.
29955 (varpool_node): Update doubly linked lists.
29956 (varpool_remove_node): New.
29957 (dump_varpool_node): More dumping.
29958 (varpool_enqueue_needed_node): Update doubly linked lists.
29959 (decide_is_variable_needed): Kill ltrans hack.
29960 (varpool_finalize_decl): Kill lto hack.
29961 (varpool_assemble_decl): Skip decls in other partitions.
29962 (varpool_assemble_pending_decls): Update doubly linkes lists.
29963 (varpool_empty_needed_queue): Likewise.
29964 (varpool_extra_name_alias): Likewise.
29965 * lto-streamer.c (lto_get_section_name): Add vars section.
29966 * lto-streamer.h (lto_section_type): Update.
29967 (output_varpool, input_varpool): Declare.
29968
29969 2010-04-28 Mike Stump <mikestump@comcast.net>
29970
29971 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
29972
29973 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
29974
29975 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
29976 record or union type with RECORD_OR_UNION_TYPE_P predicate.
29977 (lto_input_ts_type_tree_pointers): Likewise.
29978 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
29979 (lto_output_ts_type_tree_pointers): Likewise.
29980
29981 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
29982
29983 Uniquization of constants at the Tree level
29984 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
29985 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
29986 bit to the end.
29987 (tree_output_constant_def): Declare.
29988 * gimplify.c (gimplify_init_constructor): When using block copy, first
29989 uniquize the constant constructor on the RHS.
29990 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
29991 DECL_IN_CONSTANT_POOL flag.
29992 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
29993 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
29994 constant pool.
29995 (assemble_variable): Deal with symbols belonging to the tree constant
29996 pool.
29997 (get_constant_section): Add ALIGN parameter and simplify.
29998 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
29999 (assemble_constant_contents): Use the expression of the VAR_DECL.
30000 (output_constant_def_contents): Use the alignment of the VAR_DECL.
30001 (tree_output_constant_def): New global function.
30002 (mark_constant): Use the expression of the VAR_DECL.
30003 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
30004 its expression.
30005 (output_object_block): Likewise and assemble the expression.
30006
30007 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
30008
30009 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
30010 hash_tree, eq_tree): New tree hash table.
30011 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
30012 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
30013 lto_orig_address_remove): Reimplement.
30014
30015 2010-04-28 Xinliang David Li <davidxl@google.com>
30016
30017 PR c/42643
30018 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
30019 (compute_uninit_opnds_pos): New function.
30020 (is_non_loop_exit_postdominating): New function.
30021 (compute_control_dep_chain): New function.
30022 (find_pdom): New function.
30023 (convert_control_dep_chain_into_preds): New function.
30024 (find_predicates): New function.
30025 (find_control_equiv_block): New function.
30026 (collect_phi_def_edges): New function.
30027 (find_def_preds): New function.
30028 (find_dom): New function.
30029 (dump_predicates): New function.
30030 (get_cmp_code): New function.
30031 (is_value_included_in): New function.
30032 (find_matching_predicate_in_rest_chains): New function.
30033 (use_pred_not_overlap_with_undef_path_pred): New function.
30034 (is_use_properly_guarded): New function.
30035 (normalize_cond_1): New function.
30036 (is_and_or_or): New function.
30037 (normalize_cond): New function.
30038 (is_gcond_subset_of): New function.
30039 (is_subset_of_any): New function.
30040 (is_or_set_subset_of): New function.
30041 (is_and_set_subset_of): New function.
30042 (is_norm_cond_subset_of): New function.
30043 (is_pred_expr_subset_of): New function.
30044 (is_pred_chain_subset_of): New function.
30045 (is_included_in): New function.
30046 (is_superset_of): New function.
30047 (find_uninit_use): New function.
30048 (warn_uninitialized_phi): New function.
30049 (compute_possibly_undefined_names): New function.
30050 (ssa_undefined_value_p): New function.
30051 (execute_late_warn_uninitialized): New function.
30052 * tree-ssa.c (ssa_undefined_value_p): Removed.
30053 (warn_uninit): Changed to extern.
30054 (warn_uninitialized_phi): Removed.
30055 (warn_uninitialized_vars): Changed to extern.
30056 (execute_late_warn_uninitialized): Removed
30057 * tree-flow.h: Add new prototypes.
30058 * timevar.def: Add new time variable.
30059 * Makefile.in: Add new build file.
30060
30061 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
30062
30063 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
30064 type if available.
30065
30066 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30067
30068 PR target/22224
30069 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
30070
30071 2010-04-28 Martin Jambor <mjambor@suse.cz>
30072
30073 * cgraph.h (struct cgraph_node): New field indirect_calls.
30074 (struct cgraph_indirect_call_info): New type.
30075 (struct cgraph_edge): Removed field indirect_call. New fields
30076 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
30077 (cgraph_create_indirect_edge): Declare.
30078 (cgraph_make_edge_direct): Likewise.
30079 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
30080 * ipa-prop.h (struct ipa_param_call_note): Removed.
30081 (struct ipa_node_params): Removed field param_calls.
30082 (ipa_create_all_structures_for_iinln): Declare.
30083 * cgraph.c: Described indirect edges and uids in initial comment.
30084 (cgraph_add_edge_to_call_site_hash): New function.
30085 (cgraph_edge): Search also among the indirect edges, use
30086 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
30087 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
30088 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
30089 site hash.
30090 (initialize_inline_failed): Assign a reason to indirect edges.
30091 (cgraph_create_edge_1): New function.
30092 (cgraph_create_edge): Moved some functionality to
30093 cgraph_create_edge_1.
30094 (cgraph_create_indirect_edge): New function.
30095 (cgraph_edge_remove_callee): Add an assert checking for
30096 non-indirectness.
30097 (cgraph_edge_remove_caller): Special-case indirect edges.
30098 (cgraph_remove_edge): Likewise.
30099 (cgraph_set_edge_callee): New function.
30100 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
30101 (cgraph_make_edge_direct): New function.
30102 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
30103 the declaration of the call statement matches.
30104 (cgraph_node_remove_callees): Special-case indirect edges.
30105 (cgraph_clone_edge): Likewise.
30106 (cgraph_clone_node): Clone also the indirect edges.
30107 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
30108 indirect_call, dump count of indirect_calls edges.
30109 * ipa-prop.c (iinlining_processed_edges): New variable.
30110 (ipa_note_param_call): Create indirect edges instead of
30111 creating notes. New parameter node.
30112 (ipa_analyze_call_uses): New parameter node, pass it on to
30113 ipa_note_param_call.
30114 (ipa_analyze_stmt_uses): Likewise.
30115 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
30116 (print_edge_addition_message): Work on edges rather than on notes.
30117 (update_call_notes_after_inlining): Likewise, renamed to
30118 update_indirect_edges_after_inlining.
30119 (ipa_create_all_structures_for_iinln): New function.
30120 (ipa_free_node_params_substructures): Do not free notes.
30121 (ipa_edge_duplication_hook): Propagate bits within
30122 iinlining_processed_edges bitmap.
30123 (ipa_node_duplication_hook): Do not duplicate notes.
30124 (free_all_ipa_structures_after_ipa_cp): Renamed to
30125 ipa_free_all_structures_after_ipa_cp.
30126 (free_all_ipa_structures_after_iinln): Renamed to
30127 ipa_free_all_structures_after_iinln.
30128 (ipa_write_param_call_note): Removed.
30129 (ipa_read_param_call_note): Removed.
30130 (ipa_write_indirect_edge_info): New function.
30131 (ipa_read_indirect_edge_info): Likewise.
30132 (ipa_write_node_info): Do not stream notes, do stream information
30133 in indirect edges.
30134 (ipa_read_node_info): Likewise.
30135 (lto_ipa_fixup_call_notes): Removed.
30136 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
30137 * ipa-inline.c (pass_ipa_inline): Likewise.
30138 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
30139 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
30140 * tree-inline.c (copy_bb): Removed an unnecessary double check for
30141 is_gimple_call.
30142 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
30143 edges.
30144 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
30145 (output_cgraph): Stream also indirect edges.
30146 (lto_output_edge): Added capability to stream indirect edges.
30147 (input_edge): Likewise.
30148 (input_cgraph_1): Likewise.
30149 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
30150 of indirect edges.
30151
30152 2010-04-28 Richard Guenther <rguenther@suse.de>
30153
30154 PR tree-optimization/43879
30155 PR tree-optimization/43909
30156 * tree-ssa-structalias.c (struct variable_info): Add
30157 only_restrict_pointers flag.
30158 (new_var_info): Initialize it. Increment stats.total_vars here.
30159 (create_function_info_for): Do not increment stats.total_vars here.
30160 (get_function_part_constraint): Fix build with C++.
30161 (insert_into_field_list): Remove.
30162 (push_fields_onto_fieldstack): Properly merge fields.
30163 (create_variable_info_for): Split and simplify.
30164 (create_variable_info_for_1): New piece.
30165 (intra_create_variable_infos): Properly make restrict constraints
30166 from parameters.
30167
30168 2010-04-28 Richard Guenther <rguenther@suse.de>
30169
30170 PR c++/43880
30171 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
30172
30173 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
30174 Jan Hubicka <hubicka@ucw.cz>
30175
30176 * doc/invoke.texi (-Wsuggest-attribute=const,
30177 -Wsuggest-attribute=pure): Document.
30178 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
30179 (function_always_visible_to_compiler_p,
30180 suggest_attribute, warn_function_pure, warn_function_const):
30181 New functions.
30182 (check_call): Improve debug info.
30183 (analyze_function): Do not check availability.
30184 (add_new_function): Check availability.
30185 (propagate): Output warnings.
30186 (skip_function_for_local_pure_const): New function.
30187 (local_pure_const): Use it; output warnings.
30188 * common.opt (Wsuggest-attribute=const,
30189 Wsuggest-attribute=pure): New.
30190
30191 2010-04-27 Jakub Jelinek <jakub@redhat.com>
30192
30193 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
30194 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
30195 or DW_CFA_def_cfa_offset{,_sf}.
30196
30197 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
30198
30199 * tree.h: Fix truncated long macros.
30200
30201 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
30202
30203 * collect2.c (TARGET_64BIT): Redefine to target's default.
30204 * tlink.c: Likewise.
30205 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
30206 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
30207 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
30208 for underscoring __USER_LABEL_PREFIX__.
30209 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
30210 (SUB_LINK_ENTRY32): New.
30211 (SUB_LINK_ENTRY64): New.
30212 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
30213 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
30214 (SUB_LINK_ENTRY64): New.
30215 (SUB_LINK_ENTRY): New.
30216 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
30217 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
30218 x64 target is choosen.
30219 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
30220 * configure: Regenerated.
30221 * configure.ac (leading-mingw64-underscores): Option added.
30222
30223 2010-04-27 Jan Hubicka <jh@suse.cz>
30224
30225 * doc/invoke.texi (-fipa-profile): Document.
30226 * opts.c (decode_options): Enable ipa-profile at -O1.
30227 * timevar.def (TV_IPA_PROFILE): Define.
30228 * common.opt (fipa-profile): Add.
30229 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
30230 flag for clones.
30231 (cgraph_propagate_frequency): Handle only local ones.
30232 * tree-pass.h (pass_ipa_profile): Declare.
30233 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
30234 (pass_ipa_profile): Use TV_IPA_PROFILE.
30235 * ipa.c (ipa_profile): New function.
30236 (gate_ipa_profile): Likewise.
30237 (pass_ipa_profile): New global variable.
30238 * passes.c (pass_ipa_profile): New.
30239
30240 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
30241
30242 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
30243
30244 2010-04-27 Martin Jambor <mjambor@suse.cz>
30245
30246 PR middle-end/43812
30247 * ipa.c (dissolve_same_comdat_group_list): New function.
30248 (function_and_variable_visibility): Call
30249 dissolve_same_comdat_group_list when comdat group contains external or
30250 newly local nodes.
30251 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
30252 lists are circular and that they contain only DECL_ONE_ONLY nodes.
30253
30254 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
30255
30256 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
30257 (const_hash_1) <VECTOR_CST>: New case.
30258 (compare_constant) <VECTOR_CST>: Likewise.
30259 <ADDR_EXPR>: Deal with LABEL_REFs.
30260 (copy_constant) <VECTOR_CST>: New case.
30261
30262 2010-04-27 Jan Hubicka <jh@suse.cz>
30263
30264 * cgraph.c (cgraph_propagate_frequency): New function.
30265 * cgraph.h (cgraph_propagate_frequency): Declare.
30266 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
30267 cgraph_propagate_frequency.
30268
30269 2010-04-27 Jakub Jelinek <jakub@redhat.com>
30270
30271 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
30272
30273 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
30274
30275 PR target/40657
30276 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
30277 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
30278 here to determine which regs to push and how much stack to reserve.
30279
30280 2010-04-27 Jie Zhang <jie@codesourcery.com>
30281
30282 * doc/gimple.texi (gimple_statement_with_ops): Remove
30283 addresses_taken field.
30284 (gimple_statement_with_memory_ops): Likewise.
30285
30286 2010-04-27 Jan Hubicka <jh@suse.cz>
30287
30288 * tree-inline.c (eni_inlining_weights): Remove.
30289 (estimate_num_insns): Special case more builtins.
30290
30291 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
30292
30293 PR c/32207
30294 * c-typeck.c (build_binary_op): Move forward check for comparison
30295 pointer with null pointer constant and adjust the diagnostic message.
30296
30297 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
30298
30299 PR lto/42776
30300 * configure.ac (gcc_cv_as_section_has_align): Set if installed
30301 binutils supports extended .section directive needed by LTO, or
30302 warn if older binutils found.
30303 (LTO_BINARY_READER): New AC_SUBST'd variable.
30304 (LTO_USE_LIBELF): Likewise.
30305 * config.gcc (lto_binary_reader): New target-specific configure
30306 variable.
30307 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
30308 (LTO_USE_LIBELF): Likewise.
30309 * configure: Regenerate.
30310
30311 * collect2.c (is_elf): Rename from this ...
30312 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
30313 object files in addition to ELF-formatted ones.
30314 (scan_prog_file): Caller updated. Also allow for LTO info marker
30315 symbol to be prefixed or not by an extra underscore.
30316
30317 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
30318 * config/i386/winnt.c: Also #include lto-streamer.h
30319 (i386_pe_asm_named_section): Specify 1-byte section alignment for
30320 LTO named sections.
30321 (i386_pe_asm_output_aligned_decl_common): Add comment.
30322 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
30323
30324 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
30325
30326 PR target/43889
30327 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
30328 Add missing earlyclobber for second alternative.
30329
30330 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
30331
30332 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
30333 bits for artificial defs at the top of the block.
30334 * fwprop.c (single_def_use_enter_block): Don't call it.
30335
30336 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
30337
30338 PR 43715
30339 * configure.ac: Use "$gcc_cv_nm -g" on darwin
30340 instead of "$gcc_cv_objdump -T".
30341 Use "-undefined dynamic_lookup" on darwin.
30342 * configure: Regenerate.
30343
30344 2010-04-26 Jakub Jelinek <jakub@redhat.com>
30345
30346 PR c/43893
30347 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
30348
30349 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
30350
30351 * c-parser.c (struct c_token): Move location field up.
30352 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
30353 (struct c_declspecs): Convert typespec_word, storage_class, and
30354 default_int_p into bitfields.
30355 (struct c_declarator): Move loc field up.
30356
30357 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
30358
30359 * cfgloop.h (struct loop): Move can_be_parallel field up.
30360 * ipa-prop.h (struct ip_node_params): Move bitfields up.
30361 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
30362 down.
30363 (struct iv_cand): Convert pos field into a bitfield.
30364 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
30365 field up.
30366 (struct _stmt_vec_info): Shuffle fields for better packing.
30367
30368 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
30369
30370 * varasm.c (IN_NAMED_SECTION): Remove guard.
30371 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
30372 (IN_NAMED_SECTION_P): ...this.
30373 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
30374 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
30375
30376 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
30377
30378 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
30379 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
30380 of shadowing it. Fix comments.
30381
30382 2010-04-26 Jan Hubicka <jh@suse.cz>
30383
30384 * cgraph.c (cgraph_create_node): Set node frequency to normal.
30385 (cgraph_clone_node): Copy function frequency.
30386 * cgraph.h (node_frequency): New enum
30387 (struct cgraph_node): Add.
30388 * final.c (rest_of_clean_state): Update.
30389 * lto-cgraph.c (lto_output_node): Output node frequency.
30390 (input_overwrite_node): Input node frequency.
30391 * tre-ssa-loop-ivopts (computation_cost): Update.
30392 * lto-streamer-out.c (output_function): Do not output function
30393 frequency.
30394 * predict.c (maybe_hot_frequency_p): Update and handle functions
30395 executed once.
30396 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
30397 attribute lookup.
30398 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
30399 (compute_function_frequency): Set noreturn functions to be executed
30400 once.
30401 (choose_function_section): Update.
30402 * lto-streamer-in.c (input_function): Do not input function frequency.
30403 * function.c (allocate_struct_function): Do not initialize function
30404 frequency.
30405 * function.h (function_frequency): Remove.
30406 (struct function): Remove function frequency.
30407 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
30408 (try_update): Update.
30409 * tree-inline.c (initialize_cfun): Do not update function frequency.
30410 * passes.c (pass_init_dump_file): Update.
30411 * i386.c (ix86_compute_frame_layout): Update.
30412 (ix86_pad_returns): Update.
30413
30414 2010-04-26 Jie Zhang <jie@codesourcery.com>
30415
30416 PR tree-optimization/43833
30417 * tree-vrp.c (range_int_cst_p): New.
30418 (range_int_cst_singleton_p): New.
30419 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
30420 when both operands are constants. Use range_int_cst_p in
30421 BIT_IOR_EXPR case.
30422
30423 2010-04-26 Jan Hubicka <jh@suse.cz>
30424
30425 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
30426
30427 2010-04-26 Richard Guenther <rguenther@suse.de>
30428
30429 PR lto/43080
30430 * gimple.c (gimple_decl_printable_name): Deal gracefully
30431 with a NULL DECL_NAME.
30432
30433 2010-04-26 Richard Guenther <rguenther@suse.de>
30434
30435 PR lto/42425
30436 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
30437 if emitting debug information and it is either a function
30438 or a namespace decl.
30439
30440 2010-04-26 Ira Rosen <irar@il.ibm.com>
30441
30442 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
30443 determine if the statement is vectorizable, and a macro to access it.
30444 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
30445 Skip statements that can't be vectorized. If the analysis fails,
30446 mark the statement as unvectorizable if vectorizing basic block.
30447 (vect_compute_data_refs_alignment): Likewise.
30448 (vect_verify_datarefs_alignment): Skip statements marked as
30449 unvectorizable. Add print.
30450 (vect_analyze_group_access): Skip statements that can't be
30451 vectorized. If the analysis fails, mark the statement as
30452 unvectorizable if vectorizing basic block.
30453 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
30454 * tree-vect-stmts.c (vectorizable_store): Fix the number of
30455 generated stmts for SLP.
30456 (new_stmt_vec_info): Initialize the new field.
30457 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
30458 statements marked as unvectorizable.
30459
30460 2010-04-25 Joseph Myers <joseph@codesourcery.com>
30461
30462 * c-common.c (flag_isoc1x): New.
30463 (flag_isoc99): Update comment.
30464 * c-common.h (flag_isoc1x): New.
30465 (flag_isoc99): Update comment.
30466 * c-cppbuiltin.c (builtin_define_float_constants): Also define
30467 __<type>_DECIMAL_DIG__.
30468 * c-opts.c (set_std_c1x): New.
30469 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
30470 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
30471 * c.opt (-std=c1x, -std=gnu1x): New options.
30472 * doc/cpp.texi: Mention -std=c1x.
30473 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
30474 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
30475 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
30476 * doc/standards.texi: Mention C1X.
30477 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
30478 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
30479 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
30480 Define for C1X.
30481
30482 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
30483
30484 * config/i386/gmon-sol2.c (_mcleanup): Change format string
30485 placeholder from 0x%x to %#x.
30486 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
30487 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
30488 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
30489 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
30490 * config/i386/i386.c (ix86_target_string): Ditto.
30491 (output_pic_addr_const): Ditto.
30492 (print_operand): Ditto.
30493
30494 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
30495
30496 * combine.c (find_split_point): Add third argument. Use it
30497 to find nested multiply-accumulate instructions. Adjust calls.
30498 (try_combine): Adjust call to find_split_point.
30499
30500 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
30501
30502 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
30503
30504 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
30505
30506 PR tree-optimization/41442
30507 * fold-const.c (merge_truthop_with_opposite_arm): New function.
30508 (fold_binary_loc): Call it.
30509
30510 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
30511
30512 * toplev.c (general_init): Set default for fdiagnostics-show-option.
30513 * opts.c (common_handle_option): Allow disabling it.
30514 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
30515
30516 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
30517
30518 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
30519 between modes if both types are integral.
30520
30521 2010-04-23 Richard Guenther <rguenther@suse.de>
30522
30523 PR tree-optimization/43572
30524 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
30525
30526 2010-04-23 Richard Guenther <rguenther@suse.de>
30527
30528 PR lto/43455
30529 * tree-inline.c (tree_can_inline_p): Also check compatibility
30530 of return types.
30531
30532 2010-04-23 Martin Jambor <mjambor@suse.cz>
30533
30534 PR tree-optimization/43846
30535 * tree-sra.c (struct access): New flag grp_assignment_read.
30536 (build_accesses_from_assign): Set grp_assignment_read.
30537 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
30538 (enum mark_read_status): New type.
30539 (analyze_access_subtree): Propagate grp_assignment_read, create
30540 accesses also if both direct_read and root->grp_assignment_read.
30541
30542 2010-04-23 Martin Jambor <mjambor@suse.cz>
30543
30544 PR middle-end/43835
30545 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
30546 function does not have type attributes.
30547
30548 2010-04-23 Richard Guenther <rguenther@suse.de>
30549
30550 PR lto/42653
30551 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
30552 of FUNCTION_DECLs.
30553
30554 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
30555
30556 * sese.h (create_if_region_on_edge): Remove.
30557
30558 * sese.c (create_if_region_on_edge): Make static.
30559
30560 * tree-inline.c: Do not include ggc.h.
30561
30562 * expr.c: Do not include ggc.h.
30563
30564 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
30565 dependencies.
30566
30567 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
30568
30569 PR target/43744
30570 * config/sh/sh.c (find_barrier): Don't emit a constant pool
30571 in the middle of insns for casesi_worker_2.
30572
30573 2010-04-22 David Edelsohn <edelsohn@gnu.org>
30574
30575 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
30576
30577 2010-04-22 Ira Rosen <irar@il.ibm.com>
30578
30579 PR tree-optimization/43842
30580 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
30581 loop unrolling in update of exit phis. Fix comment.
30582 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
30583 least two reduction statements in the loop before starting SLP
30584 analysis.
30585
30586 2010-04-22 Nick Clifton <nickc@redhat.com>
30587
30588 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
30589
30590 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
30591
30592 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
30593 to simplify a + ~a.
30594
30595 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
30596
30597 * tree-parloops.c (loop_parallel_p): New argument
30598 parloop_obstack. Pass it down.
30599 (parallelize_loops): New variable parloop_obstack. Initialize it,
30600 pass it down, free it.
30601
30602 * tree-loop-linear.c (linear_transform_loops): Pass down
30603 lambda_obstack.
30604
30605 * tree-data-ref.h (lambda_compute_access_matrices): New argument
30606 of type struct obstack *.
30607
30608 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
30609 scratch_obstack. Initialize it, pass down, free it.
30610
30611 * lambda.h (lambda_loop_new): Remove.
30612 (lambda_matrix_new, lambda_matrix_inverse)
30613 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
30614 argument of type struct obstack *.
30615
30616 * lambda-trans.c (lambda_trans_matrix_new): New argument
30617 lambda_obstack. Pass it down, use obstack allocation for ret.
30618 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
30619 it down.
30620
30621 * lambda-mat.c (lambda_matrix_get_column)
30622 (lambda_matrix_project_to_null): Remove.
30623 (lambda_matrix_new): New argument lambda_obstack. Use obstack
30624 allocation for mat.
30625 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
30626 lambda_obstack.
30627
30628 * lambda-code.c (lambda_loop_new): New function.
30629 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
30630 (lambda_compute_auxillary_space, lambda_compute_target_space)
30631 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
30632 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
30633 (build_access_matrix): New argument lambda_obstack. Use obstack
30634 allocation for am.
30635 (lambda_compute_step_signs, lambda_compute_access_matrices): New
30636 argument lambda_obstack. Pass it down.
30637
30638 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
30639
30640 * optabs.h (expand_widening_mult): Declare.
30641
30642 2010-04-22 Richard Guenther <rguenther@suse.de>
30643
30644 PR tree-optimization/43845
30645 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
30646 lookup the CALL_EXPR function and arguments.
30647
30648 2010-04-22 Nick Clifton <nickc@redhat.com>
30649
30650 * config/stormy16/stormy16.c
30651 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
30652 * config/stormy16/stormy16.h: Tidy up formatting.
30653 (DONT_USE_BUILTIN_SETJMP): Remove definition.
30654 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
30655 (ineqbranchsi): Delete pattern.
30656 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
30657 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
30658 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
30659 stormy16-lib2-ucmpsi2.c.
30660
30661 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
30662
30663 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
30664 df_simulate_find_noclobber_defs as appropriate. Keep track of an
30665 extra set merge_set_noclobber, and use it to relax the final test
30666 slightly.
30667 * df.h (df_simulate_find_noclobber_defs): Declare.
30668 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
30669 conditional defs.
30670 (df_simulate_find_noclobber_defs): New function.
30671
30672 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
30673
30674 * config/i386/i386.md: Use {} around multi-line preparation statements.
30675
30676 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
30677
30678 * c-tree.h (push_init_level, pop_init_level, set_init_index)
30679 (process_init_element): New argument of type struct obstack *.
30680
30681 * c-typeck.c (push_init_level, pop_init_level, set_designator)
30682 (set_init_index, set_init_label, set_nonincremental_init)
30683 (set_nonincremental_init_from_string, find_init_member)
30684 (output_init_element, output_pending_init_elements)
30685 (process_init_element): New argument braced_init_obstack. Pass it
30686 down.
30687 (push_range_stack, add_pending_init): New argument
30688 braced_init_obstack. Use obstack allocation.
30689
30690 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
30691 braced_init_obstack. Pass it down.
30692 (c_parser_braced_init): New variables ret, braced_init_obstack.
30693 Initialize obstack, pass it down and finally free it.
30694
30695 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
30696
30697 PR middle-end/29274
30698 * tree-pass.h (pass_optimize_widening_mul): Declare.
30699 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
30700 gate_optimize_widening_mul): New static functions.
30701 (pass_optimize_widening_mul): New.
30702 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
30703 <case MULT_EXPR>: Remove support for widening multiplies.
30704 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
30705 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
30706 simplify_gen_unary rather than directly building extensions.
30707 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
30708 WIDEN_MULT_EXPR.
30709 * expmed.c (expand_widening_mult): New function.
30710 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
30711
30712 2010-04-21 Jan Hubicka <jh@suse.cz>
30713
30714 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
30715 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
30716 * lto-wpa-fixup.c: Remove.
30717 * Makefile.in (lto-wpa-fixup.o): Remove.
30718 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
30719 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
30720 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
30721
30722 2010-04-21 Jan Hubicka <jh@suse.cz>
30723
30724 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
30725 add write_optimization_summary, read_optimization_summary.
30726 (ipa_write_summaries_of_cgraph_node_set): Remove.
30727 (ipa_write_optimization_summaries): Declare.
30728 (ipa_read_optimization_summaries): Declare.
30729 * ipa-cp.c (pass_ipa_cp): Update.
30730 * ipa-reference.c (pass_ipa_reference): Update.
30731 * ipa-pure-const.c (pass_ipa_pure_const): Update.
30732 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
30733 Update.
30734 * ipa-inline.c (pass_ipa_inline): Update.
30735 * ipa.c (pass_ipa_whole_program): Update.
30736 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
30737 * passes.c (ipa_write_summaries_1): Do not test wpa.
30738 (ipa_write_optimization_summaries_1): New.
30739 (ipa_write_optimization_summaries): New.
30740 (ipa_read_summaries): Do not test ltrans.
30741 (ipa_read_optimization_summaries_1): New.
30742 (ipa_read_optimization_summaries): New.
30743
30744 2010-04-21 Jan Hubicka <jh@suse.cz>
30745
30746 * lto-cgraph.c (lto_output_node): Do not output comdat groups
30747 for boundary nodes.
30748 (output_cgraph): Do not arrange comdat groups for boundary nodes.
30749
30750 2010-04-21 Jakub Jelinek <jakub@redhat.com>
30751
30752 PR debug/40040
30753 * dwarf2out.c (add_name_and_src_coords_attributes): Add
30754 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
30755
30756 2010-04-21 Jan Hubicka <jh@suse.cz>
30757
30758 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
30759
30760 2010-04-21 Jan Hubicka <jh@suse.cz>
30761
30762 * varpool.c (decide_is_variable_needed): Variable is always needed
30763 during ltrans.
30764
30765 2010-04-21 Jan Hubicka <jh@suse.cz>
30766
30767 * opts.c (decode_options): Enable pure-const pass for whopr.
30768
30769 2010-04-21 Jan Hubicka <jh@suse.cz>
30770
30771 * cgraph.c (dump_cgraph_node): Dump also assembler name.
30772 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
30773 at WPA dumping.
30774 (cgraph_decide_inlining): Do not expect callee to be removed in all
30775 cases.
30776
30777 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
30778
30779 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
30780
30781 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
30782
30783 * config/i386/i386.md (x86_shrd): Add athlon_decode and
30784 amdfam10_decode attributes.
30785
30786 2010-04-21 Jakub Jelinek <jakub@redhat.com>
30787
30788 PR middle-end/43570
30789 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
30790 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
30791 (lower_copyprivate_clauses): Use private var in outer
30792 context instead of original var. Make sure the types
30793 are correct for VLAs.
30794
30795 2010-04-21 Richard Guenther <rguenther@suse.de>
30796
30797 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
30798 to non-pointer objects.
30799
30800 2010-04-21 Jakub Jelinek <jakub@redhat.com>
30801
30802 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
30803 last chain entry if it starts with the still current label.
30804 (add_location_or_const_value_attribute): Check that
30805 loc_list->first->next is NULL instead of comparing ->first with ->last.
30806 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
30807 to add_var_loc_to_decl.
30808
30809 * dwarf2out.c (output_call_frame_info): For dw_cie_version
30810 >= 4 add also address size and segment size fields into CIE header.
30811
30812 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
30813 long as address size is the same as sizeof (void *) and
30814 segment size is 0.
30815 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
30816 address size or segment size is unexpected, return DW_EH_PE_omit.
30817 (classify_object_over_fdes): If get_cie_encoding returned
30818 DW_EH_PE_omit, return -1.
30819 (init_object): If classify_object_over_fdes returned -1,
30820 pretend there were no FDEs at all.
30821
30822 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
30823
30824 * config/i386/i386.md (bswap<mode>2): Macroize expander from
30825 bswap{si,di}2 using SWI48 mode iterator.
30826 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
30827 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
30828 set modrm attribute of bswap insn to 0 and remove length attribute.
30829 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
30830 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
30831 set mode attribute to <MODE> and remove length attribute.
30832
30833 2010-04-20 James E. Wilson <wilson@codesourcery.com>
30834
30835 PR rtl-optimization/43520
30836 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
30837 zero available registers.
30838
30839 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30840
30841 * builtins.c (fold_builtin_cproj): Fold more cases.
30842
30843 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
30844
30845 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
30846 (fold_builtin_1): Fold builtin cproj.
30847 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
30848 Use ATTR_CONST_NOTHROW_LIST.
30849
30850 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
30851
30852 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
30853 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
30854 ffsi2_no_cmove for !TARGET_CMOVE.
30855 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
30856 (ffssi2): Remove expander.
30857 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
30858 mode iterator.
30859 (ctz<mode>2): Ditto from ctz{si,di}2.
30860 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
30861 mode iterator.
30862 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
30863 mode iterator.
30864
30865 2010-04-20 Jakub Jelinek <jakub@redhat.com>
30866
30867 * dwarf2out.c (AT_linkage_name): Define.
30868 (clone_as_declaration): Handle DW_AT_linkage_name.
30869 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
30870 of DW_AT_MIPS_linkage_name.
30871 (move_linkage_attr): Likewise.
30872 (dwarf2out_finish): Likewise.
30873
30874 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
30875
30876 PR middle-end/41952
30877 * fold-const.c (fold_comparison): New folding rule.
30878
30879 2010-04-20 Anatoly Sokolov <aesok@post.ru>
30880
30881 * double-int.h (double_int_setbit): Declare.
30882 * double-int.c (double_int_setbit): New function.
30883 * rtl.h (immed_double_int_const): Declare.
30884 * emit-rtl.c (immed_double_int_const): New function.
30885 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
30886 and immed_double_int_const functions.
30887 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
30888 expand_copysign_bit): (Ditto.).
30889 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
30890 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
30891 * dojump.c (prefer_and_bit_test): (Ditto.).
30892 * expr.c (convert_modes, reduce_to_bit_field_precision,
30893 const_vector_from_tree): (Ditto.).
30894 * expmed.c (mask_rtx, lshift_value): (Ditto.).
30895
30896 2010-04-20 Jan Hubicka <jh@suse.cz>
30897
30898 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
30899 (dump_cgraph_node): Dump new flags.
30900 * cgraph.h (struct cgraph_node): Add flags
30901 reachable_from_other_partition and in_other_partition.
30902 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
30903 other partition can not be removed.
30904 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
30905 the other partition must be output; silence sanity checking on
30906 leaking functions bodies from other paritition.
30907 * lto-cgraph.c (reachable_from_other_partition_p): New function.
30908 (lto_output_node): Output new flags; do not sanity check that inline
30909 clones are output; drop lto_forced_extern_inline_p code; do not mock
30910 visibility flags at partition boundaries.
30911 (add_node_to): New function.
30912 (output_cgraph): Use it to sort functions so masters appear before
30913 clones.
30914 (input_overwrite_node): Input new flags.
30915 * passes.c (ipa_write_summaries): Do not call
30916 lto_new_extern_inline_states.
30917 * lto-section-out.c (forced_extern_inline,
30918 lto_new_extern_inline_states lto_delete_extern_inline_states,
30919 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
30920 * lto-streamer.h (lto_new_extern_inline_states,
30921 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
30922 lto_forced_extern_inline_p): Kill.
30923
30924 2010-04-20 Richard Guenther <rguenther@suse.de>
30925
30926 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
30927 from vars that can have pointers.
30928 (process_constraint): Dump useless constraints.
30929
30930 2010-04-20 Richard Guenther <rguenther@suse.de>
30931
30932 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
30933 (dump_sa_points_to_info): Remove asserts.
30934 (init_base_vars): nothing_id isn't an escape point nor does it
30935 have pointers.
30936
30937 2010-04-20 Jakub Jelinek <jakub@redhat.com>
30938
30939 * tree.h (TYPE_REF_IS_RVALUE): Define.
30940 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
30941 should_move_die_to_comdat, prune_unused_types_walk): Handle
30942 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
30943 (modified_type_die, gen_reference_type_die): Emit
30944 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
30945 if TYPE_REF_IS_RVALUE and -gdwarf-4.
30946
30947 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30948
30949 PR target/43635
30950 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
30951 calls for -fpic -m31 if they have been sibcall optimized.
30952
30953 2010-04-19 James E. Wilson <wilson@codesourcery.com>
30954
30955 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
30956 ar.lc fixed and call-used.
30957
30958 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
30959
30960 2010-04-19 Jan Hubicka <jh@suse.cz>
30961
30962 * opts.c (decode_options): Disable whpr incompatible passes.
30963 * lto/lto.c (lto_1_to_1_map): Skip clones.
30964 (read_cgraph_and_symbols): Do not mark everything as needed.
30965 (do_whole_program_analysis): Do map only after optimizing;
30966 set proper cgraph_state; use passmanager.
30967
30968 2010-04-19 DJ Delorie <dj@redhat.com>
30969
30970 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
30971 POINTER_PLUS_EXPR and fix them.
30972
30973 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
30974
30975 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
30976 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
30977 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
30978 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
30979 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
30980 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
30981 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
30982 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
30983 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
30984 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
30985 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
30986
30987 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
30988
30989 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
30990 (check_cond_move_block): Likewise.
30991 (cond_move_process_if_block): Likewise.
30992 (noce_find_if_block): Improve formatting.
30993 (find_if_header): Pass 0 to memset and tweak conditions.
30994 (cond_exec_find_if_block): Fix long lines and tweak conditions.
30995
30996 2010-04-19 Jakub Jelinek <jakub@redhat.com>
30997
30998 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
30999 for -gdwarf-4.
31000
31001 PR middle-end/43337
31002 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
31003 with non-local decl doesn't need chain.
31004
31005 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
31006
31007 * ira-color.c (allocno_reload_assign): Avoid accumulating
31008 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
31009
31010 2010-04-19 Martin Jambor <mjambor@suse.cz>
31011
31012 * gimple.h (create_tmp_reg): Declare.
31013 * gimplify.c (create_tmp_reg): New function.
31014 (gimplify_return_expr): Use create_tmp_reg.
31015 (gimplify_omp_atomic): Likewise.
31016 (gimple_regimplify_operands): Likewise.
31017 * tree-dfa.c (make_rename_temp): Likewise.
31018 * tree-predcom.c (predcom_tmp_var): Likewise.
31019 (reassociate_to_the_same_stmt): Likewise.
31020 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
31021 (get_replaced_param_substitute): Likewise.
31022 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
31023 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
31024 * tree-ssa-pre.c (get_representative_for): Likewise.
31025 (create_expression_by_pieces): Likewise.
31026 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
31027 (create_tailcall_accumulator): Likewise.
31028
31029 2010-04-19 Martin Jambor <mjambor@suse.cz>
31030
31031 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
31032 new_stmt.
31033 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
31034
31035 2010-04-19 Richard Guenther <rguenther@suse.de>
31036
31037 PR tree-optimization/43796
31038 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
31039 from SCEV in the lattice.
31040 (vrp_visit_phi_node): Dump change.
31041
31042 2010-04-19 Richard Guenther <rguenther@suse.de>
31043
31044 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
31045 * configure: Re-generated.
31046
31047 2010-04-19 Richard Guenther <rguenther@suse.de>
31048
31049 PR tree-optimization/43783
31050 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
31051 constant ARRAY_REF operands two and three if possible.
31052
31053 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
31054
31055 PR target/43766
31056 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
31057
31058 2010-04-19 Jie Zhang <jie@codesourcery.com>
31059
31060 PR target/43662
31061 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
31062
31063 2010-04-19 Ira Rosen <irar@il.ibm.com>
31064
31065 PR tree-optimization/37027
31066 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
31067 and macro to access it.
31068 (vectorizable_reduction): Add argument.
31069 (vect_get_slp_defs): Likewise.
31070 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
31071 statements for possible use in SLP.
31072 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
31073 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
31074 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
31075 add new argument.
31076 (vectorizable_reduction): Likewise.
31077 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
31078 vect_get_slp_defs.
31079 (vectorizable_type_demotion, vectorizable_type_promotion,
31080 vectorizable_store): Likewise.
31081 (vect_analyze_stmt): Update call to vectorizable_reduction.
31082 (vect_transform_stmt): Likewise.
31083 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
31084 (vect_build_slp_tree): Fix indentation. Check that there are no loads
31085 from different interleaving chains in same node.
31086 (vect_slp_rearrange_stmts): New function.
31087 (vect_supported_load_permutation_p): Allow load permutations for
31088 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
31089 inside SLP nodes if necessary.
31090 (vect_analyze_slp_instance): Handle reductions.
31091 (vect_analyze_slp): Try to build SLP instances originating from groups
31092 of reductions.
31093 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
31094 (vect_get_constant_vectors): Create initial vectors for reductions
31095 according to reduction code. Add new argument.
31096 (vect_get_slp_defs): Add new argument, pass it to
31097 vect_get_constant_vectors.
31098 (vect_schedule_slp_instance): Remove SLP tree root statements.
31099
31100 2010-04-19 Jakub Jelinek <jakub@redhat.com>
31101
31102 * tree.h (ENUM_IS_SCOPED): Define.
31103 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
31104 for ENUM_IS_SCOPED enums.
31105
31106 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
31107
31108 * fold-const.c (fold_comparison): Use ssizetype.
31109 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
31110 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
31111 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
31112 * tree-object-size.c (compute_object_sizes): Use size_type_node.
31113
31114 * tree.h (initialize_sizetypes): Remove parameter.
31115 (build_common_tree_nodes): Remove second parameter.
31116 * stor-layout.c (initialize_sizetypes): Remove parameter.
31117 Always create an unsigned type.
31118 (set_sizetype): Assert that the passed type is unsigned and simplify.
31119 * tree.c (build_common_tree_nodes): Remove second parameter.
31120 Adjust call to initialize_sizetypes.
31121 * c-decl.c (c_init_decl_processing): Remove second argument in call to
31122 build_common_tree_nodes.
31123
31124 2010-04-18 Matthias Klose <doko@ubuntu.com>
31125
31126 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
31127
31128 2010-04-18 Ira Rosen <irar@il.ibm.com>
31129
31130 PR tree-optimization/43771
31131 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
31132 load permutation doesn't have gaps.
31133
31134 2010-04-18 Jan Hubicka <jh@suse.cz>
31135
31136 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
31137 (sse_prologue_save_insn expander): Use new pattern.
31138 (sse_prologue_save_insn1): New pattern and splitter.
31139 (sse_prologue_save_insn): Update to deal also with 64bit aligned
31140 blocks.
31141 * i386.c (setup_incoming_varargs_64): Do not compute jump
31142 destination here.
31143 (ix86_gimplify_va_arg): Update alignment needed.
31144 (ix86_local_alignment): Do not align all local arrays to 128bit.
31145
31146 2010-04-17 Jan Hubicka <jh@suse.cz>
31147
31148 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
31149
31150 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
31151
31152 * arm.md (negdi2): Remove redundant code to force values into a
31153 register.
31154
31155 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
31156
31157 * arm/bpabi.S: Add EABI alignment attributes to objects.
31158 * arm/bpabi-v6m.S: Likewise.
31159 * arm/crti.asm: Likewise.
31160 * arm/crtn.asm: Likewise.
31161 * arm/lib1funcs.asm: Likewise.
31162 * arm/libunwind.S: Likewise.
31163
31164 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
31165
31166 * arm-protos.h (tune_params): New structure.
31167 * arm.c (current_tune): New variable.
31168 (arm_constant_limit): Delete.
31169 (struct processors): Add pointer to the tune parameters.
31170 (arm_slowmul_tune): New tuning option.
31171 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
31172 (all_cores): Adjust to pick up the tuning model.
31173 (arm_constant_limit): New function.
31174 (arm_override_options): Select the appropriate tuning model. Delete
31175 initialization of arm_const_limit.
31176 (arm_split_constant): Use the new constant-limit model.
31177 (arm_rtx_costs): Pick up the current tuning model.
31178 * arm.md (is_strongarm, is_xscale): Delete.
31179 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
31180 for Xscale variant architectures.
31181 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
31182
31183 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31184
31185 * config/arm/arm.c (arm_gen_constant): Remove unused variable
31186 can_shift.
31187 (arm_rtx_costs_1): Remove unused variable extra_cost.
31188 (arm_unwind_emit_set): Use variable offset.
31189 (thumb1_output_casesi): Remove unused variable flags.
31190
31191 2010-04-16 Jeff Law <law@redhat.com>
31192
31193 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
31194 needing assignment rather than doing a two-phase assignment. Remove
31195 unused variable 'm'.
31196
31197 2010-04-16 Jakub Jelinek <jakub@redhat.com>
31198
31199 PR bootstrap/43767
31200 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
31201
31202 2010-04-16 Doug Kwan <dougkwan@google.com>
31203
31204 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
31205 (next_operand_entry_id): New static variable.
31206 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
31207 (add_to_ops_vec): Assigned unique ID to operand entry.
31208 (struct oecount_s): New field ID.
31209 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
31210 (undistribute_ops_list): Assign unique IDs to oecounts.
31211 (init_reassoc): reset next_operand_entry_id.
31212
31213 2010-04-16 Doug Kwan <dougkwan@google.com>
31214
31215 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
31216 missing left parenthesis.
31217
31218 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
31219
31220 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
31221 *btdi_rex64 using SWI48 mode iterator.
31222 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
31223 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
31224 *jcc_btdi_mask_rex64.
31225
31226 2010-04-16 Anatoly Sokolov <aesok@post.ru>
31227
31228 * double-int.h (tree_to_double_int): Convert to macro.
31229 * double-int.c (tree_to_double_int): Remove.
31230
31231 2010-04-16 Jakub Jelinek <jakub@redhat.com>
31232
31233 PR debug/43762
31234 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
31235 with want_address 2 and in case a single element list might be
31236 possible, call it again with want_address 0.
31237
31238 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31239
31240 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
31241 case 'W' print operands for HI mode.
31242 * config/h8300/h8300.h (Y0, Y2) : New constraints.
31243 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
31244 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
31245 * config/h8300/predicate.md (bit_register_indirect_operand): New.
31246
31247 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
31248
31249 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
31250 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
31251 #xx:3 and #xx:4 mode.
31252
31253 * config/h8300/h8300.md (inverted load with HImode dest): Add
31254 support for H8300SX.
31255
31256 * config/h8300/predicate.md (bit_operand): Allow immediate values that
31257 satisfy 'U' constraint.
31258
31259 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31260
31261 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
31262 * configure: Regenerate.
31263 * config.in: Regenerate.
31264 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
31265 works.
31266
31267 2010-04-16 Richard Guenther <rguenther@suse.de>
31268
31269 * tree.h (struct tree_decl_minimal): Move pt_uid ...
31270 (struct tree_decl_common): ... here.
31271 (DECL_PT_UID): Adjust.
31272 (SET_DECL_PT_UID): Likewise.
31273 (DECL_PT_UID_SET_P): Likewise.
31274
31275 2010-04-16 Richard Guenther <rguenther@suse.de>
31276
31277 PR tree-optimization/43572
31278 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
31279 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
31280 * tree-flow.h (is_call_clobbered): Remove.
31281 * tree-flow-inline.h (is_call_clobbered): Likewise.
31282 * tree-dfa.c (dump_variable): Do not dump call clobber state.
31283 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
31284 (execute_return_slot_opt): Adjust.
31285 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
31286 check for call clobbered vars here.
31287 (find_tail_calls): Move tailcall verification to the
31288 proper place.
31289
31290 2010-04-16 Diego Novillo <dnovillo@google.com>
31291
31292 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
31293
31294 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
31295
31296 PR target/40603
31297 * config/arm/arm.md (cbranchqi4): New pattern.
31298 * config/arm/predicates.md (const0_operand,
31299 cbranchqi4_comparison_operator): New predicates.
31300
31301 2010-04-16 Richard Guenther <rguenther@suse.de>
31302
31303 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
31304 (dump_gimple_stmt): Likewise.
31305
31306 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
31307
31308 * recog.h (struct recog_data): New field is_operator.
31309 (struct insn_operand_data): New field is_operator.
31310 * recog.c (extract_insn): Set recog_data.is_operator.
31311 * genoutput.c (output_operand_data): Emit code to set the
31312 is_operator field.
31313 * reload.c (find_reloads): Use it rather than testing for an
31314 empty constraint string.
31315
31316 PR target/41514
31317 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
31318 If the previous insn is a cbranchsi4_insn with the same arguments,
31319 omit the compare instruction.
31320
31321 * config/arm/arm.md (addsi3_cbranch): If destination is a high
31322 register, inputs must be low registers and we need a low register
31323 scratch. Handle alternative 2 like alternative 3.
31324
31325 2010-04-16 Jakub Jelinek <jakub@redhat.com>
31326
31327 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
31328 don't call get_addr on both. If one expression is a VALUE and
31329 the other a REG, check VALUE's locs if the REG isn't among them.
31330
31331 2010-04-16 Christian Bruel <christian.bruel@st.com>
31332
31333 * config/sh/sh.h (sh_frame_pointer_required): New function.
31334 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
31335 (flag_omit_frame_pointer) Set.
31336 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
31337 (rounded_frame_size): Adjust size with outgoing_args_size.
31338 (sh_set_return_address): Must return from stack pointer.
31339 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
31340 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
31341 (ACCUMULATE_OUTGOING_ARGS): Define.
31342 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
31343 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
31344
31345 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
31346
31347 PR target/43471
31348 * config/sh/sh.c (sh_legitimize_reload_address): Use
31349 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
31350 Remove a unneeded check for offset_base.
31351
31352 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
31353
31354 * configure: Regenerated.
31355
31356 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31357
31358 * config/s390/s390.c (s390_call_save_register_used): Switch back
31359 to HARD_REGNO_NREGS.
31360
31361 2010-04-15 Richard Guenther <rguenther@suse.de>
31362
31363 * alias.c (alias_set_subset_of): Handle alias-set zero
31364 child properly.
31365
31366 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
31367 Julian Brown <julian@codesourcery.com>
31368
31369 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
31370 alternatives according to use of high and low regs.
31371 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
31372 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
31373 optimizing for size on Thumb-2.
31374
31375 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
31376
31377 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
31378
31379 2010-04-15 Richard Guenther <rguenther@suse.de>
31380
31381 * tree-ssa-structalias.c (struct variable_info): Add
31382 is_fn_info flag.
31383 (new_var_info): Initialize it.
31384 (dump_constraints): Support printing last added constraints.
31385 (debug_constraints): Adjust.
31386 (dump_constraint_graph): Likewise.
31387 (make_heapvar_for): Check for NULL cfun.
31388 (get_function_part_constraint): New function.
31389 (get_fi_for_callee): Likewise.
31390 (find_func_aliases): Properly implement IPA PTA constraints.
31391 (process_ipa_clobber): New function.
31392 (find_func_clobbers): Likewise.
31393 (insert_into_field_list_sorted): Remove.
31394 (create_function_info_for): Properly allocate vars for IPA mode.
31395 Do not use insert_into_field_list_sorted.
31396 (create_variable_info_for): Properly generate constraints for
31397 global vars in IPA mode.
31398 (dump_solution_for_var): Always dump the solution.
31399 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
31400 (find_what_var_points_to): Adjust.
31401 (pt_solution_set): Change.
31402 (pt_solution_ior_into): New function.
31403 (pt_solution_empty_p): Export.
31404 (pt_solution_includes_global): Adjust.
31405 (pt_solution_includes_1): Likewise.
31406 (pt_solutions_intersect_1): Likewise.
31407 (dump_sa_points_to_info): Check some invariants.
31408 (solve_constraints): Move constraint dumping ...
31409 (compute_points_to_sets): ... here.
31410 (ipa_pta_execute): ... and here.
31411 (compute_may_aliases): Do not re-compute points-to info
31412 locally if IPA info is available.
31413 (ipa_escaped_pt): New global var.
31414 (ipa_pta_execute): Properly implement IPA PTA.
31415 * tree-into-ssa.c (dump_decl_set): Support dumping
31416 decls not in referenced-vars.
31417 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
31418 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
31419 (dump_points_to_solution): Likewise.
31420 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
31421 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
31422 (remap_gimple_stmt): Reset call clobber/use information if necessary.
31423 (copy_decl_to_var): Copy DECL_PT_UID.
31424 (copy_result_decl_to_var): Likewise.
31425 * tree.c (make_node_stat): Initialize DECL_PT_UID.
31426 (copy_node_stat): Copy it.
31427 * tree.h (DECL_PT_UID): New macro.
31428 (SET_DECL_PT_UID): Likewise.
31429 (DECL_PT_UID_SET_P): Likewise.
31430 (struct tree_decl_minimal): Add pt_uid member.
31431 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
31432 (pt_solution_empty_p): Declare.
31433 (pt_solution_set): Adjust.
31434 (ipa_escaped_pt): Declare.
31435 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
31436 * gimple-pretty-print.c (pp_points_to_solution): New function.
31437 (dump_gimple_call): Dump call clobber/use information.
31438 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
31439 * tree-pass.h (TDF_ALIAS): New dump option.
31440 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
31441 * doc/invoke.texi (-fipa-pta): Update documentation.
31442
31443 2010-04-15 Richard Guenther <rguenther@suse.de>
31444
31445 * Makefile.in (OBJS-common): Add gimple-fold.o.
31446 (gimple-fold.o): New rule.
31447 * tree.h (maybe_fold_offset_to_reference,
31448 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
31449 prototypes ...
31450 * gimple.h: ... here.
31451 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
31452 may_propagate_address_into_dereference): Move prototypes ...
31453 * gimple.h: ... here.
31454 * tree-ssa-ccp.c (get_symbol_constant_value,
31455 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
31456 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
31457 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
31458 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
31459 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
31460 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
31461 gimplify_and_update_call_from_tree): Move ...
31462 * gimple-fold.c: ... here. New file.
31463 (ccp_fold_builtin): Rename to ...
31464 (gimple_fold_builtin): ... this.
31465 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
31466
31467 2010-04-15 Richard Guenther <rguenther@suse.de>
31468
31469 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
31470 fit_double_type, force_fit_type_double, add_double_with_sign,
31471 neg_double, mul_double_with_sign, lshift_double, rshift_double,
31472 lrotate_double, rrotate_double, div_and_round_double): Move ...
31473 * double-int.c: ... here.
31474 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
31475 add_double, neg_double, mul_double_with_sign, mul_double,
31476 lshift_double, rshift_double, lrotate_double, rrotate_double,
31477 div_and_round_double): Move prototypes ...
31478 * double-int.h: ... here.
31479
31480 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
31481
31482 PR target/43742
31483 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
31484 matching constraints to ensure inputs match the output.
31485
31486 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
31487
31488 PR target/43742
31489 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
31490 in an input-only operand.
31491
31492 2010-04-15 Anatoly Sokolov <aesok@post.ru>
31493
31494 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
31495 (double_int_not, double_int_lshift, double_int_rshift): Declare.
31496 (double_int_negative_p): Convert to static inline function.
31497 * double-int.c (double_int_lshift, double_int_lshift): New functions.
31498 (double_int_negative_p): Remove.
31499 * tree.h (lshift_double, rshift_double):
31500 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
31501 * fold-const.c (fold_convert_const_int_from_real,
31502 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
31503 (lshift_double): Change type of arith argument to bool.
31504 (rshift_double): Change type of arith argument to bool. Correct
31505 comment.
31506 * expmed.c (mask_rtx, lshift_value): (Ditto.).
31507
31508 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
31509
31510 PR target/21803
31511 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
31512 at the start and end of the then/else blocks, and omit them from the
31513 conversion.
31514 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
31515 argument; all callers changed. Pass zero to old_insns_match_p instead.
31516 (flow_find_head_matching_sequence): New function.
31517 (old_insns_match_p): Check REG_EH_REGION notes for calls.
31518 * basic-block.h (flow_find_cross_jump,
31519 flow_find_head_matching_sequence): Declare functions.
31520
31521 2010-04-14 Jason Merrill <jason@redhat.com>
31522
31523 PR c++/36625
31524 * c-common.c (attribute_takes_identifier_p): New fn.
31525 * c-common.h: Declare it.
31526
31527 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
31528
31529 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
31530 splitter condition.
31531 (*udivmod<mode>4): Ditto.
31532
31533 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
31534
31535 * config/i386/i386.md (maxmin_int): Rename code attribute from
31536 maxminiprefix and update all users.
31537 (maxmin_float): Ditto from maxminfprefix.
31538 (logic): Ditto from logicprefix.
31539 (absneg_mnemonic): Ditto from absnegprefix.
31540 * config/i386/mmx.md: Update all users of maxminiprefix,
31541 maxminfprefix and logicprefix for rename.
31542 * config/i386/sse.md: Ditto.
31543 * config/i386/sync.md (sync_<code><mode>): Update for
31544 logicprefix rename.
31545
31546 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
31547
31548 PR 42966
31549 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
31550 warnings converted to errors.
31551
31552 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
31553
31554 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
31555 used insn_type variable.
31556 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
31557 to avoid set-but-not-used warning.
31558
31559 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
31560
31561 * df-core.c (df_ref_debug): Change format string placeholder
31562 from 0x%x to %#x.
31563 * dwarf2asm.c (dw2_asm_output_data_raw,
31564 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
31565 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
31566 * dwarf2out.c (output_cfi, output_cfi_directive,
31567 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
31568 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
31569 Ditto.
31570 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
31571 * print-rtl.c (print_rtx): Ditto.
31572
31573 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
31574
31575 PR middle-end/42694
31576 * builtins.c (expand_builtin_pow_root): New function to expand pow
31577 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
31578 series of sqrt and cbrt calls under -ffast-math.
31579 (expand_builtin_pow): Call it.
31580
31581 2010-04-14 Michael Matz <matz@suse.de>
31582
31583 PR tree-optimization/42963
31584 * tree-cfg.c (touched_switch_bbs): New static variable.
31585 (group_case_labels_stmt): New function broken out from ...
31586 (group_case_labels): ... here, use the above.
31587 (start_recording_case_labels): Allocate touched_switch_bbs.
31588 (end_recording_case_labels): Deallocate it, call
31589 group_case_labels_stmt.
31590 (gimple_redirect_edge_and_branch): Remember index of affected BB.
31591
31592 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
31593
31594 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
31595 from insn template.
31596
31597 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
31598
31599 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
31600
31601 2010-04-13 Jan Hubicka <jh@suse.cz>
31602
31603 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
31604 of optimized out static functions.
31605 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
31606 cost computation. Also sanity check for overflows.
31607 (update_caller_keys): Update cgraph_edge_badness call; properly
31608 update fibheap and sanity check that it is up to date.
31609 (add_new_edges_to_heap): Update cgraph_edge_badness.
31610 (cgraph_decide_inlining_of_small_function): Likewise;
31611 add sanity checking that badness in heap is up to date;
31612 improve dumping of reason; Update badness of calls to the
31613 offline copy of function currently inlined; dump badness
31614 of functions not inlined because of unit growth limits.
31615
31616 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
31617
31618 PR middle-end/32628
31619 * c-common.c (pointer_int_sum): Disregard overflow that occured only
31620 because of sign-extension change when converting to sizetype here...
31621 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
31622
31623 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
31624 the folding to constants. Remove redundant final conversion.
31625 (fold_binary) <associate>: Do not associate if the re-association of
31626 constants alone overflows.
31627 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
31628 to the end of the list.
31629 (multiple_of_p) <COND_EXPR>: New case.
31630
31631 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
31632
31633 * opt-functions.awk (opt_sanitized_name): New.
31634 (opt_enum): New.
31635 * optc-gen.awk: Use it
31636 * opth-gen.awk: Use it.
31637
31638 2010-04-13 Martin Jambor <mjambor@suse.cz>
31639
31640 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
31641 (sra_modify_assign): Delete stmts loading dead data even if racc has no
31642 children. Call replace_uses_with_default_def_ssa_name to handle
31643 SSA_NAES on lhs.
31644
31645 2010-04-13 Michael Matz <matz@suse.de>
31646
31647 PR middle-end/43730
31648 * builtins.c (expand_builtin_interclass_mathfn): Also create
31649 a register if the predicate doesn't match.
31650
31651 2010-04-13 Diego Novillo <dnovillo@google.com>
31652
31653 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
31654 * c-pch.c: Include timevar.h.
31655 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
31656 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
31657 * ggc-common.c: Include timevar.h.
31658 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
31659 * timevar.def (TV_PCH_SAVE): Define.
31660 (TV_PCH_CPP_SAVE): Define.
31661 (TV_PCH_PTR_REALLOC): Define.
31662 (TV_PCH_PTR_SORT): Define.
31663 (TV_PCH_RESTORE): Define.
31664 (TV_PCH_CPP_RESTORE): Define.
31665
31666 2010-04-13 Michael Matz <matz@suse.de>
31667
31668 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
31669 into MINUS_EXPRs.
31670 (can_reassociate_p): New function.
31671 (break_up_subtract_bb, reassociate_bb): Use it.
31672
31673 2010-04-13 Richard Guenther <rguenther@suse.de>
31674
31675 PR bootstrap/43737
31676 * builtins.c (c_readstr): Fix assert.
31677
31678 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
31679
31680 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
31681 when generating cltd insn.
31682
31683 (*ashl<mode>3_1): Remove special handling for register operand 2.
31684 (*ashlsi3_1_zext): Ditto.
31685 (*ashlhi3_1): Ditto.
31686 (*ashlhi3_1_lea): Ditto.
31687 (*ashlqi3_1): Ditto.
31688 (*ashlqi3_1_lea): Ditto.
31689 (*<shiftrt_insn><mode>3_1): Ditto.
31690 (*<shiftrt_insn>si3_1_zext): Ditto.
31691 (*<shiftrt_insn>qi3_1_slp): Ditto.
31692 (*<rotate_insn><mode>3_1): Ditto.
31693 (*<rotate_insn>si3_1_zext): Ditto.
31694 (*<rotate_insn>qi3_1_slp): Ditto.
31695
31696 2010-04-13 Richard Guenther <rguenther@suse.de>
31697
31698 * tree-ssa-structalias.c (callused_id): Remove.
31699 (call_stmt_vars): New.
31700 (get_call_vi): Likewise.
31701 (lookup_call_use_vi): Likewise.
31702 (lookup_call_clobber_vi): Likewise.
31703 (get_call_use_vi): Likewise.
31704 (get_call_clobber_vi): Likewise.
31705 (make_transitive_closure_constraints): Likewise.
31706 (handle_const_call): Adjust to do per-call call-used handling.
31707 (handle_pure_call): Likewise.
31708 (find_what_var_points_to): Remove general callused handling.
31709 (init_base_vars): Likewise.
31710 (init_alias_vars): Initialize call_stmt_vars.
31711 (compute_points_to_sets): Process call-used and call-clobbered
31712 vars for call statements.
31713 (delete_points_to_sets): Free call_stmt_vars.
31714
31715 2010-04-13 Richard Guenther <rguenther@suse.de>
31716
31717 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
31718 Only add RW dependence for dependence distance zero.
31719 Adjust maximal vectorization factor according to dependences.
31720 Move alignment handling ...
31721 (vect_find_same_alignment_drs): ... here. New function.
31722 (vect_analyze_data_ref_dependences): Adjust.
31723 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
31724 (vect_analyze_data_refs): Adjust minimal vectorization factor
31725 according to data references.
31726 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
31727 dependences before determining the vectorization factor.
31728 Analyze alignment after determining the vectorization factor.
31729 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
31730 dependences before alignment.
31731 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
31732 Adjust prototype.
31733 (vect_analyze_data_refs): Likewise.
31734 (MAX_VECTORIZATION_FACTOR): New define.
31735
31736 2010-04-13 Duncan Sands <baldrick@free.fr>
31737
31738 * except.h (lang_eh_type_covers): Remove.
31739 * except.c (lang_eh_type_covers): Likewise.
31740
31741 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31742 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31743
31744 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
31745 * config/s390/s390.c: Replace UNTIS_PER_WORD with
31746 UNITS_PER_LONG where it is ABI relevant.
31747 (s390_return_addr_rtx): Likewise.
31748 (s390_back_chain_rtx): Likewise.
31749 (s390_frame_area): Likewise.
31750 (s390_frame_info): Likewise.
31751 (s390_initial_elimination_offset): Likewise.
31752 (save_gprs): Likewise.
31753 (s390_emit_prologue): Likewise.
31754 (s390_emit_epilogue): Likewise.
31755 (s390_function_arg_advance): Likewise.
31756 (s390_function_arg): Likewise.
31757 (s390_va_start): Likewise.
31758 (s390_gimplify_va_arg): Likewise.
31759 (s390_function_profiler): Likewise.
31760 (s390_optimize_prologue): Likewise.
31761 (s390_rtx_costs): Likewise.
31762 (s390_secondary_reload): Likewise.
31763 (s390_promote_function_mode): Likewise.
31764 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
31765 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
31766 registers available.
31767 (s390_unwind_word_mode): New function.
31768 (s390_function_value): Split 64 bit values into register pair if
31769 used as return value.
31770 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
31771 function call parameters. Handle parallels.
31772 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
31773 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
31774 (DWARF_CIE_DATA_ALIGNMENT): New macro.
31775 (s390_expand_setmem): Remove unused variable src_addr.
31776 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
31777 deal with 64 bit registers.
31778 * config/s390/s390.h: Define __zarch__ predefined macro.
31779 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
31780 (UNITS_PER_LONG): New macro.
31781 * libjava/include/s390-signal.h: Define extended ucontext
31782 structure containing the upper halfs of the 64 bit registers.
31783
31784 2010-04-13 Simon Baldwin <simonb@google.com>
31785
31786 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
31787
31788 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
31789
31790 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
31791 rvalue on the RHS if the LHS is of a non-renamable type.
31792 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
31793
31794 2010-04-13 Matthias Klose <doko@ubuntu.com>
31795
31796 * gcc.c (cc1_options): Handle -iplugindir before processing
31797 the cc1 spec. Only add -iplugindir once.
31798 (cpp_unique_options): Add -iplugindir option if -fplugin* options
31799 found.
31800 * common.opt (iplugindir): Remove `Separate' property, initialize.
31801 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
31802 option.
31803 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
31804 (distclean): Remove plugin dir.
31805 * doc/invoke.texi: Document -iplugindir.
31806
31807 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
31808
31809 * doc/plugins.texi (Loading Plugins): Document short
31810 -fplugin=foo option.
31811 (Plugin API): Mention default_plugin_dir_name function.
31812
31813 * gcc.c (find_file_spec_function): Add new declaration.
31814 (static_spec_func): Use it for "find-file".
31815 (find_file_spec_function): Add new function.
31816 (cc1_options): Add -iplugindir option if -fplugin* options found.
31817
31818 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
31819
31820 * plugin.c (add_new_plugin): Updated comment, and handle short
31821 plugin name.
31822 (default_plugin_dir_name): Added new function.
31823
31824 * common.opt (iplugindir): New option to set the plugin directory.
31825
31826 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
31827
31828 * config/i386/i386.md (any_rotate): New code iterator.
31829 (rotate_insn): New code attribute.
31830 (rotate): Ditto.
31831 (SWIM124): New mode iterator.
31832 (<rotate_insn>ti3): New expander.
31833 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
31834 any_rotate code iterator.
31835 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
31836 using any_rotate code iterator and SWIM124 mode iterator.
31837 (ix86_rotlti3): New insn_and_split pattern.
31838 (ix86_rotrti3): Ditto.
31839 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
31840 ix86_rotl{di,ti}3 patterns.
31841 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
31842 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
31843 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
31844 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
31845 code iterator and SWI mode iterator.
31846 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
31847 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
31848 code iterator.
31849 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
31850 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
31851 (bswap rotatert splitter): Add splitter.
31852 (bswap splitter): Macroize splitter using any_rotate code iterator.
31853 Add insn predicate to split only for TARGET_USE_XCHGB or when
31854 optimizing function for size.
31855
31856 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31857
31858 * config/pa/pa.c (emit_move_sequence): Remove use of
31859 deleted variable flag_argument_noalias.
31860
31861 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31862
31863 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
31864 configurations.
31865 Add to unsupported targets list.
31866 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
31867 sparc*-sun-solaris2.[567]* from target lists.
31868 * configure: Regenerate.
31869 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
31870 removal.
31871 Remove Solaris 7 patch references.
31872 (Specific, sparc-sun-solaris2.7): Removed.
31873 (sparc-sun-solaris2*): Update Solaris 7 example.
31874 (sparc64-*-solaris2*): Likewise.
31875
31876 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31877
31878 * config.build (alpha*-dec-osf4*): Remove.
31879 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
31880 of obsolete configurations.
31881 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
31882 support.
31883 * config/alpha/t-osf4: Renamed to ...
31884 * config/alpha/t-osf5: ... this.
31885 * config/alpha/osf.h: Renamed to ...
31886 * config/alpha/osf5.h: ... this.
31887 Merged old osf5.h contents.
31888 Update comments.
31889 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
31890 (EXTRA_SPECS): Removed.
31891 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
31892 reflect removal of Tru64 UNIX V4.0/V5.0 support.
31893 Document that.
31894
31895 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31896
31897 * doc/contrib.texi (Contributors, Rainer Orth): Update.
31898
31899 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
31900
31901 PR/43702
31902 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
31903 __thiscall convention.
31904
31905 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31906
31907 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
31908 orig_base.
31909 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
31910
31911 2010-04-12 Steve Ellcey <sje@cup.hp.com>
31912
31913 * function.c (assign_parms_initialize_all): Add unused attribute
31914 to fntype.
31915
31916 2010-04-12 Richard Guenther <rguenther@suse.de>
31917
31918 * gsstruct.def (GSS_CALL): New.
31919 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
31920 * gimple.h: Include tree-ssa-alias.h.
31921 (struct gimple_statement_call): New.
31922 (union gimple_statement_struct_d): Add gimple_call member.
31923 (gimple_call_reset_alias_info): Declare.
31924 (gimple_call_use_set): New function.
31925 (gimple_call_clobber_set): Likewise.
31926 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
31927 * gimple.c (gimple_call_reset_alias_info): New function.
31928 (gimple_build_call_1): Call it.
31929 * lto-streamer-in.c (input_gimple_stmt): Likewise.
31930 * tree-inline.c (remap_gimple_stmt): Likewise.
31931 (expand_call_inline): Remove callused handling.
31932 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
31933 * tree-dfa.c (dump_variable): Likewise.
31934 * tree-parloops.c (parallelize_loops): Likewise.
31935 * tree-ssa.c (init_tree_ssa): Likewise.
31936 (delete_tree_ssa): Likewise.
31937 * tree-flow-inline.h (is_call_used): Remove.
31938 * tree-flow.h (struct gimple_df): Remove callused member.
31939 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
31940 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
31941 (ref_maybe_used_by_call_p_1): Simplify.
31942 (call_may_clobber_ref_p_1): Likewise.
31943 * tree-ssa-structalias.c (compute_points_to_sets): Set
31944 the call stmt used and clobbered sets.
31945 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
31946 (find_tail_calls): Verify the tail call.
31947
31948 2010-04-12 Richard Guenther <rguenther@suse.de>
31949
31950 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
31951 single-iteration always-inline inlining.
31952 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
31953 (cgraph_decide_inlining): Do not handle always-inline specially.
31954 (try_inline): Remove always-inline cycle detection special case.
31955 Do not recurse on always-inlines.
31956 (cgraph_early_inlining): Do not iterate if not optimizing.
31957 (cgraph_gate_early_inlining): remove.
31958 (pass_early_inline): Run unconditionally.
31959 (gate_cgraph_decide_inlining): New function.
31960 (pass_ipa_inline): Use it. Do not run the IPA inliner if
31961 not inlining or optimizing.
31962 (cgraph_decide_inlining_of_small_functions): Also consider
31963 always-inline functions.
31964 (cgraph_default_inline_p): Return true for nodes which should
31965 disregard inline limits.
31966 (estimate_function_body_sizes): Assume zero size and time for
31967 nodes which are marked as disregarding inline limits.
31968 (cgraph_decide_recursive_inlining): Do not perform recursive
31969 inlining on always-inline nodes.
31970
31971 2010-04-12 Jakub Jelinek <jakub@redhat.com>
31972
31973 PR bootstrap/43699
31974 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
31975 for exprs satisfying handled_component_p.
31976
31977 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
31978
31979 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
31980 non-constant aggregate elements.
31981
31982 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
31983 is a real initialization.
31984
31985 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
31986
31987 PR c/36774
31988 * c-decl.c (start_function): Move forward check for nested function.
31989
31990 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
31991
31992 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
31993 * config/sh/sh.c: Include reload.h.
31994 (sh_legitimize_reload_address): New.
31995 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
31996 sh_legitimize_reload_address.
31997
31998 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31999
32000 * config/sh/sh.md (*movqi_pop): New insn pattern.
32001 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
32002
32003 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
32004
32005 * config/i386/i386.md (any_shiftrt): New code iterator.
32006 (shiftrt_insn): New code attribute.
32007 (shiftrt): Ditto.
32008 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
32009 using any_shiftrt code iterator.
32010 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
32011 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
32012 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
32013 pattern from corresponding peephole2 patterns.
32014 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
32015 using any_shiftrt code iterator.
32016 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
32017 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
32018 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
32019 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
32020 *{ashr,lshr}<mode>3_cmp_zext.
32021 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
32022
32023 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
32024
32025 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
32026 scratch register.
32027 (*lshr<mode>3_cconly): Ditto.
32028
32029 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
32030
32031 * config/i386/i386.md (lshr<mode>3): Macroize expander from
32032 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
32033 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
32034 pattern from *lshr{di,ti}3_1 and corresponding splitters using
32035 DWI mode iterator.
32036 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
32037 from corresponding peephole2 patterns.
32038 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
32039 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
32040 and *lshrdi3_1_rex64 using SWI mode iterator.
32041 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
32042 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
32043 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
32044 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
32045 and *lshrdi3_cmp_rex64 using SWI mode iterator.
32046 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
32047 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
32048 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
32049 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
32050 SWI mode iterator.
32051
32052 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
32053
32054 * config/i386/i386.md (ashr<mode>3): Macroize expander from
32055 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
32056 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
32057 pattern from *ashr{di,ti}3_1 and corresponding splitters using
32058 DWI mode iterator.
32059 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
32060 from corresponding peephole2 patterns.
32061 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
32062 (ashrsi3_cvt): Rename from ashrsi3_31.
32063 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
32064 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
32065 and x86_64_shift_adj_3 using SWI48 mode iterator.
32066 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
32067 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
32068 and *ashrdi3_1_rex64 using SWI mode iterator.
32069 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
32070 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
32071 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
32072 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
32073 and *ashrdi3_cmp_rex64 using SWI mode iterator.
32074 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
32075 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
32076 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
32077 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
32078 SWI mode iterator.
32079 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
32080 * config/i386/i386.c (ix86_split_ashr): Update for renamed
32081 x86_shift<mode>_adj_3 expanders.
32082
32083 2010-04-10 Wei Guozhi <carrot@google.com>
32084
32085 PR target/42601
32086 * config/arm/arm.c (arm_pic_static_addr): New function.
32087 (legitimize_pic_address): Call arm_pic_static_addr when it detects
32088 a static symbol.
32089 (arm_output_addr_const_extra): Output expression for new pattern.
32090 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
32091
32092 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
32093
32094 * ira-costs.c (record_reg_classes): Ignore alternatives that are
32095 not enabled.
32096
32097 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
32098 * web.c: Include "insn-config.h" and "recog.h".
32099 (union_match_dups): New function.
32100 (web_main): Call it.
32101 (union_defs): Don't try to recognize match_dups.
32102
32103 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
32104 if doing so would replace the entire pattern.
32105
32106 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
32107
32108 PR target/43707
32109 PR target/43709
32110 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
32111 and splitter pattern. Change splitter operand 1 predicate to
32112 nonmemory_operand.
32113
32114 2010-04-09 Martin Jambor <mjambor@suse.cz>
32115
32116 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
32117 lattices are addresses of CONST_DECLs with the same initial value.
32118 (ipcp_print_all_lattices): Print values of CONST_DECLs.
32119 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
32120
32121 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
32122 Bernd Schmidt <bernds@codesourcery.com>
32123
32124 * loop-invariant.c (replace_uses): New static function.
32125 (move_invariant_reg): Use it to ensure we can replace the uses.
32126
32127 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
32128
32129 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
32130 function template.
32131 (picochip_override_options): Enable section anchors only above -O1.
32132 (picochip_reorg): Fixed a couple of build warnings.
32133
32134 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32135
32136 * configure.ac (plugin -rdynamic test): Log result.
32137 * configure: Regenerate.
32138 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
32139 (RDYNAMIC_SPEC): Define.
32140 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
32141
32142 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32143
32144 * configure.ac: Determine Sun ld version numbers.
32145 (comdat_group): Restrict GNU ld version checks to gld.
32146 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
32147 (enable_comdat): Support --enable-comdat.
32148 * configure: Regenerate.
32149 * doc/install.texi (Configuration): Document --enable-comdat.
32150
32151 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32152
32153 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
32154 * config/sol2-gld.h: ... here.
32155 * config.gcc (sparc*-*-solaris2*): Reflect this.
32156 (i[34567]86-*-solaris2*): Use it.
32157
32158 2010-04-09 Steve Ellcey <sje@cup.hp.com>
32159
32160 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
32161 setup_clocks_p.
32162 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
32163
32164 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
32165
32166 PR 42965
32167 * diagnostic.c (diagnostic_initialize): Initialize
32168 some_warnings_are_errors.
32169 (diagnostic_finish): New.
32170 (diagnostic_action_after_output): Call it before exiting.
32171 (diagnostic_report_diagnostic): Do not print message here. Set
32172 some_warnings_are_errors.
32173 * diagnostic.h (diagnostic_context): Delete
32174 issue_warnings_are_errors_message. Add some_warnings_are_errors.
32175 (diagnostic_finish): Declare.
32176 * toplev.c (toplev_main): Call it before exit.
32177
32178 2010-04-09 Jason Merrill <jason@redhat.com>
32179
32180 PR c++/42623
32181 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
32182 for incomplete type.
32183
32184 PR c++/41788
32185 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
32186 based on a warning flag.
32187
32188 2010-04-09 Richard Guenther <rguenther@suse.de>
32189
32190 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
32191
32192 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
32193
32194 PR bootstrap/43684
32195 * varasm.c (default_assemble_visibility): Wrap vars that are
32196 set, but unused, by targets without GAS.
32197 * config/rs6000/rs6000.c (paired_emit_vector_compare):
32198 Remove set, but unused, vars.
32199 (rs6000_legitimize_tls_address): Likewise.
32200 (altivec_expand_dst_builtin): Likewise.
32201 * config/darwin.c (machopic_classify_symbol): Likewise.
32202 (machopic_indirection_name): Likewise.
32203
32204 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
32205
32206 * config/i386/i386.md (DWI): New mode iterator.
32207 (S): New mode attribute.
32208 (shift_operand): Ditto.
32209 (shift_immediate_operand): Ditto.
32210 (ashl_input_operand): Ditto.
32211 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
32212 using SDWIM mode iterator.
32213 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
32214 pattern from *ashl{di,ti}3_1 and corresponding splitters using
32215 DWI mode iterator.
32216 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
32217 from corresponding peephole2 patterns.
32218 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
32219 and x86_64_shift_adj_1 using SWI48 mode iterator.
32220 (x86_shift<mode>_adj_2): Ditto.
32221 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
32222 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
32223 using SWI48 mode iterator.
32224 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
32225 *ashldi3_cmp_rex64 using SWI mode iterator.
32226 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
32227 *ashldi3_cconly_rex64 using SWI mode iterator.
32228 * config/i386/i386.c (ix86_split_ashl): Update for renamed
32229 x86_shift<mode>_adj_{1,2}.
32230 (ix86_split_ashr): Ditto.
32231 (ix86_split_lshr): Ditto.
32232
32233 2010-04-09 Richard Guenther <rguenther@suse.de>
32234
32235 * target.h (builtin_conversion): Pass in input and output types.
32236 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
32237 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
32238 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
32239 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
32240
32241 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
32242 Handle AVX modes.
32243 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
32244
32245 2010-04-09 Richard Guenther <rguenther@suse.de>
32246
32247 PR target/43152
32248 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
32249
32250 2010-04-09 Richard Guenther <rguenther@suse.de>
32251
32252 * tree-vectorizer.h (struct _stmt_vec_info): Document
32253 that vectype is the type of the LHS.
32254 (supportable_widening_operation, supportable_narrowing_operation):
32255 Get both input and output vector types as arguments.
32256 (vect_is_simple_use_1): Declare.
32257 (get_same_sized_vectype): Likewise.
32258 * tree-vect-loop.c (vect_determine_vectorization_factor):
32259 Set STMT_VINFO_VECTYPE to the vector type of the def.
32260 (vectorizable_reduction): Adjust.
32261 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
32262 Adjust. Specify the output vector type.
32263 (vect_pattern_recog_1): Adjust.
32264 * tree-vect-stmts.c (get_same_sized_vectype): New function.
32265 (vectorizable_call): Adjust.
32266 (vectorizable_conversion): Likewise.
32267 (vectorizable_operation): Likewise.
32268 (vectorizable_type_demotion): Likewise.
32269 (vectorizable_type_promotion): Likewise.
32270 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
32271 the def.
32272 (vect_is_simple_use_1): New function.
32273 (supportable_widening_operation): Get both input and output
32274 vector types.
32275 (supportable_narrowing_operation): Likewise.
32276 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
32277
32278 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
32279
32280 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
32281 __thiscall and _thiscall as predefined macros.
32282 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
32283 thiscall attribute handling.
32284 (ix86_comp_type_attributes): Likewise.
32285 (ix86_function_regparm): Likewise.
32286 (ix86_return_pops_args): Likewise.
32287 (init_cumulative_args): Likewise.
32288 (find_drap_reg): Likewise.
32289 (ix86_static_chain): Likewise.
32290 (x86_this_parameter): Likewise.
32291 (x86_output_mi_thunk): Likewise.
32292 (ix86_attribute_table): Add description for thiscall attribute.
32293 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
32294 * doc/extend.texi: Add documentation for thiscall.
32295
32296 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
32297
32298 PR c++/28584
32299 * c.opt (Wint-to-pointer-cast): Available in C++.
32300 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
32301
32302 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
32303
32304 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
32305 * calls.c (expand_call): Pass the function type to aggregate_value_p.
32306 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
32307 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
32308 function type instead. Reorder and simplify checks.
32309
32310 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
32311
32312 2010-04-08 Jing Yu <jingyu@google.com>
32313 Zdenek Dvorak <ook@ucw.cz>
32314
32315 PR tree-optimization/42720
32316 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
32317 loop unswitch conditions here from ...
32318 (tree_unswitch_single_loop): ... here.
32319
32320 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
32321
32322 * tree-if-conv.c: Fix comments and simplify logic.
32323
32324 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
32325
32326 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
32327 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
32328 (main_tree_if_conversion): Update call to tree_if_conversion.
32329
32330 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
32331
32332 PR 42485
32333 * doc/invoke.texi (-b,-V): Delete.
32334 * doc/tm.texi: Do not mention -b.
32335 * gcc.c (display_help): Delete -b and -V.
32336 (process_command): Delete -b and -V.
32337 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
32338
32339 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
32340 Wolfgang Gellerich <gellerich@de.ibm.com>
32341
32342 Implement target hook for loop unrolling
32343 * target.h (loop_unroll_adjust): Add a new target hook function.
32344 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
32345 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
32346 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
32347 (s390_loop_unroll_adjust): Implement the new target hook for s390.
32348 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
32349 target hook.
32350 (decide_unroll_stupid): Likewise.
32351
32352 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32353
32354 PR target/43643
32355 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
32356
32357 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32358
32359 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
32360 (Specific, *-*-solaris2*): Likewise.
32361 Don't prefer Sun as over GNU as.
32362
32363 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
32364
32365 * config/s390/s390.c (override_options): Adjust the z10 defaults
32366 for max-unroll-times, max-completely-peeled-insns
32367 and max-completely-peel-times.
32368
32369 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
32370
32371 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
32372 instructions for z10.
32373 (s390_expand_setmem): Likewise.
32374 (s390_expand_cmpmem): Likewise.
32375
32376 2010-04-08 Richard Guenther <rguenther@suse.de>
32377
32378 PR tree-optimization/43679
32379 * tree-ssa-pre.c (eliminate): Only propagate copies.
32380
32381 2010-04-08 Jakub Jelinek <jakub@redhat.com>
32382
32383 PR bootstrap/43681
32384 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
32385 set but not used variable warning.
32386
32387 2010-04-08 Wei Guozhi <carrot@google.com>
32388
32389 PR target/41653
32390 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
32391 (arm_size_rtx_costs): Call the new function when optimized for size.
32392
32393 2010-04-08 Jakub Jelinek <jakub@redhat.com>
32394
32395 PR debug/43670
32396 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
32397 op0 is not a MEM, just return NULL instead of assertion
32398 failure.
32399 (discover_nonconstant_array_refs): Don't walk debug stmts.
32400
32401 2010-04-08 Doug Kwan <dougkwan@google.com>
32402
32403 * configure.ac: Recognize gold and do not use its version number
32404 to test ld features.
32405 * configure: Regenerate.
32406
32407 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
32408
32409 PR middle-end/40815
32410 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
32411 (negate_value): Move code to push elements to broken_up_substracts ...
32412 (eliminate_plus_minus_pair): ... here. Push operands that have no
32413 negative pair to plus_negates.
32414 (repropagate_negates, init_reassoc, fini_reassoc): Update.
32415
32416 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32417
32418 * doc/install.texi (Configuration): Move description of
32419 --enable-lto, --with-libelf*, --enable-gold from Java section to
32420 general section.
32421
32422 * doc/generic.texi (Working with declarations)
32423 (Function Properties, C and C++ Trees): Fix typos.
32424 * doc/sourcebuild.texi (Top Level): Likewise.
32425
32426 2010-04-07 Jakub Jelinek <jakub@redhat.com>
32427
32428 PR c/18624
32429 * tree.h (DECL_READ_P): Define.
32430 (struct tree_decl_common): Add decl_read_flag.
32431 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
32432 a set but not used warning.
32433 (merge_decls): Merge DECL_READ_P flag.
32434 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
32435 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
32436 * c-common.c (handle_used_attribute, handle_unused_attribute):
32437 Likewise.
32438 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
32439 New prototypes.
32440 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
32441 New functions.
32442 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
32443 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
32444 c_parser_binary_expression, c_parser_cast_expression,
32445 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
32446 Call default_function_array_read_conversion instead of
32447 default_function_array_conversion where needed.
32448 (c_parser_unary_expression, c_parser_conditional_expression,
32449 c_parser_postfix_expression_after_primary, c_parser_initelt):
32450 Likewise. Call mark_exp_read where needed.
32451 (c_parser_statement_after_labels, c_parser_asm_operands,
32452 c_parser_typeof_specifier, c_parser_sizeof_expression,
32453 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
32454 where needed.
32455 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
32456 New.
32457 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
32458 (warn_unused_but_set_parameter): Default to warn_unused
32459 && extra_warnings.
32460 * doc/invoke.texi: Document -Wunused-but-set-variable and
32461 -Wunused-but-set-parameter.
32462
32463 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
32464 used count variable.
32465 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
32466 when operandN variables aren't used in the body of the expander
32467 or splitter.
32468 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
32469 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
32470 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
32471 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
32472 FOR_EACH_IMM_USE_ON_STMT): Likewise.
32473 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
32474 * tree.c (PROCESS_ARG): Likewise.
32475
32476 2010-04-07 Simon Baldwin <simonb@google.com>
32477
32478 * diagnostic.h (diagnostic_override_option_index): New macro to
32479 set a diagnostic's option_index.
32480 * c-tree.h (c_cpp_error): Add warning reason argument.
32481 * opts.c (_warning_as_error_callback): New.
32482 (register_warning_as_error_callback): Store callback for
32483 warnings enabled via enable_warning_as_error.
32484 (enable_warning_as_error): Call callback, minor code tidy.
32485 * opts.h (register_warning_as_error_callback): Declare.
32486 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
32487 response to -Werror=.
32488 (c_common_init_options): Register warning_as_error_callback in opts.c.
32489 * common.opt: Add -Wno-cpp option.
32490 * c-common.c (struct reason_option_codes_t): Map cpp warning
32491 reason codes to gcc option indexes.
32492 * (c_option_controlling_cpp_error): New function, lookup the gcc
32493 option index for a cpp warning reason code.
32494 * (c_cpp_error): Add warning reason argument, call
32495 c_option_controlling_cpp_error for diagnostic_override_option_index.
32496 * doc/invoke.texi: Document -Wno-cpp.
32497
32498 2010-04-07 Richard Guenther <rguenther@suse.de>
32499
32500 * ipa-reference.c (mark_load): Use get_base_address.
32501 (mark_store): Likewise.
32502
32503 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
32504 inserting GIMPLE_NOPs into the IL.
32505 * tree-ssa-structalias.c (get_constraint_for_component_ref):
32506 Explicitly strip handled components and indirect references.
32507
32508 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
32509 folding address expressions.
32510 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
32511 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
32512 operand_equal_p to compare decls.
32513 (ptr_deref_may_alias_decl_p): Likewise.
32514 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
32515 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
32516 Handle reversed comparison ops.
32517 * tree-sra.c (asm_visit_addr): Use get_base_address.
32518 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
32519 * ipa-reference.c (mark_address): Use get_base_address.
32520
32521 2010-04-07 Richard Guenther <rguenther@suse.de>
32522
32523 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
32524 Propagate constants everywhere.
32525
32526 2010-04-07 Jakub Jelinek <jakub@redhat.com>
32527
32528 PR debug/43516
32529 * tree.c (MAX_INT_CACHED_PREC): Define.
32530 (nonstandard_integer_type_cache): New array.
32531 (build_nonstandard_integer_type): Cache results for precision
32532 <= MAX_INT_CACHED_PREC.
32533
32534 2010-04-07 Richard Guenther <rguenther@suse.de>
32535
32536 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
32537 -fargument-noalias-global, -fargument-noalias-anything): Remove.
32538 * common.opt: Likewise.
32539 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
32540 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
32541 (nonoverlapping_memrefs_p): Likewise.
32542 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
32543 * opts.c (common_handle_option): Handle OPT_fargument_alias,
32544 OPT_fargument_noalias, OPT_fargument_noalias_anything and
32545 OPT_fargument_noalias_global for backward compatibility.
32546
32547 2010-04-07 Richard Guenther <rguenther@suse.de>
32548
32549 PR tree-optimization/43270
32550 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
32551 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
32552 * tree-ssa-pre.c (phi_translate_1): Adjust.
32553 (fully_constant_expression): Split out vn_reference handling to ...
32554 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
32555 Fold reads from constant strings.
32556 (vn_reference_lookup): Handle fully constant references.
32557 (vn_reference_lookup_pieces): Likewise.
32558 * Makefile.in (expmed.o-warn): Add -Wno-error.
32559
32560 2010-04-07 Martin Jambor <mjambor@suse.cz>
32561
32562 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
32563
32564 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
32565
32566 PR driver/41594
32567 * gcc.c: Add -static-libstdc++ to list of recognized options.
32568
32569 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32570
32571 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
32572
32573 2010-04-07 Richard Guenther <rguenther@suse.de>
32574
32575 PR middle-end/42617
32576 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
32577 bases build simple mem attributes to retain points-to information.
32578
32579 2010-04-07 Richard Guenther <rguenther@suse.de>
32580
32581 PR middle-end/42617
32582 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
32583 preserve points-to related information.
32584
32585 2010-04-07 Richard Guenther <rguenther@suse.de>
32586
32587 PR middle-end/42617
32588 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
32589 discard plain indirect references.
32590 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
32591 * tree.c (tree_nop_conversion): Likewise.
32592
32593 2010-04-07 Dodji Seketeli <dodji@redhat.com>
32594
32595 PR debug/43628
32596 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
32597
32598 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
32599
32600 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
32601 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
32602
32603 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
32604
32605 * tree-if-conv.c: Fix indentation and comments.
32606
32607 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
32608
32609 * tree-if-conv.c: Sort static functions in topological order.
32610
32611 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
32612
32613 * tree-if-conv.c: Fix indentation and comments.
32614
32615 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32616
32617 PR middle-end/43519
32618 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
32619 lang_hooks.types.type_for_size instead of
32620 build_nonstandard_integer_type.
32621 When converting an unsigned type to signed, double its precision.
32622 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
32623 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
32624 (graphite_create_new_loop_guard): When ub + 1 wraps around,
32625 use lb <= ub.
32626
32627 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32628
32629 PR middle-end/43519
32630 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
32631 POINTER_PLUS_EXPR for pointer types.
32632
32633 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32634
32635 PR middle-end/43519
32636 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
32637 * graphite-clast-to-gimple.c: Include langhooks.h.
32638 (max_signed_precision_type): New.
32639 (max_precision_type): Takes two types as arguments.
32640 (precision_for_value): New.
32641 (precision_for_interval): New.
32642 (gcc_type_for_interval): New.
32643 (gcc_type_for_value): New.
32644 (gcc_type_for_clast_term): New.
32645 (gcc_type_for_clast_red): New.
32646 (gcc_type_for_clast_bin): New.
32647 (gcc_type_for_clast_expr): Split up into several functions.
32648 (gcc_type_for_clast_eq): Rewritten.
32649 (compute_bounds_for_level): New.
32650 (compute_type_for_level_1): New.
32651 (compute_type_for_level): New.
32652 (gcc_type_for_cloog_iv): Removed.
32653 (gcc_type_for_iv_of_clast_loop): Rewritten.
32654 (graphite_create_new_loop): Compute the lower and upper bound types
32655 with gcc_type_for_clast_expr.
32656 (graphite_create_new_loop_guard): Same.
32657 (find_cloog_iv_in_expr): Removed.
32658 (compute_cloog_iv_types_1): Removed.
32659 (compute_cloog_iv_types): Removed.
32660 (gloog): Do not call compute_cloog_iv_types.
32661 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
32662 GBB_CLOOG_IV_TYPES.
32663 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
32664 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
32665 (GBB_CLOOG_IV_TYPES): Removed.
32666
32667 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32668
32669 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
32670 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
32671 (detect_commutative_reduction): Same.
32672
32673 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32674
32675 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
32676 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
32677 argument.
32678 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
32679 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
32680 (rewrite_commutative_reductions_out_of_ssa): Same.
32681 * passes.c (execute_function_todo): Call verify_ssa for every pass
32682 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
32683 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
32684 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
32685 with an extra argument.
32686 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
32687 verify_ssa only when the extra argument is true.
32688 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
32689 with an extra argument.
32690 (tree_transform_and_unroll_loop): Same.
32691
32692 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
32693
32694 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
32695 for all the passes of the LNO having LOOP_CLOSED_SSA.
32696 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
32697 * tree-loop-distribution.c (pass_loop_distribution): Same.
32698 * tree-pass.h (TODO_verify_loops): Removed.
32699 * tree-ssa-loop.c (pass_tree_loop_init): Same.
32700 (pass_lim): Same.
32701 (pass_tree_unswitch): Same.
32702 (pass_predcom): Same.
32703 (pass_vectorize): Same.
32704 (pass_linear_transform): Same.
32705 (pass_graphite_transforms): Same.
32706 (pass_iv_canon): Same.
32707 (pass_complete_unroll): Same.
32708 (pass_complete_unrolli): Same.
32709 (pass_parallelize_loops): Same.
32710 (pass_loop_prefetch): Same.
32711 (pass_iv_optimize): Same.
32712
32713 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
32714
32715 PR middle-end/32824
32716 * passes.c (init_optimization_passes): Move pass_lim before
32717 pass_copy_prop and pass_dce_loop.
32718
32719 2010-04-06 Jakub Jelinek <jakub@redhat.com>
32720
32721 PR target/43667
32722 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
32723 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
32724 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
32725 MULTI_* defines for 4 argument vpermil2p* builtins.
32726
32727 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
32728
32729 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
32730 * config/i386/i386.c (x86_maybe_negate_const_int): New.
32731 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
32732 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
32733 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
32734 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
32735 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
32736 Use x86_maybe_negate_const_int to output insn mnemonic.
32737 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
32738 check from instruction predicate. Update comments.
32739 * config/i386/sync.md (sync_add<mode>): Use
32740 x86_maybe_negate_const_int to output insn mnemonic.
32741
32742 2010-04-06 Jan Hubicka <jh@suse.cz>
32743
32744 PR tree-optimization/42906
32745 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
32746 IGNORE_SELF argument. Set visited_control_parents for fully
32747 processed BBs.
32748 (find_obviously_necessary_stmts): Update call of
32749 mark_control_dependent_edges_necessary.
32750 (propagate_necessity): Likewise. Handle PHI edges more curefully.
32751
32752 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
32753
32754 * config/i386/i386.md: Remove comment about 'e' and 'E'
32755 operand modifier.
32756
32757 2010-04-06 Richard Guenther <rguenther@suse.de>
32758
32759 PR tree-optimization/43627
32760 * tree-vrp.c (extract_range_from_unary_expr): Widenings
32761 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
32762 not varying.
32763
32764 2010-04-06 Jakub Jelinek <jakub@redhat.com>
32765
32766 * BASE-VER: Change to 4.6.0.
32767
32768 PR target/43638
32769 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
32770 handling.
32771
32772 2010-04-06 Richard Guenther <rguenther@suse.de>
32773
32774 PR middle-end/43661
32775 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
32776
32777 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32778
32779 * doc/invoke.texi (Optimize Options): Document that LTO
32780 won't remove object access purely due to incompatible
32781 declarations.
32782
32783 2010-04-04 Matthias Klose <doko@ubuntu.com>
32784
32785 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
32786 Initialize variable.
32787
32788 2010-04-03 Richard Guenther <rguenther@suse.de>
32789
32790 PR middle-end/42509
32791 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
32792 require a non-NULL MEM_OFFSET.
32793
32794 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
32795
32796 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
32797 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
32798 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
32799 config/alpha/predicates.md, config/arm/arm.md,
32800 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
32801 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
32802 config/darwin9.h, config/darwin.c, config/darwin.h,
32803 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
32804 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
32805 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
32806 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
32807 config/mips/mips.md, config/mn10300/mn10300.c,
32808 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
32809 config/rs6000/aix.h, config/rs6000/dfp.md,
32810 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
32811 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
32812 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
32813 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
32814 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
32815 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
32816 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
32817 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
32818 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
32819 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
32820 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
32821 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
32822 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
32823 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
32824 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
32825 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
32826 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
32827 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
32828 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
32829 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
32830 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
32831 opt-functions.awk, opth-gen.awk, params.def, passes.c,
32832 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
32833 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
32834 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
32835 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
32836 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
32837 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
32838 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
32839 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
32840 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
32841 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
32842 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
32843 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
32844 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
32845 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
32846
32847 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32848
32849 PR other/43620
32850 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
32851 * aclocal.m4: Regenerate.
32852
32853 2010-04-02 Richard Guenther <rguenther@suse.de>
32854
32855 PR tree-optimization/43629
32856 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
32857 if we have seen a constant value.
32858
32859 2010-04-02 Joseph Myers <joseph@codesourcery.com>
32860
32861 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
32862
32863 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
32864
32865 PR target/43469
32866 * arm.c (legitimize_tls_address): Adjust call to
32867 gen_tls_load_dot_plus_four.
32868 (arm_note_pic_base): New function.
32869 (arm_cannot_copy_insn_p): Use it.
32870 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
32871 constraint.
32872
32873 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32874
32875 PR bootstrap/43531
32876
32877 Revert:
32878 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32879
32880 * Makefile.in ($(out_object_file)): Depend on
32881 gt-$(basename $(notdir $(out_file))).h.
32882
32883 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
32884
32885 * config.gcc (lm32-*-rtems*): Add t-lm32.
32886
32887 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
32888
32889 * config.gcc: Add lm32-*-rtems*.
32890 * config/lm32/rtems.h: New file.
32891
32892 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
32893
32894 PR target/42609
32895 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
32896
32897 2010-04-01 Jakub Jelinek <jakub@redhat.com>
32898
32899 * dwarf2out.c (output_compilation_unit_header): For
32900 -gdwarf-4 use version 4 instead of version 3.
32901 (output_line_info): For version 4 and above emit additional
32902 maximum ops per insn header field.
32903 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
32904
32905 * dwarf2out.c (is_c_family, is_java): Remove.
32906 (lower_bound_default): New function.
32907 (add_bound_info, gen_descr_array_type_die): Use it.
32908
32909 2010-04-01 Dodji Seketeli <dodji@redhat.com>
32910
32911 PR debug/43325
32912 * dwarf2out.c (gen_variable_die): Allow debug info for variable
32913 re-declaration when it happens in a function.
32914
32915 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
32916
32917 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
32918 (cgraph_remove_function_insertion_hook): Same.
32919 (cgraph_call_function_insertion_hooks): Same.
32920
32921 2010-04-01 Richard Guenther <rguenther@suse.de>
32922
32923 PR middle-end/43614
32924 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
32925 and TREE_THIS_VOLATILE.
32926 (copy_ref_info): Likewise.
32927 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
32928 * tree.c (build6_stat): Ignore side-effects of all but arg5
32929 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
32930 TARGET_MEM_REF.
32931
32932 2010-04-01 Richard Guenther <rguenther@suse.de>
32933
32934 PR tree-optimization/43607
32935 * ipa-type-escape.c (check_call): Do not access non-existing
32936 arguments.
32937
32938 2010-04-01 Richard Guenther <rguenther@suse.de>
32939
32940 PR middle-end/43602
32941 Revert
32942 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
32943 Jack Howarth <howarth@bromo.med.uc.edu>
32944
32945 * tree-profile.c (tree_init_ic_make_global_vars): Make static
32946 variables TLS.
32947
32948 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32949
32950 * doc/install.texi (Prerequisites): Document libelf usability on
32951 IRIX 5/6 and Solaris 2.
32952 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
32953 Update GNU as, GNU ld requirements.
32954 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
32955 Document Sun Studio compiler download.
32956 Update and simplify as, ld recommendations.
32957 (Specific, *-*-solaris2.7): Note obsoletion, removal.
32958
32959 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32960
32961 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
32962 with_tune_32 to pentium4.
32963
32964 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
32965
32966 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
32967
32968 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32969
32970 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
32971 obsoletion, removal.
32972 Update IDO URL.
32973 Document GNU as requirement.
32974 Update configure requirements.
32975 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
32976 Recomment IRIX 6.5.18+.
32977 Document IDF/IDL requirement.
32978 Document GNU as requirement.
32979 Document GNU ld bootstrap failure.
32980 Remove freeware.sgi.com reference.
32981
32982 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32983
32984 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
32985 UNIX V4.0, V5.0 obsoletion, removal.
32986 Remove --with-gc=simple reference.
32987 Update VM requirements during bootstrap.
32988 Remove -oldas bootstrap description.
32989 Update binutils reference.
32990 Remove comparison failure note.
32991
32992 2010-03-31 Richard Guenther <rguenther@suse.de>
32993 Zdenek Dvorak <ook@ucw.cz>
32994 Sebastian Pop <sebastian.pop@amd.com>
32995
32996 PR middle-end/43464
32997 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
32998 with multiple arguments.
32999 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
33000
33001 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
33002
33003 * graphite-dependences.c (print_pddr): Call print_pdr with an
33004 extra argument.
33005 * graphite-poly.c (debug_pdr): Add an extra argument for the
33006 verbosity level.
33007 (print_pdr): Same.
33008 (print_pbb_domain): Same.
33009 (print_pbb): Same.
33010 (print_scop_context): Same.
33011 (print_scop): Same.
33012 (print_cloog): Same.
33013 (debug_pbb_domain): Same.
33014 (debug_pbb): Same.
33015 (print_pdrs): Same.
33016 (debug_pdrs): Same.
33017 (debug_scop_context): Same.
33018 (debug_scop): Same.
33019 (debug_cloog): Same.
33020 (print_scop_params): Same.
33021 (debug_scop_params): Same.
33022 (print_iteration_domain): Same.
33023 (print_iteration_domains): Same.
33024 (debug_iteration_domain): Same.
33025 (debug_iteration_domains): Same.
33026 (print_scattering_function): Same.
33027 (print_scattering_functions): Same.
33028 (debug_scattering_function): Same.
33029 (debug_scattering_functions): Same.
33030 * graphite-poly.h (debug_pdr): Update declaration.
33031 (print_pdr): Same.
33032 (print_pbb_domain): Same.
33033 (print_pbb): Same.
33034 (print_scop_context): Same.
33035 (print_scop): Same.
33036 (print_cloog): Same.
33037 (debug_pbb_domain): Same.
33038 (debug_pbb): Same.
33039 (print_pdrs): Same.
33040 (debug_pdrs): Same.
33041 (debug_scop_context): Same.
33042 (debug_scop): Same.
33043 (debug_cloog): Same.
33044 (print_scop_params): Same.
33045 (debug_scop_params): Same.
33046 (print_iteration_domain): Same.
33047 (print_iteration_domains): Same.
33048 (debug_iteration_domain): Same.
33049 (debug_iteration_domains): Same.
33050 (print_scattering_function): Same.
33051 (print_scattering_functions): Same.
33052 (debug_scattering_function): Same.
33053 (debug_scattering_functions): Same.
33054
33055 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
33056
33057 * graphite-poly.c (print_scattering_function_1): New.
33058 (print_scattering_function): Call it.
33059 (print_scop_params): Remove spaces at the end of lines.
33060 (print_cloog): New.
33061 (debug_cloog): New.
33062 * graphite-poly.h (print_cloog): Declared.
33063 (debug_cloog): Declared.
33064
33065 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
33066
33067 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
33068 in loop->header.
33069 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
33070 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
33071 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
33072 to switch between adding the IV bump in loop->latch or in loop->header.
33073
33074 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
33075
33076 * graphite-poly.c (print_scattering_function): Pretty print following
33077 the scoplib format.
33078 (print_pdr): Same.
33079 (print_pbb_domain): Same.
33080 (dump_gbb_cases): Same.
33081 (dump_gbb_conditions): Same.
33082 (print_pdrs): Same.
33083 (print_pbb): Same.
33084 (print_scop_params): Same.
33085 (print_scop_context): Same.
33086 (print_scop): Same.
33087 (print_pbb_body): New.
33088 (lst_indent_to): New.
33089 (print_lst): Start new lines with a #.
33090 * graphite-poly.h (pbb_bb): New.
33091 (pbb_index): Use pbb_bb.
33092 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
33093 disjuncts.
33094 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
33095
33096 2010-03-31 Jakub Jelinek <jakub@redhat.com>
33097
33098 * dwarf2out.c (size_of_die): For -gdwarf-4 use
33099 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
33100 and 0 instead of 1 for dw_val_class_flag.
33101 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
33102 dw_val_class_range_list, dw_val_class_loc_list,
33103 dw_val_class_lineptr and dw_val_class_macptr, use
33104 DW_FORM_flag_present for dw_val_class_flag and
33105 DW_FORM_exprloc for dw_val_class_loc.
33106 (output_die): For -gdwarf-4 print dw_val_class_loc
33107 size as uleb128 instead of 1 or 2 bytes and don't print
33108 anything for dw_val_class_flag.
33109
33110 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
33111 instead of cselib_lookup following by tweaking locs->setting_insn.
33112
33113 PR bootstrap/43596
33114 * cselib.c (cselib_process_insn): Clear cselib_current_insn
33115 even before returning from label, setjmp call or volatile asm
33116 handling.
33117
33118 2010-03-31 Richard Guenther <rguenther@suse.de>
33119
33120 PR middle-end/43600
33121 * cgraphunit.c (cgraph_output_in_order): Do not allocate
33122 temporary data on stack.
33123
33124 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33125
33126 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
33127 (PUSHSECTION_ASM_OP): Remove.
33128 (POPSECTION_ASM_OP): Remove.
33129 (PUSHSECTION_FORMAT): Remove.
33130 * config/sol2.h (PUSHSECTION_FORMAT): Define.
33131 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
33132 * config/sol2.c (solaris_output_init_fini): Use it.
33133
33134 2010-03-31 Jie Zhang <jie@codesourcery.com>
33135
33136 PR 43574
33137 * opt-functions.awk (var_type_struct): Use signed char type
33138 for simple variables.
33139
33140 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33141
33142 * config/sol2.c: Include output.h.
33143 (solaris_assemble_visibility): New function.
33144 * config/t-sol2 (sol2.o): Add output.h dependency.
33145 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
33146 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
33147 Redefine.
33148
33149 2010-03-31 Jakub Jelinek <jakub@redhat.com>
33150
33151 PR target/43580
33152 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
33153 V2SImode or XFmode on PRE_DEC.
33154
33155 PR debug/43557
33156 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
33157 BLKmode.
33158
33159 2010-03-31 Jie Zhang <jie@codesourcery.com>
33160
33161 PR 43562
33162 * reload.h (caller_save_initialized_p): Declare.
33163 * toplev.c (backend_init_target): Don't call
33164 init_caller_save but set caller_save_initialized_p to false.
33165 * caller-save.c (caller_save_initialized_p): Define.
33166 (init_caller_save): Check caller_save_initialized_p.
33167 * ira.c (ira): Call init_caller_save if flag_caller_saves.
33168
33169 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33170
33171 PR target/39048
33172 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
33173 and soft-fp/t-softfp to tmake_file.
33174 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
33175 (LIBGCC2_TF_CEXT): Define.
33176 (TF_SIZE): Define.
33177
33178 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
33179
33180 PR debug/42977
33181 * cselib.c (n_useless_values): Document handling of debug locs.
33182 (n_useless_debug_values, n_debug_values): New variables.
33183 (new_elt_loc_list): Don't add to debug values, keep count.
33184 (promote_debug_loc): New.
33185 (cselib_reset_table): Zero new variables.
33186 (entry_and_rtx_equal_p): Promote debug locs.
33187 (discard_useless_locs): Increment n_useless_debug_values for
33188 debug values.
33189 (remove_useless_values): Adjust n_useless_values and n_debug_values
33190 with n_useless_debug_values.
33191 (add_mem_for_addr): Promote debug locs.
33192 (cselib_lookup_mem): Likewise.
33193 (cselib_lookup_addr): Renamed to...
33194 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
33195 (cselib_log_lookup): ... this. Turn into...
33196 (cselib_lookup_addr): ... new wrapper.
33197 (cselib_lookup_from_insn): New.
33198 (cselib_invalidate_regno): Increment n_useless_debug_values for
33199 debug values.
33200 (cselib_invalidate_mem): Likewise.
33201 (cselib_process_insn): Take n_deleted and n_debug_values into
33202 account to guard remove_useless_value call.
33203 (cselib_finish): Zero n_useless_debug_values.
33204 * cselib.h (cselib_lookup_from_insn): Declare.
33205 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
33206 (sched_analyze_2): Likewise.
33207
33208 2010-03-30 Jakub Jelinek <jakub@redhat.com>
33209
33210 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
33211 functions.
33212 (adjust_mems): Replace narrowing SUBREG of expression containing
33213 just PLUS, MINUS, MULT and ASHIFT of registers and constants
33214 with operations in the narrower mode.
33215
33216 PR debug/43593
33217 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
33218 regs_invalidated_by_call instead all call_used_reg_set registers.
33219
33220 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
33221
33222 PR middle-end/43430
33223 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
33224 pointer comparisons with types_compatible_p.
33225 * tree-vect-stmts.c (vectorizable_call): Same.
33226 (vectorizable_condition): Same.
33227
33228 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33229
33230 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
33231 stack check if the mask would be zero.
33232
33233 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
33234 Jack Howarth <howarth@bromo.med.uc.edu>
33235
33236 * tree-profile.c (tree_init_ic_make_global_vars): Make static
33237 variables TLS.
33238
33239 2010-03-30 Joseph Myers <joseph@codesourcery.com>
33240
33241 PR other/25232
33242 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
33243 and __unordtf2.
33244 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
33245 Include ___unordxf2 and ___unordtf2.
33246 * config/i386/libgcc-glibc.ver: Do not define inheritance from
33247 GCC_4.4.0 here.
33248
33249 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
33250
33251 * config/lm32/t-lm32: New file.
33252 * config.gcc: Use the above file when targetting lm32.
33253
33254 2010-03-28 Duncan Sands <baldrick@free.fr>
33255
33256 * Makefile.in (PLUGIN_HEADERS): Add except.h.
33257
33258 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
33259
33260 PR middle-end/43431
33261 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
33262 Improve vectorization cost model diagnostic.
33263
33264 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
33265
33266 PR middle-end/43436
33267 * tree-vect-data-refs.c (vect_analyze_data_refs): When
33268 compute_data_dependences_for_loop returns false, early exit
33269 and output an extra diagnostic for the failed data reference
33270 analysis.
33271
33272 2010-03-29 Richard Guenther <rguenther@suse.de>
33273
33274 PR tree-optimization/43560
33275 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
33276 (can_sm_ref_p): Treat stores to readonly locations as trapping.
33277
33278 2010-03-29 Jie Zhang <jie@codesourcery.com>
33279
33280 PR 43564
33281 * toplev.c (process_options): Set optimization_default_node
33282 and optimization_current_node.
33283 * opts.c (decode_options): Don't set optimization_default_node
33284 and optimization_current_node.
33285
33286 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
33287
33288 * config/rtems.h: Abandon -qrtems_debug.
33289
33290 2010-03-28 Jan Hubicka <jh@suse.cz>
33291
33292 PR tree-optimization/43505
33293 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
33294 map should not be copied.
33295
33296 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33297
33298 PR middle-end/41674
33299 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
33300 cdtors, set DECL_PRESERVE_P.
33301 * ipa.c (cgraph_externally_visible_p): Return true if declaration
33302 should be preseved.
33303
33304 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
33305
33306 PR tree-optimization/43528
33307 * stor-layout.c (place_field): Check that constant fits into
33308 unsigned HWI when skipping calculation of MS bitfield layout.
33309
33310 2010-03-27 Jan Hubicka <jh@suse.cz>
33311
33312 PR middle-end/43391
33313 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
33314 notice_global_symbol work.
33315
33316 2010-03-27 Jakub Jelinek <jakub@redhat.com>
33317
33318 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
33319 instead of dwarf2out_decl.
33320 (struct var_loc_node): Remove section_label field.
33321 (dwarf2out_function_decl): New function.
33322 (dwarf2out_var_location): Don't set section_label field.
33323 (dwarf2out_begin_function): Don't empty decl_loc_table here.
33324
33325 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
33326
33327 PR tree-optimization/43544
33328 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
33329 First argument for builtin vectorized function hook is now a
33330 tree to be able to distinguish between machine specific and
33331 standard builtins.
33332 * targhooks.c (default_builtin_vectorized_function): Ditto.
33333 * targhooks.h (default_builtin_vectorized_function): Ditto.
33334 * target.h (struct gcc_target): Ditto.
33335 * tree-vect-stmts.c (vectorizable_function): Ditto.
33336 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
33337 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
33338 Ditto.
33339
33340 2010-03-26 Joseph Myers <joseph@codesourcery.com>
33341
33342 PR c/43381
33343 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
33344 nested binding iff it is a FUNCTION_DECL.
33345 (store_parm_decls_newstyle): Pass nested=true to bind for
33346 FUNCTION_DECLs amongst parameters.
33347
33348 2010-03-26 Jakub Jelinek <jakub@redhat.com>
33349
33350 * var-tracking.c (vt_expand_loc_callback): Don't run
33351 cselib_expand_value_rtx_cb in dummy mode if
33352 cselib_dummy_expand_value_rtx_cb returned false.
33353
33354 * var-tracking.c (emit_note_insn_var_location): For one part
33355 notes with offset 0, don't add EXPR_LIST around the location.
33356 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
33357 add_location_or_const_value_attribute): Adjust for that change.
33358
33359 PR debug/43540
33360 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
33361 into first operand and location into second.
33362 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
33363 dw_cfi_oprnd_loc for DW_CFA_expression.
33364 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
33365 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
33366 assume first argument is regnum and second argument is location.
33367
33368 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
33369
33370 PR target/42113
33371 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
33372 of scratch register to DImode. Split to DImode comparison operator.
33373 Use SImode subreg of scratch register in the multiplication.
33374 (*cmp_sadd_sidi): Ditto.
33375 (*cmp_ssub_si): Ditto.
33376 (*cmp_ssub_sidi): Ditto.
33377
33378 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
33379
33380 PR target/43524
33381 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
33382 Remove invalid assert and wrong comment.
33383
33384 2010-03-26 Jakub Jelinek <jakub@redhat.com>
33385
33386 PR debug/43516
33387 * flags.h (final_insns_dump_p): New extern.
33388 * final.c (final_insns_dump_p): New variable.
33389 (rest_of_clean_state): Set it before -fdump-final-insns=
33390 dumping, clear afterwards.
33391 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
33392 MEM_ALIAS_SET on MEMs.
33393
33394 2010-03-26 David S. Miller <davem@davemloft.net>
33395
33396 * configure.ac: Fix sparc GOTDATA_OP bug check.
33397 * configure: Rebuild.
33398
33399 2010-03-26 Alan Modra <amodra@gmail.com>
33400
33401 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
33402
33403 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33404
33405 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
33406 TLS_SECTION_ASM_FLAG.
33407
33408 2010-03-25 Jakub Jelinek <jakub@redhat.com>
33409
33410 PR bootstrap/43511
33411 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
33412 Clear first_function_block_is_cold.
33413
33414 PR c/43385
33415 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
33416 argument if the argument is truth_value_p.
33417
33418 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
33419
33420 * config/rs6000/constraints.md: Update copyright year for my changes.
33421
33422 PR target/43484
33423 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
33424 used in reg+reg addressing, swap registers.
33425
33426 2010-03-24 Jakub Jelinek <jakub@redhat.com>
33427
33428 PR debug/43293
33429 * target.h (struct gcc_target): Add code_end hook.
33430 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
33431 if not yet defined.
33432 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
33433 * toplev.c (compile_file): Call targetm.asm_out.code_end
33434 hook before unwind info/debug info output.
33435 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
33436 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
33437 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
33438 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
33439 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
33440 * config/i386/i386.c (ix86_file_end): Renamed to...
33441 (ix86_code_end): ... this. Make static. Don't call
33442 file_end_indicate_exec_stack. Emit unwind info using
33443 final_start_function/final_end_function.
33444 (darwin_x86_file_end): Remove.
33445 (TARGET_ASM_CODE_END): Define.
33446 * config/i386/i386.h (TARGET_ASM_FILE_END,
33447 NEED_INDICATE_EXEC_STACK): Don't define.
33448 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
33449 (TARGET_ASM_FILE_END): Define to darwin_file_end.
33450 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
33451 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
33452
33453 PR target/43498
33454 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
33455 at the beginning and final_end_function at the end.
33456 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
33457
33458 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33459
33460 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
33461 and Sun as TLS syntax.
33462 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
33463 * configure: Regenerate.
33464 * config.in: Regenerate.
33465 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
33466 (default_elf_asm_named_section): Use it.
33467 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
33468 (i386_output_dwarf_dtprel): Likewise.
33469 (output_addr_const_extra): Likewise.
33470 (output_pic_addr_const): Lowercase @GOTTPOFF.
33471 (output_addr_const_extra): Likewise.
33472 (output_pic_addr_const): Lowercase @GOTNTPOFF.
33473 (output_addr_const_extra): Likewise.
33474 (output_pic_addr_const): Lowercase @INDNTPOFF.
33475 (output_addr_const_extra): Likewise.
33476 (output_pic_addr_const): Lowercase @NTPOFF.
33477 (output_addr_const_extra): Likewise.
33478 (output_pic_addr_const): Lowercase @TPOFF.
33479 (output_addr_const_extra): Likewise.
33480 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
33481 (*tls_global_dynamic_64): Likewise.
33482 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
33483 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
33484
33485 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
33486 (ASM_OUTPUT_TLS_COMMON): Use it.
33487 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
33488
33489 PR target/38118
33490 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
33491 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
33492 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
33493 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
33494 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
33495 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
33496
33497 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33498
33499 * config/i386/i386.c (override_options): Don't accept
33500 -mtls-dialect=sun any longer.
33501 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
33502 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
33503 (*tls_local_dynamic_base_32_sun): Likewise.
33504 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
33505
33506 2010-03-24 Jakub Jelinek <jakub@redhat.com>
33507
33508 PR debug/43508
33509 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
33510 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
33511
33512 PR debug/43479
33513 * ira.c (adjust_cleared_regs): New function.
33514 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
33515
33516 PR debug/19192
33517 PR debug/43479
33518 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
33519 from gimple_block.
33520 * expr.c (expand_expr_real): Restore previous
33521 curr_insn_source_location and curr_insn_block after
33522 expand_expr_real_1 call.
33523 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
33524 instead of expand_expr_real_1.
33525
33526 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
33527
33528 PR rtl-optimization/43413
33529 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
33530 hard regs too.
33531
33532 2010-03-22 James E. Wilson <wilson@codesourcery.com>
33533
33534 PR target/43348
33535 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
33536 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
33537
33538 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
33539
33540 * config/i386/i386.c (ix86_target_string): Add -mfma.
33541 Fix a typo in comment.
33542
33543 2010-03-22 Mike Stump <mikestump@comcast.net>
33544
33545 PR target/23071
33546 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
33547 Don't overly align based upon packed packed fields.
33548
33549 2010-03-22 Jason Merrill <jason@redhat.com>
33550
33551 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
33552 Use () rather than [], and move before the element type.
33553
33554 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33555
33556 * doc/configfiles.texi (Configuration Files): Removed
33557 fixinc/Makefile*, intl/Makefile.*.
33558 * doc/makefile.texi: Fixed markup. Abstract from version
33559 control system used.
33560 (Makefile): Removed obsolete java/parse.y example.
33561 * doc/sourcebuild.texi: Likewise.
33562 (Top Level): Added config, gnattools, libdecnumber, libgcc,
33563 libgomp, libssp. Removed fastjar.
33564 (Miscellaneous Docs): Clarify location.
33565 Added COPYING3, COPYING3.LIB.
33566 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
33567
33568 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33569
33570 PR target/38085
33571 * config/i386/i386.c (x86_function_profiler)
33572 [!NO_PROFILE_COUNTERS]: Fix typo.
33573 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
33574 instead of callq.
33575
33576 2010-03-22 Janis Johnson <janis187@us.ibm.com>
33577 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33578
33579 * doc/sourcebuild.texi (Test Directives): Split into six
33580 subsections, with most of the current text in new subsections
33581 Directives, Selectors, and Final Actions.
33582 (Directives): Split list of test directives into multiple
33583 subsubsections.
33584 (Selectors): Describe use and syntax of selectors.
33585 (Effective-Target Keywords): Describe all existing keywords.
33586 (Add Options): Describe features for dg-add-options.
33587 (Require Support): Describe variants of dg-require-support.
33588 (Final Actions): Describe commands to use in dg-final.
33589
33590 2010-03-22 Michael Matz <matz@suse.de>
33591
33592 PR middle-end/43475
33593 * recog.c (validate_replace_rtx_group): Replace also in
33594 REG_EQUAL and REG_EQUIV notes.
33595
33596 2010-03-22 Richard Guenther <rguenther@suse.de>
33597
33598 PR tree-optimization/43390
33599 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
33600 sure vector extracts are type correct.
33601
33602 2010-03-22 Richard Guenther <rguenther@suse.de>
33603
33604 PR middle-end/40106
33605 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
33606 x * sqrt (x) even when optimizing for size if the target
33607 has native support for sqrt.
33608
33609 2010-03-22 Jakub Jelinek <jakub@redhat.com>
33610
33611 * varasm.c (make_decl_rtl_for_debug): Also clear
33612 flag_mudflap for the duration of make_decl_rtl call.
33613
33614 PR debug/43443
33615 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
33616 locs from preserved VALUEs.
33617
33618 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33619
33620 PR middle-end/42718
33621 * pa.md (movmemsi): Set align to one if zero.
33622 (movmemdi): Likewise.
33623
33624 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
33625
33626 PR target/42321
33627 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
33628 with their corresponding prologue pushes.
33629
33630 2010-03-20 Andrew Pinski <pinskia@gmail.com>
33631
33632 PR target/43156
33633 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
33634 at the begining or end.
33635 (spu_expand_epilogue): Likewise.
33636
33637 2010-03-20 Richard Guenther <rguenther@suse.de>
33638
33639 PR rtl-optimization/43438
33640 * combine.c (make_extraction): Properly zero-/sign-extend an
33641 extraction of the low part of a CONST_INT. Also handle
33642 CONST_DOUBLE.
33643
33644 2010-03-19 Mike Stump <mikestump@comcast.net>
33645
33646 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
33647 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
33648 (override_options): Use SUBTARGET32_DEFAULT_CPU.
33649
33650 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
33651
33652 PR c/43211
33653 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
33654 an error.
33655
33656 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
33657
33658 PR rtl-optimization/42258
33659 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
33660 use that may match DEF.
33661
33662 PR target/40697
33663 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
33664 the cost of loading the constant rather than assuming
33665 COSTS_N_INSNS (1).
33666 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
33667 outer code is AND, do the same tests as the andsi3 expander and
33668 return COSTS_N_INSNS (1) if and is cheap.
33669
33670 * optabs.c (avoid_expensive_constant): Fix formatting.
33671
33672 2010-03-19 Michael Matz <matz@suse.de>
33673
33674 PR c++/43116
33675 * attribs.c (decl_attributes): When rebuilding a function pointer
33676 type use the same qualifiers as the original pointer type.
33677
33678 2010-03-19 Martin Jambor <mjambor@suse.cz>
33679
33680 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
33681 and is_gimple_ip_invariant_address.
33682
33683 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33684
33685 Revert
33686 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33687
33688 * config/arm/arm.c (arm_override_options): Turn off
33689 flag_dwarf2_cfi_asm for AAPCS variants.
33690
33691 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
33692
33693 PR target/43399
33694 * config/arm/arm.c (emit_multi_reg_push): Update comments.
33695 Use PRE_MODIFY instead of PRE_DEC.
33696 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
33697 (vfp_emit_fstmd): Likewise.
33698
33699 2010-03-19 Michael Matz <matz@suse.de>
33700
33701 PR target/43305
33702 * builtins.c (expand_builtin_interclass_mathfn,
33703 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
33704 if that fails.
33705
33706 2010-03-19 Richard Guenther <rguenther@suse.de>
33707
33708 PR tree-optimization/43415
33709 * tree-ssa-pre.c (phi_translate): Split out worker to ...
33710 (phi_translate_1): ... this.
33711 (phi_translate): Move all caching here. Cache all NARY
33712 and REFERENCE translations.
33713
33714 2010-03-19 David S. Miller <davem@davemloft.net>
33715
33716 With help from Eric Botcazou.
33717 * config/sparc/sparc.c: Include dwarf2out.h.
33718 (emit_pic_helper): Delete.
33719 (pic_helper_symbol_name): Delete.
33720 (pic_helper_emitted_p): Delete.
33721 (pic_helper_needed): New.
33722 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
33723 (get_pc_thunk_name): New.
33724 (load_pic_register): Remove 'delay_pic_helper' arg. Use
33725 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
33726 Set pic_helper_needed to true. Don't call emit_pic_helper.
33727 (sparc_expand_prologue): Update load_pic_register call.
33728 (sparc_output_mi_thunk): Likewise.
33729 (sparc_file_end): Emit a hidden comdat symbol for the PIC
33730 thunk if possible. Output CFI information as needed.
33731
33732 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
33733 Jack Howarth <howarth@bromo.med.uc.edu>
33734
33735 PR target/36399
33736 * config/i386/i386.h: Fix ABI on darwin x86-32.
33737
33738 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
33739
33740 * tree.h: Declare make_decl_rtl_for_debug.
33741 * varasm.c (make_decl_rtl_for_debug): New.
33742 * dwarf2out.c (rtl_for_decl_location): Call it.
33743 * cfgexpand.c (expand_debug_expr): Call it.
33744
33745 2010-03-18 Jakub Jelinek <jakub@redhat.com>
33746
33747 PR bootstrap/43399
33748 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
33749 mem_mode.
33750
33751 PR bootstrap/43403
33752 * var-tracking.c (vt_init_cfa_base): Do nothing if
33753 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
33754
33755 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
33756
33757 PR debug/42873
33758 * var-tracking.c (canonicalize_vars_star): New.
33759 (dataflow_post_merge_adjust): Use it.
33760
33761 2010-03-18 Jakub Jelinek <jakub@redhat.com>
33762
33763 PR debug/43058
33764 * var-tracking.c (non_suitable_const): New function.
33765 (add_uses): For DEBUG_INSNs with constants, don't record any
33766 value, instead just the constant value itself.
33767 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
33768 is not VAR_LOC_UNKNOWN_P, set var to the constant.
33769 (emit_notes_in_bb): Likewise.
33770 (emit_note_insn_var_location): For onepart variables if
33771 cur_loc is a VOIDmode constant, use DECL_MODE.
33772
33773 2010-03-18 Martin Jambor <mjambor@suse.cz>
33774
33775 PR middle-end/42450
33776 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
33777 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
33778 all non-clones. Moved call redirection...
33779 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
33780 (cgraph_materialize_all_clones): Dispose of all
33781 combined_args_to_skip bitmaps.
33782 (verify_cgraph_node): Do not check for edges pointing to wrong
33783 nodes in inline clones.
33784 * tree-inline.c (copy_bb): Call
33785 cgraph_redirect_edge_call_stmt_to_callee.
33786 * ipa.c (cgraph_remove_unreachable_nodes): Call
33787 cgraph_node_remove_callees even when there are used clones.
33788
33789 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
33790
33791 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
33792
33793 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
33794
33795 PR target/43383
33796 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
33797 for 32bit.
33798
33799 2010-03-18 Michael Matz <matz@suse.de>
33800
33801 PR middle-end/43419
33802 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
33803 into sqrt(x) if we need to preserve signed zeros.
33804
33805 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
33806 Eric Botcazou <ebotcazou@adacore.com>
33807
33808 PR rtl-optimization/43360
33809 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
33810 note if we don't know its invariant status.
33811
33812 2010-03-18 Michael Matz <matz@suse.de>
33813
33814 PR tree-optimization/43402
33815 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
33816 PHI chains of ssa names registered for update.
33817
33818 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
33819
33820 PR target/42427
33821 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
33822 non-offsettable and pre_modify update addressing.
33823 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
33824 and "2" alternatives "#".
33825 (*movdd_softfloat32): Make all alternatives "#";
33826 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
33827 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
33828 (*movdf_softfloat32): Make all alternatives "#";
33829 (movdi): Use the new DIFD mode iterator to create a common splitter
33830 for movdi, movdf and movdd patterns.
33831
33832 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
33833
33834 * common.opt (dumpdir): Remove redundant tab.
33835
33836 2010-03-17 Martin Jambor <mjambor@suse.cz>
33837
33838 PR tree-optimization/43347
33839 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
33840 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
33841
33842 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
33843
33844 PR rtl-optimization/42216
33845 * regrename.c (create_new_chain): New function, broken out from...
33846 (scan_rtx_reg): ... here. Call it. Handle the case where we are
33847 appending a use to an empty chain.
33848 (build_def_use): Remove previous changes that convert OP_INOUT to
33849 OP_OUT operands; instead detect the case where an OP_INOUT operand
33850 uses a previously untracked register and create an empty chain for it.
33851
33852 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33853
33854 * doc/extend.texi (Function Attributes): Rewrite unfinished
33855 sentence in ms_abi documentation.
33856
33857 2010-03-17 Alan Modra <amodra@gmail.com>
33858
33859 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
33860 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
33861 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
33862 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
33863
33864 2010-03-16 Richard Henderson <rth@redhat.com>
33865
33866 PR middle-end/43365
33867 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
33868 (lower_try_finally): Save and restore eh_seq around the expansion
33869 of the try-finally.
33870
33871 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
33872
33873 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
33874 statements before splitting block.
33875
33876 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33877
33878 * doc/sourcebuild.texi (Testsuites): Fix markup.
33879 Use pathnames relative to gcc/testsuite.
33880 (Test Directives): Move description of how timeout is determined.
33881 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
33882 (C Tests): Correct gcc.misc-tests directory.
33883 Framework tests now live in gcc.test-framework.
33884
33885 2010-03-16 Richard Guenther <rguenther@suse.de>
33886
33887 PR middle-end/43379
33888 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
33889 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
33890
33891 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
33892 Alexandre Oliva <aoliva@redhat.com>
33893
33894 PR tree-optimization/42917
33895 * lambda-code.c (remove_iv): Skip debug statements.
33896 (lambda_loopnest_to_gcc_loopnest): Likewise.
33897 (not_interesting_stmt): Debug statements are not interesting.
33898
33899 2010-03-16 Jakub Jelinek <jakub@redhat.com>
33900
33901 PR debug/43051
33902 PR debug/43092
33903 * cselib.c (cselib_preserve_constants,
33904 cfa_base_preserved_val): New static variables.
33905 (preserve_only_constants): New function.
33906 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
33907 clear its REG_VALUES. If cselib_preserve_constants, don't
33908 empty the whole hash table, but preserve there VALUEs with constants,
33909 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
33910 (cselib_preserve_cfa_base_value): New function.
33911 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
33912 (cselib_init): Change argument to int bitfield. Set
33913 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
33914 is in it.
33915 (cselib_finish): Clear cselib_preserve_constants and
33916 cfa_base_preserved_val.
33917 * cselib.h (enum cselib_record_what): New enum.
33918 (cselib_init): Change argument to int.
33919 (cselib_preserve_cfa_base_value): New prototype.
33920 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
33921 * dse.c (dse_step1): Likewise.
33922 * cfgcleanup.c (thread_jump): Likewise.
33923 * sched-deps.c (sched_analyze): Likewise.
33924 * gcse.c (local_cprop_pass): Likewise.
33925 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
33926 If FN is non-NULL, call the callback always and whenever it returns
33927 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
33928 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
33929 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
33930 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
33931 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
33932 * var-tracking.c: Include recog.h.
33933 (bb_stack_adjust_offset): Remove.
33934 (vt_stack_adjustments): Don't call it, instead just gather the
33935 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
33936 (adjust_stack_reference): Remove.
33937 (compute_cfa_pointer): New function.
33938 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
33939 (struct adjust_mem_data): New type.
33940 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
33941 functions.
33942 (get_address_mode): New function.
33943 (replace_expr_with_values): Use it.
33944 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
33945 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
33946 (adjust_sets): Remove.
33947 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
33948 Use get_address_mode.
33949 (get_adjusted_src): Remove.
33950 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
33951 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
33952 (add_with_sets): Don't call adjust_sets.
33953 (fp_setter, vt_init_cfa_base): New functions.
33954 (vt_initialize): Change return type to bool. Move most of pool etc.
33955 initialization to the beginning of the function from end. Pass
33956 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
33957 If !frame_pointer_needed, call vt_stack_adjustment before mos
33958 vector is filled, call vt_init_cfa_base if argp/framep has been
33959 eliminated to sp. If frame_pointer_needed and argp/framep has
33960 been eliminated to hard frame pointer, set
33961 hard_frame_pointer_adjustment and call vt_init_cfa_base after
33962 encountering fp setter in the prologue. For MO_ADJUST, call
33963 log_op_type before pusing the op into mos vector, not afterwards.
33964 Call adjust_insn before cselib_process_insn/add_with_sets,
33965 call cancel_changes (0) afterwards.
33966 (variable_tracking_main_1): Adjust for vt_initialize calling
33967 vt_stack_adjustments and returning whether it succeeded or not.
33968
33969 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
33970
33971 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
33972 debug statements.
33973
33974 2010-03-15 Jakub Jelinek <jakub@redhat.com>
33975
33976 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
33977 has been set.
33978 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
33979 drap_reg has not been set.
33980
33981 2010-03-15 Michael Matz <matz@suse.de>
33982
33983 PR middle-end/43300
33984 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
33985 use it to expand block copies.
33986 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
33987 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
33988 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
33989
33990 2010-03-15 Richard Guenther <rguenther@suse.de>
33991
33992 PR tree-optimization/43367
33993 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
33994 elimination check.
33995
33996 2010-03-15 Richard Guenther <rguenther@suse.de>
33997
33998 PR tree-optimization/43317
33999 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
34000
34001 2010-03-15 Martin Jambor <mjambor@suse.cz>
34002
34003 PR tree-optimization/43141
34004 * tree-sra.c (create_abstract_origin): New function.
34005 (modify_function): Call create_abstract_origin.
34006
34007 2010-03-15 Chris Demetriou <cgd@google.com>
34008
34009 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
34010 wasn't copied.
34011
34012 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34013
34014 PR middle-end/43354
34015 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
34016 call insert_out_of_ssa_copy for default definitions.
34017
34018 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34019
34020 * graphite-clast-to-gimple.c (my_long_long): Defined.
34021 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
34022 * graphite-sese-to-poly.c (my_long_long): Defined.
34023 (scop_ivs_can_be_represented): Use it.
34024
34025 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34026
34027 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
34028 graphite-max-bbs-per-function, and loop-block-tile-size.
34029 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
34030 with "maximum".
34031 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
34032
34033 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34034
34035 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
34036 forward declaration.
34037 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
34038 (add_upper_bounds_from_estimated_nit): New.
34039 (build_loop_iteration_domains): Use it.
34040
34041 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34042
34043 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
34044
34045 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34046
34047 PR middle-end/43306
34048 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
34049 should be an INTEGER_CST. Also handle CASE_CONVERT.
34050
34051 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34052
34053 * graphite.c (graphite_initialize): To bound the number of bbs per
34054 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
34055 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
34056 * doc/invoke.texi: Document it.
34057
34058 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34059
34060 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
34061 * graphite-sese-to-poly.h (build_poly_scop): Same.
34062
34063 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
34064
34065 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
34066 the number of parameters in the scop. Use as an upper bound
34067 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
34068 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
34069 * doc/invoke.texi: Document it.
34070
34071 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
34072
34073 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
34074 * doc/c-tree.texi: Remove.
34075 * doc/generic.texi: Merge c-tree.texi here.
34076 * doc/gccint.texi (Trees): Remove menu entry.
34077 (c-tree.texi): Remove @include.
34078 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
34079 * doc/languages.texi (Reading RTL): Ditto.
34080
34081 2010-03-12 Steve Ellcey <sje@cup.hp.com>
34082
34083 PR target/42869
34084 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
34085
34086 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
34087
34088 PR middle-end/42431
34089 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
34090 code added to work around reload clobbering CONST insns.
34091
34092 2010-03-12 Jakub Jelinek <jakub@redhat.com>
34093
34094 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
34095 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
34096 (cselib_preserve_only_values): Remove retain argument, don't
34097 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
34098 * cselib.h (cselib_preserve_only_values): Remove retain argument.
34099 * var-tracking.c (micro_operation): Move insn field before union.
34100 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
34101 (struct variable_tracking_info_def): Remove n_mos field, change
34102 mos into a vector of micro_operations.
34103 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
34104 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
34105 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
34106 changing into a vector.
34107 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
34108 come before all other uops generated by add_stores.
34109 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
34110 argument removal.
34111 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
34112 a vector. Run just one pass over the bbs instead of separate counting
34113 and computation phase.
34114 (vt_finalize): Free VTI (bb)->mos vector instead of array.
34115
34116 PR debug/43329
34117 * tree-inline.c (remap_decls): Put old_var rather than origin_var
34118 into *nonlocalized_list vector.
34119 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
34120 even if origin is non-NULL.
34121 (gen_variable_die): Likewise.
34122 (process_scope_var): Don't change origin.
34123 (gen_decl_die): Likewise.
34124 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
34125 before adding new edges instead of after it, fix moving over
34126 debug stmts.
34127
34128 2010-03-11 David S. Miller <davem@davemloft.net>
34129
34130 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
34131 of four.
34132 * configure: Rebuild.
34133
34134 2010-03-11 Martin Jambor <mjambor@suse.cz>
34135
34136 PR tree-optimization/43257
34137 * tree.c (assign_assembler_name_if_neeeded): New function.
34138 (free_lang_data_in_cgraph): Assembler name assignment moved to the
34139 above new function.
34140 * tree.h (assign_assembler_name_if_neeeded): Declare.
34141 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
34142 the function if needed.
34143
34144 2010-03-11 Chris Demetriou <cgd@google.com>
34145
34146 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
34147 include/stdint-gcc.h, and include/stdint.h world-readable.
34148
34149 2010-03-11 Richard Guenther <rguenther@suse.de>
34150
34151 PR tree-optimization/43255
34152 * tree-vrp.c (process_assert_insertions_for): Do not insert
34153 asserts for trivial conditions.
34154
34155 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34156
34157 PR tree-optimization/43280
34158 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
34159 generation. Move calculation of size out of the if branch.
34160 (find_bswap): Modify compare number generation.
34161
34162 2010-03-11 Richard Guenther <rguenther@suse.de>
34163
34164 PR lto/43200
34165 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
34166 (input_gimple_stmt): Fixup handled component types during
34167 operand read. Also fix up decls in ADDR_EXPRs.
34168
34169 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
34170
34171 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
34172 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
34173
34174 2010-03-10 Jan Hubicka <jh@suse.cz>
34175
34176 PR c/43288
34177 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
34178 * varasm.c (get_variable_section): Don't do that here...
34179 (make_decl_rtl): ... and here.
34180 (do_assemble_alias): Produce decl RTL.
34181 (assemble_alias): Likewise.
34182
34183 2010-03-10 Jakub Jelinek <jakub@redhat.com>
34184
34185 PR debug/43290
34186 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
34187 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
34188 of fde->vdrap_reg.
34189 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
34190 (based_loc_descr): Only express drap or vdrap regno based expressions
34191 using DW_OP_fbreg when not optimizing.
34192 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
34193 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
34194 REG_CFA_SET_VDRAP note.
34195
34196 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
34197
34198 PR tree-optimization/43236
34199 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
34200 error in calculation of base address in reverse iteration case.
34201 (generate_builtin): Take number of latch executions if the statement
34202 is in the latch.
34203
34204 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
34205
34206 PR middle-end/42859
34207 * tree-eh.c: Include pointer-set.h.
34208 (lower_eh_dispatch): Filter out duplicate case labels and
34209 remove the unneeded edge when the label is unused. Return
34210 true when some edges are removed.
34211 (execute_lower_eh_dispatch): When any lowering resulted in
34212 removing an edge, also delete unreachable blocks.
34213
34214 2010-03-10 Jakub Jelinek <jakub@redhat.com>
34215
34216 PR bootstrap/43287
34217 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
34218 UNSPEC_MACHOPIC_OFFSET.
34219
34220 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
34221
34222 PR target/43294
34223 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
34224 (m68k_delegitimize_address): New function.
34225
34226 2010-03-09 Jakub Jelinek <jakub@redhat.com>
34227
34228 PR debug/43299
34229 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
34230
34231 PR debug/43299
34232 * var-tracking.c (adjust_sets): New function.
34233 (count_with_sets, add_with_sets): Use it.
34234 (get_adjusted_src): New inline function.
34235 (add_stores): Use it.
34236
34237 PR debug/43304
34238 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
34239 call cselib_dummy_expand_value_rtx_cb instead of
34240 cselib_expand_value_rtx_cb.
34241
34242 PR debug/43293
34243 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
34244 * config/i386/i386.c: Include debug.h and dwarf2out.h.
34245 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
34246 and .cfi_endproc around the pic thunks.
34247 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
34248 all queued unwind info register saves are saved before the call.
34249 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
34250 considered as sp-=4 for unwind info and the pop as sp+=4 which
34251 also clobbers dest, but doesn't actually restore it.
34252
34253 PR debug/43290
34254 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
34255 RTX_FRAME_RELATED_P.
34256
34257 2010-03-09 Jie Zhang <jie@codesourcery.com>
34258
34259 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
34260 whitespaces in output template.
34261
34262 2010-03-09 Jie Zhang <jie@codesourcery.com>
34263
34264 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
34265 out array boundary.
34266
34267 2010-03-08 Jakub Jelinek <jakub@redhat.com>
34268
34269 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
34270 builtins.exp in a separate job.
34271
34272 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34273
34274 * graphite-sese-to-poly.c (add_param_constraints): Use
34275 lower_bound_in_type and upper_bound_in_type.
34276
34277 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34278
34279 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
34280 instead of unsigned_type_node.
34281
34282 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34283 Reza Yazdani <reza.yazdani@amd.com>
34284
34285 PR middle-end/43065
34286 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
34287 on pointer type parameters.
34288
34289 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
34290
34291 PR middle-end/42644
34292 PR middle-end/42130
34293 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
34294 handle conversions from pointer to integers.
34295 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
34296 induction variable, to be able to work with code generated by CLooG.
34297 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
34298 (build_poly_scop): Bail out if we cannot codegen a loop.
34299
34300 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
34301
34302 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
34303 code generation with gloog_error.
34304
34305 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34306
34307 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
34308 Call fold_convert on all the returned values.
34309 (expand_scalar_variables_expr): Pass to
34310 expand_scalar_variables_ssa_name the type of the resulting expression.
34311
34312 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34313
34314 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
34315 ppl_min_for_le_pointset.
34316 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
34317 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
34318
34319 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34320
34321 * graphite-dependences.c (map_into_dep_poly): Removed.
34322 (dependence_polyhedron_1): Use combine_context_id_scat.
34323
34324 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34325
34326 * graphite-poly.h (struct poly_scattering): Add layout documentation.
34327 (struct poly_bb): Same.
34328 (combine_context_id_scat): New.
34329
34330 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34331
34332 PR middle-end/42326
34333 * sese.c (name_defined_in_loop_p): Return false for default
34334 definitions.
34335
34336 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34337
34338 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
34339 and clean up the logic.
34340
34341 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
34342
34343 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
34344 early return.
34345
34346 2010-03-08 Jakub Jelinek <jakub@redhat.com>
34347
34348 * var-tracking.c (remove_cselib_value_chains): Define only for
34349 ENABLE_CHECKING.
34350 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
34351 delete_slot_part, emit_notes_for_differences_1): Don't call
34352 remove_cselib_value_chains here.
34353 (set_slot_part, emit_notes_for_differences_2): Don't call
34354 add_cselib_value_chains here.
34355 (preserved_values): New vector.
34356 (preserve_value): New function.
34357 (add_uses, add_stores, vt_add_function_parameters): Use it
34358 instead of cselib_preserve_value.
34359 (changed_values_stack): New vector.
34360 (check_changed_vars_0): New function.
34361 (check_changed_vars_1, check_changed_vars_2): Use it.
34362 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
34363 changed_values_stack VALUEs.
34364 (vt_emit_notes): For all preserved_values call
34365 add_cselib_value_chains. If ENABLE_CHECKING call
34366 remove_cselib_value_chains before verifying value_chains is empty.
34367 Initialize and free changed_values_stack.
34368 (vt_initialize): Initialize preserved_values.
34369 (vt_finalize): Free preserved_values.
34370
34371 2010-03-08 Richard Guenther <rguenther@suse.de>
34372
34373 PR tree-optimization/43269
34374 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
34375 region detection.
34376
34377 2010-03-08 Martin Jambor <mjambor@suse.cz>
34378
34379 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
34380 (ipa_is_param_called): Removed.
34381 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
34382 (ipa_print_node_params): Do not print the called flag.
34383 (ipa_write_node_info): Do not stream the called flag.
34384 (ipa_read_node_info): Likewise.
34385
34386 2010-03-07 Jakub Jelinek <jakub@redhat.com>
34387
34388 PR debug/43176
34389 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
34390 * cselib.c (struct expand_value_data): Add dummy field.
34391 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
34392 dummy to false.
34393 (cselib_dummy_expand_value_rtx_cb): New function.
34394 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
34395 any rtl.
34396 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
34397 * var-tracking.c: Include pointer-set.h.
34398 (variable): Change n_var_parts to char from int. Add
34399 cur_loc_changed and in_changed_variables fields.
34400 (variable_canonicalize): Remove.
34401 (shared_var_p): New inline function.
34402 (unshare_variable): Maintain cur_loc_changed and
34403 in_changed_variables fields. If var was in changed_variables,
34404 replace it there with new_var. Just copy cur_loc instead of
34405 resetting it to something else.
34406 (variable_union): Don't recompute cur_loc. Use shared_var_p.
34407 (dataflow_set_union): Don't call variable_canonicalize.
34408 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
34409 of their DEBUG_EXPR_TREE_DECLs.
34410 (canonicalize_loc_order_check): Verify that cur_loc is NULL
34411 and in_changed_variables and cur_loc_changed is false.
34412 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
34413 and cur_loc_changed. Don't update cur_loc here.
34414 (variable_merge_over_src): Don't call variable_canonicalize.
34415 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
34416 removing loc that is equal to cur_loc, clear cur_loc,
34417 set cur_loc_changed and ensure variable_was_changed is called.
34418 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
34419 compare pointers in cur_loc check, if it is equal to loc,
34420 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
34421 (variable_different_p): Remove compare_current_location argument,
34422 don't compare cur_loc.
34423 (dataflow_set_different_1): Adjust variable_different_p caller.
34424 (variable_was_changed): If dv had some var in changed_variables
34425 already, reset in_changed_variables flag for it and propagate
34426 cur_loc_changed over to the new variable. On empty var
34427 always set cur_loc_changed. Set in_changed_variables on whatever
34428 var is added to changed_variables.
34429 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
34430 Use shared_var_p. When removing loc that is equal to cur_loc,
34431 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
34432 end, don't set it to something else, just call variable_was_changed.
34433 (delete_slot_part): Use shared_var_p. When cur_loc equals to
34434 loc being removed, clear cur_loc and set cur_loc_changed.
34435 Set cur_loc_changed if all locations have been removed.
34436 (struct expand_loc_callback_data): New type.
34437 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
34438 allocated. Always create SUBREGs if simplify_subreg failed.
34439 Prefer to use cur_loc, when that fails and still in
34440 changed_variables (and seen first time) recompute it. Set
34441 cur_loc_changed of variables which had to change cur_loc and
34442 compute elcd->cur_loc_changed if any of the subexpressions used
34443 had to change cur_loc.
34444 (vt_expand_loc): Adjust to pass arguments in
34445 expand_loc_callback_data structure.
34446 (vt_expand_loc_dummy): New function.
34447 (emitted_notes): New variable.
34448 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
34449 that weren't used for any other decl in current
34450 emit_notes_for_changes call call vt_expand_loc_dummy to update
34451 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
34452 first loc_chain location if NULL before. Always use just
34453 cur_loc instead of first loc_chain location. When cur_loc_changed
34454 is false, when not --enable-checking=rtl just don't emit any note.
34455 When rtl checking, compute the note and assert it is the same
34456 as previous note. Clear cur_loc_changed and in_changed_variables
34457 at the end before removing from changed_variables.
34458 (check_changed_vars_3): New function.
34459 (emit_notes_for_changes): Traverse changed_vars to call
34460 check_changed_vars_3 on each changed var.
34461 (emit_notes_for_differences_1): Clear cur_loc_changed and
34462 in_changed_variables. Recompute cur_loc of new_var.
34463 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
34464 (vt_emit_notes): Initialize and destroy emitted_notes.
34465
34466 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
34467
34468 PR rtl-optimization/42220
34469 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
34470 Use verify_reg_tracked to determine if we should use OP_OUT rather
34471 than OP_INOUT.
34472 (build_def_use): If we see an in-out operand for a register that we
34473 know nothing about, treat is an output if possible, fail the block if
34474 not.
34475
34476 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
34477
34478 PR debug/42897
34479 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
34480 permanently.
34481
34482 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
34483
34484 PR debug/42897
34485 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
34486 uses of relevant DEFs that are dead outside the loop too.
34487
34488 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
34489
34490 * var-tracking.c (dataflow_set_merge): Swap src and src2.
34491 Reverted:
34492 2010-01-13 Jakub Jelinek <jakub@redhat.com>
34493 PR debug/41371
34494 * var-tracking.c (values_to_unmark): New variable.
34495 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
34496 values_to_unmark vector. Moved body to...
34497 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
34498 instead queue it into values_to_unmark vector.
34499 (vt_find_locations): Free values_to_unmark vector.
34500
34501 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
34502
34503 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
34504 (site.exp): Export them when plugins are enabled.
34505
34506 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
34507
34508 PR middle-end/42326
34509 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
34510 that contain scevs.
34511 (chrec_fold_multiply): Same.
34512
34513 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
34514
34515 PR c/43248
34516 * c-decl.c (build_compound_literal): Return early if init is
34517 an error_mark_node.
34518
34519 2010-03-04 Martin Jambor <mjambor@suse.cz>
34520
34521 PR tree-optimization/43164
34522 PR tree-optimization/43191
34523 * tree-sra.c (type_consists_of_records_p): Reject records with
34524 zero-size bit-fields at the end.
34525
34526 2010-03-04 Mike Stump <mikestump@comcast.net>
34527
34528 * Makefile.in (TAGS): Remove *.y.
34529
34530 2010-03-04 Richard Guenther <rguenther@suse.de>
34531
34532 PR tree-optimization/40761
34533 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
34534 in reverse order.
34535 (my_rev_post_order_compute): New function.
34536 (init_pre): Call it.
34537
34538 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
34539
34540 PR middle-end/43209
34541 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
34542 decrease the cost of an IV candidate when the cost is infinite.
34543
34544 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34545
34546 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
34547 Use '3DNow!' for the extension of that name, ensure normal space
34548 after the string.
34549 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
34550
34551 2010-03-03 Jeff Law <law@redhat.com>
34552
34553 * PR middle-end/32693
34554 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
34555 than gen_rtx_SUBREG.
34556 (extract_bit_field_1): Likewise.
34557
34558 2010-03-03 Janis Johnson <janis187@us.ibm.com>
34559
34560 * doc/sourcebuild.texi (Test directives): Document that arguments
34561 include-opts and exclude-opts are now optional for dg-skip-if,
34562 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
34563
34564 2010-03-03 Jason Merrill <jason@redhat.com>
34565
34566 PR c++/12909
34567 * cgraph.h (varpool_node): Add extra_name field.
34568 * varpool.c (varpool_extra_name_alias): New.
34569 (varpool_assemble_decl): Emit extra name aliases.
34570 (varpool_mark_needed_node): Look past an extra name alias.
34571 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
34572 * lto-streamer-in.c (lto_input_tree): Read it.
34573 * lto-streamer-out.c (output_unreferenced_globals): Write it.
34574
34575 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
34576
34577 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
34578 (sparc*-*-solaris2*): ...this.
34579
34580 2010-03-03 Jakub Jelinek <jakub@redhat.com>
34581
34582 PR debug/43229
34583 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
34584 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
34585 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
34586 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
34587
34588 PR debug/43237
34589 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
34590 fallthrough to default handling, just with want_address 0 instead of 2.
34591 For single element lists, add_AT_loc directly, otherwise create an
34592 artificial variable DIE and stick location list to it.
34593
34594 PR debug/43177
34595 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
34596 (VAL_EXPR_HAS_REVERSE): Define.
34597 (reverse_op): New function.
34598 (add_stores): For reversible operations add an extra MO_VAL_USE.
34599
34600 2010-03-02 Jason Merrill <jason@redhat.com>
34601
34602 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
34603
34604 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
34605
34606 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
34607 (sparc64-*-linux*): Likewise.
34608 (sparc64-*-solaris2*): Include assembler files before linker ones.
34609 (sparc-*-solaris2*): Simplify and reorder to match previous case.
34610 * config/sparc/gas.h: Delete.
34611 * config/sparc/sol2-64.h: Add copyright notice.
34612 * config/sparc/sol2-gas-bi.h: Likewise.
34613 * config/sparc/sol2-gld.h: Likewise.
34614 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
34615 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
34616 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
34617 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
34618 (sparc_elf_asm_named_section): Rename into...
34619 (sparc_solaris_elf_asm_named_section): ...this. Always define.
34620
34621 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
34622
34623 * config/alpha/alpha.c (override_options): Fix -mtune error message.
34624
34625 2010-03-02 Jeff Law <law@redhat.com>
34626
34627 PR middle-end/42431
34628 * reload1.c (rtx_p, substitute_stack): Declare.
34629 (substitute): Record addresses of changed rtxs.
34630 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
34631 Restore the original rtx when complete.
34632 (reload): Free subsitute_stack when complete.
34633
34634 2010-03-02 Janis Johnson <janis187@us.ibm.com>
34635
34636 * doc/gccint.texi (menu): Add Testsuites as a chapter.
34637 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
34638 new chapter.
34639 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
34640 LTO Testing, gcov Testing, profopt Testing, compat Testing,
34641 Torture Tests): Change from subsection to section.
34642
34643 2010-03-02 Jakub Jelinek <jakub@redhat.com>
34644 Steven Bosscher <steven@gcc.gnu.org>
34645
34646 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
34647 instead of bb.
34648
34649 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
34650
34651 PR middle-end/42640
34652 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
34653 the assignment from the new induction variable to the assignment
34654 of the value from the original loop PHI function.
34655
34656 2010-03-01 Janis Johnson <janis187@us.ibm.com>
34657 Daniel Jacobowitz <dan@codesourcery.com>
34658
34659 * doc/sourcebuild.texi (Test directives): Clarify options to
34660 dg-skip-if.
34661
34662 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34663
34664 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
34665 Disable cfi directives unless GCC and gas agree on using read-only
34666 .eh_frame sections for 64-bit.
34667 * configure: Regenerate.
34668
34669 2010-03-01 Richard Guenther <rguenther@suse.de>
34670
34671 PR tree-optimization/43220
34672 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
34673 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
34674
34675 2010-03-01 Richard Guenther <rguenther@suse.de>
34676 Martin Jambor <mjambor@suse.cz>
34677
34678 PR middle-end/41250
34679 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
34680 gimplified parameters.
34681
34682 2010-03-01 Christian Bruel <christian.bruel@st.com>
34683
34684 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
34685
34686 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
34687
34688 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
34689
34690 2010-03-01 Richard Guenther <rguenther@suse.de>
34691
34692 PR middle-end/43213
34693 * expr.c (expand_assignment): Use the alias-oracle to tell
34694 if the rhs aliases the result decl.
34695
34696 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34697
34698 PR pch/14940
34699 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
34700 to sol_gt_pch_get_address.
34701 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
34702 64-bit, SPARC and x86.
34703 (sol_gt_pch_get_address): New function.
34704
34705 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
34706
34707 * toplev.h (inform_n, error_n): Declare.
34708 * diagnostic.c (inform_n, error_n): New function.
34709
34710 2010-03-01 Jakub Jelinek <jakub@redhat.com>
34711
34712 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
34713 has no rtl yet when processing local_decls, queue it and recheck
34714 if deferred stack allocation hasn't assigned it rtl.
34715
34716 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
34717
34718 * config/sh/sh.c (unspec_bbr_uid): New.
34719 (gen_block_redirect): Use it instead of INSN_UID.
34720 (gen_far_branch): Likewise.
34721
34722 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
34723
34724 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
34725 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
34726
34727 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34728
34729 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
34730 (Warning Options): -Wno-conversion-null is valid for
34731 Objective-C++ as well.
34732 * doc/tm.texi (Named Address Spaces): Likewise.
34733 * doc/plugins.texi (Plugins): Replace TABs with spaces.
34734 * doc/tree-ssa.texi (Tree SSA): Likewise.
34735
34736 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
34737
34738 PR bootstrap/43202
34739 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
34740 by default. Don't set the default arch for
34741 i[34567]86-*-darwin*|x86_64-*-darwin*.
34742
34743 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
34744
34745 PR bootstrap/43202
34746 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
34747 default. Set the default 32bit/64bit archs with $with_arch
34748 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
34749
34750 2010-02-27 Richard Guenther <rguenther@suse.de>
34751
34752 PR tree-optimization/43186
34753 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
34754 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
34755 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
34756 unroller iterations.
34757
34758 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
34759
34760 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
34761 required and i[34567]86-*-* targets don't support 64bit ISA.
34762
34763 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
34764
34765 PR ada/43096
34766 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
34767 the same alias set.
34768
34769 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
34770
34771 * config.gcc: Set the default arch at least to Prescott for
34772 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
34773 if SSE math is enabled.
34774
34775 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
34776
34777 * diagnostic.c (diagnostic_initialize): Update.
34778 (diagnostic_report_diagnostic): Test inhibit_notes_p for
34779 informative notes.
34780 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
34781 (diagnostic_inhibit_notes): New.
34782 * toplev.c (process_options): inhibit notes with -fcompare-debug.
34783
34784 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
34785
34786 PR c/20631
34787 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
34788 * doc/standards.texi: Likewise.
34789 * doc/extend.texi: Likewise.
34790 * doc/trouble.texi: Likewise.
34791 * doc/cppopts.texi: Likewise.
34792 * doc/install.texi: Likewise.
34793 * c.opt (std=c90,std=gnu90): New options.
34794 * c-opts.c (c_common_handle_option): Handle them.
34795
34796 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
34797
34798 PR c/24577
34799 * c-decl.c (undeclared_variable): Use an informative note.
34800
34801 2010-02-26 Richard Guenther <rguenther@suse.de>
34802
34803 PR tree-optimization/43186
34804 * gimple.h (gimple_fold): Remove.
34805 * gimple.c (gimple_fold): Remove. Inline into single user ...
34806 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
34807 Try harder for conditions.
34808
34809 2010-02-26 Jakub Jelinek <jakub@redhat.com>
34810
34811 PR debug/43190
34812 * function.c (used_types_insert): Don't skip through named pointer
34813 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
34814 and it is different from the main variant's type.
34815
34816 2010-02-26 Nick Clifton <nickc@redhat.com>
34817
34818 * config/rx/rx.md (sminsi3): Remove bogus alternative.
34819
34820 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
34821
34822 * config.gcc: Support --with-fpmath=sse for x86.
34823
34824 * config/i386/ssemath.h: New.
34825
34826 * doc/install.texi (--with-fpmath=sse): Documented.
34827
34828 2010-02-26 Richard Guenther <rguenther@suse.de>
34829
34830 PR tree-optimization/43188
34831 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
34832 vector types of over-aligned element type.
34833
34834 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
34835
34836 PR target/43175
34837 * config/i386/i386.c (expand_vec_perm_blend): Use correct
34838 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
34839
34840 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
34841
34842 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
34843
34844 2010-02-26 Jakub Jelinek <jakub@redhat.com>
34845
34846 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
34847 * var-tracking.c: Include diagnostic.h.
34848 (debug_dv): New function.
34849 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
34850
34851 PR debug/43160
34852 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
34853 (add_value_chain, add_value_chains, remove_value_chain,
34854 remove_value_chains): Handle DEBUG_EXPRs.
34855 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
34856
34857 PR debug/43161
34858 * regcprop.c (struct queued_debug_insn_change): New type.
34859 (struct value_data_entry): Add debug_insn_changes field.
34860 (struct value_data): Add n_debug_insn_changes field.
34861 (debug_insn_changes_pool): New variable.
34862 (free_debug_insn_changes, apply_debug_insn_changes,
34863 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
34864 (kill_value_one_regno): Call free_debug_insn_changes if needed.
34865 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
34866 fields.
34867 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
34868 changes for them.
34869 (copyprop_hardreg_forward_1): Don't call apply_change_group for
34870 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
34871 changes, call cprop_find_used_regs via note_stores.
34872 (copyprop_hardreg_forward): When copying vd from predecessor
34873 which has any queued DEBUG_INSN changes, make sure the pointers are
34874 cleared. At the end call df_analyze and then if there are any
34875 DEBUG_INSN changes queued at the end of some basic block for still
34876 live registers, apply them.
34877 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
34878
34879 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
34880
34881 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
34882 (arm*-*-*): Ditto.
34883
34884 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
34885
34886 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
34887 targets. Set the default with_cpu/with_arch from arch/cpu.
34888 Allow x86-64 and native for with_cpu/with_arch.
34889
34890 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
34891
34892 * ebitmap.c: Change calls to verify_popcount with calls to
34893 sbitmap_verify_popcount.
34894 (ebitmap_clear_bit): Fixed map->cacheindex test and
34895 map>cache update when bit clearing results in an empty
34896 element.
34897
34898 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34899
34900 PR target/43154
34901 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
34902 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
34903 and support both V2DF and V2DI modes.
34904 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
34905 support both V2DF and V2DI modes.
34906 (general): Delete trailing whitespace from a few patterns.
34907
34908 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
34909 V2DF/V2DI interleave high/low builtins.
34910
34911 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
34912 new VSX builtins.
34913
34914 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
34915 interleave high/low functions.
34916
34917 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
34918
34919 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
34920 #pragma extern_prefix.
34921
34922 2010-02-25 Jakub Jelinek <jakub@redhat.com>
34923
34924 PR debug/43166
34925 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
34926 BLKmode, assert op0 is a MEM and just adjust its mode.
34927
34928 PR debug/43165
34929 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
34930 if bitpos isn't multiple of mode's bitsize.
34931
34932 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
34933
34934 * c.opt (-ftemplate-depth=): New.
34935 (-ftemplate-depth-): Deprecate.
34936 * optc-gen.awk: Handle -ftemplate-depth=.
34937 * opth-gen.awk: Likewise.
34938 * c-opts.c (c_common_handle_option): Likewise.
34939 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
34940
34941 2010-02-24 Jason Merrill <jason@redhat.com>
34942
34943 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
34944
34945 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34946
34947 * cfg.c (alloc_aux_for_block): Remove inline.
34948 (alloc_aux_for_edge): Likewise.
34949
34950 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34951
34952 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
34953
34954 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34955
34956 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
34957 * config/i386/sol2-gas.h: New file.
34958 * config.gcc (i[34567]86-*-solaris2*): Use it.
34959
34960 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
34961
34962 PR c/43128
34963 * c-typeck.c (ep_convert_and_check): New.
34964 (build_conditional_expr): Use it.
34965 (build_binary_op): Likewise.
34966
34967 2010-02-24 Jakub Jelinek <jakub@redhat.com>
34968
34969 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
34970
34971 PR debug/43150
34972 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
34973 bounds even for -O+.
34974 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
34975 expr needs to have DECL_NAME set.
34976
34977 2010-02-24 Nick Clifton <nickc@redhat.com>
34978
34979 * config/mep/mep.c: Include gimple.h.
34980 (mep_function_uses_sp): Delete unused function.
34981 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
34982 parameters. Use unsigned integers to count args. Return a
34983 NULL_RTX instead of an error_mark_node. Toidy up formatting.
34984
34985 2010-02-23 Jakub Jelinek <jakub@redhat.com>
34986
34987 PR target/43107
34988 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
34989 greater or equal to nelt instead of 2 * nelt.
34990 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
34991 with nelt - 1.
34992
34993 2010-02-23 Jason Merrill <jason@redhat.com>
34994
34995 PR debug/42800
34996 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
34997 in cfun->local_decls even if they have register types.
34998
34999 PR c++/42837
35000 * stor-layout.c (place_field): Don't warn about unnecessary
35001 DECL_PACKED if the type is packed.
35002
35003 2010-02-23 Jakub Jelinek <jakub@redhat.com>
35004
35005 PR target/43139
35006 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
35007 GOTOFF relocs, even when the base reg isn't pic pointer.
35008
35009 2010-02-23 Michael Matz <matz@suse.de>
35010
35011 PR debug/43077
35012 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
35013 (expand_gimple_basic_block): Generate and use debug temps if there
35014 are debug uses left after the last real use of TERed ssa names.
35015 Unlink debug immediate uses when they are expanded.
35016
35017 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
35018
35019 PR 43123
35020 * config/i386/i386.c (override_options): Reorganise to provide
35021 better error messages.
35022
35023 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
35024
35025 PR middle-end/43083
35026 * graphite-scop-detection.c (create_single_exit_edge): Move
35027 the call to find_single_exit_edge to....
35028 (create_sese_edges): ...here. Don't handle multiple edges
35029 exiting the function.
35030 (build_graphite_scops): Don't handle multiple edges
35031 exiting the function.
35032
35033 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
35034
35035 PR middle-end/43097
35036 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
35037 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
35038
35039 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
35040
35041 PR middle-end/43026
35042 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
35043
35044 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
35045
35046 PR c++/43126
35047 * c-typeck.c (convert_arguments): Print declaration location.
35048 * c-common.c (validate_nargs): Rename as
35049 builtin_function_validate_nargs.
35050 (check_builtin_function_arguments): Update.
35051
35052 2010-02-22 Richard Guenther <rguenther@suse.de>
35053
35054 PR lto/43045
35055 * tree-inline.c (declare_return_variable): Use the type of
35056 the call stmt lhs if available.
35057
35058 2010-02-22 Duncan Sands <baldrick@free.fr>
35059
35060 * passes.c (register_pass): Always consider all pass lists when
35061 ref_pass_instance_number is zero.
35062
35063 2010-02-22 Richard Guenther <rguenther@suse.de>
35064
35065 PR tree-optimization/42749
35066 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
35067 parameter. Do arithmetic in the original type.
35068 (update_accumulator_with_ops): Likewise.
35069 (adjust_accumulator_values): Adjust.
35070
35071 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35072
35073 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
35074 (QI to BLKmode splitter): New splitter.
35075
35076 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
35077
35078 * config/i386/i386.c (initial_ix86_tune_features): Turn on
35079 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
35080
35081 2010-02-22 Richard Guenther <rguenther@suse.de>
35082
35083 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
35084
35085 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
35086
35087 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
35088 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
35089 ($(T)crti.o, $(T)crtn.o): Remove rules.
35090
35091 2010-02-21 Tobias Burnus <burnus@net-b.de>
35092
35093 PR fortran/35259
35094 * doc/invoke.texi (-fassociative-math): Document that this
35095 option is automatically enabled for Fortran.
35096
35097 2010-02-20 David S. Miller <davem@davemloft.net>
35098
35099 * configure.ac: Test if linker and assembler properly support
35100 GOTDATA_OP relocations.
35101 * configure: Rebuild.
35102 * config.in: Likewise.
35103 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
35104 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
35105 (movsi_high_pic): Likewise.
35106 (movdi_lo_sum_pic): Likewise.
35107 (movdi_high_pic): Likewise.
35108 (movsi_pic_gotdata_op): New pattern.
35109 (movdi_pic_gotdata_op): Likewise.
35110 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
35111 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
35112
35113 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
35114
35115 PR target/43067
35116 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
35117 attribute to ssemul.
35118 (xop_mulv2div2di3_high): Ditto.
35119
35120 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
35121
35122 PR c++/35669
35123 * c.opt (Wconversion-null): New option.
35124 * doc/invoke.texi (Wconversion-null): Document.
35125
35126 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
35127
35128 * common.opt (Wlarger-than-): Add Undocumented.
35129
35130 2010-02-19 Mike Stump <mikestump@comcast.net>
35131
35132 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
35133
35134 2010-02-19 Jason Merrill <jason@redhat.com>
35135
35136 PR target/40332
35137 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
35138 * configure: Likewise.
35139
35140 2010-02-20 Alan Modra <amodra@gmail.com>
35141
35142 PR middle-end/42344
35143 * cgraph.h (cgraph_make_decl_local): Declare.
35144 * cgraph.c (cgraph_make_decl_local): New function.
35145 (cgraph_make_node_local): Use it.
35146 * cgraphunit.c (cgraph_function_versioning): Likewise.
35147 * ipa.c (function_and_variable_visibility): Likewise.
35148
35149 2010-02-19 Jakub Jelinek <jakub@redhat.com>
35150
35151 PR bootstrap/43121
35152 * except.c (sjlj_emit_function_enter): Don't call
35153 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
35154 directly.
35155 * rtl.h (add_reg_br_prob_note): Remove prototype.
35156
35157 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
35158
35159 PR 41779
35160 * c-common.c (conversion_warning): Remove widening conversions
35161 before checking the conversion of integers to reals.
35162
35163 2010-02-19 Mike Stump <mikestump@comcast.net>
35164
35165 PR middle-end/43125
35166 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
35167
35168 PR objc/43061
35169 * cgraphunit.c (process_function_and_variable_attributes): Check
35170 DECL_PRESERVE_P instead of looking up attribute "used".
35171 * ipa-pure-const.c (check_decl): Likewise.
35172 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
35173 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
35174 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
35175 instead of attribute "used".
35176 * config/sol2-c.c (solaris_pragma_init): Likewise.
35177 (solaris_pragma_fini): Likewise.
35178
35179 2010-02-19 Jakub Jelinek <jakub@redhat.com>
35180
35181 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
35182 Use XCNEW instead of xcalloc.
35183 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
35184 XNEW instead of xmalloc.
35185 (get_fields): Use XNEWVEC instead of xmalloc.
35186
35187 PR debug/43084
35188 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
35189 populate vars array.
35190 (create_new_general_access): For debug stmts just reset value.
35191 (get_stmt_accesses): For accesses within debug stmts just record them
35192 using add_access_to_acc_sites instead of preventing the peeling or
35193 counting them as accesses.
35194
35195 PR middle-end/42233
35196 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
35197
35198 2010-02-19 Richard Guenther <rguenther@suse.de>
35199
35200 PR tree-optimization/42916
35201 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
35202 instructions.
35203
35204 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
35205
35206 * configure.ac: Replace all uses of changequote in macro arguments
35207 with proper quoting.
35208
35209 2010-02-19 Jakub Jelinek <jakub@redhat.com>
35210
35211 PR middle-end/42233
35212 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
35213
35214 2010-02-19 Richard Guenther <rguenther@suse.de>
35215
35216 PR tree-optimization/42944
35217 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
35218 test for aliasing with errno.
35219
35220 2010-02-19 Jakub Jelinek <jakub@redhat.com>
35221
35222 PR middle-end/42233
35223 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
35224 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
35225 * dojump.c: Include output.h.
35226 (inv): New inline function.
35227 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
35228 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
35229 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
35230 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
35231 argument, pass it down to other calls.
35232 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
35233 add REG_BR_PROB note to the conditional jump.
35234 * cfgexpand.c (add_reg_br_prob_note): Removed.
35235 (expand_gimple_cond): Don't call it, add the probability
35236 as last argument to jumpif_1/jumpifnot_1.
35237 * Makefile.in (dojump.o): Depend on output.h.
35238 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
35239 callers.
35240 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
35241 * stmt.c (do_jump_if_equal): Likewise.
35242 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
35243 * loop-unswitch.c (compare_and_jump_seq): Likewise.
35244 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
35245 Likewise.
35246 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
35247 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
35248 jumpifnot_1 callers.
35249 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
35250 callers.
35251 (store_expr): Adjust jumpifnot caller.
35252 (store_constructor): Adjust jumpif caller.
35253
35254 PR middle-end/42233
35255 * gimplify.c (gimple_boolify): For __builtin_expect call
35256 gimple_boolify also on its first argument.
35257
35258 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
35259
35260 * configure.ac (gnu-unique-object): Wrap regexps using [] in
35261 changequote block.
35262 (__stack_chk_fail): Ditto. Remove quadrigraphs.
35263 * configure: Regenerated.
35264
35265 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
35266
35267 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
35268 lang_hooks.types_compatible_p instead of comptypes.
35269
35270 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
35271
35272 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
35273 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
35274 if __prefer_thumb__ is defined.
35275
35276 2010-02-18 Martin Jambor <mjambor@suse.cz>
35277
35278 PR tree-optimization/43066
35279 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
35280 array with zero-sized element type.
35281
35282 2010-02-18 Jakub Jelinek <jakub@redhat.com>
35283
35284 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
35285 rtx, allocate struct var_loc_node here and return it to the
35286 caller, and only if it is actually needed.
35287 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
35288 move it earlier and return immediately if it returns NULL.
35289
35290 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
35291
35292 * config/sparc/gas.h: New file. Restore
35293 TARGET_ASM_NAMED_SECTION to its ELF default.
35294 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
35295 check !HAVE_GNU_AS.
35296 * config/sparc/sparc.c (sparc_elf_asm_named_section):
35297 Likewise. Add ATTRIBUTE_UNUSED to prototype.
35298 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
35299 after sparc/sysv4.h.
35300
35301 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
35302
35303 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
35304
35305 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
35306
35307 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
35308 patterns from predicated pattern.
35309
35310 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
35311
35312 PR target/43103
35313 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
35314 for insn mnemonic suffix.
35315
35316 2010-02-17 Richard Guenther <rguenther@suse.de>
35317
35318 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
35319 to loop PHI nodes.
35320
35321 2010-02-17 Jakub Jelinek <jakub@redhat.com>
35322
35323 PR debug/42918
35324 * caller-save.c (save_call_clobbered_regs): If BB ends with
35325 a DEBUG_INSN, move any notes in between last real insn and the last
35326 DEBUG_INSN after the last DEBUG_INSN.
35327
35328 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
35329
35330 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
35331 Fix return type. Fix argument type. Explain meaning of return value.
35332
35333 2010-02-16 Richard Guenther <rguenther@suse.de>
35334
35335 PR tree-optimization/41043
35336 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
35337 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
35338 statements ...
35339 (vrp_visit_phi_node): ... but only for loop PHI nodes.
35340
35341 2010-02-16 Ira Rosen <irar@il.ibm.com>
35342
35343 PR tree-optimization/43074
35344 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
35345 * tree-vect-loop.c (vect_analyze_loop_operations): Add
35346 vectorizable cycles in hybrid SLP check.
35347 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
35348
35349 2010-02-16 Richard Guenther <rguenther@suse.de>
35350
35351 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
35352 (true_dependence): If memrefs_conflict_p computes must-alias
35353 trust it. Move TBAA check after offset-based disambiguation.
35354 (canon_true_dependence): Likewise.
35355
35356 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
35357
35358 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
35359 * doc/invoke.texi: Document it.
35360 * var-tracking.c: Include toplev.h and params.h.
35361 (vt_find_locations): Return bool indicating success. Compute
35362 hash sizes unconditionally. Check new parameter, report.
35363 (variable_tracking_main_1): Check vt_find_locations results and
35364 retry. Renamed from...
35365 (variable_tracking_main): ... this. New wrapper to preserve
35366 flag_var_tracking_assignments.
35367 * Makefile.in (var-tracking.o): Adjust dependencies.
35368
35369 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
35370 Jakub Jelinek <jakub@redhat.com>
35371
35372 PR target/42854
35373 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
35374 if weak_import attribute is present.
35375 * config/darwin.c (machopic_select_section): Likewise.
35376
35377 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
35378
35379 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
35380 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
35381 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
35382 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
35383
35384 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
35385 types.
35386
35387 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
35388 Fix argument types.
35389
35390 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
35391 Rewrite text to refer to the names.
35392
35393 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
35394
35395 * config/i386/i386-builtin-types.def
35396 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
35397 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
35398 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
35399 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
35400 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
35401 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
35402 IX86_BUILTIN_VPERMIL2PS256.
35403 (MULTI_ARG_4_DF2_DI_I): Defined.
35404 (MULTI_ARG_4_DF2_DI_I1): Defined.
35405 (MULTI_ARG_4_SF2_SI_I): Defined.
35406 (MULTI_ARG_4_SF2_SI_I1): Defined.
35407 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
35408 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
35409 __builtin_ia32_vpermil2ps256.
35410 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
35411 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
35412 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
35413 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
35414 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
35415 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
35416 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
35417 CODE_FOR_xop_vpermil2v8sf3.
35418 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
35419 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
35420 * config/i386/xopintrin.h (_mm_permute2_pd): New.
35421 (_mm256_permute2_pd): New.
35422 (_mm_permute2_ps): New.
35423 (_mm256_permute2_ps): New.
35424
35425 2010-02-15 Nick Clifton <nickc@redhat.com>
35426
35427 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
35428 boolean parameters. Use emit_jump_insn when emitting a pop
35429 instruction containing a return insn.
35430 (push): Use 'true' rather than '1' as second parameter to F.
35431 (h8300_expand_prologue): Likewise.
35432 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
35433 (h8300_expand_epilogue): Likewise.
35434
35435 2010-02-15 Richard Guenther <rguenther@suse.de>
35436
35437 PR middle-end/43068
35438 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
35439 if that is zero.
35440
35441 2010-02-15 Nick Clifton <nickc@redhat.com>
35442
35443 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
35444 delta.
35445
35446 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
35447
35448 * intl.c (fake_ngettext): New function.
35449 * intl.h (fake_ngettext): Declare.
35450 (ngettext): Define macro.
35451 * collect2.c (notice_translated): New function.
35452 (main): Use notice_translated and ngettext.
35453 * collect2.h (notice_translated): Declare.
35454
35455 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
35456
35457 * reorg.c (delete_computation): Comment fixes.
35458 * caller-save.c (setup_save_areas): Idem.
35459 * sel-sched-dump.c (dump_lv_set): Idem.
35460 * rtl.def: Idem.
35461
35462 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35463
35464 * config/s390/s390.c (s390_sched_init): New function.
35465 (TARGET_SCHED_INIT): Target hook defined.
35466
35467 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
35468 Jack Howarth <howarth@bromo.med.uc.edu>
35469 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
35470
35471 PR target/42982
35472 Partial revert of unintended change in fix for PR41605.
35473 * config/darwin.h: Fix typo.
35474 * config/darwin9.h: Same.
35475
35476 2010-02-11 Jakub Jelinek <jakub@redhat.com>
35477
35478 * c-pch.c (pch_init): Clear v.
35479
35480 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
35481
35482 PR middle-end/42930
35483 * graphite-scop-detection.c (graphite_can_represent_scev): Call
35484 graphite_can_represent_init for MULT_EXPR.
35485
35486 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
35487
35488 PR middle-end/42914
35489 PR middle-end/42530
35490 * graphite-sese-to-poly.c (remove_phi): New.
35491 (translate_scalar_reduction_to_array): Call remove_phi.
35492
35493 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
35494
35495 PR middle-end/42771
35496 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
35497 * graphite-clast-to-gimple.h (gloog): Update declaration.
35498 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
35499 * graphite-poly.h (struct poly_bb): Add missing comments.
35500 (struct scop): Add poly_scop_p field.
35501 (POLY_SCOP_P): New.
35502 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
35503 * graphite.c (graphite_transform_loops): Build the polyhedral
35504 representation for each scop before code generation.
35505 * sese.c (rename_variables_in_operand): Removed.
35506 (rename_variables_in_expr): Return the renamed expression.
35507 (rename_sese_parameters): New.
35508 * sese.h (rename_sese_parameters): Declared.
35509
35510 2010-02-11 Richard Guenther <rguenther@suse.de>
35511
35512 PR tree-optimization/42998
35513 * tree-ssa-pre.c (create_expression_by_pieces): Treat
35514 POINTER_PLUS_EXPR properly.
35515
35516 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
35517 Changpeng Fang <changpeng.fang@amd.com>
35518
35519 PR middle-end/40886
35520 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
35521 the cost of an IV candidate when the IV is used in a test against zero.
35522
35523 * gcc.dg/tree-ssa/ivopts-3.c: New.
35524
35525 2010-02-11 Richard Guenther <rguenther@suse.de>
35526
35527 PR lto/41664
35528 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
35529 pointer-vs-decl case by swapping refs. Handle some cases
35530 of pointer-vs-decl disambiguations more conservatively.
35531 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
35532 to false after expanding.
35533
35534 2010-02-11 Richard Guenther <rguenther@suse.de>
35535
35536 PR driver/43021
35537 * gcc.c (process_command): Handle LTO file@offset case more
35538 appropriately.
35539
35540 2010-02-11 Jakub Jelinek <jakub@redhat.com>
35541
35542 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
35543 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
35544 of DEBUG_INSNs.
35545 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
35546
35547 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
35548 if MEM's mode size isn't DWARF2_ADDR_SIZE.
35549 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
35550 Optimize eq/ne comparisons when both arguments are known to be
35551 zero-extended.
35552 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
35553 Don't mask operands unnecessarily if they are known to be already
35554 zero-extended.
35555
35556 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
35557
35558 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
35559 instead of loop.
35560
35561 2010-02-10 Richard Guenther <rguenther@suse.de>
35562
35563 PR tree-optimization/43017
35564 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
35565 for wrapping signed arithmetic.
35566
35567 2010-02-10 Jakub Jelinek <jakub@redhat.com>
35568
35569 PR debug/43010
35570 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
35571 if no debug info should be emitted for it.
35572
35573 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
35574
35575 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
35576 note when flag_exceptions is set.
35577
35578 2010-02-10 Duncan Sands <baldrick@free.fr>
35579
35580 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
35581
35582 2010-02-10 Richard Guenther <rguenther@suse.de>
35583
35584 PR c/43007
35585 * tree.c (get_unwidened): Handle constants.
35586 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
35587
35588 2010-02-10 Martin Jambor <mjambor@suse.cz>
35589
35590 PR lto/42985
35591 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
35592 check for variable argument counts independently.
35593
35594 2010-02-10 Christian Bruel <christian.bruel@st.com>
35595
35596 PR target/42841
35597 * config/sh/sh.c (find_barrier): Increase length for non delayed
35598 conditional branches.
35599
35600 2010-02-10 Christian Bruel <christian.bruel@st.com>
35601
35602 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
35603
35604 2010-02-10 Jakub Jelinek <jakub@redhat.com>
35605
35606 * builtins.c (set_builtin_user_assembler_name): Also handle
35607 ffs if int is smaller than word.
35608
35609 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
35610
35611 PR middle-end/42973
35612 * ira-conflicts.c (get_dup): Remove.
35613 (process_reg_shuffles): Add new parameter. Use it as an
35614 additional guard for copy generation.
35615 (add_insn_allocno_copies): Rewrite.
35616
35617 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
35618
35619 * common.opt (fsched2-use-traces): Preserved for backward
35620 compatibility.
35621 * doc/invoke.texi: Remove the documentation about option
35622 -fsched2-use-traces.
35623 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
35624 flag_sched2_use_traces.
35625 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
35626 the backward compatibility flag section.
35627
35628 2010-02-09 Richard Guenther <rguenther@suse.de>
35629
35630 PR tree-optimization/43008
35631 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
35632 make HEAP variables initialized from global memory if they
35633 are not known builtin functions.
35634 (find_func_aliases): Adjust.
35635
35636 2010-02-09 Richard Guenther <rguenther@suse.de>
35637
35638 PR tree-optimization/43000
35639 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
35640 arithmetic manually.
35641
35642 2010-02-08 Jakub Jelinek <jakub@redhat.com>
35643
35644 PR tree-optimization/42931
35645 * tree-loop-linear.c (try_interchange_loops): Don't call
35646 double_int_mul if estimated_loop_iterations failed.
35647
35648 2010-02-08 Martin Jambor <mjambor@suse.cz>
35649
35650 PR middle-end/42898
35651 * tree-sra.c (build_accesses_from_assign): Do not mark in
35652 should_scalarize_away_bitmap if stmt has volatile ops.
35653 (sra_modify_assign): Do not process assigns piecemeal if if stmt
35654 has volatile ops.
35655
35656 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
35657
35658 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
35659
35660 2010-02-07 Adam Nemet <adambnmet@gmail.com>
35661
35662 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
35663 before the pattern.
35664
35665 2010-02-07 Andrew Pinski <pinskia@gmail.com>
35666
35667 PR middle-end/42946
35668 * df-core.c (df_finish_pass): Change type of saved_flags to int.
35669
35670 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
35671
35672 PR middle-end/42988
35673 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
35674 to unknown_dependence.
35675 (graphite_legal_transform_dr): Handle the unknown_dependence.
35676 (graphite_carried_dependence_level_k): Same.
35677
35678 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
35679
35680 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
35681
35682 2010-02-07 Richard Guenther <rguenther@suse.de>
35683
35684 PR middle-end/42991
35685 * expr.c (get_inner_reference): Always initialize *pbitsize.
35686
35687 2010-02-07 Richard Guenther <rguenther@suse.de>
35688
35689 PR middle-end/42956
35690 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
35691 new ARRAY_REFs on variable size element or minimal index arrays.
35692 Complete.
35693 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
35694 gimple_fold_indirect_ref.
35695
35696 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
35697
35698 PR target/42957
35699 * arm.c (arm_override_options): Just return if the user has specified
35700 an invalid fpu name.
35701
35702 2010-02-03 Jason Merrill <jason@redhat.com>
35703
35704 PR c++/42870
35705 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
35706 i386_pe_maybe_record_exported_symbol.
35707
35708 2010-02-05 Steve Ellcey <sje@cup.hp.com>
35709
35710 PR target/42924
35711 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
35712 (pa_delegitimize_address): New function.
35713
35714 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
35715
35716 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
35717 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
35718
35719 2010-02-05 Richard Guenther <rguenther@suse.de>
35720
35721 PR lto/42762
35722 * lto-streamer-in.c (get_resolution): Deal with references
35723 to undefined functions.
35724
35725 2010-02-05 Richard Guenther <rguenther@suse.de>
35726
35727 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
35728 (fold_const_aggregate_ref): Likewise.
35729 (ccp_fold_stmt): Substitute loads.
35730 (maybe_fold_reference): Verify types before substituting.
35731 Unshare properly.
35732 (fold_gimple_assign): Unshare properly.
35733 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
35734
35735 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
35736
35737 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
35738 for rs6000_gen_cell_microcode.
35739
35740 2010-02-04 Richard Guenther <rguenther@suse.de>
35741
35742 PR rtl-optimization/42952
35743 * dse.c (const_or_frame_p): Remove MEM handling.
35744
35745 2010-02-04 Nick Clifton <nickc@redhat.com>
35746
35747 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
35748 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35749 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
35750 (mn10300_asm_output_mi_thunk): New function.
35751 (mn10300_can_output_mu_thunk): New function.
35752 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
35753 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
35754 (FUNCTION_ARG): Delete incorrect comment.
35755
35756 2010-02-03 Jason Merrill <jason@redhat.com>
35757
35758 PR c++/40138
35759 * fold-const.c (operand_equal_p): Handle erroneous types.
35760
35761 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
35762
35763 * config/h8300/h8300.md (can_delay): Fix attibute condition.
35764
35765 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
35766
35767 PR rtl-optimization/42941
35768 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
35769 of xmalloc.
35770
35771 2010-02-03 Jason Merrill <jason@redhat.com>
35772
35773 PR c++/35652
35774 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
35775
35776 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
35777
35778 PR debug/42896
35779 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
35780 (cselib_reset_table): Renamed from...
35781 (cselib_reset_table_with_next_value): ... this.
35782 (cselib_get_next_uid): Renamed from...
35783 (cselib_get_next_unknown_value): ... this.
35784 * cselib.c (next_uid): Renamed from...
35785 (next_unknown_value): ... this.
35786 (cselib_clear_table): Adjust.
35787 (cselib_reset_table): Adjust. Renamed from...
35788 (cselib_reset_table_with_next_value): ... this.
35789 (cselib_get_next_uid): Adjust. Renamed from...
35790 (cselib_get_next_unknown_value): ... this.
35791 (get_value_hash): Use hash.
35792 (cselib_hash_rtx): Likewise.
35793 (new_cselib_val): Adjust. Set and dump uid.
35794 (cselib_lookup_mem): Pass next_uid as hash.
35795 (cselib_subst_to_values): Likewise.
35796 (cselib_log_lookup): Dump uid.
35797 (cselib_lookup): Pass next_uid as hash. Adjust.
35798 (cselib_process_insn): Adjust.
35799 (cselib_init): Initialize next_uid.
35800 (cselib_finish): Adjust.
35801 (dump_cselib_table): Likewise.
35802 * dse.c (canon_address): Dump value uid.
35803 * print-rtl.c (print_rtx): Print value uid.
35804 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
35805 (dvuid): New type.
35806 (dv_uid): New function, sort of renamed from...
35807 (dv_htab_hash): ... this, reimplemented in terms of it and...
35808 (dv_uid2hash): ... this. New.
35809 (variable_htab_eq): Drop excess assertions.
35810 (tie_break_pointers): Removed.
35811 (canon_value_cmp): Compare uids.
35812 (variable_post_merge_New_vals): Print uids.
35813 (vt_add_function_parameters): Adjust.
35814 (vt_initialize): Reset table. Adjust.
35815
35816 2010-02-03 Richard Guenther <rguenther@suse.de>
35817
35818 PR tree-optimization/42944
35819 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
35820 (call_may_clobber_ref_p_1): Likewise. Properly handle
35821 malloc and calloc clobbering errno.
35822
35823 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
35824
35825 * doc/invoke.texi: Fix name of sched1 dump.
35826
35827 * opts.c (decode_options): Set flag_tree_switch_conversion
35828 only conditionally on optimize >= 2.
35829
35830 * gcse.c: Assorted comment fixes in pass description.
35831
35832 2010-02-03 Anthony Green <green@moxielogic.com>
35833
35834 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
35835 nop padding in order to maintain alignment of storage location of
35836 target function address.
35837 (moxie_trampoline_init): Store target function address at newly
35838 aligned location.
35839 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
35840 to 32.
35841 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
35842
35843 2010-02-03 Richard Guenther <rguenther@suse.de>
35844
35845 PR middle-end/42927
35846 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
35847
35848 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35849
35850 * config.gcc: Reenable check for obsolete targets.
35851 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
35852 mips-sgi-irix6.[0-4]*.
35853
35854 2010-02-02 Nick Clifton <nickc@redhat.com>
35855
35856 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
35857 constant size of 4 as being the same as 0.
35858 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
35859 can take values in the range 0..4.
35860
35861 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
35862
35863 PR java/41991
35864 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
35865 as _darwin10_Unwind_FindEnclosingFunction().
35866 * libgcc-libsystem.ver: New.
35867
35868 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
35869
35870 PR target/41399
35871 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
35872 implicitly set registers.
35873
35874 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
35875
35876 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
35877 (arm_override_options): Allow automatic selection of the thread
35878 pointer register if thumb2.
35879 (legitimize_pic_address): Improve code sequences for Thumb2.
35880 (arm_call_tls_get_addr): Likewise.
35881 (legitimize_tls_address): Likewise.
35882 * arm.md (pic_load_addr_arm): Delete. Replace with ...
35883 (pic_load_addr_32bit): ... this. New named pattern.
35884 * thumb2.md (pic_load_addr_thumb2): Delete.
35885 (pic_load_dot_plus_four): Delete.
35886 (tls_load_dot_plus_four): New named pattern.
35887
35888 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35889
35890 PR libgomp/29986
35891 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
35892 Document fix for TLS bug.
35893
35894 2010-01-31 Richard Guenther <rguenther@suse.de>
35895
35896 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
35897 conservatively correct.
35898
35899 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35900
35901 PR target/42850
35902 Revert:
35903 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
35904
35905 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
35906
35907 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
35908
35909 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
35910
35911 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
35912
35913 * config.gcc: Adjust order of makefile fragments for mingw targets.
35914
35915 2010-01-31 Richard Guenther <rguenther@suse.de>
35916
35917 PR middle-end/42898
35918 * gimplify.c (gimplify_init_constructor): For volatile LHS
35919 initialize a temporary.
35920
35921 2010-01-31 Matthias Klose <doko@ubuntu.com>
35922
35923 * configure.ac: Fix __stack_chk_fail check for cross builds configured
35924 --with-headers
35925 * configure: Regenerate.
35926
35927 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
35928
35929 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
35930 the same alias set and their sizes different constantness.
35931 (aliasing_component_refs_p): Revert 2009-10-24 change.
35932
35933 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35934
35935 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
35936 unused.
35937
35938 2010-01-29 Richard Guenther <rguenther@suse.de>
35939
35940 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
35941 Assert we successfully updated the call.
35942
35943 2010-01-29 Jakub Jelinek <jakub@redhat.com>
35944
35945 PR rtl-optimization/42889
35946 * df.h (df_set_bb_dirty_nonlr): New prototype.
35947 * df-core.c (df_set_bb_dirty_nonlr): New function.
35948 * df-scan.c (df_insn_rescan): Call it instead of
35949 df_set_bb_dirty for DEBUG_INSNs.
35950
35951 2010-01-29 Richard Guenther <rguenther@suse.de>
35952
35953 PR middle-end/37448
35954 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
35955 quadratic behavior in most cases.
35956
35957 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
35958
35959 PR target/42891
35960 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
35961 in the call to gen_x86_movsicc_0_m1.
35962
35963 2010-01-28 Richard Guenther <rguenther@suse.de>
35964
35965 PR tree-optimization/42871
35966 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
35967
35968 2010-01-28 Richard Guenther <rguenther@suse.de>
35969
35970 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
35971 into call arguments.
35972
35973 2010-01-28 Richard Guenther <rguenther@suse.de>
35974
35975 PR middle-end/42883
35976 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
35977 the forwarder if the destination is an EH landing pad.
35978
35979 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
35980
35981 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
35982 block list passed to gimple_duplicate_sese_tail.
35983 (parallelize_loops): Avoid parallelization when the function
35984 has_nonlocal_label.
35985 Avoid parallelization when the preheader is IRREDUCIBLE.
35986 Try to optimize when estimated_loop_iterations_int is unresolved.
35987 Add the loop's location to the dump file.
35988 * tree-cfg.c (add_phi_args_after_redirect): Remove.
35989 (gimple_duplicate_sese_tail): Remove the check for the latch.
35990 Redirect nexits to the exit block.
35991 Remove handling of the incoming edges to the latch.
35992 Redirect the backedge from the copied latch to the exit bb.
35993
35994 2010-01-28 Michael Matz <matz@suse.de>
35995
35996 PR target/42881
35997 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
35998 Wrap force_reg into a sequence, emit it before user.
35999
36000 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
36001
36002 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
36003 (arm_rev): New.
36004 (arm_legacy_rev): Likewise.
36005 (thumb_legacy_rev): Likewise.
36006
36007 2010-01-27 Jakub Jelinek <jakub@redhat.com>
36008
36009 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
36010 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
36011 on MEM's address failed, try avoid_constant_pool_reference and
36012 recurse if it returned something different.
36013 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
36014 address, try avoid_constant_pool_reference and recurse if it
36015 returned something different.
36016 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
36017 address and avoid_constant_pool_reference returned something
36018 different, don't set have_address.
36019
36020 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
36021
36022 PR debug/42861
36023 * var-tracking.c (val_store): Add modified argument, obey it.
36024 Adjust callers.
36025 (count_uses): Move down logging of main.
36026 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
36027 don't need resolution.
36028 (emit_notes_in_bb): Likewise.
36029
36030 2010-01-27 Richard Guenther <rguenther@suse.de>
36031
36032 PR middle-end/42878
36033 * tree-inline.c (remap_decl): Delay remapping of SSA name
36034 default definitions until we need them.
36035
36036 2010-01-27 Jakub Jelinek <jakub@redhat.com>
36037
36038 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
36039 (rs6000_delegitimize_address): New function.
36040
36041 * config/s390/s390.c (s390_delegitimize_address): Call
36042 delegitimize_mem_from_attrs.
36043
36044 PR middle-end/42874
36045 * tree-inline.c (cannot_copy_type_1): Removed.
36046 (copy_forbidden): Don't forbid copying of functions containing
36047 records/unions with variable length fields.
36048
36049 2010-01-27 Christian Bruel <christian.bruel@st.com>
36050
36051 Revert:
36052 PR target/42841
36053 * config/sh/sh.c (find_barrier): Increase length for non delayed
36054 conditional branches.
36055
36056 2010-01-27 Matthias Klose <doko@ubuntu.com>
36057
36058 * configure.ac (gnu-unique-object): Fix ldd version check.
36059 * configure: Regenerate.
36060
36061 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36062
36063 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
36064 HAVE_GNU_AS value.
36065 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
36066 Test for HAVE_GNU_AS value.
36067
36068 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36069
36070 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
36071 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
36072 INT64_TYPE): Define.
36073 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
36074 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
36075 INT_LEAST64_TYPE): Define.
36076 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
36077 UINT_LEAST64_TYPE): Define.
36078 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
36079 INT_FAST64_TYPE): Define.
36080 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
36081 UINT_FAST64_TYPE): Define.
36082 (INTMAX_TYPE, UINTMAX_TYPE): Define.
36083 (INTPTR_TYPE, UINTPTR_TYPE): Define.
36084 (SIG_ATOMIC_TYPE): Define.
36085
36086 2010-01-26 Richard Guenther <rguenther@suse.de>
36087
36088 * df-scan.c (df_scan_set_bb_info): Remove assert.
36089 (df_insn_rescan_debug_internal): Merge asserts.
36090 (df_install_ref): Likewise.
36091 (df_mark_reg): Use bitmap_set_range.
36092 (df_hard_reg_used_p): Remove assert.
36093 (df_hard_reg_used_count): Likewise.
36094
36095 2010-01-26 Richard Guenther <rguenther@suse.de>
36096
36097 PR rtl-optimization/42685
36098 * web.c (web_main): Ignore DEBUG_INSNs.
36099
36100 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
36101
36102 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
36103
36104 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
36105 Fix types of fndecl and arglist parameters.
36106
36107 2010-01-26 Richard Guenther <rguenther@suse.de>
36108
36109 PR middle-end/42806
36110 * tree-eh.c (unsplit_eh): Skip debug insns.
36111
36112 2010-01-26 Richard Guenther <rguenther@suse.de>
36113
36114 PR tree-optimization/42250
36115 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
36116
36117 2010-01-26 Jakub Jelinek <jakub@redhat.com>
36118
36119 PR fortran/42866
36120 * omp-low.c (expand_omp_sections): Only use single_pred if
36121 l2_bb is single_pred_p.
36122
36123 2010-01-25 Christian Bruel <christian.bruel@st.com>
36124
36125 PR target/42841
36126 * config/sh/sh.c (find_barrier): Increase length for non delayed
36127 conditional branches.
36128 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
36129
36130 2010-01-24 David S. Miller <davem@davemloft.net>
36131
36132 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
36133 define if not using GAS.
36134 * config/sparc/sparc.c (sparc_elf_asm_named_section):
36135 Likewise. Delete SECTION_MERGE code, which is only applicable
36136 when using GAS.
36137
36138 2010-01-24 Mark Mitchell <mark@codesourcery.com>
36139
36140 PR c++/42748
36141 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
36142 mangling of va_list in system headers.
36143
36144 2010-01-23 Toon Moene <toon@moene.org>
36145
36146 * tree-predcom.c (combine_chains): Return NULL, not false.
36147
36148 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
36149
36150 * tree-loop-distribution.c (distribute_loop): Fix declaration and
36151 initialization of variable res to agree with return type.
36152
36153 2010-01-22 Steve Ellcey <sje@cup.hp.com>
36154
36155 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
36156 * tree-sra.c: Add include of expr.h.
36157
36158 2010-01-22 Jakub Jelinek <jakub@redhat.com>
36159
36160 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
36161 insert the debug stmt on the single non-EH edge from the stmt.
36162
36163 2010-01-22 Richard Henderson <rth@redhat.com>
36164
36165 PR tree-opt/42833
36166 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
36167 the RHS until after generate_subtree_copies has insertted its
36168 code before the current statement.
36169
36170 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
36171
36172 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
36173
36174 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
36175
36176 2010-01-21 Martin Jambor <mjambor@suse.cz>
36177
36178 PR tree-optimization/42585
36179 * tree-sra.c (struct access): New field grp_total_scalarization.
36180 (dump_access): Dump the new field.
36181 (should_scalarize_away_bitmap): New variable.
36182 (cannot_scalarize_away_bitmap): Likewise.
36183 (sra_initialize): Allocate new bitmaps.
36184 (sra_deinitialize): Free new bitmaps.
36185 (create_access_1): New function.
36186 (create_access): Parts moved to create_access_1.
36187 (type_consists_of_records_p): New function.
36188 (completely_scalarize_record): Likewise.
36189 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
36190 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
36191 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
36192 access.
36193 (analyze_all_variable_accesses): Completely scalarize small eligible
36194 records.
36195
36196 2010-01-21 Martin Jambor <mjambor@suse.cz>
36197
36198 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
36199
36200 2010-01-21 Andrew Haley <aph@redhat.com>
36201
36202 * gcc.c (process_command): Move lang_specific_driver before
36203 setting cc_libexec_prefix.
36204
36205 2010-01-21 Richard Guenther <rguenther@suse.de>
36206
36207 PR middle-end/19988
36208 * fold-const.c (negate_expr_p): Pretend only negative
36209 real constants are easily negatable.
36210
36211 2010-01-20 Janis Johnson <janis187@us.ibm.com>
36212 Jason Merrill <jason@redhat.com>
36213
36214 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
36215 (TYPE_TRANSPARENT_AGGR): this, for union and record.
36216 * calls.c (initialize argument_information): Handle it.
36217 * c-common.c (handle_transparent_union_attribute): Use new name.
36218 * c-decl.c (finish_struct): Ditto.
36219 * c-typeck.c (type_lists_compatible_p): Ditto.
36220 (convert_for_assignment): Use new name and also handle record.
36221 * function.c (aggregate_value_p): Handle it.
36222 (pass_by_reference): Ditto.
36223 (assign_parm_data_types): Ditto.
36224 * print-tree.c (print_node): Ditto.
36225 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
36226 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
36227 * tree.c (first_field): New fn.
36228
36229 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
36230
36231 PR target/42818
36232 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
36233 even when linking statically, for now.
36234
36235 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
36236
36237 PR debug/42715
36238 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
36239 without a cselib val.
36240 (count_uses): Accept MO_VAL_SET with no val on stores.
36241 (add_stores): Likewise.
36242
36243 2010-01-20 Jakub Jelinek <jakub@redhat.com>
36244
36245 * var-tracking.c (check_value_val): Add a compile time assertion.
36246 (dv_is_decl_p): Simplify.
36247 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
36248 gcc_assert if ENABLE_CHECKING.
36249
36250 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
36251
36252 PR debug/42782
36253 * var-tracking.c: Include tree-flow.h.
36254 (mem_dies_at_call): New.
36255 (dataflow_set_preserve_mem_locs): Use it.
36256 (dataflow_set_remove_mem_locs): Likewise.
36257 (dump_var): Renamed from dump_variable. Adjust all callers.
36258 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
36259 * Makefile.in (var-tracking.o): Adjust deps.
36260
36261 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
36262
36263 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
36264
36265 2010-01-20 Richard Guenther <rguenther@suse.de>
36266
36267 PR tree-optimization/42717
36268 * tree-ssa-dce.c (get_live_post_dom): Remove.
36269 (forward_edge_to_pdom): Take an arbitrary edge to copy
36270 degenerate PHI args from.
36271 (remove_dead_stmt): Use the first post-dominator even if it
36272 does not contain live statements as redirection destination.
36273
36274 2010-01-20 Richard Guenther <rguenther@suse.de>
36275
36276 * tree-inline.c (estimate_num_insns): Handle EH builtins.
36277
36278 2010-01-20 Jakub Jelinek <jakub@redhat.com>
36279
36280 * sel-sched.c (create_speculation_check): Remove set but not used
36281 variable twin.
36282 (try_transformation_cache): Remove set but not used variable ds.
36283 (calculate_privileged_insns): Remove set but not used variables
36284 cur_insn and min_spec_insn.
36285 (find_best_expr): Remove set but not used variable avail_n.
36286 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
36287 variable e.
36288 * cgraphunit.c (assemble_thunk): Remove set but not used variable
36289 false_label.
36290 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
36291 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
36292 new_scop_exit_edge.
36293
36294 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
36295
36296 PR bootstrap/42786
36297 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
36298 cpu types. Add support for *-sse3 cpu types.
36299 (x86_64-*-*): Ditto.
36300
36301 2010-01-20 Jakub Jelinek <jakub@redhat.com>
36302
36303 PR middle-end/42803
36304 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
36305 argument, call initializer_constant_valid_p_1 instead of
36306 initializer_constant_valid_p, pass CACHE to it, return NULL
36307 immediately if first call returns NULL.
36308 (initializer_constant_valid_p_1): New function.
36309 (initializer_constant_valid_p): Use it.
36310
36311 2010-01-20 Thomas Quinot <quinot@adacore.com>
36312
36313 * tree.def (PLACEHOLDER_EXPR): Fix comment.
36314
36315 2010-01-20 Jakub Jelinek <jakub@redhat.com>
36316
36317 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
36318 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
36319 (loc_list_from_tree): Don't handle unsigned division. Handle
36320 signed modulo using DW_OP_{over,over,div,mul,minus}.
36321 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
36322 modulo instead of signed.
36323
36324 2010-01-20 DJ Delorie <dj@redhat.com>
36325
36326 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
36327 (Fpa): Pass it
36328 (h8300_emit_stack_adjustment): Propogate it.
36329 (push): Pass it.
36330 (h8300_expand_prologue): Likewise.
36331 (h8300_expand_epilogue): Likewise.
36332
36333 2010-01-19 Michael Matz <matz@suse.de>
36334
36335 PR tree-optimization/41783
36336 * tree-data-ref.c (toplevel): Include flags.h.
36337 (dump_data_dependence_relation): Also dump the inputs if the
36338 result will be unknown.
36339 (split_constant_offset_1): Look through some conversions.
36340 * tree-predcom.c (determine_roots_comp): Restart a new chain if
36341 the offset from last element is too large.
36342 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
36343 (reassociate_to_the_same_stmt): Handle vector registers.
36344 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
36345 (e.g. conversions).
36346 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
36347 wide_prolog_niters argument, emit widening instructions.
36348 (vect_do_peeling_for_alignment): Adjust caller, use widened
36349 variant of the iteration cound.
36350 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
36351
36352 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36353
36354 PR target/38697
36355 * config/arm/neon-testgen.m (emit_automatics): New parameter
36356 features. Adjust for Fixed_return_reg feature.
36357 (test_intrinsic): Call emit_automatics with new feature.
36358 * config/arm/neon.ml: Update copyright years.
36359 (features): New Fixed_return_reg feature.
36360 (ops): Update feature for Vget_low.
36361
36362 2010-01-19 Jakub Jelinek <jakub@redhat.com>
36363
36364 PR tree-optimization/42719
36365 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
36366 stmt uses.
36367
36368 PR debug/42728
36369 * fwprop.c (all_uses_available_at): Return false if def_set dest
36370 is a REG that is used in def_insn.
36371
36372 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
36373
36374 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
36375
36376 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
36377 Add argument names.
36378
36379 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
36380
36381 * target.h (struct gcc_target) <secondary_reload>: Change type
36382 of last argument to secondary_reload_info *.
36383
36384 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
36385
36386 PR target/42774
36387 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
36388 memory references with unaligned offsets. Remove CQImode handling.
36389 (unaligned_memory_operand): Return 1 for memory references with
36390 unaligned offsets. Remove CQImode handling.
36391
36392 2010-01-18 Richard Guenther <rguenther@suse.de>
36393
36394 PR middle-end/39954
36395 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
36396 builtin calls.
36397
36398 2010-01-18 Richard Guenther <rguenther@suse.de>
36399
36400 PR tree-optimization/42781
36401 * tree-ssa-structalias.c (find_what_var_points_to): Skip
36402 restrict processing only if the original variable was artificial.
36403
36404 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
36405
36406 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
36407 find number of popped argument bytes.
36408
36409 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
36410 Fix the text that describes the return value for invalid insns.
36411
36412 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
36413
36414 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
36415 Clarify what 'cost of the -dependence' is. Fix quoting.
36416
36417 * toplev.c (default_get_pch_validity): Rename argument to "sz".
36418 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
36419
36420 2010-01-17 Jakub Jelinek <jakub@redhat.com>
36421
36422 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
36423 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
36424
36425 2010-01-17 Richard Guenther <rguenther@suse.de>
36426
36427 PR middle-end/42248
36428 * function.c (split_complex_args): Take a VEC to modify.
36429 (assign_parms_augmented_arg_list): Build a VEC instead of
36430 a chain of PARM_DECLs.
36431 (assign_parms_unsplit_complex): Take a VEC of arguments.
36432 Do not fixup unmodified parms.
36433 (assign_parms): Deal with the VEC.
36434 (gimplify_parameters): Likewise.
36435
36436 2010-01-17 Richard Guenther <rguenther@suse.de>
36437
36438 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
36439 node existence check.
36440 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
36441 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
36442 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
36443 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
36444 (gimple_execute_on_growing_pred): Likewise.
36445
36446 2010-01-17 Richard Guenther <rguenther@suse.de>
36447
36448 PR tree-optimization/42773
36449 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
36450 (compute_antic_aux): Likewise.
36451 (compute_partial_antic_aux): Likewise.
36452
36453 2010-01-17 Jie Zhang <jie.zhang@analog.com>
36454
36455 PR debug/42767
36456 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
36457 and US_TRUNCATE.
36458
36459 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
36460
36461 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
36462 appearance.
36463
36464 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
36465 Fix markup for strict argument.
36466
36467 (TARGET_SCHED_REORDER2): Fix argument types.
36468
36469 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
36470 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
36471
36472 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
36473 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
36474
36475 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
36476 Add argument name.
36477
36478 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
36479 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
36480 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
36481 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
36482 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
36483
36484 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
36485
36486 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
36487
36488 (TARGET_ASM_RELOC_RW_MASK): Add return type.
36489 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
36490
36491 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
36492
36493 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
36494 Use prototype.
36495
36496 (TARGET_ASM_NAMED_SECTION): Fix argument list.
36497
36498 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
36499 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
36500
36501 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
36502
36503 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
36504
36505 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
36506 referring to it. Fix language.
36507
36508 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
36509
36510 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
36511
36512 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
36513
36514 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
36515
36516 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
36517 '@var{stream}. Remove stray 'and'.
36518
36519 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
36520
36521 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
36522
36523 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
36524
36525 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
36526 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
36527
36528 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
36529 Fix description of return value.
36530 Rename argument "sz" to "len."
36531
36532 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
36533 Clarify meaning of 'true' return value.
36534
36535 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
36536
36537 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
36538 rep_mode versus mode_rep.
36539
36540 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
36541
36542 (TARGET_BUILTIN_DECL): Fix name.
36543
36544 (TARGET_COMMUTATIVE_P): Fix type of first argument.
36545
36546 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
36547
36548 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
36549
36550 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
36551
36552 (TARGET_RELAXED_ORDERING): Use @deftypevr.
36553
36554 (TARGET_GET_DRAP_RTX): Note that this is a hook.
36555 Clarify language.
36556
36557 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
36558 Rename argument tm_fn to md_fn.
36559
36560 (TARGET_OPTION_PRINT): Fix argument list.
36561
36562 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
36563
36564 PR target/42664
36565 * config/i386/i386.c (ix86_fixup_binary_operands):
36566 Revert FMA4 fixup of operands.
36567
36568 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36569
36570 PR other/42525
36571 * Makefile.in (write_entries_to_file, install-plugin):
36572 Use \012 instead of \n with tr.
36573
36574 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
36575
36576 * configure.ac (HAVE_AS_REF): New C macro.
36577 * configure: Regenerate.
36578 * config.in: Likewise.
36579 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
36580 if HAVE_AS_REF.
36581 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
36582 if HAVE_AS_REF.
36583
36584 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
36585
36586 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
36587
36588 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
36589
36590 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
36591
36592 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
36593
36594 (TARGET_IN_SMALL_DATA_P): Fix argument type.
36595
36596 (TARGET_BINDS_LOCAL_P): Fix argument type.
36597
36598 (TARGET_ASM_FILE_END): Use prototype.
36599
36600 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
36601
36602 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
36603
36604 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
36605
36606 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
36607
36608 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
36609 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
36610
36611 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
36612 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
36613
36614 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
36615 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
36616 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
36617 (TARGET_ADDR_SPACE_CONVERT): Likewise.
36618
36619 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
36620
36621 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
36622
36623 (TARGET_INIT_BUILTINS): Use prototype.
36624
36625 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
36626 Put 'const char *' in braces. Fix parameter types.
36627 (TARGET_INVALID_CONVERSION): Fix parameter types.
36628 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
36629 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
36630
36631 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
36632 Fix argument type.
36633
36634 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
36635
36636 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
36637
36638 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
36639
36640 * doc/tm.texi (TARGET_HELP): Fix return type.
36641
36642 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
36643 in braces. Fix argument types.
36644
36645 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
36646
36647 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
36648
36649 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
36650
36651 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
36652 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
36653
36654 (TARGET_MANGLE_TYPE): Fix argument types.
36655
36656 (TARGET_IRA_COVER_CLASSES): Use prototype.
36657
36658 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
36659
36660 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
36661
36662 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
36663
36664 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
36665
36666 (TARGET_CALLEE_COPIES): Fix argument types.
36667
36668 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
36669
36670 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
36671
36672 (TARGET_FUNCTION_VALUE): Fix argument types.
36673
36674 (TARGET_RETURN_IN_MSB): Fix argument type.
36675
36676 (TARGET_RETURN_IN_MEMORY): Fix argument types.
36677
36678 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
36679
36680 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
36681
36682 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
36683 agree with return type.
36684
36685 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
36686
36687 2010-01-15 Jing Yu <jingyu@google.com>
36688
36689 PR rtl-optimization/42691
36690 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
36691 a pseudo to a constant and are merged, and adjust comments.
36692
36693 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
36694
36695 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
36696
36697 2010-01-15 Richard Guenther <rguenther@suse.de>
36698
36699 PR middle-end/42739
36700 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
36701 labels of computed or non-local gotos to the destination.
36702 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
36703 landing pad label is the first label.
36704
36705 2010-01-15 Richard Guenther <rguenther@suse.de>
36706
36707 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
36708
36709 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
36710
36711 PR target/42747
36712 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
36713 to allow generation of the xssqrtdp instruction on power7.
36714 (sqrtdf2_fpr): Ditto.
36715
36716 2010-01-14 Jakub Jelinek <jakub@redhat.com>
36717
36718 PR middle-end/42674
36719 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
36720 functions with noreturn attribute.
36721
36722 PR c++/42608
36723 * varasm.c (declare_weak): Add weak attribute to decl if it
36724 doesn't have one already.
36725 (assemble_external): Only add decls to weak_decls if they also
36726 have weak attribute.
36727
36728 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
36729
36730 * var-tracking.c (var_reg_delete): Don't delete the association
36731 between REGs and values or one-part variables if the register
36732 isn't clobbered.
36733
36734 2010-01-14 Jakub Jelinek <jakub@redhat.com>
36735
36736 PR debug/42657
36737 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
36738 because its first operand is a non-localized variable.
36739
36740 2010-01-14 Martin Jambor <mjambor@suse.cz>
36741
36742 PR tree-optimization/42706
36743 * tree-sra.c (encountered_recursive_call): New variable.
36744 (encountered_unchangable_recursive_call): Likewise.
36745 (sra_initialize): Initialize both new variables.
36746 (callsite_has_enough_arguments_p): New function.
36747 (scan_function): Call decl and flags check only for IPA-SRA, check
36748 whether there is a recursive call and whether it has enough arguments.
36749 (all_callers_have_enough_arguments_p): New function.
36750 (convert_callers): Look for recursive calls only when
36751 encountered_recursive_call is set.
36752 (ipa_early_sra): Bail out either if
36753 !all_callers_have_enough_arguments_p or
36754 encountered_unchangable_recursive_call.
36755
36756 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36757
36758 * sel-sched.c: Add 2010 to copyright years.
36759 * sel-sched-ir.c: Likewise.
36760 * sel-sched-ir.h: Likewise.
36761
36762 2010-01-14 Martin Jambor <mjambor@suse.cz>
36763
36764 PR tree-optimization/42714
36765 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
36766 constructors specially.
36767
36768 2010-01-14 Andi Kleen <ak@linux.intel.com>
36769
36770 * config/i386/drivers-i386.c (detect_caches_intel):
36771 Add l2sizekb parameter and fill in.
36772 (host_detect_local_cpu): Add l2sizekb, fill in.
36773 Add Atom small cache heuristic.
36774
36775 2010-01-14 Andi Kleen <ak@linux.intel.com>
36776
36777 * config/i386/drivers-i386.c (detect_caches_cpuid4):
36778 Add level3 parameter and fill in.
36779 (detect_caches_intel): Handle level3 cache.
36780
36781 2010-01-14 Andi Kleen <ak@linux.intel.com>
36782
36783 * config/i386/drivers-i386.c (host_detect_local_cpu):
36784 Fix core duo detection.
36785
36786 2010-01-14 Andi Kleen <ak@linux.intel.com>
36787
36788 * config/i386/drivers-i386.c (host_detect_local_cpu):
36789 Fix Atom detection.
36790
36791 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36792
36793 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
36794 (rs6000_variable_issue_1): this. Use...
36795 (rs6000_variable_issue): here. Reimplement. Print debug info.
36796
36797 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36798
36799 * sel-sched-ir.c (sel_restore_other_notes): Rename to
36800 sel_restore_notes. Update all callers. Call reemit_notes
36801 for all insns.
36802
36803 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36804
36805 PR rtl-optimization/42246
36806 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
36807 loops.
36808
36809 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36810
36811 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
36812 all successors is the same as number of successors in current region.
36813
36814 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36815
36816 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
36817 to rename is not separable. Otherwise check that its LHS is not NULL.
36818
36819 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36820
36821 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
36822
36823 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36824
36825 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
36826 available registers when failed to discover LHS register class.
36827 Fix indentation. Update comment.
36828
36829 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36830 Alexander Monakov <amonakov@ispras.ru>
36831
36832 PR rtl-optimization/42389
36833 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
36834 to can_issue_more.
36835 (advance_state_on_fence): Likewise.
36836 (sel_target_adjust_priority): Print debug output only when
36837 sched_verbose >= 4, not 2.
36838 (get_expr_cost): Do not issue all unique insns on the next cycle.
36839 (fill_insns): Initialize can_issue_more from the value saved
36840 with the fence.
36841 * sel-sched-ir.c (flist_add): New parameter issue_more.
36842 Init FENCE_ISSUE_MORE with it.
36843 (merge_fences): Likewise.
36844 (init_fences): Update call to flist_add.
36845 (add_to_fences, add_clean_fence_to_fences)
36846 (add_dirty_fence_to_fences): Likewise.
36847 (move_fence_to_fences): Update call to merge_fences.
36848 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
36849 sched groups.
36850 * sel-sched-ir.h (struct _fence): New field issue_more.
36851 (FENCE_ISSUE_MORE): New accessor macro.
36852
36853 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36854
36855 PR rtl-optimization/42388
36856 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
36857 that have no predecessors nor successors. Do not call move_bb_info
36858 for empty blocks outside of current region.
36859
36860 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36861
36862 PR rtl-optimization/42294
36863 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
36864 * sel-sched.c (move_exprs_to_boundary): Transitively add all
36865 originators' originators.
36866
36867 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
36868
36869 PR rtl-optimization/39453
36870 PR rtl-optimization/42246
36871 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
36872 for pipelining_p.
36873 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
36874
36875 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36876 Alexander Monakov <amonakov@ispras.ru>
36877
36878 PR middle-end/42245
36879 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
36880 (maybe_tidy_empty_bb): ... here. Make static. Add new
36881 argument. Update all callers.
36882 (tidy_control_flow): ... and here. Recompute topological order
36883 of basic blocks in region if necessary.
36884 (sel_redirect_edge_and_branch): Change return type. Return true
36885 if topological order might have been invalidated.
36886 (purge_empty_blocks): Export and move from...
36887 * sel-sched.c (purge_empty_blocks): ... here.
36888 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
36889 (maybe_tidy_empty_bb): Delete prototype.
36890 (purge_empty_blocks): Declare.
36891
36892 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
36893
36894 PR rtl-optimization/42249
36895 * sel-sched.c (try_replace_dest_reg): When chosen register
36896 and original register is the same, do not bail out early, but
36897 still check all original insns for validity of replacing destination
36898 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
36899 in this case.
36900
36901 2010-01-14 Jakub Jelinek <jakub@redhat.com>
36902
36903 PR c/42721
36904 Port from no-undefined-overflow branch:
36905 2009-03-09 Richard Guenther <rguenther@suse.de>
36906
36907 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
36908
36909 2010-01-14 Richard Guenther <rguenther@suse.de>
36910
36911 PR lto/42665
36912 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
36913
36914 2010-01-14 Ira Rosen <irar@il.ibm.com>
36915
36916 PR tree-optimization/42709
36917 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
36918 as scalar type in creation of constant vector operand.
36919
36920 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36921
36922 PR testsuite/42414
36923 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
36924 (check-parallel-%): Match `testsuite' directory component only
36925 at the end.
36926
36927 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
36928
36929 PR translation/39521
36930 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
36931 strings with _().
36932
36933 2010-01-13 Richard Guenther <rguenther@suse.de>
36934
36935 PR tree-optimization/42730
36936 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
36937 offset zero.
36938
36939 2010-01-13 Steve Ellcey <sje@cup.hp.com>
36940
36941 PR target/pr42542
36942 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
36943 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
36944 them signed.
36945
36946 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
36947
36948 * config/bfin/libgcc-bfin.ver: Regenerate based on current
36949 libgcc-std.ver. Add entries for ___smulsi3_highpart and
36950 ___umulsi3_highpart.
36951
36952 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
36953 rather than schedule_insns if the pass is enabled.
36954
36955 2010-01-13 Martin Jambor <mjambor@suse.cz>
36956
36957 PR tree-optimization/42704
36958 * tree-sra.c (sra_modify_assign): Do not delete assignments to
36959 SSA_NAMEs.
36960
36961 2010-01-13 Martin Jambor <mjambor@suse.cz>
36962
36963 PR tree-optimization/42703
36964 * tree-sra.c (analyze_access_subtree): Check that we can build a
36965 reference to the original data within the aggregate.
36966
36967 2010-01-13 Richard Guenther <rguenther@suse.de>
36968
36969 PR tree-optimization/42705
36970 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
36971
36972 2010-01-13 Richard Guenther <rguenther@suse.de>
36973
36974 PR middle-end/42716
36975 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
36976
36977 2010-01-13 Jakub Jelinek <jakub@redhat.com>
36978
36979 PR debug/41371
36980 * var-tracking.c (values_to_unmark): New variable.
36981 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
36982 values_to_unmark vector. Moved body to...
36983 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
36984 instead queue it into values_to_unmark vector.
36985 (vt_find_locations): Free values_to_unmark vector.
36986
36987 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
36988
36989 * config/s390/s390.c (override_options): Set
36990 default of max-pending-list-length to 256
36991
36992 2010-01-13 Richard Guenther <rguenther@suse.de>
36993
36994 PR lto/42678
36995 * tree-pass.h (PROP_gimple_lcx): New.
36996 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
36997 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
36998 before the final cleanup_eh.
36999 (dump_properties): Dump PROP_gimple_lcx.
37000 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
37001 (tree_lower_complex_O0): Remove.
37002 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
37003 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
37004 tree_lower_complex, schedule TODO_update_ssa.
37005 * lto-streamer-out.c (output_function): Stream the functions
37006 properties.
37007 * lto-streamer-in.c (input_function): Likewise.
37008 (lto_read_body): Do not override them here.
37009
37010 2010-01-12 Joseph Myers <joseph@codesourcery.com>
37011
37012 PR c/42708
37013 * c-typeck.c (build_c_cast): Fold value cast to union type before
37014 wrapping it in a CONSTRUCTOR.
37015
37016 2010-01-12 Jakub Jelinek <jakub@redhat.com>
37017
37018 PR rtl-optimization/42699
37019 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
37020 involved.
37021
37022 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37023
37024 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
37025 SUBTARGET_WARN_UNUSED_SPEC): Move ...
37026 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
37027 SUBTARGET_WARN_UNUSED_SPEC): ... here
37028 * config/mips/iris5.h (LIBGCC_SPEC): Define.
37029
37030 2010-01-12 Julian Brown <julian@codesourcery.com>
37031
37032 * config/arm/neon-schedgen.ml (Utils): Don't try to
37033 open missing module.
37034 (find_with_result): New.
37035
37036 2010-01-12 Jakub Jelinek <jakub@redhat.com>
37037
37038 PR debug/42662
37039 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
37040 sharing when canonicalizing ({lt,ge}u (plus a b) b).
37041
37042 PR tree-optimization/42645
37043 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
37044 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
37045 decl_map, set processing_debug_stmt to -1 and return name without
37046 any remapping.
37047
37048 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
37049
37050 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
37051 binutils version, and reword target configuration description.
37052
37053 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
37054
37055 * config/avr/avr.h (LINKER_NAME): Remove.
37056
37057 2010-01-11 Janis Johnson <janis187@us.ibm.com>
37058
37059 PR target/42416
37060 * config/rs6000/rs6000.c (rs6000_override_options): On targets
37061 that support VSX, warn for -mno-altivec if vsx is not disabled,
37062 and disable vsx.
37063
37064 2010-01-11 Joseph Myers <joseph@codesourcery.com>
37065 Shujing Zhao <pearly.zhao@oracle.com>
37066
37067 PR translation/42469
37068 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
37069 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
37070 character between option name and help text.
37071 * c.opt (imultilib): Likewise.
37072
37073 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
37074
37075 * lto-streamer-out.c (output_unreferenced_globals): Output static
37076 variables.
37077
37078 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
37079
37080 PR rtl-optimization/42621
37081 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
37082 optimizing for size.
37083 (duplicate_computed_gotos): Remove now-redundant check.
37084
37085 2010-01-10 Steve Ellcey <sje@cup.hp.com>
37086
37087 PR target/37454
37088 * configure.ac: Save and restore LDFLAGS and LIBS
37089 * configure: Regenerate.
37090
37091 2010-01-10 Richard Guenther <rguenther@suse.de>
37092
37093 PR middle-end/42667
37094 * builtins.c (fold_builtin_strlen): Add type argument and
37095 convert the resulting length to it.
37096 (fold_builtin_1): Adjust.
37097
37098 2010-01-09 Jakub Jelinek <jakub@redhat.com>
37099
37100 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
37101 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
37102 1 insn.
37103 (num_insns_constant_wide): Adjust for that change.
37104
37105 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
37106
37107 PR debug/42631
37108 * web.c (union_defs): Add used argument, to combine uses of
37109 uninitialized regs.
37110 (entry_register): Adjust type and tests of used argument.
37111 (web_main): Widen used for new use. Pass it to union_defs.
37112 * df.h (union_defs): Adjust prototype.
37113
37114 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
37115
37116 PR debug/42630
37117 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
37118 uses in new incoming argument. Free body.
37119 (reset_debug_uses_in_loop): New.
37120 (analyze_insn_to_expand_var): Call the latter if the former found
37121 anything. Fix whitespace. Reject invalid dest overlaps before
37122 going through all insns in the loop.
37123
37124 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
37125
37126 PR debug/42629
37127 * haifa-sched.c (dying_use_p): Debug insns don't count.
37128
37129 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
37130
37131 PR middle-end/42363
37132 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
37133 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
37134 (verify_gimple_call): Reject LHS in noreturn calls.
37135
37136 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
37137
37138 PR debug/42604
37139 PR debug/42395
37140 * tree-vect-loop-manip.c (adjust_info): New type.
37141 (adjust_vec): New pointer to vector.
37142 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
37143 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
37144 (slpeel_update_phis_for_duplicate_loop): Use them.
37145 (slpeel_update_phi_nodes_for_guard1): Likewise.
37146 (slpeel_update_phi_nodes_for_guard2): Likewise.
37147 (slpeel_tree_peel_loop_to_edge): Likewise.
37148 (vect_update_ivs_after_vectorizer): Likewise.
37149
37150 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
37151
37152 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
37153 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
37154
37155 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
37156
37157 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
37158 bogus uninitialized warning.
37159
37160 2010-01-09 Richard Guenther <rguenther@suse.de>
37161
37162 PR middle-end/42512
37163 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
37164 the evolution is compatible with the initial condition.
37165
37166 2010-01-09 Jakub Jelinek <jakub@redhat.com>
37167
37168 * gcc.c (process_command): Update copyright notice dates.
37169 * gcov.c (print_version): Likewise.
37170 * gcov-dump.c (print_version): Likewise.
37171 * mips-tfile.c (main): Likewise.
37172 * mips-tdump.c (main): Likewise.
37173
37174 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
37175
37176 PR target/41885
37177 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
37178 (rotlhi3): Delete.
37179 (rotlhi3_8): Delete.
37180 (rotlsi3): Delete.
37181 (rotlsi3_8): Delete.
37182 (rotlsi3_16): Delete.
37183 (rotlsi3_24): Delete.
37184 (rotl<mode>3): New.
37185 (*rotw<mode>3): New.
37186 (*rotb<mode>3): New.
37187 * config/avr/avr.c (avr_rotate_bytes): New function.
37188 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
37189
37190 2010-01-08 Steve Ellcey <sje@cup.hp.com>
37191
37192 PR target/37454
37193 * configure.ac: Modify -rdynamic check.
37194 * configure: Regenerate.
37195
37196 2010-01-08 DJ Delorie <dj@redhat.com>
37197
37198 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
37199 register popping order.
37200
37201 2010-01-08 Richard Guenther <rguenther@suse.de>
37202
37203 PR lto/42528
37204 * c.opt (fsigned-char): Also let LTO handle this option.
37205 (funsigned-char): Likewise.
37206
37207 2010-01-07 Richard Guenther <rguenther@suse.de>
37208
37209 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
37210 (gimple_op): Likewise.
37211 (gimple_op_ptr): Likewise.
37212 (gimple_assign_set_lhs): Remove gcc_assert.
37213 (gimple_assign_set_rhs1): Likewise.
37214 (gimple_assign_set_rhs2): Likewise.
37215 (gimple_call_set_lhs): Likewise.
37216 (gimple_call_set_fn): Likewise.
37217 (gimple_call_set_fndecl): Likewise.
37218 (gimple_call_fndecl): Likewise.
37219 (gimple_call_return_type): Likewise.
37220 (gimple_call_set_chain): Likewise.
37221 (gimple_call_num_args): Likewise.
37222 (gimple_call_set_arg): Likewise.
37223 (gimple_cond_set_code): Likewise.
37224 (gimple_cond_set_lhs): Likewise.
37225 (gimple_cond_set_rhs): Likewise.
37226 (gimple_cond_set_true_label): Likewise.
37227 (gimple_cond_set_false_label): Likewise.
37228 (gimple_label_set_label): Likewise.
37229 (gimple_goto_set_dest): Likewise.
37230 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
37231 (gimple_debug_bind_get_value): Likewise.
37232 (gimple_debug_bind_get_value_ptr): Likewise.
37233 (gimple_debug_bind_set_var): Likewise.
37234 (gimple_debug_bind_set_value): Likewise.
37235 (gimple_debug_bind_reset_value): Likewise.
37236 (gimple_debug_bind_has_value_p): Likewise.
37237 (gimple_return_retval_ptr): Remove gcc_assert.
37238 (gimple_return_retval): Likewise.
37239 (gimple_return_set_retval): Likewise.
37240 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
37241 (safe_referenced_var_iterator): Remove.
37242 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
37243 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
37244 (fill_referenced_var_vec): Remove.
37245 (first_readonly_imm_use): Remove redundant gcc_assert.
37246 (phi_arg_index_from_use): Combine gcc_asserts.
37247 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
37248 (first_imm_use_stmt): Remove redundant gcc_assert.
37249 * tree-cfg.c (verify_gimple_call): Verify function and chain
37250 operands. Verify arguments.
37251 (verify_types_in_gimple_stmt): Verify condition code and labels.
37252
37253 2010-01-07 Richard Guenther <rguenther@suse.de>
37254
37255 PR tree-optimization/42641
37256 * sese.c (rename_map_elt_info): Use the SSA name version, do
37257 not hash pointers.
37258
37259 2010-01-07 Jakub Jelinek <jakub@redhat.com>
37260
37261 PR tree-optimization/42625
37262 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
37263 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
37264
37265 2010-01-07 Duncan Sands <baldrick@free.fr>
37266
37267 * Makefile.in (PLUGIN_HEADERS): Add version.h.
37268
37269 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
37270
37271 PR target/42511
37272 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
37273 note itself is not function_invariant_p.
37274
37275 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
37276
37277 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
37278 Do not add the DF_NOTE problem.
37279 * store-motion.c (execute_rtl_store_motion): Likewise.
37280
37281 2010-01-07 Martin Jambor <mjambor@suse.cz>
37282
37283 PR tree-optimization/42157
37284 * tree-sra.c (compare_access_positions): Stabilize sort if both
37285 accesses have integer types, return zero immediately if they are the
37286 same.
37287
37288 2010-01-06 Richard Henderson <rth@redhat.com>
37289
37290 PR middle-end/41883
37291 * haifa-sched.c (add_to_note_list): Merge into ...
37292 (concat_note_lists): ... here, and ...
37293 (unlink_other_notes, rm_other_notes): Merge into...
37294 (remove_notes): ... here. Create REG_SAVE_NOTEs for
37295 NOTE_INSN_EPILOGUE_BEG.
37296
37297 2010-01-06 Richard Guenther <rguenther@suse.de>
37298
37299 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
37300 not inline regular functions into always-inline functions.
37301
37302 2010-01-06 Nick Clifton <nickc@redhat.com>
37303
37304 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
37305 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
37306 used together.
37307 (OVERRIDE_OPTIONS): Delete.
37308 (OPTIMIZATION_OPTIONS): Define.
37309 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
37310 * config/rx/rx.c (rx_handle_option): Issue an error message if
37311 -mcpu=rx200 and -fpu are used together.
37312 (rx_set_optimization_options): New function. Issue an error
37313 message if an optimization attribute attempts to reset the FPU/
37314 math optimization pairing.
37315 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
37316 * config/rx/rx.opt: Set the default to 32-bit doubles.
37317 * config/rx/t-rx: Add multilibs for -nofpu option.
37318 * doc/invoke.texi: Update documentation of RX options.
37319
37320 2010-01-06 Richard Guenther <rguenther@suse.de>
37321
37322 * tree-ssa-pre.c (name_to_id): New global.
37323 (alloc_expression_id): Simplify SSA name handling.
37324 (lookup_expression_id): Likewise.
37325 (init_pre): Zero name_to_id.
37326 (fini_pre): Free it.
37327
37328 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
37329
37330 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
37331
37332 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
37333
37334 PR target/42542
37335 * config/i386/sse.md (smaxv2di3): New.
37336 (umaxv2di3): Likewise.
37337 (sminv2di3): Likewise.
37338 (uminv2di3): Likewise.
37339
37340 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
37341
37342 PR target/42564
37343 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
37344 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
37345 (legitimize_tls_address): Likewise.
37346 (sparc_tls_referenced_p): Likewise.
37347 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
37348 and adjust calls to legitimize_pic_address.
37349 (legitimate_constant_p) Use sparc_tls_referenced_p.
37350 (legitimate_pic_operand_p): Likewise.
37351 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
37352 (sparc_tls_symbol_ref_1): Delete.
37353 (sparc_tls_referenced_p): Make static, recognize specific patterns.
37354 (legitimize_tls_address): Make static, handle CONST patterns.
37355 (legitimize_pic_address): Make static, remove unused parameter and
37356 adjust recursive calls.
37357 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
37358 and adjust call to legitimize_pic_address.
37359 (sparc_output_mi_thunk): Likewise.
37360
37361 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
37362 H.J. Lu <hongjiu.lu@intel.com>
37363
37364 PR target/42542
37365 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
37366 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
37367 operands to make them signed.
37368
37369 Revert:
37370 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
37371
37372 PR target/42542
37373 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
37374 GTU to GT for V4SI and V2DI.
37375
37376 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
37377 (umin<mode>3): Removed.
37378 (uminv8hi3): New.
37379 (uminv4si3): Likewise.
37380
37381 2010-01-05 Martin Jambor <mjambor@suse.cz>
37382
37383 PR tree-optimization/42462
37384 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
37385 current_function_decl to helper functions and macros.
37386
37387 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
37388
37389 PR bootstrap/41771
37390 * flags.h: Don't include real.h.
37391 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
37392 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
37393 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
37394 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
37395 * dominance.c: Update copyright.
37396 * gimple.c (walk_gimple_op): Remove inline.
37397 * tree-ssa-reassoc.c: Include real.h.
37398 * Makefile.in (FLAGS_H): Remove $(REAL_H).
37399 (tree-ssa-reassoc.o): Depend on $(REAL_H).
37400
37401 2010-01-05 Nick Clifton <nickc@redhat.com>
37402
37403 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
37404 register to push into the stack frame when the accumulator has to
37405 be saved during interrupts.
37406
37407 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
37408
37409 * doc/invoke.texi: Remove the documentation about option
37410 -Wunreachable-code.
37411 * common.opt (Wunreachable-code): Preserved for backward
37412 compatibility.
37413 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
37414 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
37415 the backward compatibility flag section.
37416
37417 2010-01-05 Richard Guenther <rguenther@suse.de>
37418
37419 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
37420
37421 2010-01-05 Jakub Jelinek <jakub@redhat.com>
37422
37423 PR other/42611
37424 * cfgexpand.c (expand_one_var): Diagnose too large variables.
37425
37426 PR tree-optimization/42508
37427 * tree-sra.c (convert_callers): Check for recursive call
37428 by comparing cgraph nodes instead of decls.
37429 (modify_function): Call ipa_modify_formal_parameters also
37430 on all same_body aliases.
37431
37432 * cgraphunit.c (cgraph_materialize_all_clones): Compare
37433 cgraph nodes when checking for same_body aliases.
37434
37435 2010-01-05 Richard Guenther <rguenther@suse.de>
37436
37437 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
37438 allocation and lookup.
37439 (get_or_alloc_expr_for_constant): Likewise.
37440 (phi_translate): Sink allocation.
37441
37442 2010-01-04 Richard Guenther <rguenther@suse.de>
37443
37444 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
37445 a new entry only if needed.
37446 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
37447 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
37448 hashtable lookup.
37449 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
37450 the result array.
37451 (phi_translate): Handle CONSTANTs early.
37452
37453 2010-01-04 Martin Jambor <mjambor@suse.cz>
37454
37455 PR tree-optimization/42398
37456 * tree-sra.c (struct access): Removed flag grp_different_types.
37457 (dump_access): Do not dump the removed flag.
37458 (sort_and_splice_var_accesses): Do not set the removed flag.
37459 (sra_modify_expr): Check for type compatibility directly.
37460
37461 2010-01-04 Martin Jambor <mjambor@suse.cz>
37462
37463 PR tree-optimization/42366
37464 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
37465 edges with variable number of parameters.
37466 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
37467 flag instead of asserting it.
37468 (ipa_read_node_info): Read uses_analysis_done flag.
37469
37470 2010-01-04 Richard Guenther <rguenther@suse.de>
37471
37472 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
37473 iterative_hash_* as intended.
37474 (vn_reference_compute_hash): Likewise. Simplify hashing
37475 SSA names.
37476 (vn_reference_lookup_2): Likewise.
37477 (vn_nary_op_compute_hash): Likewise.
37478 (vn_phi_compute_hash): Likewise.
37479 (expressions_equal_p): Remove strange code.
37480 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
37481 (pre_expr_hash): Likewise. Simplify hashing SSA names.
37482 (bitmap_insert_into_set_1): Take value-id as parameter.
37483 (add_to_value): Pass it.
37484 (bitmap_insert_into_set): Likewise.
37485 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
37486
37487 2010-01-04 Jakub Jelinek <jakub@redhat.com>
37488
37489 PR driver/42442
37490 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
37491 (do_self_spec): For switches with SWITCH_IGNORE set set also
37492 SWITCH_IGNORE_PERMANENTLY.
37493 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
37494 of SWITCH_IGNORE.
37495
37496 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
37497
37498 * lto-streamer-out.c (output_unreferenced_globals): Output the full
37499 tree of an unreferenced global var.
37500
37501 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
37502
37503 PR target/42542
37504 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
37505 GTU to GT for V4SI and V2DI.
37506
37507 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
37508 (umin<mode>3): Removed.
37509 (uminv8hi3): New.
37510 (uminv4si3): Likewise.
37511
37512 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
37513
37514 PR lto/42581
37515 * collect2.c (main): Turn on trace in collect2 if -v is passed
37516 to gcc with LTO.
37517
37518 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
37519
37520 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
37521 description of expression operand.
37522
37523 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
37524
37525 * configure.ac: Add install-html to target_list for Make-hooks.
37526 * configure: Regenerate.
37527 * fortran/Make-lang.in (F95_HTMLFILES): New.
37528 (fortran.html): Use it.
37529 (fortran.install-html): New.
37530 * Makefile.in (install-html): Add lang.install-html.
37531 * java/Make-lang.in (JAVA_HTMLFILES): New.
37532 (java.html): Use it.
37533 (java.install-html): New.
37534 * objc/Make-lang.in (objc.install-html): New.
37535 * objcp/Make-lang.in (obj-c++.install-html): New.
37536 * cp/Make-lang.in (c++.install-html): New.
37537 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
37538 * lto/Make-lang.in (lto.install-html): New.
37539
37540 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
37541
37542 PR lto/42520
37543 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
37544
37545 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
37546
37547 PR rtl-optimization/41862
37548 * store-motion.c (store_killed_in_insn, compute_store_table,
37549 remove_reachable_equiv_notes, replace_store_insn,
37550 build_store_vectors): Ignore all DEBUG_INSNs.
37551
37552 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
37553
37554 PR lto/41564
37555 * common.opt: Add dumpdir.
37556
37557 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
37558 isn't specified.
37559 (option_map): Add --dumpdir.
37560
37561 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
37562
37563 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
37564
37565 * opts.c (decode_options): Try dump_dir_name first if
37566 dump_base_name isn't an absolute path.
37567 (common_handle_option): Handle OPT_dumpdir.
37568
37569 * toplev.c (dump_dir_name): New.
37570 (print_switch_values): Also ignore -dumpdir.
37571
37572 * toplev.h (dump_dir_name): New.
37573
37574 2010-01-03 Richard Guenther <rguenther@suse.de>
37575
37576 PR tree-optimization/42589
37577 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
37578 double-word expansion of bswap32.
37579
37580 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
37581
37582 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
37583 with BLOCK_FOR_INSN.
37584 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
37585 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
37586 noce_process_if_block): Likewise.
37587 * gcse.c (compute_local_properties, insert_expr_in_table,
37588 insert_set_in_table, canon_list_insert, find_avail_set,
37589 pre_insert_copy_insn): Likewise.
37590
37591 * basic-block.h (BLOCK_NUM): Move from here...
37592 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
37593
37594 2010-01-03 Richard Guenther <rguenther@suse.de>
37595
37596 PR tree-optimization/42438
37597 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
37598 contains_may_not_return_call flag.
37599 (BB_MAY_NOTRETURN): New.
37600 (valid_in_sets): Trapping nary operations are not valid
37601 in blocks that may not return.
37602 (insert_into_preds_of_block): Remove check for trapping expressions.
37603 (compute_avail): Compute also BB_MAY_NOTRETURN.
37604
37605 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
37606
37607 * doc/invoke.texi: Add 2010 to copyright years.
37608
37609 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
37610
37611 * config/sparc/sparc.c: Fix formatting nits.
37612
37613 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
37614 Alexander Monakov <amonakov@ispras.ru>
37615
37616 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
37617
37618 2010-01-02 Richard Guenther <rguenther@suse.de>
37619
37620 PR middle-end/42577
37621 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
37622 (simplify_switch_using_ranges): Mark to be removed edges
37623 as non-executable.
37624
37625 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
37626
37627 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
37628
37629 * collect2.c (scan_libraries): Add missing argument in call to
37630 scan_prog_file.
37631
37632 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
37633
37634 PR target/42448
37635 * config/alpha/predicates.md (aligned_memory_operand): Return false
37636 for CQImode.
37637 (unaligned_memory_operand): Return true for CQImode.
37638 * config/alpha/alpha.c (get_aligned_mem): Assert that location
37639 doesn not cross aligned SImode word boundary.
37640
37641 2010-01-02 Anatoly Sokolov <aesok@post.ru>
37642
37643 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
37644 Remove.
37645 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
37646 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
37647
37648 2010-01-02 Richard Guenther <rguenther@suse.de>
37649
37650 PR lto/41597
37651 * toplev.c (compile_file): Emit LTO marker properly. Change
37652 it to __gnu_lto_v1.
37653 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
37654
37655 2010-01-01 Richard Guenther <rguenther@suse.de>
37656
37657 PR debug/42455
37658 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
37659
37660 2010-01-01 Richard Guenther <rguenther@suse.de>
37661
37662 PR c/42570
37663 * c-decl.c (grokdeclarator): For zero-size arrays force
37664 structural equality checks as layout_type does.
37665
37666 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
37667
37668 * builtins.c: Update copyright to 2010.
37669
37670 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
37671
37672 PR lto/42531
37673 * lto-streamer-out.c (produce_asm): Revert the last change.
37674 (copy_function): Likewise.
37675
37676 * lto-streamer.c (lto_get_section_name): Skip any leading
37677 asterisk in name.
37678
37679 2010-01-01 Richard Guenther <rguenther@suse.de>
37680
37681 PR middle-end/42559
37682 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
37683 for LABEL_DECLs.
37684
37685 \f
37686 Copyright (C) 2010 Free Software Foundation, Inc.
37687
37688 Copying and distribution of this file, with or without modification,
37689 are permitted in any medium without royalty provided the copyright
37690 notice and this notice are preserved.