]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
function.h (rtl): Rename to x_rtl.
[thirdparty/gcc.git] / gcc / ChangeLog
1 2008-04-07 Jan Hubicka <jh@suse.cz>
2
3 * function.h (rtl): Rename to x_rtl.
4 (crtl): New define.
5 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
6 frame_offset, stack_check_probe_note, arg_pointer_save_area,
7 used_temp_slots avail_temp_slots, temp_slot_level,
8 nonlocal_goto_handler_labels): Update accesstors.
9 (rtl): New global variable.
10 (struct function): Move some fileds to rtl_data.
11 (get_arg_pointer_save_area): Update prototype.
12 * builtins.c (expand_builtin_setjmp_receiver): Update call of
13 get_arg_pointer_save_area.
14 * expr.c (init_expr): Update
15 * function.c (get_frame_size): Update
16 (assign_stack_local): Update
17 (expand_function_end): Update.
18 (get_art_pointer_save_area): Update
19 * function.h
20 * emit-rtl.c (rtl): Declare.
21 (regno_reg_rtx): Declare.
22 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
23 Update.
24 (gen_reg_rtx): Update.
25 * varasm.c (n_deferred_constatns): Update accestor.
26 (init_varasm_status): Do not allocate varasm_status.
27 (force_const_mem, get_pool_size, output_constant_pool): Update.
28 * stmt.c (force_label_rtx): Do not use x_ prefixes.
29 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
30 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Update.
31 * sparc/sparc.h (INIT_EXPANDERS): Update.
32 * ia64/ia64.h (INIT_EXPANDERS): Update.
33
34 2008-04-07 James E. Wilson <wilson@tuliptree.org>
35
36 * reload.c (push_secondary_reload): Add missing break to for loop.
37
38 2008-04-07 Peter Bergner <bergner@vnet.ibm.com>
39
40 PR middle-end/PR28690
41 * rtlanal.c: Update copyright years.
42 (commutative_operand_precedence): Give SYMBOL_REF's the same precedence
43 as REG_POINTER and MEM_POINTER operands.
44 * emit-rtl.c (gen_reg_rtx_and_attrs): New function.
45 (set_reg_attrs_from_value): Call mark_reg_pointer as appropriate.
46 * rtl.h (gen_reg_rtx_and_attrs): Add prototype for new function.
47 * gcse.c: Update copyright years.
48 (pre_delete): Call gen_reg_rtx_and_attrs.
49 (hoist_code): Likewise.
50 (build_store_vectors): Likewise.
51 (delete_store): Likewise.
52 * loop-invariant.c (move_invariant_reg): Likewise.
53 Update copyright years.
54
55 2008-04-07 Uros Bizjak <ubizjak@gmail.com>
56
57 * config/i386/i386.md ("*sse_prologue_save_insn"): Use braced output
58 control string instead of quoted.
59
60 2008-04-07 Kenneth Zadeck <zadeck@naturalbridge.com>
61
62 * doc/rtl.texi: Rewrite of subreg section.
63
64 2008-04-07 Kai Tietz <kai.tietz@onevision.com>
65
66 PR/35842
67 * config/i386/i386.c (legitimize_pic_address): Add treating
68 of dllimport SYM_REF's.
69 (legitimize_dllimport_symbol): Add prototype.
70
71 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
72
73 * fold-const.c (fold) <ARRAY_REF>: New case. Try to fold constant
74 reference in constructor with non self-referential type.
75
76 2008-04-07 Eric Botcazou <ebotcazou@adacore.com>
77
78 Removal of Return with Depressed Stack Pointer support
79 * tree.h (TYPE_RETURNS_STACK_DEPRESSED): Delete.
80 (ECF_SP_DEPRESSED): Likewise.
81 (ECF_LIBCALL_BLOCK, ECF_NOVOPS): Adjust.
82 * calls.c (emit_call_1): Do not test ECF_SP_DEPRESSED.
83 (flags_from_decl_or_type): Do not test TYPE_RETURNS_STACK_DEPRESSED.
84 (expand_call): Do not test ECF_SP_DEPRESSED.
85 * dse.c (dse_step0): Do not test TYPE_RETURNS_STACK_DEPRESSED.
86 * function.c (keep_stack_depressed): Delete.
87 (handle_epilogue_set): Likewise.
88 (update_epilogue_consts): Likewise.
89 (emit_equiv_load): Likewise.
90 (thread_prologue_and_epilogue_insns): Remove support for Return with
91 Depressed Stack Pointer.
92 * print-tree.c (print_node): Do not test TYPE_RETURNS_STACK_DEPRESSED.
93
94 2008-04-06 Richard Guenther <rguenther@suse.de>
95
96 PR tree-optimization/35400
97 * tree-vrp.c (vrp_evaluate_conditional): Only query value-range
98 information from SSA_NAMEs.
99
100 2008-04-06 Anatoly Sokolov <aesok@post.ru>
101
102 * config/avr/avr.h (avr_mega_p): Remove declaration.
103 (AVR_MEGA): Remove macro.
104 * config/avr/avr.c (avr_mega_p): Remove variable.
105 (avr_override_options): Remove inicializion of avr_mega_p.
106 Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
107 (print_operand): Use AVR_HAVE_JMP_CALL instead of AVR_MEGA.
108 (avr_jump_mode): (Ditto.).
109 (avr_output_progmem_section_asm_op): (Ditto.).
110 (avr_asm_init_sections): (Ditto.).
111 (avr_asm_init_sections): (Ditto.).
112 (avr_rtx_costs): (Ditto.).
113 * config/avr/avr.md: (Ditto.).
114 * config/avr/avr.h: Use '__AVR_HAVE_JMP_CALL__' instead of
115 '__AVR_MEGA__'.
116
117 2008-04-06 Richard Guenther <rguenther@suse.de>
118
119 PR tree-optimization/35842
120 * tree-ssa-address.c (fixed_address_object_p): Adjust to match
121 is_gimple_invariant_address.
122
123 2008-04-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
124
125 * gcc.c (default_compilers): Sync Fortran extensions list with
126 that in fortran/lang-specs.h.
127 * doc/invoke.texi: Likewise.
128 * dbxout.c (get_lang_number): Use "GNU Fortran" in "GNU F95".
129 * dwarf2out.c (gen_compile_unit_die): Likewise.
130
131 2008-04-06 Tom G. Christensen <tgc@jupiterrise.com>
132
133 * gthr-posix95.h (__gthread_cond_wait_recursive): Add missing &.
134
135 2008-04-05 Uros Bizjak <ubizjak@gmail.com>
136
137 PR target/12329
138 * config/i386/i386.c (ix86_function_regparm): Error if regparm(3)
139 attribute is used for nested functions.
140
141 2008-04-05 Jan Hubicka <jh@suse.cz>
142
143 * emit-rtl.c (init_emit): xcalloc regno_pointer_align.
144
145 * tree-dump.c (dump_enable_all): Remove prototype; do not accept
146 letter argument.
147 (dump_files): Update.
148 (enable_rtl_dump_file): Do not accept letter argument.
149 * tree-pass.h (dump_file_info): Remove letter argument.
150 * toplev.c (decode_d_option): Update -da handling.
151 * toplev.h (enable_rtl_dump_file): Update prototype.
152 * passes.c (register_one_dump_file): Do not accept IPA argument; work
153 it out based on pass type.
154 (register_dump_files_1): Likewise.
155 (init_optimization_passes): Update register_one_dump_file calls.
156 (execute_one_pass): Sanity check that IPA passes are called at IPA
157 level and RTL passes at RTL level.
158 (execute_pass_list): IPA pass can not be after or subpass of
159 GIMPLE/RTL pass.
160 (execute_ipa_pass_list): Handle IPA subpasses of IPA subpasses and
161 disallov RTL subpasses of IPA subpasses.
162
163 2008-04-05 Ben Elliston <bje@au.ibm.com>
164
165 * tree-cfg.c (need_fake_edge_p): Return false for calls to
166 builtins that return exactly once and do not throw. Cache call to
167 call_expr_flags.
168
169 2008-04-04 Andy Hutchinson <hutchinsonandy@aim.com>
170
171 PR rtl-optimization/34916
172 PR middle-end/35519
173 * combine.c (create_log_links): Do not create duplicate LOG_LINKS
174 between instruction pairs.
175
176 2008-04-04 Naveen.H.S <naveen.hs@kpitcummins.com>
177
178 * doc/invoke.texi: Document -mbitops for SH.
179 * config/sh/constraints.md (K03, K12, Sbv, Sbw): New constraints.
180 * config/sh/predicates.md (bitwise_memory_operand): New predicate.
181 * config/sh/sh.c (print_operand): Add %t operand code.
182 * config/sh/sh.h (GO_IF_LEGITIMATE_INDEX): Add condition for SH2A.
183 * config/sh/sh.md (*iorsi3_compact): Fix condition for SH2A.
184 (extendqisi2_compact): Add the alternative for SH2A 4-byte mov.b.
185 (extendqihi2): Likewise.
186 (movqi_i): Likewise.
187 (insv): Use bset, bclr and bst instructions for SH2A if possible.
188 (extv): Use bld instruction for SH2A if possible.
189 (extzv): Likewise.
190 (bclr_m2a, bclrmem_m2a, bset_m2a, bsetmem_m2a, bst_m2a, bld_m2a,
191 bldsign_m2a, bld_reg, *bld_regqi, band_m2a, bandreg_m2a,
192 bor_m2a, borreg_m2a, bxor_m2a, bxorreg_m2a): New insns.
193 (bset.b, bclr.b): Define peepholes.
194 * config/sh/sh.opt (mbitops): New option.
195
196 2008-04-04 Janis Johnson <janis187@us.ibm.com>
197
198 PR target/35620
199 * config/rs6000/rs6000.c (rs6000_check_sdmode): Handle indirect ref
200 and view convert expression.
201
202 2008-04-04 Jakub Jelinek <jakub@redhat.com>
203
204 PR target/35364
205 * tree-cfg.c (remove_useless_stmts_1): Handle OMP_* containers.
206
207 2008-04-04 H.J. Lu <hongjiu.lu@intel.com>
208
209 * config.gcc (extra_headers): Add wmmintrin.h for x86 and x86-64.
210
211 * config/i386/cpuid.h (bit_AES): New.
212 (bit_PCLMUL): Likewise.
213
214 * config/i386/i386.c (pta_flags): Add PTA_AES and PTA_PCLMUL.
215 (override_options): Handle PTA_AES and PTA_PCLMUL. Enable
216 SSE2 if AES or PCLMUL is enabled.
217 (ix86_builtins): Add IX86_BUILTIN_AESENC128,
218 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
219 IX86_BUILTIN_AESDECLAST128, IX86_BUILTIN_AESIMC128,
220 IX86_BUILTIN_AESKEYGENASSIST128 and IX86_BUILTIN_PCLMULQDQ128.
221 (bdesc_sse_3arg): Add IX86_BUILTIN_PCLMULQDQ128.
222 (bdesc_2arg): Add IX86_BUILTIN_AESENC128,
223 IX86_BUILTIN_AESENCLAST128, IX86_BUILTIN_AESDEC128,
224 IX86_BUILTIN_AESDECLAST128 and IX86_BUILTIN_AESKEYGENASSIST128.
225 (bdesc_1arg): Add IX86_BUILTIN_AESIMC128.
226 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_aesenc128,
227 __builtin_ia32_aesenclast128, __builtin_ia32_aesdec128,
228 __builtin_ia32_aesdeclast128,__builtin_ia32_aesimc128,
229 __builtin_ia32_aeskeygenassist128 and
230 __builtin_ia32_pclmulqdq128.
231 * config/i386/i386.c (ix86_expand_binop_imm_builtin): New.
232 (ix86_expand_builtin): Use it for IX86_BUILTIN_PSLLDQI128 and
233 IX86_BUILTIN_PSRLDQI128. Handle IX86_BUILTIN_AESKEYGENASSIST128.
234
235 * config/i386/i386.h (TARGET_AES): New.
236 (TARGET_PCLMUL): Likewise.
237 (TARGET_CPU_CPP_BUILTINS): Handle TARGET_AES and TARGET_PCLMUL.
238
239 * config/i386/i386.md (UNSPEC_AESENC): New.
240 (UNSPEC_AESENCLAST): Likewise.
241 (UNSPEC_AESDEC): Likewise.
242 (UNSPEC_AESDECLAST): Likewise.
243 (UNSPEC_AESIMC): Likewise.
244 (UNSPEC_AESKEYGENASSIST): Likewise.
245 (UNSPEC_PCLMUL): Likewise.
246
247 * config/i386/i386.opt (maes): New.
248 (mpclmul): Likewise.
249
250 * config/i386/sse.md (aesenc): New pattern.
251 (aesenclast): Likewise.
252 (aesdec): Likewise.
253 (aesdeclast): Likewise.
254 (aesimc): Likewise.
255 (aeskeygenassist): Likewise.
256 (pclmulqdq): Likewise.
257
258 * config/i386/wmmintrin.h: New.
259
260 * doc/extend.texi: Document AES and PCLMUL built-in function.
261
262 * doc/invoke.texi: Document -maes and -mpclmul.
263
264 2008-04-04 Paolo Bonzini <bonzini@gnu.org>
265
266 * function.c (free_after_parsing): Replace with
267 cxx_push_function_context from C++ front-end.
268 (allocate_struct_function): Don't call langhook.
269 * langhooks.h (struct lang_hooks_for_functions): Delete.
270 (struct lang_hooks): Add back missing_noreturn_ok_p here, delete
271 member "function".
272 * langhooks-def.h (LANG_HOOKS_MISSING_NORETURN_OK_P): Add.
273 (LANG_HOOKS_FUNCTION_INIT, LANG_HOOKS_FUNCTION_FINAL,
274 LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P,
275 LANG_HOOKS_FUNCTION_INITIALIZER): Delete.
276 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_MISSING_NORETURN_OK_P,
277 remove LANG_HOOKS_FUNCTION_INITIALIZER.
278 * tree-cfg.c: Adjust call to missing_noreturn_ok_p langhook.
279
280 * c-objc-common.h (LANG_HOOKS_FUNCTION_MISSING_NORETURN_OK_P):
281 Rename to LANG_HOOKS_MISSING_NORETURN_OK_P.
282
283 2008-04-04 Jakub Jelinek <jakub@redhat.com>
284
285 PR c/35440
286 * c-pretty-print.c (pp_c_initializer_list): Handle CONSTRUCTOR
287 for all types.
288
289 2008-04-04 Richard Guenther <rguenther@suse.de>
290
291 PR middle-end/35823
292 * fold-const.c (optimize_minmax_comparison): Use the correct
293 type for the constant in the simplified comparison.
294
295 2008-04-04 Zuxy Meng <zuxy.meng@gmail.com>
296
297 * config/i386/driver-i386.c (describe_cache): Add l2_sizekb argument.
298 Pass L2 size as "--param l2-cache-size" to the compiler.
299 (decode_l2_cache): New function to decode L2 cache parameters using
300 0x8000006 extended cpuid function.
301 (detect_caches_amd): Determine parameters of L2 cache using
302 decode_l2_caches function.
303 (decode_caches_intel): Decode L2 cache parameters.
304 (detect_caches_intel): Determine L2 cache parameters using
305 decode_caches_intel and decode_l2_caches functions.
306
307 2008-04-03 Bob Wilson <bob.wilson@acm.org>
308
309 * config/xtensa/xtensa.c (xtensa_secondary_reload_class): Use a
310 secondary input reload for subword loads from the constant pool.
311
312 2008-04-03 Janis Johnson <janis187@us.ibm.com>
313
314 PR target/35713
315 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use integer
316 constants of the appropriate size for runtime calculations.
317
318 PR c/35712
319 * dfp.c (decimal_from_decnumber): Retain trailing zeroes for
320 decimal-float literal constant zero.
321
322 2008-04-03 Jakub Jelinek <jakub@redhat.com>
323
324 PR c/35738
325 * c-parser.c (c_parser_omp_atomic): Call
326 default_function_array_conversion on the RHS.
327
328 PR middle-end/35818
329 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: Don't
330 call is_variable_sized if decl has incomplete type.
331
332 2008-04-03 H.J. Lu <hongjiu.lu@intel.com>
333
334 * config/i386/i386-protos.h (ix86_aligned_p): Removed.
335
336 2008-04-03 Adam Nemet <anemet@caviumnetworks.com>
337
338 * config/mips/mips.md (any_gt, any_ge, any_lt, any_le): New code
339 iterators.
340 (u): Add attribute values for gt, gtu, ge, geu, lt, ltu, le and leu.
341 (sgt<u>): Merge sgt and sgtu into new expander.
342 (sgt, sgtu): Remove expanders.
343 (*sgt<u>_<mode>): Merge *sgt_<mode> and *sgtu_<mode> into new pattern.
344 (*sgt_<mode>, *sgtu_<mode>): Remove patterns.
345 (*sgt<u>_<mode>_mips16): Merge *sgt_<mode>_mips16 and
346 *sgtu_<mode>_mips16 into new pattern.
347 (*sgt_<mode>_mips16, *sgtu_<mode>_mips16): Remove patterns.
348 (sge<u>): Merge sge and sgeu into new expander.
349 (sge, sgeu): Remove expanders.
350 (*sge<u>_<mode>): Merge *sge_<mode> and second *sge_<mode> into
351 new pattern.
352 (*sge_<mode>, second *sge_<mode>): Remove patterns.
353 (slt<u>): Merge slt and sltu into new expander.
354 (slt, sltu): Remove expanders.
355 (*slt<u>_<mode>): Merge *slt_<mode> and *sltu_<mode> into new pattern.
356 (*slt_<mode>, *sltu_<mode>): Remove patterns.
357 (*slt<u>_<mode>_mips16): Merge *slt_<mode>_mips16 and
358 *sltu_<mode>_mips16 into new pattern.
359 (*slt_<mode>_mips16, *sltu_<mode>_mips16): Remove patterns.
360 (sle<u>): Merge sle and sleu into new expander.
361 (sle, sleu): Remove expanders.
362 (*sle<u>_<mode>): Merge *sle_<mode> and *sleu_<mode> into new pattern.
363 (*sle_<mode>, *sleu_<mode>): Remove patterns.
364 (*sle<u>_<mode>_mips16): Merge *sle_<mode>_mips16 and
365 *sleu_<mode>_mips16 into new pattern.
366 (*sle_<mode>_mips16, *sleu_<mode>_mips16): Remove patterns.
367
368 2008-04-03 Jan Hubicka <jh@suse.cz>
369
370 PR tree-optimization/35795
371 * alpha/alpha.c (alpha_output_mi_thunk_osf): Free after compilation.
372 * sparc/sparc.c (sparc_output_mi_thunk): Likewise.
373 * ia64/ia64.c (ia64_output_mi_thunk): Likewise.
374 * m68k/m68k.c (m68k_output_mi_thunk): Likewise.
375 * score/score3.c (score3_output_mi_thunk): Likewise.
376 * score/score7.c (score7_output_mi_thunk): Likewise.
377 * mips/mips.c (mips_output_mi_thunk): Likewise.
378
379 2008-04-03 Richard Guenther <rguenther@suse.de>
380
381 * tree-vrp.c (extract_range_from_unary_expr): Handle all
382 conversions. Simplify code.
383
384 2008-04-03 Kaz Kojima <kkojima@gcc.gnu.org>
385
386 * config/sh/sh.c (sh_output_mi_thunk): Free cfun.
387
388 2008-04-03 Tom Tromey <tromey@redhat.com>
389 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
390
391 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
392 * config/bfin/t-bfin-linux (generated_files): Add
393 linux-sysroot-suffix.h.
394 * doc/install.texi (Prerequisites): Require make 3.80.
395 * doc/sourcebuild.texi (Front End Directory): Document new
396 variable.
397 * Makefile.in (generated_files): New variable.
398 (ALL_HOST_OBJS): New variable.
399 ($(ALL_HOST_OBJS)): New target.
400
401 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
402
403 * tree-inline.c (copy_generic_body, copy_decl_no_change): Export.
404 (remap_block): Call id->transform_lang_insert_block instead
405 of langhook.
406 (optimize_inline_calls, unsave_expr_now, tree_function_versioning):
407 Set id.transform_lang_insert_block to NULL.
408 (clone_body): Move to cp/optimize.c
409 * tree-inline.h (struct copy_body_data): Change
410 transform_lang_insert_block to function pointer.
411 (copy_generic_body, copy_decl_no_change): Export.
412 * langhooks.h (struct lang_hooks_for_decls): Kill insert_block.
413 * langhooks-def.h (LANG_HOOKS_INSERT_BLOCK): Kill.
414 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_INSERT_BLOCK.
415
416 * c-tree.h (insert_block): Kill.
417 * c-decl.c (insert_block): Kill.
418
419 2008-04-03 Paolo Bonzini <bonzini@gnu.org>
420
421 * c-objc-common.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
422 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
423 * c-tree.h (c_push_function_context, c_pop_function_context): Remove
424 argument.
425 * c-decl.c (c_push_function_context, c_pop_function_context): Remove
426 argument, call {push,pop}_function_context from here.
427 * c-parser.c: Use c_{push,pop}_function_context.
428
429 * function.c (push_function_context_to): Move meat ...
430 (push_function_context): ... here. Simplify.
431 * function.c (pop_function_context_from): Move meat ...
432 (pop_function_context): ... here. Simplify.
433 * langhooks.h (struct lang_hooks_for_functions): Remove enter_nested,
434 leave_nested).
435 * langhooks-def.h (LANG_HOOKS_FUNCTION_ENTER_NESTED,
436 LANG_HOOKS_FUNCTION_LEAVE_NESTED): Delete.
437 (LANG_HOOKS_FUNCTION_INITIALIZER): Delete them from here.
438 * tree.h (push_function_context_to, pop_function_context_from): Remove.
439
440 2008-04-03 Ben Elliston <bje@au.ibm.com>
441
442 * expmed.c (extract_force_align_mem_bit_field): Remove.
443
444 2008-04-03 Richard Guenther <rguenther@suse.de>
445
446 PR middle-end/35800
447 * expr.h (try_casesi): Adjust prototype.
448 * expr.c (try_casesi): Take fallback label as extra parameter.
449 Use that for gen_casesi if default_label is NULL.
450 * stmt.c (expand_case): Pass fallback label to try_casesi,
451 make sure to fill gaps with a fallback label if default_label
452 is not present.
453
454 2008-04-03 Dominique d'Humieres <dominiq@lps.ens.fr>
455
456 PR target/35801
457 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Free cfun.
458
459 2008-04-03 Ben Elliston <bje@au.ibm.com>
460
461 * expmed.c (extract_split_bit_field): Remove if (0) code.
462 * tree-ssa-structalias.c (do_sd_constraint): Likewise.
463 (do_ds_constraint): Likewise.
464
465 2008-04-02 Joseph Myers <joseph@codesourcery.com>
466
467 * doc/cppopts.texi (-dU): Document.
468 * c-common.h (flag_dump_macros): Update comment.
469 * c-opts.c (handle_OPT_d): Handle -dU.
470 * c-ppoutput.c (macro_queue, define_queue, undef_queue,
471 dump_queued_macros, cb_used_define, cb_used_undef): New.
472 (init_pp_output): Handle -dU.
473 (cb_line_change): Call dump_queued_macros.
474 * toplev.c (decode_d_option): Accept -dU as preprocessor option.
475
476 2008-04-02 Anatoly Sokolov <aesok@post.ru>
477
478 * config/avr/predicates.md (io_address_operand): New predicate.
479 * config/avr/avr-protos.h (avr_io_address_p): Remove declaration.
480 * config/avr/avr.c (avr_io_address_p): Remove function.
481 (out_movqi_r_mr): Use 'io_address_operand' predicate instead of
482 'avr_io_address_p' function.
483 (out_movhi_r_mr): (Ditto.).
484 (out_movqi_mr_r): (Ditto.).
485 (out_movhi_mr_r): (Ditto.).
486 (avr_address_cost): (Ditto.).
487
488 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
489
490 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
491 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
492 in 32bit mode when XMM registers are available to avoid store
493 forwarding stalls.
494 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
495 corresponding post-reload splitters.
496
497 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
498
499 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
500 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
501 __builtin_ia32_roundss.
502 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
503 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
504 __builtin_ia32_roundss.
505 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
506 IX86_BUILTIN_SHUFPD here.
507
508 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
509
510 * config/i386/i386.md (plogic): New.
511 (plogicprefix): Likewise.
512
513 * config/i386/mmx.md (mmx_<code><mode>3): New.
514 (mmx_and<mode>3): Removed.
515 (mmx_ior<mode>3): Likewise.
516 (mmx_xor<mode>3): Likewise.
517
518 * config/i386/sse.md (<code><mode>3): New.
519 (*<code><mode>3): Likewise.
520 (*<code><mode>3): Likewise.
521 (<code><mode>3): Likewise.
522 (*sse_<code><mode>3): Likewise.
523 (*sse2_<code><mode>3): Likewise.
524 (<code>tf3): Likewise.
525 (*<code>tf3): Likewise.
526 (and<mode>3): Likewise.
527 (*and<mode>3): Likewise.
528 (ior<mode>3): Removed.
529 (*ior<mode>3): Likewise.
530 (xor<mode>3): Likewise.
531 (*xor<mode>3): Likewise.
532 (*and<mode>3): Likewise.
533 (*ior<mode>3): Likewise.
534 (*xor<mode>3): Likewise.
535 (and<mode>3): Likewise.
536 (*sse_and<mode>3): Likewise.
537 (*sse2_and<mode>3): Likewise.
538 (andtf3): Likewise.
539 (*andtf3): Likewise.
540 (ior<mode>3): Likewise.
541 (*sse_ior<mode>3): Likewise.
542 (*sse2_ior<mode>3): Likewise.
543 (iortf3): Likewise.
544 (*iortf3): Likewise.
545 (xor<mode>3): Likewise.
546 (*sse_xor<mode>3): Likewise.
547 (*sse2_xor<mode>3): Likewise.
548 (xortf3): Likewise.
549 (*xortf3): Likewise.
550
551 2008-04-02 Richard Guenther <rguenther@suse.de>
552
553 PR tree-optimization/14495
554 PR tree-optimization/34793
555 * tree-vrp.c (struct switch_update): New structure.
556 (to_remove_edges, to_update_switch_stmts): New VECs.
557 (simplify_switch_using_ranges): New function. Remove not taken
558 case labels and edges.
559 (simplify_stmt_using_ranges): Call it.
560 (identify_jump_threads): Mark edges we have queued for removal
561 so we don't thread them.
562 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
563 case label vector.
564 * tree-cfg.c (group_case_labels): Deal with missing default label.
565 (tree_verify_flow_info): Allow missing default label.
566 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
567 (emit_case_nodes): Likewise.
568 (expand_case): Do not rely on the default label to be present.
569 * expr.c (try_casesi): Deal with NULL default_label.
570 (do_tablejump): Likewise.
571
572 2008-04-02 Richard Guenther <rguenther@suse.de>
573
574 PR tree-optimization/14495
575 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
576 SWITCH_EXPR here ...
577 (vrp_visit_switch_stmt): ... but here (new function).
578 (find_case_label_index): New helper function.
579 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
580
581 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
582
583 * fwprop.c: Fix ISO-C99ism.
584
585 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
586
587 PR bootstrap/35752
588 * Makefile.in (objdir): Set it here.
589 * configure.ac: Not here. Find dynamic linker characteristics.
590 * exec-tool.in: Use them.
591 * aclocal.m4: Regenerate.
592 * configure: Regenerate.
593
594 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
595
596 * expr.c (expand_var): Delete it.
597 * expr.h (expand_var): Delete prototype.
598 * function.c (expand_function_start): Use expand_decl instead.
599 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
600 langhook.
601
602 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
603
604 PR rtl-optimization/35542
605 * fwprop.c (forward_propagate_and_simplify): Replace
606 loc_reg_mentioned_in_p with reg_mentioned_p.
607
608 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
609
610 PR rtl-optimization/35281
611 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
612 (propagate_rtx_1): Handle PR_HANDLE_MEM.
613 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
614 (varying_mem_p): Move above propagate_rtx.
615 (all_uses_available_at): Do not check MEMs.
616
617 2008-04-02 Rafael Espindola <espindola@google.com>
618
619 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
620 (register_edge_assert_for_2): Split the cond argument.
621 (register_edge_assert_for_1): Adjust for the change in
622 register_edge_assert_for_2.
623 (register_edge_assert_for): Split the cond argument.
624 (find_switch_asserts): Adjust for the change in
625 register_edge_assert_for.
626
627 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
628
629 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
630 * gcc/config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
631 offsets for 64-bit mingw.
632 * gcc/config/i386/i386.c (ix86_pass_by_reference): Correct calling
633 abi for x86_64-pc-mingw.
634
635 2008-04-02 Richard Guenther <rguenther@suse.de>
636
637 * tree-vrp.c (extract_range_from_assert): Make sure to not
638 produce range min/max with TREE_OVERFOW set.
639 If merging a anti-range and a range keep the anti-range if
640 the range covers all values of the type.
641 (register_edge_assert_for_2): Only allow sign-changing
642 conversions in detecting canonical range checks. Also
643 register an assert for the unsigned name if useful.
644
645 PR tree-optimization/35787
646 * tree-vrp.c (vrp_val_max): New function.
647 (vrp_val_min): Likewise.
648 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
649 (vrp_val_is_min): Likewise.
650 (supports_overflow_infinity): Use vrp_val_{min,max}.
651 (negative_overflow_infinity): Likewise.
652 (positive_overflow_infinity): Likewise.
653 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
654 (is_positive_overflow_infinity): Likewise.
655 (is_overflow_infinity): Likewise.
656 (avoid_overflow_infinity): Use vrp_val_{min,max} and
657 vrp_val_is_{min,max}.
658 (set_and_canonicalize_value_range): Canonicalize anti-ranges
659 to ranges if possible. Avoid empty ranges.
660
661 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
662
663 PR middle-end/35705
664 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
665 the expression is a function address.
666
667 2008-04-01 George Helffrich <george@gcc.gnu.org>
668
669 PR fortran/PR35154, fortran/PR23057
670 * fortran/trans-common.c (create_common): Add decl to function
671 chain to preserve identifier scope in debug output.
672
673 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
674 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
675 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
676 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
677 in common.
678 (dbxout_syms): Check for COMMON-based symbol and wrap in
679 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
680 in bracket for efficiency.
681
682 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
683 using DW_TAG_common_block + member offset.
684 (add_pubname_string): New function.
685 (dw_expand_expr): New function to find block name and offset for
686 COMMON var.
687 (common_check): New function to check whether symbol in Fortran COMMON.
688 (gen_variable_die): If COMMON, use DW_TAG_common_block.
689
690 * testsuite/gcc.dg/debug/pr35154.c: New test to check that non-Fortran
691 use of common is unchanged.
692
693 * testsuite/lib/gfortran-dg.exp: New harness to compile Fortran progs
694 with all combinations of debug options available on target.
695 * testsuite/gfortran.dg/debug/debug.exp: Ditto.
696 * testsuite/gfortran.dg/debug/trivial.f: Ditto.
697 * testsuite/gfortran.dg/debug/pr35154-stabs.f: New test case for
698 .stabs functionality.
699 * testsuite/gfortran.dg/debug/pr35154-dwarf2.f: New test case for
700 DWARF functionality.
701
702 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
703
704 PR c/35436
705 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
706
707 2008-04-02 Ben Elliston <bje@au.ibm.com>
708
709 * config/v850/v850.md (casesi): Remove if (0) code.
710 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
711 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
712
713 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
714
715 * config/i386/i386.md (rex64suffix): New mode attribute.
716 (floathi<mode>2): Disable expander for SSE math.
717 (*floathi<mode>2_1): New insn insn_and_split pattern.
718 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
719 corresponding post-reload splitters.
720 (*floathi<mode>2_i387): New macroized insn pattern.
721 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
722 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
723 insn_and_split pattern.
724 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
725 New macroized instruction patterns and corresponding post-reload
726 splitters.
727 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
728 and corresponding post-reload splitters.
729 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
730 New macroized instruction patterns.
731 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
732 macroized instruction patterns and corresponding post-reload splitters.
733 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
734 corresponding post-reload splitters.
735 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
736 New macroized instruction patterns.
737 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
738 corresponding post-reload splitters.
739 (*floatsi<mode>2_i387): New macroized instruction patterns.
740
741 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
742
743 * config/i386/i386.md (smaxmin): New.
744 (umaxmin): Likewise.
745 (maxminiprefix): Likewise.
746 (maxminfprefix): Likewise.
747 (<code><mode>3): Likewise.
748 (smin<mode>3): Removed.
749 (smax<mode>3): Likewise.
750
751 * config/i386/mmx.md (mmx_<code>v2sf3): New.
752 (mmx_<code>v4hi3): Likewise.
753 (mmx_<code>v8qi3): Likewise.
754 (mmx_smaxv2sf3): Removed.
755 (mmx_sminv2sf3): Likewise.
756 (mmx_umaxv8qi3): Likewise.
757 (mmx_smaxv4hi3): Likewise.
758 (mmx_uminv8qi3): Likewise.
759 (mmx_sminv4hi3): Likewise.
760
761 * config/i386/sse.md (<addsub><mode>3): New.
762 (*<addsub><mode>3): Likewise.
763 (<sse>_vm<addsub><mode>3): Likewise.
764 (<maxmin><mode>3): Likewise.
765 (*<maxmin><mode>3_finite): Likewise.
766 (*<maxmin><mode>3): Likewise.
767 (<sse>_vm<maxmin><mode>3): Likewise.
768 (sse3_h<addsub>v4sf3): Likewise.
769 (sse3_h<addsub>v2df3): Likewise.
770 (<maxmin>v16qi3): Likewise.
771 (*<maxmin>v16qi3): Likewise.
772 (<maxmin>v8hi3): Likewise.
773 (*<maxmin>v8hi3): Likewise.
774 (*sse4_1_<maxmin><mode>3): Likewise.
775 (*sse4_1_<maxmin><mode>3): Likewise.
776 (add<mode>3): Removed.
777 (*add<mode>3): Likewise.
778 (<sse>_vmadd<mode>3): Likewise.
779 (sub<mode>3): Likewise.
780 (*sub<mode>3): Likewise.
781 (<sse>_vmsub<mode>3): Likewise.
782 (smin<mode>3): Likewise.
783 (*smin<mode>3_finite): Likewise.
784 (*smin<mode>3): Likewise.
785 (<sse>_vmsmin<mode>3): Likewise.
786 (smax<mode>3): Likewise.
787 (*smax<mode>3_finite): Likewise.
788 (*smax<mode>3): Likewise.
789 (<sse>_vmsmax<mode>3): Likewise.
790 (sse3_haddv4sf3): Likewise.
791 (sse3_haddv2df3): Likewise.
792 (sse3_hsubv4sf3): Likewise.
793 (sse3_hsubv2df3): Likewise.
794 (umaxv16qi3): Likewise.
795 (*umaxv16qi3): Likewise.
796 (smaxv8hi3): Likewise.
797 (*smaxv8hi3): Likewise.
798 (*sse4_1_smax<mode>3): Likewise.
799 (*sse4_1_umax<mode>3): Likewise.
800 (uminv16qi3): Likewise.
801 (*uminv16qi3): Likewise.
802 (sminv8hi3): Likewise.
803 (*sminv8hi3): Likewise.
804 (*sse4_1_smin<mode>3): Likewise.
805 (*sse4_1_umin<mode>3): Likewise.
806
807 2008-04-01 Rafael Espindola <espindola@google.com>
808
809 * tree-cfg.c (verify_expr): remove in_phi.
810 (verify_stmt): Don't call walk_tree with verify_expr. Use
811 is_gimple_min_invariant instead of is_gimple_val.
812
813 2008-04-01 Joseph Myers <joseph@codesourcery.com>
814
815 * doc/include/gpl_v3.texi: Update for manpage generation.
816 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
817 gpl.texi.
818 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
819 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
820 gpl_v3.texi instead of gpl.texi.
821 (gpl.pod): New.
822
823 2008-04-01 Jakub Jelinek <jakub@redhat.com>
824
825 PR pch/13675
826 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
827
828 2008-04-01 Rafael Espindola <espindola@google.com>
829
830 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
831 (extract_code_and_val_from_cond): Use
832 extract_code_and_val_from_cond_with_ops.
833
834 2008-04-01 Jan Hubicka <jh@suse.cz>
835
836 * function.c (free_after_compilation): Free epilogue_delay_list.
837 (prepare_function_start): Assert that previous compilation was freed.
838
839 2008-04-01 Jan Hubicka <jh@suse.cz>
840 Jim Wilson <wilson@tuliptree.org>
841 Andreas Tobler <andreast@gcc.gnu.org>
842
843 PR middle-end/35781
844 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
845 rtl.emit instead cfun->emit.
846 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
847 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
848
849 2008-04-01 Ben Elliston <bje@au.ibm.com>
850
851 * doc/c-tree.texi (Function Basics): Fix grammatical error.
852
853 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
854
855 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
856 New options
857 (fprofile-use): Add var flag_profile_use
858 * coverage.c (coverage_begin_output): Do not open a gcno file for
859 output only if -ftest-coverage is set.
860 Do not add getpwd() to gcda file path.
861 (build_gcov_info): Check the new flag
862 flag_profile_datafile_relative_path.
863 (coverage_init): Use profile_data_prefix.
864 Read profile counter only if flag_profile_use is set.
865 * opts.c (common_handle_option): New option fprofile-use=,
866 fprofile-dir=, fprofile-generate=.
867 * toplev.c (profile_data_prefix): New variable definition.
868 * toplev.h (profile_data_prefix): New declaration.
869 * doc/invoke.tex (Option Summary, Optimization Options):
870 Add new options.
871
872 2008-03-31 James E. Wilson <wilson@tuliptree.org>
873
874 * varasm.c (output_constant_pool_1): In LABEL_REF check,
875 use tmp consistently.
876
877 PR target/35695
878 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
879 * config/ia64/ia64.c (rtx_needs_barrier): Handle
880 UNSPEC_FR_RECIP_APPROX_RES.
881 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
882
883 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
884
885 PR c/35750
886 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
887
888 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
889
890 PR middle-end/30186
891 * fold-const.c (fold_indirect_ref_1): Support accessing non first
892 element of the vector via a pointer.
893
894 2008-03-31 Ian Lance Taylor <iant@google.com>
895
896 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
897
898 2008-03-31 Jan Hubicka <jh@suse.cz>
899
900 * builtins.c (expand_builtin_setjmp_receiver): Update call of
901 get_arg_pointer_save_area.
902 * expr.c (init_expr): Just clear out rtl.expr.
903 * function.c (free_after_compilation): Clear out whole RTL structure.
904 (get_func_frame_size): Merge into ...
905 (get_frame_size): ... this one.
906 (assign_stack_local_1): Merge into ...
907 (assign_stack_local): ... this one.
908 (expand_function_end): Update call of get_arg_pointer_save_area.
909 (get_art_pointer_save_area): Remove cfun argument.
910 * function.h (emit_status): regno_pointer_align does not need length
911 attribute. Move x_regno_reg_rtx to ...
912 (regno_reg_rtx): ... new global array.
913 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
914 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
915 apply_args_value, forced_labels, stack_pointer_delta):
916 Update accestors.
917 (struct varasm_status): Move here from varasm.c
918 (struct rtl_data): New. Move here some fields from struct function.
919 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
920 frame_offset, stack_check_probe_note, arg_pointer_save_area,
921 used_temp_slots avail_temp_slots, temp_slot_level,
922 nonlocal_goto_handler_labels): Update accesstors.
923 (rtl): New global variable.
924 (struct function): Move some fileds to rtl_data.
925 (get_arg_pointer_save_area): Update prototype.
926 * emit-rtl.c (rtl): Declare.
927 (regno_reg_rtx): Declare.
928 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
929 Update.
930 (gen_reg_rtx): Update.
931 (init_virtual_regs): Do not tate emit_status argument.
932 (init_emit): Do not allocate emit.
933 * varasm.c (varasm_statuc): Move to function.h.
934 (n_deferred_constatns): Update accestor.
935 (init_varasm_status): Do not allocate varasm_status.
936 (force_const_mem, get_pool_size, output_constant_pool): Update.
937 * stmt.c (force_label_rtx): Do not use x_ prefixes.
938 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
939
940 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
941
942 PR rtl-optimization/35729
943 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
944 references.
945
946 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
947
948 PR target/32000
949 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
950 load/store if memory is unaligned.
951 (*movti_rex64): Likewise.
952
953 * config/i386/predicates.md (misaligned_operand): New.
954
955 2008-03-31 Andrew Pinski <pinskia@gmail.com>
956
957 PR tree-opt/35431
958 * tree-ssa-phiopt.c (conditional_replacement): Return early for
959 complex types.
960
961 2008-03-31 Jan Beulich <jbeulich@novell.com>
962
963 * config/ia64/constraints.md: Add 'j' constraint.
964 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
965 (movdi_internal): Likewise.
966
967 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
968
969 PR c/35748
970 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
971
972 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
973
974 PR target/35757
975 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
976 proper error message for the third argument on blendpd and
977 blendps.
978
979 * config/i386/sse.md (blendbits): New.
980 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
981
982 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
983
984 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
985
986 2008-03-30 Richard Guenther <rguenther@suse.de>
987
988 PR middle-end/31023
989 * fold-const.c (fold_sign_changed_comparison): Do leave
990 conversions to base-types alone.
991
992 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
993
994 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
995 the link register if one altivec register is be saved.
996
997 2008-03-30 Ben Elliston <bje@au.ibm.com>
998
999 * final.c (final_scan_insn): Remove if (0) code.
1000
1001 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
1002
1003 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
1004
1005 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
1006
1007 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
1008 of V4SFmode to ix86_binary_operator_ok.
1009
1010 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
1011
1012 * config/i386/i386.c (override_options): Initialize
1013 ix86_veclib_handler to ix86_veclibabi_svml when
1014 -mveclibabi=svml is used.
1015 (ix86_veclibabi_svml): New function for SVML ABI style
1016 vectorization support.
1017 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
1018
1019 2008-03-28 Rafael Espindola <espindola@google.com>
1020
1021 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
1022 (tree_binary_nonnegative_warnv_p): Make it public.
1023 (tree_single_nonnegative_warnv_p): Make it public.
1024 (tree_invalid_nonnegative_warnv_p): Make it public.
1025 (tree_unary_nonzero_warnv_p): Make it public.
1026 (tree_binary_nonzero_warnv_p): Make it public
1027 (tree_single_nonzero_warnv_p): Make it public.
1028 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
1029 (extract_range_from_binary_expr): Split the expr argument.
1030 (extract_range_from_unary_expr): Split the expr argument.
1031 (extract_range_from_comparison): Split the expr argument.
1032 (extract_range_from_expr): Use the new aux functions.
1033 (vrp_evaluate_conditional_warnv): Use
1034 vrp_evaluate_conditional_warnv_with_ops.
1035 * tree.h (tree_unary_nonzero_warnv_p): Declare.
1036 (tree_binary_nonzero_warnv_p): Declare.
1037 (tree_single_nonzero_warnv_p): Declare.
1038 (tree_expr_nonzero_warnv_p): Declare.
1039 (tree_unary_nonnegative_warnv_p): Declare.
1040 (tree_binary_nonnegative_warnv_p): Declare.
1041 (tree_single_nonnegative_warnv_p): Declare.
1042 (tree_invalid_nonnegative_warnv_p): Declare.
1043
1044 2008-03-28 Richard Guenther <rguenther@suse.de>
1045
1046 PR tree-optimization/30317
1047 PR tree-optimization/30911
1048 PR tree-optimization/34793
1049 * tree-vrp.c (set_and_canonicalize_value_range): New function.
1050 (struct assert_locus_d): New member EXPR.
1051 (register_new_assert_for): Add EXPR parameter to support
1052 ASSERT_EXPR <name, expr OP limit>.
1053 (register_edge_assert_for_1): Adjust callers.
1054 (find_assert_locations): Likewise.
1055 (process_assert_insertions_for): Build condition from expression.
1056 (extract_range_from_assert): Handle ASSERT_EXPRs
1057 of the form ASSERT_EXPR <name, expr OP limit>.
1058 (register_edge_assert_for_2): New helper registering
1059 asserts for comparisons. Recognize range tests of the form
1060 (unsigned)i - CST1 OP CST2.
1061 (register_edge_assert_for_1): Use it.
1062 (register_edge_assert_for): Likewise.
1063 (needs_overflow_infinity): Integer sub-types
1064 do not need overflow infinities.
1065 (vrp_val_is_max): The extreme values of integer sub-types
1066 are those of the base type.
1067 (vrp_val_is_min): Likewise.
1068 * tree.def (ASSERT_EXPR): Document extra allowed conditional
1069 expressions.
1070
1071 2008-03-28 Nick Clifton <nickc@redhat.com>
1072
1073 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
1074 Return GENERAL_REGS for stack adjustment reloads.
1075
1076 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
1077
1078 PR target/31334
1079 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
1080 const_vector when all the vectors are constant.
1081
1082 2008-03-27 Bob Wilson <bob.wilson@acm.org>
1083
1084 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
1085 comparisons.
1086 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
1087 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
1088 (scc_sf): New.
1089 (s<code>_sf): Use new scc_sf attribute for opcode names.
1090
1091 2008-03-27 Tom Tromey <tromey@redhat.com>
1092
1093 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
1094 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
1095 config/spu/t-spu-elf, config/i386/t-interix,
1096 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
1097 config/i386/x-darwin, config/i386/x-mingw32,
1098 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
1099 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
1100 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
1101 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
1102 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
1103 config/rs6000/x-darwin, config/rs6000/t-rs6000,
1104 config/score/t-score-elf, config/arm/t-strongarm-pe,
1105 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
1106 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
1107 Revert automatic dependency patch.
1108
1109 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
1110
1111 PR target/35657
1112 * config/i386/i386.c (ix86_function_arg_boundary): Align
1113 decimal floating point to its natural boundary.
1114
1115 2008-03-27 Richard Guenther <rguenther@suse.de>
1116
1117 PR middle-end/35716
1118 * fold-const.c (fold_comparison): Restrict distinct decl
1119 comparison folding to VAR_DECLs and PARM_DECLs. Do not
1120 solely rely on operand_equal_p.
1121
1122 2008-03-27 Richard Guenther <rguenther@suse.de>
1123
1124 PR c/32511
1125 * c-common.c (handle_weak_attribute): Reject combination of
1126 weak and inline.
1127
1128 2008-03-27 Richard Guenther <rguenther@suse.de>
1129
1130 PR tree-optimization/32810
1131 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
1132 conversions from DECL_INITIAL.
1133 (fold_const_aggregate_ref): Likewise from constructor elements.
1134
1135 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
1136
1137 * tree-affine.h (aff_combination_expand): Declare.
1138 (get_inner_reference_aff): Likewise.
1139 * tree-affine.c (aff_combination_expand): Split out from
1140 tree_to_aff_combination_expand.
1141 (get_inner_reference_aff): New function.
1142 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
1143 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
1144 (struct lim_aux_data): sm_done field removed.
1145 (mem_ref_loc_p, mem_ref_locs_p): New types.
1146 (struct mem_ref): Added id, stored, accesses_in_loop,
1147 indep_loop, dep_loop, indep_ref, dep_ref fields.
1148 Removed is_stored, locs and next fields.
1149 (memory_accesses): New variable.
1150 (movement_possibility): Do not allow moving statements
1151 that store to memory.
1152 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
1153 New functions.
1154 (determine_max_movement): For statements with memory references,
1155 find the outermost loop in that the reference is independent.
1156 (move_computations_stmt): Mark the virtual operands for renaming.
1157 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
1158 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
1159 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
1160 add_vop_ref_mapping, create_vop_ref_mapping_loop,
1161 create_vop_ref_mapping, analyze_memory_references,
1162 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
1163 get_all_locs_in_loop, ref_always_accessed_p,
1164 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
1165 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
1166 store_motion_loop, store_motion): New functions.
1167 (struct vop_to_refs_elt): New type.
1168 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
1169 memref_hash, memref_eq, hoist_memory_references): Rewritten.
1170 (schedule_sm): Replaced by...
1171 (execute_sm): ... this.
1172 (determine_lsm_ref, hoist_memory_references,
1173 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
1174 find_more_ref_vops, free_mem_ref, free_mem_refs,
1175 determine_lsm_loop, determine_lsm): Removed.
1176 (tree_ssa_lim_finalize): Free data structures used by store motion.
1177 (tree_ssa_lim): Call analyze_memory_references. Use
1178 store_motion instead of determine_lsm.
1179
1180 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
1181
1182 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
1183 rename tmake_file to m68hc11/t-m68hc11.
1184 (mcore): Set inhibit_libc to true.
1185 * config.host (alpha*-dec-*vms*): Set extra_programs.
1186 (interix3*): Don't use host_xmake_file.
1187 * configure.ac: Let config.gcc override inhibit_libc.
1188 * configure: Regenerate.
1189
1190 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
1191 * config/t-openbsd-thread: Remove commented out lines.
1192
1193 * config/x-interix: Remove.
1194
1195 * config/m68hc11/t-m68hc11-gas: Rename to...
1196 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
1197
1198 * config/mcore/t-mcore: Remove T_CFLAGS.
1199 * config/mcore/t-mcore-pe: Likewise.
1200
1201 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
1202
1203 * configure.ac: Replace custom __GNU_SOURCE test with
1204 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
1205 * aclocal.m4: Regenerate.
1206 * configure: Regenerate.
1207 * config.in: Regenerate.
1208
1209 2008-03-27 Richard Guenther <rguenther@suse.de>
1210
1211 * fold-const.c (target.h): Include.
1212 (fold_comparison): Fold comparison of addresses of decls
1213 that bind locally or of constants. Consolidate address folding code.
1214 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
1215 results from fold_binary_to_constant.
1216 (compare_values_warnv): Likewise.
1217
1218 2008-03-27 Andrew Pinski <pinskia@gmail.com>
1219
1220 PR middle-end/35429
1221 * fold-const.c (fold_truthop): Check for integeral types when folding
1222 a == 0 && b == 0 and a != 0 || b != 0 .
1223
1224 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
1225
1226 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
1227
1228 2008-03-26 Andreas Schwab <schwab@suse.de>
1229
1230 * doc/invoke.texi: Fix use of @item vs. @itemx.
1231
1232 2008-03-26 Tom Tromey <tromey@redhat.com>
1233
1234 * Makefile.in (build/gensupport.o, build/print-rtl.o,
1235 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
1236 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
1237 build/gencodes.o, build/genconditions.o, build/genconfig.o,
1238 build/genconstants.o, build/genemit.o, build/genextract.o,
1239 build/genflags.o, build/genmddeps.o, build/genopinit.o,
1240 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
1241 options.h.
1242
1243 2008-03-26 Richard Guenther <rguenther@suse.de>
1244
1245 Revert
1246 2008-03-26 Richard Guenther <rguenther@suse.de>
1247
1248 * fold-const.c (target.h): Include.
1249 (fold_comparison): Fold comparison of addresses of two decls
1250 that bind locally. Consolidate address folding code.
1251
1252 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1253
1254 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
1255 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
1256 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
1257 dconstsqrt2, dconstthird, dconste and/or dconst10.
1258 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
1259 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
1260 dconstsqrt2, dconste): Delete.
1261 (init_emit_once): Likewise. Simplify initializing dconstm1.
1262 Constify variable.
1263 * real.c (get_real_const): New.
1264 * real.h (dconst3, dconst10, dconstm2, dconstthird,
1265 dconstsqrt2, dconste): Delete.
1266 (real_value_const, get_real_const): New.
1267
1268 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
1269
1270 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
1271
1272 * config/i386/i386.c (ix86_function_arg_boundary): Check
1273 BIGGEST_ALIGNMENT instead of 128.
1274 (setup_incoming_varargs_64): Likewise.
1275
1276 2008-03-26 Tom Tromey <tromey@redhat.com>
1277
1278 * Makefile.in (DEPFILES): Add missing '/'.
1279
1280 2008-03-26 Richard Guenther <rguenther@suse.de>
1281
1282 * fold-const.c (target.h): Include.
1283 (fold_comparison): Fold comparison of addresses of two decls
1284 that bind locally. Consolidate address folding code.
1285
1286 2008-03-26 Nick Clifton <nickc@redhat.com>
1287
1288 PR target/31232
1289 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
1290 not allow INT+INT as a legitimate addressing mode.
1291
1292 2008-03-26 Richard Guenther <rguenther@suse.de>
1293
1294 * tree-flow.h (widen_bitfield): Remove declaration.
1295 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
1296 (widen_bitfield): Remove function.
1297 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
1298 code.
1299
1300 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
1301
1302 PR target/31558
1303 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
1304 error_mark_node's.
1305
1306 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
1307
1308 PR rtl-optimization/35232
1309 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
1310 (forget_old_reloads_1, forget_marked_reloads): Don't clear
1311 reg_reloaded_call_part_clobbered here.
1312 (reload_regs_reach_end_p): New function.
1313 (reload_reg_rtx_for_input): New variable.
1314 (reload_reg_rtx_for_output): Likewise.
1315 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
1316 when reassigning a pseudo register. Load reloadreg from
1317 reload_reg_rtx_for_input, moving the mode and register
1318 calculation to...
1319 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
1320 instead of the original when deciding whether an input reload
1321 would be a no-op or whether an output reload can be deleted.
1322 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
1323 when setting up new_spill_reg_store. Load it from
1324 reload_reg_rtx_for_output, moving the mode and register
1325 calculation to...
1326 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
1327 instead of the original when deciding whether an output reload
1328 would be a no-op. Do the same when modifying insn notes.
1329 Use rtx_equal_p instead of == to compare the registers.
1330 (inherit_piecemeal_p): Take a mode and two register numbers
1331 as argument.
1332 (emit_reload_insns): Clear new_spill_reg_store for every hard
1333 register in the reload register. Remove spill registers
1334 from reg_reloaded_valid before considering whether to record
1335 inheritance information for them. Use reload_reg_rtx_for_output
1336 instead of reg_rtx when recording output reloads. Use
1337 reload_reg_rtx_for_input instead of reg_rtx when recording
1338 input reloads. Set or clear reg_reloaded_call_part_clobbered
1339 at the same time as setting reg_reloaded_valid.
1340 (delete_output_reload): Add a new_reload_reg parameter and use it
1341 instead of rld[j].reg_rtx.
1342 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
1343 calls accordingly.
1344
1345 2008-03-25 Tom Tromey <tromey@redhat.com>
1346
1347 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
1348 (build/genattr.o): Likewise.
1349 (build/genattrtab.o): Likewise.
1350 (build/gencodes.o): Likewise.
1351 (build/genconfig.o): Likewise.
1352 (build/genconstants.o): Likewise.
1353 (build/genemit.o): Likewise.
1354 (build/genextract.o): Likewise.
1355 (build/genflags.o): Likewise.
1356
1357 2008-03-25 Bob Wilson <bob.wilson@acm.org>
1358
1359 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
1360 instead of size_int for integer types.
1361 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
1362 to match type of MINUS_EXPR.
1363
1364 2008-03-25 Tom Tromey <tromey@redhat.com>
1365
1366 * configure: Rebuilt.
1367 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
1368 Makefile.
1369
1370 2008-03-25 Tom Tromey <tromey@redhat.com>
1371
1372 * config/x-solaris (host-solaris.o): Update.
1373 * config/x-linux (host-linux.o): Update.
1374 * config/x-hpux (host-hpux.o): Update.
1375 * config/x-darwin (host-darwin.o): Update.
1376 * config/v850/t-v850e (v850-c.o): Update.
1377 * config/v850/t-v850 (v850-c.o): Update.
1378 * config/t-vxworks (vxworks.o): Update.
1379 * config/t-sol2 (sol2-c.o, sol2.o): Update.
1380 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
1381 * config/spu/t-spu-elf (spu-c.o): Update.
1382 (spu.o): Remove.
1383 * config/sh/t-symbian (sh-c.o): Update.
1384 (symbian.o): Update.
1385 * config/sh/t-sh (sh-c.o): Update.
1386 * config/score/t-score-elf (score7.o, score3.o): Update.
1387 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
1388 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
1389 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
1390 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
1391 (rs6000.o): Remove.
1392 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
1393 * config/m32c/t-m32c (m32c-pragma.o): Update.
1394 * config/ia64/t-ia64 (ia64-c.o): Update.
1395 * config/i386/x-mingw32 (host-mingw32.o): Update.
1396 * config/i386/x-i386 (driver-i386.o): Update.
1397 * config/i386/x-darwin (host-i386-darwin.o): Update.
1398 * config/i386/x-cygwin (host-cygwin.o): Update.
1399 * config/i386/t-nwld (nwld.o): Update.
1400 * config/i386/t-netware (netware.o): Update.
1401 * config/i386/t-interix (winnt.o): Update.
1402 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
1403 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
1404 msformat-c.o): Update.
1405 * config/bfin/t-bfin-linux (generated_files): Add
1406 linux-sysroot-suffix.h.
1407 * config/arm/t-wince-pe (pe.o): Update.
1408 * config/arm/t-strongarm-pe (pe.o): Update.
1409 * config/arm/t-pe (pe.o): Update.
1410 * config/arm/t-arm (arm-c.o): Update.
1411 * doc/install.texi (Prerequisites): Require make 3.80.
1412 * Makefile.in: Remove .o targets.
1413 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
1414 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
1415 (simple_generated_h, simple_generated_c): Move earlier.
1416 (generated_files): New variable.
1417 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
1418 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
1419 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
1420 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
1421 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
1422 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
1423 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
1424 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
1425 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
1426 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
1427 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
1428 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
1429 (.c.o): Remove.
1430 (COMPILE.base, COMPILE): New variables.
1431 (%.o): New pattern rule.
1432 (ALL_HOST_OBJS): New variable.
1433 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
1434 (dummy-checksum.o, cc1-checksum.o): Remove.
1435 (DRIVER_SHLIB): New variable.
1436 (DRIVER_DEFINES): Use it.
1437 (gencondmd.c): Move out of build/.
1438 (s-conditions): Update.
1439 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
1440 (ALL_BUILD_OBJS): Likewise.
1441 (build/%.o): Use BUILDCOMPILE.
1442 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
1443 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
1444 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
1445 build/gencheck.o, build/gencodes.o, build/genconditions.o,
1446 build/genconfig.o, build/genconstants.o, build/genemit.o,
1447 build/genextract.o, build/genflags.o, build/genmddeps.o,
1448 build/genopinit.o, build/genoutput.o, build/genpeep.o,
1449 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
1450 build/gen-protos.o, build/scan.o, build/fix-header.o,
1451 build/scan-decls.o): Simplify.
1452 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
1453 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
1454 prefix.o, toplev.o): Reduce to variable setting.
1455 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
1456 ($(out_object_file), gcc-options.o): New targets.
1457 ($(ALL_HOST_OBJS)): New target. Include dependency files.
1458 * configure: Rebuilt.
1459 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
1460 * doc/sourcebuild.texi (Front End Directory): Document new variable.
1461
1462 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
1463
1464 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
1465 complain when we hit an error, return ERROR_MARK_NODE.
1466
1467 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
1468
1469 * config/sh/constraints.md (Pso, Psz): New constraints.
1470 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
1471 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
1472
1473 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
1474
1475 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
1476 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
1477
1478 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
1479
1480 * config/sh/sh.md (prefetch): Add condition for SH2A target.
1481 (prefetch_sh2a): New.
1482
1483 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
1484 Naveen.H.S <naveen.hs@kpitcummins.com>
1485
1486 * config/sh/constraints.md (I28): New constraint.
1487 * config/sh/sh.c (broken_move): Add support for movi20s.
1488 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
1489
1490 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
1491 Jayant Sonar <Jayant.sonar@kpitcummins.com>
1492 Naveen.H.S <naveen.hs@kpitcummins.com>
1493
1494 * config/sh/sh.c (SH_ATTRIBUTES): Define.
1495 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1496 (print_operand): Handle resbank in %@ operand code.
1497 (sh_encode_section_info): New.
1498 (push_regs): Add conditions for resbank.
1499 (sh_expand_epilogue): Likewise.
1500 (sh_insert_attributes): Likewise.
1501 (sh_attribute_table): Likewise.
1502 (sh_handle_resbank_handler_attribute): New.
1503 (sh2a_handle_function_vector_handler_attribute): New.
1504 (sh2a_is_function_vector_call): New.
1505 (sh2a_get_function_vector_number): New.
1506 (sh2a_function_vector_p): New.
1507 (sh_cfun_resbank_handler_p): New.
1508 * config/sh/sh.md (calli): Emit jsr/n if possible.
1509 (calli_tbr_rel): New.
1510 (calli_pcrel): Emit jsr/n if possible.
1511 (return_i): Emit rts/n if possible.
1512 (call_valuei_tbr_rel): New.
1513 (call_valuei_pcrel): Add condition for SH2A target.
1514 (call_value): Likewise.
1515 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
1516 (sh2a_get_function_vector_number): Likewise.
1517 (sh2a_is_function_vector_call): Likewise.
1518 * doc/extend.texi: Document TBR relative addressing of SH2A.
1519 (resbank): Add description for SH2A.
1520
1521 2008-03-24 Richard Guenther <rguenther@suse.de>
1522
1523 PR c/22371
1524 * gimplify.c (gimplify_modify_expr): For frontend type-correct
1525 pointer assignments change conversions according to middle-end rules.
1526 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
1527 * configure.ac: Include type checking in yes.
1528 * configure: Regenerate.
1529
1530 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1531
1532 * diagnostic.c (diagnostic_count_diagnostic): Delete.
1533 (diagnostic_report_diagnostic): Update. Handle ICEs here.
1534
1535 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
1536
1537 * gthr-vxworks.h (UNUSED): Define.
1538
1539 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
1540
1541 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
1542
1543 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
1544
1545 * doc/extend.texi (Function Attributes): Add missing comma in the
1546 example of the "alloc_size" attribute.
1547
1548 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
1549
1550 Revert:
1551 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
1552
1553 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1554 32bit host.
1555
1556 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
1557
1558 PR target/35496
1559 * stor-layout.c (update_alignment_for_field): Set minimum alignment
1560 of the underlying type of a MS bitfield layout to the natural
1561 alignment of the type.
1562
1563 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
1564
1565 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1566 to their natural alignment to avoid store forwarding stalls.
1567
1568 2008-03-22 Richard Guenther <rguenther@suse.de>
1569
1570 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
1571 For PHI nodes verify the address is invariant.
1572 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
1573 (get_symbol_constant_value): Use is_gimple_min_invariant.
1574 (maybe_fold_stmt_indirect): Likewise.
1575
1576 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
1577
1578 PR rtl-optimization/33927
1579 * Makefile.in (dse.o): Depend on $(TM_P_H).
1580 * expr.h (extract_low_bits): Declare.
1581 * expmed.c (extract_low_bits): New function.
1582 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
1583 * dse.c: Include tm_p.h.
1584 (find_shift_sequence): Remove the read_reg argument and return the
1585 read value. Emit the instructions instead of returning them.
1586 Iterate on new_mode rather than calculating it each time.
1587 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
1588 source to NEW_MODE and extract_low_bits to convert the shifted
1589 value to READ_MODE.
1590 (replace_read): Allow the load and store to have different mode
1591 classes. Use extract_low_bits when SHIFT == 0. Create the shift
1592 or extraction instructions before trying the replacement. Update
1593 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
1594
1595 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
1596
1597 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1598 to their natural alignment to avoid store forwarding stalls.
1599
1600 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
1601
1602 PR target/27946
1603 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
1604 encouraging but not allowing gprs for input;
1605 change the input constraint to !f#r.
1606 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
1607 gprs for output;
1608 change the output constraint to !f#r.
1609
1610 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
1611
1612 PR target/13958
1613 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
1614 corresponding post-reload splitters.
1615 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
1616 when x87 FP math is selected.
1617 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
1618 New function prototype.
1619 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
1620 unreachable function to ease macroization of insn patterns.
1621
1622 2008-03-21 Martin Jambor <mjambor@suse.cz>
1623
1624 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
1625 reference dumps if ddr is NULL or dependence is unknown.
1626
1627 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
1628
1629 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
1630 unsigned extension into account.
1631 (ATOMIC_COMPARE_AND_SWAP): Likewise.
1632 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
1633 Do computations on a scratch register.
1634
1635 2008-03-21 Richard Guenther <rguenther@suse.de>
1636
1637 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1638 Use is_gimple_min_invariant instead of TREE_INVARIANT.
1639 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1640 * tree-ssa-dom.c (record_equality): Likewise.
1641 * tree-inline.c (copy_body_r): Likewise.
1642 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
1643 TREE_INVARIANT.
1644
1645 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
1646
1647 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
1648 as 'delete_unused' argument.
1649
1650 2008-03-20 Richard Guenther <rguenther@suse.de>
1651
1652 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1653 special casing of constant qualifiers.
1654 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
1655 care about them in general.
1656 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
1657 regardless of their type.
1658 (fold_stmt_r): Forcefully fold *& if we end up with that.
1659
1660 2008-03-20 Paul Brook <paul@codesourcery.com>
1661
1662 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
1663 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
1664 linker flags.
1665 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
1666 definition.
1667 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
1668 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
1669
1670 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
1671
1672 * common.opt (Wmudflap): New option.
1673 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
1674 (mx_register_decls): Likewise.
1675 (mudflap_finish_file): Likewise.
1676 * doc/invoke.texi: Document -Wno-mudflap.
1677
1678 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
1679
1680 * c-format.c (replace_format_name_to_system_name): New.
1681 (cmp_attribs): New.
1682 (convert_format_name_to_system_name): New.
1683 (decode_format_attr): Add use of convert_format_name_to_system_name.
1684 (format_types_orig): Add gnu_ prefix to names.
1685 (check_format_info_main): Special treating of \0 escaped names for
1686 supporting multi-character format specifiers as I32, I64.
1687 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
1688 (gnu_target_overrides_format_attributes): New.
1689 * c-format.h: Add structure target_ovr_attr to hold
1690 system specific formatter names.
1691 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
1692 msformat-c.o file to c_target_objs and cxx_target_objs.
1693 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1694 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
1695 (TARGET_N_FORMAT_TYPES): New.
1696 * config/i386/msformat-c.c: New.
1697 * config/i386/t-cygming: Add build rule for msformat-c.o.
1698 * doc/extend.texi: Add new format names gnu_* and ms_* and
1699 further details.
1700 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1701
1702 2008-03-20 Ira Rosen <irar@il.ibm.com>
1703
1704 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
1705 optimizations turned on under -O3.
1706 (ftree-vectorize): Add that the flag is turned on with -O3.
1707
1708 2008-03-20 Ben Elliston <bje@au.ibm.com>
1709
1710 * regmove.c (try_auto_increment): Fix spelling error in comment.
1711 * final.c (final_scan_insn): Likewise.
1712
1713 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
1714
1715 PR target/14552
1716 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
1717 allocator preferences for "y" and "r" class registers.
1718 ("*mov<mode>_internal"): Ditto.
1719 ("*movv2sf_internal_rex64"): Ditto.
1720 ("*movv2sf_internal"): Ditto.
1721
1722 2008-03-19 Michael Matz <matz@suse.de>
1723
1724 PR middle-end/35616
1725 * calls.c (expand_call): Check overlap of arguments with call
1726 address for sibcalls.
1727
1728 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
1729
1730 PR target/35496
1731 * stor-layout.c (update_alignment_for_field): Set minimum alignment
1732 of the underlying type of a MS bitfield layout to the natural
1733 alignment of the type.
1734
1735 2008-03-19 Jan Hubicka <jh@suse.cz>
1736
1737 PR other/35094
1738 * toplev.c (decode_d_option): Handle all CPP flags.
1739 * tree-vrp.c: Update tree_pass descriptors.
1740 * regrename.c: Update tree_pass descriptors.
1741 * fwprop.c: Update tree_pass descriptors.
1742 * doc/invoke.texi: Remove documentation of dropped -d? flags.
1743 * tree-into-ssa.c: Update tree_pass descriptors.
1744 * tree-dump.c: Update tree_pass descriptors.
1745 * tree-complex.c: Update tree_pass descriptors.
1746 * tree-dump.h: Update tree_pass descriptors.
1747 * see.c: Update tree_pass descriptors.
1748 * cgraphbuild.c: Update tree_pass descriptors.
1749 * tracer.c: Update tree_pass descriptors.
1750 * tree-loop-distribution.c: Update tree_pass descriptors.
1751 * cgraph.c: Update tree_pass descriptors.
1752 * postreload-gcse.c: Update tree_pass descriptors.
1753 * postreload.c: Update tree_pass descriptors.
1754 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
1755 * tree-tailcall.c: Update tree_pass descriptors.
1756 * tree-pass.h (tree_opt_pass): Rename to ...
1757 (opt_pass) ... this one; add "type" field and remove letter field.
1758 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
1759 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
1760 all_lowering_passes): Update declaration.
1761 * ipa-cp.c: Update tree_pass descriptors.
1762 * final.c: Update tree_pass descriptors.
1763 * omp-low.c: Update tree_pass descriptors.
1764 * tree-ssa-dse.c: Update tree_pass descriptors.
1765 * ipa-reference.c: Update tree_pass descriptors.
1766 * tree-ssa-uncprop.c: Update tree_pass descriptors.
1767 * auto-inc-dec.c: Update tree_pass descriptors.
1768 * reorg.c: Update tree_pass descriptors.
1769 * cgraphunit.c: Update tree_pass descriptors.
1770 * tree-ssa-copyrename.c: Update tree_pass descriptors.
1771 * tree-ssa-ccp.c: Update tree_pass descriptors.
1772 * df-core.c: Update tree_pass descriptors.
1773 * mode-switching.c: Update tree_pass descriptors.
1774 * tree-nomudflap.c: Update tree_pass descriptors.
1775 * modulo-sched.c: Update tree_pass descriptors.
1776 * ipa-pure-const.c: Update tree_pass descriptors.
1777 * cse.c: Update tree_pass descriptors.
1778 * web.c: Update tree_pass descriptors.
1779 * tree-stdarg.c: Update tree_pass descriptors.
1780 * tree-ssa-math-opts.c: Update tree_pass descriptors.
1781 * tree-ssa-dom.c: Update tree_pass descriptors.
1782 * tree-nrv.c: Update tree_pass descriptors.
1783 * tree-ssa-alias.c: Update tree_pass descriptors.
1784 * loop-init.c: Update tree_pass descriptors.
1785 * gimple-low.c: Update tree_pass descriptors.
1786 * ipa-inline.c: Update tree_pass descriptors.
1787 * tree-ssa-sink.c: Update tree_pass descriptors.
1788 * global.c: Update tree_pass descriptors.
1789 * ifcvt.c: Update tree_pass descriptors.
1790 * jump.c: Update tree_pass descriptors.
1791 * predict.c: Update tree_pass descriptors.
1792 * tree-ssa-loop.c: Update tree_pass descriptors.
1793 * recog.c: Update tree_pass descriptors.
1794 * dse.c: Update tree_pass descriptors.
1795 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
1796 * tree-eh.c: Update tree_pass descriptors.
1797 * regmove.c: Update tree_pass descriptors.
1798 * local-alloc.c
1799 * function.c: Update tree_pass descriptors.
1800 * tree-vectorizer.c: Update tree_pass descriptors.
1801 * gcse.c: Update tree_pass descriptors.
1802 * ipa-type-escape.c: Update tree_pass descriptors.
1803 * tree-if-conv.c: Update tree_pass descriptors.
1804 * init-regs.c: Update tree_pass descriptors.
1805 * ipa.c: Update tree_pass descriptors.
1806 * tree-ssa-phiopt.c: Update tree_pass descriptors.
1807 * rtl-factoring.c: Update tree_pass descriptors.
1808 * lower-subreg.c: Update tree_pass descriptors.
1809 * bt-load.c: Update tree_pass descriptors.
1810 * tree-dfa.c: Update tree_pass descriptors.
1811 * except.c: Update tree_pass descriptors.
1812 * emit-rtl.c: Update tree_pass descriptors.
1813 * cfgexpand.c: Update tree_pass descriptors.
1814 * tree-cfgcleanup.c: Update tree_pass descriptors.
1815 * cfgcleanup.c: Update tree_pass descriptors.
1816 * tree-ssa-pre.c: Update tree_pass descriptors.
1817 * tree-sra.c: Update tree_pass descriptors.
1818 * tree-mudflap.c: Update tree_pass descriptors.
1819 * tree-ssa-copy.c: Update tree_pass descriptors.
1820 * cfglayout.c: Update tree_pass descriptors.
1821 * tree-ssa-forwprop.c: Update tree_pass descriptors.
1822 * tree-ssa-dce.c: Update tree_pass descriptors.
1823 * tree-ssa.c: Update tree_pass descriptors.
1824 * regclass.c: Update tree_pass descriptors.
1825 * integrate.c: Update tree_pass descriptors.
1826 * tree-optimize.c: Update tree_pass descriptors.
1827 * tree-ssa-phiprop.c: Update tree_pass descriptors.
1828 * tree-object-size.c: Update tree_pass descriptors.
1829 * combine.c: Update tree_pass descriptors.
1830 * tree-outof-ssa.c: Update tree_pass descriptors.
1831 * bb-reorder.c: Update tree_pass descriptors.
1832 * stack-ptr-mod.c: Update tree_pass descriptors.
1833 * var-tracking.c: Update tree_pass descriptors.
1834 * tree-profile.c: Update tree_pass descriptors.
1835 * tree-vect-generic.c: Update tree_pass descriptors.
1836 * reg-stack.c: Update tree_pass descriptors.
1837 * sched-rgn.c: Update tree_pass descriptors.
1838 * tree-ssa-structalias.c: Update tree_pass descriptors.
1839 * tree-cfg.c: Update tree_pass descriptors.
1840 * passes.c (current_pass): Update declaration.
1841 (finish_optimization_passes): Update.
1842 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
1843 (register_one_dump_file, register_dump_files_1, next_pass_1):
1844 Update arguments.
1845 (init_optimization_passes): Update handling of new types.
1846 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
1847 * ipa-struct-reorg.c: Update tree_pass descriptors.
1848 * tree-ssa-reassoc.c: Update tree_pass descriptors.
1849 * combine-stack-adj.c: Update tree_pass descriptors.
1850 * cfgrtl.c: Update tree_pass descriptors.
1851 * dce.c: Update tree_pass descriptors.
1852 * tree-ssanames.c: Update tree_pass descriptors.
1853
1854 2008-03-19 Richard Guenther <rguenther@suse.de>
1855
1856 PR middle-end/35609
1857 * tree-ssa.c (walk_data): New structure.
1858 (warn_uninitialized_var): If not always_executed warn with "maybe"
1859 instead of "is".
1860 (execute_early_warn_uninitialized): Compute post-dominators.
1861 Initialize always_executed before processing each basic block.
1862
1863 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
1864
1865 PR target/35504
1866 * config/i386/i386.c (x86_this_parameter): Calculate correct location
1867 of "this" pointer when "regparm = N" or "fastcall" is in effect.
1868
1869 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1870
1871 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
1872
1873 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
1874
1875 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
1876 is true.
1877 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
1878 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
1879 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
1880 target after ignore has been set, and move there also the commputation
1881 of subtarget and original_target.
1882 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
1883 (LANG_HOOKS_INITIALIZER): Remove it.
1884 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
1885
1886 2008-03-18 Richard Guenther <rguenther@suse.de>
1887
1888 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
1889 found an expression with constants, note that in the VN for the lhs.
1890 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
1891 fold them to constants if possible. Run cleanup_cfg if done so.
1892 (execute_pre): Return todo.
1893 (do_pre): Likewise.
1894 (execute_fre): Likewise.
1895 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
1896 of constants.
1897 (get_prop_source_stmt): Look through pointer conversions.
1898
1899 2008-03-18 Jan Hubicka <jh@suse.cz>
1900
1901 * tree-pretty-print.c: Include predict.h.
1902 (dump_generic_node): Dump predictor.
1903 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
1904 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
1905 * gimple-low.c (lower_stmt): Likewise.
1906 * expr.c (expand_expr_real): Likewise.
1907 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
1908 them.
1909 (build_predict_expr, build_predict_expr): New.
1910 * predict.h (predictor_name, build_predict_expr): Update.
1911 * c-typeck.c (c_finish_bc_stmt): Add prediction.
1912 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
1913 * predict.def (PRED_CONTINUE): Update hitrate.
1914 * tree.def (PREDICT_EXPR): Define.
1915 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
1916 do not handle BIND_EXPR.
1917 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
1918 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
1919 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
1920 operands.
1921
1922 2008-03-18 Michael Matz <matz@suse.de>
1923
1924 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
1925
1926 2008-03-18 Richard Guenther <rguenther@suse.de>
1927
1928 * tree-gimple.h (is_gimple_invariant_address): Declare.
1929 (is_gimple_constant): Likewise.
1930 * tree-gimple.c (is_gimple_constant): New function.
1931 (is_gimple_invariant_address): Likewise.
1932 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
1933 and is_gimple_invariant_address.
1934 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
1935 previous change.
1936 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
1937 an addressable base.
1938
1939 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1940
1941 PR middle-end/35611
1942 * gimplify.c (gimplify_expr): Gimplify second operand of
1943 OMP_ATOMIC_LOAD.
1944
1945 2008-03-17 Richard Guenther <rguenther@suse.de>
1946
1947 PR tree-optimization/19637
1948 * fold-const.c (fold_unary): Remove restrictions of removing
1949 intermediate pointer-conversions (P2)(P1)P0.
1950 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
1951 conversion to void pointer.
1952 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
1953
1954 2008-03-16 James E. Wilson <wilson@tuliptree.org>
1955
1956 PR debug/31510
1957 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
1958 emulated thread local variables.
1959
1960 2008-03-16 Richard Guenther <rguenther@suse.de>
1961
1962 PR middle-end/35607
1963 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1964 expand TREE_INVARIANT operations that are not gimple invariant.
1965
1966 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
1967
1968 * doc/extend.texi (Alignment): Say that the ABI controls
1969 the __alignof__ for non-strict-alignment targets rather
1970 than being a recommendation.
1971
1972 2008-03-15 Paul Brook <paul@codesourcery.com>
1973
1974 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
1975 annotations.
1976 (arm_output_fn_unwind): Mark functions that can not be unwound.
1977
1978 2008-03-15 Paul Brook <paul@codesourcery.com>
1979
1980 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
1981 extension instructions.
1982
1983 2008-03-15 Richard Guenther <rguenther@suse.de>
1984
1985 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
1986 and fold constant aggregate refs.
1987 (fold_const_aggregate_ref): Handle string constants
1988 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
1989 (evaluate_stmt): Simplify now that ccp_fold folds constant
1990 aggregate refs.
1991
1992 2008-03-15 Paul Brook <paul@codesourcery.com>
1993
1994 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
1995 (extzv): Use gen_extzv_t2.
1996 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
1997
1998 2008-03-15 Richard Guenther <rguenther@suse.de>
1999
2000 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
2001 (fold_const_aggregate_ref): Likewise.
2002 (get_value): Return NULL if we don't have any values.
2003 (ccp_finalize): Set const_val to NULL after freeing it.
2004 * tree-flow.h (get_symbol_constant_value): Declare.
2005 (fold_const_aggregate_ref): Likewise.
2006 * tree-ssa-sccvn.c (try_to_simplify): Use them.
2007
2008 2008-03-15 Richard Guenther <rguenther@suse.de>
2009
2010 PR middle-end/35593
2011 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
2012 to not produce negative array indices if not allowed. Add
2013 parameter to indicate that.
2014 (maybe_fold_offset_to_component_ref): Allow negative array
2015 indices only for the first member of a structure.
2016 (maybe_fold_offset_to_reference): Allow negative array indices.
2017 (maybe_fold_stmt_addition): Likewise.
2018
2019 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
2020 Anatoly Sokolov <aesok@post.ru>
2021
2022 * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
2023 (avr_arch): Add ARCH_AVR6.
2024 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
2025 (initial_elimination_offset): Initialize and use 'avr_pc_size'
2026 instead of fixed value 2.
2027 (print_operand_address): Use gs() asm specifier instead of pm().
2028 (avr_assemble_integer): (Ditto.).
2029 (avr_output_addr_vec_elt): (Ditto.).
2030 (print_operand): Handle "!" code.
2031 * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
2032 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
2033 (AVR_HAVE_EIJMP_EICALL): Define.
2034 (AVR_3_BYTE_PC): Redefine.
2035 (AVR_2_BYTE_PC): (Ditto.).
2036 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
2037 (LINK_SPEC): Add atmega2560 and atmega2561.
2038 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
2039 (crtm2561.o).
2040 * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall
2041 for 3 byte PC devices.
2042 (call_value_insn): (Ditto.).
2043 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
2044 (indirect_jump): Use only for for 2 byte PC devices.
2045 (*tablejump): (Ditto.).
2046 (*indirect_jump_avr6): Add insn.
2047 (*tablejump_rjmp): Don't use for 3 byte PC devices.
2048 * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp
2049 instead of ijmp for 3 byte PC devices.
2050 (__tablejump2__): (Ditto.).
2051 * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
2052 (MULITLIB_DIRNAMES): (Ditto.).
2053 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
2054
2055 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
2056
2057 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
2058 "sse2_umulsidi3". Use V1DI mode for operand 0.
2059 ("mmx_psadbw"): Use V1DI mode for operand 0.
2060 * config/i386/i386-modes.def (V1SI): New vector mode.
2061 * config/i386/i386.c (struct builtin_description)
2062 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
2063 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
2064 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
2065 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
2066 v1di_ftype_v8qi_v8qi type.
2067 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
2068
2069 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
2070 __builtin_ia32_pmuludq]: Fix the mode of return value.
2071
2072 2008-03-15 Richard Guenther <rguenther@suse.de>
2073
2074 PR middle-end/35595
2075 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
2076 being a PHI_NODE.
2077
2078 2008-03-14 Bob Wilson <bob.wilson@acm.org>
2079
2080 * doc/invoke.texi (Option Summary, Xtensa Options): Document
2081 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
2082 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
2083 unless TARGET_SERIALIZE_VOLATILE is enabled.
2084 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
2085 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
2086 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
2087
2088 2008-03-14 Richard Guenther <rguenther@suse.de>
2089
2090 PR tree-optimization/34172
2091 * tree-flow.h (refs_may_alias_p): Declare.
2092 (get_single_def_stmt): Likewise.
2093 (get_single_def_stmt_from_phi): Likewise.
2094 (get_single_def_stmt_with_phi): Likewise.
2095 * tree-dfa.c (refs_may_alias_p): New function.
2096 (get_single_def_stmt): Likewise.
2097 (get_single_def_stmt_from_phi): Likewise.
2098 (get_single_def_stmt_with_phi): Likewise.
2099 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
2100 (vn_reference_lookup_1): New helper function.
2101 (vn_reference_lookup): Walk the virtual use-def chain to
2102 continue searching for a match if the def does not alias the
2103 reference we are looking for.
2104
2105 2008-03-14 David Edelsohn <edelsohn@gnu.org>
2106
2107 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
2108 archive and Perzl. Update The Written Word listing.
2109
2110 2008-03-14 Richard Guenther <rguenther@suse.de>
2111
2112 PR tree-optimization/34043
2113 PR tree-optimization/33989
2114 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
2115 when doing FRE.
2116 (bitmap_find_leader): Use extra argument to verify dominance
2117 relationship inside a basic-block.
2118 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
2119 (find_leader_in_sets): Adjust.
2120 (create_component_ref_by_pieces): Take extra argument for
2121 dominance check, handle lookup failures.
2122 (find_or_generate_expression): Likewise.
2123 (create_expression_by_pieces): Likewise.
2124 (insert_into_preds_of_block): Adjust.
2125 (create_value_expr_from): If asked for, verify all operands
2126 are in the blocks AVAIL_OUT set.
2127 (make_values_for_stmt): Check for SSA_NAMEs that are life
2128 over an abnormal edge.
2129 (compute_avail): Remove such check.
2130 (do_SCCVN_insertion): New function.
2131 (eliminate): If we do not find a leader suitable for replacement
2132 insert a replacement expression from SCCVN if available.
2133 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
2134 (struct vn_ssa_aux): Add needs_insertion flag.
2135 * tree-ssa-sccvn.c (may_insert): New global flag.
2136 (copy_reference_ops_from_ref): Value-number union member access
2137 based on its size, not type and member if insertion is allowed.
2138 (visit_reference_op_load): For a weak match from union type
2139 punning lookup a view-converted value and insert a SSA_NAME
2140 for that value if that is not found.
2141 (visit_use): Make dumps shorter. Do not disallow value numbering
2142 SSA_NAMEs that are life over an abnormal edge to constants.
2143 (free_scc_vn): Release inserted SSA_NAMEs.
2144 (run_scc_vn): New flag to specify whether insertion is allowed.
2145 Process SSA_NAMEs in forward order.
2146 * tree-ssa-loop-im.c (for_each_index): Handle invariant
2147 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
2148 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
2149 pointer type to/from integral types that do not change the
2150 precision to regular conversions.
2151
2152 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
2153
2154 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2155 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2156 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
2157 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
2158 input arguments and the mode of return value. Built-in functions
2159 that operate on whole 64-bit MMX register now use V1DI mode.
2160
2161 2008-03-13 Alon Dayan <alond@il.ibm.com>
2162 Olga Golovanevsky <olga@il.ibm.com>
2163
2164 PR tree-optimization/35041
2165 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
2166 to locate the right position in a statement.
2167
2168 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
2169
2170 PR target/34000
2171 PR target/35553
2172 * config/i386/xmmintrin.h: Change all static inline functions to
2173 extern inline and add __gnu_inline__ attribute.
2174 * config/i386/bmintrin.h: Ditto.
2175 * config/i386/smmintrin.h: Ditto.
2176 * config/i386/tmmintrin.h: Ditto.
2177 * config/i386/mmintrin-common.h: Ditto.
2178 * config/i386/ammintrin.h: Ditto.
2179 * config/i386/emmintrin.h: Ditto.
2180 * config/i386/pmmintrin.h: Ditto.
2181 * config/i386/mmintrin.h: Ditto.
2182 * config/i386/mm3dnow.h: Ditto.
2183
2184 2008-03-13 Jakub Jelinek <jakub@redhat.com>
2185
2186 PR middle-end/35185
2187 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
2188 (lower_omp_2): New function.
2189 (lower_omp_1, lower_omp): Rewritten.
2190
2191 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
2192
2193 PR 35054
2194 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
2195 with the phrase "Microsoft Windows compilers".
2196 (Push/Pop Macro Pragmas): New subsection. Document
2197 #pragma push_macro and pragma pop_macro.
2198
2199 2008-03-12 Paul Brook <paul@codesourcery.com>
2200
2201 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
2202
2203 2008-03-12 Paul Brook <paul@codesourcery.com>
2204
2205 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
2206 (thumb2_alusi3_short): Exclude PLUS and MINUS.
2207 (thumb2_addsi_shortim): Rename ...
2208 (thumb2_addsi_short): ... to this. Allow register operands.
2209 (thumb2_subsi_short): New pattern.
2210 (thumb2_one_cmplsi2_short,
2211 thumb2_negsi2_short): New patterns and peepholes.
2212
2213 2008-03-12 Paul Brook <paul@codesourcery.com>
2214
2215 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
2216
2217 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
2218
2219 * config/i386/i386.md (int_cond): New code iterator.
2220 (fp_cond): Ditto.
2221 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
2222 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
2223 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
2224 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
2225 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
2226 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
2227 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
2228 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
2229
2230 2008-03-12 Paul Brook <paul@codesourcery.com>
2231
2232 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
2233 instead of {arm,thumb}_compute_save_reg_mask.
2234 (output_return_instruction): Ditto.
2235 (thumb_unexpanded_epilogue): Ditto.
2236 (thumb1_expand_prologue): Ditto.
2237 (thumb1_output_function_prologue): Ditto.
2238 (arm_set_return_address): Ditto.
2239 (thumb_set_return_address): Ditto.
2240 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
2241 regs to achieve stack alignment.
2242 (thumb1_compute_save_reg_mask): Fix compiler warning.
2243 (arm_output_epilogue): Use offsets->saved_regs_mask.
2244 Adjust stack pointer by poping call clobered registers.
2245 (arm_expand_prologue): Use offsets->saved_regs_mask.
2246 Adjust stack pointer by pushing extra registers.
2247 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
2248
2249 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
2250
2251 PR tree-opt/35422
2252 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
2253 conversion to the operands of a multiplication.
2254
2255 2008-03-12 Richard Guenther <rguenther@suse.de>
2256
2257 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
2258 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
2259 * timevar.def (TV_TREE_PHIPROP): Add.
2260 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
2261 pass description. Use TV_TREE_PHIPROP.
2262 * tree-ssa-forwprop.c: Remove phiprop code.
2263
2264 2008-03-12 Jakub Jelinek <jakub@redhat.com>
2265
2266 PR middle-end/35549
2267 * omp-low.c (maybe_lookup_decl): Constify first argument.
2268 (use_pointer_for_field): Change last argument from bool to
2269 omp_context *. Disallow shared copy-in/out in nested
2270 parallel if decl is shared in outer parallel too.
2271 (build_outer_var_ref, scan_sharing_clauses,
2272 lower_rec_input_clauses, lower_copyprivate_clauses,
2273 lower_send_clauses, lower_send_shared_vars): Adjust callers.
2274
2275 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
2276 Ira Rosen <irar@il.ibm.com>
2277
2278 * tree-vectorizer.c (free_stmt_vec_info): New function.
2279 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
2280 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
2281 * tree-vectorizer.h (free_stmt_vec_info): Declare.
2282 * tree-vect-transform.c (vectorizable_conversion): Free
2283 vec_oprnds0 if it was allocated.
2284 (vect_permute_store_chain): Remove unused VECs.
2285 (vectorizable_store): Free VECs that are allocated in the..
2286 function.
2287 (vect_transform_strided_load, vectorizable_load): Likewise.
2288 (vect_remove_stores): Simplify the code.
2289 (vect_transform_loop): Move code to vect_remove_stores().
2290 Call vect_remove_stores() and free_stmt_vec_info().
2291
2292 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2293
2294 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
2295 TARGET_HPUX. Revise comment.
2296 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
2297 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
2298 Use sr4 variant of `be' instruction when not generating PIC code.
2299 (attr_length_call): Adjust for above change.
2300
2301 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2302
2303 * ipa-reference.c (static_execute): Remove module_statics_const and
2304 associated setting code.
2305
2306 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
2307
2308 PR target/35540
2309 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
2310 predicate for operand 1.
2311 (paritysi2_cmp): Use register_operand predicate for operand 2.
2312 Use earlyclobber modifier for operand 1. Remove support for
2313 memory operands.
2314 (paritydi2_cmp): Use register_operand predicate for operand 3.
2315 Use earlyclobber modifier for operand 1. Remove support for
2316 memory operands.
2317
2318 2008-03-11 Paul Brook <paul@codesourcery.com>
2319 Vladimir Prus <vladimir@codesourcery.com>
2320
2321 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
2322 (arm_compute_save_reg0_reg12_mask): Always
2323 check if register 11 must be saved. Always safe hard frame pointer
2324 when frame_pointer_needeed.
2325 (arm_compute_save_reg_mask): Save IP and PC
2326 only with apcs frames.
2327 (arm_output_epilogue): Adjust Thumb2 codepath to
2328 be also invoked and work for ARM non-apcs frames.
2329 (arm_expand_prologue): Don't bother saving IP
2330 for non-apcs frame, since it's not clobbered by
2331 prologue code. Implement non-apcs frame
2332 layout.
2333
2334 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
2335
2336 PR rtl-optimization/35281
2337 * expr.c (convert_move): Use a new pseudo for the intermediate
2338 from_mode->word_mode result.
2339
2340 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
2341
2342 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
2343 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
2344 * toplev.c (compile_file): Don't call it.
2345
2346 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
2347
2348 PR middle-end/35526
2349 * expr.c (store_expr): Call emit_block_move if the mode
2350 of "temp" RTX is BLKmode.
2351
2352 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
2353 Richard Guenther <rguenther@suse.de>
2354
2355 PR tree-optimization/31358
2356 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
2357 the step with a NULL_TREE.
2358 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
2359 to sizetype if type is a pointer type.
2360 (add_candidate_1): Don't convert the base and step to
2361 the generic type if the orginal type is a pointer type.
2362 (add_iv_value_candidates): Use sizetype for the step
2363 if type is a pointer type.
2364 (cand_value_at): Likewise.
2365 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
2366 for pointer types.
2367 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
2368 Don't convert the tem affine to the type.
2369 (add_elt_to_tree): Use sizetype for the step if a pointer.
2370 Use POINTER_PLUS_EXPR for pointers.
2371 (aff_combination_to_tree): Use sizetype for the step if a
2372 pointer.
2373
2374 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
2375
2376 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
2377 Remove commutativity hint.
2378
2379 2008-03-10 Jakub Jelinek <jakub@redhat.com>
2380
2381 PR c/35438
2382 PR c/35439
2383 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
2384 errorneous type. Check that v is a VAR_DECL.
2385
2386 PR middle-end/35099
2387 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
2388
2389 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
2390
2391 PR tree-optimization/35494
2392 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
2393 may be overriden at link and run time.
2394
2395 2008-03-10 Richard Guenther <rguenther@suse.de>
2396
2397 PR tree-optimization/34677
2398 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
2399 (poolify_tree): Likewise.
2400 (modify_expr_template): Likewise.
2401 (poolify_modify_stmt): Likewise.
2402 (insert_fake_stores): Handle all component-ref style stores
2403 in addition to INDIRECT_REF. Also handle complex types.
2404 Do not poolify the inserted load.
2405 (realify_fake_stores): Do not rebuild the tree but only
2406 make it a SSA_NAME copy.
2407 (init_pre): Remove initialzation of modify_expr_template.
2408 Do not allocate modify_expr_node_pool.
2409 (fini_pre): Do not free modify_expr_node_pool.
2410
2411 2008-03-10 Paul Brook <paul@codesourcery.com>
2412
2413 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
2414 to avoid conflicts.
2415
2416 2008-03-10 Paul Brook <paul@codesourcery.com>
2417 Mark Shinwell <shinwell@codesourcery.com>
2418
2419 * config/arm/cortex-r4.md: New.
2420 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
2421 insn attributes.
2422 * config/arm/arm.md: Include cortex-r4.md.
2423 (insn): Add smmls, sdiv and udiv values.
2424 (generic_sched): Don't use generic scheduling for Cortex-R4.
2425 (arm_issue_rate): New function.
2426 (TARGET_SCHED_ISSUE_RATE): Define.
2427
2428 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
2429
2430 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
2431
2432 2008-03-10 Richard Guenther <rguenther@suse.de>
2433
2434 * tree-ssa-pre.c (get_sccvn_value): Simplify.
2435 (compute_avail): Do not add stmt uses to AVAIL_OUT.
2436
2437 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
2438
2439 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
2440 Set default to true.
2441
2442 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2443
2444 * c.opt (Wsynth): Deprecate.
2445 * doc/invoke.texi (Option Summary, Warning Options): Document
2446 -Wno-format-contains-nul.
2447
2448 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
2449
2450 PR target/35496
2451 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
2452 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
2453
2454 2008-03-09 Ira Rosen <irar@il.ibm.com>
2455
2456 * config/rs6000/rs6000.c (builtin_description): Rename vector
2457 left shift operations.
2458 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
2459 (altivec_vsl<VI_char>): Rename to ...
2460 (ashl<mode>3): ... new name.
2461 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
2462 gen_ashlv4si3.
2463 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
2464
2465 2008-03-08 Richard Guenther <rguenther@suse.de>
2466
2467 * coverage.h (tree_coverage_counter_addr): Declare.
2468 * coverage.c (tree_coverage_counter_addr): New function.
2469 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
2470 before using again.
2471 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
2472 (tree_gen_one_value_profiler): Likewise.
2473 (tree_gen_ic_profiler): Likewise.
2474 (tree_gen_average_profiler): Likewise.
2475 (tree_gen_ior_profiler): Likewise.
2476
2477 2008-03-08 Richard Guenther <rguenther@suse.de>
2478
2479 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
2480 (vn_binary_op_insert): Likewise.
2481 (vn_unary_op_lookup): Likewise.
2482 (vn_unary_op_insert): Likewise.
2483 (vn_nary_op_lookup): Declare.
2484 (vn_nary_op_insert): Likewise.
2485 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
2486 and binary hashes, use a single obstack for unary_op_pool
2487 and binary_op_pool.
2488 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
2489 a single struct vn_nary_op_s. Store tree code length and
2490 a variable number of operands.
2491 (struct vn_reference_op_struct): Remove unused op2.
2492 (vn_reference_op_eq): Do not compare op2.
2493 (vn_reference_op_compute_hash): Do not compute hash of op2.
2494 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
2495 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
2496 with vn_nary_op_compute_hash.
2497 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
2498 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
2499 vn_nary_op_lookup.
2500 (vn_unary_op_insert, vn_binary_op_insert): Replace with
2501 vn_nary_op_insert.
2502 (visit_unary_op): Call nary functions.
2503 (visit_binary_op): Likewise.
2504 (process_scc): Adjust for struct vn_tables_s changes.
2505 (allocate_vn_table): Likewise.
2506 (free_vn_table): Likewise.
2507 * tree-vn.c (vn_add): Call nary functions.
2508 (vn_lookup): Likewise.
2509
2510 2008-03-08 Jakub Jelinek <jakub@redhat.com>
2511
2512 PR target/35498
2513 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
2514 wdst back after sync_compare_and_swapqhi_internal.
2515
2516 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
2517
2518 PR target/22152
2519 * config/i386/i386-modes.def (V1DI): New vector mode.
2520 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
2521 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
2522 (MMXMODE248): Ditto.
2523 (MMXMODE): Add V1DI mode.
2524 (mmxvecsize): Change DI mode to V1DI mode.
2525 ("mov<mode>): Use MMXMODEI8 mode iterator.
2526 ("*mov<mode>_internal_rex64"): Ditto.
2527 ("*mov<mode>_internal"): Ditto.
2528 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
2529 ("mmx_sub<mode>3"): Ditto.
2530 ("mmx_adddi3"): Remove insn pattern.
2531 ("mmx_subdi3"): Ditto.
2532 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
2533 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
2534 ("mmx_ashl<mode>3"): Ditto.
2535 ("mmx_lshrdi3"): Remove insn pattern.
2536 ("mmx_ashldi3"): Ditto.
2537 * config/i386/i386.c (classify_argument): Handle V1DImode.
2538 (function_arg_advance_32): Ditto.
2539 (function_arg_32): Ditto.
2540 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
2541 mmx_addv1di3 insn pattern.
2542 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
2543 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
2544 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
2545 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
2546 Remove definitions of built-in functions.
2547 (V1DI_type_node): New node.
2548 (v1di_ftype_v1di_int): Ditto.
2549 (v1di_ftype_v1di_v1di): Ditto.
2550 (v2si_ftype_v2si_si): Ditto.
2551 (v4hi_ftype_v4hi_di): Remove node.
2552 (v2si_ftype_v2si_di): Ditto.
2553 (ix86_init_mmx_sse_builtins): Handle V1DImode.
2554 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
2555 Redefine builtins using def_builtin_const with *_ftype_*_int node.
2556 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
2557 Add new builtins using def_builtin_const.
2558 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
2559 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
2560 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
2561 * config/i386/mmintrin.h (__v1di): New typedef.
2562 (_mm_add_si64): Cast arguments to __v1di type.
2563 (_mm_sub_si64): Ditto.
2564 (_mm_sll_pi16): Cast __count to __v4hi type.
2565 (_mm_sll_pi32): Cast __count to __v2si type.
2566 (_mm_sll_si64): Cast arguments to __v1di type.
2567 (_mm_srl_pi16): Cast __count to __v4hi type.
2568 (_mm_srl_pi32): Cast __count to __v2si type.
2569 (_mm_srl_si64): Cast arguments to __v1di type.
2570 (_mm_sra_pi16): Cast __count to __v4hi type.
2571 (_mm_sra_pi32): Cast __count to __v2si type.
2572 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
2573 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
2574 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
2575 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
2576 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
2577 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
2578 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
2579 (_mm_srai_pi32): Use __builtin_ia32_psradi.
2580 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
2581 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2582 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2583 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
2584
2585 2008-03-07 Joseph Myers <joseph@codesourcery.com>
2586
2587 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
2588
2589 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
2590
2591 PR target/35373
2592 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
2593 reg+const addressing for Altivec modes. Don't generate reg+reg
2594 addressing for TFmode or TDmode quantities.
2595
2596 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
2597
2598 * c-common.c (vector_types_convertible_p): Call langhook
2599 instead of comptypes.
2600
2601 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
2602
2603 PR tree-opt/35402
2604 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
2605 integral and scalar float variables which have a
2606 NULL DECL_INITIAL.
2607
2608 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
2609
2610 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
2611 dwarf_register_span hook when emitting unwind information for
2612 register-to-memory saves.
2613 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
2614 (rs6000_frame_related): Remove call to spe_synthesize_frame.
2615
2616 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2617
2618 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
2619 for the same VAR_DECL.
2620
2621 2008-03-06 Tom Tromey <tromey@redhat.com>
2622
2623 * treelang: Delete.
2624 * doc/standards.texi (Standards): Don't mention treelang.
2625 * doc/invoke.texi (Overall Options): Don't mention treelang.
2626 * doc/install.texi (Prerequisites): Don't mention bison or
2627 treelang.
2628 (Configuration): Don't mention treelang.
2629 (Building): Likewise.
2630 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
2631
2632 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
2633
2634 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
2635 word-extractions out of a multi-word object.
2636
2637 2008-03-06 Richard Guenther <rguenther@suse.de>
2638
2639 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
2640 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
2641 result type and precision.
2642 * expr.c (get_inner_reference): Set unsignedp based on the result
2643 type of BIT_FIELD_REF.
2644 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
2645 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
2646 (try_instantiate_multiple_fields): Likewise. Use the correct type
2647 for BIT_FIELD_REF.
2648 (sra_build_assignment): Likewise.
2649 (sra_build_elt_assignment): Likewise.
2650 (sra_explode_bitfield_assignment): Likewise.
2651 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
2652 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
2653 set BIT_FIELD_REF_UNSIGNED.
2654 (vectorizable_load): Likewise.
2655
2656 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
2657
2658 * cse.c (cse_extended_basic_block): Invalidate artificial defs
2659 at bb start.
2660
2661 2008-03-06 Richard Guenther <rguenther@suse.de>
2662
2663 * alias.c (struct alias_set_entry): Move has_zero_child field
2664 to pack with alias_set.
2665
2666 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2667
2668 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2669 32bit host.
2670
2671 2008-03-05 Ian Lance Taylor <iant@google.com>
2672
2673 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
2674
2675 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
2676
2677 * fwprop.c (update_df): Support width and offset parameters of
2678 df_ref_create.
2679 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
2680 global_conflicts): Change DF_REF_EXTRACT to either
2681 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2682 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2683 * df-scan.c (df_ref_record, df_defs_record,
2684 df_ref_create_structure, df_def_record_1, df_uses_record,
2685 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
2686 df_bb_refs_collect, df_entry_block_defs_collect,
2687 df_exit_block_uses_collect): Support new width and offset fields.
2688 (ref_extract_pool): New storage pool.
2689 (df_free_ref): New function.
2690 (df_reg_chain_unlink, df_free_collection_rec,
2691 df_sort_and_compress_refs): Call df_free_ref.
2692 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
2693 of df_ref_extract.
2694 (df_ref_create_structure): Allocate df_ref_extract if offset and
2695 width fields are used.
2696 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
2697 (df_uses_record): Get offset and width from ZERO_EXTRACT
2698 and SIGN_EXTRACT.
2699 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
2700 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2701 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2702 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
2703 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2704 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2705 (df_ref_extract): New structure.
2706 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
2707 (df_ref_create): Add width and offset parameters.
2708
2709 2008-03-05 Richard Guenther <rguenther@suse.de>
2710
2711 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2712 Use ranges_overlap_p.
2713 (offset_overlaps_with_access): Rename
2714 to ranges_overlap_p and move ...
2715 * tree-flow-inline.h (ranges_overlap_p): ... here.
2716
2717 * tree.h (get_inner_reference, handled_component_p): Update
2718 comments.
2719
2720 * tree.h (record_component_aliases, get_alias_set,
2721 alias_sets_conflict_p, alias_sets_must_conflict_p,
2722 objects_must_conflict_p): Move declarations ...
2723 * alias.h (record_component_aliases, get_alias_set,
2724 alias_sets_conflict_p, alias_sets_must_conflict_p,
2725 objects_must_conflict_p): ... here.
2726 Include coretypes.h.
2727 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
2728
2729 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
2730
2731 * cfg.c: Include tree-flow.h.
2732 (remove_edge_raw): Call redirect_edge_var_map_clear.
2733 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
2734 * tree-flow-inline.h (redirect_edge_var_map_def): New.
2735 (redirect_edge_var_map_result): New.
2736 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
2737 PENDING_STMT use with redirect_edge_var_map_*.
2738 * tree-ssa.c (edge_var_maps): New definition.
2739 (redirect_edge_var_map_add): New.
2740 (redirect_edge_var_map_clear): New.
2741 (redirect_edge_var_map_dup): New.
2742 (redirect_edge_var_map_vector): New.
2743 (redirect_edge_var_map_destroy): New.
2744 (ssa_redirect_edge): Replace PENDING_STMT use with
2745 redirect_edge_var_map_*.
2746 (flush_pending_stmts): Same.
2747 (delete_tree_ssa): Destroy edge var map.
2748 * tree-flow.h (struct _edge_var_map): New.
2749 Define edge_var_map vector type.
2750 Declare redirect_edge_var_map_* prototypes.
2751 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
2752 * tree-cfg.c (reinstall_phi_args): Replace
2753 PENDING_STMT use with redirect_edge_var_map_*.
2754
2755 2008-03-05 Richard Guenther <rguenther@suse.de>
2756
2757 PR tree-optimization/35472
2758 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
2759 whose single use_stmt has a overlapping set of loaded and
2760 stored symbols as that use_stmt might be a noop assignment then.
2761
2762 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
2763
2764 * gthr-rtems.h: Implement __gthread_mutex_destroy.
2765
2766 2008-03-05 Richard Guenther <rguenther@suse.de>
2767
2768 PR c++/35336
2769 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
2770 should be constants.
2771 * tree-cfg.c (verify_expr): Verify it.
2772 * fold-const.c (fold_truthop): Remove code generating
2773 BIT_FIELD_REFs of structure bases.
2774 (fold_binary): Likewise.
2775 (fold_ternary): Position and size of BIT_FIELD_REFs are
2776 always host integers.
2777 (make_bit_field_ref): Remove.
2778 (optimize_bit_field_compare): Remove.
2779 (all_ones_mask_p): Remove.
2780
2781 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
2782
2783 PR gcc/33009
2784 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
2785 (split_block_and_df_analyze): New. Split basic block and rebuild
2786 dataflow.
2787 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
2788 SPLIT_BLOCK.
2789 (split_pattern_seq): Likewise.
2790 (erase_matching_seqs): Likewise.
2791 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
2792
2793 2008-03-04 Geoff Keating <geoffk@apple.com>
2794
2795 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
2796 declaration and code.
2797 (tree_invalid_nonnegative_warnv_p): Likewise.
2798
2799 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2800
2801 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
2802 examples. Truncate option-names then causing overfull hbox.
2803
2804 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2805
2806 PR target/35222
2807 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
2808 on hpux10.
2809 * configure: Rebuilt.
2810
2811 2008-03-04 Rafael Espindola <espindola@google.com>
2812
2813 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
2814 (tree_unary_nonnegative_warnv_p): New.
2815 (tree_binary_nonnegative_warnv_p): New.
2816 (tree_single_nonnegative_warnv_p): New.
2817 (tree_invalid_nonnegative_warnv_p): New.
2818 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
2819
2820 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2821
2822 PR 28322
2823 * opts.c (handle_option): Postpone 'unknown option' errors only for
2824 warning options.
2825
2826 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
2827
2828 PR target/35453
2829 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
2830 (_SIDD_XXX): This.
2831
2832 2008-03-04 Rafael Espindola <espindola@google.com>
2833
2834 * fold-const.c (tree_unary_nonzero_warnv_p): New.
2835 (tree_binary_nonzero_warnv_p): New.
2836 (tree_single_nonzero_warnv_p): New.
2837 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
2838
2839 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
2840
2841 PR middle-end/35456
2842 * fold-const.c (fold_cond_expr_with_comparison): Prevent
2843 transformations for modes that have signed zeros.
2844 * ifcvt.c (noce_try_abs): Ditto.
2845
2846 2008-03-04 Joseph Myers <joseph@codesourcery.com>
2847
2848 * config/i386/i386.c (override_options): Force
2849 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
2850
2851 2008-03-04 Jan Hubicka <jh@suse.cz>
2852
2853 PR c++/35262
2854 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
2855 in last commit.
2856
2857 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
2858
2859 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
2860 label to probe the stack.
2861
2862 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
2863
2864 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
2865 (__gthr_win32_mutex_destroy): Declare.
2866 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
2867 __gthr_win32_mutex_destroy.
2868 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
2869
2870 2008-03-03 Jan Hubicka <jh@suse.cz>
2871
2872 PR c++/35262
2873 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
2874 aggressive on inlining cold calls.
2875
2876 2008-03-03 Richard Guenther <rguenther@suse.de>
2877
2878 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
2879 struct copies into the expression table.
2880 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
2881 (try_to_simplify): Likewise.
2882 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
2883 integral and pointer arguments which do not change the
2884 precision to NOP_EXPRs.
2885 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
2886 VIEW_CONVERT_EXPR case.
2887
2888 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
2889
2890 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
2891 defined in a loop at depth 0 is invariant.
2892 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
2893 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
2894 be called at loop depth 0.
2895
2896 2008-03-02 Jakub Jelinek <jakub@redhat.com>
2897
2898 PR driver/35420
2899 * gcc.c (process_command): Update copyright notice dates.
2900 * gcov.c (print_version): Likewise.
2901 * gcov-dump.c (print_version): Likewise.
2902 * mips-tfile.c (main): Likewise.
2903 * mips-tdump.c (main): Likewise.
2904
2905 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2906
2907 PR 24924
2908 * c-common.c (flag_permissive): Delete.
2909 (constant_expression_warnings): Check flags first.
2910 (constant_expression_error): New.
2911 * c-common.h (flag_permissive): Delete.
2912 (constant_expression_error): Declare.
2913 * flags.h (flag_permissive): Declare. Update description.
2914 * diagnostic.c (pedwarn): Update.
2915 (permerror): New.
2916 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
2917 (permissive_error_kind): New.
2918 * toplev.c (flag_permissive): Define. Update description.
2919 * toplev.h (permissive_error_kind): Declare.
2920 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
2921 (pedwarn_c90): Use pedantic_warning_kind.
2922 * c-opts.c (c_common_post_options): flag_permissive does not affect
2923 flag_pedantic_errors.
2924
2925 2008-03-02 Joseph Myers <joseph@codesourcery.com>
2926
2927 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
2928 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
2929 __absvsi2, __absvDI2): Use unsigned arithmetic.
2930
2931 2008-03-02 Andi Kleen <ak@suse.de>
2932 Richard Guenther <rguenther@suse.de>
2933
2934 * struct-equiv.c: Remove file.
2935 * cfg_cleanup.c (condjump_equiv_p): Remove.
2936 * Makefile.in (OBJS-common): Remove struct-equiv.o.
2937 (struct-equiv.o): Remove rule.
2938 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
2939 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
2940 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
2941
2942 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
2943
2944 * ifcvt.c (noce_process_if_block): Try to handle only the then
2945 block if the else block exists but isn't suitable.
2946
2947 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
2948
2949 PR gcc/35063
2950 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
2951 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
2952 regression from previous patch.
2953
2954 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
2955
2956 PR gcc/35063
2957 * gthr.h: Add __gthread_mutex_destroy as a function that must be
2958 implemented.
2959 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
2960 * gthr-single.h (__gthread_mutex_destroy): Likewise.
2961 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
2962 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
2963 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
2964 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
2965 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
2966 (__gthread_mutex_destroy_function): Rename to
2967 __gthread_mutex_destroy.
2968 * gthr-dce.h (__gthread_mutex_destroy): Call
2969 pthread_mutex_destroy.
2970 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
2971 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
2972 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
2973
2974 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
2975
2976 * df-scan.c (df_ref_chain_change_bb): Simplify.
2977 (df_insn_change_bb): Add new_bb argument. Simplify. Call
2978 set_block_for_insn if there's any change.
2979 * df.h ((df_insn_change_bb): Fix prototype.
2980 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
2981 df_insn_change_bb, don't call set_block_for_insn.
2982 * emit-rtl.c (reorder_insns): Likewise.
2983 * haifa-sched.c (move_insn): Likewise.
2984
2985 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
2986
2987 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
2988
2989 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
2990
2991 * tree-flow-inline.h (next_readonly_imm_use): Return
2992 NULL_USE_OPERAND_P after the end.
2993
2994 2008-03-01 Richard Guenther <rguenther@suse.de>
2995
2996 PR tree-optimization/35411
2997 * tree-sra.c (sra_build_assignment): Split conversion to
2998 final type to a separate statement if we are not assigning
2999 to a register.
3000
3001 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3002
3003 * fold-const.c (fold_convertible_p): Correct the logic to follow
3004 that in fold_convert().
3005
3006 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
3007
3008 PR c++/35315
3009 * tree-inline.c (build_duplicate_type): When we make a
3010 duplicate type, make it unique in the canonical types system.
3011
3012 2008-02-29 Tom Tromey <tromey@redhat.com>
3013
3014 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
3015 input_file_stack_history, input_file_stack_restored): Remove.
3016 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3017 * input.h (struct file_stack): Remove.
3018 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
3019 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
3020 Likewise.
3021 * diagnostic.h (struct diagnostic_context) <last_module>: Change
3022 type.
3023 (diagnostic_last_module_changed): Add 'map' argument.
3024 (diagnostic_set_last_function): Likewise.
3025 * diagnostic.c (undiagnostic_report_current_module): Iterate using
3026 line map, not input_file_stack.
3027 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
3028
3029 2008-02-29 Paul Brook <paul@codesourcery.com>
3030
3031 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
3032
3033 2008-02-29 Paul Brook <paul@codesourcery.com>
3034
3035 * config/arm/ieee754-df.S (muldf3): Use RET macros.
3036
3037 2008-02-29 Richard Guenther <rguenther@suse.de>
3038
3039 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
3040 vn_lookup_or_add.
3041 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
3042 value for comparing for a store match.
3043 (simplify_unary_expression): Do nothing for SSA_NAMEs.
3044 (try_to_simplify): Do not do a full-blown reference lookup.
3045
3046 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
3047
3048 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
3049 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
3050
3051 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
3052
3053 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
3054
3055 * tree-loop-linear.c (try_interchange_loops): Compare memory access
3056 strides against cache sizes.
3057
3058 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
3059
3060 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
3061 constant to fpul.
3062
3063 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
3064
3065 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
3066 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
3067 is smaller than the original promoted value.
3068 (simplify_subreg): If OP is a SUBREG, try to preserve its
3069 SUBREG_PROMOTED_VAR_P information.
3070
3071 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
3072
3073 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
3074 (VN_INFO_GET): Allocate new objects on the obstack.
3075 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
3076 for rpo_numbers_temp, for consistency.
3077 (free_scc_vn): Free the obstack.
3078
3079 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
3080
3081 * doc/invoke.texi: Document -ftree-loop-distribution.
3082 * tree-loop-distribution.c: New.
3083 * tree-pass.h (pass_loop_distribution): New.
3084 * graphds.h (struct graph): Add htab_t indices.
3085 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
3086 * tree-vectorizer.c (rename_variables_in_loop): Extern.
3087 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
3088 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
3089 * tree-data-ref.c (debug_data_dependence_relations): New.
3090 (dump_data_dependence_relation): Also print data references.
3091 (free_data_ref): Extern.
3092 (same_access_functions): Moved...
3093 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
3094 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3095 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
3096 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
3097 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
3098 (stmts_from_loop): Skip LABEL_EXPR.
3099 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
3100 New.
3101 (build_rdg): Initialize rdg->indices htab.
3102 (free_rdg, stores_from_loop, ref_base_address,
3103 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
3104 have_similar_memory_accesses_1, ref_base_address_1,
3105 remove_similar_memory_refs): New.
3106 * tree-data-ref.h: Depend on tree-chrec.h.
3107 (debug_data_dependence_relations, free_data_ref): Declared.
3108 (same_access_functions): ... here.
3109 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
3110 New.
3111 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
3112 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
3113 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
3114 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
3115 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
3116 rdg_vertex_for_stmt): Declared.
3117 (struct rdg_edge): Add level.
3118 (RDGE_LEVEL): New.
3119 (free_rdg, stores_from_loop, remove_similar_memory_refs,
3120 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
3121 Declared.
3122 (rdg_has_similar_memory_accesses): New.
3123 * tree-vect-analyze.c: Remove unused static decls.
3124 * lambda.h (dependence_level): New.
3125 * common.opt (ftree-loop-distribution): New.
3126 * tree-flow.h (mark_virtual_ops_in_bb,
3127 slpeel_tree_duplicate_loop_to_edge_cfg,
3128 rename_variables_in_loop): Declared.
3129 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
3130 (OBJS-common): Add tree-loop-distribution.o.
3131 (tree-loop-distribution.o): New rule.
3132 * tree-cfg.c (mark_virtual_ops_in_bb): New.
3133 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
3134 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
3135
3136 2008-02-28 Joseph Myers <joseph@codesourcery.com>
3137
3138 PR target/33963
3139 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
3140 other than structures and unions.
3141
3142 2008-02-28 Richard Guenther <rguenther@suse.de>
3143
3144 Revert:
3145 2008-02-26 Richard Guenther <rguenther@suse.de>
3146
3147 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3148 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3149 (lookup_decl_from_uid): Declare.
3150 (remove_decl_from_map): Likewise.
3151 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3152 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3153 (decl_for_uid_map): New global hashtable mapping DECL_UID
3154 to the decl tree.
3155 (init_ttree): Allocate it.
3156 (insert_decl_to_uid_decl_map): New helper function.
3157 (make_node_stat): Insert new decls into the map.
3158 (copy_node_stat): Likewise.
3159 (lookup_decl_from_uid): New function.
3160 (remove_decl_from_map): Likewise.
3161 (print_decl_for_uid_map_statistics): New helper.
3162 (dump_tree_statistics): Call it.
3163
3164 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3165 (referenced_var_iterator): Adjust.
3166 (FOR_EACH_REFERENCED_VAR): Adjust.
3167 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3168 (num_referenced_vars): Adjust.
3169 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3170 (first_referenced_var): Remove.
3171 (end_referenced_vars_p): Likewise.
3172 (next_referenced_var): Likewise.
3173 (referenced_var_iterator_set): New helper function.
3174 * tree-dfa.c (referenced_var_lookup): Adjust.
3175 (referenced_var_check_and_insert): Likewise.
3176 (remove_referenced_var): Likewise.
3177 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3178 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3179 (verify_call_clobbering): Likewise.
3180 (verify_memory_partitions): Likewise.
3181 (init_tree_ssa): Allocate bitmap instead of hashtable for
3182 referenced_vars.
3183 (delete_tree_ssa): Adjust.
3184 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3185 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3186 (compute_tag_properties): Likewise.
3187 (set_initial_properties): Likewise.
3188 (find_partition_for): Likewise.
3189 (update_reference_counts): Likewise.
3190 (dump_may_aliases_for): Likewise.
3191 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3192 (add_call_clobber_ops): Likewise.
3193 (add_call_read_ops): Likewise.
3194 (get_asm_expr_operands): Likewise.
3195 * tree-into-ssa.c (dump_decl_set): Likewise.
3196 (update_ssa): Likewise.
3197 * tree-sra.c (scan_function): Likewise.
3198 (decide_instantiations): Likewise.
3199 (scalarize_parms): Likewise.
3200 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3201 (dsa_named_for): Likewise.
3202 * tree-ssa-structalias.c (update_alias_info): Likewise.
3203 (merge_smts_into): Likewise.
3204
3205 2008-02-27 David Daney <ddaney@avtrex.com>
3206
3207 PR target/34409
3208 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
3209 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
3210 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
3211 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
3212 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
3213
3214 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
3215
3216 PR target/25477
3217 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
3218 (BUILT_IN_NEXTTOWARD): Remove.
3219 (BUILT_IN_NEXTTOWARDF): Ditto.
3220 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
3221 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
3222
3223 2008-02-27 Tom Tromey <tromey@redhat.com>
3224
3225 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
3226 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
3227
3228 2008-02-27 Jan Beulich <jbeulich@novell.com>
3229
3230 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
3231 update the respective field on newdecl.
3232
3233 2008-02-27 Revital Eres <eres@il.ibm.com>
3234
3235 PR rtl-optimization/34999
3236 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
3237 crossing edges that ends with a call insn.
3238 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
3239 call insn and clear the EDGE_CROSSING flag of the crossing edge
3240 when fixing fallthru edges.
3241
3242 2008-02-27 Richard Guenther <rguenther@suse.de>
3243
3244 PR middle-end/35390
3245 * fold-const.c (fold_unary): Return the correct argument,
3246 converted to the result type.
3247
3248 2008-02-27 Richard Guenther <rguenther@suse.de>
3249
3250 PR middle-end/34971
3251 * expr.c (expand_expr_real_1): Assert on rotates that operate
3252 on partial modes.
3253 * fold-const.c (fold_binary): Use the types precision, not the
3254 bitsize of the mode if folding rotate expressions. Build rotates
3255 only for full modes.
3256
3257 2008-02-27 Jakub Jelinek <jakub@redhat.com>
3258
3259 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
3260 and CPP_PRAGMA_EOL.
3261 * c-pragma.c (pragma_ns_name): New typedef.
3262 (registered_pp_pragmas): New variable.
3263 (c_pp_lookup_pragma): New function.
3264 (c_register_pragma_1): If flag_preprocess_only, do nothing
3265 for non-expanded pragmas, for expanded ones push pragma's
3266 namespace and name into registered_pp_pragmas vector.
3267 (c_invoke_pragma_handler): Register OpenMP pragmas even when
3268 flag_preprocess_only, don't register GCC pch_preprocess
3269 pragma if flag_preprocess_only.
3270 * c-opts.c (c_common_init): Call init_pragma even if
3271 flag_preprocess_only.
3272 * c-pragma.c (c_pp_lookup_pragma): New prototype.
3273 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
3274 cpp_register_pragma if flag_preprocess_only.
3275
3276 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3277
3278 PR c/28800
3279 * c-parser.c (c_parser_translation_unit): Warn for empty
3280 translation unit, not empty source file.
3281
3282 2008-02-26 Paul Brook <paul@codesourcery.com>
3283
3284 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
3285 operand for Thumb-2.
3286 * config/arm/arm.h (reg_class): Add CORE_REGS.
3287 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
3288 (BASE_REG_CLASS): Use CORE_REGS.
3289 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
3290 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
3291 (REGNO_OK_FOR_INDEX_P): Exclude SP.
3292 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
3293 ARM_REGNO_OK_FOR_INDEX_P.
3294 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
3295 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
3296 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
3297 (ldm/stm peepholes): Ditto.
3298 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
3299 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
3300 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
3301 * config/arm/constraints.md: Enable "k" constraint on ARM.
3302
3303 2008-02-27 Ben Elliston <bje@au.ibm.com>
3304
3305 * config/rs6000/rs6000.c: Annotate cache line size field in all
3306 instances of struct processor_costs.
3307
3308 2008-02-26 David Edelsohn <edelsohn@gnu.org>
3309
3310 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
3311 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
3312 jump_bypass): New counters.
3313 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
3314 * dce.c (gate_ud_dce): Same.
3315 (gate_fast_dce): Same.
3316 * dse.c (gate_dse1): New function.
3317 (gate_dse2): New function.
3318 (gate_dse): Merge results of new gate functions.
3319 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
3320 (gate_handle_jump_bypass): Add dbg_cnt.
3321 (gate_handle_gcse): Add dbg_cnt.
3322 * ifcvt.c (gate_handle_if_conversion): Same.
3323 (gate_handle_if_after_combine): Same.
3324 (gate_handle_if_after_reload): Same.
3325 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
3326
3327 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
3328
3329 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
3330 line sizes.
3331 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
3332
3333 2008-02-26 Jason Merrill <jason@redhat.com>
3334
3335 PR c++/35315
3336 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
3337 alone if it's the naming decl for the type's main variant.
3338
3339 2008-02-26 Tom Tromey <tromey@redhat.com>
3340
3341 * system.h (USE_MAPPED_LOCATION): Poison.
3342 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
3343 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
3344 (make_goto_expr_edges): Likewise.
3345 (remove_bb): Likewise.
3346 (execute_warn_function_return): Likewise.
3347 * basic-block.h (struct edge_def) <goto_locus>: Change type to
3348 location_t.
3349 * c-common.c (fname_decl): Remove old location code.
3350 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
3351 location code.
3352 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
3353 variant.
3354 (ASM_INPUT_SOURCE_LOCATION): Likewise.
3355 (gen_rtx_ASM_INPUT): Likewise.
3356 (gen_rtx_ASM_INPUT_loc): Likewise.
3357 (get_rtx_asm_OPERANDS): Remove.
3358 * cfglayout.c (insn_locators_alloc): Remove old location code.
3359 (set_curr_insn_source_location): Likewise.
3360 (curr_insn_locator): Likewise.
3361 * print-tree.c (print_node): Remove old location code.
3362 * tree-mudflap.c (mf_varname_tree): Remove old location code.
3363 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
3364 * cfgexpand.c (expand_gimple_cond_expr): Don't use
3365 location_from_locus.
3366 (construct_exit_block): Remove old location code.
3367 * emit-rtl.c (force_next_line_note): Remove old location code.
3368 * profile.c (branch_prob): Remove old location code.
3369 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
3370 LOC_LINE): Remove old-location variants.
3371 * langhooks.c (lhd_print_error_function): Remove old location
3372 code.
3373 * configure, config.in: Rebuilt.
3374 * configure.ac (--enable-mapped-location): Remove.
3375 * c-decl.c (c_init_decl_processing): Remove old location code.
3376 (finish_function): Likewise.
3377 * recog.c (decode_asm_operands): Remove old location code.
3378 * c-pch.c (c_common_read_pch): Remove old location code.
3379 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
3380 variants.
3381 * gimple-low.c (lower_function_body): Remove old location code.
3382 * toplev.c (unknown_location): Remove.
3383 (push_srcloc): Remove old-location variant.
3384 (process_options): Remove old location code.
3385 (lang_dependent_init): Likewise.
3386 * input.h (UNKNOWN_LOCATION): Move definition.
3387 (location_t): Undeprecate.
3388 (source_locus): Remove.
3389 (location_from_locus): Remove.
3390 (struct location_s): Remove.
3391 Remove all old-location code.
3392 (input_line, input_filename): Remove.
3393 * final.c (final_scan_insn): Remove old location code.
3394 * diagnostic.c (diagnostic_build_prefix): Remove
3395 USE_MAPPED_LOCATION test.
3396 * tree.h (gimple_stmt) <locus>: Now a location_t.
3397 (tree_exp) <locus>: Likewise.
3398 (DECL_IS_BUILTIN): Remove old-location variant.
3399 (annotate_with_file_line, annotate_with_locus): Likewise.
3400 (expr_locus, set_expr_locus): Update.
3401 * tree.c (build1_stat): Remove old location code.
3402 (last_annotated_node): Remove.
3403 (annotate_with_file_line): Remove old-location variant.
3404 (annotate_with_locus): Likewise.
3405 (expr_location): Remove old location code.
3406 (set_expr_location): Likewise.
3407 (expr_has_location): Likewise.
3408 (expr_locus): Likewise.
3409 (set_expr_locus): Likewise.
3410 (expr_filename): Don't use location_from_locus.
3411 (expr_lineno): Likewise.
3412 * rtl-error.c (location_for_asm): Remove old location code.
3413 * c-lex.c (cb_line_change): Remove old location code.
3414 (fe_file_change): Likewise.
3415 (cb_def_pragma): Likewise.
3416 (c_lex_with_flags): Likewise.
3417 * gengtype.c (do_typedef): Don't special-case location types.
3418 (define_location_structures): Remove.
3419 (main): Don't call define_location_structures.
3420 * tree-pretty-print.c (dump_implicit_edges): Remove old location
3421 code.
3422
3423 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3424
3425 PR 26264
3426 * builtins.def (BUILT_IN_STDARG_START): Remove.
3427 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
3428 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
3429 * tree-inline.c (inline_forbidden_p_1): Likewise.
3430
3431 2008-02-26 Richard Guenther <rguenther@suse.de>
3432
3433 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3434 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3435 (lookup_decl_from_uid): Declare.
3436 (remove_decl_from_map): Likewise.
3437 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3438 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3439 (decl_for_uid_map): New global hashtable mapping DECL_UID
3440 to the decl tree.
3441 (init_ttree): Allocate it.
3442 (insert_decl_to_uid_decl_map): New helper function.
3443 (make_node_stat): Insert new decls into the map.
3444 (copy_node_stat): Likewise.
3445 (lookup_decl_from_uid): New function.
3446 (remove_decl_from_map): Likewise.
3447 (print_decl_for_uid_map_statistics): New helper.
3448 (dump_tree_statistics): Call it.
3449
3450 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3451 (referenced_var_iterator): Adjust.
3452 (FOR_EACH_REFERENCED_VAR): Adjust.
3453 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3454 (num_referenced_vars): Adjust.
3455 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3456 (first_referenced_var): Remove.
3457 (end_referenced_vars_p): Likewise.
3458 (next_referenced_var): Likewise.
3459 (referenced_var_iterator_set): New helper function.
3460 * tree-dfa.c (referenced_var_lookup): Adjust.
3461 (referenced_var_check_and_insert): Likewise.
3462 (remove_referenced_var): Likewise.
3463 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3464 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3465 (verify_call_clobbering): Likewise.
3466 (verify_memory_partitions): Likewise.
3467 (init_tree_ssa): Allocate bitmap instead of hashtable for
3468 referenced_vars.
3469 (delete_tree_ssa): Adjust.
3470 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3471 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3472 (compute_tag_properties): Likewise.
3473 (set_initial_properties): Likewise.
3474 (find_partition_for): Likewise.
3475 (update_reference_counts): Likewise.
3476 (dump_may_aliases_for): Likewise.
3477 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3478 (add_call_clobber_ops): Likewise.
3479 (add_call_read_ops): Likewise.
3480 (get_asm_expr_operands): Likewise.
3481 * tree-into-ssa.c (dump_decl_set): Likewise.
3482 (update_ssa): Likewise.
3483 * tree-sra.c (scan_function): Likewise.
3484 (decide_instantiations): Likewise.
3485 (scalarize_parms): Likewise.
3486 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3487 (dsa_named_for): Likewise.
3488 * tree-ssa-structalias.c (update_alias_info): Likewise.
3489 (merge_smts_into): Likewise.
3490
3491 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3492
3493 PR 34351
3494 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
3495 * c-opts.c (c_common_handle_option): Wall enables
3496 Wvolatile-register-var.
3497 * common.opt: Move Wvolatile-register-var to...
3498 * c.opt: ...here.
3499
3500 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3501
3502 * common.opt (Wlarger-than=): New.
3503 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
3504 -Wlarger-than=.
3505 * opts.c (common_handle_option): Handle -Wlarger-than=.
3506 * optc-gen.awk: Likewise.
3507 * opth-gen.awk: Likewise.
3508 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
3509 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3510
3511 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3512
3513 * c-common.c (match_case_to_enum_1): Add appropriate
3514 OPT_W* parameter to warning.
3515 (c_do_switch_warnings): Likewise.
3516 * c-typeck.c (warning_init): Add one more parameter following
3517 'warning' function.
3518 (push_init_level): Update call to warning_init.
3519 (pop_init_level): Likewise.
3520 (add_pending_init): Likewise.
3521 (output_init_element: Likewise.
3522
3523 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3524
3525 PR 28322
3526 * toplev.c (toplev_main): If there are warnings or error, print
3527 errors for ignored options.
3528 * opts.c (ignored_options): New static variable.
3529 (postpone_unknown_option_error): New.
3530 (print_ignored_options): New.
3531 (handle_option): Postpone errors for unknown -Wno-* options.
3532 * opts.h (print_ignored_options): Declare.
3533
3534 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
3535
3536 * config/mips/mips.md (loadgp_blockage, blockage): Change type
3537 to "ghost".
3538
3539 2008-02-25 Richard Guenther <rguenther@suse.de>
3540
3541 Revert:
3542 2008-02-25 Richard Guenther <rguenther@suse.de>
3543
3544 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3545 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3546 (lookup_decl_from_uid): Declare.
3547 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3548 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3549 (decl_for_uid_map): New global hashtable mapping DECL_UID
3550 to the decl tree.
3551 (init_ttree): Allocate it.
3552 (insert_decl_to_uid_decl_map): New helper function.
3553 (make_node_stat): Insert new decls into the map.
3554 (copy_node_stat): Likewise.
3555 (lookup_decl_from_uid): New function.
3556 (print_decl_for_uid_map_statistics): New helper.
3557 (dump_tree_statistics): Call it.
3558
3559 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3560 (referenced_var_iterator): Adjust.
3561 (FOR_EACH_REFERENCED_VAR): Adjust.
3562 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3563 (num_referenced_vars): Adjust.
3564 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3565 (first_referenced_var): Remove.
3566 (end_referenced_vars_p): Likewise.
3567 (next_referenced_var): Likewise.
3568 (referenced_var_iterator_set): New helper function.
3569 * tree-dfa.c (referenced_var_lookup): Adjust.
3570 (referenced_var_check_and_insert): Likewise.
3571 (remove_referenced_var): Likewise.
3572 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3573 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3574 (verify_call_clobbering): Likewise.
3575 (verify_memory_partitions): Likewise.
3576 (init_tree_ssa): Allocate bitmap instead of hashtable for
3577 referenced_vars.
3578 (delete_tree_ssa): Adjust.
3579 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3580 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3581 (compute_tag_properties): Likewise.
3582 (set_initial_properties): Likewise.
3583 (find_partition_for): Likewise.
3584 (update_reference_counts): Likewise.
3585 (dump_may_aliases_for): Likewise.
3586 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3587 (add_call_clobber_ops): Likewise.
3588 (add_call_read_ops): Likewise.
3589 (get_asm_expr_operands): Likewise.
3590 * tree-into-ssa.c (dump_decl_set): Likewise.
3591 (update_ssa): Likewise.
3592 * tree-sra.c (scan_function): Likewise.
3593 (decide_instantiations): Likewise.
3594 (scalarize_parms): Likewise.
3595 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3596 (dsa_named_for): Likewise.
3597 * tree-ssa-structalias.c (update_alias_info): Likewise.
3598 (merge_smts_into): Likewise.
3599
3600 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
3601
3602 PR fortran/29549
3603 * doc/invoke.texi (-fcx-limited-range): Document new option.
3604 * toplev.c (process_options): Handle -fcx-fortran-rules.
3605 * common.opt: Add documentation for -fcx-fortran-rules.
3606
3607 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
3608
3609 PR c/35162
3610 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
3611 actual behaviour and C99.
3612
3613 2008-02-26 Ben Elliston <bje@au.ibm.com>
3614
3615 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
3616 (ASM_CPU_POWER6_SPEC): Likewise.
3617 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
3618 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
3619 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
3620
3621 2008-02-25 Richard Guenther <rguenther@suse.de>
3622
3623 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3624 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3625 (lookup_decl_from_uid): Declare.
3626 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3627 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3628 (decl_for_uid_map): New global hashtable mapping DECL_UID
3629 to the decl tree.
3630 (init_ttree): Allocate it.
3631 (insert_decl_to_uid_decl_map): New helper function.
3632 (make_node_stat): Insert new decls into the map.
3633 (copy_node_stat): Likewise.
3634 (lookup_decl_from_uid): New function.
3635 (print_decl_for_uid_map_statistics): New helper.
3636 (dump_tree_statistics): Call it.
3637
3638 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3639 (referenced_var_iterator): Adjust.
3640 (FOR_EACH_REFERENCED_VAR): Adjust.
3641 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3642 (num_referenced_vars): Adjust.
3643 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3644 (first_referenced_var): Remove.
3645 (end_referenced_vars_p): Likewise.
3646 (next_referenced_var): Likewise.
3647 (referenced_var_iterator_set): New helper function.
3648 * tree-dfa.c (referenced_var_lookup): Adjust.
3649 (referenced_var_check_and_insert): Likewise.
3650 (remove_referenced_var): Likewise.
3651 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3652 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3653 (verify_call_clobbering): Likewise.
3654 (verify_memory_partitions): Likewise.
3655 (init_tree_ssa): Allocate bitmap instead of hashtable for
3656 referenced_vars.
3657 (delete_tree_ssa): Adjust.
3658 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3659 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3660 (compute_tag_properties): Likewise.
3661 (set_initial_properties): Likewise.
3662 (find_partition_for): Likewise.
3663 (update_reference_counts): Likewise.
3664 (dump_may_aliases_for): Likewise.
3665 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3666 (add_call_clobber_ops): Likewise.
3667 (add_call_read_ops): Likewise.
3668 (get_asm_expr_operands): Likewise.
3669 * tree-into-ssa.c (dump_decl_set): Likewise.
3670 (update_ssa): Likewise.
3671 * tree-sra.c (scan_function): Likewise.
3672 (decide_instantiations): Likewise.
3673 (scalarize_parms): Likewise.
3674 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3675 (dsa_named_for): Likewise.
3676 * tree-ssa-structalias.c (update_alias_info): Likewise.
3677 (merge_smts_into): Likewise.
3678
3679 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
3680
3681 PR target/35258
3682 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
3683 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
3684 * alias.h (nonoverlapping_memrefs_p): Likewise.
3685
3686 2008-02-25 Jan Beulich <jbeulich@novell.com>
3687
3688 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
3689 * config/i386/netware-libgcc.exp: Add __bswap?i2,
3690 __emultls_get_address, __emultls_register_common,
3691 __floatundi?f, and _Unwind_GetIPInfo.
3692 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
3693 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
3694 (gen_regparm_prefix): Likewise.
3695 (i386_nlm_encode_section_info): Sync with
3696 config/i386/winnt.c:i386_pe_encode_section_info().
3697 (i386_nlm_maybe_mangle_decl_assembler_name): New.
3698 i386_nlm_mangle_decl_assembler_name): New.
3699 (netware_override_options): New.
3700 * config/i386/netware.h (netware_override_options): Declare.
3701 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
3702 (i386_nlm_mangle_decl_assembler_name): Declare.
3703 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
3704
3705 2008-02-25 Ben Elliston <bje@au.ibm.com>
3706
3707 PR other/32948
3708 * c-decl.c (grokdeclarator): Remove unused local variables
3709 `typedef_type' and `type_as_written'.
3710 * bb-reorder.c
3711 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
3712 unused local variable `has_hot_blocks'.
3713 (fix_crossing_conditional_branches): Remove unused local variable
3714 `prev_bb'.
3715
3716 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
3717
3718 PR middle-end/19984
3719 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
3720 using DEF_C99_BUILTIN.
3721 (BUILT_IN_NANF): Ditto.
3722 (BUILT_IN_NANL): Ditto.
3723
3724 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
3725 Revital Eres <eres@il.ibm.com>
3726
3727 * modulo-sched.c (calculate_must_precede_follow): Address TODO
3728 regarding the order of two dependent insns in the same row.
3729
3730 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
3731
3732 * stor-layout.c (layout_decl): Do not bump the alignment of a
3733 bit-field to more than byte alignment if it is packed.
3734
3735 2008-02-24 David Edelsohn <edelsohn@gnu.org>
3736
3737 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
3738 e300c2 and e300c3.
3739
3740 2008-02-24 Diego Novillo <dnovillo@google.com>
3741
3742 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
3743
3744 PR 33738
3745 * tree-vrp.c (vrp_evaluate_conditional): With
3746 -Wtype-limits, emit a warning when comparing against a
3747 constant outside the natural range of OP0's type.
3748 * c.opt (Wtype-limits): Move ...
3749 * common.opt (Wtype-limits): ... here.
3750
3751 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
3752
3753 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
3754 * config/rs6000/e300c2c3.md: New file.
3755 * config/rs6000/rs6000.c (processor_costs): Add new costs for
3756 e300c2 and e300c3.
3757 (rs6000_override_options): Add e300c2 and e300c3 cases to
3758 processor_target_table. Do not allow usage of Altivec or Spe
3759 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
3760 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
3761 * config/rs6000/rs6000.h (processor_type): Add
3762 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
3763 (ASM_CPU_SPEC): Add e300c2 and e300c3.
3764 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
3765 and ppce300c3. Include e300c2c3.md.
3766
3767 2008-02-23 David Edelsohn <edelsohn@gnu.org>
3768
3769 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
3770 instead of TARGET_STRICT_ALIGN.
3771
3772 2008-02-23 Joseph Myers <joseph@codesourcery.com>
3773
3774 * explow.c (memory_address): Assert that the generated address is
3775 valid.
3776
3777 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3778
3779 PR target/25477
3780 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
3781 * config/darwin-ppc-ldouble-patch.def: New file.
3782 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
3783 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
3784 SUBTARGET_INIT_BUILTINS if defined.
3785 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
3786 New functions.
3787
3788 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
3789
3790 PR rtl-opt/33512
3791 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
3792 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
3793
3794 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
3795
3796 PR pch/35027
3797 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
3798 file" warning condtional on -Winvalid-PCH.
3799
3800 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3801
3802 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
3803
3804 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
3805
3806 PR target/22076
3807 PR target/34256
3808 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
3809 prevent reload from using MMX registers.
3810 (*mov<mode>_internal): Ditto.
3811 (*movv2sf_internal_rex64): Ditto.
3812 (*movv2sf_internal): Ditto.
3813
3814 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3815
3816 PR documentation/31569
3817 * doc/install.texi2html: Use makeinfo --no-number-sections.
3818
3819 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
3820
3821 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
3822 ensure that we can address an entire entity > 8 bytes. Don't
3823 generate reg+reg addressing for such data.
3824
3825 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
3826
3827 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
3828 strings when optimizing for size, unless the target cares about
3829 alignment.
3830
3831 2008-02-22 Tom Tromey <tromey@redhat.com>
3832
3833 * regclass.c (current_pass): Remove declaration.
3834
3835 2008-02-22 Anatoly Sokolov <aesok@post.ru>
3836
3837 * config/avr/libgcc.S (__RAMPZ__): Define.
3838 (__do_copy_data): Add for devices with 128KB code memory.
3839
3840 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
3841
3842 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3843 Use spe_abi.
3844 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
3845
3846 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
3847
3848 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
3849 GENNONACR_REGS.
3850
3851 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3852
3853 PR c/19999
3854 * c-typeck.c (build_binary_op): Warn about floating point
3855 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
3856
3857 2008-02-21 Janis Johnson <janis187@us.ibm.com>
3858
3859 PR target/34526
3860 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
3861 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
3862 add vrsave.
3863 (rs6000_override_options): Set altivec_abi as default, not override,
3864 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
3865 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
3866 is used; use new member spe_abi.
3867 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
3868 spe_abi and altivec_abi.
3869
3870 2008-02-22 Tomas Bily <tbily@suse.cz>
3871
3872 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
3873
3874 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3875
3876 PR bootstrap/35273
3877 * config.build (build_file_translate): Set to `CMD //c' only if
3878 it works.
3879 * Makefile.in (build_file_translate): Improve comment.
3880
3881 2008-02-21 Jan Hubicka <jh@suse.cz>
3882
3883 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
3884 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
3885 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
3886
3887 2008-02-21 Michael Matz <matz@suse.de>
3888
3889 PR target/35264
3890 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
3891
3892 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
3893
3894 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
3895 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
3896 as insn constraint.
3897 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
3898 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
3899 SSE_VEC_FLOAT_MODE_P as insn constraint.
3900 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
3901 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
3902 sse4a_movntdf using MODEF mode iterator.
3903 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
3904 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
3905 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
3906 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
3907 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
3908 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
3909 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
3910
3911 2008-02-21 Richard Guenther <rguenther@suse.de>
3912
3913 * tree.def (PAREN_EXPR): New tree code.
3914 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
3915 and PAREN_EXPR.
3916 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
3917 * expr.c (expand_expr_real_1): Likewise.
3918 * tree-inline.c (estimate_num_insns_1): Likewise.
3919 * tree-complex.c (expand_complex_move): Likewise.
3920 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
3921 as plain x.
3922
3923 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
3924
3925 PR target/35225
3926 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
3927
3928 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
3929
3930 PR target/35190
3931 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
3932
3933 * config/sh/sh.c (find_barrier): Don't go past
3934 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
3935
3936 2008-02-20 DJ Delorie <dj@redhat.com>
3937
3938 * config/h8300/h8300.md (insv): Force source operand to be a register.
3939
3940 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
3941 as a jump, not as a plain insn.
3942
3943 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
3944
3945 * doc/invoke.texi (Warning Options): Add new option
3946 -Wframe-larger-than=.
3947 (-Wframe-larger-than): Document.
3948
3949 * flags.h (warn_frame_larger_than, frame_larger_than_size):
3950 Add declarations for new option variables.
3951
3952 * final.c (final_start_function): Check the frame size
3953 before emission and issue a Wframe-larger-than warning.
3954
3955 * opts.c (warn_frame_larger_than, frame_larger_than_size):
3956 Add definitions for new option variables.
3957 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
3958
3959 * common.opt (Wframe-larger-than=): New option.
3960
3961 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
3962
3963 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
3964 (<sse>_div<mode>3): Ditto.
3965 (<sse>_vmdiv<mode>3): Ditto.
3966 (<sse>_vmsqrt<mode>2): Ditto.
3967 (*smax<mode>3): Ditto.
3968 (sse5_frcz<mode>2): Ditto.
3969 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
3970 as insn constraint.
3971
3972 2008-02-20 Richard Guenther <rguenther@suse.de>
3973
3974 PR middle-end/35265
3975 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
3976 be happy with INTEGRAL_TYPE_P.
3977
3978 2008-02-20 Richard Guenther <rguenther@suse.de>
3979
3980 * fold-const.c (split_tree): Associate floatig-point expressions
3981 if flag_associative_math is set.
3982
3983 2008-02-20 Richard Guenther <rguenther@suse.de>
3984
3985 * tree.h (fold_real_zero_addition_p): Declare.
3986 * fold-const.c (fold_real_zero_addition_p): Export.
3987 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
3988 floating-point operations with zero and one.
3989
3990 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
3991
3992 * doc/install.texi: Correct references to CFLAGS, replacing them
3993 with BOOT_CFLAGS. Document flags used during bootstrap for
3994 target libraries.
3995
3996 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
3997
3998 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
3999 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
4000 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
4001 insn constraint.
4002 (smin<mode>3): Ditto from similar patterns.
4003 (smax<mode>3): Ditto.
4004 (*ieee_smin<mode>3): Ditto.
4005 (*ieee_smax<mode>3): Ditto.
4006 * config/i386/sse.md (sse): New mode attribute.
4007 (mov<mode>): Macroize expander from movv4sf and movv2df using
4008 SSEMODEF2P mode iterator.
4009 (<sse>_movnt<mode>): Ditto from similar patterns. Use
4010 SSE_VEC_FLOAT_MODE_P as insn constraint.
4011 (storent<mode>): Ditto.
4012 (storent<mode>): Macroize expander from storentsf and storentdf using
4013 MODEF mode iterator.
4014 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
4015 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
4016 (abs<mode>2): Ditto from similar patterns.
4017 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
4018 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
4019 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
4020 (<sse>_vmsqrt<mode>2): Ditto.
4021 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
4022 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
4023 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
4024 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
4025 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
4026 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
4027 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
4028 insn constraint.
4029 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
4030 iterator and SSE_FLOAT_MODE_P as insn constraint.
4031 (<sse>_ucomi): Ditto from similar patterns.
4032 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
4033 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
4034 SSE_VEC_FLOAT_MODE_P as insn constraint.
4035 (vcond<mode>): Ditto from similar patterns.
4036 (and<mode>3, *and<mode>3): Ditto.
4037 (<sse>_nand<mode>3): Ditto.
4038 (ior<mode>3, *ior<mode>3): Ditto.
4039 (xor<mode>3, *xor<mode>3): Ditto.
4040 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
4041 iterator and SSE_FLOAT_MODE_P as insn constraint.
4042 (*nand<mode>3): Ditto from similar patterns.
4043 (*ior<mode>3): Ditto.
4044 (*xor<mode>3): Ditto.
4045
4046 2008-02-20 Ira Rosen <irar@il.ibm.com>
4047
4048 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
4049 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
4050 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
4051
4052 2008-02-19 Jan Hubicka <jh@suse.cz>
4053
4054 * predict.c (tree_bb_level_predictions): Remove variable next
4055 mistakely introduced by previous commit.
4056
4057 2008-02-19 Jan Hubicka <jh@suse.cz>
4058
4059 * predict.c (predict_paths_leading_to): Rewrite.
4060 (predict_paths_for_bb): New.
4061 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
4062
4063 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4064
4065 PR bootstrap/35218
4066 * Makefile.in (build_file_translate): New.
4067 (gcc-vers.texi): Use it for translating $(abs_srcdir).
4068 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
4069 * configure.ac (build_file_translate): Substitute it.
4070 * configure: Regenerate.
4071
4072 2008-02-19 Jan Hubicka <jh@suse.cz>
4073
4074 PR rtl-optimization/34408
4075 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
4076 invalid sharing.
4077
4078 2008-02-19 Jan Hubicka <jh@suse.cz>
4079
4080 PR middle-end/28779
4081 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
4082 call_expr.
4083
4084 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
4085
4086 PR Ada/35186
4087 * config/i386/i386-modes.def: Revert the last DI alignment
4088 change until Ada people can look into it.
4089
4090 2008-02-19 Nick Clifton <nickc@redhat.com>
4091
4092 * opts.c (print_specific_help): Fix typo in --help text.
4093
4094 2008-02-19 Jakub Jelinek <jakub@redhat.com>
4095
4096 PR target/35239
4097 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
4098 32-bit inline asm without asm alternatives for host GCC < 3.0.
4099
4100 2008-02-19 Richard Guenther <rguenther@suse.de>
4101
4102 PR tree-optimization/34989
4103 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
4104 Allow propagation to INDIRECT_REF if we can simplify only.
4105
4106 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4107
4108 * c-common.c (warn_for_collisions_1): Use appropriate option when
4109 warning.
4110
4111 2008-02-19 Nick Clifton <nickc@redhat.com>
4112
4113 PR other/31349
4114 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
4115 (handle_options): Fix indentation.
4116 (print_filtered_help): If no language-specific options were
4117 displayed tell the user how to list all the options supported by
4118 the language's front-end.
4119 (print_specific_help): Fix indentation and remove duplicate line.
4120 (common_handle_option): Handle the -v option.
4121 For --help enable the display of undocumented options if the -v
4122 switch has been included on the command line.
4123 For --help= check for overlaps in the arguments between the option
4124 classes and the language names and issue a warning when they
4125 cannot be disambiguated.
4126 * c.opt (v): Pass on to the common option handler.
4127
4128 2008-02-19 Revital Eres <eres@il.ibm.com>
4129
4130 * modulo-sched.c (sms_schedule): Change dump message when
4131 create_ddg function fails.
4132 (try_scheduling_node_in_cycle): Rename row to cycle.
4133 (print_partial_schedule): Rename CYCLE to ROW.
4134
4135 2008-02-19 Christian Bruel <christian.bruel@st.com>
4136 Zdenek Dvorak <ook@ucw.cz>
4137
4138 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
4139
4140 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
4141
4142 PR target/33555
4143 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
4144 (*x86_movdicc_0_m1_se): Ditto.
4145
4146 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
4147
4148 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
4149 (CMPtype): Define as __gcc_CMPtype.
4150 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
4151 (CMPtype): Define as __gcc_CMPtype.
4152
4153 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
4154
4155 Support valgrind 3.3 for --enable-checking=valgrind.
4156 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
4157 here.
4158 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
4159 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
4160 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
4161 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
4162 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
4163 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
4164 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
4165 respectively.
4166 * ggc-zone.c: Similar.
4167 * ggc-page.c: Similar.
4168
4169 2008-02-19 Paul Brook <paul@codesourcery.com>
4170
4171 PR target/35071
4172 * config/arm/ieee754-df.S: Fix do_it typo.
4173 * config/arm/ieee754-sf.S: Fix do_it typo.
4174
4175 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
4176
4177 PR target/35189
4178 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
4179 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
4180 (OPTION_MASK_ISA_SSE_SET): Likewise.
4181 (OPTION_MASK_ISA_SSE2_SET): Likewise.
4182 (OPTION_MASK_ISA_SSE3_SET): Likewise.
4183 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
4184 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
4185 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
4186 (OPTION_MASK_ISA_SSE4_SET): Likewise.
4187 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
4188 (OPTION_MASK_ISA_SSE5_SET): Likewise.
4189 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
4190 (OPTION_MASK_ISA_MMX_UNSET): Updated.
4191 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
4192 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
4193 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
4194 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
4195 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
4196 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
4197 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
4198 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
4199 (OPTION_MASK_ISA_SSE4): Removed.
4200 (ix86_handle_option): Turn on bits in ix86_isa_flags and
4201 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
4202 (override_options): Don't turn on implied SSE/MMX bits in
4203 ix86_isa_flags.
4204
4205 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
4206
4207 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
4208 32bit host.
4209
4210 2008-02-18 Joey Ye <joey.ye@intel.com>
4211
4212 PR middle-end/34921
4213 * tree-nested.c (insert_field_into_struct): Set type alignment
4214 to field alignment if the former is less than the latter.
4215
4216 2008-02-18 Jakub Jelinek <jakub@redhat.com>
4217
4218 * BASE-VER: Set to 4.4.0.
4219
4220 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4221
4222 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
4223 * doc/cfg.texi: Likewise.
4224 * doc/extend.texi: Likewise.
4225 * doc/gty.texi: Likewise.
4226 * doc/invoke.texi: Likewise.
4227 * doc/loop.texi: Likewise.
4228 * doc/md.texi: Likewise.
4229 * doc/passes.texi: Likewise.
4230 * doc/rtl.texi: Likewise.
4231 * doc/sourcebuild.texi: Likewise.
4232 * doc/tm.texi: Likewise.
4233 * doc/tree-ssa.texi: Likewise.
4234
4235 2008-02-17 Richard Guenther <rguenther@suse.de>
4236
4237 PR middle-end/35227
4238 * tree-complex.c (init_parameter_lattice_values): Handle parameters
4239 without default definition.
4240
4241 2008-02-17 Richard Guenther <rguenther@suse.de>
4242
4243 PR tree-optimization/35231
4244 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
4245 if A | B != 1.
4246
4247 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
4248
4249 Revert:
4250 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4251 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
4252 libgcc_cmp_return mode.
4253
4254 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4255
4256 PR c/28368
4257 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
4258
4259 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
4260
4261 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
4262 multilibs.
4263
4264 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4265
4266 * doc/c-tree.texi: Use `@.' where appropriate.
4267 * doc/extend.texi: Likewise.
4268 * doc/install.texi: Likewise.
4269 * doc/invoke.texi: Likewise.
4270 * doc/loop.texi: Likewise.
4271 * doc/makefile.texi: Likewise.
4272 * doc/md.texi: Likewise.
4273 * doc/passes.texi: Likewise.
4274 * doc/standards.texi: Likewise.
4275 * doc/tm.texi: Likewise.
4276
4277 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4278
4279 PR middle-end/35196
4280 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
4281 in entry_bb.
4282 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
4283 rather than in entry_bb.
4284
4285 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4286
4287 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
4288 libgcc_cmp_return mode.
4289
4290 2008-02-15 Jakub Jelinek <jakub@redhat.com>
4291
4292 PR middle-end/35130
4293 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
4294 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
4295
4296 2008-02-15 Richard Guenther <rguenther@suse.de>
4297 Zdenek Dvorak <ook@ucw.cz>
4298
4299 PR tree-optimization/35164
4300 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
4301 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
4302 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
4303 Only propagate addresses which do not have abnormal SSA_NAMEs
4304 in their operands.
4305
4306 2008-02-15 Joseph Myers <joseph@codesourcery.com>
4307
4308 PR target/35088
4309 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
4310
4311 2008-02-15 Jan Hubicka <jh@suse.cz>
4312
4313 PR middle-end/35149
4314 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
4315
4316 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4317
4318 PR middle-end/34621
4319 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
4320 when calculating alignment_pad.
4321
4322 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
4323
4324 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
4325 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
4326 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
4327 and STACK_BOUNDARY define.
4328
4329 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
4330
4331 PR preprocessor/35061
4332 * c-pragma.c (handle_pragma_pop_macro): Check that
4333 pushed_macro_table has been allocated.
4334
4335 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
4336
4337 PR middle-end/35136
4338 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
4339 (force_gimple_operand): Likewise.
4340 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
4341 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
4342 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
4343 (find_interesting_uses_address): Check addressability and alignment
4344 of the base expression only after substituting bases of IVs into it.
4345
4346 2008-02-14 Michael Matz <matz@suse.de>
4347
4348 PR target/34930
4349 * function.c (instantiate_virtual_regs_in_insn): Reload address
4350 before falling back to reloading the whole operand.
4351
4352 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
4353
4354 * config/s390/s390.c (s390_mainpool_start): Emit the pool
4355 before the first section switch note.
4356
4357 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4358
4359 * doc/bugreport.texi: Update copyright years.
4360 * doc/c-tree.texi: Likewise.
4361 * doc/cfg.texi: Likewise.
4362 * doc/cpp.texi: Likewise.
4363 * doc/cppinternals.texi: Likewise.
4364 * doc/fragments.texi: Likewise.
4365 * doc/frontends.texi: Likewise.
4366 * doc/gcc.texi: Likewise.
4367 * doc/gty.texi: Likewise.
4368 * doc/hostconfig.texi: Likewise.
4369 * doc/implement-c.texi: Likewise.
4370 * doc/libgcc.texi: Likewise.
4371 * doc/loop.texi: Likewise.
4372 * doc/makefile.texi: Likewise.
4373 * doc/options.texi: Likewise.
4374 * doc/passes.texi: Likewise.
4375 * doc/rtl.texi: Likewise.
4376 * doc/sourcebuild.texi: Likewise.
4377 * doc/standards.texi: Likewise.
4378 * doc/tree-ssa.texi: Likewise.
4379 * doc/trouble.texi: Likewise.
4380
4381 * doc/extend.texi: Use @: or add comma where appropriate.
4382 * doc/invoke.texi: Likewise.
4383 * doc/tm.texi: Likewise.
4384
4385 2008-02-14 Alan Modra <amodra@bigpond.net.au>
4386
4387 PR target/34393
4388 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
4389 to a reg.
4390
4391 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
4392
4393 * doc/md.texi (clz, ctz): Add reference.
4394 * doc/rtl.texi (clz, ctz): Likewise.
4395
4396 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4397
4398 PR other/35148
4399 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
4400 srcdir.
4401
4402 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
4403
4404 * config/s390/s390.c (struct constant_pool): New field
4405 emit_pool_after added.
4406 (s390_mainpool_start): Set the emit_pool_after flag according
4407 to the section switch notes.
4408 (s390_mainpool_finish): Consider emit_pool_after when emitting
4409 the literal pool at the end of the function.
4410 (s390_chunkify_start): Force literal pool splits at section
4411 switch notes.
4412
4413 2008-02-13 Michael Matz <matz@suse.de>
4414
4415 PR debug/35065
4416 * var-tracking.c (clobber_variable_part): Correctly traverse the
4417 list.
4418
4419 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4420
4421 PR 29673
4422 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
4423 Add -fdump-ipa-inline.
4424 * tree-dump.c (dump_files): Remove tree-inlined dump.
4425 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
4426
4427 2008-02-12 Richard Guenther <rguenther@suse.de>
4428
4429 PR tree-optimization/35171
4430 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
4431 default defs.
4432
4433 2008-02-12 Richard Guenther <rguenther@suse.de>
4434
4435 PR middle-end/35163
4436 * fold-const.c (fold_widened_comparison): Use get_unwidened in
4437 value-preserving mode. Disallow final truncation.
4438
4439 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
4440
4441 PR middle-end/35136
4442 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
4443 code from here to...
4444 (force_gimple_operand): ...here.
4445
4446 2008-02-12 Jakub Jelinek <jakub@redhat.com>
4447
4448 PR c++/35144
4449 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
4450 non-compatible pointers.
4451 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
4452 different FIELD_DECLs, try harder by comparing field offsets, sizes
4453 and types.
4454
4455 PR inline-asm/35160
4456 * function.c (match_asm_constraints_1): Don't replace the same input
4457 multiple times.
4458
4459 2008-02-12 Anatoly Sokolov <aesok@post.ru>
4460
4461 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
4462 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
4463 (expand_epilogue): Restore RAMPZ register.
4464 * config/avr/avr.md (RAMPZ_ADDR): New constant.
4465
4466 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
4467
4468 * config/i386/cygwin.asm: (__alloca): Correct calling
4469 convention and alignment.
4470 (__chkstk): Force 8 byte stack alignment.
4471
4472 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
4473 Richard Guenther <rguenther@suse.de>
4474
4475 PR tree-optimization/33992
4476 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
4477 the zero we compare against.
4478
4479 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
4480
4481 PR libfortran/35063
4482 * gthr-win32.h (__gthread_mutex_destroy_function): New function
4483 to CloseHandle after unlocking to prevent accumulation of handle
4484 count.
4485
4486 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4487
4488 PR middle_end/34150
4489 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
4490 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
4491 and update LABEL_NUSES during and after reload.
4492
4493 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
4494
4495 PR middle-end/34627
4496 * combine.c (simplify_if_then_else): Make sure the comparison is
4497 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
4498
4499 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
4500
4501 PR bootstrap/35051
4502 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
4503 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
4504 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
4505 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
4506 * tree.h (get_type_static_bounds): Likewise.
4507
4508 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4509
4510 * doc/invoke.texi (Option Summary, C++ Dialect Options)
4511 (Objective-C and Objective-C++ Dialect Options, Warning Options):
4512 Make -Wfoo language annotations match what the compiler outputs.
4513
4514 2008-02-08 Sa Liu <saliu@de.ibm.com>
4515
4516 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
4517 intrinsics spu_convts, spu_convtu, spu_convtf.
4518 * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
4519
4520 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
4521
4522 * doc/extend.texi (Function Attributes) <noinline>: Mention
4523 asm ("") as method to keep calls.
4524
4525 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4526
4527 PR other/32754
4528 * doc/options.texi (Options): Replace references to opts.sh with
4529 optc-gen.awk.
4530 * opts-common.c: Likewise.
4531 * optc-gen.awk: Likewise.
4532
4533 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
4534
4535 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
4536
4537 2008-02-07 Richard Henderson <rth@redhat.com>
4538
4539 PR rtl-opt/33410
4540 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
4541 EXPR_LIST for the REG_EQUAL instead of a comparison with a
4542 funny mode.
4543
4544 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
4545
4546 PR tree-optimization/35085
4547 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
4548 for operand entry oe2 in addition to operand entry oe3 in order to
4549 expose more opportunities for vectorizer sum reduction.
4550
4551 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4552
4553 PR other/35107
4554 * Makefile.in (LIBS): Remove $(GMPLIBS).
4555 (cc1-dummy, cc1): Add $(GMPLIBS).
4556
4557 2008-02-06 Jan Hubicka <jh@suse.cz>
4558
4559 PR target/23322
4560 * i386.md (moddf_integer): Do not produce partial memory stalls for
4561 targets where it hurts.
4562
4563 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
4564
4565 PR target/35083
4566 * optabs.c (expand_float): Do not check for decimal modes when
4567 expanding unsigned integer through signed conversion.
4568
4569 2008-02-06 Nick Clifton <nickc@redhat.com>
4570
4571 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
4572 inside the clobber with a match_operand and duplicated operand
4573 number in the constraint.
4574 (ineqbranchsi): Delete redundant comment.
4575
4576 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
4577
4578 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
4579 builtin_define ("__USE_INIT_FINI__").
4580 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
4581 -msx multilibs.
4582 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
4583
4584 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4585
4586 PR documentation/30330
4587 * doc/invoke.texi (C++ Dialect Options)
4588 (Objective-C and Objective-C++ Dialect Options, Warning Options):
4589 For each warning option -Wfoo that allows -Wno-foo, ensure both
4590 -Wfoo and -Wno-foo are listed in the option index. Fix index
4591 entry of -Wswitch-default, index -Wnormalized= including the
4592 `=', and -Wlarger-than-@var{len} including @var{len}.
4593
4594 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
4595
4596 * config/i386/i386.md (floatunssisf2): Use
4597 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
4598 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
4599 Macroize expander using MODEF mode iterator.
4600
4601 2008-02-05 Diego Novillo <dnovillo@google.com>
4602
4603 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
4604
4605 PR 33738
4606 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
4607
4608 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4609
4610 PR other/35070
4611 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
4612
4613 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
4614
4615 PR target/35084
4616 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
4617 to indicate if a message should be generated.
4618 (init_cumulative_args): Updated.
4619 (function_value_32): Likewise.
4620
4621 2008-02-05 Joseph Myers <joseph@codesourcery.com>
4622
4623 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
4624
4625 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
4626
4627 PR target/35083
4628 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
4629 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
4630
4631 2008-02-04 Diego Novillo <dnovillo@google.com>
4632
4633 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
4634
4635 PR 33738
4636 * tree-vrp.c (vrp_evaluate_conditional): With
4637 -Wtype-limits, emit a warning when comparing against a
4638 constant outside the natural range of OP0's type.
4639
4640 2008-02-04 Richard Guenther <rguenther@suse.de>
4641
4642 PR middle-end/33631
4643 * expr.c (count_type_elements): Give for unions instead of
4644 guessing.
4645
4646 2008-02-04 Richard Guenther <rguenther@suse.de>
4647
4648 PR middle-end/35043
4649 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
4650 to TYPE_DOMAINs base type instead of using bitsizetype here.
4651
4652 2008-02-03 Jason Merrill <jason@redhat.com>
4653
4654 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
4655
4656 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4657
4658 PR other/29972
4659 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
4660 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
4661 (RS/6000 and PowerPC Options): Fix typos and markup.
4662 * doc/passes.texi (Tree-SSA passes): Likewise.
4663
4664 2008-02-02 Michael Matz <matz@suse.de>
4665
4666 PR target/35045
4667 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
4668 from record_last_reg_set_info.
4669 (record_last_reg_set_info): Take an RTX argument, iterate over all
4670 constituent hardregs.
4671 (record_last_set_info, record_opr_changes): Change calls to
4672 new signature or to record_last_reg_set_info_regno.
4673
4674 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
4675
4676 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
4677
4678 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
4679
4680 PR rtl-optimization/34773
4681 * reg-notes.def (EQUAL): Mention significance of combination of
4682 REG_EQUAL and REG_RETVAL.
4683 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
4684 insn that has a REG_RETVAL.
4685
4686 2008-02-01 Roger Sayle <roger@eyesopen.com>
4687
4688 PR bootstrap/33781
4689 * configure.ac (--enable-fixed-point): Disable unless explicitly
4690 requested on IRIX.
4691 * configure: Regenerate.
4692
4693 2008-02-01 Richard Guenther <rguenther@suse.de>
4694
4695 PR other/35042
4696 * invoke.texi (-finline-limit): Remove no longer true parts
4697 of the documentation. Note that there is no default value.
4698
4699 2008-02-01 Andrew Pinski <pinskia@gmail.com>
4700 Mark Mitchell <mark@codesourcery.com>
4701 Ben Elliston <bje@au.ibm.com>
4702
4703 PR c/29326
4704 * doc/extend.texi (Other Builtins): Document.
4705
4706 2008-01-31 Tom Browder <tom.browder@gmail.com>
4707
4708 * doc/c-tree.texi (Types): Fix grammar.
4709 (Expression trees): Ditto.
4710 * doc/passes.texi (Tree-SSA passes): Ditto.
4711
4712 * doc/configterms.texi (Configure Terms): Fix typo.
4713 * doc/cpp.texi (Common Predefined Macros): Ditto.
4714 * doc/md.texi (Machine Constraints): Ditto.
4715
4716 * doc/makefile.texi (Makefile): Add comma.
4717
4718 2008-01-31 Tom Browder <tom.browder@gmail.com>
4719 Gerald Pfeifer <gerald@pfeifer.com>
4720
4721 * doc/sourcebuild.texi (Front End): Remove references to CVS
4722 and CVSROOT/modules.
4723 (Texinfo Manuals): Replace reference to CVS by one to SVN.
4724 (Back End): Remove reference to CVS.
4725
4726 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
4727
4728 PR target/34900
4729 * config/mips/mips.c (gen_load_const_gp): New function, taking a
4730 comment from...
4731 (mips16_gp_pseudo_reg): ...here.
4732 * config/mips/mips.md (load_const_gp): Replace with...
4733 (load_const_gp_<mode>): ...this :P-based insn.
4734
4735 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4736
4737 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
4738 options. Minor fixes.
4739 (-std): Move reference to standards closer to where language
4740 standards are first mentioned.
4741
4742 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
4743
4744 PR rtl-optimization/34995
4745 * reload.c (alternative_allows_const_pool_ref): Take an rtx
4746 parameter and return a bool. If the rtx parameter is nonnull,
4747 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
4748 (find_reloads): Update call accordingly. Pass the new operand
4749 if it needed no address reloads, otherwise pass null.
4750
4751 2008-01-30 Richard Henderson <rth@redhat.com>
4752
4753 PR c/34993
4754 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
4755 for unbounded arrays.
4756
4757 2008-01-30 Silvius Rus <rus@google.com>
4758
4759 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
4760
4761 2008-01-30 Jan Hubicka <jh@suse.cz>
4762
4763 PR target/34982
4764 * i386.c (init_cumulative_args): Use real function declaration when
4765 calling locally.
4766
4767 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
4768
4769 PR rtl-optimization/34998
4770 * global.c (build_insn_chain): Treat non-subreg_lowpart
4771 SUBREGs of pseudos as clobbering all the words covered by the
4772 SUBREG, not just all the bytes.
4773 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
4774 original df_ref rather than an extract parameter.
4775 (global_conflicts): Update call accordingly.
4776
4777 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
4778
4779 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
4780 the overflow check to make it easier to read.
4781 (__fixtfdi): Change the type of the ll member in union
4782 long_double to UDItype_x.
4783
4784 2008-01-30 Jakub Jelinek <jakub@redhat.com>
4785
4786 PR middle-end/34969
4787 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
4788 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
4789 * tree-inline.c (fold_marked_statements): Call
4790 cgraph_update_edges_for_call_stmt if folding a call statement.
4791 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
4792 debug_generic_stmt calls, reset it back afterwards.
4793
4794 PR c/35017
4795 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
4796 static decls.
4797 * c-typeck.c (build_external_ref): Don't pedwarn about
4798 static vars in current function's scope.
4799
4800 2008-01-29 Joseph Myers <joseph@codesourcery.com>
4801
4802 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
4803
4804 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
4805
4806 PR c/35002
4807 * ipa-struct-reorg.c: Fix spelling.
4808 * params.def: Ditto.
4809
4810 2008-01-29 Richard Guenther <rguenther@suse.de>
4811
4812 PR middle-end/35006
4813 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
4814 field.
4815 * tree-inline.c (remap_type): Increment remapping_type_depth
4816 around remapping types.
4817 (copy_body_r): Only add referenced variables if they are referenced
4818 from code, not types.
4819
4820 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
4821
4822 PR c++/34055
4823 PR c++/34103
4824 PR c++/34219
4825 PR c++/34606
4826 PR c++/34753
4827 PR c++/34754
4828 PR c++/34755
4829 PR c++/34919
4830 PR c++/34961
4831 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
4832 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
4833
4834 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
4835
4836 PR target/34412
4837 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
4838 pointer for tiny stack.
4839
4840 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
4841
4842 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
4843
4844 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
4845
4846 * config/vx-common.h: Fix typo in comment.
4847
4848 2008-01-28 Ian Lance Taylor <iant@google.com>
4849
4850 PR c++/34862
4851 PR c++/33407
4852 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
4853 coalesce pointers if they have different DECL_NO_TBAA_P values.
4854 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
4855 between variables with different DECL_NO_TBAA_P values.
4856
4857 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
4858
4859 PR 31535
4860 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
4861 are not legitimate small data references on SPE targets.
4862
4863 2008-01-28 David Daney <ddaney@avtrex.com>
4864
4865 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
4866
4867 2008-01-28 David Daney <ddaney@avtrex.com>
4868
4869 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
4870
4871 2008-01-27 Joseph Myers <joseph@codesourcery.com>
4872
4873 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
4874 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
4875 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
4876 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
4877 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
4878 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
4879 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
4880 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
4881
4882 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
4883
4884 * basic-block.h (condjump_equiv_p): Fix comment.
4885
4886 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
4887
4888 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
4889 print_generic_stmt_indented): Fix comment.
4890
4891 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
4892
4893 * configure.ac (__stack_chk_fail): Add detecion for availability
4894 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
4895 * configure: Regenerate.
4896
4897 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
4898
4899 PR middle-end/34688
4900 * final.c (output_addr_const): Handle TRUNCATE.
4901
4902 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
4903
4904 PR target/34711
4905 * tree-ssa-loop-ivopts.c (comp_cost): New type.
4906 (zero_cost, infinite_cost): New constants.
4907 (struct cost_pair): Change type of cost to comp_cost.
4908 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
4909 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
4910 New functions.
4911 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
4912 split_address_cost, ptr_difference_cost, difference_cost,
4913 get_computation_cost_at, get_computation_cost,
4914 determine_use_iv_cost_generic, determine_use_iv_cost_address,
4915 determine_use_iv_cost_condition, determine_use_iv_costs,
4916 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
4917 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
4918 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
4919 Change type of cost to comp_cost.
4920 (determine_iv_cost): Increase cost of non-original ivs, instead
4921 of decreasing the cost of original ones.
4922 (get_address_cost): Indicate the complexity of the addressing mode
4923 in comp_cost.
4924 (try_add_cand_for): Prefer using ivs not specific to some object.
4925 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
4926
4927 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
4928 Janis Johnson <janis187@us.ibm.com>
4929
4930 PR target/34814
4931 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
4932 (TARGET_INSTANTIATE_DECLS): Likewise.
4933 * target.h (expand_to_rtl_hook): New target hook.
4934 (instantiate_decls): Likewise.
4935 * function.c (instantiate_decl): Make non-static. Rename to...
4936 (instantiate_decl_rtl): ... this.
4937 (instantiate_expr): Use instantiate_decl_rtl.
4938 (instantiate_decls_1): Likewise.
4939 (instantiate_decls): Likewise.
4940 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
4941 * function.h (instantiate_decl_rtl): Add prototype.
4942 * cfgexpand.c (target.h): New include.
4943 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
4944 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
4945 (TARGET_INSTANTIATE_DECLS): Likewise.
4946 (TARGET_INITIALIZER): New target hooks added.
4947 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
4948 New prototype.
4949 * config/rs6000/rs6000.c (tree-flow.h): New include.
4950 (machine_function): Add sdmode_stack_slot field.
4951 (rs6000_alloc_sdmode_stack_slot): New function.
4952 (rs6000_instantiate_decls): Likewise.
4953 (rs6000_secondary_memory_needed_rtx): Likewise.
4954 (rs6000_check_sdmode): Likewise.
4955 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
4956 (TARGET_INSTANTIATE_DECLS): Likewise.
4957 (rs6000_hard_regno_mode_ok): Allow SDmode.
4958 (num_insns_constant): Likewise. Handle _Decimal32 constants.
4959 (rs6000_emit_move): Handle SDmode.
4960 (function_arg_advance): Likewise.
4961 (function_arg): Likewise.
4962 (rs6000_gimplify_va_arg): Likewise. Add special handling of
4963 SDmode var args for 32-bit compiles.
4964 (rs6000_secondary_reload_class): Handle SDmode.
4965 (rs6000_output_function_epilogue): Likewise.
4966 (rs6000_function_value): Simplify if statement.
4967 (rs6000_libcall_value): Likewise.
4968 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
4969 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
4970 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
4971 (movsd_hardfloat): New define_insn.
4972 (movsd_softfloat): Likewise.
4973 (movsd_store): Likewise.
4974 (movsd_load): Likewise.
4975 (extendsddd2): Likewise.
4976 (extendsdtd2): Likewise.
4977 (truncddsd2): Likewise.
4978 (movdd_hardfloat64): Fixup comment.
4979 (UNSPEC_MOVSD_LOAD): New constant.
4980 (UNSPEC_MOVSD_STORE): Likewise.
4981
4982 2008-01-26 Jakub Jelinek <jakub@redhat.com>
4983
4984 PR c++/34965
4985 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
4986 TRUTH_XOR_EXPR.
4987 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
4988 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
4989 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
4990 and TRUTH_XOR_EXPR.
4991
4992 2008-01-26 David Edelsohn <edelsohn@gnu.org>
4993
4994 PR target/34794
4995 * config.gcc: Separate AIX 5.3 from AIX 6.1.
4996 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4997 __LONGDOUBLE128 too.
4998 * config/rs6000/aix61.h: New file.
4999
5000 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
5001
5002 PR rtl-optimization/34959
5003 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
5004 popcount and parity rtxes the same mode as their operand.
5005 Truncate or extend the result to the return value's mode
5006 if necessary.
5007
5008 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
5009
5010 PR target/34981
5011 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
5012 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
5013 to GOT_VERSION_REGNUM.
5014 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
5015 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
5016 * config/mips/mips.c (mips_emit_call_insn): New function.
5017 (mips_call_tls_get_addr): Call mips_expand_call directly.
5018 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
5019 emit_call_insn.
5020 (mips16_build_call_stub): Likewise. Return the call insn or null.
5021 (mips_expand_call): Update the call to mips16_build_call_stub
5022 accordingly and a remove redundant condition. Assert that MIPS16
5023 stubs do not use lazy binding. Use mips_emit_call_insn and return
5024 the call insn.
5025 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
5026 TARGET_USE_GOT.
5027 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
5028 (mips_avoid_hazard): Remove hazard_set handling.
5029 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
5030 (UNSPEC_RESTORE_GP): ...this.
5031 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
5032 (FAKE_CALL_REGNO): Rename to...
5033 (GOT_VERSION_REGNUM): ...this.
5034 (type): Add "ghost" value. Add an associated insn reservation.
5035 (hazard_set): Remove.
5036 (exception_receiver): Rename to...
5037 (restore_gp): ...this and update the unspec identifier accordingly.
5038 (exception_receiver, nonlocal_got_receiver): New expanders.
5039 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
5040 FAKE_CALL_REGNO. Remove hazard_set attribute.
5041 (set_got_version, update_got_version): New patterns.
5042
5043 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
5044
5045 PR target/34970
5046 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
5047
5048 2008-01-25 Joseph Myers <joseph@codesourcery.com>
5049
5050 PR other/31955
5051 * doc/install.texi2html: Generate gcc-vers.texi.
5052
5053 2008-01-25 DJ Delorie <dj@redhat.com>
5054
5055 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5056
5057 2008-01-25 Joseph Myers <joseph@codesourcery.com>
5058
5059 * config/c4x: Remove directory.
5060 * config.gcc (crx-*, mt-*): Mark obsolete.
5061 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
5062 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
5063 sh-*-rtemscoff*): Remove cases.
5064 * defaults.h (C4X_FLOAT_FORMAT): Remove.
5065 * real.c (encode_c4x_single, decode_c4x_single,
5066 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
5067 c4x_extended_format): Remove.
5068 * real.h (c4x_single_format, c4x_extended_format): Remove.
5069 * doc/extend.texi (interrupt, naked): Remove mention of attributes
5070 on C4x.
5071 (Pragmas): Remove comment about c4x pragmas.
5072 * doc/install.texi (c4x): Remove target-specific instructions.
5073 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
5074 * doc/md.texi (Machine Constraints): Remove C4x documentation.
5075 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
5076 refer to C4x source files as examples.
5077 (C4X_FLOAT_FORMAT): Remove documentation.
5078
5079 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
5080
5081 * config/bfin/bfin.c (override_options): Reorder tests so that
5082 flag_pic gets enabled for -msep-data.
5083
5084 2008-01-25 Richard Guenther <rguenther@suse.de>
5085
5086 PR middle-end/32244
5087 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
5088 to its bitfield precision if required.
5089
5090 2008-01-25 Jakub Jelinek <jakub@redhat.com>
5091
5092 PR middle-end/33880
5093 * tree-nested.c (walk_omp_for): New function.
5094 (convert_nonlocal_reference, convert_local_reference): Call
5095 walk_omp_for on OMP_FOR.
5096 (convert_call_expr): Call walk_body on OMP_FOR's
5097 OMP_FOR_PRE_INIT_BODY.
5098
5099 2008-01-25 Richard Guenther <rguenther@suse.de>
5100
5101 PR tree-optimization/34966
5102 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
5103 default defs and PHI_NODEs we have to insert after the
5104 defining statement.
5105
5106 2008-01-24 Nick Clifton <nickc@redhat.com>
5107
5108 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
5109 Provide a default definition.
5110 (LIBGCC2_UNITS_PER_WORD): Likewise.
5111
5112 * config/stormy16/stormy16.c: Include df.h for the prototype
5113 for df_regs_ever_live_p.
5114 (xstormy16_expand_builtin_va_start): Convert the stack offset
5115 into a component_ref and then use POINTER_PLUS_EXPR to add it
5116 to the incoming_virtual_args_rtx.
5117 (xstormy16_gimplify_va_arg_expr): Rename to
5118 xstormy16_gimplify_va_arg_expr.
5119 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
5120 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
5121 xstormy16_gimplify_va_arg_expr.
5122 Fix up some formatting issues.
5123
5124 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
5125 Move to predicates.md.
5126 (xs_hi_general_operand): Likewise.
5127 (xs_hi_nonmemory_operand): Likewise.
5128 * config/stormy16/predicates.md:
5129 (xstormy16_carry_plus_operand): New predicate.
5130 (xs_hi_general_operand): New predicate.
5131 (xs_hi_nonmemory_operand): New predicate.
5132 * config/stormy16/stormy16-protos.h:
5133 (xstormy16_carry_plus_operand): Delete prototype.
5134 (xs_hi_general_operand): Likewise.
5135 (xs_hi_nonmemory_operand): Likewise.
5136
5137 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
5138 modifiers as they are no longer needed and they can trigger
5139 reload spill failures.
5140
5141 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
5142 with a match_operand in order to help reload.
5143
5144 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
5145 constraint with 'e' for the 8th alternative as this version of
5146 the mov.w instruction only accepts the lower 8 registers.
5147
5148 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
5149
5150 PR target/34856
5151 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
5152 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
5153 vector elements.
5154
5155 2008-01-25 Jakub Jelinek <jakub@redhat.com>
5156
5157 PR middle-end/33333
5158 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
5159
5160 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
5161
5162 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
5163 New functions.
5164 (remove_structure): Update allocations list before removing structure.
5165
5166 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
5167
5168 * ipa-struct-reorg.c (is_safe_cond_expr,
5169 create_new_stmts_for_cond_expr): Use integer_zerop function,
5170 that recognize not only zero-pointer, but zero-integer too.
5171
5172 2008-01-25 Ben Elliston <bje@au.ibm.com>
5173
5174 PR other/22232
5175 * fixproto: Escape "." in sed expression that strips leading "./".
5176
5177 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
5178
5179 PR driver/34904
5180 * gcc.c (SWITCH_OK): Removed.
5181 (SWITCH_LIVE): Changed to bit.
5182 (SWITCH_FALSE): Likewise.
5183 (SWITCH_IGNORE): Likewise.
5184 (switchstr): Change live_cond to unsigned int.
5185 (process_command): Replace SWITCH_OK with 0.
5186 (do_self_spec): Likewise.
5187 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
5188 (give_switch): Likewise.
5189 (used_arg): Likewise.
5190 (do_spec_1): Set the SWITCH_IGNORE bit.
5191 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
5192 bits. Set the SWITCH_LIVE bit.
5193
5194 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
5195
5196 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
5197
5198 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
5199
5200 PR tree-optimization/34472
5201 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
5202 parameter to a "bool *" and set *DATA to false if there is
5203 an unsafe access. Do not delete the structure here.
5204 (check_cond_exprs): Delete it here instead.
5205 (check_cond_exprs, exclude_cold_structs): Do not increase
5206 I when removing a structure.
5207
5208 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
5209
5210 PR target/34856
5211 * config/i386/i386.c (ix86_expand_vector_init): Consider only
5212 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
5213
5214 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
5215
5216 PR middle-end/34934
5217 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
5218 a fixed vector for stack.
5219
5220 2008-01-24 Ben Elliston <bje@au.ibm.com>
5221
5222 PR c++/25701
5223 * doc/gcc.texi (Software development): Add a direntry for g++.
5224
5225 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
5226
5227 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
5228 stale and straggling -fforce-addr comments above.
5229
5230 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
5231 define.
5232 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
5233 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
5234
5235 2008-01-23 Michael Matz <matz@suse.de>
5236
5237 PR debug/34895
5238 * dwarf2out.c (force_type_die): Use modified_type_die instead of
5239 gen_type_die.
5240
5241 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
5242
5243 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
5244 malloc result type.
5245
5246 2008-01-23 Anatoly Sokolov <aesok@post.ru>
5247
5248 * config/avr/avr.c (avr_current_arch): New variable.
5249 (avr_arch_types): Add 'avr31' and 'avr51' entries.
5250 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
5251 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
5252 (avr_override_options): Init 'avr_current_arch'.
5253 (base_arch_s): Move from here...
5254 * config/avr/avr.h (base_arch_s): ... here. Add new members
5255 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
5256 'mega' to 'have_jmp_call'.
5257 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
5258 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
5259 macros.
5260 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
5261 architectures.
5262 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5263 MULTILIB_MATCHES): (Ditto.).
5264
5265 2008-01-23 Richard Guenther <rguenther@suse.de>
5266
5267 PR middle-end/31529
5268 * cgraphunit.c (cgraph_reset_node): Always mark the node
5269 not reachable if it is not queued already.
5270
5271 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
5272
5273 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
5274 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
5275 (cputype_selected): New static variable.
5276 (bfin_handle_option): Set it if -mcpu is used.
5277 (override_option): Select default set of workarounds if no cpu type
5278 selected on the command line.
5279 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
5280
5281 From Michael Frysinger <michael.frysinger@analog.com>
5282 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
5283 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
5284
5285 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
5286 for bf547, bf523, bf524, and bf526.
5287 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
5288 bf526.
5289 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
5290 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
5291 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
5292 __ADSPBF547__ and __ADSPBF54x__ for bf547.
5293 * doc/invoke.texi (Blackfin Options): Document that
5294 -mcpu now accept bf547, bf523, bf524, and bf526.
5295
5296 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
5297
5298 PR rtl-optimization/34628
5299 * combine.c (try_combine): Stop and undo after the first combination
5300 if an autoincrement side-effect on the first insn has effectively
5301 been lost.
5302
5303 2008-01-22 David Edelsohn <edelsohn@gnu.org>
5304
5305 PR target/34529
5306 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
5307 Offset addresses are not valid for Altivec or paired float modes.
5308
5309 2008-01-22 Jakub Jelinek <jakub@redhat.com>
5310
5311 PR c++/34607
5312 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
5313 if DECL_INITIAL (decl) is error_mark_node.
5314
5315 PR c++/34914
5316 * c-common.c (handle_vector_size_attribute): Only allow
5317 integral, scalar float and fixed point types. Handle OFFSET_TYPE
5318 the same way as pointer, array etc. types.
5319 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
5320
5321 PR c++/34917
5322 * tree.c (build_type_attribute_qual_variant): Call
5323 build_qualified_type if attributes are equal, but quals are not.
5324
5325 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5326
5327 PR 32102
5328 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
5329 * flags.h (warn_strict_aliasing): Remove.
5330 (warn_strict_overflow): Remove.
5331 * opts.c (warn_strict_aliasing): Remove.
5332 (warn_strict_overflow): Remove.
5333 * c-opts.c (c_common_handle_option): -Wall only sets
5334 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
5335 (c_common_post_options): Give default values to -Wstrict-aliasing
5336 and -Wstrict-overflow if they are uninitialized.
5337 * common.opt (Wstrict-aliasing): Specify Var and Init.
5338 (Wstrict-overflow): Likewise.
5339
5340 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
5341
5342 PR rtl-optimization/26854
5343 PR rtl-optimization/34400
5344 PR rtl-optimization/34884
5345 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
5346 DF_RD->gen.
5347 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
5348 (df_rd_bb_info.expanded_lr_out): Deleted
5349 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
5350 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
5351 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
5352 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
5353 Removed code to allocate, initialize or free expanded_lr_out.
5354 (df_rd_bb_local_compute_process_def): Restructured to make more
5355 understandable.
5356 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
5357 sets if the sets are being trimmed.
5358
5359 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
5360
5361 PR bootstrap/32287
5362 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
5363 (as_vers): Likewise.
5364 * configure: Regenerated.
5365
5366 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5367
5368 PR middle-end/33092
5369 * tree-pass.h (pass_build_alias): New pass.
5370 * tree-ssa-alias.c (gate_build_alias): New.
5371 (pass_build_alias): New.
5372 * passes.c (init_optimization_passes): Add pass_build_alias after
5373 pass_create_structure_vars.
5374
5375 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
5376
5377 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
5378 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
5379 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
5380 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
5381 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
5382 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
5383 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
5384 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
5385 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
5386 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
5387 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
5388 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
5389 * config/s390/s390.md (FP_ALL): New mode iterator.
5390 (_d): New mode attribute.
5391 ("*signbit<mode>2>"): Changed mode of first operand.
5392 ("isinf<mode>2"): Changed mode of first operand.
5393 ("*TDC_insn"): Adaptation for DFP modes.
5394
5395 2008-01-22 Ben Elliston <bje@au.ibm.com>
5396
5397 * tree.c (check_qualified_type): Improve function description.
5398
5399 2008-01-21 Jason Merrill <jason@redhat.com>
5400
5401 PR c++/34196
5402 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
5403 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
5404 if it is set.
5405
5406 2008-01-21 DJ Delorie <dj@redhat.com>
5407
5408 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
5409 return zero.
5410
5411 2008-01-21 Richard Guenther <rguenther@suse.de>
5412
5413 PR middle-end/34856
5414 * tree-cfg.c (verify_expr): Allow all invariant expressions
5415 instead of just constant class ones as reference argument.
5416 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
5417 like any other constant.
5418 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
5419
5420 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
5421
5422 * regmove.c (fixup_match_1): Update call crossed frequencies.
5423
5424 2008-01-21 Richard Guenther <rguenther@suse.de>
5425
5426 PR c/34885
5427 * tree-inline.c (setup_one_parameter): Deal with mismatched
5428 types using a VIEW_CONVERT_EXPR.
5429
5430 2008-01-21 Alon Dayan <alond@il.ibm.com>
5431 Olga Golovanevsky <olga@il.ibm.com>
5432
5433 PR tree-optimization/34701
5434 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
5435 when the structure size is not a power of 2.
5436
5437 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
5438
5439 * doc/install.texi: Add doc for --enable-checking=df.
5440
5441 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
5442
5443 PR rtl-optimization/34808
5444 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
5445
5446 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
5447
5448 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
5449 input.
5450
5451 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
5452
5453 PR rtl-optimization/26854
5454 PR rtl-optimization/34400
5455 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
5456 DF_RD->gen.
5457 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
5458 (df_rd_bb_info.expanded_lr_out): New.
5459 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
5460 * loop_iv.c (iv_analysis_loop_init): Ditto.
5461 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
5462 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
5463 Added code to allocate, initialize or free expanded_lr_out.
5464 (df_rd_bb_local_compute_process_def): Restructured to make
5465 more understandable.
5466 (df_rd_confluence_n): Add code to do nothing with fake edges and
5467 code to no apply invalidate_by_call sets if the sets are being trimmed.
5468 (df_lr_local_finalize): Renamed to df_lr_finalize.
5469 (df_live_local_finalize): Renamed to df_live_finalize.
5470
5471 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
5472
5473 PR target/34831
5474 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
5475 deciding whether to use reciprocal instructions.
5476
5477 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
5478
5479 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
5480 dwarf2out_note_section_used if cold_text_section is NULL.
5481
5482 2008-01-19 Jakub Jelinek <jakub@redhat.com>
5483
5484 PR gcov-profile/34610
5485 * tree-cfg.c (make_edges): Mark both outgoing edges from
5486 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
5487 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
5488 from OMP_FOR and OMP_CONTINUE outgoing edges.
5489
5490 * tree-profile.c (tree_profiling): Return early if
5491 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
5492 at the end.
5493 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
5494 from cfun to child_cfun.
5495 * function.h (struct function): Add after_tree_profile bit.
5496
5497 2008-01-19 Anatoly Sokolov <aesok@post.ru>
5498
5499 * config/avr/avr.S (_exit): Disable interrupt.
5500
5501 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
5502 Steven Bosscher <stevenb.gcc@gmail.com>
5503
5504 PR rtl-optimization/26854
5505 PR rtl-optimization/34400
5506 * df-problems.c (df_live_scratch): New scratch bitmap.
5507 (df_live_alloc): Allocate df_live_scratch when doing df_live.
5508 (df_live_reset): Clear the proper bitmaps.
5509 (df_live_bb_local_compute): Only process the artificial defs once
5510 since the order is not important.
5511 (df_live_init): Init the df_live sets only with the variables
5512 found live by df_lr.
5513 (df_live_transfer_function): Use the df_lr sets to prune the
5514 df_live sets as they are being computed.
5515 (df_live_free): Free df_live_scratch.
5516
5517 2008-01-18 Ian Lance Taylor <iant@google.com>
5518
5519 * common.opt: Add fmerge-debug-strings.
5520 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
5521 flag_merge_debug_strings rather than flag_merge_constants.
5522 * doc/invoke.texi (Option Summary): Mention
5523 -fmerge-debug-strings.
5524 (Debugging Options): Document -fmerge-debug-strings.
5525
5526 2008-01-18 Ian Lance Taylor <iant@google.com>
5527
5528 PR c++/33407
5529 * tree.h (DECL_IS_OPERATOR_NEW): Define.
5530 (struct tree_function_decl): Add new field operator_new_flag.
5531 * tree-inline.c (expand_call_inline): When inlining a call to
5532 operator new, force the return value to go into a variable, and
5533 set DECL_NO_TBAA_P on that variable.
5534 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
5535
5536 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
5537
5538 PR debug/34484
5539 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
5540 DWARF2_DEBUGGING_INFO.
5541 (dwarf2out_note_section_used): Ditto. Add prototype.
5542 (have_multiple_function_sections, text_section_used,
5543 cold_text_section_used, *cold_text_sections): Move declarations
5544 before their uses.
5545
5546 2008-01-17 Bob Wilson <bob.wilson@acm.org>
5547
5548 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
5549 field and add signal_ra.
5550 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
5551 assignments to frame state pc. Move end of stack check after
5552 MD_FALLBACK_FRAME_STATE_FOR.
5553 (uw_update_context_1): Use frame state signal_regs if set, instead
5554 of checking signal_frame flag.
5555 (uw_update_context): Use frame state signal_ra if set.
5556 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
5557 * config/xtensa/linux-unwind.h: New file.
5558
5559 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
5560
5561 * modulo-sched.c (get_sched_window): Fix comment typo.
5562
5563 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
5564
5565 PR tree-optimization/34648
5566 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
5567
5568 2008-01-17 Anatoly Sokolov <aesok@post.ru>
5569
5570 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
5571 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
5572
5573 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
5574
5575 PR rtl-optimization/34400
5576 * df-core.c (df_worklist_dataflow_overeager,
5577 df_worklist_dataflow_doublequeue): New functions.
5578 (df_worklist_dataflow): Two different worklist solvers.
5579 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
5580 New param.
5581
5582 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
5583
5584 PR testsuite/34821
5585 * doc/invoke.texi: Document the dependence on pthread for fopenmp
5586 and ftree-parallelize-loops.
5587
5588 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
5589
5590 PR rtl-optimization/34826
5591 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
5592
5593 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
5594
5595 * global.c (find_reg): Mark the eh regs as used if necessary.
5596 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
5597 * ra.h (struct allocno): no_eh_reg field added. Changed
5598 no_stack_reg type to bitfield.
5599
5600 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
5601
5602 * tree.c (substitute_in_expr): Add missing 'break'.
5603
5604 2008-01-17 Richard Guenther <rguenther@suse.de>
5605
5606 PR tree-optimization/34825
5607 * tree-ssa-math-opts.c (is_division_by): Do not recognize
5608 x / x as division to handle.
5609
5610 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5611
5612 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
5613 "-pthread" is specified.
5614 * pa-hpux11.h (LIB_SPEC): Likewise.
5615
5616 2008-01-16 Janis Johnson <janis187@us.ibm.com>
5617 Peter Bergner <bergner@vnet.ibm.com>
5618
5619 PR rtl-optimization/33796
5620 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
5621
5622 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5623
5624 PR libgfortran/34699
5625 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
5626 static links.
5627 * pa-hpux10.h (LINK_SPEC): Likewise.
5628 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
5629
5630 2008-01-16 Richard Guenther <rguenther@suse.de>
5631
5632 PR middle-end/32628
5633 * fold-const.c (fold_convert_const_int_from_int): Do not
5634 set overflow if that occured only because of a sign extension
5635 change when converting from/to a sizetype with the same
5636 precision and signedness.
5637
5638 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
5639
5640 PR debug/34249
5641 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
5642 location address to the correct place. Update copyright year.
5643
5644 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
5645
5646 * lambda-code.c (lambda_transform_legal_p): Handle the case of
5647 no dependences in the dependence_relations vector.
5648
5649 2008-01-16 Jan Hubicka <jh@suse.cz>
5650
5651 PR rtl-optimization/31396
5652 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
5653 * cfg.c (dump_reg_info): Print it.
5654 * regs.h (struct reg_info_t): add freq_calls_crossed.
5655 (REG_FREQ_CALLS_CROSSED): New macro.
5656 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
5657 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
5658 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
5659 regmove_optimize): Update call crossed frequencies.
5660 * local-alloc.c (struct qty): Add freq_calls_crossed.
5661 (alloc_qty): Copute freq_calls_crossed.
5662 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
5663 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
5664 * ra.h (struct allocno): Add freq_calls_crossed.
5665
5666 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
5667
5668 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
5669 libgomp when compiling with ftree-parallelize-loops.
5670 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
5671
5672 2008-01-16 Richard Guenther <rguenther@suse.de>
5673
5674 PR tree-optimization/34769
5675 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
5676 * tree.c (int_cst_value): Instead make this function more
5677 permissive in what it accepts as valid input. Document this
5678 function always sign-extends the value.
5679
5680 2008-01-16 Jakub Jelinek <jakub@redhat.com>
5681 Richard Guenther <rguenther@suse.de>
5682
5683 PR c/34668
5684 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
5685 (gimple_fold_indirect_ref_rhs): ... this.
5686 (gimple_fold_indirect_ref): New function with foldings
5687 that preserve lvalueness.
5688 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
5689 * tree-flow.h (gimple_fold_indirect_ref): Declare.
5690 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
5691 to fold an INDIRECT_REF, fall back to the old use of
5692 fold_indirect_ref_1.
5693
5694 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
5695
5696 * tree-data-ref.c (subscript_dependence_tester_1): Call
5697 free_conflict_function.
5698 (compute_self_dependence): Same.
5699
5700 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
5701
5702 PR debug/34249
5703 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
5704 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
5705 function global.
5706 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
5707 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
5708 for DWARF2_UNWIND_INFO targets.
5709
5710 2008-01-16 Richard Guenther <rguenther@suse.de>
5711
5712 PR c/34768
5713 * c-typeck.c (common_pointer_type): Do not merge inconsistent
5714 type qualifiers for function types.
5715
5716 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
5717
5718 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
5719 loop_iterator li from previous commit.
5720
5721 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
5722
5723 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
5724
5725 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
5726
5727 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
5728 (parallelize_loops): Don't parallelize irreducible components.
5729
5730 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5731
5732 PR c++/24924
5733 * c-opts (c_common_post_options): Do not enable CPP
5734 flag_pedantic_errors by default.
5735
5736 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
5737
5738 PR rtl-optimization/31944
5739 * cse.c (remove_pseudo_from_table): New function.
5740 (merge_equiv_classes): Use above function to remove pseudo-registers.
5741 (invalidate): Likewise.
5742
5743 2008-01-13 Richard Guenther <rguenther@suse.de>
5744
5745 PR middle-end/34601
5746 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
5747 instead of TYPE_MODE to deal with calls from expand_one_error_var.
5748
5749 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
5750
5751 * gcse.c (cprop_jump): Call validate_unshare_change instead of
5752 validate_change to unshare the source of the PC set.
5753
5754 2008-01-12 Jan Hubicka <jh@suse.cz>
5755
5756 PR middle-end/32135
5757 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
5758 references above array bounds. This might trigger bounds checks for
5759 pointers to arrays.
5760
5761 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
5762
5763 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
5764 new_replaceable_dependencies.
5765
5766 2008-01-12 Doug Kwan <dougkwan@google.com>
5767
5768 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
5769 instead of OPT_Wreturn_type in warning due to ignored return type
5770 qualifiers.
5771 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
5772 options included in -Wextra.
5773 * c.opt: New option -Wignored_qualifiers.
5774 * doc/invoke.texi (Warning Options, -Wextra): Add new option
5775 -Wignore_qualifiers.
5776 (-Wignored-qualifiers): Document.
5777 (-Wreturn-type): Remove description of functionality now handled
5778 by -Wignored-qualifiers.
5779
5780 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
5781
5782 PR ada/33788
5783 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
5784 NOP_EXPR if it is between integral types with the same precision.
5785
5786 2008-01-12 Jan Hubicka <jh@suse.cz>
5787
5788 PR other/28023
5789 * invoke.texi (max-inline-recursive-depth): Fix default value.
5790
5791 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
5792
5793 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
5794 correct type.
5795
5796 2008-01-11 Bob Wilson <bob.wilson@acm.org>
5797
5798 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
5799
5800 2008-01-11 James E. Wilson <wilson@specifix.com>
5801
5802 PR target/26015
5803 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
5804
5805 2008-01-11 Anatoly Sokolov <aesok@post.ru>
5806
5807 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
5808 save/restore frame pointer register and don't use 'call-prologues'
5809 optimization in function with "OS_task" attribute.
5810
5811 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
5812
5813 PR middle-end/31309
5814 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
5815 when copying to memory.
5816
5817 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
5818
5819 PR rtl-optimization/30905
5820 * cfgcleanup.c: Include dce.h
5821 (crossjumps_occured): New global variable.
5822 (try_crossjump_bb): Exit loop after finding a fallthru edge.
5823 If something changed, set crossjumps_occured to true.
5824 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
5825 Don't add/remove fake edges to exit here...
5826 (cleanup_cfg): ...but do it here, when crossjumping.
5827 Run a fast DCE when successful crossjumps occured in the latest
5828 iteration of try_optimize_cfg.
5829
5830 2008-01-11 Richard Guenther <rguenther@suse.de>
5831
5832 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
5833 (struct vn_unary_op_s): Likewise.
5834 (vn_reference_insert): Free old reference on hash collision.
5835
5836 2008-01-10 Raksit Ashok <raksit@google.com>
5837
5838 PR rtl-optimization/27971
5839 * combine.c (find_split_point): Split PLUS expressions which are
5840 inside a MEM rtx, and whose first operand is complex.
5841
5842 2008-01-10 DJ Delorie <dj@redhat.com>
5843
5844 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
5845 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
5846 (m32c_hard_regno_ok): Call the underlying function.
5847
5848 2008-01-10 Richard Guenther <rguenther@suse.de>
5849
5850 PR middle-end/34683
5851 * tree-cfg.c (tree_merge_blocks): Do not go through the
5852 full-blown folding and stmt updating path if we just deal
5853 with virtual operands.
5854 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
5855 test for abnormal SSA_NAMEs.
5856
5857 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
5858
5859 PR middle-end/34641
5860 * reload.c (push_reload): Add assertions. All constants from
5861 reg_equiv_constant should have been used for replacing the respective
5862 pseudo earlier.
5863 (find_reloads_address): Invoke find_reloads_address_part for
5864 constant taken from the reg_equiv_constant array.
5865
5866 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
5867
5868 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
5869 field (valnum) the first in the struct. Replace bools with
5870 unit bit fields.
5871
5872 2008-01-10 Richard Guenther <rguenther@suse.de>
5873
5874 PR tree-optimization/34651
5875 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
5876 types and ordering for masking and converting.
5877
5878 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
5879
5880 PR tree-optimization/34017
5881 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
5882 also for PHI_NODE expressions.
5883
5884 2008-01-09 Jan Hubicka <jh@suse.cz>
5885
5886 PR tree-optimization/34708
5887 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
5888 based on number of case labels.
5889 (init_inline_once): Remove switch_cost.
5890 * tree-inline.h (eni_weights_d): Remove switch_cost.
5891
5892 2008-01-09 Richard Guenther <rguenther@suse.de>
5893 Andrew Pinski <andrew_pinski@playstation.sony.com>
5894
5895 PR middle-end/30132
5896 * gimplify.c (gimplify_cond_expr): Do not create an addressable
5897 temporary if an rvalue is ok or an lvalue is not required.
5898
5899 2008-01-09 Richard Guenther <rguenther@suse.de>
5900
5901 PR middle-end/34458
5902 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
5903 adjust return type.
5904
5905 2008-01-09 Richard Guenther <rguenther@suse.de>
5906
5907 PR middle-end/34679
5908 * tree.c (host_integerp): Check for sizetype only if the
5909 type is an integer type.
5910
5911 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
5912
5913 PR debug/26364
5914 * opts.c (decode_options): Disable inlining of functions called
5915 once if not in unit-at-a-time mode.
5916
5917 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
5918
5919 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
5920
5921 2008-01-08 Richard Guenther <rguenther@suse.de>
5922
5923 PR middle-end/31863
5924 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
5925 out early if the result will be unused.
5926
5927 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
5928
5929 PR target/34709
5930 Revert:
5931
5932 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
5933 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
5934 for TARGET_RECIP.
5935
5936 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
5937
5938 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
5939 for vectorization tuned.
5940
5941 2008-01-08 Richard Guenther <rguenther@suse.de>
5942
5943 PR tree-optimization/34683
5944 * tree-ssa-operands.c (operand_build_cmp): Export.
5945 * tree-ssa-operands.h (operand_build_cmp): Declare.
5946 * tree-vn.c (vuses_compare): Remove.
5947 (sort_vuses): Use operand_build_cmp.
5948 (sort_vuses_heap): Likewise.
5949 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
5950 to re-use old VEC if available. Do not sort already sorted VUSEs.
5951 (vdefs_to_vec): Do not sort already sorted VDEFs.
5952
5953 2008-01-08 Jakub Jelinek <jakub@redhat.com>
5954
5955 PR middle-end/34694
5956 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
5957
5958 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
5959
5960 PR target/34702
5961 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
5962 limitations of reciprocal sequences on x86 targets.
5963
5964 2008-01-08 Richard Guenther <rguenther@suse.de>
5965
5966 PR tree-optimization/34683
5967 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
5968
5969 2008-01-07 Jakub Jelinek <jakub@redhat.com>
5970
5971 PR target/34622
5972 * config/darwin.c (darwin_mergeable_string_section): Don't use
5973 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
5974
5975 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
5976
5977 PR target/34682
5978 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
5979 negxf2. Macroize expander using X87MODEF mode iterator. Change
5980 predicates of op0 and op1 to register_operand.
5981 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
5982 expander using X87MODEF mode iterator. Change predicates of
5983 op0 and op1 to register_operand.
5984 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
5985 corresponding patterns and macroize using MODEF macro. Change
5986 predicates of op0 and op1 to register_operand and remove
5987 "m" constraint. Disparage "r" alternative with "!".
5988 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
5989 macroize using X87MODEF macro. Change predicates of op0 and op1
5990 to register_operand and remove "m" constraint. Disparage "r"
5991 alternative with "!".
5992 (absneg splitter with memory operands): Remove.
5993 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
5994 patterns and macroize using X87MODEF mode iterator.
5995 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
5996 Change predicate of op1 to register_operand.
5997 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
5998 for memory operands.
5999
6000 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
6001
6002 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
6003
6004 2008-01-07 Richard Guenther <rguenther@suse.de>
6005
6006 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
6007 fields.
6008
6009 2008-01-07 Richard Guenther <rguenther@suse.de>
6010
6011 PR tree-optimization/34683
6012 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
6013 VOPs of the needed size to save memory. Use VEC_quick_push
6014 to save compile-time.
6015 (vdefs_to_vec): Likewise.
6016
6017 2008-01-07 Sa Liu <saliu@de.ibm.com>
6018
6019 * config/spu/spu.md (divdf3): Genetate inline code for double
6020 division. The implementation doesn't handle INF or NAN, therefore it
6021 only applies when -ffinite-math-only is given.
6022
6023 2008-01-06 Paolo Carlini <pcarlini@suse.de>
6024
6025 PR libstdc++/34680
6026 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
6027 * doc/cpp.texi ([Common Predefined Macros]): Document.
6028
6029 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
6030
6031 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
6032 order to use commutative addition instead of subtraction.
6033
6034 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
6035 Mircea Namolaru <namolaru@il.ibm.com>
6036 Vladimir Yanovsky <yanov@il.ibm.com>
6037 Revital Eres <eres@il.ibm.com>
6038
6039 PR tree-optimization/34263
6040 * tree-outof-ssa.c (process_single_block_loop_latch,
6041 contains_tree_r): New functions.
6042 (analyze_edges_for_bb): Call process_single_block_loop_latch
6043 function to empty single-basic-block latch block if possible.
6044
6045 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6046
6047 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
6048 for TARGET_RECIP.
6049 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
6050
6051 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
6052
6053 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
6054
6055 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
6056
6057 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
6058
6059 2008-01-05 Jakub Jelinek <jakub@redhat.com>
6060
6061 PR tree-optimization/34618
6062 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
6063 flag from T.
6064
6065 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
6066
6067 PR target/34673
6068 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
6069 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
6070 Update copyright year.
6071
6072 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
6073 Update copyright year.
6074 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
6075 using NR fixup.
6076
6077 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
6078
6079 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
6080 edge does not point to current bb before changing need_assert.
6081
6082 2008-01-04 Richard Guenther <rguenther@suse.de>
6083
6084 PR middle-end/34029
6085 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
6086 for verifying purposes if they are is_gimple_min_invariant.
6087
6088 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
6089
6090 PR tree-optimization/34448
6091 PR tree-optimization/34465
6092 * gimplify.c (gimplify_init_constructor): Add new parameter
6093 notify_temp_creation. Use it.
6094 (gimplify_modify_expr_rhs): Take volatiles into account when
6095 optimizing constructors.
6096 Do not optimize constructors if gimplify_init_constructor will dump to
6097 memory.
6098 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
6099 * gcc.c-torture/compile/pr34448.c: New.
6100
6101 2008-01-04 Jakub Jelinek <jakub@redhat.com>
6102
6103 PR gcov-profile/34609
6104 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
6105 return_slot if result is TREE_ADDRESSABLE.
6106
6107 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
6108
6109 * config/mips/mips.md (sqrt_condition): Tweak comment.
6110 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
6111
6112 2008-01-03 Tom Tromey <tromey@redhat.com>
6113
6114 PR c/34457
6115 * c-common.c (c_type_hash): Handle VLAs.
6116
6117 2008-01-03 Jan Hubicka <jh@suse.cz>
6118
6119 PR tree-optimization/31081
6120 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
6121 0 when inlining and not inlining to first basic block.
6122 (remap_decl): When var is initialized to 0, don't set default_def.
6123 (expand_call_inline): Set entry_bb.
6124 * tree-inline.h (copy_body_data): Add entry_bb.
6125
6126 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6127
6128 PR c++/34619
6129 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
6130 before returning.
6131
6132 PR tree-optimization/29484
6133 * tree-inline.c (inline_forbidden_p_2): New function.
6134 (inline_forbidden_p): Disallow inlining if some static var
6135 has an address of a local LABEL_DECL in its initializer.
6136 * doc/extend.texi (Labels as Values): Document &&foo behaviour
6137 vs. inlining.
6138
6139 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
6140
6141 PR tree-optimization/34635
6142 * tree-data-ref.c (add_other_self_distances): Make sure that the
6143 evolution step is constant.
6144
6145 2008-01-03 Jakub Jelinek <jakub@redhat.com>
6146
6147 PR middle-end/34608
6148 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
6149
6150 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
6151
6152 * tree-sra.c (scalarize_init): Insert the generate_element_init
6153 statements after the generate_element_zero statements.
6154
6155 2008-01-02 Richard Guenther <rguenther@suse.de>
6156
6157 PR middle-end/34093
6158 PR middle-end/31976
6159 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
6160 for very large number of operands instead of ICEing.
6161
6162 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
6163
6164 PR target/34013
6165 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
6166 while stack probing.
6167
6168 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
6169
6170 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
6171 in C++0x mode.
6172
6173 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
6174
6175 PR libmudflap/26442
6176 * tree-mudflap.c (mx_register_decls): Guard warning by
6177 !DECL_ARTIFICIAL check.
6178
6179 2008-01-01 Jakub Jelinek <jakub@redhat.com>
6180
6181 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
6182 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
6183 sse5_perm<mode>): Fix constraints.