2007-04-07 Daniel Berlin <dberlin@dberlin.org>
[gcc.git] / gcc / ChangeLog
1 2007-04-07 Daniel Berlin <dberlin@dberlin.org>
2
3 Revert change removing staticp.
4
5 2007-04-07 Anatoly Sokolov <aesok@post.ru>
6
7 PR target/30289
8 * config/avr/avr.md (*clrmemqi, *clrmemhi): Mark operand 4 as
9 earlyclobber.
10
11 2007-04-07 Bruce Korb <bkorb@gnu.org>
12
13 * c.opt: Add -Wformat-contains-nul.
14 * c-format.c (set_Wformat): Set warn_format_contains_nul to the
15 -Wformat setting.
16 (check_format_info_main): Check OPT_Wformat_contains_nul before emitting
17 the NUL byte warning.
18
19 2007-04-07 H.J. Lu <hongjiu.lu@intel.com>
20
21 * config/i386/i386.c (ix86_handle_option): Handle SSSE3.
22
23 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
24
25 * tree.c (staticp): No longer use staticp langhook.
26 * langhooks.c (lhd_staticp): Removed.
27 * langhooks.h (struct lang_hooks): Remove staticp.
28 * c-common.c (c_staticp): Remove.
29 * c-common.h (c_staticp): Ditto.
30 * langhooks-defs.h (lhd_staticp): Ditto.
31 (LHD_HOOKS_STATICP): Ditto
32 * tree.h (gcc_assert_lowered): New macro.
33
34 2007-04-06 Zdenek Dvorak <dvorakz@suse.cz>
35
36 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Add and use
37 argument "reliable".
38 (infer_loop_bounds_from_ref, infer_loop_bounds_from_array):
39 Add argument "reliable". Propagate it through calls.
40 (infer_loop_bounds_from_undefined): Derive number of iterations
41 estimates from references in blocks that do not dominate loop latch.
42 (gcov_type_to_double_int): New function.
43 (estimate_numbers_of_iterations_loop): Use gcov_type_to_double_int
44 and expected_loop_iterations_unbounded.
45 * cfgloopanal.c (expected_loop_iterations_unbounded): New function.
46 (expected_loop_iterations): Use expected_loop_iterations_unbounded.
47 * tree-data-ref.c (estimated_loop_iterations): Export.
48 (get_references_in_stmt): Fix -- do not return addresses of local
49 objects.
50 * cfgloop.h (expected_loop_iterations_unbounded,
51 estimated_loop_iterations): Declare.
52
53 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
54
55 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
56
57 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
58
59 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
60 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
61 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
62 Use output_387_reg_move().
63 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
64 expander using X87MODEF12 mode macro.
65 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
66 choosing register preferences. Use output_387_reg_move().
67 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
68 instead of "x". Use output_387_reg_move().
69 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
70 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
71 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
72 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
73 Use output_387_reg_move().
74 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
75 mode macro.
76 (*truncxf?f_i387 splitter): Ditto.
77
78 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
79
80 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
81 LANG_HOOKS_SAFE_FROM_P.
82 * expr.c (safe_from_p): Remove langhook call.
83 * langhooks.h (lang_hooks): Remove safe_from_p.
84 (lhd_safe_from_p): Remove prototype.
85 * langhooks.c (lhd_safe_from_p): Remove.
86
87 2007-04-06 Jan Hubicka <jh@suse.cz>
88
89 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
90 functions.
91
92 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
93
94 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
95 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
96 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
97 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
98 alternative.
99 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
100 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
101
102 2007-04-05 Richard Henderson <rth@redhat.com>
103
104 * config/alpha/alpha.c (print_operand) [+]: Remove.
105 (alpha_end_function): Print nop if call at end of function.
106 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
107 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
108 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
109 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
110 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
111 the call pattern. Update peepholes to match.
112
113 2007-04-05 Janis Johnson <janis187@us.ibm.com>
114
115 * doc/extend.texi (Other Builtins): Add decimal float variants
116 of signbit.
117 * builtins.def: Ditto.
118 * builtins.c (expand_builtin): Ditto.
119
120 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
121 H.J. Lu <hongjiu.lu@intel.com>
122
123 PR target/31478
124 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
125 of V8HImode when calling ix86_binary_operator_ok.
126 (sse2_pmaddwd): Call ix86_binary_operator_ok.
127 (sdot_prodv8hi): Operands 1 and 2 must be register.
128
129 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
130
131 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
132 initialize align to silence bogus warning.
133
134 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
135
136 PR middle-end/22156
137 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
138 all_no_warning.
139 (struct sra_walk_fns): Remove use_all parameter from use.
140 (sra_hash_tree): Handle BIT_FIELD_REFs.
141 (sra_elt_hash): Don't hash bitfld blocks.
142 (sra_elt_eq): Skip them in parent compares as well. Handle
143 BIT_FIELD_REFs.
144 (sra_walk_expr): Don't maintain or pass down use_all_p.
145 (scan_use): Remove use_all parameter.
146 (scalarize_use): Likewise. Re-expand assignment to
147 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
148 output, and re-scalarize after output. Don't mark anything
149 for no warning.
150 (scalarize_ldst): Adjust.
151 (scalarize_walk_gimple_modify_statement): Likewise.
152 (build_element_name_1): Handle BIT_FIELD_REFs.
153 (instantiate_element): Don't warn for any element whose parent
154 is used as a whole.
155 (instantiate_missing_elements_1): Return the sra_elt.
156 (canon_type_for_field): New.
157 (try_instantiate_multiple_fields): New.
158 (instantiate_missing_elemnts): Use them.
159 (mark_no_warning): Removed.
160 (generate_one_element_ref): Handle BIT_FIELD_REFs.
161 (REPLDUP, sra_build_elt_assignment): New.
162 (generate_copy_inout): Use them.
163 (generate_element_copy): Likewise. Handle bitfld differences.
164 (generate_element_zero): Don't recurse for blocks. Use
165 sra_build_elt_assignment.
166 (generate_one_element_int): Take elt instead of var. Use
167 sra_build_elt_assignment.
168 (generate_element_init_1): Adjust.
169 (scalarize_use, scalarize_copy): Use REPLDUP.
170 (scalarize_ldst): Move assert before dereference.
171 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
172
173 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
174
175 * regmove.c: Fix unused variable warnings due to previous commit.
176
177 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
178
179 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
180 (regmove_bb_head): Remove.
181 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
182 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
183 problems with fixup_match_1.
184 Don't initialize/free regmove_bb_head.
185
186 (reg_is_remote_constant_p): If an insn is in the same basic block
187 but not before INSN, consider it remote, too.
188
189 2007-04-05 Anatoly Sokolov <aesok@post.ru>
190
191 PR target/25448
192 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
193 DECL_ASSEMBLER_NAME, not the DECL_NAME.
194
195 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
196
197 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
198 (CONDITIONAL_REGISTER_USAGE): Likewise.
199
200 2007-04-04 Richard Henderson <rth@redhat.com>
201
202 * config/alpha/lib1funcs.asm: Remove unused file.
203
204 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
205
206 PR other/31356
207 * opts.c (print_specific_help): Fix --help=<language>
208 header line.
209 (common_handle_option): Support --help=common.
210
211 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
212
213 PR other/31353
214 * gcc.c (main): Do not run the linker if
215 print_subprocess_help indicates that it shouldn't be
216 run.
217
218 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
219
220 PR doc/31355
221 * doc/invoke.texi (--help=): Document <languages> value, fix
222 formatting in tables of values.
223
224 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
225
226 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
227 dllimport attribute of virtual methods.
228
229 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
230
231 * config/score/crti.asm: Change _bss_start to __bss_start.
232 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
233 (OUTGOING_REG_PARM_STACK_SPACE) update.
234 * config/score/score.opt: add options to make backend support
235 score5, score5u, score7 and score7d.
236 * config/score/score.md: Likewise.
237 * config/score/misc.md: Likewise.
238 * config/score/mac.md: Likewise.
239 * doc/invoke.texi: Likewise.
240 * doc/md.texi: update constraints define.
241
242 2007-04-03 Richard Henderson <rth@redhat.com>
243
244 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
245 an appropriate type, use the mode instead.
246
247 2007-04-03 Richard Sandiford <richard@codesourcery.com>
248
249 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
250 Set the default --with-arch setting to mips2.
251 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
252 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
253 (MULTILIB_OSDIRNAMES): Delete.
254 (MULTILIB_DIRNAMES): Define.
255 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
256 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
257 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
258 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
259 VXWORKS_OS_CPP_BUILTINS.
260 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
261 (MIPS_DEBUGGING_INFO): Undefine.
262 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
263
264 2007-04-03 Jakub Jelinek <jakub@redhat.com>
265
266 PR middle-end/30704
267 * fold-const.c (native_encode_real): Encode real.c provided longs
268 as a series of 32-bit native integers.
269 (native_interpret_real): Interpret buffer as a series of 32-bit
270 native integers.
271
272 2007-04-03 Richard Guenther <rguenther@suse.de>
273
274 * genpreds.c (write_insn_constraint_len): Write function
275 optimized for CONSTRAINT_LEN implementation.
276 (write_tm_preds_h): Output insn_constraint_len inline and
277 use it for CONSTRAINT_LEN.
278 (write_insn_preds_c): Don't output insn_constraint_len.
279 * doc/md.texi (define_register_constraint): Document multi-letter
280 constraints shall have the same length if they start with the same
281 letter.
282
283 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
284
285 PR target/31175
286 * config/i386/i386.md (isinf<mode>2): Expand only when
287 TARGET_C99_FUNCTIONS is set.
288
289 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
290
291 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
292 (x86_64-*-linux*): Ditto.
293 * config/i386/i386.opt (mpc): New option.
294 * config/i386/i386.c (overrride_options): Handle
295 ix87_precision_string.
296 * config/i386/crtprec.c: New file.
297 * config/i386/t-crtpc: Ditto.
298 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
299 and -mpc80 options.
300 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
301 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
302 crtprec32.o, crtprec64.o and crtprec80.o.
303
304 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
305 and -mpc80 options.
306 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
307
308 2007-04-02 Eric Christopher <echristo@apple.com>
309
310 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
311 limitations on darwin.
312
313 2007-04-02 Anatoly Sokolov <aesok@post.ru>
314
315 PR target/31137
316 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
317
318 2007-04-02 Dave Korn <dave.korn@artimi.com>
319
320 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
321
322 2007-04-02 Dave Korn <dave.korn@artimi.com>
323
324 * libgcc2.h (exception_descriptor): Don't forward-declare.
325 (__get_eh_table_language, __get_eh_table_version): Delete
326 prototypes of long-dead functions.
327
328 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
329
330 * ebitmap.h: New file
331 * ebitmap.c: New file
332 * Makefile.in (ebitmap.o): New target.
333
334 2007-04-01 Jan Hubicka <jh@suse.cz>
335
336 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
337 before very first instruction.
338
339 2007-04-01 Jan Hubicka <jh@suse.cz>
340
341 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
342 waring on 64bit hosts.
343 * bitmap.h: Fix typo in bitmap_head_def.
344
345 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
346
347 PR rtl-optimization/31391
348 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
349 into a DELETED_LABEL note, and the label is in an empty basic
350 block, update BB_END as well as BB_HEAD.
351
352 2007-04-01 Richard Henderson <rth@redhat.com>
353
354 PR tree-optimization/31169
355 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
356 to varying if the range is outside [0, prec-1].
357
358 2007-04-01 Richard Sandiford <richard@codesourcery.com>
359
360 PR target/31388
361 * config/mips/mips.md (load_const_gp): New insn.
362 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
363 the MIPS16 GP pseudo register if no_new_pseudos.
364 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
365
366 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
367
368 PR target/31364
369 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
370 secureplt.
371 (call_value): Likewise.
372
373 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
374 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
375
376 PR 14737
377 * doc/invoke.texi: (optimization options): Reword description
378 of -ffast-math. Document its primary purpose.
379
380 2007-03-31 Richard Guenther <rguenther@suse.de>
381
382 * omp-low.c (splay-tree.h): Include.
383 (lookup_decl): Replace splay-tree usage by pointer-map.
384 (maybe_lookup_decl): Likewise.
385 (new_omp_context): Likewise.
386 (delete_omp_context): Likewise.
387 * gimplify.c (splay-tree.h): Include.
388 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
389 pointer-map.
390 (remap_ssa_name): Likewise.
391 (remap_decl): Likewise.
392 (remap_type_1): Likewise.
393 (remap_type): Likewise.
394 (copy_body_r): Likewise.
395 (expand_call_inline): Likewise.
396 (clone_body): Likewise.
397 (copy_tree_r): Likewise.
398 (remap_save_expr): Likewise.
399 (unsave_r): Likewise.
400 (unsave_expr_now): Likewise.
401 (tree_function_versioning): Likewise.
402 (build_duplicate_type): Likewise.
403 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
404 (struct copy_body_data): Replace splay-tree by pointer-map.
405 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
406 not $(SPLAY_TREE_H).
407 (gimplify.o): Depend on $(SPLAY_TREE_H).
408 (omp-low.p): Likewise.
409
410 2007-03-31 Anatoly Sokolov <aesok@post.ru>
411
412 * config/avr/predicates.md (even_register_operand,
413 odd_register_operand): New predicates.
414 * config/avr/avr.md (movw peephole2): New.
415 (movw_r peephole2): New.
416
417 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
418
419 * tree.h (get_signed_or_unsigned_type): New.
420 * fold-const.c (operand_equal_for_comparison_p): Use
421 get_signed_or_unsigned_type instead of
422 lang_hooks.types.signed_or_unsigned_type.
423 * expr.c (store_expr): Ditto.
424 * langhooks.c (get_signed_or_unsigned_type): New.
425 (lhd_signed_or_unsigned_type): New.
426 * langhooks.h (lhd_signed_or_unsigned_type): New.
427 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
428
429 2007-03-30 Richard Henderson <rth@redhat.com>
430
431 * tree-ssa-loop-ivopts.c: Include target.h.
432 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
433 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
434 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
435 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
436
437 2007-03-30 Richard Henderson <rth@redhat.com>
438 Kai Tietz <kai.tietz@onevision.com>
439
440 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
441 default for 64-bit.
442 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
443 (TARGET_64BIT_MS_ABI): New.
444 (DBX_REGISTER_NUMBER): Handle 64-bit.
445 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
446 (LONG_TYPE_SIZE): Force to 32.
447 (REG_PARM_STACK_SPACE): New.
448 (OUTGOING_REG_PARM_STACK_SPACE): New.
449 (REGPARM_MAX, SSE_REGPARM_MAX): New.
450 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
451 (STACK_BOUNDARY): Use 128 for 64-bit.
452 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
453 Add 64-bit implementation.
454 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
455 argument unused.
456 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
457 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
458 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
459 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
460 (ix86_handle_cconv_attribute): Don't warn when ignoring if
461 TARGET_64BIT_MS_ABI.
462 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
463 (ix86_pass_by_reference): Likewise.
464 (ix86_function_value_regno_p): Likewise.
465 (ix86_build_builtin_va_list): Likewise.
466 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
467 (function_arg_advance_ms_64): New.
468 (function_arg_advance): Call it.
469 (function_arg_ms_64): New.
470 (function_arg): Call it.
471 (function_value_ms_64): New.
472 (ix86_function_value_1): Call it.
473 (return_in_memory_ms_64): New.
474 (ix86_return_in_memory): Call it.
475 (setup_incoming_varargs_ms_64): New.
476 (ix86_setup_incoming_varargs): Call it.
477 (ix86_expand_prologue): Handle 64-bit stack probing.
478 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
479 (output_pic_addr_const): Likewise.
480 (x86_this_parameter): Likewise.
481 (x86_output_mi_thunk): Likewise.
482 (x86_function_profiler): Likewise.
483 (TARGET_STRICT_ARGUMENT_NAMING): New.
484 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
485 (TARGET_64BIT_MS_ABI): New.
486 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
487 * config/i386/i386.md (allocate_stack_worker): Remove.
488 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
489 describe the clobber of eax without a match_scratch.
490 (allocate_stack_worker_postreload): Remove.
491 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
492 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
493 (allocate_stack_worker_rex64_postreload): Remove.
494 (allocate_stack): Handle 64-bit.
495 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
496 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
497 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
498 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
499 (STANDARD_STARTFILE_PREFIX_1): Likewise.
500 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
501 * config.build (x86_64-*-mingw*): New host.
502 * config.host (x86_64-*-mingw*): New host.
503 * config.gcc (x86_64-*-mingw*): New target.
504 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
505
506 2007-03-30 Richard Henderson <rth@redhat.com>
507 Kai Tietz <kai.tietz@onevision.com>
508
509 * c-pragma.c (struct def_pragma_macro_value): New.
510 (struct def_pragma_macro): New.
511 (pushed_macro_table): New.
512 (dpm_hash, dpm_eq): New.
513 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
514 (init_pragma): Install them.
515 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
516
517 2007-03-30 Anatoly Sokolov <aesok@post.ru>
518
519 * config/avr/avr.c (avr_override_options): Clear
520 'flag_delete_null_pointer_checks'.
521
522 2007-03-30 Paolo Carlini <pcarlini@suse.de>
523
524 PR c++/26099
525 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
526 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
527 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
528 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
529 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
530 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
531 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
532 C++ extensions.
533 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
534
535 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
536
537 * regmove.c: Move all of pass_stack_adjustments from here...
538 * combine-stack-adj.c: ...to this new file.
539 * Makefile.in: Add rules for combine-stack-adj.o.
540
541 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
542
543 PR tree-optimization/31383
544 * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
545 to have the same length.
546
547 2007-03-30 Jan Hubicka <jh@suse.cz>
548
549 PR middle-end/30700
550 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
551 availablility; add more sanity checking; ask varpool only about
552 VAR_DECL.
553
554 2007-03-29 Richard Henderson <rth@redhat.com>
555
556 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
557 to decide, but __SIZEOF_LONG_LONG__.
558
559 2007-03-29 Richard Henderson <rth@redhat.com>
560
561 * emutls.c (struct __emutls_array): New.
562 (emutls_destroy): Use it instead of casting element 0 from void*.
563 (__emutls_get_address): Likewise.
564
565 2007-03-29 Richard Henderson <rth@redhat.com>
566
567 * varasm.c (initializer_constant_valid_p): Don't deny
568 DECL_DLLIMPORT_P on functions.
569
570 * config/i386/cygming.h: Remove function declarations.
571 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
572 (ASM_OUTPUT_LABELREF): Remove.
573 (COMMON_ASM_OP): Remove.
574 (ASM_OUTPUT_COMMON): Remove.
575 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
576 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
577 (ASM_DECLARE_FUNCTION_NAME): Likewise.
578 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
579 Rename from TARGET_ENCODE_SECTION_INFO.
580 * config/i386/netware.h: Likewise.
581 * config/i386/i386-protos.h: Update.
582 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
583 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
584 (legitimate_constant_p): Reject dllimports.
585 (dllimport_map, get_dllimport_decl): New.
586 (legitimize_dllimport_symbol): New.
587 (legitimize_address, ix86_expand_move): Use it.
588 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
589 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
590 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
591 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
592 * config/i386/predicates.md (constant_call_address_operand): Only
593 accept symbols; reject dllimport_p symbols.
594 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
595 i386_pe_maybe_record_exported_symbol.
596 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
597 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
598 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
599 trust the setting of DECL_DLLIMPORT_P.
600 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
601 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
602 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
603 tidy the argument scanning loop.
604 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
605 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
606 (i386_pe_strip_name_encoding): Remove.
607 (i386_pe_binds_local_p): New.
608 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
609 (i386_pe_output_labelref): Remove.
610 (i386_pe_asm_output_aligned_decl_common): New.
611 (i386_pe_maybe_record_exported_symbol): Rename from
612 i386_pe_record_exported_symbol; check for dllexported symbols.
613
614 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
615
616 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
617 add comment explaining why vsnprintf cannot be used.
618
619 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
620
621 PR tree-optimization/30666
622 * tree.c (build_complex_type): When creating type names for DWARF2
623 debug info, create TYPE_DECLs for TYPE_NAME instead of
624 IDENTIFIER_NODEs.
625 (build_common_tree_nodes_2): Use build_complex_type when building
626 predefined complex types, to preserve canonical types.
627
628 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
629
630 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
631 (noce_get_alt_condition): Look at it to determine whether to
632 reverse the condition or not.
633 (noce_get_condition): Substitute the truth for lies.
634 (noce_find_if_block): Set the then_else_reversed field.
635
636 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
637
638 * config/fr30/fr30.md (movdi): Do not accept immediates as the
639 destination of this insn.
640 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
641 than calling gen_rtx_SET directly. Use r0 to hold the value of
642 'address + 4' rather than a stack based temporary which can be
643 mis-optimized away.
644
645 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
646
647 * config/s390/s390.c (s390_secondary_input_reload_class,
648 s390_secondary_output_reload_class): Functions removed.
649 (s390_secondary_reload): New function.
650 (TARGET_SECONDARY_RELOAD): Target macro defined.
651 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
652 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
653 * config/s390/s390.md ("reload_outti", "reload_outdi",
654 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
655 "reload_out<mode>"): Expanders removed.
656 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
657 "reload<mode>_nonoffmem_out"): Expanders added.
658
659 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
660
661 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
662 SRC->DEST replacement failed anyway.
663
664 2007-03-28 Mike Stump <mrs@apple.com>
665
666 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
667 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
668 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
669
670 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
671
672 * config.gcc: Accept barcelona as a variant of amdfam10.
673 * config/i386/i386.c (override_options): Likewise.
674 * doc/invoke.texi: Likewise.
675
676 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
677
678 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
679 offsets for BIT_FIELD_REF and COMPONENT_REF.
680
681 2007-03-28 Richard Guenther <rguenther@suse.de>
682
683 * tree.c (is_global_var): Move ...
684 * tree-flow-inline.h (is_global_var): ... here.
685 * tree.h (is_global_var): Remove declaration.
686
687 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
688
689 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
690 option.
691 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
692 * config/i386/i386.c (ix86_tune_features): Initialize new
693 tuning option.
694 * config/i386/predicates.md (promotable_binary_operator): Use
695 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
696
697 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
698
699 PR target/31380
700 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
701
702 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
703
704 * config/fr30/fr30.md (movsi_internal): Change destination
705 constraint from m to V and add m to the end.
706
707 2007-03-28 Christian Bruel <christian.bruel@st.com>
708
709 * config/sh/sh.md (movsi_i): Fix type attribute.
710
711 2007-03-28 Christian Bruel <christian.bruel@st.com>
712
713 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
714 (movsf_ie): Likewise.
715
716 2007-03-28 Christian Bruel <christian.bruel@st.com>
717
718 * config.gcc: Add sh4-300 to multilib.
719 * config/sh/t-mlib-sh4-300: New file.
720
721 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
722
723 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
724 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
725 fix_trunc<mode>di2.
726 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
727 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
728 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
729 "fixuns_trunctddi2"): Whitespace fix.
730
731 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
732
733 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
734 the definition of struct sh_args.
735 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
736 CALL_COOKIE_INT_REG_GET): Likewise.
737
738 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
739
740 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
741 transformations are applied successfully.
742
743 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
744
745 * tree.c (tree_contains_struct): Permit 512 tree codes.
746 * tree.h (tree_contains_struct): Ditto.
747 (MAX_TREE_CODES): Ditto.
748 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
749 SPARE member to store remaining padding bits.
750
751 2007-03-27 Anatoly Sokolov <aesok@post.ru>
752
753 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
754 architecture.
755
756 2007-03-27 Janis Johnson <janis187@us.ibm.com>
757
758 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
759 * configure: Regenerate.
760
761 * configure: Regenerate using the correct version of autoconf.
762
763 2007-03-27 Anatoly Sokolov <aesok@post.ru>
764
765 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
766 pointer regs.
767 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
768 regs to "__SP_L__" and "__SP_H__".
769
770 2007-03-27 Richard Guenther <rguenther@suse.de>
771
772 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
773 computations with it with a HOST_WIDE_INT variable.
774
775 2007-03-26 Mike Stump <mrs@apple.com>
776
777 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
778 objective-c-header, objective-c++-header and objc++-cpp-output
779 support.
780 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
781
782 2007-03-26 Richard Henderson <rth@redhat.com>
783
784 PR target/31361
785 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
786 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
787 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
788 IX86_BUILTIN_PSRLQ128): New.
789 (ix86_init_mmx_sse_builtins): Add them.
790 (ix86_expand_builtin): Expand them.
791 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
792 operand 2 be TImode.
793 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
794 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
795 _mm_srli_epi64): Mark __B const.
796 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
797 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
798 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
799 new two-vector shift builtins.
800
801 2007-03-26 Ian Lance Taylor <iant@google.com>
802
803 PR tree-optimization/31345
804 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
805 [+INF, +INF(OVF)] into VARYING.
806
807 2007-03-26 Zack Weinberg <zackw@panix.com>
808
809 * gengtype-parse.c: New file.
810 * gengtype-yacc.y: Delete.
811 * gengtype-lex.l: Don't include gengtype-yacc.h.
812 Define YY_DECL and yyterminate appropriately for recursive
813 descent parser. yylval is now a string out-parameter to yylex.
814 (HWS, EOID): New shorthand.
815 (IWORD): Add a couple more types.
816 (yylex): Add a setup stanza. Remove the complex rules for
817 detecting GTY'ed types and typedefs; replace with simple
818 keyword detectors. Adjust everything for the changed
819 definition of yylval. Ignore all pp-directives, not just #define.
820 (yyerror): Delete.
821 (parse_file): Rename yybegin; do not call yyparse.
822 (yyend): New.
823 * gengtype.c (xasprintf): Export again.
824 (this_file): New. Use everywhere __FILE__ was being used.
825 (get_lang_bitmap): Special case types defined in gengtype.c.
826 (do_typedef, new_structure): Suppress definition of certain types.
827 (new_structure): Improve diagnostics of duplicate definitions.
828 Make sure location_s is associated with input.h.
829 (nreverse_pairs, define_location_structures): New functions.
830 (main): Improve tagging of kludge types. Remove old kludges
831 for input.h types; use define_location_structures.
832 * gengtype.h: Update prototypes. Define token codes here.
833 * Makefile.in: Remove all references to gengtype-yacc.
834 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
835 and gengtype.
836 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
837 add GTY((skip)) to the field that's only conditionally there.
838 * doc/install.texi: Document that Bison is no longer required
839 unless building treelang.
840
841 * gengtype.c: Don't include gtyp-gen.h.
842 (srcdir): Declare here.
843 (base_files, lang_dir_names): Allocate dynamically.
844 (gt_files, num_gt_files, num_lang_dirs): New globals.
845 (measure_input_list, read_input_line, read_input_list)
846 (set_lang_bitmap): New functions.
847 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
848 simplify, relying on read_input_list to set up the bitmaps.
849 (main): Arguments are no longer unused. Check for correct number
850 of command line arguments, set srcdir and srcdir_len, then call
851 read_input_list, before doing anything else. No need to worry
852 about duplicates in main loop.
853 * configure.ac: Simplify the calculation of all_gtfiles.
854 Put language tags in there. Don't set or substitute
855 all_gtfiles_files_langs or all_gtfiles_files_frags.
856 * Makefile.in: Revamp the way gengtype is invoked, now that it
857 takes a file on its command line with a much simpler format.
858 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
859 (GTFILES): Remove duplicates and C source files.
860 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
861 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
862 * configure: Regenerate.
863
864 * gengtype.h: Remove all type definitions to gengtype.c; leave
865 only definitions of options_p, type_p, and pair_p as opaque
866 pointers. Update prototypes.
867 * gengtype.c: Many type definitions moved here from gengtype.h.
868 Consolidate type definitions at the top of the file.
869 (xvasprintf): Delete.
870 (xasprintf): Make static.
871 (create_nested_pointer_option): Add 'next' parameter.
872 (create_field_all, create_field_at): New functions.
873 (create_field): Now a thin wrapper around create_field_all.
874 (create_optional_field): Rename create_optional_field_ and add
875 line argument. Original name is now a macro which supplies
876 __LINE__.
877 (oprintf): Use vsnprintf directly.
878 (close_output_files): Use fatal rather than perror/exit.
879 (note_def_vec, note_def_vec_alloc): Use create_field_at.
880 (main): Set progname. Don't use exit.
881 * gengtype-yacc.y (struct_fields): Use create_field_at.
882 (option, optionseqopt): Delete.
883 (optionseq): Consolidate productions from option here so we
884 can use the first argument to create_option.
885
886 * gengtype-lex.l: Distinguish unions from structures in the
887 token type. Don't call find_structure; return the tag as a string.
888 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
889 Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
890 Reorganize typedef_struct production accordingly.
891 Use create_nested_ptr_option.
892 * gengtype.c (create_nested_ptr_option): New function.
893 * gengtype.h: Declare it.
894
895 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
896 (string_type): Don't declare.
897 (do_scalar_typedef): Declare.
898 (create_scalar_type): Update prototype.
899 * gengtype.c (string_type): Make static.
900 (scalar_nonchar, scalar_char): New.
901 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
902 (resolve_typedef): Use scalar_nonchar for error recovery.
903 (create_scalar_type): Remove name_len field. Return scalar_char
904 or scalar_nonchar as appropriate.
905 (adjust_field_type): Look at scalar_is_char boolean to decide whether
906 to use string_type.
907 (throughout): Use scalar_nonchar instead of calling create_scalar_type,
908 whenever possible.
909 (main): Initialize scalar_char and scalar_nonchar before calling
910 gen_rtx_next.
911 * gengtype-lex.l: Adjust for removal of second argument to
912 create_scalar_type. Use yylval.s instead of yylval.t when
913 returning SCALAR.
914 * gengtype-yacc.y: Type of SCALAR is string. Call
915 create_scalar_type from type:SCALAR rule. Adjust for removal of
916 second argument to create_scalar_type.
917
918 * vec.h: Remove all #if IN_GENGTYPE blocks.
919 Add comment saying that changes may require adjustments to gengtype.
920 * gengtype.c: Don't include coretypes.h or tm.h.
921 Add comment to inclusion of errors.h.
922 (note_def_vec, note_def_vec_alloc): New functions.
923 * gengtype.h: Declare new functions.
924 * gengtype-lex.l: Don't include coretypes.h.
925 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
926 Delete.
927 (update_lineno): Remove unnecessary prototype.
928 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
929 (VEC rule): Just return VEC_TOKEN.
930 * gengtype-yacc.y (VEC_TOKEN): New token type.
931 (type): Add a production for VEC(a,b).
932 * Makefile.in: Update dependencies.
933
934 * gengtype-lex.l: Remove rules for parsing pointer-to-function
935 typedefs that use the old PARAMS macro.
936
937 * gengtype-lex.l: Remove all rules and states relating to yacc
938 input files.
939 * gengtype-yacc.y: Similarly.
940 * gengtype.c (note_yacc_type): Delete function.
941 * gengtype.h: Update prototypes.
942
943 2007-03-26 Joseph Myers <joseph@codesourcery.com>
944
945 * tree-pretty-print.c (dump_generic_node): Report precision of
946 unnamed integer types.
947
948 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
949
950 * ifcvt.c (noce_try_store_flag_constants): Don't check
951 no_new_pseudos here.
952 (noce_try_store_flag_constants): Don't check no_new_pseudos.
953 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
954 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
955 noce_try_sign_mask): Likewise.
956 (if_convert): Check no_new_pseudos here.
957
958 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
959 Remove prototypes.
960 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
961 (noce_get_condition): Handle new then_else_reversed argument.
962 (noce_init_if_info): Remove, fold into noce_find_if_block.
963 (noce_process_if_block): Take a struct noce_if_info as the
964 argument. Don't set up one based on ce_if_info. Update pointer
965 references accordingly.
966 (cond_move_process_if_block): Likewise.
967 (process_if_block): Removed.
968 (find_if_block): Removed. Move functionality two new functions,
969 noce_find_if_block and cond_exec_find_if_block.
970 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
971 blocks and the symmetric IF-ELSE-JOIN case.
972 (cond_exec_find_if_block): Also new function mostly based on old
973 find_if_block and process_if_block.
974 (find_if_header): Replace find_if_block call with separately
975 guarded calls to noce_find_if_block and cond_exec_find_if_block.
976 (find_cond_trap): Update noce_get_condition call.
977 (dead_or_predicable): Likewise.
978
979 2007-03-26 Jakub Jelinek <jakub@redhat.com>
980
981 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
982 Remove.
983 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
984 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
985 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
986 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
987 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
988 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
989 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
990 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
991 __builtin_ia32_psrad128 builtins.
992
993 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
994
995 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
996 * config/i386/constraints.md
997 (define_constraint "I"): Use IN_RANGE macro.
998 (define_constraint "J"): Ditto.
999 (define_constraint "K"): Ditto.
1000 (define_constraint "M"): Ditto.
1001 (define_constraint "N"): Ditto.
1002 (define_constraint "O"): Ditto.
1003 * config/i386/predicates.md
1004 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
1005 (define_predicate "const_0_to_3_operand"): Ditto.
1006 (define_predicate "const_0_to_7_operand"): Ditto.
1007 (define_predicate "const_0_to_15_operand"): Ditto.
1008 (define_predicate "const_0_to_63_operand"): Ditto.
1009 (define_predicate "const_0_to_255_operand"): Ditto.
1010 (define_predicate "const_1_to_31_operand"): Ditto.
1011 (define_predicate "const_2_to_3_operand"): Ditto.
1012 (define_predicate "const_4_to_7_operand"): Ditto.
1013
1014 2007-03-25 David Edelsohn <edelsohn@gnu.org>
1015
1016 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
1017 in SImode for save_world.
1018 * config/rs6000/altivec.md (save_world, restore_world): Convert to
1019 LR hard reg.
1020
1021 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
1022
1023 PR tree-optimization/30784
1024 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
1025 BIT_FIELD_REF.
1026
1027 2007-03-25 Revital Eres <eres@il.ibm.com>
1028
1029 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
1030 Fold movement_possibility function into it.
1031
1032 2007-03-25 David Edelsohn <edelsohn@gnu.org>
1033
1034 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
1035 (load_macho_picbase_{si,di}): Convert to LR hard reg.
1036 (call_indirect_nonlocal_darwin64): Same.
1037 (call_nonlocal_darwin64): Same.
1038 (call_value_indirect_nonlocal_darwin64): Same.
1039 (call_value_nonlocal_darwin64): Same.
1040 (sibcall_nonlocal_darwin64): Same.
1041 (sibcall_value_nonlocal_darwin64): Same.
1042 (sibcall_symbolic_64): Same.
1043 (sibcall_value_symbolic_64): Same.
1044 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
1045 LR pseudo.
1046 (rs6000_emit_load_toc_table): Same.
1047 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
1048 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
1049 (mull_call): Same.
1050 (divss_call): Same.
1051 (divus_call): Same.
1052 (quoss_call): Same.
1053 (quous_call): Same.
1054 (load_toc_v4_pic_si): Same
1055 (load_toc_v4_PIC_1): Same.
1056 (load_toc_v4_PIC_1b): Same.
1057 (call_indirect_aix{32,64}): Same.
1058 (call_value_indirect_aix{32,64}): Same.
1059 (call): Same.
1060 (call_value): Same.
1061 (call_local{32,64}): Same.
1062 (call_value_local{32,64}): Same.
1063 (call_indirect_nonlocal_aix{32,64}): Same.
1064 (call_nonlocal_aix{32,64}): Same.
1065 (call_value_indirect_nonlocal_aix{32,64}): Same.
1066 (call_value_nonlocal_aix{32,64}): Same.
1067 (call_indirect_nonlocal_sysv<mode>): Same.
1068 (call_nonlocal_sysv<mode>): Same.
1069 (call_value_indirect_nonlocal_sysv<mode>): Same.
1070 (call_value_nonlocal_sysv<mode>): Same.
1071 (sibcall): Same.
1072 (sibcall_local{32,64}): Same.
1073 (sibcall_value_local{32,64}): Same.
1074 (sibcall_nonlocal_aix{32,64}): Same.
1075 (sibcall_value_nonlocal_aix{32,64}): Same.
1076 (sibcall_nonlocal_sysv<mode>): Same.
1077 (sibcall_value): Same.
1078 (sibcall_value_nonlocal_sysv<mode>): Same.
1079
1080 2007-03-24 Paul Brook <paul@codesourcery.com>
1081
1082 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
1083 * config/arm/linux-eabi.h: Remove legacy syscall hack.
1084
1085 2007-03-24 Richard Henderson <rth@redhat.com>
1086
1087 * config/ia64/constraints.md: New file.
1088 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
1089 satisfies_constraint_?.
1090 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
1091 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
1092 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
1093 ia64_output_mi_thunk): Likewise.
1094 (ia64_const_ok_for_letter_p): Remove.
1095 (ia64_const_double_ok_for_letter_p): Remove.
1096 (ia64_extra_constraint): Remove.
1097 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
1098 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
1099 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
1100 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
1101 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
1102 EXTRA_MEMORY_CONSTRAINT): Remove.
1103 * config/ia64/ia64.md: Include constriants.md. Replace
1104 CONST_OK_FOR_? with satisfies_constraint_?.
1105
1106 2007-03-23 Michael Meissner <michael.meissner@amd.com>
1107 H.J. Lu <hongjiu.lu@intel.com>
1108
1109 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
1110 DPD or BID name.
1111 (name macros): Use DPD_BID_NAME to convert names properly.
1112
1113 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
1114 decimal floating point format.
1115 (init_floating_libfuncs): Change decimal functions so that they
1116 have a "bid_" prefix if the decimal system uses the BID format,
1117 and "dpd_" prefix if the decimal system uses the DPD format.
1118 (init_interclass_conv_libfuncs): Ditto.
1119 (init_intraclass_conv_libfuncs): Ditto.
1120
1121 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
1122 using the BID format.
1123
1124 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
1125 whether we are using the BID decimal format.
1126 * configure: Regenerate.
1127
1128 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
1129 the compiler has decimal floating point enabled. Define
1130 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
1131 instead of DPD.
1132
1133 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
1134 using the BID format.
1135
1136 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
1137 whether we are using the BID decimal format.
1138 * configure: Regenerate.
1139
1140 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
1141 the compiler has decimal floating point enabled. Define
1142 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
1143 instead of DPD.
1144
1145 * doc/install.texi (--enable-decimal-float): Document BID and DPD
1146 options, and that it is enabled for i386/x86_64 systems.
1147
1148 * Makefile.in (enable_decimal_float): New.
1149 (DECNUMFMT): New.
1150 (DECNUMINC): Add -I$(DECNUMFMT).
1151 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
1152 to $(DECNUMFMT) from $(DECNUM).
1153
1154 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
1155 Substitute enable_decimal_float.
1156 * configure: Regenerated.
1157
1158 PR other/30529
1159 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
1160 unsigned long.
1161
1162 * configure.ac: Enable decimal float for x86_64-*-linux*.
1163 * configure: Regenerated.
1164
1165 PR other/30530
1166 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
1167 decimal128ClearSign to flip and clear the sign bit in decimal128.
1168 (decimal_real_maxval): Set decimal128SetSign to set the sign
1169 bit in decimal128.
1170
1171 2007-03-23 Ian Lance Taylor <iant@google.com>
1172
1173 * fold-const.c (fold_binary): Correct warning for X - c >= X.
1174
1175 2007-03-23 Ian Lance Taylor <iant@google.com>
1176
1177 * tree-dump.c (dump_files): Correct comment.
1178
1179 2007-03-23 Ian Lance Taylor <iant@google.com>
1180
1181 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
1182
1183 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
1184
1185 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
1186 in cfglayout mode. Don't go into and out of cfglayout mode.
1187 Link the blocks in the order of the constructed traces.
1188 (rest_of_handle_tracer): Adjust call to tracer.
1189 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
1190 Don't go into cfglayout mode.
1191 (rtl_loop_done): Don't go out of cfglayout mode.
1192 * cfglayout.c (relink_block_chain): New function, split out from...
1193 (fixup_reorder_chain): ...here. Remove redundant checking.
1194 (cfg_layout_finalize): Don't clear the header, footer, and aux
1195 fields here, move the code to do so to relink_block_chain. Likewise
1196 for free_original_copy_tables.
1197 * rtl.h (tracer): Update prototype.
1198 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
1199 Assert we are in cfglayout mode. Don't go into and out of cfglayout
1200 mode. Use relink_block_chain to serialize the CFG according to the
1201 new basic block order. Move targetm.cannot_modify_jumps_p check from
1202 here...
1203 (gate_handle_reorder_blocks): ...to here.
1204 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
1205 from here...
1206 (gate_duplicate_computed_gotos): ...to here.
1207 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
1208 something always changes when going into and out of cfglayout mode.
1209 Perform an expensive cfg cleanup while going into cfglayout mode.
1210 Always update liveness information on HAVE_conditional_execution
1211 targets. Reserialize the basic blocks and go out of cfglayout mode.
1212 * reg-stack.c: Include cfglayout.h.
1213 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
1214 the call to reorder_basic_blocks.
1215 * basic-block.h (reorder_basic_blocks): Update prototype.
1216 (relink_block_chain): New prototype.
1217 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
1218
1219 2007-03-23 Joseph Myers <joseph@codesourcery.com>
1220
1221 * config/mips/mips.md (type, hazard, *movdi_32bit,
1222 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
1223 *movhi_internal, *movqi_internal, *movsf_hardfloat,
1224 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
1225 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
1226 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
1227 applicable.
1228 (movcc): Change first xfer to multi.
1229 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
1230 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
1231 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
1232 config/mips/generic.md: Change reservations using "xfer" to use
1233 "mfc,mtc".
1234 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
1235 using match_operand.
1236 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
1237 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
1238 examining mode.
1239 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
1240
1241 2007-03-22 Richard Henderson <rth@redhat.com>
1242
1243 * config/i386/i386.c: Remove unnecessary function declarations.
1244 Move targetm definition, and all related macros, to the end of
1245 the file. Resort some functions to put definitions before uses.
1246 (ix86_attribute_table): Make static. Move to end of file.
1247 (ix86_gimplify_va_arg): Make static.
1248
1249 2007-03-22 Richard Henderson <rth@redhat.com>
1250
1251 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
1252 don't increase local_regparm with force_align_arg_pointer check.
1253 (ix86_function_sseregparm): Assert 32-bit.
1254 (type_has_variadic_args_p): New.
1255 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
1256 type_has_variadic_args_p.
1257 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
1258 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
1259 use memset instead. Do maybe_vaarg check first; skip attribute
1260 tests if true; skip attribute tests for 64-bit.
1261 (construct_container): Remove TARGET_DEBUG_ARG.
1262 (function_arg_advance_32, function_arg_advance_64): Split out ...
1263 (function_arg_advance): ... from here.
1264 (function_arg_32, function_arg_64): Split out ...
1265 (function_arg): ... from here.
1266 (ix86_pass_by_reference): Tidy.
1267 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
1268 (function_value_32): New, from parts of ix86_function_value
1269 and ix86_value_regno.
1270 (function_value_64): New, from parts of ix86_function_value
1271 and ix86_libcall_value.
1272 (ix86_function_value_1): New.
1273 (ix86_function_value, ix86_libcall_value): Use it.
1274 (return_in_memory_32, return_in_memory_64): Split out ...
1275 (ix86_return_in_memory): ... from here.
1276 (ix86_struct_value_rtx): Skip for 64-bit.
1277 (ix86_libcall_value, ix86_value_regno): Remove.
1278 (setup_incoming_varargs_64): Split out ...
1279 (ix86_setup_incoming_varargs): ... from here.
1280 (ix86_va_start): Remove TARGET_DEBUG_ARG.
1281 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
1282 * config/i386/i386-protos.h (ix86_function_value): Remove.
1283 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
1284
1285 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1286
1287 PR other/23572
1288 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
1289 infinities not supported, otherwise emit warning if -Woverflow. On
1290 underflow, emit warning if -Woverflow.
1291 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
1292 and 0 otherwise.
1293 * real.h (real_from_string): Update declaration
1294
1295 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
1296 Richard Henderson <rth@redhat.com>
1297
1298 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
1299 * calls.c (compute_argument_block_size, expand_call,
1300 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
1301 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1302 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
1303 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
1304 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
1305 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
1306 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
1307 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
1308 Set to 1.
1309
1310 2007-03-22 Joseph Myers <joseph@codesourcery.com>
1311
1312 * c-incpath.c (add_sysroot_to_chain): New.
1313 (merge_include_chains): Add sysroot argument. Call
1314 add_sysroot_to_chain if sysrooted.
1315 (register_include_chains): Update call to merge_include_chains.
1316 * doc/cppopts.texi: Document use of '=' in include directory
1317 arguments.
1318
1319 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
1320
1321 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
1322 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
1323 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
1324 insn pattern using X87MODEF12 mode macro.
1325
1326 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
1327
1328 * regmove.c (regmove_optimize): Use reg_mentioned_p
1329 instead of reg_overlap_mentioned_p for DST.
1330
1331 2007-03-21 Mike Stump <mrs@apple.com>
1332
1333 * c.opt: Fixup for Objective-C/C++.
1334
1335 2007-03-21 Steve Ellcey <sje@cup.hp.com>
1336
1337 * explow.c (convert_memory_address): Fold memory reference when
1338 POINTERS_EXTEND_UNSIGNED < 0
1339
1340 2007-03-21 Richard Henderson <rth@redhat.com>
1341
1342 PR target/31245
1343 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
1344 * config/i386/mmintrin.h (__m64): Likewise.
1345 * config/i386/xmmintrin.h (__m128): Likewise.
1346
1347 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1348
1349 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
1350 (VXWORKS_OS_CPP_BUILTINS): Define.
1351 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
1352 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
1353
1354 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1355
1356 * rtl.h (constant_pool_reference_p): Delete.
1357 (find_constant_src): Declare.
1358 * rtlanal.c (find_constant_src): New function.
1359 * simplify-rtx.c (constant_pool_reference_p): Delete.
1360 * config/i386/i386.md: Use find_constant_src instead of
1361 constant_pool_reference_p/avoid_constant_pool_reference pairs.
1362
1363 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1364
1365 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
1366 * c-cppbuiltin.c (c_cpp_builtins): Define them.
1367
1368 2007-03-20 Mark Mitchell <mark@codesourcery.com>
1369
1370 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
1371 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
1372 (arm_elf_asm_constructor): Use it.
1373 (arm_elf_asm_destructor): New function.
1374
1375 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
1376
1377 * jump.c (mark_jump_label): Treat SEQUENCE specially.
1378
1379 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
1380
1381 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
1382
1383 2007-03-19 Andrew Haley <aph@redhat.com>
1384
1385 PR tree-optimization/31264
1386 * tree-vrp.c (register_edge_assert_for_1): Don't look though
1387 VIEW_CONVERT_EXPRs.
1388
1389 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
1390
1391 PR rtl-optimization/30907
1392 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
1393 (fwprop_init): Always call loop_optimizer_initialize.
1394 (fwprop_done): Always call loop_optimizer_finalize.
1395 (fwprop): We always have loop info now.
1396 (gate_fwprop_addr): Remove.
1397 (pass_fwprop_addr): Use gate_fwprop as gate.
1398
1399 PR rtl-optimization/30841
1400 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
1401 df_chain_alloc): Call df_reorganize_refs unconditionally.
1402 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
1403 refs_organized to refs_organized_size.
1404 (df_ref_create_structure): Use refs_organized_size instead of
1405 bitmap_size if refs had been organized, and keep refs_organized_size
1406 up-to-date.
1407 * df.h (struct df_ref_info): Change refs_organized to
1408 refs_organized_size.
1409 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
1410 bitmap_size.
1411
1412 2007-03-19 Mark Mitchell <mark@codesourcery.com>
1413
1414 * except.c (output_function_exception_table): Do not reference the
1415 EH personality routine for functions that do not require an
1416 exception table.
1417
1418 2007-03-20 Jakub Jelinek <jakub@redhat.com>
1419
1420 PR c/30762
1421 * c-typeck.c (convert_for_assignment): Call comptypes for
1422 RECORD_TYPE or UNION_TYPE.
1423
1424 PR inline-asm/30505
1425 * reload1.c (reload): Do invalid ASM checking after
1426 cleanup_subreg_operands.
1427
1428 2007-03-19 Jeff Law <law@redhat.com>
1429
1430 * tree-cfg.c (find_taken_edge): Tighten conditions for
1431 optimizing computed gotos.
1432
1433 2007-03-19 Michael Matz <matz@suse.de>
1434
1435 * builtins.c (expand_builtin_sync_operation,
1436 expand_builtin_compare_and_swap,
1437 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
1438 correctly.
1439
1440 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
1441 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
1442 for operand 3.
1443
1444 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1445
1446 * doc/tm.texi: Add brackets around the return type of
1447 TARGET_SECONDARY_RELOAD.
1448
1449 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
1450 Richard Guenther <rguenther@suse.de>
1451
1452 PR tree-optimization/31254
1453 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
1454 Use handled_component_p () where appropriate. Continue
1455 propagating into the rhs if we propagated into an INDIRECT_REF
1456 on the lhs.
1457
1458 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1459
1460 * config/s390/s390.md (op_type attribute): RRR instruction type added.
1461 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
1462 (xde, xdee): Mode attributes adjusted to support DFP modes.
1463 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
1464 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
1465 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
1466 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
1467 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
1468 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
1469 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
1470 numbers.
1471 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
1472 "movsf"): Insn definitions removed.
1473 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
1474 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
1475 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
1476 definitions added.
1477 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
1478 "reload_in<mode>", "reload_out<mode>"): Expander added.
1479 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
1480 Expander removed.
1481
1482 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1483
1484 * config/s390/s390.md: Only non-functional changes. Renamed
1485 FPR mode macro to BFP all over the file.
1486
1487 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1488
1489 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
1490 (op_type attribute): RRF instruction type added.
1491 (fT0): New mode attribute.
1492 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
1493 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
1494 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
1495 no secondary memory is needed when moving DFmode values between GPRs
1496 and FPRs.
1497
1498 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1499
1500 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
1501 inverted and documentation adjusted.
1502 ("mhard-dfp", "msoft-dfp"): New options.
1503 * config/s390/s390.c (s390_handle_arch_option): New architecture
1504 switch: z9-ec.
1505 (override_options): Sanity checks for the new options added.
1506 * config.gcc: New architecture switch: z9-ec.
1507 * config/s390/s390.h (processor_flags): PF_DFP added.
1508 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
1509 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
1510 when the bit is NOT set so remove it from the defaults.
1511
1512 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1513
1514 * genemit.c (main): Print include statement for dfp.h.
1515 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
1516 is not available.
1517
1518 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
1519
1520 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
1521
1522 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
1523
1524 PR target/31022
1525 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
1526 instead of PATTERN.
1527
1528 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1529
1530 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
1531 attr_length_call, output_call, output_indirect_call): Cleanup
1532 formatting of targetm calls.
1533
1534 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
1535
1536 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
1537
1538 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1539
1540 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
1541 reservation, bypass and anti-bypass descriptions for these instructions.
1542 Update move patterns.
1543 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
1544 TYPE_FPSTORE.
1545
1546 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
1547
1548 * tree-vect-transform.c (get_initial_def_for_induction): Replace
1549 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
1550 (get_initial_def_for_reduction): Likewise.
1551
1552 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
1553
1554 Fix PR tree-optimization/29922
1555 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
1556 (get_representative): Removed.
1557 (value_dies_in_block_x): Update for rvuse removal.
1558 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
1559 (compute_antic_aux): Handle when PHI nodes appear in
1560 non-single-successors.
1561 (dump_bitmap_of_names): Removed.
1562 (compute_antic_safe): Renamed and removed rvuse calculation.
1563 Calculate only antic safe.
1564 (insert_into_preds_of_block): Remove assert.
1565 (execute_pre): Update for renamed functions.
1566 (defer_or_phi_translate_block): New function.
1567
1568 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
1569
1570 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
1571 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
1572 typos.
1573 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
1574 Follow spelling conventions.
1575
1576 * tree-data-ref.h: Remove the prototype for analyze_array.
1577
1578 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
1579
1580 PR tree-optimization/31041
1581 * tree-vect-transform.c (get_initial_def_for_induction): Call
1582 force_gimple_operand.
1583
1584 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
1585
1586 * ipa-type-escape.c (look_for_casts) : Revert code to use
1587 handled_component_p due to ada test a-numaux.adb.
1588
1589 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
1590
1591 * final.c (final_scan_insn): Alter the condition of a
1592 conditional trap if we have nonstandard CC.
1593
1594 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1595
1596 * configure.ac: Remove excess quoting from asm line 0 test.
1597 * configure: Rebuilt.
1598
1599 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1600
1601 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
1602 * c-common.c (convert_and_check): Move warning logic to...
1603 (warnings_for_convert_and_check): ...here. Define.
1604 * c-common.h (warnings_for_convert_and_check): Declare.
1605
1606 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1607
1608 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
1609 (output_call): Likewise.
1610
1611 2007-03-16 Richard Sandiford <richard@codesourcery.com>
1612
1613 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
1614
1615 2007-03-16 Richard Sandiford <richard@codesourcery.com>
1616
1617 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
1618
1619 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
1620
1621 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
1622 opteron, athlon-64 and athlon-fx processor_alias_table entries.
1623
1624 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
1625
1626 PR tree-optimization/31183
1627 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
1628 Use double_int instead of unsigned int for representing access_strides.
1629 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
1630
1631 2007-03-16 Richard Guenther <rguenther@suse.de>
1632
1633 PR tree-optimization/31146
1634 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
1635 to allow recursion of forward_propagate_addr_expr.
1636 (forward_propagate_addr_into_variable_array_index): Likewise.
1637 (forward_propagate_addr_expr): Likewise.
1638 (tree_ssa_forward_propagate_single_use_vars): Likewise.
1639 (forward_propagate_addr_expr_1): Recurse on simple copies
1640 instead of propagating into them. Do so for useless conversions
1641 as well.
1642 (forward_propagate_addr_expr): Clean up unused statements after
1643 recursion.
1644
1645 2007-03-16 Richard Guenther <rguenther@suse.de>
1646
1647 * builtins.c (expand_builtin_cexpi): Use the right argument
1648 for the expansion via cexp.
1649
1650 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1651
1652 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
1653 * configure: Rebuilt.
1654
1655 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1656
1657 PR debug/29906
1658 * dwarf2out.c (force_type_die): Adjust comment.
1659 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
1660
1661 2007-03-15 DJ Delorie <dj@redhat.com>
1662
1663 * config/frv/predicates.md (minmax_operator): Don't check operands
1664 here.
1665
1666 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
1667
1668 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
1669 Update constant estimates of number of iterations.
1670 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
1671 argument renamed to "realistic".
1672 (compute_estimated_nb_iterations): Removed.
1673 (record_niter_bound): New function.
1674 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
1675 call record_nonwrapping_iv with upper = false.
1676 (infer_loop_bounds_from_signedness): Pass upper argument to
1677 record_nonwrapping_iv.
1678 (estimate_numbers_of_iterations_loop): Do not call
1679 compute_estimated_nb_iterations. Record estimate based on profile
1680 information. Initialize the constant estimates of number of
1681 iterations.
1682 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
1683 estimates.
1684 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
1685 number of iterations is too small.
1686 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
1687 (EST_NOT_AVAILABLE): Removed.
1688 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
1689 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
1690 fields.
1691
1692 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
1693
1694 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
1695 Handle NE_EXPR guards.
1696
1697 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1698
1699 PR c++/24924
1700 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
1701 Set also -pedantic-errors by default for the preprocessor unless
1702 -fpermissive is given.
1703
1704 2007-03-15 Richard Guenther <rguenther@suse.de>
1705
1706 PR middle-end/29719
1707 PR middle-end/31161
1708 * builtins.c (expand_builtin_cexpi): As a fallback if we
1709 don't have builtins for sincos or cexp create a function
1710 declaration for cexp and expand to a call to that.
1711 (expand_builtin_int_roundingfn): Always fall
1712 back to floor/ceil and its variants even if they may be
1713 not available.
1714
1715 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
1716
1717 PR middle-end/31159
1718 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
1719 jump tables, move the call to delete_dead_jumptables from here...
1720 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
1721 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
1722 don't allow merging of blocks that try_redirect_by_replacing_jump
1723 also does not handle when not optimizing.
1724
1725 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
1726 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1727
1728 * config/i386/i386.md (x86_sahf_1): Correctly handle
1729 HAVE_AS_IX86_SAHF.
1730
1731 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
1732
1733 PR target/31167
1734 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
1735 x86_64_general_operand as operand[2] predicate. Remove "iF"
1736 from operand constraints and use "e" constraint instead.
1737 (*subti3_1, *subti3_1 splitter): Ditto.
1738 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
1739 operand[1] predicate.
1740
1741 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
1742
1743 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
1744 arrays, multiply the access strides by the size of the sub-array.
1745 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
1746
1747 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
1748
1749 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
1750 the configured assembler supports the sahf mnemonic.
1751 * configure: Regenerate.
1752 * config.in: Regenerate.
1753
1754 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
1755 emit "sahf" or ".byte\t0x9e" as asm template.
1756
1757 2007-03-14 Michael Meissner <michael.meissner@amd.com>
1758
1759 PR 31018
1760 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
1761 option to replace hard coded TARGET_xxx in md file.
1762 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
1763 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1764 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
1765 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
1766 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
1767 (X86_TUNE_NOT_VECTORMODE): Ditto.
1768 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
1769 (TUNE_AVOID_VECTOR_DECODE): Ditto.
1770 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1771 (TUNE_SLOW_IMUL_IMM8): Ditto.
1772 (TUNE_MOVE_M1_VIA_OR): Ditto.
1773 (TUNE_NOT_UNPAIRABLE): Ditto.
1774 (TUNE_NOT_VECTORMODE): Ditto.
1775
1776 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
1777 options.
1778
1779 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
1780 tuning options instead of hard coded TARGET_xxx.
1781 (fix ssemode peephole2's): Ditto.
1782 (imul peephole2's): Ditto.
1783 (movsi_or): Ditto.
1784 (movdi_or_rex64): Ditto.
1785 (move peephole2): Ditto.
1786 (not peephole2's): Ditto.
1787
1788 2007-03-14 Dirk Mueller <dmueller@suse.de>
1789
1790 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
1791 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
1792 * c-parser.c (c_parser_if_body): Always add an empty statement in case
1793 of empty body.
1794 * c-parser.c (c_parser_do_statement): Warn about empty body in
1795 do/while statement.
1796 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
1797 * doc/invoke.texi (-Wempty-body): Update documentation.
1798
1799 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1800
1801 PR c/21438
1802 * c-common.h (warn_for_div_by_zero): Declare.
1803 * c-common.c (warn_for_div_by_zero): Define.
1804 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
1805 warning.
1806
1807 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1808
1809 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
1810 to PREFIX and STANDARD_PREFIX.
1811
1812 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1813 Phil Edwards <phil@codesourcery.com>
1814
1815 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
1816 (__gthread_once_t): Remove busy field for RTPs.
1817 (__GTHREAD_ONCE_INIT): Update accordingly.
1818
1819 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1820
1821 * doc/invoke.texi: Document VxWorks options.
1822
1823 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
1824
1825 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
1826
1827 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
1828
1829 PR tree-optimization/30590
1830 * tree-nrv.c (tree_nrv): Check for the partial update of the
1831 return value.
1832
1833 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
1834
1835 * flags.h (flag_random_seed): Remove declaration, in favor of...
1836 * toplev.h (get_random_seed, set_random_seed): ... these.
1837 * tree.c (get_file_function_name): Use the former.
1838 * opts.c (common_handle_option): Use the latter.
1839 * toplev.c
1840
1841 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
1842
1843 PR middle-end/31127
1844 * cse.c (cse_find_path): Do not bail out if a basic block that
1845 we already visited now becomes part of a path that starts at a
1846 different basic block. Just disallow this, to make sure we
1847 visit each basic block at most once.
1848
1849 2007-03-13 Jan Hubicka <jh@suse.cz>
1850
1851 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
1852 when profile esitmate is present, calls with very low frequency are
1853 cold.
1854
1855 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
1856
1857 PR tree-optimization/30730
1858 PR tree-optimization/26900
1859 * tree-ssa-loop-niter.c: Include gmp.h.
1860 (bounds): New type.
1861 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
1862 split_to_var_and_offset, determine_value_range,
1863 bound_difference_of_offsetted_base, refine_bounds_using_guard,
1864 bound_difference, bounds_add, bounds_negate,
1865 number_of_iterations_ne_max, dump_affine_iv): New functions.
1866 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
1867 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
1868 difference of initial and final value of control iv to validate
1869 results.
1870 (number_of_iterations_cond): Add loop parameter. Determine bounds
1871 on the difference of the extremes of the control iv. Add dumps.
1872 (expand_simple_operations): Handle phi nodes.
1873 (simplify_using_initial_conditions): Do not record used conditions.
1874 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
1875 Do not set additional_info.
1876 (implies_nonnegative_p, implies_ge_p): Removed.
1877 (derive_constant_upper_bound): Do not use parameter `additional'.
1878 (record_estimate): Parameter `additional' removed. Parameter
1879 `i_bound' added. Do not call derive_constant_upper_bound.
1880 (record_nonwrapping_iv): Use derive_constant_upper_bound to
1881 bound the number of iterations estimate.
1882 (estimate_numbers_of_iterations_loop): Pass the estimate from
1883 the number of iterations analysis to record_estimate.
1884 * tree.h (multiple_of_p): Declare.
1885 * tree-scalar-evolution.c (expression_expensive_p): Removed.
1886 (scev_const_prop): Do not check expression_expensive_p.
1887 * fold-const.c (multiple_of_p): Exported.
1888 * double-int.c (double_int_mask): Exported.
1889 * double-int.h (double_int_mask): Declare.
1890 * tree-flow.h (struct tree_niter_desc): Removed additional_info
1891 field. Added max field.
1892
1893 2007-03-13 David Taylor <taylor@candd.org>
1894
1895 PR driver/12448:
1896 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
1897 default -MQ.
1898
1899 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1900
1901 PR target/31123
1902 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
1903 two unamed patterns.
1904
1905 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
1906
1907 * config/i386/i386.opt (mcx16, msahf): New options.
1908 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
1909 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
1910
1911 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
1912 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
1913 Output -mcx16 and -msahf options when corresponding bit is set.
1914
1915 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
1916 and -msahf options.
1917
1918 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
1919
1920 * configure.ac: Test for assembler tolerance to # 0 "".
1921 * configure, config.in: Rebuilt.
1922 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
1923
1924 2007-03-13 Geoffrey Keating <geoffk@apple.com>
1925
1926 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
1927
1928 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
1929 (handle_syscall): Handle direct system calls.
1930 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
1931
1932 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
1933
1934 * doc/invoke.texi: Fix cpp.info cross-reference.
1935 * doc/passes.texi: Fix gcc.info cross-reference.
1936
1937 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
1938
1939 PR tree-optimization/30835
1940 * lambda-code.c (can_convert_to_perfect_nest): Check whether
1941 bb_for_stmt is not NULL before accessing it.
1942
1943 2007-03-12 Joseph Myers <joseph@codesourcery.com>
1944
1945 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
1946 some multilibs.
1947
1948 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
1949
1950 PR 30635
1951 * doc/install.texi: Document --enable-stage1-languages
1952
1953 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
1954
1955 * tree-pass.h (pass_into_cfg_layout_mode,
1956 pass_outof_cfg_layout_mode): Declare.
1957 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
1958 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
1959 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
1960 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
1961
1962 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
1963
1964 * c-decl.c (warn_variable_length_array): New function.
1965 Refactored from grokdeclarator to handle warn_vla
1966 and handle unnamed array case.
1967 (grokdeclarator): Refactored VLA warning case.
1968 * c.opt (Wvla): New flag.
1969 * doc/invoke.texi (Wvla): New warning.
1970
1971 2007-03-12 Richard Henderson <rth@redhat.com>
1972
1973 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
1974 (TARGET_SECTION_TYPE_FLAGS): New.
1975
1976 2007-03-12 Richard Henderson <rth@redhat.com>
1977
1978 * config/darwin.c (machopic_reloc_rw_mask): New.
1979 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
1980 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
1981
1982 2007-03-12 Mark Mitchell <mark@codesourcery.com>
1983
1984 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
1985 * cppdefault.h (cpp_PREFIX): Document.
1986 (cpp_PREFIX_len): Likewise.
1987 (cpp_EXEC_PREFIX): New variable.
1988 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
1989 * c-incpath.c (add_standard_paths): Correct logic for relocating
1990 paths within prefix.
1991
1992 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
1993
1994 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
1995 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
1996 mode macro.
1997 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
1998 fix_truncdfdi_sse using SSEMODEF mode macro.
1999 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
2000 fix_truncdfsi_sse using SSEMODEF mode macro.
2001 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
2002 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
2003
2004 2007-03-12 Richard Sandiford <richard@codesourcery.com>
2005
2006 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
2007 elfos.h to tm_file.
2008
2009 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
2010
2011 * tree.h : Add multiple_of_p declaration.
2012 * fold-const.c (multiple_of_p): Make multiple_of_p public.
2013 * ipa-type-escape.c (results_of_malloc): Redundant.
2014 (visited_stmts): New. Visited stmt for walk_use_def_chains.
2015 (cast_type): Extended with new members.
2016 (check_cast): Returns cast_type.
2017 (cast): New structure for data of walk_use_def_chains.
2018 (is_malloc_result, is_cast_from_non_pointer_1,
2019 is_cast_from_non_pointer,
2020 is_array_access_through_pointer_and_index): New functions.
2021 (look_for_casts): Returns cast types.
2022 (check_call): Returns void.
2023 (okay_pointer_operation): Use support of pointer plus index,
2024 pointer plus constant and allow all multiplications.
2025
2026 2007-03-11 Richard Guenther <rguenther@suse.de>
2027
2028 PR tree-optimization/31115
2029 * tree-vrp.c (extract_range_from_binary_expr): Make sure
2030 the shift count is positive and non-anti-range for RSHIFT_EXPR.
2031 A shift count of zero is not special as with *_DIV_EXPR.
2032 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
2033 direction.
2034
2035 2007-03-11 Ian Lance Taylor <iant@google.com>
2036
2037 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
2038 the *_DIV_EXPR codes correctly with overflow infinities.
2039
2040 2007-03-11 Ira Rosen <irar@il.ibm.com>
2041
2042 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
2043 indicate success/failure of the analysis. Add negation to subtrahend
2044 in case of subtraction. Fail if both operands contain constants.
2045 (create_data_ref): Fail if analyze_offset fails.
2046
2047 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
2048
2049 * config/i386/i386.md (frndintxf2): Rename to ...
2050 (rintxf2): ... this. Remove expander having same name.
2051 (rintsf2, rintdf2): Implement using SSEMODEF macro.
2052 (roundsf2, rounddf2): Ditto.
2053 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
2054 (lround<mode>di2, lround<mode>si2): Ditto.
2055
2056 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
2057
2058 * lower-subreg.c: Include except.h.
2059 (decompose_multiword_subregs): Verify that the only control flow
2060 insns we can split are loads to multi-words pseudos.
2061 Handle breaking such blocks after splitting, instead of calling
2062 find_many_sub_basic_blocks.
2063
2064 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
2065 on the new basic block. Add a lengthy comment explaining why we
2066 thought this was necessary.
2067 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
2068
2069 2007-03-10 Mark Mitchell <mark@codesourcery.com>
2070
2071 PR c++/30924
2072 * tree.c (walk_type_fields): Recurse into the element type of
2073 ARRAY_TYPEs if there is a pointer set.
2074
2075 2007-03-10 Dirk Mueller <dmueller@suse.de>
2076
2077 * c-common.c (warn_logical_operator): Fix condition.
2078
2079 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
2080
2081 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
2082 quotation mark.
2083 * config/darwin.c (machopic_select_section): Remove superfluous
2084 argument in call to categorize_decl_for_section. Remove unused
2085 variable shlib.
2086
2087 2007-03-10 Joseph Myers <joseph@codesourcery.com>
2088
2089 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
2090 defined.
2091 * configure: Regenerate.
2092
2093 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
2094
2095 PR target/31101
2096 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
2097 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
2098 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
2099 Add LABEL_NUSES to emitted label.
2100 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
2101 branch probability value to emitted jump insn.
2102 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
2103 Do not check life information and do not re-arrange input operands
2104 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
2105
2106 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
2107
2108 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
2109 the change of decode_asm_operands.
2110
2111 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
2112
2113 * mode-switching.c (create_pre_exit): Skip blockage insn.
2114
2115 2007-03-09 Diego Novillo <dnovillo@redhat.com>
2116
2117 * tree-pass.h (TODO_update_smt_usage): Remove.
2118 Update all users.
2119 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2120 argument SOME.
2121 Update all users.
2122
2123 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2124
2125 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
2126 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
2127 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
2128 SOM target.
2129
2130 2007-03-09 Geoffrey Keating <geoffk@apple.com>
2131
2132 * gcc.c: Document %{, in big comment at top.
2133 (input_suffix_matches): Remove special handling for .s and
2134 .S.
2135 (input_spec_matches): New.
2136 (handle_braces): Handle %{,.
2137 (validate_switches): ',' indicates a value which is not a switch.
2138 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
2139 to detect assembler input.
2140 * config/i386/sol2.h (CPP_SPEC): Likewise.
2141 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
2142 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2143 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
2144 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
2145 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
2146 -m64 causes deployment target to default to 10.5.
2147 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
2148
2149 2007-03-09 Richard Henderson <rth@redhat.com>
2150
2151 PR target/26090
2152 * target.h (targetm.asm.out.reloc_rw_mask): New.
2153 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
2154 (TARGET_ASM_OUT): Use it.
2155 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
2156 * varasm.c (categorize_decl_for_section): Remove shlib argument;
2157 use the new reloc_rw_mask target hook instead.
2158 (default_section_type_flags_1): Merge into...
2159 (default_section_type_flags): ... here.
2160 (decl_readonly_section_1): Merge into...
2161 (decl_readonly_section): ... here.
2162 (default_elf_select_section_1): Merge into...
2163 (default_elf_select_section): ... here.
2164 (default_unique_section_1): Merge into...
2165 (default_unique_section): ... here.
2166 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
2167 (default_select_rtx_section): Use it.
2168 (default_elf_select_rtx_section): Likewise.
2169 * output.h: Update to match.
2170 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
2171 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
2172 (TARGET_ASM_RELOC_RW_MASK): New.
2173 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
2174 to categorize_decl_for_section.
2175 (x86_64_elf_unique_section): Likewise.
2176 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
2177 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
2178 (TARGET_ASM_RELOC_RW_MASK): New.
2179 * config/ia64/ia64.c (ia64_rwreloc_select_section,
2180 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
2181 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
2182 (TARGET_RWRELOC): Remove.
2183 (ia64_section_type_flags): Adjust call to default_section_type_flags.
2184 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
2185 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
2186 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
2187 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
2188 (rs6000_xcoff_select_section): Use decl_readonly_section.
2189 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
2190 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
2191 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
2192 (TARGET_SECTION_TYPE_FLAGS): Remove.
2193 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
2194
2195 2007-03-09 Roger Sayle <roger@eyesopen.com>
2196
2197 * fold-const.c (fold_comparison): Remove compile-time evaluation of
2198 complex constant equality/inequality comparisons for here.
2199 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
2200 known at compile-time or can be simplified to a scalar comparison.
2201 (fold_relational_const): Move compile-time evaluation of complex
2202 constant equality/inequality comparisons to here.
2203
2204 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2205
2206 PR rtl-optimization/30643
2207 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
2208 dest_addr_elt.
2209 (fold_rtx): Recurse, like before 2006-11-03.
2210
2211 2007-03-09 DJ Delorie <dj@redhat.com>
2212
2213 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
2214 m32c-pragma.o.
2215
2216 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
2217
2218 PR tree-optimization/30375
2219 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
2220 LHS of statements is not the same.
2221 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
2222
2223 2007-03-09 Chao-ying Fu <fu@mips.com>
2224
2225 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
2226 REV 2.
2227 * doc/invoke.texi (-mdspr2): Document new option.
2228 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
2229 New unspec for DSP REV 2.
2230 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
2231 these instructions are extended in DSP REV 2.
2232 (mips-dspr2.md): Include.
2233 * config/mips/mips.opt (mdspr2): New option.
2234 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
2235 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
2236 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
2237 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
2238 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
2239 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
2240 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
2241 and 2 builtins.
2242 (bdesc_map): Add one field of unsupported_target_flags.
2243 (bdesc_arrays): Update entries to have extra fields. Add
2244 dsp_32only_bdesc.
2245 (mips_init_builtins): Initialize new function types.
2246 Check unsupported_target_fileds to filter out builtins.
2247 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
2248 TARGET_DSPR2.
2249 (ASM_SPEC): Pass mdspr2 to the assembler.
2250 * config/mips/mips-dspr2.md: New file.
2251
2252 2007-03-09 Sa Liu <saliu@de.ibm.com>
2253
2254 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
2255
2256 2007-03-09 Ian Lance Taylor <iant@google.com>
2257
2258 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
2259 argument) like -Wstrict-overflow=2.
2260 * doc/invoke.texi (Warning Options): Update documentation.
2261
2262 2007-03-09 Dirk Mueller <dmueller@suse.de>
2263
2264 PR c++/17946
2265 * doc/invoke.texi (-Wlogical-op): Document.
2266 * common.opt (-Wlogical-op): New.
2267 * c-common.h (warn_logical_operator): Declare.
2268 * c-common.c (warn_logical_operator): Define.
2269 * c-typeck.c (parser_build_binary_op): Call
2270 warn_logical_operator.
2271
2272 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2273
2274 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
2275 * final.c (final_scan_insn): Test for non-"" file name.
2276
2277 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
2278
2279 * doc/loop.texi: Document the Omega linear constraints solver.
2280 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
2281 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
2282 omega-hash-table-size, omega-max-keys, and
2283 omega-eliminate-redundant-constraints.
2284 * tree-pass.h (pass_check_data_deps): Declared.
2285 * omega.c: New.
2286 * omega.h: New.
2287 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
2288 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
2289 pass_check_data_deps): New.
2290 * tree-data-ref.c (init_data_ref): Remove declaration.
2291 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
2292 (analyze_array): Renamed init_array_ref, move up initializations.
2293 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
2294 Removed arguments that are set to NULL.
2295 (analyze_indirect_ref): Correct indentation, correct call to
2296 init_pointer_ref.
2297 (object_analysis): Call init_array_ref instead of analyze_array.
2298 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
2299 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
2300 of DR_ACCESS_FNS_ADDR.
2301 (init_omega_eq_with_af, omega_extract_distance_vectors,
2302 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
2303 ddr_consistent_p): New.
2304 (compute_affine_dependence): Check consistency of ddrs when
2305 flag_check_data_deps is passed.
2306 (analyze_all_data_dependences): Uncomment.
2307 (tree_check_data_deps): New.
2308 * tree-data-ref.h: Include omega.h.
2309 (DR_ACCESS_FNS_ADDR): Removed.
2310 (data_dependence_relation): Add inner_loop.
2311 (DDR_INNER_LOOP): New.
2312 * common.opt (fcheck-data-deps): New.
2313 * tree-flow.h (tree_check_data_deps): Declare.
2314 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
2315 (OBJS-common): Depend on omega.o.
2316 (omega.o): Define.
2317 * passes.c (pass_check_data_deps): Scheduled.
2318 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2319 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2320 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
2321 PARAM_VECT_MAX_VERSION_CHECKS,
2322 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
2323
2324 2007-03-09 Richard Guenther <rguenther@suse.de>
2325
2326 PR tree-optimization/30904
2327 PR middle-end/31058
2328 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
2329 the same way as *_DIV_EXPR.
2330
2331 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2332
2333 * recog.c (decode_asm_operands): No mixed declarations and code.
2334
2335 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2336
2337 * rtl.def (ASM_INPUT): Add location.
2338 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
2339 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
2340 (decode_asm_operands): Add loc operand.
2341 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
2342 * stmt.c (expand_asm): Rename to...
2343 (expand_asm_loc): ... this. Add locus argument. Pass it on to
2344 gen_rtx_ASM_INPUT_loc.
2345 (expand_asm_expr): Adjust.
2346 * recog.c (decode_asm_operands): Add loc operand.
2347 (check_asm_operands, extract_insn): Adjust.
2348 * reload1.c (maybe_fix_stack_asms): Likewise.
2349 * final.c (asm_insn_count): Likewise.
2350 (final_scan_insn): Output # line before and after asm.
2351
2352 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
2353
2354 * tree-ssa-structalias.c (variable_info): Remove
2355 finished_solution.
2356 (new_var_info): Ditto.
2357 (shared_bitmap_info_t): New structure.
2358 (shared_bitmap_table): New variable.
2359 (shared_bitmap_hash): New function.
2360 (shared_bitmap_eq): Ditto
2361 (shared_bitmap_lookup): Ditto.
2362 (shared_bitmap_add): Ditto.
2363 (merge_smts_into): Change to take bitmap directly.
2364 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
2365 (init_alias_vars): Init shared bitmap hashtable.
2366 (delete_points_to_sets): Delete shared bitmap hashtable.
2367 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
2368 is_aliased removal as a change that was still necessary was
2369 deleted.
2370
2371 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
2372
2373 * config/i386/i386.h (override_options): Conditionally disable
2374 x86_sahf for 64bit targets only.
2375
2376 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
2377
2378 PR C/31072
2379 * c-decl.c (merge_decls): Don't call make_var_volatile.
2380 * varasm.c (make_var_volatile): Remove.
2381 * output.h (make_var_volatile): Remove.
2382
2383 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
2384
2385 PR tree-optimization/31085
2386 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
2387
2388 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2389
2390 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
2391 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
2392 ATTR_CONST_NOTHROW_LIST.
2393
2394 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
2395 FIX_TRUNC_EXPR.
2396
2397 2007-03-08 Diego Novillo <dnovillo@redhat.com>
2398
2399 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
2400
2401 2007-03-08 Geoffrey Keating <geoffk@apple.com>
2402
2403 PR 31013
2404 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
2405 is declared.
2406 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
2407 passed, use shared libgcc.
2408
2409 2007-03-08 Roger Sayle <roger@eyesopen.com>
2410
2411 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
2412 instead of calling build2 with a GIMPLE_MODIFY_STMT.
2413 (honor_protect_cleanup_actions, lower_try_finally_switch):
2414 Likewise.
2415 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
2416 ifc_temp_var): Likewise.
2417 * tree-inline.c (setup_one_parameter): Likewise.
2418 * tree-mudflap.c (mf_decl_cache_locals,
2419 mf_build_check_statement_for): Likewise.
2420 * tree-nested.c (init_tmp_var, save_tmp_var,
2421 finalize_nesting_tree_1): Likewise.
2422 * tree-outof-ssa.c (insert_copy_on_edge,
2423 insert_backedge_copies): Likewise.
2424 * tree-profile.c (tree_gen_edge_profiler,
2425 tree_gen_ic_profiler): Likewise.
2426 * tree-scalar-evolution.c (scev_const_prop): Likewise.
2427 * tree-sra.c (sra_build_assignment): Likewise.
2428 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
2429 * tree-ssa-math-opts.c (insert_reciprocals,
2430 execute_cse_sincos_1): Likewise.
2431 * tree-tailcall.c (adjust_accumulator_values,
2432 adjust_return_value): Likewise.
2433 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
2434 * tree-vect-transform.c (vect_create_data_ref_ptr,
2435 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
2436 vect_create_epilog_for_reduction, vectorizable_reduction,
2437 vectorizable_call, vectorizable_conversion,
2438 vectorizable_assignment, vectorizable_operation,
2439 vectorizable_type_demotion, vect_gen_widened_results_half,
2440 vect_permute_store_chain, vectorizable_store,
2441 vect_setup_realignment, vect_permute_load_chain,
2442 vectorizable_load, vectorizable_condition,
2443 vect_create_cond_for_align_checks): Likewise.
2444 * tree-vrp.c (build_assert_expr_for): Likewise.
2445
2446 2007-03-08 Ian Lance Taylor <iant@google.com>
2447
2448 * tree-vrp.c: Include "intl.h".
2449 (usable_range_p): New static function.
2450 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
2451 overflowed values, juts set *strict_overflow_p.
2452 (compare_values): Only return -2 if one of the operands is not a
2453 constant.
2454 (compare_ranges): Call usable_range_p.
2455 (compare_range_with_value): Likewise.
2456 (vrp_evaluate_conditional_warnv): Rename from
2457 vrp_evaluate_conditional. Make static. Change all callers.
2458 (vrp_evaluate_conditional): New function.
2459 (simplify_div_or_mod_using_ranges): Issue warning about reliance
2460 on signed overflow.
2461 (simplify_abs_using_ranges): Likewise.
2462 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
2463 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
2464 within_stmt parameter.
2465 * tree-ssa-propagate.c (fold_predicate_in): Update call to
2466 vrp_evaluate_conditional.
2467 * tree-ssa-threadedge.c
2468 (record_temporary_equivalences_from_stmts_at_dest): Change
2469 simplify parameter to take a second tree parameter.
2470 (simplify_control_stmt_condition): Likewise.
2471 (thread_across_edge): Likewise.
2472 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
2473 (thread_across_edge): Likewise.
2474 * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
2475
2476 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
2477
2478 * config/i386/i386.h (TARGET_SAHF): New define.
2479 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
2480 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
2481 (x86_sahf): New global variable.
2482 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
2483 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
2484 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
2485 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
2486 for 64-bit.
2487 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
2488 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
2489 when expanding fcomi/sahf based tests.
2490 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
2491 expanding sahf based alternative. Emit sahf based sequence when
2492 optimizing for code size.
2493 * config/i386/i386.md (x86_sahf_1): Do not disable for
2494 TARGET_64BIT, enable for TARGET_SAHF.
2495
2496 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
2497
2498 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
2499 spurious whitespace from error message.
2500
2501 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
2502
2503 PR c++/30852
2504 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
2505
2506 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
2507
2508 * c-decl.c (grokdeclarator): Disable warnings for anonymous
2509 bitfields.
2510 * tree-sra.c (instantiate_element): Propagate disabled warnings
2511 from the element itself to the created variable.
2512
2513 2007-03-07 Richard Henderson <rth@redhat.com>
2514
2515 PR target/30848
2516 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
2517 silently fix up the stack in the case of a missing register.
2518
2519 2007-03-07 Paul Brook <paul@codesourcery.com>
2520
2521 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
2522
2523 2007-03-07 Joseph Myers <joseph@codesourcery.com>
2524
2525 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
2526 New.
2527 (phase1_vrs): Use them.
2528 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
2529 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
2530 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
2531 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
2532 __gnu_Unwind_Restore_WMMXC if required.
2533 (_Unwind_VRS_Pop): Implement iWMMXt support.
2534 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
2535 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
2536 gnu_Unwind_Save_WMMXC): Define.
2537
2538 2007-03-07 Richard Sandiford <richard@codesourcery.com>
2539
2540 * config/vxworks.h (vxworks_override_options): Declare.
2541 (VXWORKS_OVERRIDE_OPTIONS): Use it.
2542 * config/vxworks.c: Include target.h and toplev.h.
2543 (vxworks_override_options): New function.
2544 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
2545
2546 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
2547
2548 * config/s390/s390.c (override_options): Don't emit an error when
2549 -mstack-size is used without providing -mstack-guard.
2550 (s390_emit_prologue): Choose stack_guard value automatically if not
2551 provided via command line.
2552 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
2553
2554 2007-03-07 Richard Sandiford <richard@codesourcery.com>
2555
2556 * config/i386/i386.c (output_set_got): Add a GOT initialization
2557 sequence for VxWorks PIC.
2558 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
2559 around labels as well as symbols. Use gotoff_operand instead
2560 of local_symbolic_operand.
2561 (legitimize_pic_address): Use gotoff_operand instead of
2562 local_symbolic_operand. Use @GOT accesses for labels as
2563 well as symbols.
2564 (ix86_output_addr_diff_elt): Use PC-relative rather than
2565 GP-relative offsets for VxWorks PIC.
2566 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
2567 no_new_pseudos. Check whether the returned register is op0.
2568 * config/i386/i386.md (tablejump): Use PC-relative rather than
2569 GP-relative offsets for VxWorks PIC.
2570 * config/i386/predicates.md (gotoff_operand): New predicate.
2571
2572 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2573
2574 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
2575 before defining.
2576 * config/vxworks-dummy.h: New file.
2577 * config/i386/i386.h: Include it.
2578
2579 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
2580
2581 * dwarf2out.c (is_inlined_entry_point): New
2582 (add_high_low_attributes): Emit DW_AT_entry_pc along with
2583 DW_AT_ranges if the first subblock is the entry point.
2584
2585 2007-03-06 David Daney <ddaney@avtrex.com>
2586
2587 * doc/install.texi (mips-*-*): Change recommended binutils
2588 version.
2589
2590 2007-03-06 Anatoly Sokolov <aesok@post.ru>
2591
2592 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
2593 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
2594 devices.
2595 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2596 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2597
2598 2007-03-06 Jan Hubicka <jh@suse.cz>
2599
2600 * errors.h (warning, error, fatal, internal_error): Mark as cold.
2601 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
2602 are hot.
2603 (probably_cold_bb_p): Cold functions are cold.
2604 (probably_never_executed_bb_p): Cold functions are cold.
2605 (tree_bb_level_predictions): Predict calls to cold functions as not
2606 taken.
2607 (compute_function_frequency): Check hot/cold attributes.
2608 * function.h (function_frequency): Update comments.
2609 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
2610 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
2611 (c_common_att): Add cold and hot.
2612
2613 * doc/extend.texi (hot,cold attributes): Document.
2614
2615 2007-03-06 Andrew Haley <aph@redhat.com>
2616
2617 * function.c (expand_function_end): Move blockage to just after we
2618 emit the label for the naked return from the function.
2619
2620 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2621
2622 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
2623 before redefining.
2624
2625 2007-03-06 Jan Hubicka <jh@suse.cz>
2626
2627 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
2628 loaded for constant large models. Non-large 64bit PIC can do.
2629 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
2630 * cmodel.h: Add LARGE PIC.
2631 * i386.md (UNSPEC_PLTOFF): New.
2632 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
2633 needed.
2634 (*call_1_rex64): Disable for large models.
2635 (*call_1_rex64_large): New.
2636 (*call_value_1_rex64): Disable for large models.
2637 (*call_value_1_rex64_large): New.
2638 (set_rip_rex4): New.
2639 (set_got_offset_rex64): New.
2640 * predicates.md (constant_call_address_operand): For large model
2641 constant calls are not possible.
2642 * i386-protos.h (construct_plt_address): Declare.
2643 * i386.c (override_options): Accept large models.
2644 (ix86_expand_prologue): Expand large PIC GOT pointer load.
2645 (legitimate_constant_p): Add new UNSPECs.
2646 (legitimate_pic_operand_p): Likewise.
2647 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
2648 (legitimize_pic_address): Do easy RIP relative way for TLS only for
2649 non-large model.
2650 (output_pic_addr_const): Add PLTOFF.
2651 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
2652 (ix86_expand_move): Legitimize pic address when in PIC mode.
2653 (construct_plt_address): New function.
2654 (ix86_expand_call): Offload the address to register and use GOT pointer
2655 for large model.
2656 * invoke.texi (mcmodel=large): Update documentation.
2657
2658 2007-03-06 Richard Henderson <rth@redhat.com>
2659
2660 * config/i386/i386.c (x86_use_leave, x86_push_memory,
2661 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
2662 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
2663 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
2664 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
2665 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
2666 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
2667 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
2668 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
2669 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
2670 x86_partial_reg_dependency, x86_memory_mismatch_stall,
2671 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
2672 x86_sse_partial_reg_dependency, x86_sse_split_regs,
2673 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2674 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
2675 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
2676 x86_schedule, x86_use_bt, x86_pad_returns,
2677 x86_use_xchgb): Merge into ...
2678 (ix86_tune_features): ... here. New array.
2679 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2680 x86_bswap): Merge into ...
2681 (ix86_arch_features): ... here. New array.
2682 (x86_3dnow_a): Remove.
2683 (x86_accumulate_outgoing_args): Make static.
2684 (x86_arch_always_fancy_math_387): Make static.
2685 (ix86_tune_mask, ix86_arch_mask): Move ...
2686 (override_options): ... to local variables here. Apply the
2687 appropriate mask to each element of ix86_arch_features and
2688 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
2689 as were done in the old macros.
2690 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
2691 * config/i386/i386.h (x86_use_leave, x86_push_memory,
2692 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
2693 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
2694 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
2695 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
2696 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
2697 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
2698 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
2699 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
2700 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
2701 x86_partial_reg_dependency, x86_memory_mismatch_stall,
2702 x86_accumulate_outgoing_args, x86_prologue_using_move,
2703 x86_epilogue_using_move, x86_decompose_lea,
2704 x86_arch_always_fancy_math_387, x86_shift1,
2705 x86_sse_partial_reg_dependency, x86_sse_split_regs,
2706 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2707 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
2708 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2709 x86_use_incdec, x86_pad_returns, x86_bswap,
2710 x86_partial_flag_reg_stall): Remove.
2711 (enum ix86_tune_indices): New.
2712 (ix86_tune_features): New.
2713 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
2714 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
2715 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
2716 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
2717 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
2718 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
2719 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
2720 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
2721 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
2722 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
2723 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
2724 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
2725 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
2726 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
2727 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
2728 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
2729 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
2730 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
2731 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
2732 TARGET_EXT_80387_CONSTANTS): Use it.
2733 (enum ix86_arch_indices): New.
2734 (ix86_arch_features): New.
2735 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
2736 TARGET_BSWAP): Use it.
2737 (ix86_tune_mask, ix86_arch_mask): Remove.
2738
2739 2007-03-06 Joseph Myers <joseph@codesourcery.com>
2740
2741 PR bootstrap/31020
2742 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
2743 Define using $${sysroot_headers_suffix}.
2744 * configure: Regenerate.
2745 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
2746 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
2747 defined.
2748 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
2749 * gcc.c (print_sysroot_headers_suffix): New.
2750 (option_map): Include --print-sysroot-headers-suffix.
2751 (display_help): Mention -print-sysroot-headers-suffix.
2752 (process_command): Handle -print-sysroot-headers-suffix.
2753 (do_spec_1): Append multilib directory to include-fixed path if
2754 sysroot suffixes in use.
2755 (main): Handle -print-sysroot-headers-suffix.
2756 * Makefile.in (start.encap): Don't depend on xlimits.h
2757 (xlimits.h): Remove.
2758 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
2759 limits.h for each multilib in fixinc_list.
2760 (fixinc_list, s-fixinc_list): New.
2761 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
2762 generate them for each multilib in fixinc_list.
2763 (stmp-fixproto): Use include-fixed. Run fixproto for each
2764 multilib in fixinc_list.
2765 (mostlyclean): Don't remove xlimits.h.
2766 (clean): Remove include-fixed.
2767 (real-install-headers-tar, real-install-headers-cpio,
2768 real-install-headers-cp): Don't copy include, only include-fixed.
2769 (install-mkheaders): Depend on fixinc_list. Don't depend on
2770 xlimits.h. Save limits.h files for each multilib in fixinc_list.
2771 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
2772 SYSTEM_HEADER_DIR setting in mkheaders.conf.
2773
2774 2007-03-06 Jan Hubicka <jh@suse.cz>
2775
2776 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
2777 NANs easilly.
2778
2779 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2780
2781 * configure.ac: Allow tm_file to contain build-directory files.
2782 * configure: Regenerate.
2783 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
2784 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
2785 * config/m68k/print-sysroot-suffix.sh: New file.
2786
2787 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2788
2789 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
2790 of pic_offset_table_rtx if reload_completed.
2791 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
2792 PIC_OFFSET_TABLE_REGNUM.
2793 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
2794 return true.
2795 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
2796 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
2797
2798 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2799
2800 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2801 functions that call eh_return.
2802
2803 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2804
2805 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2806 functions that need a constant pool.
2807
2808 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2809
2810 PR target/28181
2811 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
2812 (m68k_preferred_reload_class): Likewise.
2813 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
2814 (SECONDARY_RELOAD_CLASS): Define.
2815 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
2816 (LIMIT_RELOAD_CLASS): Delete.
2817 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
2818 registers from storing bytes.
2819 (m68k_secondary_reload_class): New function.
2820 (m68k_preferred_reload_class): Likewise.
2821
2822 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2823
2824 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
2825 leaf functions.
2826 (m68k_expand_prologue): Likewise.
2827
2828 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2829
2830 * config/m68k/m68k-protos.h (output_sibcall): Declare.
2831 (mips_expand_epilogue): Add a bool parameter.
2832 (m68k_legitimize_sibcall_address): Declare.
2833 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
2834 (m68k_expand_epilogue): Add a parameter to select between sibling
2835 and normal epilogues. Only generate a return for the latter.
2836 (m68k_ok_for_sibcall_p): New function.
2837 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
2838 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
2839 (sibcall_value, *sibcall_value): Likewise.
2840 (*call, *call_value): Require !SIBLING_CALL_P.
2841 (epilogue): Update call to m68k_expand_epilogue.
2842 (sibcall_epilogue): New pattern.
2843 * config/m68k/predicates.md (const_call_operand): Say that this
2844 predicate applies to sibling calls too.
2845 (sibcall_operand): New predicate.
2846
2847 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2848
2849 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
2850 alternatives as movsi_cf.
2851 (movsf_cf_hard): Add commentary.
2852
2853 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
2854 Richard Sandiford <richard@codesourcery.com>
2855
2856 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
2857 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
2858 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
2859 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
2860 as being live on exit from an interrupt function.
2861 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
2862 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
2863 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
2864 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
2865 (m68k_interrupt_function_p): Globalize.
2866 (m68k_compute_frame_layout): Remove reverse mask code.
2867 (m68k_emit_movem, m68k_set_frame_related): New functions.
2868 (m68k_output_function_prologue): Delete in favor of...
2869 (m68k_expand_prologue): ...this new function.
2870 (m68k_output_function_epilogue): Delete in favor of...
2871 (m68k_expand_epilogue): ...this new function.
2872 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
2873 functions.
2874 (print_operand): Handle %?.
2875 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
2876 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
2877 (prologue, epilogue): New patterns.
2878 (return): Turn into a define_expand.
2879 (*return): New pattern, derived from old "return" pattern. Use rte
2880 rather than rts for interrupt functions. Only use rtd if the pop
2881 count is nonzero.
2882 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
2883 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
2884 (link, *link, unlink, *unlink, load_got): Likewise.
2885
2886 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2887
2888 PR target/23482
2889 PR target/17114
2890 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
2891 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
2892 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
2893 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
2894 and m68k_matches_u_p.
2895 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
2896 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
2897 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
2898 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
2899 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
2900 (REG_STRICT_P): New macro.
2901 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
2902 PCREL_GENERAL_OPERAND_OK.
2903 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
2904 m68k_legitimate_base_reg_p.
2905 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
2906 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
2907 (PIC_CASE_VECTOR_ADDRESS): Update comment.
2908 * config/m68k/m68k.c (m68k_address): New structure.
2909 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
2910 (m68k_decompose_index, m68k_legitimate_constant_address_p)
2911 (m68k_jump_table_ref_p, m68k_decompose_address)
2912 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
2913 (m68k_matches_u_p): New functions.
2914 (print_operand_address): Rewrite to use m68k_decompose_index.
2915
2916 2007-03-05 David Taylor <dtaylor@emc.com>
2917
2918 * gcc.c: Correct copyright date in --version output.
2919
2920 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2921
2922 * pa.md: In unamed move patterns, disparge copies between general
2923 and floating point registers using '?' modifier. Don't include 'f'
2924 constraint for register preferences in DImode, SImode, HImode and
2925 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
2926 Remove constraints for copies between general and floating registers
2927 in soft-float DFmode pattern.
2928 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
2929 floating register.
2930 (movsf): Likewise.
2931
2932 2007-03-05 Mike Stump <mrs@apple.com>
2933
2934 * c-common.c (targetcm): Add.
2935 * c-opts.c (c_common_handle_option): Handle language specific
2936 target options.
2937 * opts.c (handle_option): Verify language for target options, if
2938 any are given.
2939 * opth-gen.awk: Add CL_LANG_ALL.
2940 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
2941 (TARGETCM_INITIALIZER): Add.
2942 * target.h (struct gcc_targetcm): Add.
2943 (targetcm): Add.
2944 * targhooks.c (default_handle_c_option): Add.
2945 * targhooks.h (default_handle_c_option): Add.
2946 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
2947
2948 * config/darwin.opt (iframework): Add.
2949 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
2950 * config/darwin-c.c (handle_c_option): Add.
2951 (TARGET_HANDLE_C_OPTION): Add.
2952 (targetcm): Add.
2953 * doc/invoke.texi (Darwin Options): Add -iframework.
2954
2955 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2956
2957 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
2958 conversion.
2959
2960 2007-03-05 Ian Lance Taylor <iant@google.com>
2961
2962 * c.opt (fgnu89-inline): New option.
2963 * c-opts.c (c_common_post_options): Set default value for
2964 flag_gnu89_inline.
2965 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
2966 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
2967 inline functions.
2968 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
2969 (grokdeclarator, start_function): Likewise.
2970 * c-cppbuiltin.c (c_cpp_builtins): Define either
2971 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
2972 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
2973 (C Dialect Options): Document -fgnu89-inline.
2974 * doc/extend.texi (Function Attributes): Explain what the
2975 gnu_inline attribute does.
2976 * doc/cpp.texi (Common Predefined Macros): Document
2977 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
2978
2979 2007-03-05 Ian Lance Taylor <iant@google.com>
2980
2981 PR tree-optimization/31034
2982 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
2983 half-range if the other side is an overflow infinity.
2984
2985 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
2986
2987 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
2988 (bfin*-linux-uclibc*): New configuration.
2989 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
2990 defining.
2991 * config/bfin/linux.h: New file.
2992 * config/bfin/libgcc-bfin.ver: New file.
2993 * config/bfin/t-bfin-uclinux: New file.
2994 * config/bfin/t-bfin-linux: New file.
2995 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
2996 (TARGET_OS_CPP_BUILTINS): New macro.
2997
2998 2007-03-05 Richard Guenther <rguenther@suse.de>
2999
3000 * fold-const.c (fold_binary): Remove duplicate folding
3001 of comparison of non-null ADDR_EXPR against null.
3002
3003 2007-03-05 Richard Guenther <rguenther@suse.de>
3004 Dorit Nuzman <dorit@il.ibm.com>
3005
3006 PR tree-optimization/26420
3007 * tree-vectorizer.c (vectorize_loops): Bail out early if there
3008 are no loops in the function. Only print the number of
3009 vectorized loops if it is greater than zero or we are supposed
3010 to print information about unvectorized loops.
3011
3012 2007-03-05 Revital Eres <eres@il.ibm.com>
3013
3014 * gcc.dg/var-expand1.c: New test.
3015 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
3016 when an accumulator is expanded.
3017
3018 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3019
3020 PR other/30465
3021 * c-common.c (convert_and_check): Don't give warnings for
3022 conversion if 'expr' already overflowed.
3023
3024 2007-03-04 Roger Sayle <roger@eyesopen.com>
3025
3026 PR middle-end/30744
3027 * fold-const.c (fold_comparison): Enforce type consistency when
3028 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
3029
3030 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
3031
3032 * tree-ssa-address.c (create_mem_ref): Do not put an expression
3033 containing a cast to the base of TARGET_MEM_REF.
3034
3035 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
3036
3037 * tree.c (tree_contains_struct_check_failed): Remove spurious
3038 whitespace from error message.
3039
3040 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
3041
3042 PR target/30406
3043 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
3044 instead of precision.
3045
3046 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
3047 Nathan Sidwell <nathan@codesourcery.com>
3048
3049 * emit-rtl.c (find_auto_inc): New.
3050 (try_split): recreate REG_INC notes,
3051 Use regular for loops rather than whiles.
3052
3053 2007-03-03 Andreas Schwab <schwab@suse.de>
3054
3055 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
3056 * configure: Regenerate.
3057
3058 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3059
3060 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
3061 flag_rounding_math, not flag_unsafe_math_optimizations.
3062
3063 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
3064 fold_build2.
3065 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
3066 alpha_fold_vector_minmax): Likewise.
3067 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3068 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
3069
3070 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
3071
3072 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
3073 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
3074 if the lhs has side-effects.
3075 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
3076
3077 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3078
3079 * config/i386/i386.h (TUNEMASK): Remove define.
3080 (ARCHMASK): Remove define.
3081 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
3082 Use ix86_arch_mask variable instead of ARCHMASK.
3083 * config/i386/i386.c (override_options): Ditto.
3084 (standard_80387_constant_p): Ditto.
3085
3086 2007-03-02 Ian Lance Taylor <iant@google.com>
3087
3088 Used signed infinities in VRP.
3089 * tree-vrp.c (uses_overflow_infinity): New static function.
3090 (supports_overflow_infinity): New static function.
3091 (make_overflow_infinity): New static function.
3092 (negative_overflow_infinity): New static function.
3093 (positive_overflow_infinity): New static function.
3094 (is_negative_overflow_infinity): New static function.
3095 (is_positive_overflow_infinity): New static function.
3096 (is_overflow_infinity): New static function.
3097 (overflow_infinity_range_p): New static function.
3098 (compare_values_warnv): New function split out of compare_values.
3099 (compare_value): Call it.
3100 (set_value_range_to_nonnegative): Add overflow_infinity
3101 parameter. Change caller.
3102 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
3103 Change callers.
3104 (vrp_expr_computes_nonzero): Likewise.
3105 (compare_ranges, compare_range_with_value): Likewise.
3106 (compare_name_with_value, compare_names): Likewise.
3107 (vrp_evaluate_conditional): Likewise.
3108 (set_value_range): Handle infinity
3109 (vrp_operand_equal_p, operand_less_p): Likewise.
3110 (extract_range_from_assert): Likewise.
3111 (vrp_int_const_binop): Likewise.
3112 (extract_range_from_binary_expr): Likewise.
3113 (extract_range_from_unary_expr): Likewise.
3114 (extract_range_from_comparison): Likewise.
3115 (extract_range_from_expr): Likewise.
3116 (dump_value_range): Likewise.
3117 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
3118 (test_for_singularity): Likewise.
3119 (vrp_int_const_binop): Remove inline qualifier.
3120 (adjust_range_with_scev): Add comment.
3121 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
3122
3123 2007-03-02 Diego Novillo <dnovillo@redhat.com>
3124
3125 * tree-ssa-structalias.c (could_have_pointers): Tidy.
3126 (get_constraint_for): Likewise.
3127 (do_structure_copy): Likewise.
3128 (find_func_aliases): Fix references to MODIFY_EXPR.
3129 (intra_create_variable_infos): Tidy.
3130 * tree-ssa-operands.c (add_virtual_operand): Add argument
3131 IS_CALL_SITE.
3132 When adding members of alias sets, if IS_CALL_SITE is true and
3133 the symbol is not call-clobbered, skip it.
3134 Adjust all callers.
3135
3136 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
3137
3138 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
3139 entry by means of emit_insn_at_entry.
3140
3141 2007-03-02 Richard Henderson <rth@redhat.com>
3142
3143 * expr.h (promoted_input_arg): Remove decl.
3144 * function.c (promoted_input_arg): Merge into ...
3145 * combine.c (setup_incoming_promotions): ... only caller.
3146 Rearrange to avoid double loop.
3147
3148 2007-03-02 Ben Elliston <bje@au.ibm.com>
3149 Peter Bergner <bergner@vnet.ibm.com>
3150 Janis Johnson <janis187@us.ibm.com>
3151
3152 * config/rs6000/dfp.md: New file.
3153 * config/rs6000/rs6000.md: Include dfp.md.
3154 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
3155 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
3156 and TDmode decimal float modes in FP registers.
3157 (num_insns_constant): Likewise.
3158 (rs6000_legitimate_offset_address_p): Likewise.
3159 (rs6000_legitimize_address): Likewise.
3160 (rs6000_legitimize_reload_address): Likewise.
3161 (rs6000_legitimate_address): Likewise.
3162 (rs6000_emit_move): Likewise.
3163 (function_arg_boundary): Likewise.
3164 (function_arg_advance): Likewise.
3165 (rs6000_darwin64_record_arg_recurse): Likewise.
3166 (function_arg): Likewise.
3167 (rs6000_gimplify_va_arg): Likewise.
3168 (rs6000_split_multireg_move): Likewise.
3169 (rs6000_output_function_epilogue): Likewise.
3170 (rs6000_output_function_epilogue): Likewise.
3171 (rs6000_register_move_cost): Likewise.
3172 (rs6000_function_value): Likewise.
3173 (rs6000_libcall_value): Likewise.
3174
3175 2007-03-02 Richard Sandiford <richard@codesourcery.com>
3176
3177 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
3178
3179 2007-03-02 Richard Sandiford <richard@codesourcery.com>
3180
3181 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
3182 Use $MULTIDIR to choose between the kernel and RTP headers,
3183 and use $WIND_BASE and $WIND_USR to locate them.
3184
3185 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3186
3187 * config/i386/i386.c (override_options): Put initialization of
3188 ix86_tune_mask and ix86_arch_mask to the correct place.
3189
3190 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3191 Michael Meissner <michael.meissner@amd.com>
3192
3193 PR target/31019
3194 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
3195 (ARCHMASK): Define.
3196 (TARGET_CMOVE): Use ARCHMASK.
3197 (TARGET_CMPXCHG): Ditto.
3198 (TARGET_CMPXCHG8B): Ditto.
3199 (TARGET_XADD): Ditto.
3200 (TARGET_BSWAP): Ditto.
3201 * config/i386/i386.c (ix86_tune_mask): New global variable.
3202 (ix86_arch_mask): Ditto.
3203 (override_options): Initialize ix86_tune_mask and
3204 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
3205 target_flags.
3206
3207 2007-03-02 Ben Elliston <bje@au.ibm.com>
3208
3209 PR 30992
3210 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
3211
3212 2007-03-02 Joseph Myers <joseph@codesourcery.com>
3213
3214 * target.h (init_dwarf_reg_sizes_extra): New target hook.
3215 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
3216 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
3217 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
3218 hook.
3219 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
3220 rs6000_init_dwarf_reg_sizes_extra): New.
3221 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
3222 SPE register high parts.
3223
3224 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3225
3226 * Makefile.in: Add install-pdf target as
3227 copied from automake v1.10 rules.
3228 * configure.ac: Add install-pdf to target list.
3229 * configure: Regenerate.
3230
3231 2007-03-01 Paul Brook <paul@codesourcery.com>
3232
3233 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
3234 modes to LDRD for DImode.
3235 (output_move_double): Fixup out of range ldrd/strd.
3236 (vfp_secondary_reload_class): Rename...
3237 (coproc_secondary_reload_class): ... to this. Add wb argument.
3238 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
3239 coproc_secondary_reload_class for CLASS_IWMMXT.
3240 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
3241 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
3242
3243 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
3244
3245 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
3246 factor by the estimated number of iterations.
3247 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
3248 prefetch latency.
3249
3250 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
3251 decode_caches_intel, detect_caches_intel): New functions.
3252 (host_detect_local_cpu): Use detect_caches_amd and
3253 detect_caches_intel.
3254
3255 2007-03-01 Richard Henderson <rth@redhat.com>
3256
3257 * expr.c (emit_move_complex_push): Export.
3258 (emit_move_complex_parts): Split out from ...
3259 (emit_move_complex): ... here.
3260 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
3261 * config/i386/i386.md (movcdi): New.
3262
3263 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
3264
3265 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
3266 size of mode1 to check for tieable modes in MMX case.
3267
3268 2007-03-01 Richard Sandiford <richard@codesourcery.com>
3269
3270 * Makefile.in (rtlanal.o): Depend on tree.h.
3271 * rtl.h (offset_within_section_p, split_const): Declare.
3272 * rtlanal.c: Include tree.h.
3273 (offset_within_block_p): New function, taken from
3274 mips_offset_within_object_p.
3275 (split_const): New function, taken from mips_split_const.
3276 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
3277 Declare.
3278 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
3279 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
3280 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
3281 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3282 (m68k_illegitimate_symbolic_constant_p): New function.
3283 * config/m68k/m68k.md (movsi): Remove misleading predicates.
3284 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
3285 symbolic constant that might be outside the symbol's section,
3286 move the symbol first and then add the offset.
3287 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
3288 Override.
3289 * config/mips/mips.c (mips_split_const): Delete.
3290 (mips_offset_within_object_p): Delete.
3291 (mips_symbolic_constant_p): Use offset_within_section_p and
3292 split_const instead of mips_offset_within_object_p and
3293 mips_split_const.
3294 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
3295 (mips_legitimize_const_move, print_operand_reloc)
3296 (mips_dangerous_for_la25_p): Use split_const instead of
3297 mips_split_const.
3298
3299 2007-02-28 Eric Christopher <echristo@apple.com>
3300
3301 * Makefile.in (install-include-dir): Don't rm -rf include.
3302
3303 2007-02-28 Richard Guenther <rguenther@suse.de>
3304
3305 PR middle-end/30364
3306 * fold-const.c (fold_binary): Do not associate expressions
3307 with more than one variable for integer types that do not wrap.
3308
3309 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
3310
3311 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
3312 Delete, and replace with...
3313 (fold_builtin_call_array): This. Update callers to use it.
3314 * fold-const.c (fold_build_call_list): Delete, and replace with...
3315 (fold_build_call_array): This.
3316 (fold_build_call_list_initializer): Delete, and replace with...
3317 (fold_build_call_array_initializer): This.
3318 * tree.h: Update declarations to reflect above changes.
3319
3320 * c-typeck.c (build_function_call): Store converted arguments
3321 in a stack-allocated array instead of building a list.
3322 (convert_arguments): Store arguments in the array passed in as an
3323 argument, and return the actual number of arguments.
3324 * c-format.c: (check_function_format): Pass arguments in an
3325 array instead of a list.
3326 * c-common.c (check_function_nonnull): Likewise.
3327 (check_function_sentinel): Likewise.
3328 (check_function_arguments): Likewise.
3329 * c-common.h: Update declarations to reflect above changes.
3330
3331 2007-02-28 Jan Hubicka <jh@suse.cz>
3332
3333 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
3334 PRED_NEGATIVE_RETURN): Update outcomes.
3335
3336 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
3337
3338 * calls.c (emit_library_call_value_1): Handle partial registers
3339 correctly when building up CALL_INSN_FUNCTION_USAGE.
3340
3341 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3342
3343 * pa/predicates.md (move_src_operand): Allow zero for mode.
3344 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
3345 move pattern.
3346
3347 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
3348
3349 PR target/30970
3350 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
3351 *movv2df_internal): Enable pattern only for valid operand
3352 combinations.
3353 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
3354 tie only 128bit modes. For MMX registers, tie only 64bit modes.
3355
3356 2007-02-27 Mike Stump <mrs@apple.com>
3357
3358 * config/darwin-crt3.c: Avoid compilation when compiling for a
3359 kext multilib.
3360
3361 2007-02-27 Joseph Myers <joseph@codesourcery.com>
3362
3363 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
3364 FIXED_INCLUDE_DIR.
3365 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
3366 for fixed headers and limits.h.
3367 (install-include-dir, install-headers-tar, install-headers-cpio,
3368 install-headers-cp, real-install-headers-tar,
3369 real-install-headers-cpio, real-install-headers-cp): Handle
3370 include-fixed as well as include.
3371 (install-mkheaders): Don't install files that go only in include
3372 not include-fixed.
3373 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
3374 from GCC_INCLUDE_DIR.
3375 * gcc.c (process_command): Remove special -BstageN/ handling.
3376 (do_spec_1): Add include-fixed directories.
3377
3378 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3379
3380 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
3381 _smulsi3_highpart.
3382 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
3383 New functions.
3384 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
3385 patterns.
3386
3387 2007-02-27 Mark Mitchell <mark@codesourcery.com>
3388
3389 * c-common.c (get_priority): Add check for
3390 SUPPORTS_INIT_PRIORITY.
3391
3392 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3393
3394 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
3395
3396 * config/bfin/bfin.c: Include "cfglayout.h".
3397 (MAX_LSETUP_DISTANCE): New macro.
3398 (struct loop_info): New members incoming, incoming_src and
3399 incoming_dest. Delete member predecessor.
3400 (length_for_loop): New function.
3401 (bfin_optimize_loop): Handle more different loop structures.
3402 (bfin_discover_loop): Rework detection of predecessor blocks by
3403 examining incoming edges.
3404 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
3405 bfin_reorg_loops.
3406 (bfin_reorder_loops): New function.
3407 (bfin_reorg_loops): Use these three new functions.
3408
3409 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
3410 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
3411 (CONSTRAINT_LEN): Add entry for 'q'.
3412 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
3413 Add 'q' constraints.
3414 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
3415 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
3416
3417 * config/bfin/bfin.md (add_with_carry): New pattern.
3418 (s_or_u, su_optab, su_modifier): New code macros/attrs.
3419 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
3420 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
3421 support unsigned multiplies too. Removed incorrect commutativity from
3422 operand 1 constraint where appropriate.
3423 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
3424 patterns.
3425 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
3426 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
3427 New patterns.
3428 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
3429 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
3430 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
3431 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
3432 usmulhisi_hh_huh): New patterns.
3433
3434 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
3435 lshifthi3): Fix output template to use half reg for operand 2.
3436
3437 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
3438 instead of R2.
3439
3440 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
3441
3442 2007-02-27 Andreas Schwab <schwab@suse.de>
3443
3444 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
3445
3446 2007-02-27 Jan Hubicka <jh@suse.cz>
3447
3448 * predict.c (last_basic_block_p): Remove.
3449 (tree_estimate_probability): Update return heuristic for commonized
3450 return blocks.
3451
3452 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
3453
3454 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
3455
3456 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
3457
3458 * doc/include/gcc-common.texi (versionsubtitle): New macro.
3459 * doc/cpp.texi: Standardize title page.
3460 * doc/cppinternals.texi: Likewise.
3461 * doc/gcc.texi: Standardize title page, remove version number
3462 from copyright page.
3463 * doc/gccint.texi: Likewise.
3464 * doc/install.texi: Standardize title page, add table of
3465 contents.
3466
3467 2007-02-26 Jan Hubicka <jh@suse.cz>
3468
3469 * predict.def: Set outcomes according to more recent results.
3470 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
3471 Remove dead predictors.
3472 * predict.c (return_prediction): Fix pasto.
3473
3474 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3475
3476 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
3477 change; avoid a memory leak when returning early.
3478
3479 2007-02-26 Mark Mitchell <mark@codesourcery.com>
3480
3481 * c-decl.c (static_ctors): Move to c-common.c.
3482 (static_dtors): Likewise.
3483 (finish_function): Use c_record_cdtor_fn.
3484 (build_cdtor): Move to c-common.c.
3485 (c_write_global_declarations): Use c_build_cdtor_fns.
3486 * c-common.h (static_ctors): Declare.
3487 (static_dtors): Likewise.
3488 (c_record_cdtor_fn): Likewise.
3489 (c_build_cdtor_fns): Likewise.
3490 * c-common.c (static_ctors): New variable.
3491 (static_dtors): Likewise.
3492 (c_record_cdtor_fn): New function.
3493 (build_cdtor): Move from c-decl.c
3494 (c_build_cdtor_fns): New function.
3495
3496 * output.h (assemble_addr_to_section): Declare.
3497 (get_cdtor_priority_section): Likewise.
3498 * varasm.c (assemble_addr_to_section): New function.
3499 (get_cdtor_priority_section): Likewise.
3500 (default_named_section_asm_out_destructor): Use them.
3501 (destor_dtor_section_asm_out_destructor): Likewise.
3502 (default_named_section_asm_out_constructor): Likewise.
3503 (default_ctor_section_asm_out_constructor): Likewise.
3504 * config.gcc (*-*-vxworks*): Include vxworks.o.
3505 * config/t-vxworks (vxworks.o): New target.
3506 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
3507 (TARGET_ASM_CONSTRUCTOR): Define.
3508 (TARGET_ASM_DESTRUCTOR): Likewise.
3509 (vxworks_asm_out_constructor): Declare.
3510 (vxworks_asm_out_destructor): Likewise.
3511
3512 * c-common.c (get_priority): Check that we have not just an
3513 INTEGER_CST, but an integer constant with integeral type.
3514
3515 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
3516
3517 PR tree-optimization/30938
3518 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
3519 use &dt[nargs-1] instead of &dt[nargs] in the call to
3520 vect_is_simple_use().
3521
3522 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
3523
3524 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
3525 from register elimination as PRE_MODIFY / POST_MODIFY increments.
3526 Do not attempt to handle MEM inside auto-inc expressions.
3527 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
3528 of a register modified by an auto-inc expression. However, do handle
3529 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
3530 (elimination_effects): Prohibit elimination of a register modified
3531 by an auto-inc expression. Disable register elimination rules whose
3532 target register is modified by an auto-inc expression with variable
3533 increment.
3534
3535 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
3536
3537 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
3538 off-by-one error.
3539 (array_at_struct_end_p): New function.
3540 (idx_infer_loop_bounds): Use it.
3541 (estimate_numbers_of_iterations_loop): Export.
3542 * predict.c (predict_loops): Use estimated_loop_iterations_int.
3543 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
3544 (tree_estimate_probability): Call record_loop_exits.
3545 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
3546 (estimated_loop_iterations, estimated_loop_iterations_int,
3547 estimated_loop_iterations_tree): New functions.
3548 (analyze_siv_subscript_cst_affine,
3549 compute_overlap_steps_for_affine_1_2,
3550 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
3551 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
3552 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
3553 (PRED_LOOP_ITERATIONS_GUESSED): New.
3554 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
3555 * cfgloop.h (estimate_numbers_of_iterations_loop,
3556 estimated_loop_iterations_int): Declare.
3557
3558 2007-02-25 Mark Mitchell <mark@codesourcery.com>
3559
3560 * doc/extend.texi: Document optional priority argument to
3561 constructors and destructors.
3562 * tree.c (init_priority_for_decl): Adjust GTY markers.
3563 (init_ttree): Use priority-info hash functions for
3564 init_priority_for_decl.
3565 (tree_map_eq): Rename to ...
3566 (tree_map_base_eq): ... this.
3567 (tree_map_marked_p): Rename to ...
3568 (tree_map_base_marked_p): ... this.
3569 (tree_map_base_hash): New function.
3570 (decl_init_priority_lookup): Rework.
3571 (decl_fini_priority_lookup): New function.
3572 (decl_priority_info): New function.
3573 (decl_init_priority_insert): Use it.
3574 (decl_fini_priority_insert): Likewise.
3575 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
3576 hierarchy.
3577 (decl_restrict_base_insert): Likewise.
3578 (decl_debug_expr_insert): Likewise.
3579 (decl_value_expr_lookup): Likewise.
3580 (decl_value_expr_insert): Likewise.
3581 * tree.h (priority_type): New type.
3582 (decl_init_priority_lookup): Use priority_type.
3583 (decl_fini_priority_lookup): New function.
3584 (decl_init_priority_insert): Use priority_type.
3585 (decl_fini_priority_insert): New function.
3586 (DECL_HAS_INIT_PRIORITY): Tweak comments.
3587 (DECL_INIT_PRIORITY): Likewise.
3588 (SET_DECL_INIT_PRIORITY): Add comment.
3589 (DECL_FINI_PRIORITY): New macro.
3590 (SET_DECL_FINI_PRIORITY): Likewise.
3591 (DEFAULT_INIT_PRIORITY): Document.
3592 (MAX_INIT_PRIORITY): Likewise.
3593 (MAX_RESERVED_INIT_PRIORITY): Likewise.
3594 (tree_map_base): New type.
3595 (tree_map_base_eq): New function.
3596 (tree_map_base_hash): Likewise.
3597 (tree_map_base_marked_p): Likewise.
3598 (tree_map): Inherit from tree_map_base.
3599 (tree_map_eq): Make it a macro.
3600 (tree_map_marked_p): Likewise.
3601 (tree_int_map): Inherit from tree_map_base.
3602 (tree_int_map_eq): Make it a macro.
3603 (tree_int_map_hash): Likewise.
3604 (tree_int_map_marked_p): Likewise.
3605 (tree_priority_map): New type.
3606 (tree_priority_map_eq): New macro.
3607 (tree_priority_map_hash): Likewise.
3608 (tree_priority_map_marked_p): Likewise.
3609 * varasm.c (emults_decl): Adjust for refactoring of tree_map
3610 hierarchy.
3611 (emutls_common_1): Likewise.
3612 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
3613 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
3614 of tree_map hierarchy.
3615 * tree-cfg.c (move_stmt_r): Likewise.
3616 (new_label_mapper): Likewise.
3617 * c-tree.h (c_expand_body): Move to ...
3618 * c-common.h (c_expand_body): ... here.
3619 * c-decl.c (c_expand_body): Move to ...
3620 * c-common.c (c_expand_body): ... here.
3621 (c_common_attribute_table): Allow 1 argument for the constructor
3622 and destructor attributes.
3623 (get_priority): New function.
3624 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
3625 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
3626
3627 2007-02-24 Jan Hubicka <jh@suse.cz>
3628
3629 PR middle-end/30509
3630 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
3631
3632 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
3633 Jan Hubicka <jh@suse.cz>
3634
3635 PR target/30778
3636 * i386.c (counter_mode): New function.
3637 (expand_set_or_movmem_via_loop): Use it.
3638 (expand_movmem_epilogue): Likewise; fix pasto.
3639 (ix86_expand_movmem): Do emit guard even for constant counts.
3640 (ix86_expand_setmem): Likewise.
3641
3642 2007-02-25 Nick Clifton <nickc@redhat.com>
3643
3644 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
3645 (JUMP_TABLES_IN_TEXT_SECTION): Define.
3646
3647 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
3648
3649 PR target/30770
3650 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
3651 count argument with 0x10, not with 0x16.
3652 (expand_setmem_epilogue): Ditto.
3653
3654 2007-02-24 Mike Stump <mrs@apple.com>
3655
3656 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
3657 symbols.
3658
3659 2007-02-24 Richard Guenther <rguenther@suse.de>
3660
3661 PR middle-end/30951
3662 * fold-const.c (fold_binary): Fold x +- CST op x for
3663 EQ_EXPR and NE_EXPR.
3664
3665 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3666
3667 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
3668
3669 2007-02-24 Jan Hubicka <jh@suse.cz>
3670
3671 * cgraphunit.c (decide_is_function_needed): Honor
3672 -fkeep-inline-functions.
3673
3674 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3675
3676 * builtins.c (fold_builtin_modf): New.
3677 (fold_builtin_2): Use it.
3678
3679 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
3680
3681 * loop-iv.c (implies_p): Detect additional cases where A implies B.
3682 (determine_max_iter): Take additional LOOP arg; all callers changed.
3683 Lose broken logic dealing with PLUS. Try to limit the upper bound by
3684 one using simplifications.
3685 (simplify_using_initial_values): Return if the expression becomes
3686 invalid due to altered regs.
3687
3688 2007-02-23 DJ Delorie <dj@redhat.com>
3689
3690 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
3691
3692 2007-02-23 Mike Stump <mrs@apple.com>
3693
3694 * tlink.c (scan_linker_output): Parse linker messages from
3695 darwin9's linker better.
3696
3697 2007-02-23 Steve Ellcey <sje@cup.hp.com>
3698
3699 PR debug/29614
3700 * varpool.c (varpool_assemble_pending_decls): Set
3701 varpool_last_needed_node to null.
3702
3703 2007-02-23 DJ Delorie <dj@redhat.com>
3704
3705 * config/i386/i386.c (ix86_data_alignment): Don't specify an
3706 alignment bigger than the object file can handle.
3707
3708 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
3709
3710 PR target/30825
3711 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
3712 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
3713 (*movsf_1): Penalize MMX moves.
3714
3715 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
3716
3717 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
3718 2^32-1 or more times unless flag_unsafe_loop_optimizations.
3719
3720 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
3721
3722 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3723
3724 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
3725 (fold_builtin_1): Use them.
3726 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
3727 BUILT_IN_SIGNIFICAND.
3728
3729 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
3730
3731 * config/i386/i386.c (bdesc_1arg): Initialize
3732 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
3733 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
3734 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
3735 and IX86_BUILTIN_MOVSLDUP.
3736
3737 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
3738
3739 PR rtl-optimization/30841
3740 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
3741
3742 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3743
3744 * builtins.c (fold_builtin_frexp): New.
3745 (fold_builtin_2): Use it.
3746
3747 2007-02-22 Mark Mitchell <mark@codesourcery.com>
3748
3749 * doc/invoke.texi (Spec Files): Document getenv spec function.
3750
3751 * gcc.c (getenv_spec_function): New function.
3752 (static_spec_functions): Add it.
3753 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
3754 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
3755 header files.
3756
3757 2007-02-22 Michael Matz <matz@suse.de
3758
3759 PR c++/29433
3760 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
3761 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
3762
3763 2007-02-22 Ian Lance Taylor <iant@google.com>
3764
3765 PR debug/30898
3766 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
3767 (mem_loc_descriptor): Call it.
3768
3769 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
3770 Ira Rosen <irar@il.ibm.com>
3771
3772 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
3773
3774 2007-02-22 Ira Rosen <irar@il.ibm.com>
3775
3776 PR tree-optimization/30843
3777 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
3778 stores only after all the group is vectorized.
3779
3780 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
3781
3782 PR tree-optimization/30858
3783 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
3784 in the reduction cycle have a single use in the loop.
3785 * tree-vectorizer.h (relevant): Add documentation.
3786
3787 2007-02-20 Mike Stump <mrs@apple.com>
3788
3789 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
3790 * configure: Regenerate.
3791
3792 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
3793
3794 Change the defaults of some parameters and options.
3795 * config/spu/spu-protos.h (spu_optimization_options): Declare.
3796 * config/spu/spu.c (spu_optimization_options): Add.
3797 (spu_override_options): Change params in spu_optimization_options.
3798 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
3799
3800 Register 127 is only 16 byte aligned when used as a frame pointer.
3801 * config/spu/spu-protos.h (spu_init_expanders): Declare.
3802 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
3803 HARD_FRAME_POINTER_REGNUM.
3804 (spu_legitimate_address): Use regno_aligned_for_reload.
3805 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
3806 aligned when frame_pointer_needed is true.
3807 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
3808 to 8 bits.
3809 * config/spu/spu.h (INIT_EXPANDERS): Define.
3810
3811 Make sure shift and rotate instructions have valid immediate operands.
3812 * config/spu/predicates.md (spu_shift_operand): Remove.
3813 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
3814 * config/spu/constraints.md (W, O): Extend range.
3815 * config/spu/spu.md (umask, nmask): Define.
3816 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
3817 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
3818 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
3819 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
3820 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
3821 (lshr<mode>3_reg): Fix rtl description.
3822
3823 Make sure mulhisi immediate operands are valid.
3824 * config/spu/predicates.md (imm_K_operand): Add.
3825 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
3826
3827 Generate constants using fsmbi and andi.
3828 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
3829 (print_operand, spu_split_immediate, classify_immediate,
3830 fsmbi_const_p): Handle IC_FSMBI2.
3831
3832 Correctly handle a CONST_VECTOR containing symbols.
3833 * config/spu/spu.c (print_operand): Handle HIGH correctly.
3834 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
3835 (immediate_load_p): Allow symbols that use 2 instructions to create.
3836 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
3837 with symbols when flag_pic is set.
3838 (const_vector_immediate_p): New.
3839 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
3840 accept a CONST_VECTOR with symbols.
3841 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
3842 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
3843 correctly.
3844 * config/spu/spu.md (high, low): Delete.
3845 (low_<mode>): Define.
3846
3847 Remove INTRmode and INTR_REGNUM, which didn't work.
3848 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
3849 of INTR_REGNUM.
3850 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
3851 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
3852 peephole2 pattern): Don't use INTR or 131.
3853 (movintrcc): Delete.
3854 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
3855 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
3856 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
3857 (UNSPEC_SET_INTR): Add.
3858 * config/spu/spu-modes.def (INTR): Remove.
3859
3860 More accurate warnings about run-time relocations.
3861 * config/spu/spu.c (reloc_diagnostic): Test in_section.
3862
3863 Correctly warn about immediate arguments to specific intrinsics.
3864 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
3865 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
3866 the instruction predicate.
3867
3868 Fix tree check errors with latest update.
3869 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
3870 CALL_EXPR_ARG.
3871 (spu_expand_builtin): Use CALL_EXPR_FN.
3872
3873 Add missing specific intrinsics.
3874 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
3875 si_bislede.
3876 * config/spu/spu_internals.h: Ditto.
3877
3878 Fix incorrect operand modifiers.
3879 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
3880 * config/spu/spu.md (xor<mode>3): Change %S to %J.
3881
3882 Optimize one case of zero_extend of a vec_select.
3883 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
3884
3885 Accept any immediate for hbr.
3886 * config/spu/spu.md (hbr): Change s constraints to i.
3887
3888 2007-02-21 Paul Brook <paul@codesourcery.com>
3889
3890 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
3891 condexec_count when skipping USE and CLOBBER.
3892
3893 2007-02-21 Nick Clifton <nickc@redhat.com>
3894
3895 * common.opt (Warray-bounds): Add Warning attribute.
3896 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
3897 Likewise.
3898 (fsized-zeroes): Add Optimization attribute.
3899 (fsplit-wide-types, ftree-scev-cprop): Likewise.
3900 * c.opt (Wc++0x-compat): Add Warning attribute.
3901
3902 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3903
3904 PR middle-end/30761
3905 * reload1.c (eliminate_regs_in_insn): In the single_set special
3906 case, attempt to re-recognize the insn before falling back to
3907 having reload fix it up.
3908
3909 2007-02-20 Eric Christopher <echristo@gmail.com>
3910
3911 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
3912 Rewrite accordingly.
3913 (frv_read_iacc_argument): Ditto.
3914 (frv_expand_set_builtin): Take a call instead of arglist, update for
3915 above changes.
3916 (frv_expand_unop_builtin): Ditto.
3917 (frv_expand_binop_builtin): Ditto.
3918 (frv_expand_cut_builtin): Ditto.
3919 (frv_expand_binopimm_builtin): Ditto.
3920 (frv_expand_voidbinop_builtin): Ditto.
3921 (frv_expand_int_void2arg): Ditto.
3922 (frv_expand_prefetches): Ditto.
3923 (frv_expand_voidtriop_builtin): Ditto.
3924 (frv_expand_voidaccop_builtin): Ditto.
3925 (frv_expand_load_builtin): Ditto.
3926 (frv_expand_store_builtin): Ditto.
3927 (frv_expand_mdpackh_builtin): Ditto.
3928 (frv_expand_mclracc_builtin): Ditto.
3929 (frv_expand_mrdacc_builtin): Ditto.
3930 (frv_expand_mwtacc_builtin): Ditto.
3931 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
3932 calls for above.
3933
3934 2007-02-20 Janis Johnson <janis187@us.ibm.com>
3935
3936 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
3937 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
3938 cmpb instruction.
3939 (HAVE_GAS_DFP): Check for assembler support of decimal floating
3940 point instructions.
3941 * configure: Regenerate.
3942 * config.in: Regenerate.
3943 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
3944 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
3945 masks to power6 and power6x and to POWERPC_MASKS.
3946 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3947 _ARCH_PWR6.
3948 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
3949 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
3950 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3951 Access PROTOTYPE as variable, not mask.
3952
3953 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
3954
3955 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
3956 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
3957 * combine.c (adjust_for_new_dest): Use it.
3958 * postreload.c (reload_combine): Likewise.
3959
3960 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
3961
3962 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
3963 notes on an insn with multiple sets, even if single_set returns
3964 non-NULL for that insn.
3965
3966 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3967
3968 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
3969 scalbn and scalbln.
3970
3971 2007-02-20 Geoffrey Keating <geoffk@apple.com>
3972
3973 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
3974 if user didn't pass it.
3975 * config/i386/darwin.h (CC1_SPEC): Likewise.
3976 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
3977 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
3978 -mmacosx-version-min.
3979
3980 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3981 Uros Bizjak <ubizjak@gmail.com>
3982
3983 * optabs.h (enum optab_index): Add new OTI_scalb.
3984 (scalb_optab): Define corresponding macro.
3985 * optabs.c (init_optabs): Initialize scalb_optab.
3986 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
3987 patterns.
3988 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
3989 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
3990 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
3991 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
3992 flag_unsafe_math_optimizations is set.
3993
3994 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
3995 to implement scalbf, scalb and scalbl built-ins as inline x87
3996 intrinsics.
3997
3998 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3999 DJ Delorie <dj@redhat.com>
4000
4001 PR other/30824
4002 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
4003 (diagnostic_report_diagnostic): ... here, and turn them into real
4004 errors. If warnings are inhibited, no need to do anything.
4005
4006 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
4007
4008 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
4009 better code generation.
4010
4011 2007-02-20 Ben Elliston <bje@au.ibm.com>
4012
4013 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
4014
4015 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
4016
4017 * config/alpha/alpha.c, config/alpha/alpha.md,
4018 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
4019 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
4020 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
4021 config/arm/lib1funcs.asm: Follow spelling conventions.
4022
4023 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
4024 config/fr30/fr30.md, config/i386/i386.h,
4025 config/iq2000/iq2000.h, config/iq2000/predicates.md,
4026 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
4027 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
4028 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
4029 config/rs6000/altivec.md, config/rs6000/rs6000.c,
4030 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
4031 config/sparc/sparc.c, config/sparc/sparc.h,
4032 config/sparc/sparc.md, config/spu/constraints.md,
4033 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
4034 conventions.
4035
4036 2007-02-20 Alan Modra <amodra@bigpond.net.au>
4037
4038 PR target/29943
4039 * varasm.c (use_blocks_for_decl_p): Return false for decls with
4040 alias attribute.
4041
4042 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
4043
4044 * doc/invoke.texi (-ftree-lrs): Remove.
4045
4046 2007-02-19 Diego Novillo <dnovillo@redhat.com>
4047
4048 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
4049 NULL.
4050
4051 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
4052
4053 * config/ia64/ia64.c (ia64_expand_builtin): Use the
4054 new CALL_EXPR_FN macro for retrieving the function
4055 declaration of the input expression.
4056
4057 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4058
4059 * c.opt (Waddress): New.
4060 * common.opt (Walways-true): Delete.
4061 (Wstring-literal-comparison): Delete.
4062 * doc/invoke.texi (Warning Options): Delete -Walways-true and
4063 -Wstring-literal-comparison. Add -Waddress.
4064 (Waddress): New.
4065 (Walways-true): Delete.
4066 (Wstring-literal-comparison): Delete.
4067 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
4068 consistently instead of -Walways-true in example.
4069 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
4070 * c-typeck.c (parser_build_binary_op): Replace
4071 -Wstring-literal-comparison and -Walways-true with -Waddress.
4072 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
4073 with -Waddress.
4074
4075 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
4076
4077 * tree-cfg.c (dump_function_to_file): Be prepared for functions
4078 without DECL_STRUCT_FUNCTION initialized.
4079
4080 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
4081
4082 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
4083 due to calls to functions taking pointers as parameters.
4084
4085 2007-02-19 Richard Henderson <rth@redhat.com>
4086
4087 PR debug/29558
4088 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
4089 in memory.
4090
4091 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
4092
4093 * config/s390/s390.c (s390_call_saved_register_used,
4094 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
4095 accessed to the new scheme.
4096
4097 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
4098
4099 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
4100 (cris_print_index, cris_print_operand, cris_print_operand_address)
4101 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
4102 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
4103 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
4104 GET_CODE () == xxx.
4105 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
4106 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
4107 GO_IF_LEGITIMATE_ADDRESS): Ditto.
4108 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
4109 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
4110 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
4111 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
4112 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
4113 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
4114 (uminsi3, call, call_value): Ditto.
4115 (define_split: indir_to_reg_split, unnamed): Ditto.
4116
4117 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
4118
4119 PR tree-optimization/30975
4120 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
4121 wrong assert.
4122
4123 2007-02-18 Eric Christopher <echristo@gmail.com>
4124
4125 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
4126 Remove use of arglist.
4127 (mips_expand_builtin): Remove use of arglist, pass in expr.
4128 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
4129 (mips_expand_builtin_movtf): Ditto.
4130 (mips_expand_builtin_compare): Ditto.
4131
4132 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
4133
4134 * tree-sra.c (sra_build_assignment): Replace assertion
4135 checking with a comment explaining why it can't be done.
4136
4137 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
4138
4139 PR middle-end/30833
4140 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
4141 during CALL_EXPR representation conversion.
4142 * tree-ssa-propagate.c (set_rhs): Likewise.
4143
4144 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
4145
4146 * tree-sra.c (sra_build_assignment): Disable assertion checking
4147 for now.
4148
4149 2007-02-18 Roger Sayle <roger@eyesopen.com>
4150
4151 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
4152 instead of calling build2 with a GIMPLE_MODIFY_STMT.
4153 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
4154 Likewise.
4155 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
4156 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
4157 gimplify_init_ctor_eval_range, gimple_push_cleanup,
4158 gimplify_omp_for, gimplify_omp_atomic_pipeline,
4159 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
4160 force_gimple_operand): Likewise.
4161 * ipa-cp.c (constant_val_insert): Likewise.
4162 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
4163 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
4164 perfect_nestify): Likewise.
4165 * langhooks.c (lhd_omp_assignment): Likewise.
4166 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
4167 lower_copyprivate_clauses, lower_send_clauses,
4168 lower_send_shared_vars, expand_parallel_call,
4169 expand_omp_for_generic, expand_omp_for_static_nochunk,
4170 expand_omp_for_static_chunk, expand_omp_sections,
4171 lower_omp_single_copy, lower_omp_for_lastprivate,
4172 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
4173 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
4174 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
4175 Likewise.
4176
4177 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
4178
4179 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
4180 config/sh/sh.md: Follow spelling conventions.
4181
4182 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
4183 config/frv/predicates.md: Follow spelling conventions.
4184
4185 * config/m68k/linux-unwind.h: Fix a comment typo.
4186 * target.h: Follow spelling conventions.
4187
4188 2007-02-18 Roger Sayle <roger@eyesopen.com>
4189
4190 PR rtl-optimization/28173
4191 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
4192 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
4193 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
4194 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
4195 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
4196
4197 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4198
4199 * builtins.c (fold_builtin_load_exponent): New.
4200 (fold_builtin_2): Use it.
4201
4202 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
4203
4204 PR rtl-optimization/30773
4205 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
4206 if we fail to attach a REG_EQUIV note.
4207
4208 2007-02-18 David Edelsohn <edelsohn@gnu.org>
4209 Roger Sayle <roger@eyesopen.com>
4210
4211 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
4212
4213 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
4214
4215 * calls.c (initialize_argument_information): Pass original EXP
4216 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
4217 code to split complex arguments here, as part of initializing the
4218 ARGS array.
4219 (expand_call): Remove code that builds a list of arguments and
4220 inserts implicit arguments into it. Instead, just count how many
4221 implicit arguments there will be so we can determine the size of
4222 the ARGS array, and let initialize_argument_information do the work.
4223 (split_complex_values): Delete unused function.
4224
4225 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
4226
4227 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
4228
4229 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
4230
4231 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
4232 for arg pointer based indexed addressing.
4233
4234 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
4235
4236 * config/ia64/ia64.h, config/ia64/ia64.md,
4237 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
4238 spelling conventions.
4239
4240 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
4241
4242 * config/m68k/m68k.c (split_di): New.
4243 * config/m68k/m68k-protos.h: Declare split_di.
4244 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
4245 Improve predicate handling and split constant shifts.
4246
4247 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
4248
4249 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
4250 parameter for register bitfield operations, general predicates
4251 cleanup
4252
4253 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
4254
4255 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
4256 * config/m68k/linux-unwind.h: New file.
4257
4258 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
4259
4260 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
4261 config/i386/athlon.md, config/ia64/ia64.md,
4262 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
4263 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
4264 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
4265 tree-ssa-loop-niter.c, tree-vect-analyze.c,
4266 tree-vect-transform.c: Fix comment typos.
4267
4268 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
4269
4270 * sched-deps.c (find_insn_list): Remove.
4271 * sched-int.h: Remove the prototype for find_insn_list.
4272
4273 2007-02-16 Geoffrey Keating <geoffk@apple.com>
4274
4275 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
4276 to linker.
4277 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
4278 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
4279 darwin_rs6000_override_options.
4280 (C_COMMON_OVERRIDE_OPTIONS): Expect
4281 darwin_macosx_version_min to be non-NULL always.
4282 (TARGET_C99_FUNCTIONS): Likewise.
4283 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
4284 (DARWIN_MINVERSION_SPEC): New.
4285 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
4286 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min
4287 to cc1*.
4288 (DARWIN_MINVERSION_SPEC): New.
4289 * config/darwin.opt (mmacosx-version-min): Initialize to non-NULL
4290 value.
4291 * config/darwin-c.c (darwin_cpp_builtins): Expect
4292 darwin_macosx_version_min to be non-NULL always.
4293
4294 * config/rs6000/rs6000.c: Clean up trailing whitespace.
4295
4296 2007-02-16 Uros Bizjak <ubizjak@gmail.com>
4297
4298 * config/i386/i386.h (x86_use_xchgb): New.
4299 (TARGET_USE_XCHGB): New macro.
4300 * config/i386/i386.c (x86_use_xchgb): Set for PENT4.
4301 * config/i386/i386.md (*rotlhi3_1 splitter, *rotrhi3_1 splitter):
4302 Split after reload into bswaphi for shifts of 8.
4303 (bswaphi_lowpart): Generate rolw insn for HImode byte swaps.
4304 (*bswaphi_lowpart_1): Generate xchgb for Q registers for TARGET_XCHGB
4305 or when optimizing for size.
4306
4307 2007-02-16 Richard Guenther <rguenther@suse.de>
4308 Christian Bruel <christian.bruel@st.com>
4309
4310 * fold-const.c (tree_swap_operands_p): Treat SSA_NAMEs like
4311 DECLs but prefer SSA_NAMEs over DECLs.
4312
4313 2007-02-16 Richard Guenther <rguenther@suse.de>
4314
4315 * tree-flow-inline.h (single_imm_use_p): Remove.
4316 (zero_imm_uses_p): Likewise.
4317 * tree-ssa-coalesce.c (create_outofssa_var_map): Use has_single_use
4318 instead of single_imm_use_p.
4319 * tree-cfg.c (replace_uses_by): Use has_zero_use instead of
4320 zero_imm_uses_p.
4321
4322 2007-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4323
4324 PR other/27843
4325 * Makefile.in (SYSTEM_HEADER_DIR): Use single quotes to avoid
4326 nested double- and backquotes.
4327
4328 2007-02-15 Roger Sayle <roger@eyesopen.com>
4329
4330 PR middle-end/30391
4331 * tree.c (expr_align): Handle MODIFY_EXPR. GIMPLE_MODIFY_STMT
4332 should be unreachable.
4333 (build2_stat): Allow construction of MODIFY_EXPR at any time.
4334 For the time being redirect GIMPLE_MODIFY_STMT to the new
4335 (renamed) build_gimple_modify_stmt_stat.
4336 (build2_gimple_stat): Rename to...
4337 (build_gimple_modify_stmt_stat): Now longer take a CODE argument.
4338 Always build a GIMPLE_MODIFY_STMT node.
4339 * tree.h (build2_gimple, build2_gimple_stat): Delete.
4340 (build_gimple_modify_stmt, build_gimple_modify_stmt_stat): New
4341 declarations.
4342
4343 * tree-cfg.c (factor_computed_gotos, tree_merge_blocks,
4344 gimplify_val): Use build_gimple_modify_stmt instead of build2_gimple.
4345 * tree-complex.c (set_component_ssa_name, expand_complex_move,
4346 expand_complex_div_wide): Likewise.
4347 * tree-ssa-dom.c (record_equivalences_from_stmt): Likewise.
4348 * tree-ssa-loop-im.c (schedule_sm): Likewise.
4349 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Likewise.
4350 * tree-ssa-loop-manip.c (create_iv): Likewise.
4351 * tree-ssa-phiopt.c (conditional_replacement, minmax_replacement,
4352 abs_replacement): Likewise.
4353 * tree-ssa-pre.c (create_expression_by_pieces, poolify_modify_stmt,
4354 realify_fake_stores): Likewise.
4355
4356 * builtins.c (std_expand_builtin_va_start): Build a MODIFY_EXPR
4357 node rather than a GIMPLE_MODIFY_STMT node.
4358 (std_gimpify_va_arg_expr, expand_builtin_va_copy,
4359 fold_builtin_memset, fold_builtin_memory_op, do_mpfr_sincos):
4360 Likewise.
4361 (integer_valued_real_p): Handle MODIFY_EXPR, not GIMPLE_MODIFY_STMT.
4362 * expr.c (expand_expr_real_1): Handle both MODIFY_EXPR and
4363 GIMPLE_MODIFY_STMT.
4364
4365 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4366
4367 PR middle-end/30433
4368 * fold-const.c (fold_comparison): Add back the
4369 folding of constant complex comparisions.
4370
4371 2007-02-15 Andrew Pinski <andrew_pinski@playstation.sony.com>
4372
4373 PR middle-end/30729
4374 * stmt.c (warn_if_unused_value): VA_ARG_EXPR has side
4375 effects unknown to this function, return early.
4376
4377 2007-02-15 Ian Lance Taylor <iant@google.com>
4378
4379 * lower-subreg.c (move_eh_region_note): New static function.
4380 (resolve_simple_move): Call it.
4381 (decompose_multiword_subregs): Track blocks for which we resolve a
4382 simple move which is also a control flow insn. Pass them to
4383 find_many_sub_basic_blocks.
4384 (pass_lower_subreg): Add TODO_verify_flow.
4385 (pass_lower_subreg2): Likewise.
4386
4387 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
4388 Brooks Moses <brooks.moses@codesourcery.com>
4389 Lee Millward <lee.millward@codesourcery.com>
4390
4391 * tree.h (enum tree_code_class): Add tcc_vl_exp.
4392 (VL_EXP_CLASS_P): New.
4393 (TREE_OPERAND_CHECK): Use TREE_OPERAND_LENGTH instead of
4394 TREE_CODE_LENGTH.
4395 (TREE_OPERAND_CHECK_CODE): Likewise.
4396 (GIMPLE_STMT_OPERAND_CHECK): Likewise.
4397 (TREE_RTL_OPERAND_CHECK): Likewise.
4398 (tree_operand_check_failed): Make second parameter the whole tree
4399 instead of its code. Fixed callers.
4400 (VL_EXP_CHECK): New.
4401 (TREE_OPERAND_LENGTH): New.
4402 (VL_EXP_OPERAND_LENGTH): New.
4403 (CALL_EXPR_FN): New.
4404 (CALL_EXPR_STATIC_CHAIN): New.
4405 (CALL_EXPR_ARGS): New.
4406 (CALL_EXPR_ARG): New.
4407 (call_expr_nargs): New.
4408 (CALL_EXPR_ARGP): New.
4409 (build_nt_call_list): Declare.
4410 (build_vl_exp_stat): Declare.
4411 (build_vl_exp): New.
4412 (build_call_list): Declare.
4413 (build_call_nary): Declare.
4414 (build_call_valist): Declare.
4415 (build_call_array): Declare.
4416 (call_expr_arg): Declare.
4417 (call_expr_argp): Declare.
4418 (call_expr_arglist): Declare.
4419 (fold_build_call_list): Declare.
4420 (fold_build_call_list_initializer): Declare.
4421 (fold_call_expr): Declare to replace fold_builtin.
4422 (fold_builtin_fputs): Update to agree with modified definition.
4423 (fold_builtin_strcpy): Likewise.
4424 (fold_builtin_strncpy): Likewise.
4425 (fold_builtin_memory_chk): Likewise.
4426 (fold_builtin_stxcpy_chk): Likewise.
4427 (fold_builtin_strncpy_chk): Likewise.
4428 (fold_builtin_next_arg): Likewise.
4429 (fold_build_call_expr): Declare.
4430 (fold_builtin_call_list): Declare.
4431 (fold_builtin_call_valist): Declare.
4432 (build_call_expr): Declare.
4433 (validate_arglist): Update to agree with modified definition.
4434 (tree_operand_length): New.
4435 (call_expr_arg_iterator): New.
4436 (init_call_expr_arg_iterator): New.
4437 (next_call_expr_arg): New.
4438 (first_call_expr_arg): New.
4439 (more_call_expr_args_p): New.
4440 (FOR_EACH_CALL_EXPR_ARG): New.
4441
4442 * tree.c (tree_code_class_string): Add entries for tcc_vl_exp
4443 and tcc_gimple_stmt.
4444 (tree_code_size): Update documentation. Use sizeof (tree) rather
4445 than sizeof (char *).
4446 (tree_size): Likewise. Add case for tcc_vl_exp.
4447 (tree_node_structure): Add case for tcc_vl_exp.
4448 (contains_placeholder_p): Likewise.
4449 (substitute_in_expr): Likewise.
4450 (substitute_placeholder_in_expr): Likewise.
4451 (stabilize_reference_1): Likewise.
4452 (build3_stat): Remove logic for CALL_EXPRs. Replace with assertion
4453 to diagnose breakage of this interface for constructing CALL_EXPRs.
4454 (build_nt): Add similar assertion here.
4455 (build_nt_call_list): New.
4456 (simple_cst_equal) <CALL_EXPR>: Rewrite to use new accessors.
4457 (iterative_hash_expr): Use TREE_OPERAND_LENGTH instead of
4458 TREE_CODE_LENGTH.
4459 (get_callee_fndecl): Use new CALL_EXPR accessors.
4460 (tree_operand_check_failed): Change parameters to pass entire node
4461 instead of its code, so that we can call TREE_OPERAND_LENGTH on it.
4462 (process_call_operands): New.
4463 (build_vl_exp_stat): New.
4464 (build_call_list): New.
4465 (build_call_nary): New.
4466 (build_call_valist): New.
4467 (build_call_array): New.
4468 (walk_tree): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
4469 (call_expr_arglist): New.
4470
4471 * tree.def (CALL_EXPR): Change representation of CALL_EXPRs to use
4472 tcc_vl_exp instead of a fixed-size tcc_expression.
4473
4474 * doc/c-tree.texi (CALL_EXPR): Document new representation and
4475 accessors for CALL_EXPRs.
4476 (AGGR_INIT_EXPR): Likewise.
4477
4478 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
4479 Brooks Moses <brooks.moses@codesourcery.com>
4480 Lee Millward <lee.millward@codesourcery.com>
4481
4482 * builtins.c (c_strlen): Return NULL_TREE instead of 0.
4483 (expand_builtin_nonlocal_goto): Change parameter to be entire
4484 CALL_EXPR instead of an arglist. Use new CALL_EXPR accessors.
4485 (expand_builtin_prefetch): Likewise.
4486 (expand_builtin_classify_type): Likewise.
4487 (mathfn_built_in): Return NULL_TREE instead of 0.
4488 (expand_errno_check): Use new CALL_EXPR accessors.
4489 (expand_builtin_mathfn): Use new CALL_EXPR accessors and constructors.
4490 Return NULL_RTX instead of 0.
4491 (expand_builtin_mathfn_2): Likewise.
4492 (expand_builtin_mathfn_3): Likewise.
4493 (expand_builtin_interclass_mathfn): Likewise.
4494 (expand_builtin_sincos): Likewise.
4495 (expand_builtin_cexpi): Likewise.
4496 (expand_builtin_int_roundingfn): Likewise.
4497 (expand_builtin_int_roundingfn_2): Likewise.
4498 (expand_builtin_pow): Likewise.
4499 (expand_builtin_powi): Likewise.
4500 (expand_builtin_strlen): Pass entire CALL_EXPR as parameter instead
4501 of arglist, fixing callers appropriately. Use new CALL_EXPR
4502 accessors and constructors. Return NULL_RTX instead of 0.
4503 (expand_builtin_strstr): Likewise.
4504 (expand_builtin_strchr): Likewise.
4505 (expand_builtin_strrchr): Likewise.
4506 (expand_builtin_strpbrk): Likewise.
4507 (expand_builtin_memcpy): Likewise.
4508 (expand_builtin_mempcpy): Likewise.
4509 (expand_builtin_mempcpy_args): New.
4510 (expand_builtin_memmove): Similarly to expand_builtin_mempcpy.
4511 (expand_builtin_memmove_args): New.
4512 (expand_builtin_bcopy): Similarly to expand_builtin_mempcpy.
4513 (expand_movstr): Likewise.
4514 (expand_builtin_strcpy): Likewise.
4515 (expand_builtin_strcpy_args): New.
4516 (expand_builtin_stpcpy): Similarly to expand_builtin_strcpy.
4517 (expand_builtin_strncpy): Likewise.
4518 (expand_builtin_memset): Likewise.
4519 (expand_builtin_memset_args): New.
4520 (expand_builtin_bzero): Similarly to expand_builtin_memset.
4521 (expand_builtin_memcmp): Likewise.
4522 (expand_builtin_strcmp): Likewise.
4523 (expand_builtin_strncmp): Likewise.
4524 (expand_builtin_strcat): Likewise.
4525 (expand_builtin_strncat): Likewise.
4526 (expand_builtin_strspn): Likewise.
4527 (expand_builtin_strcspn): Likewise.
4528 (expand_builtin_args_info): Likewise.
4529 (expand_builtin_va_start): Likewise.
4530 (gimplify_va_arg_expr): Likewise.
4531 (expand_builtin_va_end): Likewise.
4532 (expand_builtin_va_copy): Likewise.
4533 (expand_builtin_frame_address): Likewise.
4534 (expand_builtin_alloca): Likewise.
4535 (expand_builtin_bswap): Likewise.
4536 (expand_builtin_unop): Likewise.
4537 (expand_builtin_fputs): Likewise.
4538 (expand_builtin_expect): Likewise.
4539 (expand_builtin_fabs): Likewise.
4540 (expand_builtin_copysign): Likewise.
4541 (expand_builtin_printf): Likewise.
4542 (expand_builtin_fprintf): Likewise.
4543 (expand_builtin_sprintf): Likewise.
4544 (expand_builtin_init_trampoline): Likewise.
4545 (expand_builtin_signbit): Likewise.
4546 (expand_builtin_fork_or_exec): Likewise.
4547 (expand_builtin_sync_operation): Likewise.
4548 (expand_builtin_compare_and_swap): Likewise.
4549 (expand_builtin_lock_test_and_set): Likewise.
4550 (expand_builtin_lock_release): Likewise.
4551 (expand_builtin): Likewise.
4552 (builtin_mathfn_code): Likewise.
4553
4554 (fold_builtin_constant_p): Pass call arguments individually instead
4555 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
4556 accessors and constructors. Return NULL_TREE instead of 0.
4557 (fold_builtin_expect): Likewise.
4558 (fold_builtin_classify_type): Likewise.
4559 (fold_builtin_strlen): Likewise.
4560 (fold_builtin_nan): Likewise.
4561 (integer_valued_real_p): Likewise.
4562 (fold_trunc_transparent_mathfn): Likewise.
4563 (fold_fixed_mathfn): Likewise.
4564 (fold_builtin_cabs): Likewise.
4565 (fold_builtin_sqrt): Likewise.
4566 (fold_builtin_cbrt): Likewise.
4567 (fold_builtin_cos): Likewise.
4568 (fold_builtin_cosh): Likewise.
4569 (fold_builtin_tan): Likewise.
4570 (fold_builtin_sincos): Likewise.
4571 (fold_builtin_cexp): Likewise.
4572 (fold_builtin_trunc): Likewise.
4573 (fold_builtin_floor): Likewise.
4574 (fold_builtin_ceil): Likewise.
4575 (fold_builtin_round): Likewise.
4576 (fold_builtin_int_roundingfn): Likewise.
4577 (fold_builtin_bitop): Likewise.
4578 (fold_builtin_bswap): Likewise.
4579 (fold_builtin_logarithm): Likewise.
4580 (fold_builtin_hypot): Likewise.
4581 (fold_builtin_pow): Likewise.
4582 (fold_builtin_powi): Likewise.
4583 (fold_builtin_exponent): Likewise.
4584 (fold_builtin_memset): Likewise.
4585 (fold_builtin_bzero): Likewise.
4586 (fold_builtin_memory_op): Likewise.
4587 (fold_builtin_bcopy): Deleted; call site changed to invoke
4588 fold_builtin_memory_op directly.
4589 (fold_builtin_strcpy): Similarly as for fold_builtin_memory_op.
4590 (fold_builtin_strncpy): Likewise.
4591 (fold_builtin_memcmp): Likewise.
4592 (fold_builtin_strcmp): Likewise.
4593 (fold_builtin_strncmp): Likewise.
4594 (fold_builtin_signbit): Likewise.
4595 (fold_builtin_copysign): Likewise.
4596 (fold_builtin_isascii): Likewise.
4597 (fold_builtin_toascii): Likewise.
4598 (fold_builtin_isdigit): Likewise.
4599 (fold_builtin_fabs): Likewise.
4600 (fold_builtin_abs): Likewise.
4601 (fold_builtin_fmin_fmax): Likewise.
4602 (fold_builtin_carg): Likewise.
4603 (fold_builtin_classify): Likewise.
4604 (fold_builtin_unordered_cmp): Likewise.
4605
4606 (fold_builtin_0, fold_builtin_2, fold_builtin_3, fold_builtin_4):
4607 New functions split out from fold_builtin_1.
4608 (fold_builtin_n): New.
4609 (fold_builtin_varargs): New.
4610 (fold_builtin): Deleted. Most callers changed to use fold_call_expr
4611 instead.
4612 (fold_call_expr): New.
4613 (build_function_call_expr): Rewrite to use new helper function.
4614 (fold_builtin_call_list): New.
4615 (build_call_expr): New.
4616 (fold_builtin_call_valist): New.
4617 (rewrite_call_expr): New.
4618 (validate_arg): New.
4619 (validate_arglist): Change parameter to be entire CALL_EXPR instead
4620 of an arglist. Change return type to bool. Use new CALL_EXPR
4621 accessors.
4622
4623 (fold_builtin_strstr): Pass call arguments individually instead
4624 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
4625 accessors and constructors. Return NULL_TREE instead of 0.
4626 (fold_builtin_strchr): Likewise.
4627 (fold_builtin_strrchr): Likewise.
4628 (fold_builtin_strpbrk): Likewise.
4629 (fold_builtin_strcat): Likewise.
4630 (fold_builtin_strncat): Likewise.
4631 (fold_builtin_strspn): Likewise.
4632 (fold_builtin_strcspn): Likewise.
4633 (fold_builtin_fputs): Likewise.
4634 (fold_builtin_next_arg): Likewise.
4635 (fold_builtin_sprintf): Likewise.
4636
4637 (expand_builtin_object_size): Use new CALL_EXPR accessors. Use
4638 NULL_RTX instead of 0.
4639 (expand_builtin_memory_chk): Likewise.
4640 (maybe_emit_chk_warning): Likewise.
4641 (maybe_emit_sprintf_chk_warning): Likewise.
4642
4643 (fold_builtin_object_size): Pass call arguments individually instead
4644 of as an arglist, fixing callers appropriately. Use new CALL_EXPR
4645 accessors and constructors. Return NULL_TREE instead of 0.
4646 (fold_builtin_memory_chk): Likewise.
4647 (fold_builtin_stxcpy_chk): Likewise.
4648 (fold_builtin_strncpy_chk): Likewise.
4649 (fold_builtin_strcat_chk): Likewise.
4650 (fold_builtin_strcat_chk): Likewise.
4651 (fold_builtin_strncat_chk): Likewise.
4652 (fold_builtin_sprintf_chk): Likewise.
4653 (fold_builtin_snprintf_chk): Likewise.
4654 (fold_builtin_printf): Likewise.
4655 (fold_builtin_vprintf): Likewise.
4656
4657 * fold-const.c (negate_expr_p): Use new CALL_EXPR accessors and
4658 constructors.
4659 (operand_equal_p): Add separate tcc_vl_exp/CALL_EXPR case.
4660 (make_range): Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
4661 (extract_muldiv_1): Add VL_EXP_CLASS_P case.
4662 (fold_mathfn_compare): Use new CALL_EXPR accessors and constructors.
4663 (fold_unary): Likewise.
4664 (fold_binary): Likewise.
4665 (fold_ternary): Remove CALL_EXPR case, since they are no longer
4666 ternary expressions.
4667 (fold): Add logic for tcc_vl_exp.
4668 (fold_checksum_tree): Make it know about tcc_vl_exp. Use
4669 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
4670 (fold_build3_stat): Add assertion to flag broken interface for
4671 constructing CALL_EXPRs.
4672 (fold_build_call_list): New.
4673 (fold_build_call_list_initializer): New.
4674 (tree_expr_nonnegative_p): Use new CALL_EXPR accessors and
4675 constructors.
4676 (fold_strip_sign_ops): Likewise.
4677
4678 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
4679 Brooks Moses <brooks.moses@codesourcery.com>
4680 Lee Millward <lee.millward@codesourcery.com>
4681
4682 * tree-dump.c (dequeue_and_dump) <CALL_EXPR>: Use new CALL_EXPR
4683 accessors and dump arguments explicitly.
4684
4685 * tree-pretty-print.c (do_niy): Use TREE_OPERAND_LENGTH instead of
4686 TREE_CODE_LENGTH.
4687 (dump_generic_node): Use new CALL_EXPR accessors and walk arguments
4688 explicitly.
4689 (print_call_name): Use new CALL_EXPR accessors.
4690
4691 * print-tree.c (print_node): Add case tcc_vl_exp. Print
4692 CALL_EXPR arguments explicitly instead of as a list. Use
4693 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
4694
4695 * tree-vrp.c (stmt_interesting_for_vrp): Use new CALL_EXPR accessors.
4696 (vrp_visit_stmt): Likewise.
4697
4698 * tree-ssa-loop-im.c (outermost_invariant_loop_expr): Make it
4699 know about tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of
4700 TREE_CODE_LENGTH.
4701 (force_move_till_expr): Likewise.
4702
4703 * targhooks.c (default_external_stack_protect_fail): Use
4704 build_call_expr instead of build_function_call_expr.
4705 (default_hidden_stack_protect_fail): Likewise.
4706
4707 * tree-complex.c (expand_complex_libcall): Use build_call_expr to
4708 build the call.
4709
4710 * cgraphbuild.c (build_cgraph_edges): Use new CALL_EXPR accessors
4711 and walk arguments explicitly.
4712
4713 * tree-ssa-loop-niter.c (simplify_replace_tree): Use
4714 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
4715 (expand_simple_operations): Likewise.
4716 (infer_loop_bounds_from_array): Use new CALL_EXPR accessors.
4717
4718 * gengtype.c (adjust_field_tree_exp): Use TREE_OPERAND_LENGTH instead
4719 of TREE_CODE_LENGTH.
4720 (walk_type): Tweak walking of arrays not to blow up on CALL_EXPRs.
4721
4722 * optabs.c (expand_widen_pattern-expr): Use TREE_OPERAND_LENGTH
4723 instead of TREE_CODE_LENGTH.
4724
4725 * value_prof.c (tree_ic): Use new CALL_EXPR accessors.
4726 (tree_ic_transform): Likewise.
4727 (interesting_stringop_to_profile_p): Pass entire CALL_EXPR as
4728 parameter instead of arglist. Fix callers.
4729 (tree_stringop_fixed_value): Use new CALL_EXPR accessors.
4730 (tree_stringops_transform): Likewise.
4731 (tree_indirect_call_to_profile): Likewise.
4732 (tree_stringops_values_to_profile): Likewise.
4733
4734 * tree-tailcall.c (find_tail_calls): Use new CALL_EXPR iterator.
4735 (eliminate_tail_call): Likewise.
4736
4737 * ipa-cp.c (ipcp_update_callgraph): Use new CALL_EXPR accessors.
4738
4739 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4740 Use TREE_OPERAND_LENGTH and generalize to handle any number of
4741 operands.
4742 (instantiate_parameters_1): Can't handle tcc_vl_exp here.
4743
4744 * omp-low.c (build_omp_barrier): Use build_call_expr.
4745 (lower_rec_input_clauses): Likewise.
4746 (lower_reduction_clauses): Likewise.
4747 (expand_parallel_call): Likewise.
4748 (maybe_catch_exception): Likewise.
4749 (expand_omp_for_generic): Likewise.
4750 (expand_omp_for_static_nochunk): Likewise.
4751 (expand_omp_sections): Likewise.
4752 (lower_omp_single_simple): Likewise.
4753 (lower_omp_single_copy): Likewise.
4754 (lower_omp_master): Likewise.
4755 (lower_omp_ordered): Likewise.
4756 (lower_omp_critical): Likewise.
4757
4758 * ipa-reference.c (check-call): Use new CALL_EXPR iterator.
4759 (scan_for_static_refs): Create tcc_vl_exp case for CALL_EXPR.
4760
4761 * tree-gimple.c (is_gimple_call_addr): Fix doc.
4762 (recalculate_side_effects): Use TREE_OPERAND_LENGTH instead of
4763 TREE_CODE_LENGTH. Add tcc_vl_exp case.
4764
4765 * tree-chrec.c (chrec_contains_symbols): Use TREE_OPERAND_LENGTH
4766 and generalize to handle any number of operands.
4767 (chrec_contains_undetermined): Likewise.
4768 (tree_contains_chrecs): Likewise.
4769 (evolution_function_is_invariant_rec_p): Use TREE_OPERAND_LENGTH.
4770
4771 * cgraphunit.c (update_call_expr): Use new CALL_EXPR accessors.
4772
4773 * tree-ssa-ccp.c (ccp_fold): Use new CALL_EXPR accessors. Use
4774 fold_call_expr instead of fold_builtin.
4775 (ccp_fold_builtin): Likewise. Update calls into builtins.c to
4776 match declarations there.
4777 (fold_stmt): Use new CALL_EXPR constructor and accessors. Doc
4778 updates.
4779
4780 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Use
4781 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
4782
4783 * ipa-pure-const.c (check_call): Use new CALL_EXPR accessors.
4784 (scan_function): Add case tcc_vl_exp for CALL_EXPR.
4785
4786 * tree-stdarg.c (execute_optimize_stdarg): Use new CALL_EXPR
4787 accessors.
4788
4789 * tree-ssa-math-opts.c (execute_cse_sincos_1): Use build_call_expr.
4790 (execute_cse_sincos): Use new CALL_EXPR accessors.
4791
4792 * tree-ssa-alias.c (find_used_portions): Use new CALL_EXPR iterator.
4793
4794 * gimple-low.c (lower_function_body): Use build_call_expr.
4795 (lower_builtin_setjmp): Likewise.
4796
4797 * expr.c (emit_block_move_via_libcall): Use build_call_expr.
4798 (set_storage_via_libcall): Likewise.
4799 (safe_from_p): Add tcc_vl_exp case. Use TREE_OPERAND_LENGTH
4800 instead of TREE_CODE_LENGTH.
4801 (expand_expr_real_1): Use new CALL_EXPR accessors.
4802
4803 * tree-browser.c (store_child_info): Use TREE_OPERAND_LENGTH and
4804 generalize to handle any number of operands.
4805 (TB_parent_eq): Likewise.
4806
4807 * predict.c (expr_expected_value): Use new CALL_EXPR accessors.
4808 (strip_builtin_expect): Likewise.
4809
4810 * function.c (gimplify_parameters): Use build_call_expr.
4811
4812 * tree-vectorizer.c (vect_is_simple_reduction): Use TREE_OPERAND_LENGTH
4813 instead of TREE_CODE_LENGTH.
4814
4815 * ipa-type-escape.c (check_call): Use new CALL_EXPR iterators.
4816 (scan_for_refs): Add case tcc_vl_exp for CALL_EXPR.
4817
4818 * tree-data-ref.c (get_references_in_stmt): Use new CALL_EXPR
4819 iterators.
4820
4821 * gimplify.c (build_stack_save_restore): Use build_call_expr.
4822 (gimplify_decl_expr): Likewise.
4823 (gimplify_call_expr): Use fold_call_expr instead of fold_builtin.
4824 Use new CALL_EXPR iterators.
4825 (gimplify_modify_expr_to_memcpy): Use build_call_expr.
4826 (gimplify_modify_expr_to_memset): Likewise.
4827 (gimplify_variable_sized_compare): Likewise.
4828 (gimplify_omp_atomic_fetch_op): Likewise.
4829 (gimplify_omp_atomic_pipeline): Likewise.
4830 (gimplify_omp_atomic_mutex): Likewise.
4831 (gimplify_function_tree): Likewise.
4832
4833 * calls.c (alloca_call_p): Use new CALL_EXPR accessors.
4834 (call_expr_flags): Likewise.
4835 (expand_call): Likewise.
4836
4837 * except.c (expand_builtin_eh_return_data_regno): Pass entire
4838 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
4839 accessors.
4840
4841 * coverage.c (create_coverage): Use build_call_expr.
4842
4843 * tree-ssa-pre.c (expression_node_pool, list_node_pool): Delete.
4844 (temp_call_expr_obstack): New.
4845 (pool_copy_list): Delete.
4846 (temp_copy_call_expr): New.
4847 (phi_translate): Add case tcc_vl_exp for CALL_EXPR. Use new
4848 CALL_EXPR accessors. Get rid of special goo for copying argument
4849 lists and use temp_copy_call_expr instead.
4850 (valid_in_sets): Add case tcc_vl_exp for CALL_EXPR. Use new
4851 CALL_EXPR accessors.
4852 (create_expression_by_pieces): Likewise. Use build_call_array
4853 to construct the result instead of fold_build3.
4854 (create_value_expr_from): Add tcc_vl_exp. Delete special goo for
4855 dealing with argument lists.
4856 (init_pre): Remove references to expression_node_pool and
4857 list_node_pool. Init temp_call_expr_obstack instead.
4858 (fini_pre): Remove references to expression_node_pool and
4859 list_node_pool.
4860
4861 * tree-sra.c (sra_walk_call_expr): Use new CALL_EXPR accessors
4862 and walk arguments explicitly instead of as a list.
4863
4864 * tree-mudflap.c (mf_build_check_statement_for): Use build_call_expr.
4865 (mx_register_decls): Likewise.
4866 (mudflap_register_call): Likewise.
4867 (mudflap_finish_file): Likewise.
4868
4869 * ipa-prop.c (ipa_callsite_compute_count): Use new CALL_EXPR accessors.
4870 (ipa_callsite_compute_param): Likewise.
4871
4872 * tree-vect-patterns.c (vect_recog_pow_pattern): Use new CALL_EXPR
4873 accessors and constructor.
4874
4875 * tree-nested.c (convert_nl_goto_reference): Use new CALL_EXPR
4876 accessors and constructor.
4877 (convert_tramp_reference): Likewise.
4878 (convert_call_expr): Likewise.
4879 (finalize_nesting_tree_1): Likewise.
4880
4881 * tree-ssa.c (tree_ssa_useless_type_conversion): Use new CALL_EXPR
4882 accessors.
4883
4884 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use build_call_expr.
4885
4886 * tree-inline.c (initialize_inlined_parameters): Pass entire
4887 CALL_EXPR as parameter instead of arglist. Use new CALL_EXPR
4888 accessors.
4889 (estimate_num_insns_1): Use new CALL_EXPR accessors.
4890 (expand_call_inline): Tidy up call to initialize_inlined_parameters.
4891
4892 * tree-vect-transform.c (vect_create_epilog_for_reduction): Use
4893 TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
4894 (vectorizable_reduction): Likewise.
4895 (vectorizable_call): Use new CALL_EXPR iterators.
4896 (vectorizable_conversion): Use build_call_expr.
4897 (vectorizable_operation): Use TREE_OPERAND_LENGTH.
4898 (vect_gen_widened_results_half): Use build_call_expr.
4899 (vect_setup_realignment): Likewise.
4900 (vectorizable_live_operation): Use TREE_OPERAND_LENGTH.
4901
4902 * tree-object-size.c (alloc_object_size): Use new CALL_EXPR accessors.
4903 (pass_through_call): Likewise.
4904 (compute_object_sizes): Likewise. Use fold_call_expr instead of
4905 fold_builtin.
4906
4907 * tree-profile.c (tree_gen_interval_profiler): Use build_call_expr.
4908 (tree_gen_pow2_profiler): Likewise.
4909 (tree_gen_one_value_profiler): Likewise.
4910 (tree_gen_ic_func_profiler): Likewise.
4911 (tree_gen_average_profiler): Likewise.
4912 (tree_gen_ior_profiler): Likewise.
4913
4914 * tree-ssa-structalias.c (get_constraint_for): Add case tcc_vl_exp.
4915 (find_func_aliases): Use new CALL_EXPR accessors. Add case
4916 tcc_vl_exp. Use TREE_OPERAND_LENGTH instead of TREE_CODE_LENGTH.
4917
4918 * tree-ssa-reassoc.c (get_rank): Use TREE_OPERAND_LENGTH instead
4919 of TREE_CODE_LENGTH.
4920
4921 * stmt.c (warn_if_unused_value): Use TREE_OPERAND_LENGTH instead
4922 of TREE_CODE_LENGTH.
4923
4924 * convert.c (convert_to_real): Use new CALL_EXPR accessors and
4925 constructor.
4926 (convert_to_integer): Likewise.
4927
4928 * tree-ssa-operands.c (get_call_expr_operands): Use new CALL_EXPR
4929 accessors.
4930
4931 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
4932 Brooks Moses <brooks.moses@codesourcery.com>
4933 Lee Millward <lee.millward@codesourcery.com>
4934
4935 * config/alpha/alpha.c (alpha_expand_builtin): Use new CALL_EXPR
4936 accessors.
4937 * config/frv/frv.c (frv_expand_builtin): Likewise.
4938 * config/s390/s390.c (s390_expand_builtin): Likewise.
4939
4940 * config/sparc/sparc.c (sparc_gimplify_va_arg): Use build_call_expr.
4941 (sparc_expand_builtin): Use new CALL_EXPR accessors.
4942
4943 * config/i386/i386.c (ix86_function_ok_for_sibcall): Likewise.
4944 (ix86_expand_binop_builtin): Pass entire CALL_EXPR as parameter
4945 instead of arglist. Use new CALL_EXPR accessors on it. Fix callers.
4946 (ix86_expand_store_builtin): Likewise.
4947 (ix86_expand_unop_builtin): Likewise.
4948 (ix86_expand_unop1_builtin): Likewise.
4949 (ix86_expand_sse_compare): Likewise.
4950 (ix86_expand_sse_comi): Likewise.
4951 (ix86_expand_vec_init_builtin): Likewise.
4952 (ix86_expand_vec_ext_builtin): Likewise.
4953 (ix86_expand_vec_set_builtin): Likewise.
4954 (ix86_expand_builtin): Use new CALL_EXPR accessors.
4955
4956 * config/sh/sh.c (sh_expand_builtin): Use new CALL_EXPR accessors.
4957 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
4958
4959 * config/iq2000/iq2000.c (expand_one_builtin): Pass entire CALL_EXPR
4960 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
4961 (iq2000_expand_builtin): Use new CALL_EXPR accessors.
4962
4963 * config/rs6000/rs6000-c.c (altivec_build_resolved_builtin): Use
4964 build_call_expr.
4965 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
4966 (rs6000_expand_unop_builtin): Pass entire CALL_EXPR instead of
4967 arglist. Use new CALL_EXPR accessors. Fix callers.
4968 (altivec_expand_abs_builtin): Likewise.
4969 (rs6000_expand_binop_builtin): Likewise.
4970 (altivec_expand_predicate_builtin): Likewise.
4971 (altivec_expand_lv_builtin): Likewise.
4972 (spe_expand_stv_builtin): Likewise.
4973 (altivec_expand_stv_builtin): Likewise.
4974 (rs6000_expand_ternop_builtin): Likewise.
4975 (altivec_expand_ld_builtin): Use new CALL_EXPR accessors.
4976 (altivec_expand_st_builtin): Likewise.
4977 (altivec_expand_dst_builtin): Likewise.
4978 (altivec_expand_vec_init_builtin): Pass entire CALL_EXPR instead of
4979 arglist. Use new CALL_EXPR accessors. Fix callers.
4980 (altivec_expand_vec_set_builtin): Likewise.
4981 (altivec_expand_vec_ext_builtin): Likewise.
4982 (altivec_expand_builtin): Use new CALL_EXPR accessors.
4983 (spe_expand_builtin): Likewise.
4984 (spe_expand_predicate_builtin): Pass entire CALL_EXPR instead of
4985 arglist. Use new CALL_EXPR accessors. Fix callers.
4986 (spe_expand_evsel_builtin): Likewise.
4987 (rs6000_expand_builtin): Use new CALL_EXPR accessors. VCFUX and
4988 FCFSX cases must construct whole new CALL_EXPR, not just arglist.
4989
4990 * config/arm/arm.c (arm_expand_binop_builtin): Pass entire CALL_EXPR
4991 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
4992 (arm_expand_unop_builtin): Likewise.
4993 (arm_expand_builtin): Use new CALL_EXPR accessors.
4994
4995 * config/mips/mips.c (mips_expand_builtin): Use new CALL_EXPR
4996 accessors.
4997
4998 * config/bfin/bfin.c (bfin_expand_binop_builtin): Pass entire CALL_EXPR
4999 instead of arglist. Use new CALL_EXPR accessors. Fix callers.
5000 (bfin_expand_unop_builtin): Likewise.
5001 (bfin_expand_builtin): Use new CALL_EXPR accessors.
5002
5003 2007-02-15 Sandra Loosemore <sandra@codesourcery.com>
5004 Brooks Moses <brooks.moses@codesourcery.com>
5005 Lee Millward <lee.millward@codesourcery.com>
5006
5007 * c-semantics.c (build_stmt): Add internal diagnostic check.
5008
5009 * c-pretty-print.c (pp_c_postfix_expression): Use new CALL_EXPR
5010 accessors. Print arguments explicitly instead of as a list.
5011
5012 * c-typeck.c (build_function_call): Use new CALL_EXPR constructors.
5013
5014 * c-omp.c (c_finish_omp_barrier): Use build_call_expr.
5015 (c_finish_omp_flish): Likewise.
5016
5017 * c-common.c (verify_tree): Use new CALL_EXPR accessors. Traverse
5018 arguments explicitly instead of as a list. Use TREE_OPERAND_LENGTH
5019 instead of TREE_CODE_LENGTH.
5020 (check_function_arguments_recurse): Use new CALL_EXPR accessors.
5021 (c_warn_unused_result): Likewise.
5022
5023 2007-02-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5024
5025 PR c/26494
5026 * doc/invoke.texi (Warning Options): Remove
5027 -Werror-implicit-function-declaration.
5028 (Wimplicit-function-declaration): Update description.
5029 * opts.c (common_handle_option): Move handling of -Werror=* to...
5030 (enable_warning_as_error): ...here.
5031 * opts.h (enable_warning_as_error): Declare.
5032 * c-decl.c (implicit_decl_warning): Unless
5033 -Wno-implicit-function-declaration is given, emit a pedwarn if
5034 -std=c99 or emit a warning if -Wimplicit-function-declaration.
5035 * c.opt (Wimplicit-function-declaration): Replace
5036 mesg_implicit_function_declaration with
5037 warn_implicit_function_declaration.
5038 * c-opts.c (c_common_handle_option):
5039 -Werror-implicit-function-declaration is exactly equal as
5040 -Werror=implicit-function-declaration.
5041 (set_Wimplicit): Replace mesg_implicit_function_declaration with
5042 warn_implicit_function_declaration.
5043 (c_common_post_options): -Wimplict-function-declaration is enabled
5044 by default by -std=c99, otherwise is disabled by default.
5045 * c-objc-common.c (c_objc_common_init): Remove flawed logic.
5046
5047 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
5048
5049 * gimplify.c (gimplify_modify_expr): During gimplification, attach a
5050 DECL on the rhs to a DECL on the lhs for debug info purposes if the
5051 former is ignored but not the latter.
5052
5053 2007-02-15 Eric Botcazou <ebotcazou@adacore.com>
5054
5055 * expr.c (expand_expr_real_1) <normal_inner_ref>: If a temporary
5056 is made and the reference doesn't use the alias set of its type,
5057 do not create the temporary using that type.
5058
5059 2007-02-15 Aldy Hernandez <aldyh@redhat.com>
5060
5061 * jump.c: Remove prototypes for delete_computation and
5062 delete_prior_computation.
5063
5064 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
5065
5066 * jump.c (get_label_after): Delete.
5067 (get_label_before, delete_computation, delete_jump,
5068 delete_prior_computation, follow_jumps): Move...
5069 * reorg.c (delete_computation, delete_prior_computation): ... here...
5070 (get_label_before, delete_jump): ... making these static ...
5071 (follow_jumps): ... and simplifying this since it only runs after
5072 reload.
5073 * rtl.h (get_label_after, get_label_before, delete_jump,
5074 follow_jumps): Delete prototypes.
5075
5076 2007-02-15 Paolo Bonzini <bonzini@gnu.org>
5077
5078 * caller-save.c (save_call_clobbered_regs): Do not process sibcalls.
5079
5080 2007-02-15 Nick Clifton <nickc@redhat.com>
5081
5082 * varasm.c (default_asm_output_anchor): Prepend * to . symbol in
5083 order to prevent it from being munged by the target.
5084
5085 2007-02-15 Uros Bizjak <ubizjak@gmail.com>
5086
5087 * config/i386/i386.md: Remove misleading comment.
5088
5089 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
5090
5091 * config/frv/frv.md (reload_incc, reload_outcc, reload_incc_uns,
5092 reload_outcc_uns, reload_incc_nz, reload_outcc_nz): Remove
5093 invalid patterns.
5094
5095 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
5096
5097 * tree-sra.c (instantiate_missing_elements): Canonicalize
5098 bit-field types.
5099 (sra_build_assignment): New.
5100 (generate_copy_inout, generate_element_copy,
5101 generate_element_zero, generate_one_element_init): Use it.
5102
5103 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
5104
5105 * tree-sra.c (instantiate_missing_elements): Canonicalize
5106 bit-field types.
5107 (sra_build_assignment): New.
5108 (generate_copy_inout, generate_element_copy,
5109 generate_element_zero, generate_one_element_init): Use it.
5110
5111 2007-02-15 Alexandre Oliva <aoliva@redhat.com>
5112
5113 * dwarf2out.c (dwarf2out_finish): Accept namespaces as context of
5114 limbo die nodes.
5115
5116 2007-02-14 Joseph Myers <joseph@codesourcery.com>
5117
5118 * emit-rtl.c (set_mem_attributes_minus_bitpos): Treat complex
5119 types as aggregates not scalars.
5120 * function.c (assign_stack_temp_for_type): Likewise.
5121
5122 2007-02-14 Roger Sayle <roger@eyesopen.com>
5123 Zdenek Dvorak <dvorakz@suse.cz>
5124
5125 * tree-dump.c (dump_switch_p_1): Require exact match of the option
5126 name.
5127
5128 2007-02-14 Zdenek Dvorak <dvorakz@suse.cz>
5129
5130 * passes.c (next_pass_1): Clear the next field of the copied
5131 pass structure.
5132
5133 2007-02-14 Richard Henderson <rth@redhat.com>
5134
5135 * tree-sra.c (early_sra): New.
5136 (decl_can_be_decomposed_p): Deny va_list if early_sra.
5137 (tree_sra_early, pass_sra_early): New.
5138 * tree-pass.h (pass_sra_early): Declare.
5139 * passes.c (init_optimization_passes): Use it.
5140
5141 2007-02-14 Richard Guenther <rguenther@suse.de>
5142
5143 * flags.h (issue_strict_overflow_warning): Convert to a macro.
5144
5145 2007-02-14 Dorit Nuzman <dorit@il.ibm.com>
5146
5147 PR tree-optimization/30771
5148 * tree-vect-analyze.c (vect_determine_vectorization_factor): Traverse
5149 also phi nodes.
5150 (vect_analyze_operations): Induction phis can now be marked as
5151 used_in_loop.
5152 (vect_mark_stmts_to_be_vectorized): No special treatment for phis.
5153 Update documentation accordingly.
5154
5155 2007-02-14 Nick Clifton <nickc@redhat.com>
5156
5157 * builtin-types.def (DEF_FUNCTION_TYPE_x): Do not imply that at
5158 most 3 arguments are supported.
5159 (DEF_FUNCTION_TYPE_VAR_5): Fix typo in its description.
5160
5161 2007-02-13 Seongbae Park <seongbae.park@gmail.com>
5162
5163 * bitmap.c (bitmap_and, bitmap_and_compl, bitmap_xor):
5164 Ensure dst->current is valid.
5165
5166 2007-02-13 Paul Brook <paul@codesourcery.com>
5167
5168 * config.gcc: Add arm*-*-uclinux-*eabi.
5169 * config/arm/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Define.
5170 (SUBTARGET_EXTRA_LINK_SPEC): Define.
5171 (STARTFILE_SPEC, ENDFILE_SPEC): Remove broken -shared handling.
5172 (LINK_GCC_C_SEQUENCE_SPEC): Undef.
5173 (LINK_SPEC): Define.
5174 (LIB_SPEC): Define.
5175 * config/arm/arm.c (arm_override_options): Use r9 as EABI PIC
5176 register.
5177 * config/arm/uclinux-eabi.h: New file.
5178 * config/arm/linux-eabi.h (WCHAR_TYPE): Remove.
5179 * config/arm/linux-gas.h (WCHAR_TYPE): Use unsigned long on AAPCS
5180 based targets.
5181
5182 2007-02-13 Ian Lance Taylor <iant@google.com>
5183
5184 * common.opt: Add Wstrict-overflow and Wstrict-overflow=.
5185 * flags.h (warn_strict_overflow): Declare.
5186 (enum warn_strict_overflow_code): Define.
5187 (issue_strict_overflow_warning): New static inline function.
5188 * opts.c (warn_strict_overflow): New variable.
5189 (common_handle_option): Handle OPT_Wstrict_overflow and
5190 OPT_Wstrict_overflow_.
5191 * c-opts.c (c_common_handle_option): Set warn_strict_overflow for
5192 OPT_Wall.
5193 * fold-const.c: Include intl.h.
5194 (fold_deferring_overflow_warnings): New static variable.
5195 (fold_deferred_overflow_warning): New static variable.
5196 (fold_deferred_overflow_code): New static variable.
5197 (fold_defer_overflow_warnings): New function.
5198 (fold_undefer_overflow_warnings): New function.
5199 (fold_undefer_and_ignore_overflow_warnings): New function.
5200 (fold_deferring_overflow_warnings_p): New function.
5201 (fold_overflow_warning): New static function.
5202 (make_range): Add strict_overflow_p parameter. Change all
5203 callers.
5204 (extract_muldiv, extract_muldiv_1): Likewise.
5205 (fold_unary) [ABS_EXPR]: Check ABS_EXPR before calling
5206 tree_expr_nonnegative_p.
5207 (fold_negate_expr): Call fold_overflow_warning.
5208 (fold_range_test): Likewise.
5209 (fold_comparison): Likewise.
5210 (fold_binary): Likewise. Call tree_expr_nonnegative_warnv_p
5211 instead of tree_expr_nonnegative_p.
5212 (tree_expr_nonnegative_warnv_p): Rename from
5213 tree_expr_nonnegative_p, add strict_overflow_p parameter.
5214 (tree_expr_nonnegative_p): New function.
5215 (tree_expr_nonzero_warnv_p): Rename from tree_expr_nonzero_p, add
5216 strict_overflow_p parameter.
5217 (tree_expr_nonzero_p): New function.
5218 * passes.c (verify_interpass_invariants): New static function.
5219 (execute_one_pass): Call it.
5220 * tree-ssa-loop-niter.c (expand_simple_operations): Ignore fold
5221 warnings.
5222 (number_of_iterations_exit, loop_niter_by_eval): Likewise.
5223 (estimate_numbers_of_iterations): Likewise.
5224 (scev_probably_wraps_p): Likewise.
5225 * tree-ssa-ccp.c: Include "toplev.h".
5226 (evaluate_stmt): Defer fold overflow warnings until we know we are
5227 going to optimize.
5228 (struct fold_stmt_r_data): Add stmt field.
5229 (fold_stmt_r): Defer fold overflow warnings until we know we
5230 optimized.
5231 (fold_stmt): Initialize stmt field of fold_stmt_r_data.
5232 (fold_stmt_inplace): Likewise.
5233 * tree-cfgcleanup.c: Include "toplev.h" rather than "errors.h".
5234 (cleanup_control_expr_graph): Defer fold overflow warnings until
5235 we know we are going to optimize.
5236 * tree-cfg.c (fold_cond_expr_cond): Likewise.
5237 * tree-ssa-threadedge.c (simplify_control_stmt_condition):
5238 Likewise.
5239 * tree-vrp.c (vrp_expr_computes_nonnegative): Call
5240 tree_expr_nonnegative_warnv_p instead of tree_expr_nonnegative_p.
5241 * tree-ssa-loop-manip.c (create_iv): Likewise.
5242 * c-typeck.c (build_conditional_expr): Likewise.
5243 (build_binary_op): Likewise.
5244 * tree-vrp.c (vrp_expr_computes_nonzero): Call
5245 tree_expr_nonzero_warnv_p instead of tree_expr_nonzero_p.
5246 (extract_range_from_unary_expr): Likewise.
5247 * simplify-rtx.c (simplify_const_relational_operation): Warn when
5248 assuming that signed overflow does not occur.
5249 * c-common.c (pointer_int_sum): Ignore fold overflow warnings.
5250 * tree.h (tree_expr_nonnegative_warnv_p): Declare.
5251 (fold_defer_overflow_warnings): Declare.
5252 (fold_undefer_overflow_warnings): Declare.
5253 (fold_undefer_and_ignore_overflow_warnings): Declare.
5254 (fold_deferring_overflow_warnings_p): Declare.
5255 (tree_expr_nonzero_warnv_p): Declare.
5256 * doc/invoke.texi (Option Summary): Add -Wstrict-overflow to list
5257 of warning options.
5258 (Warning Options): Document -Wstrict-overflow.
5259 * Makefile.in (tree-ssa-threadedge.o): Depend on toplev.h.
5260 (tree-ssa-ccp.o): Likewise.
5261 (tree-cfgcleanup.o): Change errors.h dependency to toplev.h.
5262 (fold-const.o): Depend on intl.h.
5263
5264 2007-02-13 Ian Lance Taylor <iant@google.com>
5265
5266 PR middle-end/30751
5267 * lower-subreg.c (resolve_simple_move): Decompose subregs in
5268 addresses.
5269
5270 2007-02-13 Stuart Hastings <stuart@apple.com>
5271
5272 * gcc/config/i386/i386.md (fixuns_truncdfhi2): Require SSE2.
5273
5274 2007-02-13 Richard Henderson <rth@redhat.com>
5275
5276 * config/alpha/alpha.c (alpha_stdarg_optimize_hook): Strip
5277 handled_component_p before looking for the indirect_ref.
5278
5279 2007-02-13 Richard Henderson <rth@redhat.com>
5280
5281 * config/i386/i386.md (bswapsi_1): Rename from bswapsi2,
5282 remove flags clobber.
5283 (bswapsi2): New expander, emit code for !TARGET_BSWAP.
5284 (bswaphi_lowpart): New.
5285 (bswapdi2): Rename from bswapdi2_rex, remove flags clobber,
5286 remove TARGET_BSWAP test. Delete expander of the same name.
5287
5288 * optabs.c (widen_bswap, expand_doubleword_bswap): New.
5289 (expand_unop): Use them.
5290
5291 2007-02-13 Uros Bizjak <ubizjak@gmail.com>
5292
5293 * config/i386/i386.md (cmpdi_ccno_1_rex64, *cmpsi_ccno_1,
5294 *cmphi_ccno_1, *cmpqi_ccno_1, *movsi_xor, *movstricthi_xor,
5295 *movstrictqi_xor, *movdi_xor_rex64, *ashldi3_1_rex64,
5296 *ashldi3_cmp_rex64, *ashldi3_cconly_rex64, ashlsi3, *ashlsi3_1_zext,
5297 *ashlsi3_cmp, *ashlsi3_cconly, *ashlsi3_cmp_zext, *ashlhi3_1_lea,
5298 *ashlhi3_1, *ashlhi3_cmp, *ashlhi3_cconly, *ashlqi3_1_lea,
5299 *ashlqi3_1, *ashlqi3_cmp, *ashlqi3_cconly): Remove equivalent
5300 assembler dialect choice from asm templates.
5301
5302 2007-02-12 Richard Henderson <rth@redhat.com>
5303
5304 * config/i386/i386.md (fixuns_trunc<SSEMODEF>si_1): New insn.
5305 (fixuns_trunc<SSEMODEF>si2): Use it.
5306 * config/i386/sse.md (vec_setv4sf_0): Export.
5307 * config/i386/i386.c (ix86_build_const_vector): Export.
5308 (ix86_split_convert_uns_si_sse): Rename from
5309 ix86_expand_convert_uns_si_sse and rewrite as a splitter.
5310 * config/i386/i386-protos.h: Update.
5311
5312 2007-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5313
5314 PR c/29521
5315 * c-typeck.c (c_finish_return): Improve warning message.
5316
5317 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5318
5319 * alias.c (find_symbolic_term): Delete unused function.
5320
5321 2007-02-12 Uros Bizjak <ubizjak@gmail.com>
5322
5323 * config/i386/i386.md (paritydi2, paritysi2): New expanders.
5324 (paritydi2_cmp, paritydi2_cmp): New insn and split patterns.
5325 (*parityhi2_cmp, *parityqi2_cmp): New insn patterns.
5326
5327 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
5328
5329 * tree.h (DECL_IGNORED_P): Document further effect for FUNCTION_DECL.
5330 * cgraphunit.c (cgraph_expand_function): If DECL_IGNORED_P is set on
5331 the function, temporarily point the debug interface to the null one.
5332
5333 2007-02-12 Eric Botcazou <ebotcazou@adacore.com>
5334
5335 * dwarf2out.c (round_up_to_align): New static function.
5336 (field_byte_offset): Use it to round the offset.
5337
5338 2007-02-12 Richard Henderson <rth@redhat.com>
5339
5340 * config/alpha/alpha.md (bswapsi2, bswapdi2): New.
5341 (inswl_const): Export.
5342
5343 2007-02-12 Richard Henderson <rth@redhat.com>
5344
5345 * calls.c (emit_library_call_value_1): If PROMOTE_MODE modifed the
5346 result mode of the libcall, convert back to outmode.
5347
5348 2007-02-12 Roger Sayle <roger@eyesopen.com>
5349
5350 * config/i386/i386.md (*bswapdi2_rex): Renamed from bswapdi2.
5351 (bswapdi2): New define_expand to implement 32-bit implementation.
5352
5353 2007-02-12 Nick Clifton <nickc@redhat.com>
5354
5355 * doc/invoke.texi (Overall Options): Document --help=.
5356 * gcc.c (target_help_flag): Rename to print_subprocess_flag.
5357 (cc1_options): Pass --help= on to cc1.
5358 (display_help): Add description of --help=.
5359 (process_command): Add code to handle --help=. Allow translated
5360 --help and --target-help switches to be passed on to compiler
5361 sub-process.
5362 (main): Remove unused if statement.
5363 * opts.c (columns): Remove.
5364 (LEFT_COLUMN): Define.
5365 (wrap_help): Add columns argument.
5366 (print_filtered_help): Change parameters to be an include bitmask,
5367 an exclude bitmask, an any bitmask and the column width. Move the
5368 code to display the params list here. Add code to display the
5369 status of options rather than their descriptions if the quiet flag
5370 is not active.
5371 (print_specific_help): Change parameters to be an include bitmask,
5372 an exclude bitmask and an any bitmask. Move code to look up the
5373 column width here. Decide upon the title for an options listing.
5374 (common_handle_options): Add code to handle --help=. Adapt code
5375 for --help and --target-help to use the revised form of the
5376 print_specific_help function.
5377 (print_help): Delete.
5378 (print_param_help): Delete.
5379 (print_switch): Delete.
5380 * opts.h (cl_lang_count): Add prototype.
5381 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_MIN_OPTION_CLASS,
5382 CL_MAX_OPTION_CLASS): New defines.
5383 * optc-gen.awk: Add construction of cl_lang_count.
5384 * c.opt: Add Warning attribute to warning options and Optimization
5385 attribute to optimization options.
5386 * common.opt: Likewise.
5387 Add --help=.
5388 Add -fhelp and -ftarget-help as aliases for the transformed --help
5389 and --target-help options.
5390 * opt-functions.awk: Add code to handle Warning and Optimization
5391 attributes.
5392
5393 2007-02-12 Richard Henderson <rth@redhat.com>
5394
5395 * config/alpha/constraints.md: New file.
5396 * config/alpha/alpha.c: Include tm-constrs.h.
5397 (alpha_const_ok_for_letter_p, alpha_const_double_ok_for_letter_p,
5398 alpha_extra_constraint): Remove.
5399 (alpha_emit_conditional_branch): Use satisfies_constraint_*.
5400 * config/alpha/alpha-protos.h: Update.
5401 * config/alpha/alpha.h (REG_CLASS_FROM_LETTER): Remove.
5402 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Remove.
5403 (EXTRA_CONSTRAINT): Remove.
5404 * config/alpha/alpha.md: Include constraints.md.
5405 (adddi splitter): Use satisfies_constraint_*.
5406 * config/alpha/predicates.md (add_operand): Likewise.
5407 (sext_add_operand, addition_operation): Likewise.
5408
5409 2007-02-12 Dorit Nuzman <dorit@il.ibm.com>
5410
5411 PR tree-optimization/29145
5412 * tree-data-ref.c (base_addr_differ_p): Make us more conservative
5413 in our handling of restrict qualified pointers.
5414
5415 2007-02-12 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5416
5417 PR middle-end/7651
5418 * doc/invoke.texi (Wunused-value): Update description.
5419 (Wextra): Delete item.
5420 * opts.c (set_Wextra): Don't use the value of Wextra to set the
5421 value of Wunused-value.
5422 * c-typeck.c (c_process_expr_stmt): Don't check extra_warnings.
5423 (c_finish_stmt_expr): Don't check extra_warnings.
5424 (emit_side_effect_warnings): The caller is responsible to check
5425 warn_unused_value.
5426
5427 2007-02-11 Roger Sayle <roger@eyesopen.com>
5428 Matt Thomas <matt@3am-software.com>
5429
5430 * simplify-rtx.c (simplify_relational_operation_1): Correct typo.
5431
5432 2007-02-11 Roger Sayle <roger@eyesopen.com>
5433
5434 * simplify-rtx.c (simplify_relational_operation_1): Optimize
5435 comparisons of POPCOUNT against zero.
5436 (simplify_const_relational_operation): Likewise.
5437
5438 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5439
5440 * doc/invoke.texi (Wextra): Delete outdated paragraph.
5441
5442 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5443
5444 * dwarf2out.c (root_type): Delete unused function.
5445
5446 2007-02-11 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5447
5448 * genattrtab.c (contained_in_p): Delete unused function.
5449 (write_expr_attr_cache): Likewise.
5450
5451 2007-02-11 Jan Hubicka <jh@suse.cz>
5452
5453 * ipa-inline.c (cgraph_edge_badness): Add "else" missing in the
5454 previous patch.
5455
5456 2007-02-11 Steven Bosscher <steven@gcc.gnu.org>
5457
5458 * fwprop.c (try_fwprop_subst): Use set_unique_reg_note
5459 to add the REG_EQ* note.
5460 * see.c (see_merge_one_use_extension): Likewise.
5461 * local-alloc.c (update_equiv_regs): Likewise. Also don't
5462 turn REG_EQUAL notes into REG_EQUIV notes if the target
5463 register may have more than one set.
5464 * function.c (assign_parm_setup_reg): Use set_unique_reg_note.
5465 * gcse.c (try_replace_reg): Likewise.
5466 * alias.c (init_alias_analysis): Use find_reg_equal_equiv_note.
5467 * calls.c (fixup_tail_calls): Likewise. Abort if there is
5468 more than one REG_EQUIV note.
5469 * reload1.c (gen_reload): Use set_unique_reg_note.
5470
5471 2007-02-11 Uros Bizjak <ubizjak@gmail.com>
5472
5473 * config/i386/i386.c (TARGET_VECTORIZE_BUILTIN_CONVERSION): Define.
5474 (ix86_builtin_conversion): New function.
5475
5476 2007-02-06 Mark Mitchell <mark@codesourcery.com>
5477
5478 PR target/29487
5479 * tree.h (DECL_REPLACEABLE_P): New macro.
5480 * except.c (set_nothrow_function_flags): Likewise.
5481
5482 2007-02-11 Tehila Meyzels <tehila@il.ibm.com>
5483 Ira Rosen <irar@il.ibm.com>
5484 Dorit Nuzman <dorit@il.ibm.com>
5485
5486 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): New target hook.
5487 * targhooks.c (default_builtin_vectorized_conversion): New.
5488 * targhooks.h (default_builtin_vectorized_function): New declaration.
5489 * target.h (struct vectorize): Add builtin_conversion field.
5490 * tree-vectorizer.h (type_conversion_vec_info_type): New enum
5491 stmt_vec_info_type value.
5492 (vectorizable_conversion): New declaration.
5493 * tree-vect-analyze.c (vect_analyze_operations): Add
5494 vectorizable_conversion call.
5495 * target-def.h (TARGET_VECTORIZE_BUILTIN_CONVERSION): New.
5496 * tree-vect-transform.c (vectorizable_conversion): New function.
5497 (vect_transform_stmt): Add case for type_conversion_vec_info_type.
5498 * tree-vect-generic.c (expand_vector_operations_1): Consider correct
5499 mode.
5500 * config/rs6000/rs6000.c (rs6000_builtin_conversion): New.
5501 (TARGET_VECTORIZE_BUILTIN_CONVERSION): Defined.
5502 (rs6000_expand_builtin): Add handling a case of ALTIVEC_BUILTIN_VCFUX
5503 or ALTIVEC_BUILTIN_VCFSX.
5504
5505 2007-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5506
5507 PR target/30634
5508 * pa.md (movdf): For 64-bit target, fail if operand 1 is a non-zero
5509 CONST_DOUBLE and operand 0 is a hard register.
5510 (movdi): For 64-bit target, remove code to force CONST_DOUBLE to
5511 memory. Fail if operand 1 is a non-zero CONST_INT and operand 0
5512 is a hard floating-point register.
5513
5514 2007-02-10 Richard Henderson <rth@redhat.com>
5515 Jakub Jelinek <jakub@redhat.com>
5516 Alexandre Oliva <aoliva@redhat.com>
5517
5518 * Makefile.in (libgcc-support, libgcc.mvars): Add emutls.c.
5519 * builtin-types.def (BT_WORD): Make unsigned.
5520 (BT_FN_VOID_PTR_WORD_WORD_PTR): New.
5521 * builtins.def (BUILT_IN_EMUTLS_GET_ADDRESS): New.
5522 (BUILT_IN_EMUTLS_REGISTER_COMMON): New.
5523 * c-decl.c (grokdeclarator): Don't error if !have_tls.
5524 * c-parser.c (c_parser_omp_threadprivate): Likewise.
5525 * dwarf2out.c (loc_descriptor_from_tree_1): Don't do anything for
5526 emulated tls.
5527 * expr.c (emutls_var_address): New.
5528 (expand_expr_real_1): Expand emulated tls.
5529 (expand_expr_addr_expr_1): Likewise.
5530 * libgcc-std.ver: Add __emutls_get_address, __emutls_register_common.
5531 * output.h (emutls_finish): Declare.
5532 * toplev.c (compile_file): Call it.
5533 * tree-ssa-address.c (gen_addr_rtx): Check for const-ness of the
5534 address before wrapping in CONST.
5535 * varasm.c (emutls_htab, emutls_object_type): New.
5536 (EMUTLS_VAR_PREFIX, EMUTLS_TMPL_PREFIX): New.
5537 (get_emutls_object_name, get_emutls_object_type): New.
5538 (get_emutls_init_templ_addr, emutls_decl): New.
5539 (emutls_common_1, emutls_finish): New.
5540 (assemble_variable): When emulating tls, swap decls; generate
5541 constructor for the emutls objects.
5542 (do_assemble_alias): When emulating tls, swap decl and target name.
5543 (default_encode_section_info): Don't add SYMBOL_FLAG_TLS_SHIFT
5544 for emulated tls.
5545 * varpool.c (decide_is_variable_needed): Look at force_output.
5546 Recurse for emulated tls.
5547 (cgraph_varpool_remove_unreferenced_decls): Remove checks redundant
5548 with decide_is_variable_needed.
5549 * emutls.c: New file.
5550 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): Only emit
5551 tls_object for real tls.
5552
5553 2007-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
5554
5555 PR rtl-optimization/29599
5556 * reload1.c (eliminate_regs_in_insn): Take the destination
5557 mode into account when computing the offset.
5558
5559 2007-02-09 Stuart Hastings <stuart@apple.com>
5560 Richard Henderson <rth@redhat.com>
5561
5562 * gcc/config/i386/i386.h (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
5563 * gcc/config/i386/darwin.h: (TARGET_KEEPS_VECTOR_ALIGNED_STACK): New.
5564 * gcc/config/i386/i386.md (fixuns_trunc<mode>si2, fixuns_truncsfhi2,
5565 fixuns_truncdfhi2): New.
5566 (fix_truncsfdi_sse): Call ix86_expand_convert_sign_didf_sse.
5567 (floatunsdidf2): Call ix86_expand_convert_uns_didf_sse.
5568 (floatunssisf2): Add call to ix86_expand_convert_uns_sisf_sse.
5569 (floatunssidf2): Allow nonimmediate source.
5570 * gcc/config/i386/sse.md (movdi_to_sse): New.
5571 (vec_concatv2di): Drop '*'.
5572 * gcc/config/i386/i386-protos.h (ix86_expand_convert_uns_si_sse,
5573 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
5574 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse):
5575 New.
5576 * gcc/config/i386/i386.c (ix86_expand_convert_uns_si_sse,
5577 ix86_expand_convert_uns_didf_sse, ix86_expand_convert_uns_sidf_sse,
5578 ix86_expand_convert_uns_sisf_sse, ix86_expand_convert_sign_didf_sse,
5579 ix86_build_const_vector, ix86_expand_vector_init_one_nonzero): New.
5580 (ix86_build_signbit_mask): Fix decl of v, refactor to call
5581 ix86_build_const_vector.
5582 (x86_emit_floatuns): Rewrite.
5583
5584 2007-02-10 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
5585
5586 * genautomata.c (longest_path_length): Delete unused function.
5587 (struct state): Delete unused longest_path_length.
5588 (UNDEFINED_LONGEST_PATH_LENGTH): Delete unused macro.
5589 (get_free_state): Delete unused.
5590
5591 2007-02-09 Jan Hubicka <jh@suse.cz>
5592
5593 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 30.
5594 * doc/invoke.texi (inline-unit-growth): Update default value.
5595
5596 * Makefile.in (passes.o, ipa-inline.o): Add dependencies.
5597 * cgraphbuild.c (build_cgraph_edges): Compute frequencies.
5598 (rebuild_cgraph_edges): Likewise.
5599 * cgraph.c (cgraph_set_call_stmt): Add new argument frequency.
5600 (dump_cgraph_node): Dump frequencies.
5601 (cgraph_clone_edge): Add frequency scales.
5602 (cgraph_clone_node): Add freuqnecy.
5603 * cgraph.h (cgraph_edge): Add freuqnecy argument.
5604 (CGRAPH_FREQ_BASE, CGRAPH_FREQ_MAX): New constants.
5605 (cgraph_create_edge, cgraph_clone_edge, cgraph_clone_node): Update.
5606 * tree-pass.h (TODO_rebuild_frequencies): New constant.
5607 * cgraphunit.c (verify_cgraph_node): Verify frequencies.
5608 (cgraph_copy_node_for_versioning): Update call of cgraph_clone_edge.
5609 (save_inline_function_body): Likewise.
5610 * ipa-inline.c: inluce rtl.h
5611 (cgraph_clone_inlined_nods): Update call of cgraph_clone_node.
5612 (cgraph_edge_badness): Use frequencies.
5613 (cgraph_decide_recursive_inlining): Update clonning.
5614 (cgraph_decide_inlining_of_small_function): Dump frequency.
5615 * predict.c (estimate_bb_frequencies): Export.
5616 * predict.h (estimate_bb_frequencies): Declare.
5617 * tree-inline.c (copy_bb): Watch overflows.
5618 (expand_call_inline): Update call of cgraph_create_edge.
5619 (optimize_inline_calls): Use TODO flags to update frequnecies.
5620 * passes.h: Include predict.h
5621 (init_optimization_passes): Move profile ahead.
5622 (execute_function_todo): Handle TODO_rebuild_frequencies.
5623
5624 2007-02-09 Roger Sayle <roger@eyesopen.com>
5625
5626 * config/alpha/alpha.c (emit_insxl): Force the first operand of
5627 the insbl or inswl pattern into a register.
5628
5629 2007-02-09 Roger Sayle <roger@eyesopen.com>
5630
5631 * config/ia64/ia64.md (bswapdi2): New define_insn.
5632
5633 2007-02-09 Richard Henderson <rth@redhat.com>
5634
5635 * config/i386/constraints.md (Ym): New constraint.
5636 * config/i386/i386.md (movsi_1): Change Y2 to Yi constraints.
5637 (movdi_1_rex64): Split sse and xmm general register moves from
5638 memory move alternatives. Use conditional register constraints.
5639 (movsf_1, movdf_integer): Likewise.
5640 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
5641 (movdf_integer_rex64): New.
5642 (pushsf_rex64): Fix output constraints.
5643 * config/i386/sse.md (sse2_loadld): Split rm alternative, use Yi.
5644 (sse2_stored): Likewise.
5645 (sse2_storeq_rex64): New.
5646 * config/i386/i386.c (x86_inter_unit_moves): Enable for not
5647 amd and not generic.
5648 (ix86_secondary_memory_needed): Don't bypass TARGET_INTER_UNIT_MOVES
5649 for optimize_size. Remove SF/DFmode hack.
5650
5651 2007-02-09 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
5652
5653 * config/i386/driver-i386.c: Turn on -mtune=native for AMDFAM10.
5654 (bit_SSE4a): New.
5655
5656 2007-02-09 Nathan Sidwell <nathan@codesourcery.com>
5657 Richard Sandiford <richard@codesourcery.com>
5658
5659 * config.gcc (m68010-*-netbsdelf*, m68k*-*-netbsdelf*)
5660 (m68k*-*-openbsd*, m68k-*-linux*): Set default_cf_cpu.
5661 (m68k-*-aout*, m68k-*-coff*, m68k-*-uclinux*, m68k-*-rtems*): Add
5662 m68k/t-mlib to tmake_file.
5663 (m68020-*-elf*, m68k-*-elf*): Likewise. Add t-m68kbare as well.
5664 (m68k*-*-*): Use --with-arch to pick a default for --with-cpu.
5665 (m680[012]0-*-*, m68k*-*-*): Add support for --with-arch.
5666 Allow it to be cf or m68k. Set m68k_arch_family. If that
5667 variable is not empty, add t-$m68k_arch_family to tmake_file.
5668 Add t-mlibs to tmake_file.
5669 * doc/install.texi: Document --with-arch=m68k and --with-arch=cf.
5670 * config/m68k/t-cf: New file.
5671 * config/m68k/t-m68k: Likewise.
5672 * config/m68k/t-mlibs: Likewise.
5673 * config/m68k/t-m68kbare (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
5674 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
5675 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
5676 * config/m68k/t-m68kelf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
5677 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS, LIBGCC, INSTALL_LIBGCC):
5678 Delete.
5679 * config/m68k/t-openbsd (MULTILIB_OPTIONS, LIBGCC): Delete.
5680 (INSTALL_LIBGCC): Delete.
5681 (M68K_MLIB_DIRNAMES, M68K_MLIB_OPTIONS): Define.
5682 * config/m68k/t-rtems (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
5683 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
5684 (M68K_MLIB_CPU): Define.
5685 * config/m68k/t-uclinux (MULTILIB_OPTIONS, MULTILIB_DIRNAMES)
5686 (MULTILIB_MATCHES, MULTILIB_EXCEPTIONS): Delete.
5687 (M68K_MLIB_CPU, M68K_MLIB_OPTIONS, M68K_MLIB_DIRNAMES): Define.
5688
5689 2007-02-09 Zdenek Dvorak <dvorakz@suse.cz>
5690 Richard Guenther <rguenther@suse.de>
5691
5692 PR middle-end/23361
5693 * fold-const.c (fold_comparison): Handle obfuscated comparisons
5694 against INT_MIN/INT_MAX.
5695 * tree-ssa-loop-ivcanon.c (remove_empty_loop): Print to dump
5696 file if a loop is removed.
5697
5698 2007-02-09 Joseph Myers <joseph@codesourcery.com>
5699
5700 * calls.c (store_one_arg): Pass correct alignment to
5701 emit_push_insn for non-BLKmode values.
5702 * expr.c (emit_push_insn): If STRICT_ALIGNMENT, copy to an
5703 unaligned stack slot via a suitably aligned slot.
5704
5705 2007-02-08 DJ Delorie <dj@redhat.com>
5706
5707 * config/m32c/m32c.c (m32c_unpend_compare): Add default to silence
5708 warnings.
5709 (legal_subregs): Use unsigned char, make const.
5710 (m32c_illegal_subreg_p): Use ARRAY_SIZE. Delete unused variables.
5711
5712 2007-02-08 Paul Brook <paul@codesourcery.com>
5713
5714 * config/arm/lib1funcs.asm (RETLDM): Pop directly into PC when no
5715 special interworking needed.
5716
5717 2007-02-08 Harsha Jagasia <harsha.jagasia@amd.com>
5718
5719 * config/i386/xmmintrin.h: Make inclusion of emmintrin.h
5720 conditional to __SSE2__.
5721 (Entries below should have been added to first ChangeLog
5722 entry for amdfam10 dated 2007-02-05)
5723 * config/i386/emmintrin.h: Generate #error if __SSE2__ is not
5724 defined.
5725 * config/i386/pmmintrin.h: Generate #error if __SSE3__ is not
5726 defined.
5727 * config/i386/tmmintrin.h: Generate #error if __SSSE3__ is not
5728 defined.
5729
5730 2007-02-08 DJ Delorie <dj@redhat.com>
5731
5732 * config/m32c/m32c-protos.h (m32c_illegal_subreg_p): New.
5733 * config/m32c/m32c.c (legal_subregs): New.
5734 (m32c_illegal_subreg_p): New.
5735 * config/m32c/predicates.md (m32c_any_operand): Use it to reject
5736 unsupported subregs of hard regs.
5737
5738 2007-02-08 Jan Hubicka <jh@suse.cz>
5739
5740 * tree-cfg.c (bsi_replace): Shortcut when replacing the statement with
5741 the same one; always update histograms.
5742
5743 2007-02-08 Diego Novillo <dnovillo@redhat.com>
5744
5745 * passes.c (init_optimization_passes): Tidy comment.
5746
5747 2007-02-08 Roger Sayle <roger@eyesopen.com>
5748
5749 * simplify-rtx.c (simplify_unary_operation_1) <POPCOUNT>: We can
5750 strip zero_extend, bswap and rotates from POCOUNT's argument.
5751 <PARITY>: Likewise, we can strip not, bswap, sign_extend,
5752 zero_extend and rotates from PARITY's argument.
5753 <BSWAP>: A byte-swap followed by a byte-swap is an identity.
5754 (simplify_const_unary_operation) <BSWAP>: Evaluate the byte-swap
5755 of an integer constant at compile-time.
5756
5757 2007-02-08 Diego Novillo <dnovillo@redhat.com>
5758
5759 PR 30562
5760 * tree-flow.h (struct var_ann_d): Remove field 'is_used'.
5761 Update all users.
5762 * tree-ssa-alias.c (compute_is_aliased): Remove. Update all
5763 users.
5764 (init_alias_info):
5765 * tree-ssa-live.c (remove_unused_locals): Do not remove
5766 TREE_ADDRESSABLE variables.
5767 * tree-ssa-structalias.c (compute_points_to_sets): Tidy.
5768 * tree-ssa-operands.c (add_virtual_operand): Remove argument
5769 FOR_CLOBBER. Update all users.
5770 If VAR has an associated alias set, add a virtual operand for
5771 it if no alias is found to conflict with the memory reference.
5772
5773 2007-02-07 Jan Hubicka <jh@suse.cz>
5774 Robert Kidd <rkidd@crhc.uiuc.edu>
5775
5776 * value-prof.c (visit_hist, free_hist): Return 1 instead of 0.
5777
5778 2007-02-07 Ian Lance Taylor <iant@google.com>
5779
5780 * lower-subreg.c (simple_move): Reject PARTIAL_INT modes.
5781
5782 2007-02-07 Roger Sayle <roger@eyesopen.com>
5783
5784 * config/rs6000/rs6000.md (ctz<mode>2, ffs<mode>2, popcount<mode>2,
5785 parity<mode>2, smulsi3_highpart, abstf2_internal, allocate_stack,
5786 tablejumpdi, movsi_to_cr_one): Remove constraints from
5787 define_expand's match_operands.
5788
5789 2007-02-07 Roger Sayle <roger@eyesopen.com>
5790
5791 * global.c (compute_regsets): Move declatation of "i" inside of
5792 #ifdef ELIMINABLE_REGS to avoid unused variable bootstrap failure.
5793
5794 2007-02-07 Jakub Jelinek <jakub@redhat.com>
5795
5796 PR c++/30703
5797 * gimplify.c (gimplify_scan_omp_clauses): Remove special casing
5798 of INDIRECT_REF <RESULT_DECL>.
5799
5800 * config/i386/i386.c (override_options): Set PTA_SSSE3 for core2.
5801
5802 2007-02-06 J"orn Rennecke <joern.rennecke@arc.com>
5803 Kaz Kojima <kkojima@gcc.gnu.org>
5804
5805 PR target/29746
5806 * config/sh/sh.c (expand_cbranchdi4): Use scratch register
5807 properly.
5808 (sh_initialize_trampoline): Add parentheses to avoid a warning.
5809
5810 2007-02-06 Zdenek Dvorak <dvorakz@suse.cz>
5811
5812 * doc/loop.texi: Document possibility not to perform disambiguation
5813 of loops with multiple latches.
5814 * cfgloopmanip.c (alp_enum_p): Removed.
5815 (add_loop): Handle subloops. Use get_loop_body_with_size.
5816 (create_preheader): Do not allow ENTRY_BLOCK_PTR to be preheader.
5817 * cfghooks.c (redirect_edge_and_branch_force): Set dominator for
5818 the new forwarder block.
5819 (make_forwarder_block): Only call new_bb_cbk if it is not NULL.
5820 Handle the case latch is NULL.
5821 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Avoid cfg modifications
5822 when marking loop exits.
5823 * ifcvt.c (if_convert): Ditto. Mark loop exits even if cfg cannot
5824 be modified.
5825 * loop-init.c (loop_optimizer_init): Do not modify cfg. Call
5826 disambiguate_loops_with_multiple_latches.
5827 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Calculate dominators
5828 before fix_loop_structure.
5829 * cfgloop.c: Include pointer-set.h and output.h.
5830 (canonicalize_loop_headers, HEADER_BLOCK, LATCH_EDGE,
5831 update_latch_info, mfb_keep_just, mfb_keep_nonlatch): Removed.
5832 (get_loop_latch_edges, find_subloop_latch_edge_by_profile,
5833 find_subloop_latch_edge_by_ivs, find_subloop_latch_edge,
5834 mfb_redirect_edges_in_set, form_subloop, merge_latch_edges,
5835 disambiguate_multiple_latches, get_loop_body_with_size,
5836 disambiguate_loops_with_multiple_latches): New functions.
5837 (flow_loop_dump): Dump multiple latch edges.
5838 (flow_loop_nodes_find): Handle loops with multiple latches.
5839 (flow_loops_find): Ditto. Do not call canonicalize_loop_headers.
5840 (glb_enum_p): Modified.
5841 (get_loop_body): Use get_loop_body_with_size.
5842 * cfgloop.h (LOOPS_HAVE_RECORDED_EXITS): New flag.
5843 (AVOID_CFG_MODIFICATIONS): New constant.
5844 (disambiguate_loops_with_multiple_latches, add_loop,
5845 get_loop_body_with_size): Declare.
5846 * Makefile.in (cfgloop.o): Add pointer-set.h and output.h.
5847
5848 2007-02-06 Seongbae Park <seongbae.park@gmail.com>
5849
5850 PR inline-asm/28686
5851 * global.c (compute_regsets): New function.
5852 (global_alloc): Refactored ELIMINABLE_REGSET
5853 and NO_GLOBAL_ALLOC_REGS computation out.
5854 (rest_of_handle_global_alloc): Call compute_regsets()
5855 for non-optimizing case.
5856
5857 2007-02-06 Richard Henderson <rth@redhat.com>
5858
5859 * config/i386/constraints.md (Y2): Rename from Y.
5860 (Yi): New constraint.
5861 * config/i386/i386.md (movsi_1, movdi_2, pushdf_nointeger,
5862 pushdf_integer, movdf_nointeger, movdf_integer, zero_extendsidi2_32,
5863 zero_extendsidi2_rex64, truncxfdf2_mixed): Change Y constraints to Y2.
5864 (extendsfdf2_mixed, extendsfdf2_sse, truncdfsf_fast_mixed,
5865 truncdfsf_fast_sse, truncdfsf_mixed, fix_truncdfdi_sse,
5866 fix_truncdfsi_sse, floatsidf2_mixed, floatsidf2_sse,
5867 floatdidf2_mixed, floatdidf2_sse, absnegdf2_mixed,
5868 absnegdf2_sse, sse_setccdf, fop_df_comm_mixed, fop_df_comm_sse,
5869 fop_df_1_mixed, fop_df_1_sse): Change Y constraints to x.
5870 * config/i386/mmx.md (mov<MMXMODEI>_internal_rex64,
5871 mov<MMXMODEI>_internal, movv2sf_internal_rex64, movv2sf_internal,
5872 vec_extractv2si_1): Change Y constraints to Y2.
5873 * config/i386/sse.md (vec_setv4sf_0, vec_concatv2df, vec_dupv4si,
5874 vec_dupv2di, sse2_concatv2si, vec_concatv4si_1, vec_concatv2di):
5875 Change Y constraints to Y2.
5876 (sse2_loadld): Change Y constraints to x.
5877
5878 2007-02-06 Roger Sayle <roger@eyesopen.com>
5879
5880 * config/rs6000/rs6000.md (popcount<mode>2): Rewrite.
5881 (parity<mode>2): New define_expand using rs6000_emit_parity.
5882 * config/rs6000/rs6000.c (rs6000_emit_popcount,
5883 rs6000_emit_parity): New functions.
5884 * config/rs6000/rs6000-protos.h (rs6000_emit_popcount,
5885 rs6000_emit_parity): Prototype here.
5886
5887 2007-02-06 Ian Lance Taylor <iant@google.com>
5888
5889 * lower-subreg.c (simple_move_operand): Reject CONST.
5890 (resolve_clobber): Call validate_change rather than directly
5891 assigning to XEXP (pat, 0).
5892
5893 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
5894
5895 * Makefile.in (tree-ssa-loop-ivopts.o): Add pointer-set.h dependency.
5896 (tree-ssa-reassoc.o): Add pointer-set.h dependency.
5897 (tree-cfg.o): Remove hashtab.h dependency.
5898
5899 * tree-ssa-loop-ivopts.c: Include pointer-set.h.
5900 (struct ivopts_data): Change niters to pointer_map_t.
5901 (struct nfe_cache_elt, nfe_hash, nfe_eq): Delete.
5902 (niter_for_exit): Create pointer_map on demand. Change for
5903 pointer_map API.
5904 (tree_ssa_iv_optimize_init): Initialize data->niters to NULL.
5905 (free_loop_data): Destroy data->niters if created and reset field.
5906 (tree_ssa_iv_optimize_finalize): Don't delete data->niters here.
5907 (tree_ssa_iv_optimize_loop): Check for presence of stale data.
5908
5909 * tree-ssa-reassoc.c: Include pointer-set.h.
5910 (bb_rank): Change to long *.
5911 (operand_rank): Change to pointer_map_t.
5912 (find_operand_rank): Return long, -1 if not found. Declare as inline.
5913 (insert_operand_rank): Accept long.
5914 (operand_entry_hash, operand_entry_eq): Remove.
5915 (get_rank): Return long. Adjust for changes above.
5916 (init_reassoc): Change rank type to long. Adjust creation of bb_rank
5917 and operand_rank.
5918 (fini_reassoc): Delete operand_rank with pointer_map_destroy.
5919
5920 * tree-ssa-structalias.c (vi_for_tree): Change to pointer_map.
5921 (struct tree_vi, tree_vi_t, tree_vi_hash, tree_vi_eq): Delete.
5922 (insert_vi_for_tree): Rewrite for pointer_map API. Assert argument
5923 is not NULL.
5924 (lookup_vi_for_tree): Rewrite for pointer_map API. Return varinfo_t
5925 directly since it cannot be NULL.
5926 (get_vi_for_tree): Rewrite for pointer_map API.
5927 (find_what_p_points_to): Adjust for change to lookup_vi_for_tree.
5928 (init_alias_vars): Create vi_for_tree as pointer_map.
5929 (delete_points_to_sets): Delete vi_for_tree using pointer_map_destroy.
5930
5931 * tree-cfg.c: Don't include hashtab.h.
5932 (edge_to_cases): Declare as pointer_map.
5933 (struct edge_to_cases_elt, edge_to_cases_hash, edge_to_cases_eq):
5934 Delete.
5935 (edge_to_cases_cleanup): Rewrite as pointer_map_traverse callback.
5936 (start_recording_case_labels): Create edge_to_cases as pointer_map.
5937 (end_recoding_case_labels): Cleanup edge_to_cases manually before
5938 destroying it.
5939 (record_switch_edge): Delete.
5940 (get_cases_for_edge): Adjust for pointer_map API, inline
5941 record_switch_edge (rewritten for new API), remove goto.
5942
5943 2006-02-06 Paolo Bonzini <bonzini@gnu.org>
5944
5945 * Makefile.in (tree-nested.o): Add pointer-set.h dependency.
5946 * tree-nested.c: Include pointer-set.h.
5947 (var_map_elt, var_map_eq, var_map_hash): Delete.
5948 (struct nesting_info): Remove GTY marker. Change the two htab_t's
5949 to pointer_map_t's.
5950 (nesting_info_bitmap_obstack): New.
5951 (lookup_field_for_decl): Adjust for pointer_map API.
5952 (lookup_tramp_for_decl): Adjust for pointer_map API.
5953 (get_nonlocal_debug_decl): Adjust for pointer_map API.
5954 (get_local_debug_decl): Adjust for pointer_map API.
5955 (convert_nl_goto_reference): Adjust for pointer_map API.
5956 (convert_nl_goto_receiver): Adjust for pointer_map API.
5957 (create_nesting_tree): Create outside GGC space. Create bitmap on
5958 the new obstack. Create field_map and var_map as pointer_maps.
5959 (free_nesting_tree): Adjust for changes to create_nesting_tree.
5960 (root): Delete.
5961 (lower_nested_functions): Move root here, no need to NULL it.
5962 Initialize and release the obstack.
5963
5964 2007-02-06 Paolo Bonzini <bonzini@gnu.org>
5965
5966 * tree.c (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p):
5967 Remove prototypes and make them non-static.
5968 (struct tree_int_map): Remove.
5969 * tree.h (struct tree_int_map): Move here, turning TO into an
5970 unsigned int.
5971 (tree_int_map_hash, tree_int_map_eq, tree_int_map_marked_p): Declare.
5972
5973 * tree.h (TREE_COMPLEXITY): Remove.
5974 (struct tree_exp): Remove complexity field.
5975 * tree.c (build1_stat): Don't set it.
5976
5977 2007-02-06 Dorit Nuzman <dorit@il.ibm.com>
5978 Victor Kaplansky <victork@il.ibm.com>
5979
5980 * tree-vectorizer.c (vect_is_simple_use): Support induction.
5981 (vect_is_simple_reduction): Support reduction with induction as
5982 one of the operands.
5983 (vect_is_simple_iv_evolution): Fix formatting.
5984 * tree-vect-analyze.c (vect_mark_stmts_to_be_vectorized): Fix
5985 formatting. Don't mark induction phis for vectorization.
5986 (vect_analyze_scalar_cycles): Analyze all inductions, then reductions.
5987 * tree-vect-transform.c (get_initial_def_for_induction): New function.
5988 (vect_get_vec_def_for_operand): Support induction.
5989 (vect_get_vec_def_for_stmt_copy): Fix formatting and add check for
5990 induction case.
5991 (vectorizable_reduction): Support reduction with induction as one of
5992 the operands.
5993 (vectorizable_type_demotion): Use def-type of stmt argument rather
5994 than dummy def-type.
5995
5996 * tree-ssa-loop.c (gate_scev_const_prop): Return the value of
5997 flag_tree_scev_cprop.
5998 * common.opt (tree-scev-cprop): New flag.
5999
6000 * tree-vect-transform.c (vect_create_destination_var): Use 'kind' in
6001 call to vect_get_new_vect_var.
6002
6003 2007-02-06 Ira Rosen <irar@il.ibm.com>
6004
6005 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Check that
6006 vectype is not NULL.
6007 (vect_pattern_recog_1): Likewise.
6008
6009 2007-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6010
6011 * fold-const.c (negate_expr_p): Handle CONJ_EXPR.
6012 (fold_negate_expr): Likewise.
6013
6014 2007-02-05 Alexandre Oliva <aoliva@redhat.com>
6015
6016 PR debug/30189
6017 * dwarf2out.c (modified_type_die): Follow DECL_ORIGINAL_TYPE
6018 even if cv-qualification is the same.
6019
6020 2007-02-05 Geoffrey Keating <geoffk@apple.com>
6021
6022 * config/rs6000/darwin-tramp.asm (__trampoline_setup): Call
6023 __enable_execute_stack on completion.
6024
6025 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6026
6027 * config/i386/athlon.md (athlon_fldxf_k8, athlon_fld_k8,
6028 athlon_fstxf_k8, athlon_fst_k8, athlon_fist, athlon_fmov,
6029 athlon_fadd_load, athlon_fadd_load_k8, athlon_fadd, athlon_fmul,
6030 athlon_fmul_load, athlon_fmul_load_k8, athlon_fsgn,
6031 athlon_fdiv_load, athlon_fdiv_load_k8, athlon_fdiv_k8,
6032 athlon_fpspc_load, athlon_fpspc, athlon_fcmov_load,
6033 athlon_fcmov_load_k8, athlon_fcmov_k8, athlon_fcomi_load_k8,
6034 athlon_fcomi, athlon_fcom_load_k8, athlon_fcom): Added amdfam10.
6035
6036 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6037
6038 * config/i386/i386.md (x86_sahf_1, cmpfp_i_mixed, cmpfp_i_sse,
6039 cmpfp_i_i387, cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387,
6040 swapsi, swaphi_1, swapqi_1, swapdi_rex64, fix_truncsfdi_sse,
6041 fix_truncdfdi_sse, fix_truncsfsi_sse, fix_truncdfsi_sse,
6042 x86_fldcw_1, floatsisf2_mixed, floatsisf2_sse, floatdisf2_mixed,
6043 floatdisf2_sse, floatsidf2_mixed, floatsidf2_sse,
6044 floatdidf2_mixed, floatdidf2_sse, muldi3_1_rex64, mulsi3_1,
6045 mulsi3_1_zext, mulhi3_1, mulqi3_1, umulqihi3_1, mulqihi3_insn,
6046 umulditi3_insn, umulsidi3_insn, mulditi3_insn, mulsidi3_insn,
6047 umuldi3_highpart_rex64, umulsi3_highpart_insn,
6048 umulsi3_highpart_zext, smuldi3_highpart_rex64,
6049 smulsi3_highpart_insn, smulsi3_highpart_zext, x86_64_shld,
6050 x86_shld_1, x86_64_shrd, sqrtsf2_mixed, sqrtsf2_sse,
6051 sqrtsf2_i387, sqrtdf2_mixed, sqrtdf2_sse, sqrtdf2_i387,
6052 sqrtextendsfdf2_i387, sqrtxf2, sqrtextendsfxf2_i387,
6053 sqrtextenddfxf2_i387): Added amdfam10_decode.
6054
6055 * config/i386/athlon.md (athlon_idirect_amdfam10,
6056 athlon_ivector_amdfam10, athlon_idirect_load_amdfam10,
6057 athlon_ivector_load_amdfam10, athlon_idirect_both_amdfam10,
6058 athlon_ivector_both_amdfam10, athlon_idirect_store_amdfam10,
6059 athlon_ivector_store_amdfam10): New define_insn_reservation.
6060 (athlon_idirect_loadmov, athlon_idirect_movstore): Added
6061 amdfam10.
6062
6063 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6064
6065 * config/i386/athlon.md (athlon_call_amdfam10,
6066 athlon_pop_amdfam10, athlon_lea_amdfam10): New
6067 define_insn_reservation.
6068 (athlon_branch, athlon_push, athlon_leave_k8, athlon_imul_k8,
6069 athlon_imul_k8_DI, athlon_imul_mem_k8, athlon_imul_mem_k8_DI,
6070 athlon_idiv, athlon_idiv_mem, athlon_str): Added amdfam10.
6071
6072 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6073
6074 * config/i386/athlon.md (athlon_sseld_amdfam10,
6075 athlon_mmxld_amdfam10, athlon_ssest_amdfam10,
6076 athlon_mmxssest_short_amdfam10): New define_insn_reservation.
6077
6078 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6079
6080 * config/i386/athlon.md (athlon_sseins_amdfam10): New
6081 define_insn_reservation.
6082 * config/i386/i386.md (sseins): Added sseins to define_attr type
6083 and define_attr unit.
6084 * config/i386/sse.md: Set type attribute to sseins for insertq
6085 and insertqi.
6086
6087 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6088
6089 * config/i386/athlon.md (sselog_load_amdfam10, sselog_amdfam10,
6090 ssecmpvector_load_amdfam10, ssecmpvector_amdfam10,
6091 ssecomi_load_amdfam10, ssecomi_amdfam10,
6092 sseaddvector_load_amdfam10, sseaddvector_amdfam10): New
6093 define_insn_reservation.
6094 (ssecmp_load_k8, ssecmp, sseadd_load_k8, seadd): Added amdfam10.
6095
6096 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6097
6098 * config/i386/athlon.md (cvtss2sd_load_amdfam10,
6099 cvtss2sd_amdfam10, cvtps2pd_load_amdfam10, cvtps2pd_amdfam10,
6100 cvtsi2sd_load_amdfam10, cvtsi2ss_load_amdfam10,
6101 cvtsi2sd_amdfam10, cvtsi2ss_amdfam10, cvtsd2ss_load_amdfam10,
6102 cvtsd2ss_amdfam10, cvtpd2ps_load_amdfam10, cvtpd2ps_amdfam10,
6103 cvtsX2si_load_amdfam10, cvtsX2si_amdfam10): New
6104 define_insn_reservation.
6105
6106 * config/i386/sse.md (cvtsi2ss, cvtsi2ssq, cvtss2si,
6107 cvtss2siq, cvttss2si, cvttss2siq, cvtsi2sd, cvtsi2sdq,
6108 cvtsd2si, cvtsd2siq, cvttsd2si, cvttsd2siq,
6109 cvtpd2dq, cvttpd2dq, cvtsd2ss, cvtss2sd,
6110 cvtpd2ps, cvtps2pd): Added amdfam10_decode attribute.
6111
6112 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6113
6114 * config/i386/athlon.md (athlon_ssedivvector_amdfam10,
6115 athlon_ssedivvector_load_amdfam10, athlon_ssemulvector_amdfam10,
6116 athlon_ssemulvector_load_amdfam10): New define_insn_reservation.
6117 (athlon_ssediv, athlon_ssediv_load_k8, athlon_ssemul,
6118 athlon_ssemul_load_k8): Added amdfam10.
6119
6120 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6121
6122 * config/i386/i386.h (TARGET_SSE_UNALIGNED_MOVE_OPTIMAL): New macro.
6123 (x86_sse_unaligned_move_optimal): New variable.
6124
6125 * config/i386/i386.c (x86_sse_unaligned_move_optimal): Enable for
6126 m_AMDFAM10.
6127 (ix86_expand_vector_move_misalign): Add code to generate movupd/movups
6128 for unaligned vector SSE double/single precision loads for AMDFAM10.
6129
6130 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6131
6132 * config/i386/i386.h (TARGET_AMDFAM10): New macro.
6133 (TARGET_CPU_CPP_BUILTINS): Add code for amdfam10.
6134 Define TARGET_CPU_DEFAULT_amdfam10.
6135 (TARGET_CPU_DEFAULT_NAMES): Add amdfam10.
6136 (processor_type): Add PROCESSOR_AMDFAM10.
6137
6138 * config/i386/i386.md: Add amdfam10 as a new cpu attribute to match
6139 processor_type in config/i386/i386.h.
6140 Enable imul peepholes for TARGET_AMDFAM10.
6141
6142 * config.gcc: Add support for --with-cpu option for amdfam10.
6143
6144 * config/i386/i386.c (amdfam10_cost): New variable.
6145 (m_AMDFAM10): New macro.
6146 (m_ATHLON_K8_AMDFAM10): New macro.
6147 (x86_use_leave, x86_push_memory, x86_movx, x86_unroll_strlen,
6148 x86_cmove, x86_3dnow_a, x86_deep_branch, x86_use_simode_fiop,
6149 x86_promote_QImode, x86_integer_DFmode_moves,
6150 x86_partial_reg_dependency, x86_memory_mismatch_stall,
6151 x86_accumulate_outgoing_args, x86_arch_always_fancy_math_387,
6152 x86_sse_partial_reg_dependency, x86_sse_typeless_stores,
6153 x86_use_ffreep, x86_use_incdec, x86_four_jump_limit,
6154 x86_schedule, x86_use_bt, x86_cmpxchg16b, x86_pad_returns):
6155 Enable/disable for amdfam10.
6156 (override_options): Add amdfam10_cost to processor_target_table.
6157 Set up PROCESSOR_AMDFAM10 for amdfam10 entry in
6158 processor_alias_table.
6159 (ix86_issue_rate): Add PROCESSOR_AMDFAM10.
6160 (ix86_adjust_cost): Add code for amdfam10.
6161
6162 2007-02-05 Harsha Jagasia <harsha.jagasia@amd.com>
6163
6164 * config/i386/i386.opt: Add new Advanced Bit Manipulation (-mabm)
6165 instruction set feature flag. Add new (-mpopcnt) flag for popcnt
6166 instruction. Add new SSE4A (-msse4a) instruction set feature flag.
6167 * config/i386/i386.h: Add builtin definition for SSE4A.
6168 * config/i386/i386.md: Add support for ABM instructions
6169 (popcnt and lzcnt).
6170 * config/i386/sse.md: Add support for SSE4A instructions
6171 (movntss, movntsd, extrq, insertq).
6172 * config/i386/i386.c: Add support for ABM and SSE4A builtins.
6173 Add -march=amdfam10 flag.
6174 * config/i386/ammintrin.h: Add support for SSE4A intrinsics.
6175 * doc/invoke.texi: Add documentation on flags for sse4a, abm, popcnt
6176 and amdfam10.
6177 * doc/extend.texi: Add documentation for SSE4A builtins.
6178
6179 2007-02-05 Bob Wilson <bob.wilson@acm.org>
6180
6181 * config/xtensa/xtensa.c (constantpool_mem_p): Skip over SUBREGs.
6182
6183 2007-02-05 Richard Guenther <rguenther@suse.de>
6184
6185 * tree-vectorizer.h (vectorizable_function): Add argument type
6186 argument, change return type.
6187 * tree-vect-patterns.c (vect_recog_pow_pattern): Adjust caller.
6188 * tree-vect-transform.c (vectorizable_function): Handle extra
6189 argument, return vectorized function decl.
6190 (build_vectorized_function_call): Remove.
6191 (vectorizable_call): Handle calls with result and argument types
6192 differing. Handle loop vectorization factor correctly.
6193 * targhooks.c (default_builtin_vectorized_function): Adjust for
6194 extra argument.
6195 * targhooks.h (default_builtin_vectorized_function): Likewise.
6196 * target.h (builtin_vectorized_function): Add argument type
6197 argument.
6198 * config/i386/i386.c (ix86_builtin_vectorized_function): Handle
6199 extra argument, allow vectorizing of lrintf.
6200 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Adjust
6201 documentation of target hook.
6202
6203 2007-02-05 Hans-Peter Nilsson <hp@axis.com>
6204
6205 PR target/30665
6206 * config/cris/cris.md ("*andsi_movu", "*andsi_clear", "*andhi_movu")
6207 ("*andhi_clear", andu (casesi+45)): For size-changed operand where
6208 memory is allowed, require !side_effects_p, not just !MEM_VOLATILE_P.
6209
6210 2007-02-05 Roger Sayle <roger@eyesopen.com>
6211
6212 * fold-const.c (fold_unary) <REAL_PART>: Test for availability of
6213 BUILT_IN_COS before simplifying REAL_PART(CEXPI)) to COS.
6214 <IMAG_PART>: Likewise, check for availability of BUILT_IN_SIN.
6215 * builtins.c (fold_builtin_sincos): Check for TARGET_C99_FUNCTIONS
6216 before canonicalizing sincos to cexpi.
6217 (fold_builtin_cexp): Likewise, for canonicalizing cexp to cexpi.
6218
6219 2007-02-05 Roger Sayle <roger@eyesopen.com>
6220
6221 * config/alpha/alpha.c (alpha_add_builtins): New Helper function.
6222 Set TREE_READONLY and TREE_NOTHROW directly, not via attributes.
6223 (alpha_init_builtins): Use alpha_add_builtins to process tables.
6224
6225 2007-02-05 Roger Sayle <roger@eyesopen.com>
6226
6227 * mips-tfile.c (initialize_init_file): Correct endianness test.
6228
6229 2007-02-05 Kazu Hirata <kazu@codesourcery.com>
6230
6231 * config/m68k/m68k.md (pushdi-1, pushdi, movsi+1): Don't use
6232 the 'y' constraint.
6233
6234 2007-02-05 Richard Sandiford <richard@codesourcery.com>
6235
6236 * dwarf2out.c (dwarf2out_frame_debug_expr): Record the register
6237 saves in a PARALLEL before the register assignments.
6238
6239 2007-02-05 Richard Sandiford <richard@codesourcery.com>
6240
6241 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Do not require
6242 DWARF_FRAME_RETURN_COLUMN to be a general register.
6243 * dwarf2out.c (init_return_column_size): New function, split from...
6244 (expand_builtin_init_dwarf_reg_sizes): ...here. Allow both
6245 DWARF_FRAME_RETURN_COLUMN and DWARF_ALT_FRAME_RETURN_COLUMN
6246 to be nongeneral registers.
6247 * config/m68k/m68k.h (DWARF_FRAME_REGNUM): Only map FP and
6248 integer registers.
6249 (DWARF_FRAME_REGISTERS, DWARF_FRAME_RETURN_COLUMN): Define.
6250 (DWARF_ALT_FRAME_RETURN_COLUMN): Define.
6251
6252 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
6253
6254 * cfgcleanup.c (try_optimize_cfg): Avoid removing ENTRY_BLOCK_PTR.
6255
6256 2007-02-04 Zdenek Dvorak <dvorakz@suse.cz>
6257
6258 * cfgloopmanip.c (loop_delete_branch_edge): Removed.
6259 (remove_path): Use can_remove_branch_p and remove_branch instead
6260 of loop_delete_branch_edge.
6261 * tree-ssa-loop-manip.c (scale_dominated_blocks_in_loop): New function.
6262 (tree_transform_and_unroll_loop): Remove dead branches immediately.
6263 Update profile using scale_dominated_blocks_in_loop.
6264 * cfghooks.c (can_remove_branch_p, remove_branch): New functions.
6265 * cfghooks.h (struct cfg_hooks): Add can_remove_branch_p.
6266 (can_remove_branch_p, remove_branch): Declare.
6267 * tree-cfg.c (tree_can_remove_branch_p): New function.
6268 (tree_cfg_hooks): Add tree_can_remove_branch_p.
6269 * cfgrtl.c (rtl_can_remove_branch_p): New function.
6270 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add rtl_can_remove_branch_p.
6271
6272 2007-02-05 Jan Hubicka <jh@suse.cz>
6273
6274 PR middle-end/30696
6275 * ipa-inline.c (cgraph_clone_inlined_nodes): When there are unanalyzed
6276 nodes in cgraph, don't remove offline copy of the function.
6277
6278 2007-02-04 Jan Hubicka <jh@suse.cz>
6279
6280 * tree-sra.c (sra_walk_expr): Add linebreaks. BITFIELD_REFs into
6281 vectors might cause maybe_lookup_element_for_expr to be called
6282 on non-sra-candidate.
6283
6284 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
6285
6286 * config/bfin/bfin-modes.def, config/bfin/bfin.c,
6287 config/bfin/bfin.md, config/bfin/predicates.md: Follow
6288 spelling conventions.
6289
6290 2007-02-04 Richard Guenther <rguenther@suse.de>
6291
6292 PR middle-end/30636
6293 * fold-const.c (try_move_mult_to_index): Make sure to not
6294 overflow one dimension of a multi-dimensional array access.
6295
6296 2007-02-04 Jan Hubicka <jh@suse.cz>
6297
6298 * passes.c (init_optimization_passes): Reindent.
6299
6300 2007-02-04 Jan Hubicka <jh@suse.cz>
6301 Eric Botcazou <ebotcazou@adacore.com>
6302
6303 * tree-optimize.c (has_abnormal_outgoing_edge_p): Move to...
6304 (execute_fixup_cfg): Break out the abnormal goto code.
6305 * tree-inline.c (has_abnormal_outgoing_edge_p): ...here.
6306 (make_nonlocal_label_edges): Move here from execute_fixup_cfg.
6307 (optimize_inline_calls): Call make_nonlocal_label_edges.
6308
6309 2007-02-04 Jan Hubicka <jh@suse.cz>
6310
6311 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Return
6312 true when something was changed.
6313 (rename_ssa_copies): When something was changed, do
6314 TODO_remove_unused_locals.
6315 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
6316 add TODO_remove_unused_locals when instruction was removed.
6317
6318 2007-02-04 Jan Hubicka <jh@suse.cz>
6319
6320 * ipa-inline.c (try_inline): Improve debug output; work on already
6321 inline edges too.
6322 (cgraph_decide_inlining_incrementally): Indent; improve debug output;
6323 call try_inline for already inlined edges too when flattening;
6324 inline also functions that make callee growth but overall unit size
6325 reduce.
6326
6327 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
6328
6329 * config/m32c/bitops.md, config/m32c/jump.md,
6330 config/m32c/m32c.c, config/m32c/m32c.h, config/m32r/m32r.c,
6331 config/m32r/m32r.h, config/m32r/m32r.md,
6332 config/m32r/predicates.md, config/m68hc11/larith.asm,
6333 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
6334 config/m68k/m68k.h, config/mcore/mcore.md, config/mips/4k.md,
6335 config/mips/mips-protos.h, config/mips/mips.c,
6336 config/mips/mips.h, config/mips/mips.md, config/mips/mips16.S,
6337 config/mn10300/mn10300.h, config/mn10300/predicates.md,
6338 config/mt/mt.c, config/mt/mt.h, config/mt/mt.md: Follow
6339 spelling conventions.
6340
6341 * config/v850/v850.c, config/v850/v850.h, config/v850/v850.md:
6342 Follow spelling conventions.
6343
6344 2007-02-03 Douglas Gregor <doug.gregor@gmail.com>
6345
6346 * c-opts.c (c_common_post_options): If C++0x mode is enabled, don't
6347 warn about C++0x compatibility.
6348
6349 2007-02-04 Kazu Hirata <kazu@codesourcery.com>
6350
6351 * config/h8300/h8300.c, config/h8300/h8300.h,
6352 config/h8300/h8300.md: Follow spelling conventions.
6353
6354 2007-02-03 Uros Bizjak <ubizjak@gmail.com>
6355
6356 PR middle-end/30667
6357 * combine.c (try_combine): Do not substitute source operand
6358 with constants wider than 2 * HOST_BITS_PER_WIDE_INT.
6359
6360 2007-02-03 Jan Hubicka <jh@suse.cz>
6361
6362 PR gcov-profile/30650
6363 * value-prof.c (stringop_block_profile): Fix handling of size counter;
6364 do not divide by zero for never executed counters.
6365 (tree_find_values_to_profile): Fix counters.
6366 * gcov-ui.h (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): Fix comments.
6367
6368 2007-02-03 Ian Lance Taylor <iant@google.com>
6369
6370 * lower-subreg.c (simple_move_operand): New static function,
6371 broken out of simple_move. Reject LABEL_REF, SYMBOL_REF, and HIGH
6372 operands.
6373 (simple_move): Call simple_move_operand.
6374 (find_decomposable_subregs): Add special handling of MEMs.
6375 (can_decompose_p): Rename from cannot_decompose_p. Reverse
6376 meaning of return value. If we see a hard register, test whether
6377 it can store a word_mode value. Change all callers.
6378
6379 2007-02-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6380
6381 * pa.md (addvdi3, addvsi3, subvdi3, subvsi3, negvdi2, negvsi2): New
6382 ftrapv insns and expanders.
6383 (subdi3): Change define_expand operand 1 to arith11_operand, and
6384 operand 2 to reg_or_0_operand. Change constraints of 64-bit insn
6385 pattern to handle reg_or_0 operands. Revise 32-bit insn pattern to
6386 handle 11-bit constants and reg_or_0 operands in operands 1 and 2,
6387 respectively.
6388
6389 PR middle-end/30174
6390 * varasm.c (notice_global_symbol): Treat global objects as weak when
6391 flag_shlib is true.
6392
6393 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6394
6395 * emit-rtl.c (dconstpi): Delete.
6396 (dconstsqrt2): New.
6397 (init_emit_once): Delete dconstpi and init dconstsqrt2.
6398 * real.h (dconstpi): Delete.
6399 (dconstsqrt2): New.
6400 * builtins.c (fold_builtin_cabs): Use dconstsqrt2.
6401 (fold_builtin_hypot): Likewise.
6402
6403 2007-02-03 Tom Tromey <tromey@redhat.com>
6404
6405 PR driver/30246
6406 * gcc.c (cpp_unique_options): Any of -ggdb3, -gstabs3,
6407 -gcoff3, -gxcoff3, -gvms3 implies -dD.
6408
6409 2007-02-03 Kazu Hirata <kazu@codesourcery.com>
6410
6411 * c-decl.c, config/avr/avr.c, config/avr/avr.h,
6412 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
6413 config/mn10300/mn10300.c, config/pdp11/pdp11.h,
6414 config/rs6000/cell.md, config/rs6000/darwin.h,
6415 config/sh/sh.md, config/sh/sh4-300.md, config/spu/spu.c,
6416 config/spu/spu.md, cselib.c, expr.c, haifa-sched.c, hwint.h,
6417 jump.c, reload.c, sched-deps.c, sched-int.h, tree-inline.c,
6418 tree-profile.c, tree-ssa-live.h, tree-vrp.c: Fix comment
6419 typos. Follow spelling conventions.
6420 * doc/invoke.texi: Follow spelling conventions.
6421
6422 2007-02-03 Roger Sayle <roger@eyesopen.com>
6423
6424 * simplify-rtx.c (simplify_relational_operation_1): Implement some
6425 canonicalization transformations that attempt to simplify integer
6426 constant comparisons to become comparisons against zero.
6427
6428 2007-02-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6429
6430 * builtins.c (fold_builtin_cabs): Fold cabs(x+xi) into
6431 fabs(x)*sqrt(2).
6432 * fold-const.c (fold_binary): Fix comment typos. Fold complex
6433 (x,0)-(0,y) into (x,-y). Likewise (0,y)-(x,0) into (-x,y).
6434
6435 2007-02-02 Mike Stump <mrs@apple.com>
6436
6437 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Add.
6438 * config/rs6000/rs6000.c (DARWIN_GENERATE_ISLANDS): Add.
6439 (output_call): Use DARWIN_GENERATE_ISLANDS to decide when to
6440 generate a branch island.
6441
6442 2007-02-02 Bob Wilson <bob.wilson@acm.org>
6443
6444 * config/xtensa/xtensa.c (smalloffset_mem_p): Use BASE_REG_P.
6445 (xtensa_legitimate_address_p): New.
6446 (xtensa_legitimize_address): New.
6447 (xtensa_output_addr_const_extra): New.
6448 * config/xtensa/xtensa.h (REG_OK_STRICT_FLAG): Define.
6449 (BASE_REG_P): New.
6450 (REG_OK_FOR_BASE_P): Use BASE_REG_P.
6451 (GO_IF_LEGITIMATE_ADDRESS): Move code to xtensa_legitimate_address_p.
6452 (LEGITIMIZE_ADDRESS): Move code to xtensa_legitimize_address.
6453 (OUTPUT_ADDR_CONST_EXTRA): Move code to xtensa_output_addr_const_extra.
6454 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): New.
6455 (xtensa_legitimize_address): New.
6456 (xtensa_output_addr_const_extra): New.
6457
6458 2007-02-02 Steve Ellcey <sje@cup.hp.com>
6459
6460 * config/ia64/ia64.c (ia64_print_operand): Fix compare strings.
6461
6462 2007-02-02 Ian Lance Taylor <iant@google.com>
6463
6464 * expmed.c (expand_divmod): Add comment.
6465
6466 2007-02-02 Kazu Hirata <kazu@codesourcery.com>
6467
6468 * emit-rtl.c (renumber_insns): Remove.
6469 * flags.h: Remove the extern for flag_renumber_insns.
6470 * rtl.h: Remove the prototype for renumber_insns.
6471 * toplev.c (flag_renumber_insns): Remove.
6472
6473 2007-02-02 Hui-May Chang <hm.chang@apple.com>
6474
6475 Revert for x86 darwin:
6476 2005-06-19 Uros Bizjak <uros@kss-loka.si>
6477
6478 * config/i386/i386.c (ix86_function_arg_regno_p): Put back the
6479 code before the following patch under TARGET_MACHO.
6480 (ix86_function_value_regno_p): Likewise.
6481
6482 2007-02-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6483
6484 * fold-const.c (negate_expr_p, fold_negate_expr): Handle
6485 COMPLEX_EXPR.
6486
6487 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
6488
6489 PR target/29682
6490 * config/ia64/ia64.c (ia64_speculate_insn): Restrict to memory loads to
6491 general or fp registers. Add comments.
6492 * config/ia64/ia64.md (reg_pred_prefix): Add comment.
6493
6494 2007-02-02 Paolo Bonzini <bonzini@gnu.org>
6495
6496 * pointer-set.c (insert_aux): Only return insertion slot.
6497 (pointer_set_insert): Adjust.
6498 (pointer_set_traverse, struct pointer_map_t, pointer_map_create,
6499 pointer_map_destroy, pointer_map_insert, pointer_map_contains,
6500 pointer_map_traverse): New.
6501 * pointer-set.h (pointer_set_traverse, struct pointer_map_t,
6502 pointer_map_create, pointer_map_destroy, pointer_map_insert,
6503 pointer_map_contains, pointer_map_traverse): Declare.
6504
6505 2007-02-02 Jakub Jelinek <jakub@redhat.com>
6506
6507 PR middle-end/30473
6508 * builtins.c (fold_builtin_sprintf): Do not attempt to optimize
6509 sprintf (str, "%s"). Do not optimize sprintf (str, "nopercent", p++).
6510
6511 2007-02-02 Maxim Kuvyrkov <mkuvyrkov@ispras.ru>
6512
6513 * sched-int.h (ds_to_dk, dk_to_ds): Declare functions.
6514
6515 (struct _dep): New type.
6516 (dep_t): New typedef.
6517 (DEP_PRO, DEP_CON, DEP_KIND): New access macros.
6518 (DEP_STATUS): New access macro. The macro with the same name was
6519 renamed to DEP_LINK_STATUS.
6520 (dep_init): Declare function
6521
6522 (struct _dep_link): New type.
6523 (dep_link_t): New typedef.
6524 (DEP_LINK_NODE, DEP_LINK_NEXT, DEP_LINK_PREV_NEXTP): New access macros.
6525 (DEP_LINK_DEP, DEP_LINK_PRO, DEP_LINK_CON, DEP_LINK_KIND): New macros.
6526 (DEP_LINK_STATUS): New macro.
6527 (debug_dep_links): New debug function.
6528
6529 (struct _deps_list): New type.
6530 (deps_list_t): New typedef.
6531 (DEPS_LIST_FIRST): New access macro.
6532 (FOR_EACH_DEP_LINK): New cycle macro.
6533 (create_deps_list, free_deps_list, delete_deps_list): Declare
6534 functions.
6535 (deps_list_empty_p, debug_deps_list, add_back_dep_to_deps_list): Ditto.
6536 (find_link_by_pro_in_deps_list, find_link_by_con_in_deps_list): Ditto.
6537 (copy_deps_list_change_con): Ditto.
6538
6539 (move_dep_link): Declare function.
6540
6541 (struct _dep_node): New type.
6542 (dep_node_t): New typedef.
6543 (DEP_NODE_BACK, DEP_NODE_DEP, DEP_NODE_FORW): New access macros.
6544
6545 (struct haifa_insn_data.back_deps): New field to hold backward
6546 dependencies of the insn.
6547 (struct haifa_insn_data.depend): Rename to forw_deps. Change its type
6548 to deps_list_t.
6549 (struct haifa_insn_data.resolved_deps): Rename to resolved_back_deps.
6550 Change its type to deps_list_t.
6551 (INSN_BACK_DEPS): New access macro to use instead of LOG_LINKS.
6552 (INSN_DEPEND): Rename to INSN_FORW_DEPS.
6553 (RESOLVED_DEPS): Rename to INSN_RESOLVED_BACK_DEPS.
6554
6555 (INSN_COST): Move to haifa-sched.c. Use insn_cost () instead.
6556
6557 (DEP_STATUS): Rename to DEP_LINK_STATUS. Fix typo in the comment.
6558
6559 (add_forw_dep, delete_back_forw_dep, insn_cost): Update declaration and
6560 all callers.
6561 (dep_cost): Declare.
6562
6563 * sched-deps.c (CHECK): New macro to (en/dis)able sanity checks.
6564 (ds_to_dk, dk_to_ds): New functions.
6565
6566 (init_dep_1): New static function.
6567 (init_dep): New function.
6568 (copy_dep): New static function.
6569
6570 (dep_link_consistent_p, attach_dep_link, add_to_deps_list): New static
6571 functions.
6572 (detach_dep_link): New static function.
6573 (move_dep_link): New function.
6574
6575 (dep_links_consistent_p, dump_dep_links): New static functions.
6576 (debug_dep_links): New debugging function.
6577
6578 (deps_obstack, dl_obstack, dn_obstack): New static variables.
6579
6580 (alloc_deps_list, init_deps_list): New static functions.
6581 (create_deps_list): New function.
6582 (clear_deps_list): New static function.
6583 (free_deps_list, delete_deps_list, deps_list_empty_p): New functions.
6584 (deps_list_consistent_p, dump_deps_list): New static functions.
6585 (debug_deps_list): New function.
6586 (add_back_dep_to_deps_list, find_link_by_pro_in_deps_list): New
6587 functions.
6588 (find_link_by_con_in_deps_list, copy_deps_list_change_con): Ditto.
6589
6590 (maybe_add_or_update_back_dep_1, add_or_update_back_dep_1): Update to
6591 use new scheduler dependencies lists.
6592 (add_back_dep, delete_all_dependences, fixup_sched_groups): Ditto.
6593 (sched_analyze): Ditto. Initialize dependencies lists.
6594 (add_forw_dep, compute_forward_dependences): Update to use new
6595 scheduler dependencies lists.
6596
6597 (init_dependency_caches): Init deps_obstack.
6598 (free_dependency_caches): Free deps_obstack.
6599
6600 (adjust_add_sorted_back_dep, adjust_back_add_forw_dep): Update to use
6601 new scheduler dependencies lists.
6602 (delete_forw_dep, add_or_update_back_forw_dep): Ditto.
6603 (add_back_forw_dep, delete_back_forw_dep): Ditto.
6604
6605 * sched-rgn.c (set_spec_fed, find_conditional_protection, is_pfree):
6606 Update to use new scheduler dependencies lists.
6607 (is_conditionally_protected, is_prisky, add_branch_dependences): Ditto.
6608 (debug_dependencies): Ditto.
6609 (schedule_region): Update comments.
6610
6611 * sched-ebb.c (earliest_block_with_similiar_load): Update to use new
6612 scheduler dependencies lists.
6613 (schedule_ebb): Update comments.
6614
6615 * rtl.def (DEPS_LIST): Remove.
6616
6617 * lists.c (unused_deps_list): Remove.
6618 (free_list): Update assertions.
6619
6620 (alloc_DEPS_LIST, free_DEPS_LIST_list, free_DEPS_LIST_node): Remove.
6621 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
6622
6623 * rtl.h (free_DEPS_LIST_list, alloc_DEPS_LIST): Remove declarations.
6624 (remove_free_DEPS_LIST_elem, copy_DEPS_LIST_list): Ditto.
6625
6626 * haifa-sched.c (comments): Update.
6627 (insn_cost1): Remove. Inline the code into insn_cost ().
6628 (insn_cost): Update to use new scheduler dependencies lists. Move
6629 processing of the dependency cost to dep_cost ().
6630 (dep_cost): New function. Use it instead of insn_cost () when
6631 evaluating cost of the dependency. Use compatible interface to
6632 interact with the target.
6633 (priority): Update to use new scheduler dependencies lists.
6634 (rank_for_schedule): Ditto. Optimize heuristic that prefers the insn
6635 with greater number of insns that depend on the insn.
6636 (schedule_insn): Update to use new scheduler dependencies lists. Add
6637 code to free backward dependencies lists. Inline and optimize code
6638 from resolve_dep () - see PR28071.
6639 (ok_for_early_queue_removal): Update to use new scheduler dependencies
6640 lists. Update call to targetm.sched.is_costly_dependence hook.
6641
6642 (fix_inter_tick, try_ready, fix_tick_ready): Update to use new
6643 scheduler dependencies lists.
6644
6645 (resolve_dep): Remove. Move the logic to schedule_insn ().
6646 (init_h_i_d): Initialize dependencies lists.
6647
6648 (process_insn_depend_be_in_spec): Rename to
6649 process_insn_forw_deps_be_in_spec. Update to use new scheduler
6650 dependencies lists.
6651 (add_to_speculative_block, create_check_block_twin, fix_recovery_deps):
6652 Update to use new scheduler dependencies lists.
6653 (clear_priorities, calc_priorities, add_jump_dependencies): Ditto.
6654
6655 * ddg.c (create_ddg_dependence, create_ddg_dep_no_link): Update to use
6656 new scheduler dependencies lists.
6657 (build_intra_loop_deps): Ditto.
6658
6659 * target.h (struct _dep): Declare to use in
6660 gcc_target.sched.is_costly_dependence.
6661 (struct gcc_target.sched.adjust_cost): Fix typo.
6662 (struct gcc_target.sched.is_costly_dependence): Change signature to use
6663 single dep_t parameter instead of an equivalent triad.
6664 (struct gcc_target.sched.adjust_cost_2): Remove.
6665
6666 * target-def.h (TARGET_SCHED_ADJUST_COST_2): Remove.
6667
6668 * reg-notes.def (DEP_TRUE, DEP_OUTPUT, DEP_ANTI): Update comments.
6669
6670 * doc/tm.texi (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Update
6671 documentation.
6672 (TARGET_SCHED_ADJUST_COST_2): Remove documentation.
6673
6674 * doc/rtl.texi (LOG_LINKS): Remove part about instruction scheduler.
6675 (REG_DEP_TRUE): Document.
6676
6677 * config/ia64/ia64.c (ia64_adjust_cost_2): Rename to ia64_adjust_cost.
6678 Change signature to correspond to the targetm.sched.adjust_cost hook.
6679 Update use in TARGET_SCHED_ADJUST_COST_2.
6680 (TARGET_SCHED_ADJUST_COST_2): Rename to TARGET_SCHED_ADJUST_COST.
6681 (ia64_dependencies_evaluation_hook, ia64_dfa_new_cycle): Update to use
6682 new scheduler dependencies lists.
6683 (ia64_gen_check): Ditto.
6684
6685 * config/mips/mips.c (vr4130_swap_insns_p): Update to use new scheduler
6686 dependencies lists.
6687
6688 * config/rs6000/rs6000.c (rs6000_is_costly_dependence): Change
6689 signature to correspond to the targetm.sched.is_costly_dependence hook.
6690 (is_costly_group): Update to use new scheduler dependencies lists.
6691
6692 * config/spu/spu.c (spu_sched_adjust_cost): Use insn_cost () function
6693 instead of INSN_COST () macro.
6694
6695 2007-02-01 Ian Lance Taylor <iant@google.com>
6696
6697 * lower-subreg.c (resolve_clobber): Handle a subreg of a concatn.
6698
6699 2007-02-01 Guy Martin <gmsoft@gentoo.org>
6700
6701 * pa.md (tp_load): Correct mfctl instruction syntax.
6702
6703 2007-02-01 Geoffrey Keating <geoffk@apple.com>
6704
6705 * config/rs6000/rs6000.c (rs6000_stack_info): Correct
6706 altivec_padding_size calculation on AIX. Improve comment, add
6707 assert to verify that it's right.
6708
6709 * config/rs6000/darwin.h (MD_UNWIND_SUPPORT): Don't define for
6710 64-bit.
6711
6712 2007-2-01 Seongbae Park <seongbae.park@gmail.com>
6713
6714 PR inline-asm/28686
6715 * global.c (global_alloc): Add mising initialization of
6716 ELIMINABLE_REGSET.
6717
6718 2007-02-01 Roger Sayle <roger@eyesopen.com>
6719
6720 * alias.c (init_alias_analysis): Correct whitespace.
6721 * bb-reorder.c (fix_edges_for_rarely_executed_code,
6722 partition_hot_cold_basic_blocks): Likewise.
6723 * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
6724 expand_builtin_sprintf, fold_builtin_carg, fold_builtin_sprintf,
6725 maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
6726 fold_builtin_snprintf_chk, fold_builtin_printf,
6727 fold_builtin_fprintf, do_mpfr_ckconv, do_mpfr_arg1, do_mpfr_arg2,
6728 do_mpfr_arg3, do_mpfr_sincos): Likewise.
6729 * cfgcleanup.c (cleanup_cfg): Likewise.
6730 * cfgexpand.c (tree_expand_cfg): Likewise.
6731 * fold-const.c (fold_binary) <RDIV_EXPR>: Likewise.
6732 * function.c (get_next_funcdef_no): Likewise.
6733 * gengtype.c (main): Likewise.
6734 * genmodes.c (main): Likewise.
6735 * gcse.c (bypass_conditional_jumps, print_ldst_list): Likewise.
6736 * haifa-sched.c (schedule_block, extend_h_i_d): Likewise.
6737 * ifcvt.c (noce_emit_move_insn): Likewise.
6738 * modulo-sched.c (generate_prolog_epilog, sms_schedule_by_order):
6739 Likewise.
6740 * stor-layout.c (get_best_mode): Likewise.
6741 * tree-ssa-loop-niter.c (get_val_for): Likewise.
6742 * tree-ssa-structalias.c (get_varinfo, get_varinfo_fc,
6743 scc_visit, do_ds_constraint, do_complex_constraint, label_visit,
6744 perform_var_substitution, solve_graph): Likewise.
6745 * tree-vrp.c (vrp_finalize): Likewise.
6746
6747 2007-02-01 Ian Lance Taylor <iant@google.com>
6748
6749 * lower-subreg.c (simplify_gen_subreg_concatn): If we ask for the
6750 high part of a paradoxical subreg, return a constant zero.
6751
6752 2007-02-01 Zdenek Dvorak <dvorakz@suse.cz>
6753
6754 * toplev.c (lang_dependent_init): Call init_set_costs.
6755 * loop-init.c (loop_optimizer_init): Do not call init_set_costs.
6756
6757 2007-02-01 Richard Guenther <rguenther@suse.de>
6758
6759 PR middle-end/30656
6760 * fold-const.c (fold_negate_expr): Allow negating a
6761 constant if overflow does not change.
6762
6763 2007-02-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6764
6765 * doc/c-tree.texi (Expression trees): Improve markup.
6766 * doc/tm.texi (Register Classes, Addressing Modes)
6767 (Floating Point): Fix spacing after abbreviations. Fix some
6768 typos.
6769
6770 2007-02-01 Ben Elliston <bje@au.ibm.com>
6771
6772 * doc/invoke.texi: Replace "bugfix" with "bug fix" throughout.
6773 * doc/contrib.texi: Likewise.
6774 * doc/install.texi: Likewise.
6775
6776 2007-01-31 Richard Henderson <rth@redhat.com>
6777 Ian Lance Taylor <iant@google.com>
6778
6779 * lower-subreg.c: New file.
6780 * rtl.def (CONCATN): Define.
6781 * passes.c (init_optimization_passes): Add pass_lower_subreg and
6782 pass_lower_subreg2.
6783 * emit-rtl.c (update_reg_offset): New static function, broken out
6784 of gen_rtx_REG_offset.
6785 (gen_rtx_REG_offset): Call update_reg_offset.
6786 (gen_reg_rtx_offset): New function.
6787 * regclass.c: Revert patch of 2006-03-05, restoring
6788 reg_scan_update.
6789 (clear_reg_info_regno): New function.
6790 * dwarf2out.c (concatn_loc_descriptor): New static function.
6791 (loc_descriptor): Handle CONCATN.
6792 * common.opt (fsplit_wide_types): New option.
6793 * opts.c (decode_options): Set flag_split_wide_types when
6794 optimizing.
6795 * timevar.def (TV_LOWER_SUBREG): Define.
6796 * rtl.h (gen_reg_rtx_offset): Declare.
6797 (reg_scan_update): Declare.
6798 * regs.h (clear_reg_info_regno): Declare.
6799 * tree-pass.h (pass_lower_subreg): Declare.
6800 (pass_lower_subreg2): Declare.
6801 * doc/invoke.texi (Option Summary): List -fno-split-wide-types.
6802 (Optimize Options): Add -fsplit-wide-types to -O1 list. Document
6803 -fsplit-wide-types.
6804 * doc/rtl.texi (Regs and Memory): Document concat and concatn.
6805 * Makefile.in (OBJS-common): Add lower-subreg.o.
6806 (lower-subreg.o): New target.
6807
6808 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
6809
6810 * config/sh/sh.h (HAVE_SECONDARY_RELOADS): Remove.
6811
6812 2007-01-31 Anatoly Sokolov <aesok@post.ru>
6813
6814 PR target/19087
6815 * config/avr/avr.c (DWARF2_ADDR_SIZE): Define.
6816
6817 2007-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6818
6819 PR middle-end/29335
6820 * builtins.c (fold_builtin_sqrt): Use MPFR for constant args.
6821
6822 2007-01-31 Zdenek Dvorak <dvorakz@suse.cz>
6823
6824 * cfgloop.h: Include vec-prim.h.
6825 (enum li_flags): Remove LI_ONLY_OLD.
6826 (loop_iterator): Changed.
6827 (fel_next, fel_init): Iterate over loop tree.
6828 (FOR_EACH_LOOP_BREAK): New macro.
6829 * loop-unswitch.c (unswitch_loops): Do not pass LI_ONLY_OLD to
6830 FOR_EACH_LOOP.
6831 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Ditto.
6832 * modulo-sched.c (sms_schedule): Ditto.
6833 * tree-vectorizer.c (vectorize_loops): Ditto.
6834 * doc/loop.texi: Update information on loop numbering and behavior of
6835 FOR_EACH_LOOP wrto new loops.
6836 * tree-scalar-evolution.c (compute_overall_effect_of_inner_loop,
6837 add_to_evolution_1): Test nestedness of loops instead of comparing
6838 their numbers.
6839 * tree-chrec.c (chrec_fold_plus_poly_poly,
6840 chrec_fold_multiply_poly_poly, chrec_evaluate,
6841 hide_evolution_in_other_loops_than_loop, chrec_component_in_loop_num,
6842 reset_evolution_in_loop): Ditto.
6843 * Makefile.in (CFGLOOP_H): Add vecprim.h dependency.
6844
6845 2007-01-31 Dirk Mueller <dmueller@suse.de>
6846
6847 * c-common.c (warn_about_parentheses): Separate warning about
6848 un-parenthized sequence of comparison operators from the one
6849 which is supposed to warn about x <= y <= z.
6850
6851 2007-01-31 Uros Bizjak <ubizjak@gmail.com>
6852
6853 * optabs.h (enum optab_index): Add new OTI_isinf.
6854 (isinf_optab): Define corresponding macro.
6855 * optabs.c (init_optabs): Initialize isinf_optab.
6856 * genopinit.c (optabs): Implement isinf_optab using isinf?f2
6857 patterns.
6858 * builtins.c (mathfn_built_in): Handle BUILT_IN_ISINF{,F,L}.
6859 (expand_builtin_interclass_mathfn): Expand BUILT_IN_ISINF{,F,L}
6860 using isinf_optab.
6861 (expand_builtin): Expand BUILT_IN_ISINF{,F,L} using
6862 expand_builtin_interclass_mathfn.
6863 * reg_stack.c (subst_stack_regs_pat): Handle UNSPEC_FXAM.
6864 * config/i386/i386.md (UNSPEC_FXAM): New constant.
6865 (fxam<mode>2_i387): New insn pattern.
6866 (isinf<mode>2) New expander to implement isinf, isinff and isinfl
6867 built-in functions as x87 inline asm.
6868
6869 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
6870
6871 * gcc/config/arm/unwind-arm.h (_sleb128_t, _uleb128_t): New.
6872
6873 2007-01-30 Eric Christopher <echristo@apple.com>
6874
6875 * config.gcc: Add geode.
6876
6877 2007-01-31 Kazu Hirata <kazu@codesourcery.com>
6878
6879 * cgraphunit.c, config/arm/arm.c, config/m68k/m68k.c,
6880 ipa-inline.c, tree-profile.c, tree-ssa-live.c,
6881 tree-ssa-math-opts.c, tree-ssanames.c, tree-vect-analyze.c,
6882 value-prof.c: Fix comment typos.
6883
6884 2007-01-30 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6885
6886 PR c++/24745
6887 * doc/invoke.texi (Wpointer-arith): Document warning.
6888
6889 2007-01-30 Janis Johnson <janis187@us.ibm.com>
6890
6891 * doc/extend.texi (Decimal Floating Types): Remove decfloat.h from
6892 the list of discrepancies from the draft TR.
6893
6894 2007-01-30 Dirk Mueller <dmueller@suse.de>
6895
6896 PR c++/30601
6897 * doc/invoke.texi (-Wreturn-type): Update description to
6898 match new behavior.
6899
6900 2007-01-30 Richard Sandiford <richard@codesourcery.com>
6901
6902 * cfgrtl.c (try_redirect_by_replacing_jump): Check only_sets_cc0_p.
6903
6904 2007-01-30 Uros Bizjak <ubizjak@gmail.com>
6905
6906 * builtins.c (expand_builtin_int_interclass_roundingfn): New function
6907 to handle optabs that operate on floating point input argument and
6908 output to integer output.
6909 (expand_builtin_mathfn) [BUILT_IN_ILOGB]: Move from here ...
6910 (expand_builtin_interclass_mathfn) [BUILT_IN_ILOGB]: ... to here.
6911 (expand_builtin): Expand BUILT_IN_ILOGB{,F,L} using
6912 expand_builtin_interclass_mathfn ().
6913 * config/i386/i386.md (fxtractxf3_i387): Rename from *fxtractxf3_i387.
6914 (ilogbsi2): Remove.
6915 (ilogbxf2, ilogb<mode>2): New expanders to implement ilogb, ilogbf and
6916 ilogbl built-in functions as x87 intrinsics.
6917
6918 2007-01-30 Richard Guenther <rguenther@suse.de>
6919
6920 PR middle-end/27657
6921 * dwarf2out.c (reference_to_unused): Query varpool if the
6922 variable was output.
6923
6924 2007-01-30 Richard Guenther <rguenther@suse.de>
6925
6926 PR middle-end/30313
6927 * passes.c (execute_one_pass): Reset in_gimple_form to not
6928 confuse non-unit-at-a-time mode.
6929
6930 2007-01-29 Roger Sayle <roger@eyesopen.com>
6931 Richard Guenther <rguenther@suse.de>
6932
6933 * fold-const.c (round_up): Make HIGH an unsigned HOST_WIDE_INT to
6934 avoid undefined behaviour on overflow. Use force_fit_type_double
6935 to construct the constant with the specified TREE_OVERFLOW.
6936
6937 2007-01-29 Janis Johnson <janis187@us.ibm.com>
6938
6939 * config/dfp-bit.c: Add parameterized support for fp exceptions.
6940 * config/dfp-bit.h: Ditto.
6941
6942 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6943
6944 * c-decl.c (pop_scope): Replace warnings with call to
6945 warn_for_unused_label.
6946 * c-common.h (warn_for_unused_label): Declare.
6947 * c-common.c (warn_for_unused_label): Define.
6948
6949 2007-01-29 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
6950
6951 * tree-optimize.c (update_inlined_to_pointers): Delete unused
6952 function.
6953
6954 2007-01-29 Janis Johnson <janis187@us.ibm.com>
6955
6956 * Makefile.in (USER_H): Remove decfloat.h.
6957 * ginclude/decfloat.h: Delete, moving contents to ...
6958 * ginclude/float.h: Add support for decimal floating point,
6959 guarded by __STDC_WANT_DEC_FP__.
6960
6961 2007-01-29 Mike Stump <mrs@apple.com>
6962
6963 * doc/gccint.texi (Top): Rename Loop Representation to Loop
6964 Analysis and Representation to resolve case insensitive conflict.
6965 * doc/loop.texi (Loop Analysis and Representation): Likewise.
6966
6967 2007-01-28 Daniel Berlin <dberlin@dberlin.org>
6968
6969 * tree.h (struct tree_memory_tag): Add aliases member.
6970 (MTAG_ALIASES): New macro.
6971 * tree-ssa-alias.c (alias_bitmap_obstack): New variable.
6972 (add_may_alias): Remove pointer-set. Update for may_aliases being
6973 a bitmap.
6974 (mark_aliases_call_clobbered): Update for may_aliases being a
6975 bitmap.
6976 (compute_tag_properties): Ditto.
6977 (create_partition_for): Ditto.
6978 (compute_memory_partitions): Ditto.
6979 (dump_may_aliases_for): Ditto.
6980 (is_aliased_with): Ditto.
6981 (add_may_alias_for_new_tag): Ditto.
6982 (rewrite_alias_set_for): Rewrite for may_aliases being a bitmap.
6983 (compute_is_aliased): New function.
6984 (compute_may_aliases): Call compute_is_aliased).
6985 (init_alias_info): Initialize alias_bitmap_obstack.
6986 (union_alias_set_into): New function.
6987 (compute_flow_sensitive_aliasing): Use union_aliases_into.
6988 (have_common_aliases_p): Rewrite to take two bitmaps and use
6989 intersection.
6990 (compute_flow_insensitive_aliasing): Stop using pointer-sets.
6991 Update for bitmaps.
6992 (finalize_ref_all_pointers): Update for add_may_alias changes.
6993 (new_type_alias): Ditto.
6994 * tree-flow-inline.h (may_aliases): Return a bitmap.
6995 * tree-dfa.c (dump_variable): Check for MTAG_P'ness.
6996 * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
6997 may_aliases being a bitmap.
6998 * tree-flow.h (struct var_ann_d): Remove may_aliases member.
6999 may_aliases now returns a bitmap.
7000 * tree-ssa-structalias.c (merge_smts_into): Update for may_aliases
7001 being a bitmap.
7002 * tree-ssa-operands.c (add_virtual_operand): Update for
7003 may_aliases being a bitmap.
7004
7005 2007-01-29 Daniel Berlin <dberlin@dberlin.org>
7006
7007 PR tree-optimization/30630
7008 * tree-ssa-structalias.c (do_complex_constraint): Mark correct
7009 variable as changed.
7010
7011 2007-01-29 Simon Martin <simartin@users.sourceforge.net>
7012
7013 PR c++/28266
7014 * gimplify.c (gimplify_target_expr): Make sure that the TARGET_EXPR is
7015 expanded only once even if an error occurs.
7016
7017 2007-01-29 Ben Elliston <bje@au.ibm.com>
7018
7019 * gcov-io.h (__gcov_indirect_call_profiler): Declare.
7020 (__gcov_average_profiler): Likewise.
7021 (__gcov_ior_profiler): Likewise.
7022 (__gcov_merge_ior): Likewise.
7023
7024 2007-01-28 Jan Hubicka <jh@suse.cz>
7025
7026 * builtins.c (expand_builtin_memset): Fix typo in my last patch.
7027 * value-prof.c (stringop_block_profile): Likewise.
7028
7029 2007-01-28 Jan Hubicka <jh@suse.cz>
7030
7031 * expr.c (emit_block_move_via_movmem, emit_block_move_via_libcall): Add
7032 variant handling histograms; add wrapper.
7033 (clear_storage_via_libcall): Export.
7034 (emit_block_move_hints): Break out from ...; add histograms.
7035 (emit_block_move): ... this one.
7036 (clear_storage_hints): Break out from ...; add histograms.
7037 (clear_storage): ... this one.
7038 (set_storage_via_memset): Handle histogram.
7039 * expr.h (emit_block_move_via_libcall, emit_block_move_hints): Declare.
7040 (clear_storage_hints, clear_storage_via_libcall): Declare.
7041 (set_storage_via_setmem): Update prototype.
7042 * doc/md.texi (movmem, setmem): Document new arguments.
7043
7044 * value-prof.c (dump_histogram_value, tree_find_values_to_profile): Add
7045 new histograms.
7046 (stringop_block_profile): New global function.
7047 (tree_stringops_values_to_profile): Profile block size and alignment.
7048 * value-prof.h (enum hist_type): add HIST_TYPE_AVERAGE and
7049 HIST_TYPE_IOR.
7050 (struct profile_hooks): Add gen_average_profiler and gen_ior_profiler.
7051 (stringop_block_profile): Declare.
7052 * builtins.c: Include value-prof.h.
7053 (expand_builtin_memcpy, expand_builtin_memset): Pass block profile.
7054 * gcov-ui.h (GCOV_COUNTER_NAMES): Add new counter.
7055 (GCOV_COUNTER_AVERAGE, GCOV_COUNTER_IOR): New constants.
7056 (GCOV_COUNTERS, GCOV_LAST_VALUE_COUNTER): Update.
7057 * profile.c (instrument_values): Add new counters.
7058 * cfgexpand.c (expand_gimple_basic_block): Propagate histograms to
7059 calls.
7060 * tree-profile.c (tree_average_profiler_fn, tree_ior_profiler_fn): New.
7061 (tree_init_edge_profiler): Build new profilers.
7062 (tree_gen_average_profiler, tree_gen_ior_profiler): New.
7063 (pass_tree_profile): Add dump.
7064 (tree_profile_hooks): Update.
7065 * Makefile.in (LIBGCOV): Add new constants.
7066 * libgcov.c (__gcov_merge_ior, __gcov_average_profiler,
7067 __gcov_ior_profiler): New.
7068 * i386.md (movmem/setmem expanders): Add new optional arguments.
7069
7070 2007-01-28 David Edelsohn <edelsohn@gnu.org>
7071
7072 * doc/md.texi (Standard Pattern Names): Document blockage pattern.
7073
7074 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
7075
7076 * tree-ssa-loop-unswitch.c: Include tree-inline.h.
7077 (tree_unswitch_single_loop): Pass eni_size_weights to
7078 tree_num_loop_insns.
7079 * tree-ssa-loop-manip.c: Include tree-inline.h.
7080 (can_unroll_loop_p): Pass eni_size_weights to
7081 tree_num_loop_insns.
7082 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p):
7083 Pass eni_size_weights to estimate_num_insns.
7084 * tree.h (init_inline_once): Export.
7085 * toplev.c (backend_init): Call init_inline_once.
7086 * cgraphunit.c (cgraph_process_new_functions,
7087 cgraph_analyze_function): Pass eni_inlining_weights to
7088 estimate_num_insns.
7089 * ipa-inline.c (compute_inline_parameters): Ditto.
7090 * tree-ssa-loop-ivcanon.c (tree_num_loop_insns): Pass weights
7091 to estimate_num_insns.
7092 (try_unroll_loop_completely): Pass eni_size_weights to
7093 tree_num_loop_insns.
7094 * tree-eh.c (decide_copy_try_finally): Pass eni_size_weights
7095 ot estimate_num_insns.
7096 * tree-ssa-loop-prefetch.c: Include tree-inline.h.
7097 (loop_prefetch_arrays): Pass eni_time_weights to tree_num_loop_insns.
7098 * tree-inline.c (eni_inlining_weights, eni_size_weights,
7099 eni_time_weights): New variables.
7100 (init_inline_once): Initialize them.
7101 (struct eni_data): Mew.
7102 (estimate_num_insns_1, estimate_num_insns): Use weights.
7103 * tree-inline.h (struct eni_weights_d): New.
7104 (eni_inlining_weights, eni_size_weights, eni_time_weights): Declare.
7105 (estimate_num_insns): Declaration changed.
7106 * cfgloop.h (tree_num_loop_insns): Declaration changed.
7107 * Makefile.in (tree-ssa-loop-unswitch.o, tree-ssa-loop-prefetch.o,
7108 tree-ssa-loop-manip.o): Add TREE_INLINE_H dependency.
7109
7110 2007-01-28 Zdenek Dvorak <dvorakz@suse.cz>
7111
7112 * tree-data-ref.c (conflict_fn): Assert that the number of affine
7113 relations in the conflict function is valid.
7114
7115 2007-01-27 Ian Lance Taylor <iant@google.com>
7116
7117 * common.opt: Add fstrict-overflow.
7118 * opts.c (decode_options): Set flag_strict_overflow if -O2.
7119 * flags.h (TYPE_OVERFLOW_WRAPS): Define.
7120 (TYPE_OVERFLOW_UNDEFINED): Define.
7121 (TYPE_OVERFLOW_TRAPS): Define. This replaces TYPE_TRAP_SIGNED.
7122 Replace all uses.
7123 * tree.h (TYPE_TRAP_SIGNED): Don't define.
7124 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_UNDEFINED.
7125 (fold_negate_expr): Likewise.
7126 (make_range): Likewise.
7127 (extract_muldiv_1): Likewise.
7128 (maybe_canonicalize_comparison): Likewise.
7129 (fold_comparison): Likewise.
7130 (fold_binary): Likewise.
7131 (tree_expr_nonnegative_p): Likewise.
7132 (tree_expr_nonzero_p): Likewise.
7133 * tree-vrp.c (compare_values): Likewise.
7134 (extract_range_from_binary_expr): Likewise.
7135 (extract_range_from_unary_expr): Likewise.
7136 * tree-ssa-loop-niter.c (infer_loop_bounds_from_signedness):
7137 Likewise.
7138 (nowrap_type_p): Likewise.
7139 * tree-scalar-evolution.c (simple_iv): Likewise.
7140 * fold-const.c (negate_expr_p): Use TYPE_OVERFLOW_WRAPS.
7141 (build_range_check): Likewise.
7142 (extract_muldiv_1): Likewise.
7143 (fold_comparison): Likewise.
7144 * tree-vrp.c (vrp_int_const_binop): Likewise.
7145 (extract_range_from_unary_expr): Likewise.
7146 * convert.c (convert_to_integer): Likewise.
7147 * fold-const.c (fold_negate_expr): Use TYPE_OVERFLOW_TRAPS.
7148 (fold_comparison): Likewise.
7149 (fold_binary): Likewise.
7150 * optabs.c (optab_for_tree_code): Likewise.
7151 * tree-vectorizer.c (vect_is_simple_reduction): Likewise.
7152 * simplify-rtx.c (simplify_const_relational_operation): Check
7153 flag_strict_overflow and flag_trapv.
7154 (simplify_const_relational_operation): Likewise.
7155 * doc/invoke.texi (Option Summary): Mention -fstrict-overflow.
7156 (Optimize Options): Add -fstrict-overflow to -O2 list. Document
7157 -fstrict-overflow.
7158
7159 2007-01-27 Roger Sayle <roger@eyesopen.com>
7160
7161 * tree.c (tree_fold_gcd): Delete.
7162 * tree.h (tree_fold_gcd): Remove prototype.
7163 * tree-data-ref.c (tree_fold_divides_p): Don't use tree_fold_gcd to
7164 test whether one constant integer is a multiple of another. Instead
7165 call int_const_binop with TRUNC_MOD_EXPR and test for a zero result.
7166 * fold-const.c (multiple_of_p): We've determined both TOP and
7167 BOTTOM are integer constants so we can call int_const_binop directly
7168 instead of the more generic const_binop.
7169
7170 2007-01-27 Roger Sayle <roger@eyesopen.com>
7171
7172 * fold-const.c (size_binop): In the fast-paths for X+0, 0+X, X-0 and
7173 1*X check that the constant hasn't overflowed, to preserve the
7174 TREE_OVERFLOW bit.
7175 (round_up): Provide an efficient implementation when rouding-up an
7176 INTEGER_CST to a power-of-two.
7177
7178 2007-01-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7179
7180 * doc/sourcebuild.texi: Add comma for clarity.
7181 * doc/extend.texi: Fix some typos.
7182 * doc/passes.texi: Likewise.
7183 * doc/cppinternals.texi: Likewise.
7184 * doc/c-tree.texi: Likewise.
7185 * doc/tree-ssa.texi: Likewise.
7186 * doc/install.texi: Likewise.
7187
7188 2007-01-27 Jan Hubicka <jh@suse.cz>
7189
7190 * tree-sra.c (sra_walk_function): Don't rely on aliases being build.
7191 (pass_sra): Do not require alias information.
7192 * passes.c (init_optimization_passes): Add SRA
7193
7194 2007-01-27 Steven Bosscher <steven@gcc.gnu.org>
7195
7196 * tracer.c (rest_of_handle_tracer): We already cleaned
7197 up the CFG in tracer() so don't do it here again.
7198 * cfgcleanup.c (rest_of_handle_jump2): Don't repeat
7199 cleanup_cfg here, either. And don't call renumber_insns.
7200
7201 * cfgrtl.c (rtl_verify_flow_info_1): Don't verify that BB_END
7202 and BB_HEAD are in the insn stream here. Instead make sure
7203 that BB_INSN is valid on all insns. Also, do check here that
7204 there are no pending branch predictions...
7205 (rtl_verify_flow_info): ...instead of doing it here. Checks
7206 for BB_END and BB_HEAD moved from rtl_verify_flow_info_1 to
7207 here.
7208
7209 2007-01-26 Roger Sayle <roger@eyesopen.com>
7210
7211 * config/i386/i386.c (ix86_swap_binary_operands_p): New helper
7212 function to simplify/factorize operand order canonicalization.
7213 (ix86_fixup_binary_operands): Reorganize using the above function.
7214 (ix86_binary_operator_ok): Likewise.
7215
7216 2007-01-27 Jakub Jelinek <jakub@redhat.com>
7217
7218 * genattrtab.c (struct attr_value_list, insn_code_values): Move to
7219 file scope from optimize_attrs.
7220 (simplify_test_exp): If insn_code_values is not NULL, use it to speed
7221 up search.
7222 (optimize_attrs): Clear insn_code_values after freeing it.
7223
7224 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
7225
7226 * tree-ssa-address.c (create_mem_ref): Remove ", bsi" from
7227 a parts.base assignment.
7228
7229 2007-01-26 Zdenek Dvorak <dvorakz@suse.cz>
7230
7231 * tree-data-ref.c (dump_subscript): Use dump_conflict_function.
7232 (compute_subscript_distance, initialize_data_dependence_relation,
7233 finalize_ddr_dependent, analyze_ziv_subscript,
7234 analyze_siv_subscript_cst_affine,
7235 compute_overlap_steps_for_affine_univar,
7236 compute_overlap_steps_for_affine_1_2, analyze_subscript_affine_affine,
7237 analyze_siv_subscript, analyze_miv_subscript,
7238 analyze_overlapping_iterations, subscript_dependence_tester_1,
7239 compute_self_dependence, free_dependence_relation): Work
7240 with affine_fn instead of chrecs.
7241 (dump_affine_function, dump_conflict_function, affine_function_equal_p,
7242 common_affine_function, affine_function_base,
7243 affine_function_constant_p, affine_fn_op, affine_fn_plus,
7244 affine_fn_minus, affine_fn_free, conflict_fn_not_known,
7245 conflict_fn_no_dependence, free_conflict_function, free_subscripts,
7246 conflict_fn, affine_fn_cst, affine_fn_univar): New functions.
7247 (all_chrecs_equal_p): Removed.
7248 * tree-data-ref.h (affine_fn, conflict_function): New types.
7249 (struct subscript): Change type of conflicting_iterations_in_a
7250 and conflicting_iterations_in_b.
7251
7252 2007-01-26 Steve Ellcey <sje@cup.hp.com>
7253
7254 PR other/30182
7255 * config/pa/pa.h (TARGET_HPUX_11): New.
7256 * config/pa/pa-hpux11.h (TARGET_HPUX_11): New.
7257 * config/pa/pa.c (pa_init_builtins): Use TARGET_HPUX_11.
7258
7259 2007-01-26 Daniel Berlin <dberlin@dberlin.org>
7260 Richard Guenther <rguenther@suse.de>
7261
7262 * tree-ssa-structalias.c (solve_graph): Handle case
7263 we merged the variable to another.
7264
7265 2007-01-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7266
7267 * builtins.c (fold_builtin_1): Treat ccos and ccosh as 'even'
7268 functions.
7269
7270 * fold-const.c (negate_mathfn_p): Treat casin, casinh, catan,
7271 catanh, cproj, csin, csinh, ctan and ctanh as 'odd' functions.
7272
7273 2007-01-25 DJ Delorie <dj@redhat.com>
7274
7275 * config/m32c/m32c.c (m32c_cannot_change_mode_class): We don't
7276 allow changes to modes which don't fit in those registers.
7277
7278 * reload1.c (choose_reload_regs): Check for invalid subregs before
7279 computing their locations, not after.
7280
7281 2007-01-25 Geoffrey Keating <geoffk@apple.com>
7282
7283 PR 25127
7284 * config/rs6000/rs6000.c (first_altivec_reg_to_save): On Darwin,
7285 save Altivec registers in an eh_return function.
7286 (compute_vrsave_mask): Likewise.
7287 (rs6000_stack_info): Correct AIX/Darwin stack alignment computation
7288 for saving Altivec registers.
7289 (rs6000_emit_prologue): Don't allocate stack twice in
7290 eh_return function. Correct expected value of altivec_save_offset
7291 when using save_world. Describe save of R0 to stack when using
7292 save_world. Describe stack pointer adjustment when using
7293 save_world. Remove duplicated eh_return parameter register saving.
7294 Update sp_offset variable after save_world.
7295 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA): Remove
7296 darwin-world.asm.
7297 (LIB2FUNCS_EXTRA): Add darwin-world.asm.
7298 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): -m64
7299 implies Altivec.
7300
7301 2007-01-25 Steve Ellcey <sje@cup.hp.com>
7302
7303 * config.gcc (ia64*-*-hpux*): Make posix threads the default.
7304
7305 2007-01-25 Steve Ellcey <sje@cup.hp.com>
7306
7307 PR other/30182
7308 * config/pa/pa.c (pa_init_builtins): Set asm names for finite routines.
7309 * config/ia64/ia64.c (ia64_init_builtins): Ditto.
7310
7311 2007-01-25 Richard Guenther <rguenther@suse.de>
7312
7313 * doc/invoke.texi (-Wcoverage-mismatch): Document.
7314 * common.opt (-Wcoverage-mismatch): New warning option.
7315 * coverage.c (get_coverage_counts): Ignore coverage mismatch
7316 if -Wcoverage-mismatch is given.
7317
7318 2007-01-25 Razya Ladelsky <razya@il.ibm.com>
7319
7320 * ipa-cp.c (ipcp_insert_stage, ipcp_driver): Support for SSA.
7321 (ipcp_driver): Change to static definition.
7322 Add dumping of the ifunctions.
7323 (constant_val_insert): Remove unused parameter. Support for SSA.
7324 (ipcp_propagate_const): Support for SSA.
7325 (ipcp_profile_bb_print): Print only analyzed nodes.
7326 (ipcp_replace_map_create): Remove support for Fortran constant
7327 for now.
7328 * ipa-prop.c (ipa_method_modify_stmt,
7329 ipa_callsite_compute_param): Support for SSA.
7330 * ipa-prop.h (ipcp_driver): Remove declaration.
7331 (IS_VALID_TREE_MAP_INDEX): Add define.
7332
7333 2007-01-24 Geoffrey Keating <geoffk@apple.com>
7334
7335 * unwind-dw2.c (execute_stack_op): Handle DW_OP_swap.
7336
7337 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7338
7339 PR middle-end/30447
7340 * builtins.c (fold_builtin_cabs): Use MPFR to evaluate a
7341 constant argument to cabs and do it without checking for
7342 -funsafe-math-optimizations.
7343
7344 2007-01-24 Douglas Gregor <dgregor@osl.iu.edu>
7345
7346 * c-common.h (RID_FIRST_CXX0X): New.
7347 (RID_LAST_CXX0X): New.
7348 * c-opts.c (c_common_handle_option): -Wc++0x-compat is triggered
7349 by -Wall.
7350 * c.opt (Wc++0x-compat): New.
7351 * doc/invoke.texi (-Wc++0x-compat): Document.
7352
7353 2007-01-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7354
7355 * builtins.c (fold_builtin_carg): New.
7356 (fold_builtin_1): Use it.
7357
7358 2007-01-24 Jan Hubicka <jh@suse.cz>
7359
7360 * ipa-inline.c (cgraph_decide_inlining): Initialize initial_insns.
7361
7362 * ipa-inline.c (initial_insns, max_insns): Delete.
7363 (compute_max_insns): New function.
7364 (cgraph_decide_inlining_of_small_function): Use it; take minimal amount
7365 of insns as base for code growth.
7366 (cgraph_decide_inlining): Make initial_insns local; do not compute
7367 max_insns.
7368 * params.def (PARAM_INLINE_UNIT_GROWTH): Set to 60.
7369 * doc/invoke.texi (inline-unit-growth): Update docs.
7370
7371 2007-01-24 Jakub Jelinek <jakub@redhat.com>
7372
7373 * config/i386/i386.h (x86_cmpxchg16b): Remove const.
7374 (TARGET_CMPXCHG16B): Define to x86_cmpxchg16b.
7375 * config/i386/i386.c (x86_cmpxchg16b): Remove const.
7376 (override_options): Add PTA_CX16 flag. Set x86_cmpxchg16b
7377 for CPUs that have PTA_CX16 set.
7378
7379 PR middle-end/27416
7380 * gimplify.c (omp_check_private): New function.
7381 (gimplify_scan_omp_clauses): Use it for
7382 firstprivate/lastprivate/reduction.
7383
7384 PR middle-end/30494
7385 * gimplify.c (omp_add_variable): Don't call omp_notice_variable
7386 on TYPE_SIZE_UNIT for GOVD_LOCAL VLAs.
7387
7388 PR middle-end/30421
7389 * omp-low.c (lower_omp_for_lastprivate): Add dlist argument.
7390 If lower_lastprivate_clauses emits some statements, append them
7391 to dlist rather than body_p and to body_p append an initializer.
7392 (lower_omp_for): Adjust caller.
7393
7394 2007-01-24 Steve Ellcey <sje@cup.hp.com>
7395
7396 * target.h (globalize_decl_name): New.
7397 * target-def.h (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
7398 * output.h (default_globalize_decl_name): New.
7399 * varasm.c (asm_output_bss): Use globalize_decl_name instead of
7400 globalize_label.
7401 (globalize_decl): Ditto.
7402 (default_globalize_decl_name): New.
7403 * config/ia64/ia64.c (ia64_globalize_decl_name): New.
7404 (ia64_handle_version_id_attribute): New.
7405 (TARGET_ASM_GLOBALIZE_DECL_NAME): New.
7406 (ia64_asm_output_external): Use globalize_decl_name instead
7407 of globalize_label.
7408 * doc/extend.texi (version_id): New pragma.
7409 * doc/tm.texi (ARGET_ASM_GLOBALIZE_DECL_NAME): New target hook.
7410
7411 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
7412
7413 * unwind-dw2-fde.c (get_cie_encoding): Replaced _Unwind_Word with
7414 _uleb128_t and _Unwind_SWord with _sleb128_t.
7415 * unwind-dw2.c (extract_cie_info, execute_stack_op, execute_cfa_program,
7416 uw_frame_state_for, uw_update_context_1): Likewise.
7417 * unwind-c.c (parse_lsda_header, PERSONALITY_FUNCTION): Likewise.
7418 * unwind-pe.h (read_uleb128, read_sleb128,
7419 read_encoded_value_with_base): Likewise.
7420 * unwind-generic.h: Define _sleb128_t and _uleb128_t types.
7421
7422 2007-01-24 Richard Guenther <rguenther@suse.de>
7423
7424 * builtins.c (expand_builtin_cexpi): Get the fndecl
7425 for cexp in the correct way.
7426
7427 2007-01-24 Jan Hubicka <jh@suse.cz>
7428
7429 * tree-ssa-dce.c (eliminate_unnecesary_stmts): Remove dead LHS of calls.
7430
7431 2007-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
7432
7433 * c-cppbuiltin.c (builtin_define_type_sizeof): New function.
7434 (c_cpp_builtins): New builtin macros: __SIZEOF_INT__, __SIZEOF_LONG__,
7435 __SIZEOF_LONG_LONG__, __SIZEOF_SHORT__, __SIZEOF_POINTER__,
7436 __SIZEOF_FLOAT__, __SIZEOF_DOUBLE__, __SIZEOF_LONG_DOUBLE__,
7437 __SIZEOF_SIZE_T__, __SIZEOF_WCHAR_T__, __SIZEOF_WINT_T__ and
7438 __SIZEOF_PTRDIFF_T__.
7439 * doc/cpp.texi: Documentation for the new builtin macros added.
7440
7441 2007-01-24 Uros Bizjak <ubizjak@gmail.com>
7442
7443 * config/i386/i386.md (tanxf2, tan<mode>2, atan<mode>2, log<mode>2,
7444 log10<mode>2, log2<mode>2, expxf2, exp10xf2, exp2xf2): Use op2
7445 instead of operands[2] to avoid access past the end of array.
7446
7447 2007-01-24 Richard Sandiford <richard@codesourcery.com>
7448
7449 * reload1.c (emit_reload_insns): Pass the reload register
7450 for a non-spill output reload through forget_old_reloads_1.
7451
7452 2007-01-23 Joseph Myers <joseph@codesourcery.com>
7453
7454 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7455 _SOFT_DOUBLE if doubles use software floating-point.
7456 * config/rs6000/libgcc-ppc-glibc.ver: Export additional long
7457 double functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
7458 * config/rs6000/darwin-ldouble.c: Also compile functions for
7459 hard-float without FPRs. Use fmsub function for all __NO_FPRS__
7460 cases. Compile extra functions if _SOFT_DOUBLE, not _SOFT_FLOAT.
7461 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Remove
7462 commented-out long double override.
7463 (CPP_LONGDOUBLE_DEFAULT_SPEC): Likewise.
7464 * config/rs6000/eabispe.h: Likewise.
7465 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
7466 long double for non-SPE.
7467 (rs6000_handle_option): Likewise.
7468 (invalid_e500_subreg): Disallow more subregs involding DImode,
7469 DFmode, TImode or TFmode.
7470 (rs6000_legitimate_offset_address_p): Check TFmode offsets for
7471 E500 double.
7472 (legitimate_lo_sum_address_p): Also check for TFmode for E500
7473 double.
7474 (rs6000_legitimize_address): Also handle TFmode for E500 double.
7475 (rs6000_legitimize_reload_address): Also handle TFmode for E500
7476 double.
7477 (rs6000_legitimate_address): Also check for TFmode for E500
7478 double.
7479 (rs6000_emit_move): Use DFmode subregs of TFmode for E500 double.
7480 (spe_build_register_parallel): Handle TFmode and TCmode.
7481 (rs6000_spe_function_arg): Handle TFmode and TCmode for E500
7482 double.
7483 (function_arg): Handle TFmode and TCmode for E500 double.
7484 (rs6000_init_libfuncs): Initialize extra libfuncs for soft double
7485 in general.
7486 (print_operand): Handle TFmode and TImode for %y.
7487 (rs6000_generate_compare): Handle TFmode comparisons for E500
7488 double.
7489 (spe_func_has_64bit_regs_p): Check for TFmode for E500 double.
7490 (rs6000_function_value): Handle TFmode and TCmode for E500 double.
7491 (rs6000_libcall_value): Handle TFmode and TCmode for E500 double.
7492 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Check for
7493 TFmode for E500 double.
7494 * config/rs6000/rs6000.md (FP): Allow TF for E500 double.
7495 (floatsidf2): Enable for E500 double.
7496 (movtf_softfloat): Use rs6000_nonimmediate_operand.
7497 (extenddftf2): Change to extenddftf2_fprs.
7498 (extenddftf2): Call gen_spe_extenddftf2 or gen_extenddftf2_fprs
7499 depending on TARGET_E500_DOUBLE.
7500 (extendsftf2): Enable for E500 double.
7501 (trunctfdf2): Enable for E500 double.
7502 (trunctfsf2): Change to trunctfsf2_fprs.
7503 (trunctfsf2): Call gen_spe_trunctfsf2 or gen_trunctfsf2_fprs
7504 depending on TARGET_E500_DOUBLE.
7505 (floatsitf2): Enable for E500 double.
7506 (fix_trunctfsi2): Change to fix_trunctfsi2_fprs.
7507 (fix_trunctfsi2): Call gen_spe_fix_trunctfsi2 or
7508 gen_fix_trunctfsi2_fprs depending on TARGET_E500_DOUBLE.
7509 (negtf2): Change to negtf2_internal.
7510 (negtf2): New expander.
7511 (abstf2): Enable for E500 double. Call gen_spe_abstf2_tst,
7512 gen_spe_abstf2_cmp or gen_abstf2_internal depending on
7513 TARGET_E500_DOUBLE and flag_unsafe_math_optimizations.
7514 (movdi_internal32): Use rs6000_nonimmediate_operand.
7515 (unnamed splitter): Likewise.
7516 * config/rs6000/spe.md (CMPTFEQ_GPR, TSTTFEQ_GPR, CMPTFGT_GPR,
7517 TSTTFGT_GPR, CMPTFLT_GPR, TSTTFLT_GPR): New unspecs.
7518 (SPE64TF, DITI): New mode macros.
7519 (frob_df_di): Change to frob_<SPE64:mode>_<DITI:mode>; allow more
7520 modes.
7521 (frob_tf_ti): New.
7522 (frob_<mode>_di_2): New.
7523 (frob_tf_di_8_2): New.
7524 (frob_di_df): Change to frob_di_<mode>; allow more modes.
7525 (frob_ti_tf): New.
7526 (frob_di_df_2): Change to frob_<DITI:mode>_<SPE64:mode>_2; allow
7527 more modes.
7528 (frob_ti_<mode>_8_2): New.
7529 (frob_ti_tf_2): New.
7530 (mov_si<mode>_e500_subreg0, mov_si<mode>_e500_subreg0_2,
7531 mov_si<mode>_e500_subreg4, mov_si<mode>_e500_subreg4_2): Allow
7532 TFmode.
7533 (mov_sitf_e500_subreg8, mov_sitf_e500_subreg8_2,
7534 mov_sitf_e500_subreg12, mov_sitf_e500_subreg12_2): New.
7535 (spe_trunctfdf2_internal1, spe_trunctfsf2, spe_extenddftf2,
7536 spe_fix_trunctfsi2, spe_fix_trunctfsi2_internal,
7537 spe_negtf2_internal, spe_abstf2_cmp, spe_abstf2_tst): New.
7538 (cmptfeq_gpr, tsttfeq_gpr, cmptfgt_gpr, tsttfgt_gpr, cmptflt_gpr,
7539 tsttflt_gp): New.
7540
7541 2007-01-23 Ian Lance Taylor <iant@google.com>
7542
7543 * Makefile.in (OBJS-common): Reformat, alphabetize, but put
7544 insn-*.o first.
7545 (OBJS-archive): Reformat, alphabetize.
7546 (OBJS): Change out_object_file to OBJS-md.
7547
7548 2007-01-23 Uros Bizjak <ubizjak@gmail.com>
7549
7550 * config/i386/i386.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
7551 JUMP_P and CALL_P predicates where applicable.
7552 * config/i386/i386.c: Ditto.
7553 * config/i386/i386.md: Ditto.
7554 * config/i386/mmx.md: Ditto.
7555 * config/i386/predicates.md: Ditto.
7556
7557 2007-01-22 Andreas Schwab <schwab@suse.de>
7558
7559 * config/m68k/m68k.h: Fix comment.
7560
7561 2007-01-22 Jan Hubicka <jh@suse.cz>
7562
7563 * passes.c (init_optimization_passes): Do not rerun
7564 pass_early_warn_uninitialized.
7565
7566 2007-01-22 Richard Guenther <rguenther@suse.de>
7567
7568 PR tree-optimization/30038
7569 * tree-ssa-math-opts.c (maybe_record_sincos): New static helper
7570 function.
7571 (execute_cse_sincos_1): Likewise.
7572 (execute_cse_sincos): Likewise.
7573 (gate_cse_sincos): Likewise.
7574 (pass_cse_sincos): New pass CSEing sin() and cos() calls using
7575 the cexpi() canonicalization of sincos().
7576 * tree-pass.h (pass_cse_sincos): Declare.
7577 * passes.c (init_optimization_passes): New pass pas_cse_sincos.
7578
7579 2007-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
7580
7581 PR rtl-optimization/29329
7582 * combine.c (replaced_rhs_insn): Rename to i2mod.
7583 (replaced_rhs_value): Rename to i2mod_new_rhs.
7584 (i2mod_old_rhs): New global variable.
7585 (combine_instructions): Adjust for above change. Save a copy of
7586 the old RHS into i2mod_old_rhs when the contents of a REG_EQUAL
7587 note are substituted in the second instruction.
7588 (distribute_notes) <REG_DEAD>: Adjust for above change. Do not
7589 ditch the note if it pertains to the second eliminated register
7590 and this register is mentioned in i2mod_old_rhs.
7591
7592 Revert:
7593 2006-09-12 Eric Botcazou <ebotcazou@libertysurf.fr>
7594
7595 * combine.c (distribute_notes) <REG_DEAD>: Do not consider SETs past
7596 the insn to which the note was originally attached.
7597
7598 2007-01-21 Jan Hubicka <jh@suse.cz>
7599
7600 * ipa-inline.c (inlining_mode): Comment, move up.
7601 (cgraph_decide_inlining_incrementally): Do not perform inlining
7602 itself; fix handling of flattening of self recursive functions.
7603 (cgraph_find_cycles): Remove.
7604 (cgraph_flatten_node): Remove.
7605 (cgraph_decide_inlining): Use incremental inliner to handle flattening.
7606 (try_inline): New function.
7607 (cgraph_early_inlining): Update call of
7608 cgraph_decide_inlining_incrementally. Apply inlining here.
7609 (apply_inline): Update call of cgraph_decide_inlining_incrementally.
7610
7611 2007-01-21 Dirk Mueller <dmueller@suse.de>
7612
7613 PR bootstrap/30511
7614 * tree-vrp.c (check_array_bounds): do not warn
7615 about ADDR_EXPR's of ARRAY_REF's which are immediately
7616 used in binary expressions.
7617
7618 2007-01-21 Ira Rosen <irar@il.ibm.com>
7619
7620 * tree-vectorizer.h (struct _stmt_vec_info): Add new field
7621 read_write_dep and macros for its access.
7622 * tree-vectorizer.c (new_stmt_vec_info): Initialize the new field.
7623 * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Remove
7624 argument, call vect_check_interleaving for every independent pair of
7625 data-refs. Mark loads that access the same memory location as a store
7626 in the loop.
7627 (vect_check_dependences): Remove.
7628 (vect_analyze_data_ref_dependences): Remove vect_check_dependences
7629 call, fix the call to vect_analyze_data_ref_dependence.
7630 (vect_analyze_data_ref_access): For statements that access the same
7631 data-ref, check that they are not stores; for loads, check that there
7632 is no store that access the same location.
7633
7634 2007-01-20 Roger Sayle <roger@eyesopen.com>
7635 Joseph Myers <joseph@codesourcery.com>
7636
7637 * doc/invoke.texi (-fdump-rtl-combine): Fix under/overfull hbox.
7638 (-fdump-rtl-stack): Likewise.
7639 (-fno-signed-zeros): Use @minus{} for a minus sign. Correct typo.
7640 (-mcheck-zero-division, -mcpu): Fix under/overfull hbox.
7641 (-mpt-fixed): Use @minus{} for minus sign.
7642 (Using Precompiled Headers): Fix under/overfull hbox.
7643
7644 2007-01-20 Jan Hubicka <jh@suse.cz>
7645
7646 * tree-flow.h (struct stmt_ann_d): Move references_memory to proper
7647 place within annotation.
7648
7649 2007-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7650
7651 * pa.c (output_move_double): Change array size of xoperands to 4.
7652
7653 2007-01-20 Jan Hubicka <jh@suse.cz>
7654
7655 * tree-tailcall.c (adjust_return_value): Do not use RESULT_DECL
7656 as temporary.
7657
7658 2007-01-19 Ian Lance Taylor <iant@google.com>
7659
7660 * expmed.c (expand_divmod) [TRUNC_MOD_EXPR, TRUNC_DIV_EXPR]: Cast
7661 constant to unsigned HOST_WIDE_INT before negating.
7662
7663 2007-01-19 Ian Lance Taylor <iant@google.com>
7664
7665 * tree-ssa-operands.h (struct vuse_vec_d): Change num_vuse field
7666 to unsigned.
7667 (VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Use unsigned comparison.
7668 (VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
7669 (SET_VUSE_VECT_ELEMENT) [ENABLE_CHECKING]: Likewise.
7670 (SET_VUSE_ELEMENT_VAR) [ENABLE_CHECKING]: Likewise.
7671 (SET_VUSE_ELEMENT_PTR) [ENABLE_CHECKING]: Likewise.
7672 (realloc_vdef, realloc_vuse): Change second parameter to
7673 unsigned.
7674 (ssa_operand_iterator_d): Change vuse_index and mayuse_index
7675 fields to unsigned.
7676 * tree-ssa-operands.c (realloc_vop): Change num_elem parameter to
7677 unsigned. Change x and lim locals to unsigned.
7678 (realloc_vdef, realloc_vuse): Change num_elem parameter to
7679 unsigned.
7680 (finalize_ssa_vuse_ops): Change old_i local to unsigned.
7681 (copy_virtual_operands): Change i and n locals to unsigned.
7682
7683 2007-01-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7684
7685 PR middle-end/29335
7686 * builtins.c (fold_builtin_1): Handle builtin fdim.
7687
7688 2007-01-20 Jan Hubicka <jh@suse.cz>
7689
7690 * tree-ssa.c (init_tree_ssa): Do not call init_alias_heapvars.
7691 * tree-ssa-structalias.c (compute_points_to_sets): Do call
7692 init_alias_heapvars.
7693 (init_alias_heapvars): Initialize only when not already initialized.
7694 (delete_alias_heapvars): Set heapvar_for_stmt to NULL.
7695
7696 2007-01-19 Roger Sayle <roger@eyesopen.com>
7697
7698 * common.opt (fsigned-zeros): New command line option.
7699 * flags.h (HONOR_SIGNED_ZEROS): Control via flag_signed_zeros instead
7700 of flag_unsafe_math_optimizations.
7701 * opts.c (set_fast_math_flags): The -ffast-math command line option
7702 implies -fno-signed-zeros.
7703 (fast_math_flags_set_p): Likewise.
7704
7705 * doc/invoke.texi: Document new -fno-signed-zeros option, and update
7706 the documentation of -ffast-math appropriately. Wrap long lines.
7707
7708 2007-01-19 Steve Ellcey <sje@cup.hp.com>
7709
7710 * system.h (ASM_MAKE_LABEL_LINKONCE): Poison.
7711 * varasm.c (globalize_decl): Remove ASM_MAKE_LABEL_LINKONCE ifdef.
7712
7713 2007-01-19 Tomas Bily <tbily@suse.cz>
7714
7715 * cgraphunit.c (cgraph_finalize_function): Updating of pid
7716 * tree-profile.c:
7717 (tree_init_ic_make_global_vars): New function
7718 (tree_init_edge_profiler): call of tree_init_ic_make_global_vars
7719 (tree_gen_ic_profiler): New function
7720 (tree_gen_ic_func_profiler): New function
7721 (tree_profiling): Added calling of tree_gen_ic_func_profiler
7722 (tree_profile_hooks): Added hook for indirec/virtual calls
7723 * value-prof.c (tree_find_values_to_profile): New case for
7724 indirect calls
7725 (tree_values_to_profile): Call for determining indirect/virtual
7726 counters
7727 (tree_indirect_call_to_profile): New function
7728 (tree_ic_transform): New function
7729 (tree_ic): New function
7730 (find_func_by_pid): New function
7731 (init_pid_map): New function
7732 (tree_value_profile_transformations): Added check for
7733 indirect/virtual call transformation
7734 * value-prof.h (enum hist_type): New counter type for
7735 indirect/virtual calls
7736 (profile_hooks): Added new hook for profiling indirect/virtual
7737 calls
7738 * profile.c (instrument_values): New case for indirect/virtual
7739 call added
7740 * gcov-io.h (GCOV_LAST_VALUE_COUNTER): Changed to 6
7741 (GCOV_COUNTER_V_INDIR): New counter type
7742 (GCOV_COUNTER_NAMES): New name of counter "indirect" added
7743 (GCOV_MERGE_FUNCTIONS): New merge function for indirect/virtual
7744 call added
7745 * cgraph.c: Definition of cgraph_max_pid
7746 (cgraph_create_node): Default init of pid attribute
7747 * cgraph.h: Declaration of cgraph_max_pid
7748 (struct cgraph_node): Added pid attribute
7749 * libgcov.c (__gcov_indirect_call_profiler): New function
7750 (__gcov_one_value_profiler_body): New function
7751 (__gcov_one_value_profiler): Body was moved to
7752 __gcov_one_value_profiler_body and calls it
7753
7754 2007-01-19 Basile Starynkevitch <basile@starynkevitch.net>
7755
7756 * doc/gty.texi (Options): Document the mark_hook option to GTY.
7757 * gengtype.c (write_types_data, write_func_for_structure,
7758 write_types, ggc_wtd, pch_wtd): Add skip_hooks to
7759 write_types_data, ggc_wtd, pch_wtd for processing mark_hook.
7760 (walk_type, write_func_for_structure): Generate the mark_hook if
7761 needed.
7762
7763 2007-01-19 Jan Hubicka <jh@suse.cz>
7764
7765 * ipa-inline.c (cgraph_decide_inlining_incrementally): Instead of
7766 'early' argument take inlining mode argument specifying whether to
7767 inline for size/speeed or all functions; add support for flattening;
7768 improve dumpting.
7769 (cgraph_early_inlining): Update call of decide_inlining_incrementally.
7770
7771 2007-01-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7772
7773 PR c++/17947
7774 * toplev.c (warn_deprecated_use): Use %qD instead of %qs to print
7775 the name of the declared identifier.
7776
7777 2007-01-19 Dirk Mueller <dmueller@suse.de>
7778
7779 * config/i386.h (CONDITIONAL_REGISTER_USAGE): Store
7780 result of PIC_OFFSET_TABLE_REGNUM in temporary variable to avoid
7781 duplicate evaluation.
7782
7783 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
7784
7785 * config/i386/i386.md (acos<mode>2): Rename from acossf2 and acosdf2.
7786 Macroize expander using X87MODEF12 mode macro. Extend operand 1
7787 to XFMode, use acosxf2 and truncate result to requested mode.
7788 Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
7789 (asin<mode>2): Similarly, with asin expanders.
7790 (*fscalexf4_i387): Rename from *fscalexf4.
7791 (expNcorexf3): New expander.
7792 (expxf2, exp10xf2, exp2xf2): Use expNcorexf3 expander.
7793 (exp<mode>2): Rename from expsf2 and expdf2. Macroize expander using
7794 X87MODEF12 mode macro. Extend operand 1 to XFMode, use expxf2 and
7795 truncate result to requested mode. Use SSE_FLOAT_MODE_P to disable
7796 patterns for SSE math.
7797 (exp10<mode>2): Similarly, with exp10 expanders.
7798 (exp2<mode>2): Similarly, with exp2 expanders.
7799 (expm1<mode>2): Similarly, with expm1 expanders.
7800 (ldexp<mode>3): Similarly, with ldexp expanders.
7801 (log<mode>2, log10<mode>2, log2<mode>2, log1p<mode>2, logb<mode>2):
7802 Use gen_truncxf<mode>2_i387_noop to truncate result.
7803
7804 2007-01-19 Richard Sandiford <richard@codesourcery.com>
7805
7806 * config/m68k/m68k.h (PREFERRED_STACK_BOUNDARY): Define to 32
7807 for ColdFire targets.
7808
7809 2007-01-19 Nathan Sidwell <nathan@codesourcery.com>
7810 Richard Sandiford <richard@codesourcery.com>
7811
7812 * config/m68k/m68k.h (M68K_STATIC_CHAIN_REG_NAME): New macro.
7813 (INITIALIZE_TRAMPOLINE): Use STATIC_CHAIN_REGNUM.
7814 (__transfer_from_trampoline): Use M68K_STATIC_CHAIN_REG_NAME.
7815 * config/m68k/m68kelf.h (STATIC_CHAIN_REGNUM): Override.
7816 (M68K_STATIC_CHAIN_REG_NAME): Likewise.
7817 * config/m68k/netbsd-elf.h (M68K_STATIC_CHAIN_REG_NAME): Likewise.
7818
7819 2007-01-19 Richard Sandiford <richard@codesourcery.com>
7820
7821 * config/m68k/m68k.md (adddi_dilshr32): Rename to...
7822 (*adddi_dilshr32): ...this. Fix formatting. Remove commented-out
7823 non-canonical pattern. Restrict to !TARGET_COLDFIRE.
7824 (*adddi_dilshr32_cf): New pattern.
7825 (adddi3, subdi3): Remove first alternatives.
7826
7827 2007-01-19 Richard Sandiford <richard@codesourcery.com>
7828
7829 * config/m68k/m68k.c (notice_update_cc): If an SFmode move is
7830 implemented using move.l, do not use its cc result for floating-point
7831 comparisons.
7832
7833 2007-01-19 Richard Sandiford <richard@codesourcery.com>
7834
7835 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Stop the 'T' constraint
7836 from accepting 's' constraints if flag_pic.
7837
7838 2007-01-19 Richard Sandiford <richard@codesourcery.com>
7839
7840 * config/m68k/m68k.md (bordered, bunordered, buneq, bunge, bungt)
7841 (bunle, bunlt, bltgt, bordered_rev, bunordered_rev, buneq_rev)
7842 (bunge_rev, bungt_rev, bunle_rev, bunlt_rev, bltgt_rev): Change
7843 condition from TARGET_68881 to TARGET_HARD_FLOAT.
7844
7845 2007-01-19 Sandra Loosemore <sandra@codesourcery.com>
7846
7847 * longlong.h (count_leading_zeros, COUNT_LEADING_ZEROS_0): Add
7848 ColdFire alternatives.
7849 * config/m68k/m68k.h (CLZ_DEFINED_VALUE_AT_ZERO): New macro.
7850 * config/m68k/m68k.md (clzsi2): Define for ColdFire
7851 architectures that support ff1 instruction.
7852
7853 2007-01-19 Richard Sandiford <richard@codesourcery.com>
7854 Julian Brown <julian@codesourcery.com>
7855
7856 * config/m68k/m68k.h (CONST_OK_FOR_LETTER_P): Add an 'R' case.
7857 * config/m68k/m68k.md (*movsi_cfv4): Fold into...
7858 (*movsi_cf): ...here. Remove unnecessary 'R' from 'Rg'.
7859 Add commentary.
7860
7861 2007-01-19 Richard Sandiford <richard@codesourcery.com>
7862
7863 * config/m68k/m68k-protos.h (valid_mov3q_const): Take a HOST_WIDE_INT
7864 and return a bool.
7865 (output_move_const_into_data_reg, output_move_simode_const): Delete.
7866 * config/m68k/m68k.c (const_method, const_int_cost): Take a
7867 HOST_WIDE_INT instead of an rtx.
7868 (m68k_rtx_costs): Update call accordingly.
7869 (output_move_const_into_data_reg): Likewise. Fix formatting.
7870 (valid_mov3q_const): Take a HOST_WIDE_INT instead of an rtx.
7871 Return a bool.
7872 (output_move_simode_const): Update calls after above changes.
7873 Rework to use automatic variables and predicates like MEM_P.
7874 * config/m68k/m68k.md (pushexthisi_const): Update call to
7875 valid_mov3q_const.
7876
7877 2007-01-19 Dirk Mueller <dmueller@suse.de>
7878
7879 * tree-ssa-alias.c (perform_var_substitution): Fix typo
7880 in dump_flags test.
7881
7882 2007-01-19 Richard Guenther <rguenther@suse.de>
7883
7884 * builtins.c (expand_builtin_cexpi): Fall back to expanding
7885 via cexp in case sincos is not available.
7886
7887 2007-01-19 Richard Guenther <rguenther@suse.de>
7888
7889 * doc/tm.texi (TARGET_HAS_SINCOS): Document new target macro.
7890 * defaults.h (TARGET_HAS_SINCOS): Default to off.
7891 * config/linux.h (TARGET_HAS_SINCOS): Set to on if we have glibc.
7892 * config/alpha/linux.h (TARGET_HAS_SINCOS): Likewise.
7893 * config/sparc/linux.h (TARGET_HAS_SINCOS): Likewise.
7894 * config/sparc/linux64.h (TARGET_HAS_SINCOS): Likewise.
7895 * config/rs6000/linux.h (TARGET_HAS_SINCOS): Likewise.
7896 * config/rs6000/linux64.h (TARGET_HAS_SINCOS): Likewise.
7897
7898 2007-01-19 Uros Bizjak <ubizjak@gmail.com>
7899
7900 * config/i386/i386.md (*fpatanxf3_i387, fpatan_extend<mode>xf3_i387):
7901 New insn patterns.
7902 (atan2sf3_1, atan2df3_1, atan2xf3_1): Remove insn patterns.
7903 (atan2xf3): Directly generate RTL pattern.
7904 (atan2<mode>3): Rename from atan2sf3 and atan2df3 and macroize insn
7905 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
7906 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
7907 disable patterns for SSE math.
7908 (atan<mode>2): Rename from atansf2 and atandf2 and macroize insn
7909 patterns using X87MODEF12 mode macro. Use fpatan_extend<mode>xf3_i387
7910 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
7911 disable patterns for SSE math.
7912
7913 2007-01-19 Alexandre Oliva <aoliva@redhat.com>
7914
7915 * libgcc-std.ver: Fix typo in %inherit for GCC_4.3.0.
7916
7917 2007-01-18 Roger Sayle <roger@eyesopen.com>
7918
7919 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Optimize away a
7920 VIEW_CONVERT_EXPR to the same type as it's operand.
7921
7922 2007-01-18 David Edelsohn <edelsohn@gnu.org>
7923
7924 * config/rs6000/darwin-ldouble.c: Only build _SOFT_FLOAT if
7925 configured for long double 128.
7926
7927 2007-01-18 Mike Stump <mrs@apple.com>
7928
7929 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Fix build
7930 error.
7931
7932 2007-01-18 Michael Meissner <michael.meissner@amd.com>
7933
7934 * i386.c (ix86_compute_frame_layout): Make fprintf's in #if 0 code
7935 type correct.
7936
7937 2007-01-18 Jan Hubicka <jh@suse.cz>
7938
7939 * tree-ssa-operands.c (vop_free_bucket_size): Never return value
7940 greater than NUM_VOP_FREE_BUCKETS.
7941
7942 2007-01-18 Daniel Berlin <dberlin@dberlin.org>
7943
7944 * tree-ssa-structalias.c: Update comments.
7945 (ptabitmap_obstack): Removed.
7946 (pta_obstack): New.
7947 (oldpta_obstack): Ditto.
7948 (stats): Add a few members.
7949 (struct variable_info): Remove node, complex, address_taken, and
7950 indirect_target members. Add oldsolution member.
7951 (new_var_info): Do not initialize removed members.
7952 (constraint_expr_type): Remove INCLUDES.
7953 (constraint_graph): Add size, implicit_preds, rep,
7954 indirect_cycles, eq_rep, label, direct_nodes, and complex members.
7955 (FIRST_REF_NODE): New macro.
7956 (LAST_REF_NODE): Ditto.
7957 (FIRST_ADDR_NODE): Ditto.
7958 (find): New function.
7959 (unite): Ditto.
7960 (dump_constraint): Do not handle INCLUDES.
7961 (insert_into_complex): Do not insert duplicate constraints.
7962 (condense_varmap_nodes): Renamed and rewritten into ...
7963 (merge_node_constraints): This. Also fix bug in handling of
7964 offseted copy constraints.
7965 (clear_edges_for_node): No longer need to deal with preds at all,
7966 or removing associated preds/succs.
7967 (merge_graph_nodes): Deal with indirect_cycles.
7968 Don't deal with predecessors.
7969 (add_implicit_graph_edge): New function.
7970 (add_pred_graph_edge): Ditto.
7971 (add_graph_edge): Don't deal with predecessors.
7972 (build_constraint_graph): Removed.
7973 (build_pred_graph): New function.
7974 (build_succ_graph): Ditto.
7975 (struct scc_info): Removed in_component. Added roots, dfs, and
7976 node_mapping. Remove visited_index, unification_queue.
7977 (scc_visit): Deal with union-find we do now.
7978 Deal with cycles with REF nodes.
7979 (collapse_nodes): Renamed and rewritten to ...
7980 (unify_nodes): This.
7981 (process_unification_queue): Removed.
7982 (topo_visit): Cleanup
7983 (do_da_constraint): Use find.
7984 (do_sd_constraint): Ditto.
7985 (do_ds_constraint): Ditto.
7986 (do_complex_constraint): Ditto.
7987 (init_scc_info): Update for removed and added members.
7988 (find_and_collapse_graph_cycles): Renamed and rewritten into ...
7989 (find_indirect_cycles): This.
7990 (equivalence_class): New variable.
7991 (label_visit): New function.
7992 (perform_variable_substitution): Rewritten.
7993 (free_var_substitution_info): New function.
7994 (find_equivalent_node): Ditto.
7995 (move_complex_constraints): Ditto.
7996 (eliminate_indirect_cycles): Ditto.
7997 (solve_graph): Only propagate changed bits.
7998 Use indirect cycle elimination.
7999 Use find.
8000 (tree_id_t): Rename to tree_vi_t, delete id member, add vi member.
8001 (tree_id_eq): Renamed to ...
8002 (tree_vi_eq): This. Update for member change
8003 (insert_id_for_tree): Renamed and rewritten to ...
8004 (insert_vi_for_tree): This.
8005 (lookup_id_for_tree): Renamed and rewritten to ...
8006 (lookup_vi_for_tree): This.
8007 (get_id_for_tree): Renamed and rewritten to ...
8008 (get_vi_for_tree): Ditto.
8009 (get_constraint_exp_from_ssa_var): Update to use get_vi_for_tree.
8010 (process_constraint): Don't handle INCLUDES.
8011 Remove special ADDRESSOF case.
8012 (find_func_aliases): Rewrite to use vi functions instead of id
8013 ones.
8014 (create_function_info_for): Ditto.
8015 (create_variable_info_for): Ditto.
8016 (intra_create_variable_infos): Ditto.
8017 (merge_smts_into): Ditto.
8018 (find_what_p_points_to): Ditto.
8019 (init_base_vars): Ditto.
8020 (init_alias_vars): Ditto.
8021 (remove_preds_and_fake_succs): New function.
8022 (dump_sa_points_to_info): Dump new stats.
8023 (dump_solution_for_var): Use find.
8024 (set_used_smts): Fix formatting.
8025 (compute_points_to_sets): Updated for new functions.
8026 (ipa_pta_execute): Ditto.
8027
8028 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
8029 Richard Sandiford <richard@codesourcery.com>
8030
8031 * doc/tm.texi (TARGET_FUNCTION_VALUE): Expand documentation of
8032 parallels.
8033 * calls.c (expand_call): If the return value is a PARALLEL,
8034 extract its first member.
8035 * config/m68k/linux.h (FUNCTION_EXTRA_EPILOGUE): Remove.
8036 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
8037 use FUNCTION_EXTRA_EPILOGUE.
8038 (m68k_function_value): Return a PARALLEL if the return value
8039 is of a pointer type.
8040 * config/m68k/netbsd-elf.h (current_function_returns_pointer)
8041 (FUNCTION_EXTRA_EPILOGUE): Remove.
8042 * config/m68k/m68k.md (D0_REG): New constant.
8043
8044 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
8045
8046 * config/m68k/m68k.c (m68k_output_function_epilogue): Don't
8047 output a NOP for empty epilogues.
8048
8049 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8050
8051 * config/m68k/m68k.c (m68k_use_return_insn): Update comments
8052 before function. Extend register save check to include all
8053 registers, not just integer ones.
8054
8055 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
8056
8057 * config/m68k/m68k-protos.h (use_return_insn): Rename to...
8058 (m68k_use_return_insn): ...this.
8059 * config/m68k/m68k.h (USE_RETURN_INSN): Delete.
8060 * config/m68k/m68k.c (use_return_insn): Rename to...
8061 (m68k_use_return_insn): ...this.
8062 * config/m68k/m68k.md (return): Use m68k_use_return_insn instead
8063 of USE_RETURN_INSN.
8064
8065 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
8066
8067 * config/m68k/fpgnulib.c (__truncdfsf2): Implement round to
8068 nearest even, fix denormal rounding overflow.
8069
8070 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8071
8072 * config/m68k/m68k.md (movsf_cf_hard): Use fsmove instead of
8073 f%$smove and f%$move.
8074 (movdf_cf_hard): Use fdmove for cases 0 and 3 and fmove for case 1.
8075 (extendsfdf2_cf): Use fdmove instead of f%&move.
8076 (truncdfsf2_cf): Use fsmove instead of f%$smove.
8077 (add<mode>3_cf, sub<mode>3_cf): Use <FP:prec> instead of <FP:round>.
8078
8079 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8080
8081 * config/m68k/m68k.md (movdf_cf_hard): Use output_move_double for
8082 GPR<-GPR moves.
8083
8084 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8085
8086 * real.h (real_format): Add a canonical_nan_lsbs_set field.
8087 (coldfire_single_format): Declare.
8088 (coldfire_double_format): Likewise.
8089 * real.c (encode_ieee_single): Use canonical_nan_lsbs_set instead
8090 of qnan_msb_set to determine the lower bits of a canonical
8091 NaN significand.
8092 (encode_ieee_double): Likewise.
8093 (encode_ieee_quad): Likewise.
8094 (ieee_single_format): Initialize canonical_nan_lsbs_set.
8095 (mips_single_format): Likewise.
8096 (ieee_double_format): Likewise.
8097 (mips_double_format): Likewise.
8098 (ieee_extended_motorola_format): Likewise.
8099 (ieee_extended_intel_96_format): Likewise.
8100 (ieee_extended_intel_128_format): Likewise.
8101 (ieee_extended_intel_96_round_53_format): Likewise.
8102 (ibm_extended_format): Likewise.
8103 (mips_extended_format): Likewise.
8104 (ieee_quad_format): Likewise.
8105 (mips_quad_format): Likewise.
8106 (vax_f_format): Likewise.
8107 (vax_d_format): Likewise.
8108 (vax_g_format): Likewise.
8109 (i370_single_format): Likewise.
8110 (i370_double_format): Likewise.
8111 (decimal_single_format): Likewise.
8112 (decimal_double_format): Likewise.
8113 (decimal_quad_format): Likewise.
8114 (c4x_single_format): Likewise.
8115 (c4x_extended_format): Likewise.
8116 (real_internal_format): Likewise.
8117 (coldfire_single_format): New real_format.
8118 (coldfire_double_format): Likewise.
8119 * config/pdp11/pdp11.c (pdp11_f_format): Initialize
8120 canonical_nan_lsbs_set.
8121 (pdp11_d_format): Likewise.
8122 * config/m68k/m68k.c (override_options): Override REAL_FORMAT_MODE
8123 if TARGET_COLDFIRE_CPU.
8124
8125 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8126
8127 * config/m68k/m68k-protos.h (m68k_output_pic_call): Delete.
8128 (output_call, m68k_legitimize_call_address): Declare.
8129 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Remove unnecessary
8130 parenthesees. Add support for a 'W' constraint.
8131 (LEGITIMATE_PIC_OPERAND_P): Remove SYMBOL_REF_FLAG handling.
8132 (PRINT_OPERAND_PUNCT_VALID_P): Remove comment about 'o'.
8133 (m68k_symbolic_call, m68k_symbolic_jump): Declare.
8134 * config/m68k/m68k.c (m68k_symbolic_call, m68k_symbolic_jump): New
8135 variables.
8136 (override_options): Initialize them. Do not set flag_no_function_cse
8137 for TARGET_ID_SHARED_LIBRARY.
8138 (m68k_output_pic_call): Delete.
8139 (m68k_legitimize_call_address): New function.
8140 (print_operand): Remove the %o prefix. Handle the %p prefix.
8141 (output_call): New function.
8142 (m68k_output_mi_thunk): Use m68k_symbolic_jump. Always load the
8143 target address from the GOT if symbolic jumps are not allowed.
8144 * config/m68k/m68k.md (call, general_operand): Do not set
8145 SYMBOL_REF_FLAG. Use m68k_legitimize_call_address instead.
8146 Merge separate flag_pic and !flag_pic define_insns into...
8147 (*call, *call_value): ...these new patterns. Match the address
8148 rather than the containing MEM and require it to be a call_operand.
8149 Use output_call to generate the asm template.
8150 * config/m68k/predicates.md (const_call_operand): New predicate.
8151 (call_operand): Likewise.
8152
8153 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
8154
8155 * config/m68k/m68k.h (REGISTER_MOVE_COST): Simplify definition.
8156 (STACK_GROWS_DOWNWARD): Define to 1.
8157 (FUNCTION_VALUE, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Equivocate
8158 comments, emphasizing that these values are only defaults.
8159 * config/m68k/linux.h (LINK_SPEC): Fix formatting in #undef.
8160 * config/m68k/m68k.c (const_method): Remove trailing whitespace.
8161
8162 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8163
8164 * config/m68k/m68k.md (cmpsi): Remove outdated flag_pic handling.
8165
8166 2007-01-18 Kazu Hirata <kazu@codesourcery.com>
8167 Richard Sandiford <richard@codesourcery.com>
8168
8169 * config/m68k/m68k.h (DATA_REGNO_P, ADDRESS_REGNO_P, INT_REGNO_P)
8170 (FP_REGNO_P): New macros.
8171 (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_DATA_P)
8172 (REGNO_OK_FOR_FP_P, REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Use them.
8173 (EH_RETURN_STACKADJ_RTX): Use A0_REG.
8174 * config/m68k/m68k.c (m68k_regno_mode_ok): Use the new REGNO macros.
8175
8176 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
8177
8178 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
8179 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-rtems*): Add t-floatlib
8180 to $tmake_file.
8181 * config/m68k/t-floatlib: New file, extracting common code from...
8182 * config/m68k/t-m68kbare, config/m68k/t-m68kelf,
8183 * config/m68k/t-uclinux: Here.
8184 * config/m68k/fpgnulib.c: Do not compile extendeed precision
8185 routines on ColdFire targets.
8186
8187 2007-01-18 Nathan Sidwell <nathan@codesourcery.com>
8188
8189 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
8190 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*)
8191 (m68k-*-uclinuxoldabi, m68k-*-uclinux*, m68k-*-linux*)
8192 (m68k-*-rtems*): Use tm_file rather than m68k/m68k.h and
8193 explicitly set MOTOROLA to 1.
8194 * config/m68k/m68k.h (MOTOROLA): Simplify definition accordingly.
8195
8196 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8197 Nathan Sidwell <nathan@codesourcery.com>
8198
8199 * config/m68k/m68k.h (PCC_STATIC_STRUCT_RETURN): Delete.
8200 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add MOTOROLA cases.
8201 * config/m68k/coff.h (REGISTER_PREFIX_MD): Delete.
8202 * config/m68k/m68020-elf.h (LIB_SPEC): Delete.
8203 * config/m68k/m68k-none.h (CC1_SPEC, CPP_SUBTARGET_SPEC): Delete.
8204 * config/m68k/m68kelf.h (IMMEDIATE_PREFIX, REGISTER_PREFIX_MD)
8205 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
8206 (NO_DOLLAR_IN_LABEL, PCC_STATIC_STRUCT_RETURN): Don't undefine.
8207 (BSS_ASM_OP, ASM_OUTPUT_SKIP, ASM_OUTPUT_ASCII): Delete.
8208 * config/m68k/m68kemb.h (PCC_STATIC_STRUCT_RETURN): Don't undefine.
8209 * config/m68k/linux.h (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE)
8210 (WCHAR_TYPE_SIZE, TARGET_OBJFMT_CPP_BUILTINS): Delete.
8211 (TARGET_OS_CPP_BUILTINS): Don't define mc68000 and mc68020 here.
8212 (DBX_REGISTER_NUMBER): Delete.
8213 * config/m68k/netbsd-elf.h (IMMEDIATE_PREFIX): Delete.
8214 (PCC_STATIC_STRUCT_RETURN): Don't undefine.
8215 * config/m68k/openbsd.h (PCC_STATIC_STRUCT_RETURN): Define.
8216
8217 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8218
8219 * config.gcc (m68k-*-uclinux*): Add flat.h to $tm_file.
8220 * config/flat.h: New file.
8221 * crtstuff.c (USE_PT_GNU_EH_FRAME): Don't define if
8222 OBJECT_FORMAT_FLAT.
8223 * config/m68k/m68k.h (ASM_PREFERRED_EH_DATA_FORMAT): Do not use
8224 indirect references for -msep-data or -mid-shared-library.
8225 Do not use PC-relative code addresses either.
8226 * config/m68k/m68k.c (override_options): Restrict -fPIC error
8227 to -mpcrel.
8228 * config/m68k/uclinux.h (STARTFILE_SPEC): Define. Use Scrt1.o
8229 for shared libraries and crt1.o for executables. Use crti.o and
8230 crtbegin.o.
8231 (ENDFILE_SPEC): Use crtend.o and crtn.o.
8232 (LIB_SPEC): Suppress -Rlibc.gdb if -static-libc is given.
8233 Do not add -elf2flt or -shared-lib-id options here.
8234 (LINK_SPEC): Define. Pass -elf2flt if no -elf2flt option is given.
8235 Pass -shared-lib-id if -mid-shared-library, taking the library
8236 identifier from -mshared-library-id if given, otherwise
8237 defaulting to 0.
8238 (EH_FRAME_IN_DATA_SECTION): Do not undefine.
8239 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Likewise.
8240 (TARGET_OS_CPP_BUILTINS): Define __GXX_MERGED_TYPEINFO_NAMES=0
8241 and __GXX_TYPEINFO_EQUALITY_INLINE=0 if -mid-shared-library.
8242 (DRIVER_SELF_SPECS): Map unadorned PIC options to -msep-data.
8243 * config/m68k/t-uclinux (EXTRA_MULTILIB_PARTS): Add crtbegin.o
8244 and crtend.o.
8245 * config/m68k/lb1sf68.asm (PICCALL): Use an lea and pc-relative
8246 jump sequence for ISA A and ISA A+.
8247 (PICJUMP): Likewise.
8248
8249 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8250
8251 * config.gcc (m68k-*-uclinux*): Base the port on the common
8252 and m68k GNU/Linux files rather than on the generic ELF ones.
8253 * config/m68k/uclinux.h (TARGET_VERSION): Override.
8254 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
8255
8256 2007-01-18 Julian Brown <julian@codesourcery.com>
8257 Richard Sandiford <richard@codesourcery.com>
8258
8259 * config/m68k/m68k.h (LONG_DOUBLE_TYPE_SIZE): Make 64-bit on ColdFire.
8260 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
8261 * config/m68k/netbsd-elf.h (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Undefine
8262 before redefining.
8263 * config/m68k/uclinux-oldabi.h (LONG_DOUBLE_TYPE_SIZE): Redefine to
8264 80 unconditionally.
8265 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
8266
8267 2007-01-18 Richard Sandiford <richard@codesourcery.com>
8268
8269 * doc/install.texi: Document m68k-uclinuxoldabi.
8270 * config.gcc (m68k-*-uclinuxoldabi): New configuration.
8271 * config/m68k/uclinux-oldabi.h: New file, copied from
8272 config/m68k/uclinux.h.
8273
8274 2007-01-18 Kaz Kojima <kkojima@rr.iij4u.or.jp>
8275
8276 * config/m32r/m32r-protos.h (m32r_expand_epilogue): Declare it.
8277 * config/m32r/m32r.c (m32r_setup_incoming_varargs): Use gen_frame_mem.
8278 (m32r_compute_frame_size): Use unsigned for regno.
8279 (m32r_reload_lr): Use gen_frame_mem.
8280 (pop): New.
8281 (m32r_output_function_epilogue): Don't output the function epilogue
8282 textually here.
8283 (m32r_expand_epilogue): New.
8284 (direct_return): Return false if the function has the interrupt
8285 attribute.
8286 (m32r_hard_regno_rename_ok): Remove code for the textual epilogue.
8287 * config/m32r/m32r.md (epilogue): New expander.
8288 (return_lr, return_rte): New insns.
8289 (return): Make it expander.
8290 (return_normal): New expander.
8291
8292 2007-01-18 Josh Conner <jconner@apple.com>
8293
8294 PR target/30485
8295 * config/rs6000/rs6000.c (rs6000_emit_vector_compare): Add
8296 support for UNLE, UNLT, UNGE, and UNGT.
8297
8298 2007-01-18 Jan Hubicka <jh@suse.cz>
8299
8300 * tree-vrp.c (finalize_jump_threads): Do not call cleanup_cfg by hand.
8301 * tree-tailcall (add_virtual_phis): Likewise.
8302 (optimize_tail_call): Return TODOs.
8303 (execute_tail_calls): Return TODOs.
8304 * tree-ssa-ccp (execute_fold_all_builtins): Do cleanup_cfg via TODO.
8305 * tree-cfgcleanup.c (cleanup_tree_cfg_loop): Return if something
8306 changed.
8307 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_value):
8308 Cleanup cfg using TODO.
8309 * tree-flow.h (cleanup_tree_cfg_loop): Update prototype.
8310 * passes.c (execute_function_todo): When cleanup did something, remove
8311 unused locals.
8312 * tree-cfg.c (pass_build_cfg): Add cleanup_cfg TODO.
8313 (make_edges): Don't cleanup_cfg.
8314
8315 2007-01-18 Uros Bizjak <ubizjak@gmail.com>
8316
8317 * reg-stack.c (subst_stack_regs_pat) [UNSPEC_SINCOS_COS,
8318 UNSPEC_XTRACT_FRACT]: Use generic code for instructions that
8319 operate on the top of stack.
8320 [UNSPEC_SINCOS_SIN, UNSPEC_XTRACT_EXP, UNSPEC_TAN]: Rewrite
8321 register handling of instructions that output to the second
8322 stack slot.
8323 [UNSPEC_TAN_ONE, UNSPEC_TAN_TAN]: Remove.
8324 (move_for_stack_reg): Special-case check for dead destination
8325 stack slot for constant load of 1.0 inside UNSPEC_TAN.
8326
8327 * config/i386/i386.md (UNSPEC_TAN): New constant.
8328 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): Remove.
8329 (fptanxf4_i387, fptan_extend<mode>xf4_i387): New patterns
8330 to correctly model move of constant 1.0 to top stack slot.
8331 (*tandf3_1, *tansf3_1, *tanxf3_1): Remove insn patterns.
8332 (unnamed peephole2 pattern): Remove corresponding peephole2
8333 pattern that optimizes tan insn and loading of constant 1.0.
8334 (tanxf2): Use fptanxf4_i387.
8335 (tan<mode>2): Rename from tansf2 and tandf2 and macroize insn
8336 patterns using X87MODEF12 mode macro. Use fptan_extend<mode>xf4_i387
8337 and truncate result to requested mode. Use SSE_FLOAT_MODE_P to
8338 disable patterns for SSE math.
8339 (sincos<mode>3): Use truncxf<mode>2_i387_noop for truncation.
8340 (fyl2x_extend<mode>xf3_i387): Use X87MODEF12 for operand 1.
8341
8342 2007-01-18 Dirk Mueller <dmueller@suse.de>
8343 Richard Guenther <rguenther@suse.de>
8344
8345 PR diagnostic/8268
8346 * doc/invoke.texi (Warray-bounds): Document -Warray-bounds.
8347 * common.opt (Warray-bounds): Add new warning option.
8348 * c-opts.c (c_common_handle_option): Define -Warray-bounds
8349 if -Wall is given.
8350 * Makefile.in: make tree-vrp.o depend on toplev.h
8351 * tree-vrp.c (vrp_finalize): Call check_array_refs if -Warray-bounds
8352 is enabled.
8353 (check_array_refs, check_array_bounds, check_array_ref): New.
8354
8355 2007-01-18 Jan Hubicka <jh@suse.cz>
8356
8357 * tree-ssa-ccp.c (ccp_finalize): Return if something changed.
8358 (execute_ssa_ccp): Return flags conditionally.
8359 * tree-ssa-propagate.c (substitue_and_fold): Return if something was
8360 changed.
8361 * tree-ssa-propagate.h (substitute_and_fold): Update prototype.
8362
8363 2007-01-18 Steven Bosscher <steven@gcc.gnu.org>
8364
8365 * cfgcleanup.c (cleanup_cfg): Detect cfglayout mode and set
8366 the CLEANUP_CFGLAYOUT flag when in cfglayout mode.
8367
8368 * Makefile.c (GTFILES): Add cfglayout.h.
8369 * gengtype.c (open_base_files): Likewise.
8370 * cfglayout.c (cfg_layout_function_footer,
8371 cfg_layout_function_header) Reindent to make gengtype happy.
8372 * cfglayout.h (cfg_layout_function_footer,
8373 cfg_layout_function_header): Add GTY(()) marker.
8374
8375 * ifcvt.c (noce_try_sign_mask): Make sure INSN_B is non-null.
8376
8377 2007-01-18 Ben Elliston <bje@au.ibm.com>
8378
8379 * genautomata.c (write_automata): Include xstrerror output in the
8380 error message if writing the DFA description file fails.
8381
8382 2007-01-17 H.J. Lu <hongjiu.lu@intel.com>
8383
8384 * config/mips/mips-protos.h (mips_output_external): Make it
8385 return void.
8386 * config/mips/iris.h (TARGET_ASM_EXTERNAL_LIBCALL): Removed.
8387 * config/mips/mips.c (irix_output_external_libcall): Likewise.
8388 (extern_list): Likewise.
8389 (extern_head): Likewise.
8390 (TARGET_ASM_FILE_END): Likewise.
8391 (mips_file_end): Likewise.
8392 (mips_output_external): Rewritten.
8393
8394 2007-01-18 Ben Elliston <bje@au.ibm.com>
8395
8396 * genpreds.c (write_insn_preds_c): Only write out the function
8397 body for regclass_for_constraint if we have register constraints.
8398
8399 2007-01-17 Tom Tromey <tromey@redhat.com>
8400
8401 * doc/sourcebuild.texi (libgcj Tests): Use sourceware.org.
8402 * doc/install.texi (Testing): Use sourceware.org.
8403 (Binaries): Likewise.
8404 (Specific): Likewise.
8405 * doc/contrib.texi (Contributors): Use sourceware.org.
8406
8407 2007-01-17 Anatoly Sokolov <aesok@post.ru>
8408
8409 * config/avr/avr.h (AVR_HAVE_LPMX): New macro.
8410 (AVR_ENHANCED): Rename to ...
8411 (AVR_HAVE_MUL): ... new.
8412 (avr_enhanced_p): Rename to ...
8413 (avr_have_mul_p): ... new.
8414 (TARGET_CPU_CPP_BUILTINS): Use 'avr_have_mul_p' instead of
8415 'avr_enhanced_p' for "__AVR_ENHANCED__". Define "__AVR_HAVE_MUL__".
8416 * config/avr/avr.c (avr_enhanced_p): Rename to ...
8417 (avr_have_mul_p): ... new.
8418 (base_arch_s): Rename 'enhanced' to 'have_mul'.
8419 (avr_override_options): Use 'avr_have_mul_p' and 'have_mul' instead of
8420 'avr_enhanced_p' and 'enhanced'.
8421 (ashlhi3_out, ashrhi3_out, lshrhi3_out, avr_rtx_costs): Use
8422 AVR_HAVE_MUL instead of AVR_ENHANCED.
8423 * avr.md (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
8424 (mulqi3, *mulqi3_enh, *mulqi3_call, mulqihi3, umulqihi3, mulhi3,
8425 *mulhi3_enh, *mulhi3_call, mulsi3, *mulsi3_call): Use AVR_HAVE_MUL
8426 instead of AVR_ENHANCED.
8427 (*tablejump_enh): Use AVR_HAVE_LPMX instead of AVR_ENHANCED.
8428 * libgcc.S: Use __AVR_HAVE_MUL__ instead of __AVR_ENHANCED__.
8429 (__tablejump__): Use __AVR_HAVE_LPMX__ instead of __AVR_ENHANCED__.
8430
8431 2007-01-17 Ian Lance Taylor <iant@google.com>
8432
8433 * vec.h (VEC_reserve_exact): Define.
8434 (vec_gc_p_reserve_exact): Declare.
8435 (vec_gc_o_reserve_exact): Declare.
8436 (vec_heap_p_reserve_exact): Declare.
8437 (vec_heap_o_reserve_exact): Declare.
8438 (VEC_OP (T,A,reserve_exact)): New static inline function, three
8439 versions.
8440 (VEC_OP (T,A,reserve)) [all versions]: Remove handling of
8441 negative parameter.
8442 (VEC_OP (T,A,alloc)) [all versions]: Call ...reserve_exact.
8443 (VEC_OP (T,A,copy)) [all versions]: Likewise.
8444 (VEC_OP (T,a,safe_grow)) [all versions]: Likewise.
8445 * vec.c (calculate_allocation): Add exact parameter. Change all
8446 callers.
8447 (vec_gc_o_reserve_1): New static function, from vec_gc_o_reserve.
8448 (vec_gc_p_reserve, vec_gc_o_reserve): Call vec_gc_o_reserve_1.
8449 (vec_gc_p_reserve_exact, vec_gc_o_reserve_exact): New functions.
8450 (vec_heap_o_reserve_1): New static function, from vec_heap_o_reserve.
8451 (vec_heap_p_reserve, vec_heap_o_reserve): Call vec_heap_o_reserve_1.
8452 (vec_heap_p_reserve_exact): New function.
8453 (vec_heap_o_reserve_exact): New function.
8454
8455 2007-01-17 Jan Hubicka <jh@suse.cz>
8456
8457 * ipa-type-escape.c (look_for_casts): Revamp using handled_component_p.
8458
8459 2007-01-17 Eric Christopher <echristo@apple.com>
8460
8461 * config.gcc: Support core2 processor.
8462
8463 2007-01-16 Jan Hubicka <jh@suse.cz>
8464
8465 * tree-ssanames.c (release_dead_ssa_names): Instead of ggc_freeing
8466 the names, just unlink the chain so we don't crash on dangling pointers
8467 to dead SSA names.
8468
8469 2007-01-16 Jan Hubicka <jh@suse.cz>
8470
8471 * cgraph.h (cgraph_decide_inlining_incrementally): Kill.
8472 * tree-pass.h: Reorder to make IPA passes appear toegher.
8473 (pass_early_inline, pass_inline_parameters, pass_apply_inline): Declare.
8474 * cgraphunit.c (cgraph_finalize_function): Do not compute inling
8475 parameters, do not call early inliner.
8476 * ipa-inline.c: Update comments. Include tree-flow.h
8477 (cgraph_decide_inlining): Do not compute inlining parameters.
8478 (cgraph_decide_inlining_incrementally): Return TODOs; assume to
8479 be called with function context set up.
8480 (pass_ipa_inline): Remove unreachable functions before pass.
8481 (cgraph_early_inlining): Simplify assuming to be called from the
8482 PM as local pass.
8483 (pass_early_inline): New pass.
8484 (cgraph_gate_ipa_early_inlining): New gate.
8485 (pass_ipa_early_inline): Turn into simple wrapper.
8486 (compute_inline_parameters): New function.
8487 (gate_inline_passes): New gate.
8488 (pass_inline_parameters): New pass.
8489 (apply_inline): Move here from tree-optimize.c
8490 (pass_apply_inline): New pass.
8491 * ipa.c (cgraph_remove_unreachable_nodes): Verify cgraph after
8492 transforming.
8493 * tree-inline.c (optimize_inline_calls): Return TODOs rather than
8494 doing them by hand.
8495 (tree_function_versioning): Do not allocate dummy struct function.
8496 * tree-inline.h (optimize_inline_calls): Update prototype.
8497 * tree-optimize.c (execute_fixup_cfg): Export.
8498 (pass_fixup_cfg): Remove
8499 (tree_rest_of_compilation): Do not apply inlines.
8500 * tree-flow.h (execute_fixup_cfg): Declare.
8501 * Makefile.in (gt-passes.c): New.
8502 * passes.c: Include gt-passes.h
8503 (init_optimization_passes): New passes.
8504 (nnodes, order): New static vars.
8505 (do_per_function_toporder): New function.
8506 (execute_one_pass): Dump current pass here.
8507 (execute_ipa_pass_list): Don't dump current pass here.
8508
8509 2007-01-16 Janis Johnson <janis187@us.ibm.com>
8510
8511 * config/dfp-bit.c (dfp_compare_op): Return separate value for NaN.
8512 (DFP_NE, DFP_LE, DFP_GE): Return false for NaN.
8513
8514 2007-01-16 David Edelsohn <edelsohn@gnu.org>
8515
8516 * config/rs6000/darwin-ldouble.c: Build file for SOFT_FLOAT.
8517 (strong_alias): Define.
8518 (__gcc_qmul): Provide non-FMA for soft-float.
8519 (__gcc_qdiv): Same.
8520 (__gcc_qneg): New.
8521 (__gcc_qeq): New.
8522 (__gcc_qle): New.
8523 (__gcc_qge): New.
8524 (__gcc_qunord): New.
8525 (__gcc_stoq): New.
8526 (__gcc_dtoq): New.
8527 (__gcc_qtos): New.
8528 (__gcc_qtod): New.
8529 (__gcc_qtoi): New.
8530 (__gcc_qtou): New.
8531 (__gcc_itoq): New.
8532 (__gcc_utoq): New.
8533 (fmsub): New.
8534 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Initialize
8535 soft-float functions.
8536 * config/rs6000/libgcc-ppc-glibc.ver: Version soft-float symbols.
8537 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Do not warn
8538 about long double soft float.
8539
8540 2007-01-16 Dorit Nuzman <dorit@il.ibm.com>
8541 Tehila Meyzels <tehila@il.ibm.com>
8542
8543 * tree-vectorizer.h (is_pattern_stmt_p): New.
8544 * tree-vect-analyze.c (vect_determine_vectorization_factor): Fix
8545 formatting (tabs instead of spaces). Cleanup and clarify setting
8546 of STMT_VINFO_VECTYPE. Call is_pattern_stmt_p.
8547 * tree-vect-transform.c (vect_get_vec_def_for_operand): Fix typo.
8548 (vectorizable_type_demotion): Check that types are integral.
8549 (vectorizable_type_promotion): Likewise.
8550 (vectorizable_store): Fix typo. Eliminate new-line at end of
8551 comments.
8552
8553 2007-01-16 Jan Hubicka <jh@suse.cz>
8554
8555 * tree-ssanames.c (release_dead_ssa_names): Remove invalidated
8556 cgraph edges too.
8557
8558 2007-01-15 Eric Christopher <echristo@apple.com>
8559
8560 * ifcvt.c: Include vec.h, vecprim.h.
8561 (check_cond_move_block): New argument regs.
8562 Reorganize. Add registers used to regs.
8563 (cond_move_process_if_block): Use regs set above as
8564 loop bounds.
8565
8566 2007-01-15 Eric Christopher <echristo@apple.com>
8567
8568 * config/darwin.h: Update copyright.
8569 (TARGET_OPTION_TRANSLATE_TABLE): Add umbrella.
8570 (LINK_COMMAND_SPEC): Add -u.
8571 (LINK_SPEC): Fix umbrella for above.
8572
8573 2007-01-15 Joseph S. Myers <joseph@codesourcery.com>
8574
8575 * config/soft-fp/op-common.h, config/soft-fp/op-4.h: Update from
8576 glibc CVS.
8577
8578 2007-01-15 Tom Tromey <tromey@redhat.com>
8579
8580 * doc/sourcebuild.texi (libgcj Tests): Don't mention jacks.
8581 * doc/install.texi (Testing): Don't mention jacks.
8582 (Configuration): Document --enable-java-maintainer-mode. Move
8583 --with-java-home to libgcj-specific section. Document
8584 --with-ecj-jar.
8585 (Prerequisites): Mention --enable-java-maintainer-mode, ecj1.
8586
8587 2007-01-15 Jan Hubicka <jh@suse.cz>
8588
8589 * tree-ssa-dce.c (DCE_TODOs): New.
8590 (propagate_necessity): Return if something changed.
8591 (eliminate_unnecessary_stmts): Likewise.
8592 (perform_tree_ssa_dce): Return TODO flags when needed.
8593 (pass_dce, pass_dce_loop, pass_cd_dce): Remove TODO flags.
8594
8595 2007-01-15 Uros Bizjak <ubizjak@gmail.com>
8596
8597 * config/i386/i386.md (fyl2xxf3_i387): Rename from fyl2x_xf3.
8598 (fyl2x_extend<mode>xf3_i387): New insn pattern.
8599 (log<mode>2): Rename from logsf2 and logdf2 and macroize insn
8600 patterns using X87MODEF12 mode macro. Extend operand 1
8601 to XFmode. Use SSE_FLOAT_MODE_P to disable patterns for SSE math.
8602 (log10<mode>2): Ditto.
8603 (log2<mode>2): Ditto.
8604 (log1p<mode>2): Ditto.
8605 (logb<mode>2): Ditto.
8606 (fyl2xp1xf3_i387): Rename from fyl2xp1_xf3.
8607 (fyl2xp1_extend<mode>xf3_i387): New insn pattern.
8608 (*fxtractxf3_i387): Rename from *fxtractxf3.
8609 (fxtract_extend<mode>xf3_i387): New insn pattern.
8610 (ilogbsi2): Use match_dup 3, not match_operand:XF 3.
8611 * config/i386/i386.c (ix86_emit_i387_log1p): Use gen_fyl2xp1xf3_i387()
8612 and gen_fyl2xxf3_i387().
8613
8614 2007-01-14 Zdenek Dvorak <dvorakz@suse.cz>
8615
8616 * loop-unswitch.c (unswitch_loop): Do not call fix_loop_placement.
8617 * cfgloopmanip.c (fix_loop_placement): Made static. Use
8618 get_loop_exit_edges. Changed return type to bool.
8619 * cfgloop.h (fix_loop_placement): Declaration removed.
8620
8621 2007-01-14 Dorit Nuzman <dorit@il.ibm.com>
8622
8623 * param.h (MIN_VECT_LOOP_BOUND): New.
8624 * params.def (MIN_VECT_LOOP_BOUND): New.
8625 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Takes another
8626 argument - minimum threshold for number of iterations.
8627 * tree-vectorizer.h (slpeel_tree_peel_loop_to_edge): Add another
8628 argument to declaration.
8629 * tree-vect-analyze.c (vect_analyze_operations): Check value of
8630 MIN_VECT_LOOP_BOUND.
8631 * tree-vect-transform.c (vect_do_peeling_for_loop_bound): Call
8632 slpeel_tree_peel_loop_to_edge with additional argument.
8633 (vect_do_peeling_for_alignment): Likewise.
8634 * doc/invoke.texi (min-vect-loop-bound): Document new param option.
8635
8636 2007-01-14 Uros Bizjak <ubizjak@gmail.com>
8637
8638 PR target/30413
8639 * config/i386/i386.c (print_operand) ['z']: Output 'b' for
8640 operands of size 1.
8641
8642 2007-01-14 Jan Hubicka <jh@suse.cz>
8643
8644 * tree-dfa.c (remove_referenced_var): New function.
8645 * tree-ssa-live.c (remove_unused_locals): Walk referenced vars and
8646 prune referenced vars list too.
8647 * tree-flow.h (remove_referenced_var): Declare.
8648
8649 2007-01-14 Jan Hubicka <jh@suse.cz>
8650
8651 * tree-eh.c (add_stmt_to_eh_region_fn): Do not add call_exprs
8652 separately.
8653 (remove_stmt_from_eh_region_fn): Do not remove call_exprs.
8654 (verify_eh_throw_stmt_node, verify_eh_throw_table_statements): Kill.
8655 * except.h (verify_eh_throw_table_statements): Kill prototype.
8656 * cfgexpand.c (expand_gimple_basic_block): Propagate Eh regions
8657 into call exrepssions.
8658 * tree-optimize.c (execute_free_cfg_annotatiosn): Do not call
8659 eh trhow verifier.
8660 * tree-cfg.c: Include pointer-set.h.
8661 (verify_node_sharing): Work on pointer set.
8662 (verify_eh_throw_stmt_node): New.
8663 (verify_stmts): Use pointers sets, verify throw_stmt.
8664
8665 2007-01-13 Zdenek Dvorak <dvorakz@suse.cz>
8666
8667 * ipa-reference.c (analyze_function): Consider also addresses taken
8668 in phi nodes.
8669
8670 2007-01-12 Roger Sayle <roger@eyesopen.com>
8671
8672 * c-typeck.c (null_pointer_constant_p): Replace use of
8673 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
8674 (build_c_cast): Likewise.
8675
8676 2007-01-12 Roger Sayle <roger@eyesopen.com>
8677
8678 * tree.h (force_fit_type_double): Remove unused final argument.
8679 * c-common.c (constant_expression_warning): Replace use of
8680 TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
8681 (convert_and_check): Likewise.
8682 (shorten_compare): Update call to force_fit_type_double.
8683 (c_common_truthvalue_conversion) <INTEGER_CST>: Use integer_zerop.
8684 * convert.c (convert_to_pointer): Update call to
8685 force_fit_type_double.
8686 * fold-const.c (force_fit_type_double): Remove overflowed_const
8687 argument.
8688 (int_const_binop, fold_convert_const_int_from_int,
8689 fold_convert_const_int_from_real, fold_div_compare,
8690 fold_sign_changed_comparison, fold_unary, fold_negate_const,
8691 fold_abs_const, fold_not_const): Remove the final argument from
8692 calls to force_fit_type_double.
8693
8694 2007-01-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
8695
8696 * configure.ac: Set insn to "nop" for spu-*-* also.
8697 * configure: Regenerate.
8698
8699 2007-01-12 Olga Golovanevsky <olga@il.ibm.com>
8700
8701 * builtins.def : Add BUILT_IN_FREE.
8702
8703 2007-01-12 Jan Hubicka <jh@suse.cz>
8704
8705 PR tree-optimization/30443
8706 * tree-inline.c (tree_function_versioning): Do not optimize when
8707 cloning for inlining.
8708
8709 2007-01-12 Zdenek Dvorak <dvorakz@suse.cz>
8710
8711 * doc/loop.texi: Document recording of loop exits.
8712 * cfgloopmanip.c (loopify, duplicate_loop): Use alloc_loop.
8713 (update_single_exits_after_duplication,
8714 update_single_exit_for_duplicated_loop,
8715 update_single_exit_for_duplicated_loops): Removed.
8716 (duplicate_loop_to_header_edge): Do not call
8717 update_single_exits_after_duplication and
8718 update_single_exit_for_duplicated_loops.
8719 (loop_version): Do not update single_exit information.
8720 (fix_loop_structure): Use record_loop_exits instead of
8721 mark_single_exit_loops.
8722 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update
8723 the lists of loop exits.
8724 * cfghooks.c (redirect_edge_and_branch, redirect_edge_and_branch_force,
8725 split_edge, merge_blocks): Update the lists of loop exits.
8726 * modulo-sched.c (sms_schedule): Pass LOOPS_HAVE_RECORDED_EXITS to
8727 loop_optimizer_init.
8728 * loop-init.c (loop_optimizer_init): Call record_loop_exits instead
8729 of mark_single_exit_loops.
8730 (loop_optimizer_finalize): Call release_recorded_exits.
8731 * tree-ssa-loop.c (tree_loop_optimizer_init): Pass
8732 LOOPS_HAVE_RECORDED_EXITS to loop_optimizer_init.
8733 * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg): Do not
8734 update single exit information.
8735 * lambda-code.c (perfect_nestify): Ditto.
8736 * cfgloop.c (flow_loop_free): Destroy the list of exits of the loop.
8737 (mark_single_exit_loops): Removed.
8738 (alloc_loop, loop_exit_hash, loop_exit_eq, loop_exit_free,
8739 get_exit_descriptions, rescan_loop_exit, record_loop_exits,
8740 dump_recorded_exit, dump_recorded_exits, release_recorded_exits): New
8741 functions.
8742 (get_loop_exit_edges, single_exit): Use recorded exit lists.
8743 (add_bb_to_loop, remove_bb_from_loops): Update the lists of loop exits.
8744 (verify_loop_structure): Verify consistency of the exit lists.
8745 (flow_loops_find): Use alloc_loop. Initialize exits hash.
8746 (set_single_exit): Removed.
8747 * cfgloop.h (struct loop_exit): New function.
8748 (struct loop): single_exit_ field replaced by exits field.
8749 (LOOPS_HAVE_MARKED_SINGLE_EXITS): Replaced by LOOPS_HAVE_RECORDED_EXITS.
8750 (struct loops): Added exits hash.
8751 (mark_single_exit_loops, set_single_exit): Declaration removed.
8752 (release_recorded_exits, record_loop_exits, rescan_loop_exit): Declare.
8753
8754 2007-01-12 Richard Sandiford <richard@codesourcery.com>
8755
8756 * doc/invoke.texi: Avoid use of @headitem.
8757
8758 2007-01-12 Richard Sandiford <richard@codesourcery.com>
8759
8760 * cse.c (cse_insn): Move HAVE_CC0 code after declarations.
8761
8762 2007-01-12 Richard Sandiford <richard@codesourcery.com>
8763
8764 * doc/install.texi: Fix m68k-*-* anchor and add m68k-*-* to the
8765 list of targets.
8766
8767 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
8768 Richard Sandiford <richard@codesourcery.com>
8769
8770 * doc/invoke.texi: Document -mno-bitfield, -mno-rtd and -mno-short.
8771 * config/m68k/m68k.opt: Resort options.
8772 (mbitfield, mrtd, mshort): Remove RejectNegative properties.
8773
8774 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
8775 Richard Sandiford <richard@codesourcery.com>
8776
8777 * doc/invoke.texi: Document the macros that are defined by
8778 m68k's -mtune and -mhard-float options.
8779 * config/m68k/m68k-protos.h (m68k_cpp_cpu_ident) Declare.
8780 (m68k_cpp_cpu_family): Likewise.
8781 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add a full set
8782 of __ucfv*__ macros. Define __mcffpu__ if generating code for
8783 ColdFire FPUs. Define __mcf_cpu_* and __mcf_family_* macros.
8784 * config/m68k/m68k.c (m68k_cpp_cpu_ident): New function.
8785 (m68k_cpp_cpu_family): Likewise.
8786
8787 2007-01-12 Richard Sandiford <richard@codesourcery.com>
8788
8789 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Treat all mc68*
8790 macros besides mc68000 as tuning macros. Use a switch statement
8791 to set them and mcpu32.
8792
8793 2007-01-12 Julian Brown <julian@codesourcery.com>
8794
8795 * config/m68k/m68k.h: Use TARGET_68040 instead of TARGET_68040_ONLY.
8796 (TARGET_68040_ONLY): Rename to...
8797 (TARGET_68040): ...this.
8798 * config/m68k/m68k.c: Use TARGET_68040 instead of TARGET_68040_ONLY.
8799 * config/m68k/m68k.md: Likewise.
8800
8801 2007-01-12 Julian Brown <julian@codesourcery.com>
8802 Nathan Sidwell <nathan@codesourcery.com>
8803 Richard Sandiford <richard@codesourcery.com>
8804
8805 * config.gcc (m680[012]0-*-*, m68k*-*-*): Set m68k_cpu_ident to
8806 the -mcpu= argument associated with the --with-cpu setting.
8807 Define M68K_DEFAULT_TUNE to the default -mtune= option,
8808 if different from the one implied by the -mcpu setting.
8809 Accept --with-cpu=FOO if FOO is listed in m68k-devices.def,
8810 using mcpu=FOO as the default CPU option. Set target_cpu_default2.
8811 * doc/invoke.texi: Mention ColdFire in the introduction to the
8812 m68k options. Document the new -march, -mcpu, -mtune, -mdiv,
8813 -mno-div and -mhard-float options. Make -m68881 a synonym for
8814 -mhard-float. Document the previously-undocumented -m5206e,
8815 -m528x, -m5307 and -m5407 options. Tweak the existing option
8816 documentation for consistency.
8817 * doc/install.texi: Mention new --with-cpu arguments.
8818 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Only use the
8819 default CPU if neither -mcpu nor -march are specified.
8820 (ASM_CPU_SPEC): Pass down -mcpu and -march options.
8821 (TARGET_CPU_CPP_BUILTINS): Set __mcfisa*__ macros from
8822 TARGET_ISA*. Set the legacy __mcf*__ cpu macros in the same way,
8823 using m68k_tune to decide between families that implement the
8824 same ISA. Use m68k_tune to set __mcfv4e__.
8825 (FL_BITFIELD, FL_68881, FL_COLDFIRE, FL_CF_HWDIV, FL_CF_MAC)
8826 (FL_CF_EMAC, FL_CF_EMAC_B, FL_CF_USP, FL_CF_FPU, FL_ISA_68000)
8827 (FL_ISA_68010, FL_ISA_68020, FL_ISA_68040, FL_ISA_A, FL_ISA_B)
8828 (FL_ISA_C, FL_ISA_MMU): New macros.
8829 (MASK_COLDFIRE): Delete.
8830 (TARGET_68010, TARGET_68020, TARGET_68040_ONLY, TARGET_COLDFIRE)
8831 (TARGET_ISAB): Redefine in terms of m68k_cpu_flags.
8832 (TARGET_68881, TARGET_COLDFIRE_FPU): Redefine in terms of m68k_fpu.
8833 (TARGET_HARD_FLOAT): Do not define here.
8834 (TARGET_ISAAPLUS, TARGET_ISAC): New macros.
8835 (TUNE_68000): New macro.
8836 (TUNE_68000_10): Redefine in terms of TUNE_68000 and TUNE_68010.
8837 (TUNE_68010, TUNE_68030, TUNE_68040, TUNE_68060, TUNE_CPU32)
8838 (TUNE_CFV2): Redefine in terms of m68k_tune.
8839 (uarch_type, target_device, fpu_type): New enums.
8840 (m68k_cpu, m68k_tune, m68k_fpu, m68k_cpu_flags): Declare.
8841 * config/m68k/m68k.c (TARGET_DEFAULT): Remove MASK_68881.
8842 (FL_FOR_isa_00, FL_FOR_isa_10, FL_FOR_isa_20, FL_FOR_isa_40)
8843 (FL_FOR_isa_cpu32, FL_FOR_isa_a, FL_FOR_isa_aplus, FL_FOR_isa_b)
8844 (FL_FOR_isa_c): New macros.
8845 (m68k_isa): New enum.
8846 (m68k_target_selection): New structure.
8847 (all_devices, all_isas, all_microarchs): New tables.
8848 (m68k_cpu_entry, m68k_arch_entry, m68k_tune_entry, m68k_cpu)
8849 (m68k_tune, m68k_fpu, m68k_cpu_flags): New variables.
8850 (MASK_ALL_CPU_BITS): Delete.
8851 (m68k_find_selection): New function.
8852 (m68k_handle_option): Handle -mcpu=, -march= and -mtune=.
8853 Map the legacy target options to a combination of the new ones.
8854 (override_options): Set m68k_cpu, m68k_tune, m68k_fpu and
8855 m68k_cpu_flags. Handle M68K_DEFAULT_TUNE. Use m68k_cpu_flags
8856 to derive default MASK_BITFIELD, MASK_CF_HWDIV and MASK_HARD_FLOAT
8857 settings.
8858 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407, mcfv4e)
8859 (m68010, m68020, m68020-40, m68020-60, m68030, m68040): Remove Mask
8860 properties.
8861 (m68881, msoft-float): Change mask from 68881 to HARD_FLOAT.
8862 (march=, mcpu=, mdiv, mhard-float, mtune=): New options.
8863 * config/m68k/m68k-devices.def: New file.
8864
8865 2007-01-12 Richard Sandiford <richard@codesourcery.com>
8866 Nathan Sidwell <nathan@codesourcery.com>
8867
8868 * config/m68k/m68k.h (ASM_CPU_SPEC, ASM_SPEC, EXTRA_SPECS)
8869 (SUBTARGET_EXTRA_SPECS): New macros.
8870 * config/m68k/linux.h (ASM_SPEC): Remove CPU flags;
8871 use %(asm_cpu_spec) instead.
8872 * config/m68k/m68k-none.h (ASM_SPEC): Likewise.
8873 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
8874 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
8875 (EXTRA_SPECS): Rename to...
8876 (SUBTARGET_EXTRA_SPECS): ...this.
8877
8878 2007-01-12 Nathan Sidwell <nathan@codesourcery.com>
8879 Richard Sandiford <richard@codesourcery.com>
8880 Julian Brown <julian@codesourcery.com>
8881
8882 * config.gcc (m68k-*-aout*, m68k-*-coff*, m68020-*-elf*, m68k-*-elf*)
8883 (m68k-*-uclinux*, m68k-*-linux*, m68k-*-rtems*): Set default_m68k_cpu
8884 to the configuration's default CPU.
8885 (m68010-*-netbsdelf*, m68k*-*-netbsdelf*, m68k*-*-openbsd*): Likewise.
8886 Remove default masks.
8887 (m680[012]0-*-*): Set the default with_cpu to the first part of
8888 the target name.
8889 (m68k*-*-*): Set the default with_cpu to m$default_m68k_cpu.
8890 (m68k*-*-linux): Extend the --with-cpu handling to...
8891 (m680[012]0-*-*, m68k*-*-*): ...these configurations. Allow m68000
8892 and m68010. Don't set target_cpu_default2.
8893 * doc/install.texi: Document --with-cpu for m68k.
8894 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS): Define.
8895 * config/m68k/m68k-none.h (TARGET_CPU_DEFAULT, M68K_CPU_m68k)
8896 (M68K_CPU_m68000, M68K_CPU_m68010, M68K_CPU_m68020, M68K_CPU_m68030)
8897 (M68K_CPU_m68040, M68K_CPU_m68302, M68K_CPU_m68332, TARGET_DEFAULT)
8898 (ASM_CPU_DEFAULT_SPEC, CC1_CPU_DEFAULT_SPEC): Delete.
8899 (ASM_SPEC): Remove use of %(asm_cpu_default).
8900 (EXTRA_SPECS, SUBTARGET_EXTRA_SPECS, MULTILIB_DEFAULTS): Delete.
8901 * config/m68k/linux.h (TARGET_DEFAULT): Delete.
8902 (CPP_SPEC): Merge definitions. Do not handle __HAVE_68881__ here.
8903 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define
8904 __HAVE_FPU__ if TARGET_HARD_FLOAT.
8905 (TARGET_DEFAULT): Delete.
8906 (EXTRA_SPECS): Delete cpp_cpu_default_spec, cpp_cpu_spec,
8907 cpp_fpu_spec, asm_default_spec and netbsd_cpp_spec.
8908 (CPP_CPU_SPEC): Delete.
8909 (TARGET_VERSION): Merge definitions, using TARGET_68010 to pick
8910 the appropriate string.
8911 (CPP_CPU_DEFAULT_SPEC, ASM_DEFAULT_SPEC, CPP_FPU_SPEC): Delete.
8912 (CPP_SPEC): Define to NETBSD_CPP_SPEC.
8913 (ASM_SPEC): Don't use %(asm_default_spec).
8914 * config/m68k/m68k.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
8915 TARGET_DEFAULT and add MASK_68881.
8916 * config/m68k/m68k.md: Remove mention of TARGET_DEFAULT from comments.
8917
8918 2007-01-12 Richard Sandiford <richard@codesourcery.com>
8919
8920 * config.gcc (m68010-*-netbsdelf*): Add MASK_68010.
8921 (m68k*-*-netbsdelf*, m68k*-*-openbsd*, m68k*-linux*): Add
8922 MASK_68010 alongside MASK_68020.
8923 * doc/invoke.texi: Document -m68010.
8924 * config/m68k/m68k.opt (m68010): New.
8925 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define mc68010
8926 if TUNE_68010.
8927 (TUNE_68010): New macro.
8928 * config/m68k/m68k-none.h (M68K_CPU_m68k, M68K_CPU_m68010)
8929 (M68K_CPU_m68020, M68K_CPU_m68030, M68K_CPU_m68040)
8930 (M68K_CPU_m68332): Add MASK_68010.
8931 * config/m68k/linux.h (TARGET_DEFAULT): Add MASK_68010 to
8932 fallback definition.
8933 * config/m68k/netbsd-elf.h (CPP_CPU_SPEC): Remove now-redundant
8934 defines.
8935 * config/m68k/m68k.c (MASK_ALL_CPU_BITS): Add MASK_68010.
8936 (m68k_handle_option): Handle OPT_m68010. Add MASK_68010
8937 to all entries that use MASK_68020.
8938 (output_move_simode_const, output_move_himode, output_move_qimode)
8939 (output_move_stricthi, output_move_strictqi): Use TARGET_68010
8940 instead of TARGET_68020 to select clr behavior. Remove comment
8941 about there being no TARGET_68010.
8942 * config/m68k/m68k.md: Likewise throughout.
8943
8944 2007-01-12 Julian Brown <julian@codesourcery.com>
8945
8946 * config/m68k/m68k.h (TARGET_ISAB): New macro.
8947 * config/m68k/m68k.c: Use TARGET_ISAB rather than TARGET_CFV4.
8948 * config/m68k/m68k.md: Likewise.
8949
8950 2007-01-12 Julian Brown <julian@codesourcery.com>
8951
8952 * config/m68k/m68k.h (LEGITIMATE_INDEX_P, LEGITIMIZE_ADDRESS): Use
8953 TARGET_COLDFIRE_FPU instead of TARGET_CFV4E.
8954
8955 2007-01-12 Julian Brown <julian@codesourcery.com>
8956
8957 * config/m68k/m68k.h (TUNE_68040_60): New macro.
8958 * config/m68k/m68k.c (standard_68881_constant_p): Use it.
8959 * config/m68k/m68k.md: Likewise.
8960
8961 2007-01-12 Julian Brown <julian@codesourcery.com>
8962 Richard Sandiford <richard@codesourcery.com>
8963
8964 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Use TUNE_68030
8965 instead of TARGET_68030, TUNE_68040 instead of TARGET_68040,
8966 TUNE_68060 instead of TARGET_68060 and TUNE_CPU32 instead of
8967 TARGET_CPU32.
8968 (TARGET_CPU32): Rename to...
8969 (TUNE_CPU32): ...this.
8970 (TUNE_68000_10, TUNE_68030, TUNE_68040, TUNE_68060)
8971 (TUNE_CFV2): New macros.
8972 * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Simplify;
8973 remove conditions that are implied by TARGET_68020.
8974 * config/m68k/m68k.c (m68k_output_function_prologue): Use TUNE_68040
8975 instead of TARGET_68040 and TUNE_CPU32 instead of TARGET_CPU32.
8976 (m68k_output_function_epilogue): Likewise.
8977 (m68k_rtx_costs): Likewise. Use TUNE_68060 instead of TARGET_68060
8978 and TUNE_CFV2 instead of TARGET_5200. Use TUNE_68000_10 instead of
8979 "!TARGET_68020 && !TARGET_COLDFIRE" to choose between 68000 and
8980 non-68000 timings. Refactor multiplication and division costs.
8981 (output_addsi3): Use TUNE_68040 instead of TARGET_68040 and
8982 TUNE_CPU32 instead of TARGET_CPU32.
8983 (standard_68881_constant_p): Use TUNE_68040 instead of TARGET_68040
8984 and TUNE_68060 instead of TARGET_68060.
8985 * config/m68k/m68k.md: Use TUNE_68040 instead of TARGET_68040,
8986 TUNE_68060 instead of TARGET_68060, and TUNE_CPU32 instead of
8987 TARGET_CPU32.
8988 (movsi_const0): Use TUNE_68000_10 rather than "!TARGET_68020
8989 && !TARGET_COLDFIRE" to choose between moveq and clr.
8990 Likewise in the unnamed movsf pattern.
8991 (ashlsi_17_24, lshrsi_17_24): Guard with TUNE_68000_10 rather than
8992 "!TARGET_68020 && !TARGET_COLDFIRE". Likewise the unnamed
8993 ashiftrt pattern.
8994
8995 2007-01-12 Richard Sandiford <richard@codesourcery.com>
8996
8997 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Increase amount
8998 of tabbing before backslashes.
8999
9000 2007-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9001
9002 * pa-linux.h (ASM_OUTPUT_INTERNAL_LABEL): Undefine.
9003 * pa.h (ASM_OUTPUT_LABEL): Output colon when using GAS.
9004 (ASM_OUTPUT_INTERNAL_LABEL): Define.
9005
9006 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
9007
9008 * tree-ssa-loop-ivopts.c (extract_cond_operands): Split from
9009 find_interesting_uses_cond.
9010 (find_interesting_uses_cond): Use extract_cond_operands.
9011 (rewrite_use_compare): Use extract_cond_operands and
9012 force_gimple_operand_bsi. Do not call update_stmt.
9013 (determine_use_iv_cost_condition): Use extract_cond_operands.
9014 Return cheaper of using original bound and changing the exit bound.
9015
9016 2007-01-11 Zdenek Dvorak <dvorakz@suse.cz>
9017
9018 PR tree-optimization/29516
9019 * tree-ssa-address.c (tree_mem_ref_addr, add_to_parts,
9020 most_expensive_mult_to_index, addr_to_parts,
9021 create_mem_ref, maybe_fold_tmr): Make the type of
9022 fields of TARGET_MEM_REF sizetype.
9023 (move_fixed_address_to_symbol, move_pointer_to_base):
9024 New functions.
9025 * tree.def (TARGET_MEM_REF): Add comment on types of
9026 the operands.
9027
9028 2007-01-11 Joseph Myers <joseph@codesourcery.com>
9029
9030 * c-common.c (vector_types_convertible_p): Treat opaque types as
9031 always convertible if they have the same size, but not otherwise.
9032
9033 2007-01-11 Steven Bosscher <steven@gcc.gnu.org>
9034
9035 * ifcvt.c (struct noce_if_info): Add comments to the fields.
9036 Remove the b_unconditional field.
9037 (noce_try_sign_mask): Do not look at b_unconditional.
9038 (noce_process_if_block): Do not use merge_if_blocks. Update
9039 the CFG here. Do not set b_unconditional.
9040 (cond_move_process_if_block): Likewise.
9041 (find_cond_trap): Likewise.
9042 (check_cond_move_block): Require simple jump insns at the end
9043 of the basic block.
9044
9045 2007-01-11 Jan Hubicka <jh@suse.cz>
9046
9047 PR tree-optimization/1046
9048 * tree-tailcall.c (suitable_for_tail_call_opt_p): Use TREE_ADDRESSABLE
9049 when alias info is not ready.
9050 (pass_tail_recursion): Do not require aliasing.
9051 * tree-ssa-copyrename.c (pass_rename_ssa_cop): Likewise.
9052 * tree-ssa-ccp.c (pass_ccp, pass_fold_builtins): Likewise.
9053 * tree-ssa-copy.c (pass_copy_prop): Likewise.
9054 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
9055 * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Likewise.
9056 * passes.c (init_optimization_passes): Execute rename_ssa_copies,
9057 ccp, forwprop, copy_prop, merge_phi, copy_prop, dce and tail recursion
9058 before inlining.
9059 * tree-ssa-operands.c (add_virtual_operand, get_indirect_ref_operand):
9060 When aliasing is not build, mark statement as volatile.
9061
9062 2007-01-11 Tom Tromey <tromey@redhat.com>
9063
9064 PR preprocessor/15185, PR preprocessor/20989:
9065 * doc/cppopts.texi <-MT>: Update description of algorithm for
9066 computing default target.
9067 <-M, -MD>: Reword "basename" text.
9068
9069 2007-01-11 Roger Sayle <roger@eyesopen.com>
9070
9071 * builtins.c (expand_builtin_pow, expand_builtin_powi,
9072 fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_trunc,
9073 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
9074 fold_builtin_int_int_roundingfn, fold_builtin_bitop,
9075 fold_builtin_bswap, real_constp, fold_builtin_pow,
9076 fold_builtin_powi, fold_builtin_signbit, fold_builtin_copysign,
9077 do_mpfr_arg1, do_mpfr_arg2, do_mpfr_arg3, do_mpfr_sincos): Replace
9078 uses of the macro TREE_CONSTANT_OVERFLOW with TREE_OVERFLOW.
9079 * convert.c (convert_to_pointer): Likewise.
9080 * expr.c (highest_pow2_factor, expand_expr_real_1): Likewise.
9081 * fold-const.c (force_fit_type, fold_negate_expr, int_const_binop,
9082 const_binop, fold_convert_const_int_from_int,
9083 fold_convert_const_int_from_real,
9084 fold_convert_const_real_from_real, sign_bit_p,
9085 optimize_minmax_comparison, extract_muldiv_1, fold_div_compare,
9086 fold_sign_changed_comparison, fold_unary, fold_comparison,
9087 fold_binary, multiple_of_p, tree_Expr_non_zero_p,
9088 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
9089 * print-tree.c (print_node_brief, print_node): Likewise.
9090 * stor-layout.c (place_field, layout_type): Likewise.
9091 * tree-chrec.c (keep_cast): Likewise.
9092 * tree.c (build_vector, build_real, build_real_from_int_cst,
9093 build_complex): Likewise.
9094
9095 2007-01-11 Roger Sayle <roger@eyesopen.com>
9096
9097 * tree.h (TREE_CONSTANT_OVERFLOW): Obsolete. For the time being,
9098 treat TREE_CONSTANT_OVERFLOW as a synonym of TREE_OVERFLOW.
9099
9100 2007-01-11 Paolo Bonzini <bonzini@gnu.org>
9101
9102 * configure.ac (strict1_warn): Rename to strict_warn.
9103 (WERROR, --enable-werror, symlink hacks, stage1_cflags,
9104 cc_set_by_configure, quoted_cc_set_by_configure,
9105 stage_prefix_set_by_configure, quoted_stage_prefix_set_by_configure,
9106 all_boot_languages, all_stagestuff): Remove.
9107 (target_list): Remove bootstrap targets.
9108 * Makefile.in (quickstrap): Unconditionally make a synonym of all.
9109 (BOOT_LANGUAGES, STAGE1_CFLAGS, STAGE1_CHECKING,
9110 REMAKEFLAGS, FLAGS_TO_PASS, PREPEND_DOTDOT_TO_RELATIVE_PATHS,
9111 SUBDIR_FLAGS_TO_PASS, WERROR_FLAGS, STRICT2_WARN, LANG_STAGESTUFF,
9112 VOL_FILES, POSTSTAGE1_FLAGS_TO_PASS, STAGE2_FLAGS_TO_PASS,
9113 STAGEPROFILE_FLAGS_TO_PASS, STAGEFEEDBACK_FLAGS_TO_PASS, stage1_build,
9114 stage1_copy, stage2_build, stage2_copy, stageprofile_build,
9115 stageprofile_copy, stage3_build, stage3_copy, stagefeedback_build,
9116 stagefeedback_copy, stage4_build, clean_s1, clean_sw, bootstrap,
9117 bootstrap-lean, bootstrap2, bootstrap2-lean, bootstrap3,
9118 bootstrap3-lean, bootstrap4, bootstrap4-lean, unstage1, unstage2,
9119 unstage3, unstage4, unstageprofile, unstagefeedback, restage, restage2,
9120 restage3, restage4, restageprofile, restagefeedback, bubbleestrap,
9121 cleanstrap, unstrap, restrap, *compare, *compare3, *compare4,
9122 *compare-lean, *compare3-lean, *compare4-lean, stage1-start, stage1,
9123 stage2-start, stage2, stage3-start, stage3, stage4-start, stage4,
9124 stageprofile-start, stageprofile, stagefeedback-start, stagefeedback,
9125 risky-stage1, risky-stage2, risky-stage3, risky-stage4): Remove.
9126 (ORDINARY_FLAGS_TO_PASS): Rename to FLAGS_TO_PASS.
9127 (STAGECOPYSTUFF, STAGEMOVESTUFF): Consolidate into MOSTLYCLEANFILES.
9128 (mostlyclean): Adjust.
9129 (clean, distclean): Don't mention bootstrap stuff.
9130 * configure: Regenerate.
9131 * ada/config-lang.in, cp/config-lang.in, forttran/config-lang.in,
9132 java/config-lang.in, objc/config-lang.in, objcp/config-lang.in,
9133 treelang/config-lang.in (stagestuff): Remove.
9134 * doc/sourcebuild.texi (stage1, stage2, stage3, stage4,
9135 stageprofile, stagefeedback, stagestuff): Remove mention.
9136
9137 2007-01-11 Nick Clifton <nickc@redhat.com>
9138
9139 * config/mcore/predicates.md (mcore_general_movesrc_operand):
9140 Accept CONSTs.
9141 (mcore_general_movdst_operand): Do not accept CONST_INTs.
9142 (mcore_arith_K_S_operand): Run the test for the S constraint not
9143 the test for the M constraint.
9144 (mcore_addsub_operand): Do not accept integer values that are
9145 larger than 32 bits.
9146 * config/mcore/mcore.md: Remove unused constraints from split.
9147 (andsi3): Use HOST_WIDE_INT instead of int to hold an INTVAL.
9148 (addsi3): Likewise.
9149 (allocate_stack): Likewise.
9150 * config/mcore/mcore.c (mcore_print_operand): Restrict output of P
9151 operands to 32 bits.
9152 (mcore_const_costs): Use HOST_WIDE_INT instead of int to hold an
9153 INTVAL.
9154 (mcore_and_cost, mcore_modify_comparison, const_ok_for_mcore,
9155 mcore_const_ok_for_inline, mcore_const_trick_uses_not,
9156 try_constant_tricks, mcore_num_ones, mcore_num_zeros,
9157 mcore_output_bclri, mcore_output_andn, output_inline_const,
9158 mcore_output_move, mcore_output_movedouble): Likewise.
9159 (mcore_output_cmov): Use CONST_OK_FOR_M and CONST_OK_FOR_N.
9160 (output_inline_const): Likewise.
9161 (output_inline_const): Fix format strings used in sprintf
9162 statements.
9163 * config/mcore/mcore-protos.h: Update prototypes for changed
9164 functions in mcore.c.
9165 * config/mcore/mcore.h (CONST_OK_FOR_I): Cast values to
9166 HOST_WIDE_INT and not int.
9167 (CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M,
9168 CONST_OK_FOR_N): Likewise.
9169 (LEGITIMATE_CONSTANT_P): Also check CONSTANT_P.
9170 (GO_IF_LEGITIMATE_INDEX): Use HOST_WIDE_INT instead of int to hold
9171 an INTVAL.
9172
9173 2007-01-10 Jan Hubicka <jh@suse.cz>
9174
9175 * tree-vrp.c (remove_range_assertions): Release defs.
9176 * tree-ssa-loop-ivopts.c (rmeove_statement): Likewise.
9177 * tree-ssa-dom.c (remove_stmt_or_phi): Likewise.
9178
9179 2007-01-10 Paul Brook <paul@codesourcery.com>
9180
9181 * config/arm/arm.c (arm_rtx_costs_1): Handle mutiply-subtract.
9182 * config/arm/arm.md (mulsi3subsi): New insn.
9183
9184 2007-01-10 Zdenek Dvorak <dvorakz@suse.cz>
9185
9186 * tree-ssa-loop-manip.c (tree_unroll_loop): Make it a wrapper over ...
9187 (tree_transform_and_unroll_loop): New.
9188 * tree-flow.h (transform_callback, tree_transform_and_unroll_loop):
9189 Declare.
9190
9191 2007-01-10 Robert Kennedy <jimbob@google.com>
9192
9193 * fold-const.c (fold_comparison): Fold comparisons like (x *
9194 1000 < 0) to (x < 0).
9195
9196 2007-01-10 Ian Lance Taylor <iant@google.com>
9197
9198 * tree-pretty-print.c (dump_generic_node): Print parentheses when
9199 operands have the same priority.
9200
9201 2007-01-10 Tom Tromey <tromey@redhat.com>
9202
9203 * fold-const.c (fold_truthop): Don't check can_use_bit_fields_p.
9204 (fold_binary): Likewise.
9205 * langhooks.c (lhd_can_use_bit_fields_p): Removed.
9206 * langhooks-def.h (lhd_can_use_bit_fields_p): Removed.
9207 (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): Removed.
9208 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_CAN_USE_BIT_FIELDS_P.
9209 * langhooks.h (struct lang_hooks): Removed field
9210 'can_use_bit_fields_p'.
9211
9212 2007-01-10 Ralf Corsépius <ralf.corsepius@rtems.org>
9213
9214 * config/bfin/t-bfin, config/bfin/t-bfin-elf: Remove GCC_CFLAGS.
9215
9216 2007-01-10 Razya Ladelsky <razya@il.ibm.com>
9217
9218 * function.c (get_last_funcdef_no): New function.
9219 * function.h (get_last_funcdef_no): Declare.
9220 * tree-inline.c (initialize_cfun): Add initialization.
9221 (tree_function_versioning): Cleanup.
9222
9223 2007-01-10 Jan Hubicka <jh@suse.cz>
9224
9225 * tree-inline.c (setup_one_parameter): Do not propagate into abnormal
9226 PHIs.
9227
9228 2007-01-10 Sa Liu <saliu@de.ibm.com>
9229 Ben Elliston <bje@au.ibm.com>
9230
9231 * spu.h (STACK_SAVE_AREA): Use VOIDmode for SAVE_FUNCTION, SImode
9232 for SAVE_NONLOCAL and Pmode for any other save level.
9233 * spu-protos.h (spu_restore_stack_block): Declare.
9234 * spu.md (save_stack_block): Remove.
9235 (restore_stack_block): Call spu_restore_stack_block.
9236 * spu.c (spu_restore_stack_block): New function.
9237 (spu_expand_epilogue): Remove old comment.
9238
9239 2007-01-09 Zdenek Dvorak <dvorakz@suse.cz>
9240
9241 PR tree-optimization/30322
9242 * tree-ssa-loop-ivopts.c (fold_affine_expr, iv_value): Removed.
9243 (cand_value_at): Return the value as aff_tree.
9244 (may_eliminate_iv): Convert the bound from aff_tree to tree.
9245 * tree-affine.c (aff_combination_add_cst, aff_combination_add_product,
9246 aff_combination_mult): New functions.
9247 (aff_combination_add): Use aff_combination_add_cst.
9248 (aff_combination_convert): Allow conversions to a wider type.
9249 (tree_to_aff_combination): Handle BIT_NOT_EXPR.
9250 * tree-affine.h (aff_combination_mult): Declare.
9251
9252 2007-01-09 Carlos O'Donell <carlos@codesourcery.com>
9253
9254 * doc/tm.texi: Update documentation to reflect reality of exec
9255 and start file search behaviours. Update copyright year.
9256 * doc/invoke.texi: Explain how GCC_EXEC_PREFIX is used to find
9257 header file directories.
9258
9259 2007-01-09 Uros Bizjak <ubizjak@gmail.com>
9260
9261 * config/i386/i386.md (*sinxf2): Rename to *sinxf2_i387.
9262 (*cosxf2): Rename to cosxf2_i387.
9263 (*sindf2, *sinsf2): Extend operand 1 to XFmode. Macroize patterns
9264 using X87MODEF12 mode macro. Rename patterns to
9265 *sin_extend<mode>xf2_i387. Use SSE_FLOAT_MODE_P to disable patterns
9266 for SSE math.
9267 (*cosdf2, *cossf2): Ditto.
9268 (sincosdf3, sincossf3): Ditto. Rewrite corresponding splitters
9269 to match extended input operands.
9270 (sincos<mode>3): New expander.
9271 (*sinextendsfdf2, *cosextendsfdf2, *sincosextendsfdf3): Remove
9272 insn patterns and corresponding splitters.
9273
9274 2007-01-09 Kaz Kojima <kkojima@gcc.gnu.org>
9275
9276 * config/sh/t-linux (TARGET_LIBGCC2_CFLAGS): Delete.
9277 (SHLIB_MAPFILES, SHLIB_LINK, SHLIB_INSTALL): Likewise.
9278
9279 2007-01-09 Nicolas Pitre <nico@cam.org>
9280
9281 PR target/30173
9282 * arm/ieee754-df.S (Lad_s): Also test the low word of X for zero.
9283
9284 2007-01-08 Geoffrey Keating <geoffk@apple.com>
9285
9286 * target.h (struct gcc_target): New field library_rtti_comdat.
9287 * target-def.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): New.
9288 (TARGET_CXX): Add TARGET_CXX_LIBRARY_RTTI_COMDAT.
9289 * doc/tm.texi (C++ ABI): Document TARGET_CXX_LIBRARY_RTTI_COMDAT.
9290 * config/darwin.h (TARGET_CXX_LIBRARY_RTTI_COMDAT): Define.
9291
9292 2007-01-08 Geoffrey Keating <geoffk@apple.com>
9293
9294 * doc/invoke.texi (Optimize Options): Correct description of -O0.
9295
9296 2007-01-08 Richard Guenther <rguenther@suse.de>
9297
9298 * tree.h (force_fit_type_double): Export.
9299 (force_fit_type): Remove.
9300 * fold-const.c (force_fit_type_double): New function.
9301 (force_fit_type): Remove.
9302 (int_const_binop): Use it.
9303 (fold_convert_const_int_from_int): Likewise.
9304 (fold_convert_const_int_from_real): Likewise.
9305 (fold_div_compare): Likewise.
9306 (fold_sign_changed_comparison): Likewise.
9307 (fold_unary): Likewise.
9308 (fold_negate_const): Likewise.
9309 (fold_abs_const): Likewise.
9310 (fold_not_const): Likewise.
9311 * c-common.c (shorten_compare): Use force_fit_type_double.
9312 * convert.c (convert_to_pointer): Likewise.
9313
9314 2007-01-08 Richard Guenther <rguenther@suse.de>
9315
9316 * tree.h (build_int_cst_wide_type): Export.
9317 * tree.c (build_int_cst_wide_type): New function.
9318 (build_int_cst_wide): Fix comment.
9319 * builtins.c (fold_builtin_object_size): Use build_int_cst
9320 to build -1 or 0 of the correct type. Use fit_double_type
9321 to check for overflow.
9322 * fold-const.c (optimize_bit_field_compare): Use build_int_cst_type
9323 to build the mask.
9324 (decode_field_reference): Likewise.
9325 (all_ones_mask_p): Likewise.
9326 (native_interpret_int): Use build_int_cst_wide_type.
9327 (fold_binary): Use build_int_cst_type to build an all-ones
9328 value.
9329 * stor-layout.c (set_sizetype): Use build_int_cst_wide_type.
9330
9331 2007-01-08 Daniel Jacobowitz <dan@codesourcery.com>
9332
9333 * config/pa/t-pa64 (libgcc_stub.a): Use $(T).
9334
9335 2007-01-09 Ben Elliston <bje@au.ibm.com>
9336
9337 * genautomata.c (STATS_OPTION): New option.
9338 (stats_flag): New flag.
9339 (gen_automata_option): Handle it.
9340 (initiate_automaton_gen): Ditto.
9341 (write_automata): Output statistics only if stats_flag is
9342 set. Likewise, output time statistics only if time_flag is set.
9343 * doc/md.texi (Processor pipeline description): Document new flag.
9344
9345 2007-01-08 Richard Guenther <rguenther@suse.de>
9346
9347 * builtins.c (fold_builtin_int_roundingfn): Use fit_double_type.
9348 * tree.c (build_int_cst_type): Likewise.
9349 (size_in_bytes): Don't call force_fit_type on the result.
9350 (int_fits_type_p): Use fit_double_type.
9351 * fold-const.c (fit_double_type): New function.
9352 (force_fit_type): Use it.
9353 * tree.h (fit_double_type): Export.
9354
9355 2007-01-08 Jan Hubicka <jh@suse.cz>
9356
9357 * tree-vectorizer.c (gate_increase_alignment): Fix return type.
9358 * ipa.c (function_and_variable_visibility): Fix return type.
9359
9360 2007-01-08 Richard Guenther <rguenther@suse.de>
9361
9362 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use type
9363 of offset to build the index.
9364 * tree-pretty-print.c (dump_generic_node): Don't build negated
9365 const just for printing.
9366 * c-pretty-print.c (pp_c_integer_constant): Likewise.
9367 * builtins.c (fold_builtin_int_roundingfn): Check if result
9368 fits the type by using force_fit_type and comparing the result.
9369 * predict.c (predict_loops): Use compare_tree_int for comparison.
9370 * tree.c (build_int_cst): Fall back to integer_type_node for
9371 NULL_TREE type.
9372 (build_int_cst_wide): Assert type is non-null.
9373
9374 2007-01-08 Roberto Costa <roberto.costa@st.com>
9375
9376 * tree-vrp.c (extract_range_from_cond_expr): New.
9377 (extract_range_from_expr): Handle COND_EXPR nodes used as expressions.
9378 * tree-ssa-ccp.c (get_maxval_strlen): Handle COND_EXPR nodes used
9379 as expressions.
9380 (fold_stmt): Bug fix, avoid infinite recursion when folding COND_EXPRs.
9381 * tree-ssa-forwprop.c (simplify_cond, forward_propagate_into_cond,
9382 tree_ssa_forward_propagate_single_use_vars): Handle COND_EXPR nodes
9383 used as expressions.
9384 * tree-object-size.c (cond_expr_object_size): New.
9385 (collect_object_sizes_for): Handle COND_EXPR nodes used as expressions.
9386
9387 2007-01-08 Jan Hubicka <jh@suse.cz>
9388
9389 * tree-ssa-forwprop.c (forward_propagate_into_cond,
9390 tree_ssa_forward_propagate_single_use_va): Release defs of propagated
9391 statement.
9392
9393 2007-01-08 Richard Guenther <rguenther@suse.de>
9394
9395 PR tree-optimization/23603
9396 * tree-vrp.c (set_value_range_to_truthvalue): New function.
9397 (extract_range_from_binary): Fall back to truthvalue instead of
9398 varying for TRUTH_*_EXPR.
9399 (extract_range_from_comparison): Fall back to truthvalue instead of
9400 varying.
9401 (vrp_visit_phi_node): Don't adjust new range bounds to +INF/-INF
9402 if all visited PHI values were constant.
9403
9404 2007-01-08 Jan Hubicka <jh@suse.cz>
9405
9406 * cgraphunit.c (cgraph_process_new_functions): Reset reachable flag.
9407 (cgraph_analyze_function): break out from ...
9408 (cgraph_finalize_compilation_unit): ... here.
9409 (cgraph_expand_function): Remove forgoten commented out line.
9410 (cgraph_optimize): Analyze functions.
9411
9412 2007-01-08 Jan Hubicka <jh@suse.cz>
9413
9414 * tree-pas.h (TODO_remove_function): New flag.
9415 (TODO_update*): Renumber.
9416 (pass_ipa_increase_alignment,
9417 pass_ipa_function_and_variable_visibility): New passes.
9418 * cgraphunit.c (cgraph_increase_alignment): Move to tree-vectorizer.c
9419 (cgraph_function_and_variable_visibility): Move to ipa.c
9420 (cgraph_optimize): Don't call cgraph_function_and_variable_visibility,
9421 cgraph_increase_alignment.
9422 * ipa-inline.c (cgraph_decide_inlining): Don't push timevar.
9423 (cgraph_decide_inlining_incrementally): Push TV_INTEGRATION before
9424 calling tree-inline.
9425 (cgraph_early_inlining): Do not call cgraph_remove_unreachable_nodes.
9426 (pass_ipa_inline, pass_early_ipa_inlining): Set TODO_remove_functions
9427 * tree-vectorizer.c (increase_alignment): Move here from cgraphunit.c
9428 (gate_increase_alignment): New function.
9429 (pass_ipa_increase_alignment): New pass.
9430 * ipa.c: Inline tree-pass.h and timevar.h
9431 (function_and_variable_visibility): Move here from cgraphunit.c
9432 * tree-optimize.c (pass_early_local_passes): Add TODO_remove_functions.
9433 * passes.c (init_optimization_passes): Add the two new passes.
9434 (execute_todo): Handle cgraph_remove_functions.
9435
9436 2007-01-08 Nick Clifton <nickc@redhat.com>
9437
9438 * config/frv/predicates.md (reg_or_0_operand): Accept
9439 CONST_DOUBLEs.
9440
9441 2007-01-08 Ralf Corsépius <ralf.corsepius@rtems.org>
9442
9443 * config/bfin/rtems.h, config/bfin/t-rtems: New.
9444 * config.gcc: Add bfin*-rtems*.
9445
9446 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
9447
9448 * c.opt: Add -flax-vector-conversions.
9449 * c-typeck.c (convert_for_assignment): Pass flag to
9450 vector_types_convertible_p to allow emission of note.
9451 (digest_init): Likewise.
9452 * c-opts.c: Handle -flax-vector-conversions.
9453 * c-common.c (flag_lax_vector_conversions): New.
9454 (vector_types_convertible_p): Unless -flax-vector conversions
9455 has been passed, disallow conversions between vectors with
9456 differing numbers of subparts and/or element types. If such
9457 a conversion is disallowed, possibly emit a note on the first
9458 occasion only to inform the user of -flax-vector-conversions.
9459 The new last argument specifies this.
9460 * c-common.h (flag_lax_vector_conversions): New.
9461 (vector_types_convertible_p): Add extra argument.
9462 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
9463 char_type_node for V*QI type vectors.
9464 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins):
9465 Update to satisfy new typechecking rules.
9466 * config/rs6000/altivec.h (vec_cmple): Use vec_cmpge, for both
9467 C and C++ variants.
9468 * doc/invoke.texi (C Dialect Options): Document
9469 -flax-vector-conversions.
9470
9471 2007-01-08 Mark Shinwell <shinwell@codesourcery.com>
9472
9473 PR tree-optimization/29877
9474 * tree-ssa-ter.c (is_replaceable_p): Deem assignments with
9475 a register variable on the RHS to not be replaceable.
9476
9477 2007-01-08 Chen Liqin <liqin@sunnorth.com.cn>
9478 * config/score/t-score-elf (MULTILIB_OPTIONS): Change.
9479 * config/score/predicates.md (const_uimm5, sr0_operand, const_simm12,
9480 const_simm15, const_pow2, const_npow2): Added.
9481 * config/score/misc.md (insv, extv, extzv, movmemsi,
9482 move_lbu_a/b, mov_lhu_a/b etc): Added and fix some bug.
9483 * config/score/score.c (score_address_cost, score_select_cc_mode):
9484 Added.
9485 Change CONST_OK_FOR_LETTER_P/EXTRA_CONSTRAINT define.
9486 Update score_rtx_costs for MACRO TARGET_RTX_COSTS.
9487 Update score_print_operand.
9488 * config/score/score.h (DATA_ALIGNMENT, SELECT_CC_MODE): Added.
9489 Adjust register allocate order and update some macro define.
9490 * config/score/score-mdaux.c (mdx_unaligned_load, mdx_unsigned_store,
9491 mdx_block_move_straight, mdx_block_move_loop_head,
9492 mdx_block_move_loop_body, mdx_block_move_loop_foot, mdx_block_move_loop,
9493 mdx_block_move): Added.
9494 (mdx_movsicc, mdp_select_add_imm, mdp_select, mds_zero_extract_andi,
9495 mdp_limm): Updated and fix some bug and typo.
9496 * config/score/score.md (movqi/hi/si, add/sub/zero/ext): Updated.
9497 (movsf, movdf, doloop_end): Added.
9498
9499 2007-01-08 Kazu Hirata <kazu@codesourcery.com>
9500
9501 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
9502 config/arm/thumb2.md: Fix comment typos.
9503 * doc/extend.texi: Fix a typo.
9504
9505 2007-01-07 Eric Christopher <echristo@apple.com>
9506
9507 * configure.ac: Check for __stack_chk_fail for darwin.
9508 * configure: Regenerate.
9509
9510 2007-01-07 Richard Guenther <rguenther@suse.de>
9511
9512 * tree-vrp.c (extract_range_from_assert): CSE calls to
9513 compare_values where possible.
9514 (extract_range_from_unary_expr): Likewise.
9515
9516 2007-01-07 Anatoly Sokolov <aesok@post.ru>
9517
9518 * config/avr/avr-protos.h (call_insn_operand): Delete prototype.
9519 * config/avr/avr.c (call_insn_operand): Delete function.
9520 * config/avr/avr.md (*pushqi, *pushhi, *pushsi, *pushsf): Use REG_SP
9521 instead of register number. Use predicates.
9522 * config/avr/predicates.md (const0_operand, reg_or_0_operand,
9523 call_insn_operand): Add.
9524
9525 2007-01-06 Jan Hubicka <jh@suse.cz>
9526
9527 * tree-pass.h (pass_build_cgraph_edges): Declare.
9528 * cgraphunit.c (record_refernece): Move to cgraphbuild.c
9529 (visited_nodes): Remove.
9530 (cgraph_create_edges): Move to cgraphbuild.c; rename to
9531 build_cgrpah_edges; make visited_nodes local.
9532 (cgraph_process_new_functions): DO not call initialize_inline_failed.
9533 (record_references_in_initializer): Move to cgraphbuild.c
9534 (initialize_inline_failed, rebuild_cgraph_edges,
9535 pass_rebuild_cgraph_edges): Move to cgraphbuild.c.
9536 (verify_cgraph_node): Make visited_nodes local.
9537 (cgraph_analyze_function): Do not call cgraph_create_edges and
9538 initialize_inline_failed.
9539 (cgraph_expand_function): Do not call cgraph_lower_function;
9540 assert that function is already lowered.
9541 * Makefile.in (cgraphbuild.o): New.
9542 * passes.c (init_optimization_passes): Add pass_build_cgraph_edges
9543 at the end of lowering passes.
9544
9545 2007-01-06 Steven Bosscher <steven@gcc.gnu.org>
9546
9547 * ifcvt.c (cond_move_convert_if_block): New function, code
9548 factored out from...
9549 (cond_move_process_if_block): ...here. Call the new function
9550 on the THEN and ELSE blocks.
9551 (merge_if_block): Do not copy global_live_at_end, merge_blocks
9552 already takes care of this.
9553
9554 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9555
9556 PR c/19978
9557 * tree.h (TREE_OVERFLOW_P): New.
9558 * c-typeck.c (parser_build_unary_op): Warn only if result
9559 overflowed and operands did not.
9560 (parser_build_binary_op): Likewise.
9561 (convert_for_assignment): Remove redundant overflow_warning.
9562 * c-common.c (overflow_warning): Don't check or set TREE_OVERFLOW.
9563
9564 2007-01-05 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
9565
9566 * c-typeck.c (store_init_value): Split over two lines to follow
9567 the GNU coding style.
9568
9569 2007-01-05 Benjamin Kosnik <bkoz@redhat.com>
9570
9571 * c-cppbuiltin.c (c_cpp_builtins): __GXX_EXPERIMENTAL_CPP0X__ to
9572 __GXX_EXPERIMENTAL_CXX0X__.
9573 * doc/cpp.texi: Same.
9574
9575 2007-01-05 Richard Guenther <rguenther@suse.de>
9576
9577 PR middle-end/27826
9578 * tree.c (get_narrower): Do not construct COMPONENT_REFs
9579 with mismatched types. Instead explicitly build a
9580 conversion NOP_EXPR.
9581
9582 2007-01-05 Ian Lance Taylor <iant@google.com>
9583
9584 * c-common.c (decl_with_nonnull_addr_p): New function.
9585 (c_common_truthvalue_conversion): Call it.
9586 * c-typeck.c (build_binary_op): Likewise.
9587 * c-common.h (decl_with_nonnull_addr_p): Declare.
9588
9589 2007-01-05 Jakub Jelinek <jakub@redhat.com>
9590
9591 PR c/30360
9592 * libgcc2.c (__divdc3): Compare c and d against 0.0 instead of
9593 denom against 0.0.
9594
9595 2007-01-05 Joel Brobecker <brobecker@adacore.com>
9596
9597 * doc/install.texi (Final install): Document the fact that
9598 the GNAT runtime should not be stripped.
9599
9600 2007-01-04 Jan Hubicka <jh@suse.cz>
9601
9602 * tree-inline.c (fold_marked_statements): Update operand caches
9603 and EH after folding
9604
9605 2007-01-04 Ian Lance Taylor <iant@google.com>
9606
9607 * c-common.c (check_function_nonnull): Whitespace fix.
9608
9609 2007-01-04 Jan Hubicka <jh@suse.cz>
9610
9611 * tree-optimize.c (execute_fixup_cfg): Correct previously mistakely
9612 comitted older version of patch.
9613 (pass_fixup_cfg): Add TODOs to verify flow and statements, dump
9614 function, celanup cfg and collect garbage.
9615
9616 2007-01-04 Mike Stump <mrs@apple.com>
9617
9618 * Makefile.in (mostlyclean): Don't remove libgcc anymore.
9619 (clean): Likewise.
9620
9621 2007-01-04 Eric Christopher <echristo@apple.com>
9622
9623 * libgcc2.c (__bswapsi2): Use SItype.
9624 (__bswapdi2): Use DItype.
9625 * libgcc2.h: Update for above.
9626
9627 2007-01-04 Paul Brook <paul@codesourcery.com>
9628
9629 * config/arm/arm.md (arm_mulsi3, thumb_mulsi3, mulsi3_compare0,
9630 mulsi_compare0_scratch, mulsi3addsi, mulsi3addsi_compare0,
9631 mulsi3addsi_compare0_scratch, mulsidi3adddi, mulsidi3,
9632 umulsidi3, umulsidi3adddi, smulsi3_highpart,
9633 umulsi3_highpart): Make conditional on !arm_arch6.
9634 (arm_mulsi3_v6, thumb_mulsi3_v6, mulsi3_compare0_v6,
9635 mulsi_compare0_scratch_v6, mulsi3addsi_v6, mulsi3addsi_compare0_v6,
9636 mulsi3addsi_compare0_scratch_v6, mulsidi3adddi_v6, mulsidi3_v6,
9637 umulsidi3_v6, umulsidi3adddi_v6, smulsi3_highpart_v6,
9638 umulsi3_highpart_v6): New insns.
9639
9640 2007-01-04 Roger Sayle <roger@eyesopen.com>
9641
9642 * fold-const.c (fold_convert): When casting an expression to void,
9643 fold_ignored_result may discover a GIMPLE_MODIFY_STMT which doesn't
9644 have a type. Instead of attempting to build a NOP_EXPR, return
9645 these "special" trees directly.
9646
9647 2007-01-04 Joseph Myers <joseph@codesourcery.com>
9648
9649 * config/rs6000/rs6000.c (rs6000_rtx_costs): Make adjustment for
9650 MULT inside MINUS as either argument. Use rs6000_cost->dmul -
9651 rs6000_cost->fp not 0 as adjustment for outer NEG.
9652
9653 2007-01-04 Jan Hubicka <jh@suse.cz>
9654
9655 * cgraph.c (cgraph_release_function_body): New function.
9656 (cgraph_remove_node): Use it.
9657 * cgraph.h (cgraph_release_function_body): Declare.
9658 * cgraphunit.c (cgraph_expand_function): Use it.
9659 * ipa.c (cgraph_remove_unreahchable_nodes): Use it.
9660 * tree-ssa.c (delete_tree_ssa): Allow to be called before aliasing
9661 is initialized and while compilation of other function is running.
9662 * tree-optimize.c (execute_free_cfg_annotations): Move code to clear
9663 statement CFG annotations from here to ...
9664 * tree-cfg.c (delete_tree_cfg_annotations): ... here.
9665
9666 2007-01-04 Zdenek Dvorak <dvorakz@suse.cz>
9667
9668 * cfgloop.h (enum li_flags): Make the constants powers of two.
9669
9670 2007-01-04 Jan Hubicka <jh@suse.cz>
9671
9672 * tree-inline.c (copy_bb): Insert new statements to statements_to_fold
9673 set.
9674 (fold_marked_statements): New function.
9675 (optimize_inline_calls, tree_function_versioning): Fold new statements.
9676 * tree-inline.h (copy_body_data): Add statements_to_fold.
9677
9678 2007-01-03 Daniel Jacobowitz <dan@codesourcery.com>
9679
9680 * config.gcc: Mention libgcc/config.host.
9681 * Makefile.in: Update comments mentioning libgcc.
9682 (LIBGCC, INSTALL_LIBGCC, GCC_PARTS, mklibgcc): Delete.
9683 (all.cross, start.encap, rest.encap, rest.cross): Update
9684 dependencies for libgcc move.
9685 (libgcc.mk, LIBGCC_DEPS, libgcov.a, libgcc.a, stmp-multilib)
9686 (clean-target, clean-target-libgcc): Delete.
9687 (srcdirify, GCC_EXTRA_PARTS): New macros.
9688 (libgcc-support, libgcc.mvars): New rules.
9689 (distclean): Remove mention of mklibgcc.
9690 (install): Don't reference INSTALL_LIBGCC.
9691 (install-common): Don't reference EXTRA_PARTS.
9692 (install-libgcc, install-multilib): Delete rules.
9693 * mklibgcc.in: Delete file.
9694 * doc/configfiles.texi: Don't mention mklibgcc.
9695
9696 * config/i386/t-darwin (SHLIB_VERPFX): Delete (moved to libgcc).
9697 * config/i386/t-darwin64 (SHLIB_VERPFX): Likewise.
9698 * config/rs6000/t-darwin (SHLIB_VERPFX): Likewise.
9699 * config/rs6000/t-ppccomm (TARGET_LIBGCC2_CFLAGS, SHLIB_MAPFILES)
9700 (mklibgcc, ldblspecs): Likewise.
9701
9702 * config/i386/t-nwld (libgcc.def, libc.def, libpcre.def)
9703 (posixpre.def): Use $(T).
9704 (SHLIB_EXT, SHLIB_NAME, SHLIB_SLIBDIR_QUAL, SHLIB_DEF, SHLIB_MAP)
9705 (SHLIB_SRC, SHLIB_INSTALL): Delete.
9706 (SHLIB_LINK): Make dummy.
9707 * config/t-slibgcc-darwin: Delete contents except for dummy SHLIB_LINK.
9708
9709 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Clear.
9710
9711 * config/alpha/t-crtfm: Use $(T) in rules for EXTRA_PARTS.
9712 * config/alpha/t-vms, config/alpha/t-vms64, config/fr30/t-fr30,
9713 config/i386/t-rtems-i386, config/ia64/t-ia64, config/rs6000/t-beos,
9714 config/rs6000/t-newas, config/sparc/t-elf: Likewise.
9715
9716 * configure.ac (all_outputs): Remove mklibgcc.
9717 * configure: Regenerated.
9718
9719 2007-01-03 Josh Conner <jconner@apple.com>
9720
9721 PR middle-end/29683
9722 * calls.c (compute_argument_addresses): Set stack and stack_slot
9723 for partial args, too.
9724 (store_one_arg): Use locate.size.constant for the size when
9725 generating a save_area.
9726
9727 2007-01-03 Robert Kennedy <jimbob@google.com>
9728
9729 * tree-cfg.c (tree_merge_blocks): Release SSA_NAME phi results
9730 whose definitions are deleted due to basic block merging.
9731
9732 2007-01-03 Paul Brook <paul@codesourcery.com>
9733
9734 PR target/16634
9735 * config/arm/arm.c (output_return_instruction): Pop PC in interrupt
9736 functions.
9737 (use_return_insn): Return 0 for Thumb interrupt functions.
9738 (print_multi_reg): Add rfe argument for IRQ returns.
9739 (arm_output_epilogue): Pop interrupt return address directly into PC.
9740 (arm_expand_prologue): Only adjust IRQ return address in Arm mode.
9741
9742 2007-01-03 Paul Brook <paul@codesourcery.com>
9743
9744 Merge from sourcerygxx-4_1.
9745 * config/arm/thumb2.md: New file.
9746 * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Return True for
9747 Thumb-2.
9748 * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Ditto.
9749 * config/arm/aout.h (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
9750 (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump tables.
9751 * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output Thumb-2 jump
9752 tables.
9753 (ASM_OUTPUT_ADDR_VEC_ELT): Add !Thumb-2 assertion.
9754 * config/arm/ieee754-df.S: Use macros for Thumb-2/Unified asm
9755 comptibility.
9756 * config/arm/ieee754-sf.S: Ditto.
9757 * config/arm/arm.c (thumb_base_register_rtx_p): Rename...
9758 (thumb1_base_register_rtx_p): ... to this.
9759 (thumb_index_register_rtx_p): Rename...
9760 (thumb1_index_register_rtx_p): ... to this.
9761 (thumb_output_function_prologue): Rename...
9762 (thumb1_output_function_prologue): ... to this.
9763 (thumb_legitimate_address_p): Rename...
9764 (thumb1_legitimate_address_p): ... to this.
9765 (thumb_rtx_costs): Rename...
9766 (thumb1_rtx_costs): ... to this.
9767 (thumb_compute_save_reg_mask): Rename...
9768 (thumb1_compute_save_reg_mask): ... to this.
9769 (thumb_final_prescan_insn): Rename...
9770 (thumb1_final_prescan_insn): ... to this.
9771 (thumb_expand_epilogue): Rename...
9772 (thumb1_expand_epilogue): ... to this.
9773 (arm_unwind_emit_stm): Rename...
9774 (arm_unwind_emit_sequence): ... to this.
9775 (thumb2_legitimate_index_p, thumb2_legitimate_address_p,
9776 thumb1_compute_save_reg_mask, arm_dwarf_handle_frame_unspec,
9777 thumb2_index_mul_operand, output_move_vfp, arm_shift_nmem,
9778 arm_save_coproc_regs, thumb_set_frame_pointer, arm_print_condition,
9779 thumb2_final_prescan_insn, thumb2_asm_output_opcode, arm_output_shift,
9780 thumb2_output_casesi): New functions.
9781 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): Define.
9782 (FL_THUMB2, FL_NOTM, FL_DIV, FL_FOR_ARCH6T2, FL_FOR_ARCH7,
9783 FL_FOR_ARCH7A, FL_FOR_ARCH7R, FL_FOR_ARCH7M, ARM_LSL_NAME,
9784 THUMB2_WORK_REGS): Define.
9785 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv, arm_condexec_count,
9786 arm_condexec_mask, arm_condexec_masklen)): New variables.
9787 (all_architectures): Add armv6t2, armv7, armv7a, armv7r and armv7m.
9788 (arm_override_options): Check new CPU capabilities.
9789 Set new architecture flag variables.
9790 (arm_isr_value): Handle v7m interrupt functions.
9791 (user_return_insn): Return 0 for v7m interrupt functions. Handle
9792 Thumb-2.
9793 (const_ok_for_arm): Handle Thumb-2 constants.
9794 (arm_gen_constant): Ditto. Use movw when available.
9795 (arm_function_ok_for_sibcall): Return false for v7m interrupt
9796 functions.
9797 (legitimize_pic_address, arm_call_tls_get_addr): Handle Thumb-2.
9798 (thumb_find_work_register, arm_load_pic_register,
9799 legitimize_tls_address, arm_address_cost, load_multiple_sequence,
9800 emit_ldm_seq, emit_stm_seq, arm_select_cc_mode, get_jump_table_size,
9801 print_multi_reg, output_mov_long_double_fpa_from_arm,
9802 output_mov_long_double_arm_from_fpa, output_mov_double_fpa_from_arm,
9803 output_mov_double_fpa_from_arm, output_move_double,
9804 arm_compute_save_reg_mask, arm_compute_save_reg0_reg12_mask,
9805 output_return_instruction, arm_output_function_prologue,
9806 arm_output_epilogue, arm_get_frame_offsets, arm_regno_class,
9807 arm_output_mi_thunk, thumb_set_return_address): Ditto.
9808 (arm_expand_prologue): Handle Thumb-2. Use arm_save_coproc_regs.
9809 (arm_coproc_mem_operand): Allow POST_INC/PRE_DEC.
9810 (arithmetic_instr, shift_op): Use arm_shift_nmem.
9811 (arm_print_operand): Use arm_print_condition. Handle '(', ')', '.',
9812 '!' and 'L'.
9813 (arm_final_prescan_insn): Use extract_constrain_insn_cached.
9814 (thumb_expand_prologue): Use thumb_set_frame_pointer.
9815 (arm_file_start): Output directive for unified syntax.
9816 (arm_unwind_emit_set): Handle stack alignment instruction.
9817 * config/arm/lib1funcs.asm: Remove default for __ARM_ARCH__.
9818 Add v6t2, v7, v7a, v7r and v7m.
9819 (RETLDM): Add Thumb-2 code.
9820 (do_it, shift1, do_push, do_pop, COND, THUMB_SYNTAX): New macros.
9821 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __thumb2__.
9822 (TARGET_THUMB1, TARGET_32BIT, TARGET_THUMB2, TARGET_DSP_MULTIPLY,
9823 TARGET_INT_SIMD, TARGET_UNIFIED_ASM, ARM_FT_STACKALIGN, IS_STACKALIGN,
9824 THUMB2_TRAMPOLINE_TEMPLATE, TRAMPOLINE_ADJUST_ADDRESS,
9825 ASM_OUTPUT_OPCODE, THUMB2_GO_IF_LEGITIMATE_ADDRESS,
9826 THUMB2_LEGITIMIZE_ADDRESS, CASE_VECTOR_PC_RELATIVE,
9827 CASE_VECTOR_SHORTEN_MODE, ADDR_VEC_ALIGN, ASM_OUTPUT_CASE_END,
9828 ADJUST_INSN_LENGTH): Define.
9829 (TARGET_REALLY_IWMMXT, TARGET_IWMMXT_ABI, CONDITIONAL_REGISTER_USAGE,
9830 STATIC_CHAIN_REGNUM, HARD_REGNO_NREGS, INDEX_REG_CLASS,
9831 BASE_REG_CLASS, MODE_BASE_REG_CLASS, SMALL_REGISTER_CLASSES,
9832 PREFERRED_RELOAD_CLASS, SECONDARY_OUTPUT_RELOAD_CLASS,
9833 SECONDARY_INPUT_RELOAD_CLASS, LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P,
9834 TRAMPOLINE_SIZE, INITIALIZE_TRAMPOLINE, HAVE_PRE_INCREMENT,
9835 HAVE_POST_DECREMENT, HAVE_PRE_DECREMENT, HAVE_PRE_MODIFY_DISP,
9836 HAVE_POST_MODIFY_DISP, HAVE_PRE_MODIFY_REG, HAVE_POST_MODIFY_REG,
9837 REGNO_MODE_OK_FOR_BASE_P, LEGITIMATE_CONSTANT_P,
9838 REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, GO_IF_LEGITIMATE_ADDRESS,
9839 LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS,
9840 GO_IF_MODE_DEPENDENT_ADDRESS, MEMORY_MOVE_COST, BRANCH_COST,
9841 ASM_APP_OFF, ASM_OUTPUT_CASE_LABEL, ARM_DECLARE_FUNCTION_NAME,
9842 FINAL_PRESCAN_INSN, PRINT_OPERAND_PUNCT_VALID_P,
9843 PRINT_OPERAND_ADDRESS): Adjust for Thumb-2.
9844 (arm_arch_notm, arm_arch_thumb2, arm_arch_hwdiv): New declarations.
9845 * config/arm/arm-cores.def: Add arm1156t2-s, cortex-a8, cortex-r4 and
9846 cortex-m3.
9847 * config/arm/arm-tune.md: Regenerate.
9848 * config/arm/arm-protos.h: Update prototypes.
9849 * config/arm/vfp.md: Enable patterns for Thumb-2.
9850 (arm_movsi_vfp): Add movw alternative. Use output_move_vfp.
9851 (arm_movdi_vfp, movsf_vfp, movdf_vfp): Use output_move_vfp.
9852 (thumb2_movsi_vfp, thumb2_movdi_vfp, thumb2_movsf_vfp,
9853 thumb2_movdf_vfp, thumb2_movsfcc_vfp, thumb2_movdfcc_vfp): New.
9854 * config/arm/libunwind.S: Add Thumb-2 code.
9855 * config/arm/constraints.md: Update include Thumb-2.
9856 * config/arm/ieee754-sf.S: Add Thumb-2/Unified asm support.
9857 * config/arm/ieee754-df.S: Ditto.
9858 * config/arm/bpabi.S: Ditto.
9859 * config/arm/t-arm (MD_INCLUDES): Add thumb2.md.
9860 * config/arm/predicates.md (low_register_operand,
9861 low_reg_or_int_operand, thumb_16bit_operator): New.
9862 (thumb_cmp_operand, thumb_cmpneg_operand): Rename...
9863 (thumb1_cmp_operand, thumb1_cmpneg_operand): ... to this.
9864 * config/arm/t-arm-elf: Add armv7 multilib.
9865 * config/arm/arm.md: Update patterns for Thumb-2 and Unified asm.
9866 Include thumb2.md.
9867 (UNSPEC_STACK_ALIGN, ce_count): New.
9868 (arm_incscc, arm_decscc, arm_umaxsi3, arm_uminsi3,
9869 arm_zero_extendsidi2, arm_zero_extendqidi2): New
9870 insns/expanders.
9871 * config/arm/fpa.md: Update patterns for Thumb-2 and Unified asm.
9872 (thumb2_movsf_fpa, thumb2_movdf_fpa, thumb2_movxf_fpa,
9873 thumb2_movsfcc_fpa, thumb2_movdfcc_fpa): New insns.
9874 * config/arm/cirrus.md: Update patterns for Thumb-2 and Unified asm.
9875 (cirrus_thumb2_movdi, cirrus_thumb2_movsi_insn,
9876 thumb2_cirrus_movsf_hard_insn, thumb2_cirrus_movdf_hard_insn): New
9877 insns.
9878 * doc/extend.texi: Document ARMv7-M interrupt functions.
9879 * doc/invoke.texi: Document Thumb-2 new cores+architectures.
9880
9881 2007-01-03 Jakub Jelinek <jakub@redhat.com>
9882
9883 * unwind-dw2.c (SIGNAL_FRAME_BIT, EXTENDED_CONTEXT_BIT): Define.
9884 (struct _Unwind_Context): Rename args_size to flags, remove
9885 signal_frame field, add a new args_size field and version field.
9886 (_Unwind_IsSignalFrame, _Unwind_SetSignalFrame,
9887 _Unwind_IsExtendedContext): New inline functions.
9888 (_Unwind_GetGR, _Unwind_SetGR, _Unwind_GetGRPtr, _Unwind_SetGRPtr):
9889 Assume by_value array is only present if _Unwind_IsExtendedContext.
9890 (_Unwind_GetIPInfo, execute_cfa_program, uw_frame_state_for): Use
9891 _Unwind_IsSignalFrame.
9892 (__frame_state_for): Initialize context.flags to EXTENDED_CONTEXT_BIT.
9893 (uw_update_context_1): Use _Unwind_SetSignalFrame.
9894 (uw_init_context_1): Initialize context->flags to
9895 EXTENDED_CONTEXT_BIT.
9896 * config/rs6000/linux-unwind.h (frob_update_context): Use
9897 _Unwind_SetSignalFrame.
9898
9899 2007-01-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
9900
9901 PR middle-end/30353
9902 * gimplify.c (gimplify_modify_expr_complex_part): Move below
9903 tree_to_gimple_tuple. Call tree_to_gimple_tuple when we need
9904 the value.
9905
9906 2007-01-03 Kazu Hirata <kazu@codesourcery.com>
9907
9908 * config/i386/i386.h (NON_STACK_REG_P, REGNO_OK_FOR_SIREG_P,
9909 REGNO_OK_FOR_DIREG_P, REWRITE_ADDRESS, ASM_OPERAND_LETTER,
9910 RET, AT_SP): Remove.
9911 * config/i386/i386.md (*sse_prologue_save_insn): Use return
9912 instead of RET.
9913
9914 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
9915 * cfgbuild.c (find_basic_blocks): Likewise.
9916 * cfgrtl.c (rtl_create_basic_block): Likewise.
9917 * function.c (temp_slots_at_level): Likewise.
9918 * reg-stack.c (stack_regs_mentioned): Likewise.
9919 * regclass.c (allocate_reg_info): Likewise.
9920 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
9921 set_bb_for_stmt, move_block_to_fn): Likewise.
9922 * tree-complex.c (tree_lower_complex): Likewise.
9923 * vec.h (VEC_safe_grow_cleared): New.
9924
9925 * cgraphunit.c, tree-ssa-alias.c: Fix comment typos.
9926
9927 2007-01-03 Zdenek Dvorak <dvorakz@suse.cz>
9928
9929 * loop-unswitch.c (unswitch_loop): Pass probabilities to loopify.
9930 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass probabilities
9931 to loop_version.
9932 * cfgloopmanip.c (scale_loop_frequencies): Export.
9933 (loopify): Scale the frequencies by prescribed coefficients.
9934 (set_zero_probability): New function.
9935 (duplicate_loop_to_header_edge): Improve updating of frequencies.
9936 (lv_adjust_loop_entry_edge, loop_version): Set probabilities
9937 and frequencies according to arguments.
9938 * tree-ssa-loop-manip.c (tree_unroll_loop): Set probabilities
9939 correctly.
9940 * cfg.c (scale_bbs_frequencies_int): Allow scaling the frequencies up.
9941 * modulo-sched.c (sms_schedule): Set probabilities for entering
9942 versioned loop correctly.
9943 * tree-vect-transform.c (vect_transform_loop): Ditto.
9944 * cfgloop.h (loopify, loop_version): Declaration changed.
9945 (scale_loop_frequencies): Declared.
9946
9947 2007-01-02 Jan Hubicka <jh@suse.cz>
9948
9949 * cgraph.c: Include tree-flow.h
9950 (cgraph_add_new-function): Handle IPA_SSA mode; execute
9951 early_local_passes.
9952 * cgraph.h (enum cgraph_state): Add CGRAPH_STATE_IPA_SSA.
9953 * tree-pass.h (pass_all_early_optimizations): Declare.
9954 * cgraphunit.c (cgraph_process_new_functions): Add IPA_SSA; execute
9955 early_local_passes.
9956 (cgraph_analyze_function): Do early_local_passes.
9957 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
9958 Do not add referenced vars.
9959 * tree-optimize.c (gate_all_optimizations): Do not execute when not in
9960 SSA form.
9961 (gate_all_early_local_passes): New gate.
9962 (pass_early_local_passes): Use new gate.
9963 (execute_early_local_optimizations): New functions.
9964 (gate_all_early_optimizations): New gate.
9965 (pass_all_early_optimizations): New pass.
9966 (execute_free_datastructures): Free SSA only when initialized.
9967 (gate_init_datastructures): Init only when optimizing.
9968 (tree_lowering_passes): Do early local passes when called late.
9969 * tree-profile.c (do_tree_profiling): Don't profile functions added
9970 late.
9971 (do_early_tree_profiling, pass_early_tree_profile): Kill.
9972 * tree-cfg.c (update_modified_stmts): Do not update when operands are
9973 not active.
9974 * passes.c (init_optimizations_passes): Reorder so we go into SSA
9975 during early_local_passes.
9976 * Makefile.in (cgraph.o): Add dependency on tree-flow.h.
9977
9978
9979 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
9980
9981 * Makefile.in: Update copyright year.
9982
9983 2007-01-02 Carlos O'Donell <carlos@codesourcery.com>
9984
9985 * Makefile.in: Export GCC_EXEC_PREFIX before calling $(RUNTEST)
9986 in $(lang_checks) and check-consistency targets.
9987
9988 2007-01-02 Jan Hubicka <jh@suse.cz>
9989
9990 * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for):
9991 Do not add referenced vars.
9992 * tree-cfg.c (update_modified_stmts): Do not update when SSA operands
9993 are not active.
9994 * passes.c (init_optimization_passes): Put mudflap_2 after
9995 free_datastructures.
9996
9997 2007-01-02 Jan Hubicka <jh@suse.cz>
9998
9999 * tree-optimize (execute_fixup_cfg): Set after_inlining flag.
10000 Set NOTHROW flag on call statements proved to be nothrow.
10001 Update statement of local calls so new pure/const functions are
10002 updated. Update_ssa when in ssa form. Mark PHI nodes of nonlocal
10003 goto receivers.
10004 (tree_rest_of_compilation): Register hooks and initialize bitmap
10005 early. Do not set after_inlining flag.
10006
10007 2007-01-02 Steve Ellcey <sje@cup.hp.com>
10008
10009 * sbitmap.c (HOST_BITS_PER_LONG_LONG): Change to
10010 HOST_BITS_PER_LONGLONG
10011
10012 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10013
10014 PR c/19977
10015 * c-typeck.c (store_init_value): Don't emit pedantic overflow
10016 warning for non-static initializers.
10017
10018 2007-01-02 Steven Bosscher <steven@gcc.gnu.org>
10019
10020 * config/alpha/alpha.md, arm/arm.c, darwin.c, frv/frv.md,
10021 m32r/m32r.c, m32r/m32r.c, mn10300/mn10300.md, pa/pa.c,
10022 rs6000/rs6000.c, s390/s390.md, sh/sh.md, sparc/sparc.c:
10023 Always use set_unique_reg_note to add REG_EQUAL notes.
10024
10025 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
10026
10027 Revert:
10028 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
10029
10030 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
10031 * cfgbuild.c (find_basic_blocks): Likewise.
10032 * cfgrtl.c (rtl_create_basic_block): Likewise.
10033 * function.c (temp_slots_at_level): Likewise.
10034 * reg-stack.c (stack_regs_mentioned): Likewise.
10035 * regclass.c (allocate_reg_info): Likewise.
10036 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
10037 set_bb_for_stmt, move_block_to_fn): Likewise.
10038 * tree-complex.c (tree_lower_complex): Likewise.
10039 * vec.h (VEC_safe_grow_cleared): New.
10040
10041 2007-01-02 Ian Lance Taylor <iant@google.com>
10042
10043 * c-common.c (c_common_truthvalue_conversion): When warning about
10044 using an assignment as a truth value, set TREE_NO_WARNING.
10045
10046 2007-01-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
10047
10048 PR middle-end/7651
10049 * c.opt (Wold-style-declaration): New.
10050 * doc/invoke.texi (C-only Warning Options): New.
10051 (Wold-style-declaration): Document it.
10052 (Wextra): Enabled by -Wextra.
10053 * c-opts.c (c_common_post_options): Enabled by -Wextra.
10054 * c-decl.c (declspecs_add_scspec): Replace -Wextra with
10055 -Wold-style-declaration.
10056
10057 2007-01-02 Kazu Hirata <kazu@codesourcery.com>
10058
10059 * alias.c (init_alias_analysis): Use VEC_safe_grow_cleared.
10060 * cfgbuild.c (find_basic_blocks): Likewise.
10061 * cfgrtl.c (rtl_create_basic_block): Likewise.
10062 * function.c (temp_slots_at_level): Likewise.
10063 * reg-stack.c (stack_regs_mentioned): Likewise.
10064 * regclass.c (allocate_reg_info): Likewise.
10065 * tree-cfg.c (init_empty_tree_cfg, build_tree_cfg, create_bb,
10066 set_bb_for_stmt, move_block_to_fn): Likewise.
10067 * tree-complex.c (tree_lower_complex): Likewise.
10068 * vec.h (VEC_safe_grow_cleared): New.
10069
10070 2007-01-02 Douglas Gregor <doug.gregor@gmail.com>
10071
10072 * c-common.c (c_common_nodes_and_builtins): Since variants of
10073 void_type_node get built before it is given a name, we need to
10074 give those variants the name, too.
10075 (complete_array_type): We need to work with the canonical main
10076 type of the array, from which we will build the qualified version.
10077 * params.def (PARAM_VERIFY_CANONICAL_TYPES): New.
10078 * print-tree.c (print_node): Display canonical type information
10079 for each type.
10080 * stor-layout.c (layout_type): When we don't know the
10081 alignment of a type for which we're building an array, we end up
10082 guessing wrong, so make the type require structural equality.
10083 * tree.c (make_node_stat): When we build a new type, it is its
10084 own canonical type.
10085 (build_type_attribute_qual_variant): When building an attribute
10086 variant, its canonical type is the non-attribute variant. However,
10087 if the attributes are target-dependent and they differ, we need to
10088 use structural equality checks for this type.
10089 (build_qualified_type): A qualified type is not equivalent to its
10090 unqualified variant; set the canonical type appropriately.
10091 (build_distinct_type_copy): When building a distinct type from
10092 another type, the new type is its own canonical type.
10093 (build_variant_type_copy): When building a new type variant, we
10094 assume that it is equivalent to the original type.
10095 (build_pointer_type_for_mode): When building a pointer type, also
10096 build a canonical type pointer.
10097 (build_reference_type_for_mode): When building a reference type,
10098 also build a canonical type reference.
10099 (build_index_type): When we can't hash an index type (e.g.,
10100 because its maximum value is negative), the index type requires
10101 structural equality tests.
10102 (build_array_type): Build the canonical form of an array type.
10103 (build_function_type): Function types require structural equality,
10104 because they contain default arguments, attributes, etc.
10105 (build_method_type_directly): Ditto for method types.
10106 (build_offset_type): Build the canonical offset type.
10107 (build_complex_type): Build the canonical vector type.
10108 (make_vector_type): Build the canonical vector type.
10109 * tree.h (TYPE_CANONICAL): New.
10110 (TYPE_STRUCTURAL_EQUALITY_P): New.
10111 (SET_TYPE_STRUCTURAL_EQUALITY): New.
10112 (struct tree_type): Added "canonical" field.
10113 * params.h (VERIFY_CANONICAL_TYPES): New.
10114 * doc/c-tree.texi (TYPE_CANONICAL): Document.
10115 (TYPE_STRUCTURAL_EQUALITY_P): Document.
10116 (SET_TYPE_STRUCTURAL_EQUALITY): Document.
10117 * doc/invoke.texi (verify-canonical-types): Document --param
10118 parameter for verifying canonical types.
10119
10120 2007-01-02 Joseph Myers <joseph@codesourcery.com>
10121
10122 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
10123 powerpc-*-eabisim*, powerpc-*-eabialtivec*, powerpc-*-eabi*,
10124 powerpc-*-rtems*, powerpc-wrs-vxworks, powerpc-wrs-vxworksae,
10125 powerpcle-*-eabisim*, powerpcle-*-eabi*): Add rs6000/e500.h to
10126 tm_file.
10127 * config/rs6000/e500.h: New.
10128 * config/rs6000/eabi.h (TARGET_SPE_ABI, TARGET_SPE, TARGET_E500,
10129 TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE, TARGET_E500_DOUBLE):
10130 Remove.
10131 * config/rs6000/linuxspe.h (TARGET_SPE_ABI, TARGET_SPE,
10132 TARGET_E500, TARGET_ISEL, TARGET_FPRS, TARGET_E500_SINGLE,
10133 TARGET_E500_DOUBLE): Remove.
10134 * config/rs6000/vxworks.h (TARGET_SPE_ABI, TARGET_SPE,
10135 TARGET_E500, TARGET_ISEL, TARGET_FPRS): Remove.
10136 * config/rs6000/rs6000.h (CHECK_E500_OPTIONS): Define.
10137 * config/rs6000/rs6000.c (rs6000_override_options): Use
10138 CHECK_E500_OPTIONS.
10139
10140 2007-01-02 Joseph Myers <joseph@codesourcery.com>
10141
10142 * config/rs6000/rs6000.c (print_operand): Check (TARGET_SPE ||
10143 TARGET_E500_DOUBLE), not TARGET_E500, for %y.
10144 (rs6000_generate_compare, rs6000_emit_sCOND, output_cbranch,
10145 rs6000_emit_cmove): Don't check TARGET_E500.
10146 * config/rs6000/rs6000.md (bunordered, bordered, sunordered,
10147 sordered): Don't check TARGET_E500.
10148
10149 2007-01-01 Eric Christopher <echristo@apple.com>
10150
10151 * config/mips/mips.c (mips_regno_mode_ok_for_base_p): Use
10152 HARD_REGISTER_NUM_P.
10153
10154 2007-01-01 Roger Sayle <roger@eyesopen.com>
10155
10156 * fold-const.c (fold_binary) <EQ_EXPR>: Fold "(X^C1) eq/ne C2" into
10157 "X eq/ne (C1^C2)". Fold "(X^Z) eq/ne (Y^Z)" as "X eq/ne Y" when Z
10158 has no side-effects. Fold "(X^C1) eq/ne (Y^C2)" as "(X^(C1^C2))
10159 eq/ne Y".
10160
10161 2007-01-01 Mike Stump <mrs@apple.com>
10162
10163 * configure.ac: Remove support for building with Apple's gcc-3.1.
10164
10165 2007-01-02 Joseph Myers <joseph@codesourcery.com>
10166
10167 PR middle-end/30311
10168 * caller-save.c (add_stored_regs): Only handle SUBREGs if inner
10169 REG is a hard register. Do not modify REG before calling
10170 subreg_nregs.
10171 * rtlanal.c (subreg_get_info): Don't assert size of XMODE is a
10172 multiple of the size of YMODE for certain lowpart cases.
10173
10174 2007-01-01 Andrew Pinski <pinskia@gmail.com>
10175
10176 PR middle-end/30253
10177 * gimplify (voidify_wrapper_expr): Update for
10178 GIMPLE_MODIFY_STMT.
10179
10180 2007-01-01 Andreas Schwab <schwab@suse.de>
10181
10182 PR target/29166
10183 * config/ia64/ia64.c (ia64_compute_frame_size): Account space for
10184 save of BR0 in extra_spill_size instead of spill_size.
10185 (ia64_expand_prologue): Save BR0 outside of the gr/br/fr spill
10186 area.
10187 (ia64_expand_epilogue): Restore BR0 from its new location.
10188
10189 2007-01-01 Andrew Pinski <pinskia@gmail.com>
10190
10191 * gimplify.c (gimplify_init_constructor <case VECTOR_TYPE>):
10192 Use a temporary variable if the left hand side is not a gimple
10193 register.
10194
10195 2007-01-01 Andrew Pinski <pinskia@gmail.com>
10196
10197 * gimplify.c (gimplify_return_expr): Make the temporary variable
10198 for the return expression, a gimple register variable.
10199
10200 2007-01-01 Jan Hubicka <jh@suse.cz>
10201
10202 * emit-rtl.c (emit_copy_of_insn_after): Do not call copy_insn_1 for
10203 INSN_LIST.
10204
10205 2007-01-01 Mike Stump <mrs@apple.com>
10206
10207 * configure.ac (HAVE_GAS_LITERAL16): Add autoconf check for
10208 .literal16.
10209 * config/darwin.c (machopic_select_rtx_section): Use
10210 HAVE_GAS_LITERAL16.
10211 (darwin_mergeable_constant_section): Likewise.
10212 * configure: Regenerate.
10213 * config.in: Regenerate.
10214
10215 2007-01-01 Jan Hubicka <jh@suse.cz>
10216 Andrew Pinski <pinskia@gmail.com>
10217
10218 * cgraphunit.c (cgraph_optimize): Call cgraph_add_new_functions
10219 before starting IPA passes.