1 2007-04-06 Andreas Tobler <a.tobler@schweiz.org>
3 * tree-sra.c (sra_build_elt_assignment): Initialize min/maxshift.
5 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
7 * config/i386/i386.md (extend<mode>xf2): Rename from extendsfxf2
8 and extenddfxf2. Macroize expander using X87MODEF12 mode macro.
9 (*truncdfsf_mixed, *truncdfsf_i387, *truncdfsf2_i387_1):
10 Use output_387_reg_move().
11 (*truncxf<mode>2): Rename from *truncxfsf2 and truncxfdf2. Macroize
12 expander using X87MODEF12 mode macro.
13 (*truncxfsf2_mixed): Combine alternatives, ignore "r" alternative when
14 choosing register preferences. Use output_387_reg_move().
15 (*truncxfdf2_mixed): Combine alternatives, use "r" alternative
16 instead of "x". Use output_387_reg_move().
17 (*truncxf<mode>2_i387_noop): Rename from *truncxfsf2_i387_noop and
18 *truncxfdf2_i387_noop. Macroize insn using X87MODEF12 mode macro.
19 (*truncxf<mode>2_i387): Rename from *truncxfsf2_i387 and
20 *truncxfdf2_i387. Macroize insn using X87MODEF12 mode macro.
21 Use output_387_reg_move().
22 (*truncxf?f_mixed splitter): Macroize splitter using X87MODEF12
24 (*truncxf?f_i387 splitter): Ditto.
26 2007-04-06 Daniel Berlin <dberlin@dberlin.org>
28 * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
29 LANG_HOOKS_SAFE_FROM_P.
30 * expr.c (safe_from_p): Remove langhook call.
31 * langhooks.h (lang_hooks): Remove safe_from_p.
32 (lhd_safe_from_p): Remove prototype.
33 * langhooks.c (lhd_safe_from_p): Remove.
35 2007-04-06 Jan Hubicka <jh@suse.cz>
37 * cgraphunit.c (decide_is_function_needed): Do not keep always_inline
40 2007-04-06 Uros Bizjak <ubizjak@gmail.com>
42 * config/i386/i386.c (output_387_reg_move): Handle memory operand[0].
43 * config/i386/i386.md (*movsf_1, *movdf_nointeger,
44 *movdf_integer_rex64, *movdf_integer, *movxf_nointeger,
45 *movxf_integer): Use output_387_reg_move() for x87 reg->mem
47 (*extendsfdf2_mixed, *extendsfdf2_i387, *extendsfxf2_i387,
48 *extenddfxf2_i387, *truncdfsf_fast_mixed): Ditto.
50 2007-04-05 Richard Henderson <rth@redhat.com>
52 * config/alpha/alpha.c (print_operand) [+]: Remove.
53 (alpha_end_function): Print nop if call at end of function.
54 * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Remove +.
55 * config/alpha/alpha.md (UNSPEC_LDGP1): New.
56 (call_osf_1_er_noreturn, call_value_osf_1_er_noreturn): New.
57 (call_osf_2_er_nogp, call_value_osf_2_er_nogp): New.
58 (call_osf_2_er, call_value_osf_2_er): Merge the ldgp highpart into
59 the call pattern. Update peepholes to match.
61 2007-04-05 Janis Johnson <janis187@us.ibm.com>
63 * doc/extend.texi (Other Builtins): Add decimal float variants
65 * builtins.def: Ditto.
66 * builtins.c (expand_builtin): Ditto.
68 2007-04-05 Uros Bizjak <ubizjak@gmail.com>
69 H.J. Lu <hongjiu.lu@intel.com>
72 * config/i386/sse.md (sse2_umulv2siv2di3): Use V4SImode instead
73 of V8HImode when calling ix86_binary_operator_ok.
74 (sse2_pmaddwd): Call ix86_binary_operator_ok.
75 (sdot_prodv8hi): Operands 1 and 2 must be register.
77 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
79 * tree-sra.c (try_instantiate_multiple_fields): Needlessly
80 initialize align to silence bogus warning.
82 2007-04-05 Alexandre Oliva <aoliva@redhat.com>
85 * tree-sra.c (struct sra_elt): Add in_bitfld_block. Remove
87 (struct sra_walk_fns): Remove use_all parameter from use.
88 (sra_hash_tree): Handle BIT_FIELD_REFs.
89 (sra_elt_hash): Don't hash bitfld blocks.
90 (sra_elt_eq): Skip them in parent compares as well. Handle
92 (sra_walk_expr): Don't maintain or pass down use_all_p.
93 (scan_use): Remove use_all parameter.
94 (scalarize_use): Likewise. Re-expand assignment to
95 BIT_FIELD_REF of gimple_reg. De-scalarize before input or
96 output, and re-scalarize after output. Don't mark anything
98 (scalarize_ldst): Adjust.
99 (scalarize_walk_gimple_modify_statement): Likewise.
100 (build_element_name_1): Handle BIT_FIELD_REFs.
101 (instantiate_element): Don't warn for any element whose parent
103 (instantiate_missing_elements_1): Return the sra_elt.
104 (canon_type_for_field): New.
105 (try_instantiate_multiple_fields): New.
106 (instantiate_missing_elemnts): Use them.
107 (mark_no_warning): Removed.
108 (generate_one_element_ref): Handle BIT_FIELD_REFs.
109 (REPLDUP, sra_build_elt_assignment): New.
110 (generate_copy_inout): Use them.
111 (generate_element_copy): Likewise. Handle bitfld differences.
112 (generate_element_zero): Don't recurse for blocks. Use
113 sra_build_elt_assignment.
114 (generate_one_element_int): Take elt instead of var. Use
115 sra_build_elt_assignment.
116 (generate_element_init_1): Adjust.
117 (scalarize_use, scalarize_copy): Use REPLDUP.
118 (scalarize_ldst): Move assert before dereference.
119 (dump_sra_elt_name): Handle BIT_FIELD_REFs.
121 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
123 * regmove.c: Fix unused variable warnings due to previous commit.
125 2007-04-05 Steven Bosscher <steven@gcc.gnu.org>
127 * regmove.c (STACK_GROWS_DOWNWARD): Don't boolean-ize.
128 (regmove_bb_head): Remove.
129 (copy_src_to_dest): Don't update regmove_bb_head and BB_HEAD.
130 (regmove_optimize): Don't do unnecessary CFG fixes for non-existing
131 problems with fixup_match_1.
132 Don't initialize/free regmove_bb_head.
134 (reg_is_remote_constant_p): If an insn is in the same basic block
135 but not before INSN, consider it remote, too.
137 2007-04-05 Anatoly Sokolov <aesok@post.ru>
140 * config/avr/avr.c (avr_handle_fndecl_attribute): Use the
141 DECL_ASSEMBLER_NAME, not the DECL_NAME.
143 2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
145 * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): Reformat.
146 (CONDITIONAL_REGISTER_USAGE): Likewise.
148 2007-04-04 Richard Henderson <rth@redhat.com>
150 * config/alpha/lib1funcs.asm: Remove unused file.
152 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
155 * opts.c (print_specific_help): Fix --help=<language>
157 (common_handle_option): Support --help=common.
159 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
162 * gcc.c (main): Do not run the linker if
163 print_subprocess_help indicates that it shouldn't be
166 2007-04-04 Brooks Moses <brooks.moses@codesourcery.com>
169 * doc/invoke.texi (--help=): Document <languages> value, fix
170 formatting in tables of values.
172 2007-04-04 Danny Smith <dannysmith.users.sourceforge.net>
174 * config/i386/winnt-cxx.c (i386_pe_type_dllimport_p): Don't ignore
175 dllimport attribute of virtual methods.
177 2007-04-04 Chen Liqin <liqin@sunnorth.com.cn>
179 * config/score/crti.asm: Change _bss_start to __bss_start.
180 * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Added.
181 (OUTGOING_REG_PARM_STACK_SPACE) update.
182 * config/score/score.opt: add options to make backend support
183 score5, score5u, score7 and score7d.
184 * config/score/score.md: Likewise.
185 * config/score/misc.md: Likewise.
186 * config/score/mac.md: Likewise.
187 * doc/invoke.texi: Likewise.
188 * doc/md.texi: update constraints define.
190 2007-04-03 Richard Henderson <rth@redhat.com>
192 * expr.c (store_expr): If get_signed_or_unsigned_type doesn't yield
193 an appropriate type, use the mode instead.
195 2007-04-03 Richard Sandiford <richard@codesourcery.com>
197 * config.gcc (mips-wrs-vxworks): Add vx-common.h to tm_file.
198 Set the default --with-arch setting to mips2.
199 * config/mips/t-vxworks (MULTILIB_OPTIONS, MULTILIB_MATCHES)
200 (MULTILIB_EXCEPTIONS): Redefine with new multilibs.
201 (MULTILIB_OSDIRNAMES): Delete.
202 (MULTILIB_DIRNAMES): Define.
203 * config/mips/vxworks.h (LINK_SPEC): Add VXWORKS_LINK_SPEC.
204 (LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Define.
205 (TARGET_OS_CPP_BUILTINS): Incorporate old SUBTARGET_CPP_SPEC
206 definitions, except for _WRS_R3K_EXC_SUPPORT. Call
207 VXWORKS_OS_CPP_BUILTINS.
208 (SUBTARGET_CPP_SPEC): Redefine to VXWORKS_ADDITIONAL_CPP_SPEC.
209 (MIPS_DEBUGGING_INFO): Undefine.
210 (FUNCTION_PROFILER): Define to VXWORKS_FUNCTION_PROFILER.
212 2007-04-03 Jakub Jelinek <jakub@redhat.com>
215 * fold-const.c (native_encode_real): Encode real.c provided longs
216 as a series of 32-bit native integers.
217 (native_interpret_real): Interpret buffer as a series of 32-bit
220 2007-04-03 Richard Guenther <rguenther@suse.de>
222 * genpreds.c (write_insn_constraint_len): Write function
223 optimized for CONSTRAINT_LEN implementation.
224 (write_tm_preds_h): Output insn_constraint_len inline and
225 use it for CONSTRAINT_LEN.
226 (write_insn_preds_c): Don't output insn_constraint_len.
227 * doc/md.texi (define_register_constraint): Document multi-letter
228 constraints shall have the same length if they start with the same
231 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
234 * config/i386/i386.md (isinf<mode>2): Expand only when
235 TARGET_C99_FUNCTIONS is set.
237 2007-04-03 Uros Bizjak <ubizjak@gmail.com>
239 * config.gcc (i[34567]86-*-linux*): Add i386/t-crtpc to tm-file.
240 (x86_64-*-linux*): Ditto.
241 * config/i386/i386.opt (mpc): New option.
242 * config/i386/i386.c (overrride_options): Handle
243 ix87_precision_string.
244 * config/i386/crtprec.c: New file.
245 * config/i386/t-crtpc: Ditto.
246 * config/i386/linux.h (ENDFILE_SPEC): Add handling of -mpc32, -mpc64
248 * config/i386/linux64.h (ENDFILE_SPEC): Ditto.
249 * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
250 crtprec32.o, crtprec64.o and crtprec80.o.
252 * doc/invoke.texi (Machine Dependent Options): Add -mpc32, -mpc64
254 (i386 and x86-64 Options): Document -mpc32, -mpc64 and -mpc80 options.
256 2007-04-02 Eric Christopher <echristo@apple.com>
258 * doc/invoke.texi (i386 and x86-64 Options): Document -m64
259 limitations on darwin.
261 2007-04-02 Anatoly Sokolov <aesok@post.ru>
264 * config/avr/avr.c (avr_rtx_costs): Add missing 'break' statements.
266 2007-04-02 Dave Korn <dave.korn@artimi.com>
268 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
270 2007-04-02 Dave Korn <dave.korn@artimi.com>
272 * libgcc2.h (exception_descriptor): Don't forward-declare.
273 (__get_eh_table_language, __get_eh_table_version): Delete
274 prototypes of long-dead functions.
276 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
278 * ebitmap.h: New file
279 * ebitmap.c: New file
280 * Makefile.in (ebitmap.o): New target.
282 2007-04-01 Jan Hubicka <jh@suse.cz>
284 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
285 before very first instruction.
287 2007-04-01 Jan Hubicka <jh@suse.cz>
289 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
290 waring on 64bit hosts.
291 * bitmap.h: Fix typo in bitmap_head_def.
293 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
295 PR rtl-optimization/31391
296 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
297 into a DELETED_LABEL note, and the label is in an empty basic
298 block, update BB_END as well as BB_HEAD.
300 2007-04-01 Richard Henderson <rth@redhat.com>
302 PR tree-optimization/31169
303 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
304 to varying if the range is outside [0, prec-1].
306 2007-04-01 Richard Sandiford <richard@codesourcery.com>
309 * config/mips/mips.md (load_const_gp): New insn.
310 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
311 the MIPS16 GP pseudo register if no_new_pseudos.
312 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
314 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
317 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
319 (call_value): Likewise.
321 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
322 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
325 * doc/invoke.texi: (optimization options): Reword description
326 of -ffast-math. Document its primary purpose.
328 2007-03-31 Richard Guenther <rguenther@suse.de>
330 * omp-low.c (splay-tree.h): Include.
331 (lookup_decl): Replace splay-tree usage by pointer-map.
332 (maybe_lookup_decl): Likewise.
333 (new_omp_context): Likewise.
334 (delete_omp_context): Likewise.
335 * gimplify.c (splay-tree.h): Include.
336 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
338 (remap_ssa_name): Likewise.
339 (remap_decl): Likewise.
340 (remap_type_1): Likewise.
341 (remap_type): Likewise.
342 (copy_body_r): Likewise.
343 (expand_call_inline): Likewise.
344 (clone_body): Likewise.
345 (copy_tree_r): Likewise.
346 (remap_save_expr): Likewise.
347 (unsave_r): Likewise.
348 (unsave_expr_now): Likewise.
349 (tree_function_versioning): Likewise.
350 (build_duplicate_type): Likewise.
351 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
352 (struct copy_body_data): Replace splay-tree by pointer-map.
353 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
355 (gimplify.o): Depend on $(SPLAY_TREE_H).
356 (omp-low.p): Likewise.
358 2007-03-31 Anatoly Sokolov <aesok@post.ru>
360 * config/avr/predicates.md (even_register_operand,
361 odd_register_operand): New predicates.
362 * config/avr/avr.md (movw peephole2): New.
363 (movw_r peephole2): New.
365 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
367 * tree.h (get_signed_or_unsigned_type): New.
368 * fold-const.c (operand_equal_for_comparison_p): Use
369 get_signed_or_unsigned_type instead of
370 lang_hooks.types.signed_or_unsigned_type.
371 * expr.c (store_expr): Ditto.
372 * langhooks.c (get_signed_or_unsigned_type): New.
373 (lhd_signed_or_unsigned_type): New.
374 * langhooks.h (lhd_signed_or_unsigned_type): New.
375 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
377 2007-03-30 Richard Henderson <rth@redhat.com>
379 * tree-ssa-loop-ivopts.c: Include target.h.
380 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
381 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
382 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
383 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
385 2007-03-30 Richard Henderson <rth@redhat.com>
386 Kai Tietz <kai.tietz@onevision.com>
388 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
390 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
391 (TARGET_64BIT_MS_ABI): New.
392 (DBX_REGISTER_NUMBER): Handle 64-bit.
393 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
394 (LONG_TYPE_SIZE): Force to 32.
395 (REG_PARM_STACK_SPACE): New.
396 (OUTGOING_REG_PARM_STACK_SPACE): New.
397 (REGPARM_MAX, SSE_REGPARM_MAX): New.
398 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
399 (STACK_BOUNDARY): Use 128 for 64-bit.
400 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
401 Add 64-bit implementation.
402 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
404 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
405 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
406 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
407 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
408 (ix86_handle_cconv_attribute): Don't warn when ignoring if
410 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
411 (ix86_pass_by_reference): Likewise.
412 (ix86_function_value_regno_p): Likewise.
413 (ix86_build_builtin_va_list): Likewise.
414 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
415 (function_arg_advance_ms_64): New.
416 (function_arg_advance): Call it.
417 (function_arg_ms_64): New.
418 (function_arg): Call it.
419 (function_value_ms_64): New.
420 (ix86_function_value_1): Call it.
421 (return_in_memory_ms_64): New.
422 (ix86_return_in_memory): Call it.
423 (setup_incoming_varargs_ms_64): New.
424 (ix86_setup_incoming_varargs): Call it.
425 (ix86_expand_prologue): Handle 64-bit stack probing.
426 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
427 (output_pic_addr_const): Likewise.
428 (x86_this_parameter): Likewise.
429 (x86_output_mi_thunk): Likewise.
430 (x86_function_profiler): Likewise.
431 (TARGET_STRICT_ARGUMENT_NAMING): New.
432 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
433 (TARGET_64BIT_MS_ABI): New.
434 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
435 * config/i386/i386.md (allocate_stack_worker): Remove.
436 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
437 describe the clobber of eax without a match_scratch.
438 (allocate_stack_worker_postreload): Remove.
439 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
440 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
441 (allocate_stack_worker_rex64_postreload): Remove.
442 (allocate_stack): Handle 64-bit.
443 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
444 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
445 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
446 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
447 (STANDARD_STARTFILE_PREFIX_1): Likewise.
448 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
449 * config.build (x86_64-*-mingw*): New host.
450 * config.host (x86_64-*-mingw*): New host.
451 * config.gcc (x86_64-*-mingw*): New target.
452 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
454 2007-03-30 Richard Henderson <rth@redhat.com>
455 Kai Tietz <kai.tietz@onevision.com>
457 * c-pragma.c (struct def_pragma_macro_value): New.
458 (struct def_pragma_macro): New.
459 (pushed_macro_table): New.
460 (dpm_hash, dpm_eq): New.
461 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
462 (init_pragma): Install them.
463 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
465 2007-03-30 Anatoly Sokolov <aesok@post.ru>
467 * config/avr/avr.c (avr_override_options): Clear
468 'flag_delete_null_pointer_checks'.
470 2007-03-30 Paolo Carlini <pcarlini@suse.de>
473 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
474 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
475 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
476 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
477 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
478 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
479 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
481 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
483 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
485 * regmove.c: Move all of pass_stack_adjustments from here...
486 * combine-stack-adj.c: ...to this new file.
487 * Makefile.in: Add rules for combine-stack-adj.o.
489 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
491 PR tree-optimization/31383
492 * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
493 to have the same length.
495 2007-03-30 Jan Hubicka <jh@suse.cz>
498 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
499 availablility; add more sanity checking; ask varpool only about
502 2007-03-29 Richard Henderson <rth@redhat.com>
504 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
505 to decide, but __SIZEOF_LONG_LONG__.
507 2007-03-29 Richard Henderson <rth@redhat.com>
509 * emutls.c (struct __emutls_array): New.
510 (emutls_destroy): Use it instead of casting element 0 from void*.
511 (__emutls_get_address): Likewise.
513 2007-03-29 Richard Henderson <rth@redhat.com>
515 * varasm.c (initializer_constant_valid_p): Don't deny
516 DECL_DLLIMPORT_P on functions.
518 * config/i386/cygming.h: Remove function declarations.
519 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
520 (ASM_OUTPUT_LABELREF): Remove.
521 (COMMON_ASM_OP): Remove.
522 (ASM_OUTPUT_COMMON): Remove.
523 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
524 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
525 (ASM_DECLARE_FUNCTION_NAME): Likewise.
526 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
527 Rename from TARGET_ENCODE_SECTION_INFO.
528 * config/i386/netware.h: Likewise.
529 * config/i386/i386-protos.h: Update.
530 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
531 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
532 (legitimate_constant_p): Reject dllimports.
533 (dllimport_map, get_dllimport_decl): New.
534 (legitimize_dllimport_symbol): New.
535 (legitimize_address, ix86_expand_move): Use it.
536 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
537 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
538 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
539 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
540 * config/i386/predicates.md (constant_call_address_operand): Only
541 accept symbols; reject dllimport_p symbols.
542 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
543 i386_pe_maybe_record_exported_symbol.
544 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
545 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
546 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
547 trust the setting of DECL_DLLIMPORT_P.
548 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
549 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
550 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
551 tidy the argument scanning loop.
552 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
553 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
554 (i386_pe_strip_name_encoding): Remove.
555 (i386_pe_binds_local_p): New.
556 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
557 (i386_pe_output_labelref): Remove.
558 (i386_pe_asm_output_aligned_decl_common): New.
559 (i386_pe_maybe_record_exported_symbol): Rename from
560 i386_pe_record_exported_symbol; check for dllexported symbols.
562 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
564 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
565 add comment explaining why vsnprintf cannot be used.
567 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
569 PR tree-optimization/30666
570 * tree.c (build_complex_type): When creating type names for DWARF2
571 debug info, create TYPE_DECLs for TYPE_NAME instead of
573 (build_common_tree_nodes_2): Use build_complex_type when building
574 predefined complex types, to preserve canonical types.
576 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
578 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
579 (noce_get_alt_condition): Look at it to determine whether to
580 reverse the condition or not.
581 (noce_get_condition): Substitute the truth for lies.
582 (noce_find_if_block): Set the then_else_reversed field.
584 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
586 * config/fr30/fr30.md (movdi): Do not accept immediates as the
587 destination of this insn.
588 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
589 than calling gen_rtx_SET directly. Use r0 to hold the value of
590 'address + 4' rather than a stack based temporary which can be
593 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
595 * config/s390/s390.c (s390_secondary_input_reload_class,
596 s390_secondary_output_reload_class): Functions removed.
597 (s390_secondary_reload): New function.
598 (TARGET_SECONDARY_RELOAD): Target macro defined.
599 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
600 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
601 * config/s390/s390.md ("reload_outti", "reload_outdi",
602 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
603 "reload_out<mode>"): Expanders removed.
604 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
605 "reload<mode>_nonoffmem_out"): Expanders added.
607 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
609 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
610 SRC->DEST replacement failed anyway.
612 2007-03-28 Mike Stump <mrs@apple.com>
614 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
615 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
616 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
618 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
620 * config.gcc: Accept barcelona as a variant of amdfam10.
621 * config/i386/i386.c (override_options): Likewise.
622 * doc/invoke.texi: Likewise.
624 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
626 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
627 offsets for BIT_FIELD_REF and COMPONENT_REF.
629 2007-03-28 Richard Guenther <rguenther@suse.de>
631 * tree.c (is_global_var): Move ...
632 * tree-flow-inline.h (is_global_var): ... here.
633 * tree.h (is_global_var): Remove declaration.
635 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
637 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
639 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
640 * config/i386/i386.c (ix86_tune_features): Initialize new
642 * config/i386/predicates.md (promotable_binary_operator): Use
643 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
645 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
648 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
650 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
652 * config/fr30/fr30.md (movsi_internal): Change destination
653 constraint from m to V and add m to the end.
655 2007-03-28 Christian Bruel <christian.bruel@st.com>
657 * config/sh/sh.md (movsi_i): Fix type attribute.
659 2007-03-28 Christian Bruel <christian.bruel@st.com>
661 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
662 (movsf_ie): Likewise.
664 2007-03-28 Christian Bruel <christian.bruel@st.com>
666 * config.gcc: Add sh4-300 to multilib.
667 * config/sh/t-mlib-sh4-300: New file.
669 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
671 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
672 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
674 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
675 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
676 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
677 "fixuns_trunctddi2"): Whitespace fix.
679 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
681 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
682 the definition of struct sh_args.
683 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
684 CALL_COOKIE_INT_REG_GET): Likewise.
686 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
688 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
689 transformations are applied successfully.
691 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
693 * tree.c (tree_contains_struct): Permit 512 tree codes.
694 * tree.h (tree_contains_struct): Ditto.
695 (MAX_TREE_CODES): Ditto.
696 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
697 SPARE member to store remaining padding bits.
699 2007-03-27 Anatoly Sokolov <aesok@post.ru>
701 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
704 2007-03-27 Janis Johnson <janis187@us.ibm.com>
706 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
707 * configure: Regenerate.
709 * configure: Regenerate using the correct version of autoconf.
711 2007-03-27 Anatoly Sokolov <aesok@post.ru>
713 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
715 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
716 regs to "__SP_L__" and "__SP_H__".
718 2007-03-27 Richard Guenther <rguenther@suse.de>
720 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
721 computations with it with a HOST_WIDE_INT variable.
723 2007-03-26 Mike Stump <mrs@apple.com>
725 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
726 objective-c-header, objective-c++-header and objc++-cpp-output
728 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
730 2007-03-26 Richard Henderson <rth@redhat.com>
733 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
734 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
735 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
736 IX86_BUILTIN_PSRLQ128): New.
737 (ix86_init_mmx_sse_builtins): Add them.
738 (ix86_expand_builtin): Expand them.
739 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
741 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
742 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
743 _mm_srli_epi64): Mark __B const.
744 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
745 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
746 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
747 new two-vector shift builtins.
749 2007-03-26 Ian Lance Taylor <iant@google.com>
751 PR tree-optimization/31345
752 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
753 [+INF, +INF(OVF)] into VARYING.
755 2007-03-26 Zack Weinberg <zackw@panix.com>
757 * gengtype-parse.c: New file.
758 * gengtype-yacc.y: Delete.
759 * gengtype-lex.l: Don't include gengtype-yacc.h.
760 Define YY_DECL and yyterminate appropriately for recursive
761 descent parser. yylval is now a string out-parameter to yylex.
762 (HWS, EOID): New shorthand.
763 (IWORD): Add a couple more types.
764 (yylex): Add a setup stanza. Remove the complex rules for
765 detecting GTY'ed types and typedefs; replace with simple
766 keyword detectors. Adjust everything for the changed
767 definition of yylval. Ignore all pp-directives, not just #define.
769 (parse_file): Rename yybegin; do not call yyparse.
771 * gengtype.c (xasprintf): Export again.
772 (this_file): New. Use everywhere __FILE__ was being used.
773 (get_lang_bitmap): Special case types defined in gengtype.c.
774 (do_typedef, new_structure): Suppress definition of certain types.
775 (new_structure): Improve diagnostics of duplicate definitions.
776 Make sure location_s is associated with input.h.
777 (nreverse_pairs, define_location_structures): New functions.
778 (main): Improve tagging of kludge types. Remove old kludges
779 for input.h types; use define_location_structures.
780 * gengtype.h: Update prototypes. Define token codes here.
781 * Makefile.in: Remove all references to gengtype-yacc.
782 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
784 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
785 add GTY((skip)) to the field that's only conditionally there.
786 * doc/install.texi: Document that Bison is no longer required
787 unless building treelang.
789 * gengtype.c: Don't include gtyp-gen.h.
790 (srcdir): Declare here.
791 (base_files, lang_dir_names): Allocate dynamically.
792 (gt_files, num_gt_files, num_lang_dirs): New globals.
793 (measure_input_list, read_input_line, read_input_list)
794 (set_lang_bitmap): New functions.
795 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
796 simplify, relying on read_input_list to set up the bitmaps.
797 (main): Arguments are no longer unused. Check for correct number
798 of command line arguments, set srcdir and srcdir_len, then call
799 read_input_list, before doing anything else. No need to worry
800 about duplicates in main loop.
801 * configure.ac: Simplify the calculation of all_gtfiles.
802 Put language tags in there. Don't set or substitute
803 all_gtfiles_files_langs or all_gtfiles_files_frags.
804 * Makefile.in: Revamp the way gengtype is invoked, now that it
805 takes a file on its command line with a much simpler format.
806 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
807 (GTFILES): Remove duplicates and C source files.
808 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
809 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
810 * configure: Regenerate.
812 * gengtype.h: Remove all type definitions to gengtype.c; leave
813 only definitions of options_p, type_p, and pair_p as opaque
814 pointers. Update prototypes.
815 * gengtype.c: Many type definitions moved here from gengtype.h.
816 Consolidate type definitions at the top of the file.
817 (xvasprintf): Delete.
818 (xasprintf): Make static.
819 (create_nested_pointer_option): Add 'next' parameter.
820 (create_field_all, create_field_at): New functions.
821 (create_field): Now a thin wrapper around create_field_all.
822 (create_optional_field): Rename create_optional_field_ and add
823 line argument. Original name is now a macro which supplies
825 (oprintf): Use vsnprintf directly.
826 (close_output_files): Use fatal rather than perror/exit.
827 (note_def_vec, note_def_vec_alloc): Use create_field_at.
828 (main): Set progname. Don't use exit.
829 * gengtype-yacc.y (struct_fields): Use create_field_at.
830 (option, optionseqopt): Delete.
831 (optionseq): Consolidate productions from option here so we
832 can use the first argument to create_option.
834 * gengtype-lex.l: Distinguish unions from structures in the
835 token type. Don't call find_structure; return the tag as a string.
836 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
837 Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
838 Reorganize typedef_struct production accordingly.
839 Use create_nested_ptr_option.
840 * gengtype.c (create_nested_ptr_option): New function.
841 * gengtype.h: Declare it.
843 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
844 (string_type): Don't declare.
845 (do_scalar_typedef): Declare.
846 (create_scalar_type): Update prototype.
847 * gengtype.c (string_type): Make static.
848 (scalar_nonchar, scalar_char): New.
849 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
850 (resolve_typedef): Use scalar_nonchar for error recovery.
851 (create_scalar_type): Remove name_len field. Return scalar_char
852 or scalar_nonchar as appropriate.
853 (adjust_field_type): Look at scalar_is_char boolean to decide whether
855 (throughout): Use scalar_nonchar instead of calling create_scalar_type,
857 (main): Initialize scalar_char and scalar_nonchar before calling
859 * gengtype-lex.l: Adjust for removal of second argument to
860 create_scalar_type. Use yylval.s instead of yylval.t when
862 * gengtype-yacc.y: Type of SCALAR is string. Call
863 create_scalar_type from type:SCALAR rule. Adjust for removal of
864 second argument to create_scalar_type.
866 * vec.h: Remove all #if IN_GENGTYPE blocks.
867 Add comment saying that changes may require adjustments to gengtype.
868 * gengtype.c: Don't include coretypes.h or tm.h.
869 Add comment to inclusion of errors.h.
870 (note_def_vec, note_def_vec_alloc): New functions.
871 * gengtype.h: Declare new functions.
872 * gengtype-lex.l: Don't include coretypes.h.
873 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
875 (update_lineno): Remove unnecessary prototype.
876 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
877 (VEC rule): Just return VEC_TOKEN.
878 * gengtype-yacc.y (VEC_TOKEN): New token type.
879 (type): Add a production for VEC(a,b).
880 * Makefile.in: Update dependencies.
882 * gengtype-lex.l: Remove rules for parsing pointer-to-function
883 typedefs that use the old PARAMS macro.
885 * gengtype-lex.l: Remove all rules and states relating to yacc
887 * gengtype-yacc.y: Similarly.
888 * gengtype.c (note_yacc_type): Delete function.
889 * gengtype.h: Update prototypes.
891 2007-03-26 Joseph Myers <joseph@codesourcery.com>
893 * tree-pretty-print.c (dump_generic_node): Report precision of
894 unnamed integer types.
896 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
898 * ifcvt.c (noce_try_store_flag_constants): Don't check
900 (noce_try_store_flag_constants): Don't check no_new_pseudos.
901 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
902 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
903 noce_try_sign_mask): Likewise.
904 (if_convert): Check no_new_pseudos here.
906 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
908 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
909 (noce_get_condition): Handle new then_else_reversed argument.
910 (noce_init_if_info): Remove, fold into noce_find_if_block.
911 (noce_process_if_block): Take a struct noce_if_info as the
912 argument. Don't set up one based on ce_if_info. Update pointer
913 references accordingly.
914 (cond_move_process_if_block): Likewise.
915 (process_if_block): Removed.
916 (find_if_block): Removed. Move functionality two new functions,
917 noce_find_if_block and cond_exec_find_if_block.
918 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
919 blocks and the symmetric IF-ELSE-JOIN case.
920 (cond_exec_find_if_block): Also new function mostly based on old
921 find_if_block and process_if_block.
922 (find_if_header): Replace find_if_block call with separately
923 guarded calls to noce_find_if_block and cond_exec_find_if_block.
924 (find_cond_trap): Update noce_get_condition call.
925 (dead_or_predicable): Likewise.
927 2007-03-26 Jakub Jelinek <jakub@redhat.com>
929 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
931 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
932 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
933 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
934 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
935 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
936 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
937 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
938 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
939 __builtin_ia32_psrad128 builtins.
941 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
943 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
944 * config/i386/constraints.md
945 (define_constraint "I"): Use IN_RANGE macro.
946 (define_constraint "J"): Ditto.
947 (define_constraint "K"): Ditto.
948 (define_constraint "M"): Ditto.
949 (define_constraint "N"): Ditto.
950 (define_constraint "O"): Ditto.
951 * config/i386/predicates.md
952 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
953 (define_predicate "const_0_to_3_operand"): Ditto.
954 (define_predicate "const_0_to_7_operand"): Ditto.
955 (define_predicate "const_0_to_15_operand"): Ditto.
956 (define_predicate "const_0_to_63_operand"): Ditto.
957 (define_predicate "const_0_to_255_operand"): Ditto.
958 (define_predicate "const_1_to_31_operand"): Ditto.
959 (define_predicate "const_2_to_3_operand"): Ditto.
960 (define_predicate "const_4_to_7_operand"): Ditto.
962 2007-03-25 David Edelsohn <edelsohn@gnu.org>
964 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
965 in SImode for save_world.
966 * config/rs6000/altivec.md (save_world, restore_world): Convert to
969 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
971 PR tree-optimization/30784
972 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
975 2007-03-25 Revital Eres <eres@il.ibm.com>
977 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
978 Fold movement_possibility function into it.
980 2007-03-25 David Edelsohn <edelsohn@gnu.org>
982 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
983 (load_macho_picbase_{si,di}): Convert to LR hard reg.
984 (call_indirect_nonlocal_darwin64): Same.
985 (call_nonlocal_darwin64): Same.
986 (call_value_indirect_nonlocal_darwin64): Same.
987 (call_value_nonlocal_darwin64): Same.
988 (sibcall_nonlocal_darwin64): Same.
989 (sibcall_value_nonlocal_darwin64): Same.
990 (sibcall_symbolic_64): Same.
991 (sibcall_value_symbolic_64): Same.
992 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
994 (rs6000_emit_load_toc_table): Same.
995 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
996 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
1002 (load_toc_v4_pic_si): Same
1003 (load_toc_v4_PIC_1): Same.
1004 (load_toc_v4_PIC_1b): Same.
1005 (call_indirect_aix{32,64}): Same.
1006 (call_value_indirect_aix{32,64}): Same.
1009 (call_local{32,64}): Same.
1010 (call_value_local{32,64}): Same.
1011 (call_indirect_nonlocal_aix{32,64}): Same.
1012 (call_nonlocal_aix{32,64}): Same.
1013 (call_value_indirect_nonlocal_aix{32,64}): Same.
1014 (call_value_nonlocal_aix{32,64}): Same.
1015 (call_indirect_nonlocal_sysv<mode>): Same.
1016 (call_nonlocal_sysv<mode>): Same.
1017 (call_value_indirect_nonlocal_sysv<mode>): Same.
1018 (call_value_nonlocal_sysv<mode>): Same.
1020 (sibcall_local{32,64}): Same.
1021 (sibcall_value_local{32,64}): Same.
1022 (sibcall_nonlocal_aix{32,64}): Same.
1023 (sibcall_value_nonlocal_aix{32,64}): Same.
1024 (sibcall_nonlocal_sysv<mode>): Same.
1025 (sibcall_value): Same.
1026 (sibcall_value_nonlocal_sysv<mode>): Same.
1028 2007-03-24 Paul Brook <paul@codesourcery.com>
1030 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
1031 * config/arm/linux-eabi.h: Remove legacy syscall hack.
1033 2007-03-24 Richard Henderson <rth@redhat.com>
1035 * config/ia64/constraints.md: New file.
1036 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
1037 satisfies_constraint_?.
1038 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
1039 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
1040 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
1041 ia64_output_mi_thunk): Likewise.
1042 (ia64_const_ok_for_letter_p): Remove.
1043 (ia64_const_double_ok_for_letter_p): Remove.
1044 (ia64_extra_constraint): Remove.
1045 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
1046 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
1047 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
1048 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
1049 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
1050 EXTRA_MEMORY_CONSTRAINT): Remove.
1051 * config/ia64/ia64.md: Include constriants.md. Replace
1052 CONST_OK_FOR_? with satisfies_constraint_?.
1054 2007-03-23 Michael Meissner <michael.meissner@amd.com>
1055 H.J. Lu <hongjiu.lu@intel.com>
1057 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
1059 (name macros): Use DPD_BID_NAME to convert names properly.
1061 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
1062 decimal floating point format.
1063 (init_floating_libfuncs): Change decimal functions so that they
1064 have a "bid_" prefix if the decimal system uses the BID format,
1065 and "dpd_" prefix if the decimal system uses the DPD format.
1066 (init_interclass_conv_libfuncs): Ditto.
1067 (init_intraclass_conv_libfuncs): Ditto.
1069 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
1070 using the BID format.
1072 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
1073 whether we are using the BID decimal format.
1074 * configure: Regenerate.
1076 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
1077 the compiler has decimal floating point enabled. Define
1078 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
1081 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
1082 using the BID format.
1084 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
1085 whether we are using the BID decimal format.
1086 * configure: Regenerate.
1088 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
1089 the compiler has decimal floating point enabled. Define
1090 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
1093 * doc/install.texi (--enable-decimal-float): Document BID and DPD
1094 options, and that it is enabled for i386/x86_64 systems.
1096 * Makefile.in (enable_decimal_float): New.
1098 (DECNUMINC): Add -I$(DECNUMFMT).
1099 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
1100 to $(DECNUMFMT) from $(DECNUM).
1102 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
1103 Substitute enable_decimal_float.
1104 * configure: Regenerated.
1107 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
1110 * configure.ac: Enable decimal float for x86_64-*-linux*.
1111 * configure: Regenerated.
1114 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
1115 decimal128ClearSign to flip and clear the sign bit in decimal128.
1116 (decimal_real_maxval): Set decimal128SetSign to set the sign
1119 2007-03-23 Ian Lance Taylor <iant@google.com>
1121 * fold-const.c (fold_binary): Correct warning for X - c >= X.
1123 2007-03-23 Ian Lance Taylor <iant@google.com>
1125 * tree-dump.c (dump_files): Correct comment.
1127 2007-03-23 Ian Lance Taylor <iant@google.com>
1129 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
1131 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
1133 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
1134 in cfglayout mode. Don't go into and out of cfglayout mode.
1135 Link the blocks in the order of the constructed traces.
1136 (rest_of_handle_tracer): Adjust call to tracer.
1137 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
1138 Don't go into cfglayout mode.
1139 (rtl_loop_done): Don't go out of cfglayout mode.
1140 * cfglayout.c (relink_block_chain): New function, split out from...
1141 (fixup_reorder_chain): ...here. Remove redundant checking.
1142 (cfg_layout_finalize): Don't clear the header, footer, and aux
1143 fields here, move the code to do so to relink_block_chain. Likewise
1144 for free_original_copy_tables.
1145 * rtl.h (tracer): Update prototype.
1146 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
1147 Assert we are in cfglayout mode. Don't go into and out of cfglayout
1148 mode. Use relink_block_chain to serialize the CFG according to the
1149 new basic block order. Move targetm.cannot_modify_jumps_p check from
1151 (gate_handle_reorder_blocks): ...to here.
1152 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
1154 (gate_duplicate_computed_gotos): ...to here.
1155 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
1156 something always changes when going into and out of cfglayout mode.
1157 Perform an expensive cfg cleanup while going into cfglayout mode.
1158 Always update liveness information on HAVE_conditional_execution
1159 targets. Reserialize the basic blocks and go out of cfglayout mode.
1160 * reg-stack.c: Include cfglayout.h.
1161 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
1162 the call to reorder_basic_blocks.
1163 * basic-block.h (reorder_basic_blocks): Update prototype.
1164 (relink_block_chain): New prototype.
1165 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
1167 2007-03-23 Joseph Myers <joseph@codesourcery.com>
1169 * config/mips/mips.md (type, hazard, *movdi_32bit,
1170 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
1171 *movhi_internal, *movqi_internal, *movsf_hardfloat,
1172 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
1173 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
1174 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
1176 (movcc): Change first xfer to multi.
1177 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
1178 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
1179 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
1180 config/mips/generic.md: Change reservations using "xfer" to use
1182 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
1183 using match_operand.
1184 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
1185 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
1187 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
1189 2007-03-22 Richard Henderson <rth@redhat.com>
1191 * config/i386/i386.c: Remove unnecessary function declarations.
1192 Move targetm definition, and all related macros, to the end of
1193 the file. Resort some functions to put definitions before uses.
1194 (ix86_attribute_table): Make static. Move to end of file.
1195 (ix86_gimplify_va_arg): Make static.
1197 2007-03-22 Richard Henderson <rth@redhat.com>
1199 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
1200 don't increase local_regparm with force_align_arg_pointer check.
1201 (ix86_function_sseregparm): Assert 32-bit.
1202 (type_has_variadic_args_p): New.
1203 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
1204 type_has_variadic_args_p.
1205 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
1206 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
1207 use memset instead. Do maybe_vaarg check first; skip attribute
1208 tests if true; skip attribute tests for 64-bit.
1209 (construct_container): Remove TARGET_DEBUG_ARG.
1210 (function_arg_advance_32, function_arg_advance_64): Split out ...
1211 (function_arg_advance): ... from here.
1212 (function_arg_32, function_arg_64): Split out ...
1213 (function_arg): ... from here.
1214 (ix86_pass_by_reference): Tidy.
1215 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
1216 (function_value_32): New, from parts of ix86_function_value
1217 and ix86_value_regno.
1218 (function_value_64): New, from parts of ix86_function_value
1219 and ix86_libcall_value.
1220 (ix86_function_value_1): New.
1221 (ix86_function_value, ix86_libcall_value): Use it.
1222 (return_in_memory_32, return_in_memory_64): Split out ...
1223 (ix86_return_in_memory): ... from here.
1224 (ix86_struct_value_rtx): Skip for 64-bit.
1225 (ix86_libcall_value, ix86_value_regno): Remove.
1226 (setup_incoming_varargs_64): Split out ...
1227 (ix86_setup_incoming_varargs): ... from here.
1228 (ix86_va_start): Remove TARGET_DEBUG_ARG.
1229 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
1230 * config/i386/i386-protos.h (ix86_function_value): Remove.
1231 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
1233 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1236 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
1237 infinities not supported, otherwise emit warning if -Woverflow. On
1238 underflow, emit warning if -Woverflow.
1239 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
1241 * real.h (real_from_string): Update declaration
1243 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
1244 Richard Henderson <rth@redhat.com>
1246 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
1247 * calls.c (compute_argument_block_size, expand_call,
1248 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
1249 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
1250 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
1251 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
1252 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
1253 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
1254 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
1255 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
1258 2007-03-22 Joseph Myers <joseph@codesourcery.com>
1260 * c-incpath.c (add_sysroot_to_chain): New.
1261 (merge_include_chains): Add sysroot argument. Call
1262 add_sysroot_to_chain if sysrooted.
1263 (register_include_chains): Update call to merge_include_chains.
1264 * doc/cppopts.texi: Document use of '=' in include directory
1267 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
1269 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
1270 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
1271 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
1272 insn pattern using X87MODEF12 mode macro.
1274 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
1276 * regmove.c (regmove_optimize): Use reg_mentioned_p
1277 instead of reg_overlap_mentioned_p for DST.
1279 2007-03-21 Mike Stump <mrs@apple.com>
1281 * c.opt: Fixup for Objective-C/C++.
1283 2007-03-21 Steve Ellcey <sje@cup.hp.com>
1285 * explow.c (convert_memory_address): Fold memory reference when
1286 POINTERS_EXTEND_UNSIGNED < 0
1288 2007-03-21 Richard Henderson <rth@redhat.com>
1291 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
1292 * config/i386/mmintrin.h (__m64): Likewise.
1293 * config/i386/xmmintrin.h (__m128): Likewise.
1295 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1297 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
1298 (VXWORKS_OS_CPP_BUILTINS): Define.
1299 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
1300 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
1302 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1304 * rtl.h (constant_pool_reference_p): Delete.
1305 (find_constant_src): Declare.
1306 * rtlanal.c (find_constant_src): New function.
1307 * simplify-rtx.c (constant_pool_reference_p): Delete.
1308 * config/i386/i386.md: Use find_constant_src instead of
1309 constant_pool_reference_p/avoid_constant_pool_reference pairs.
1311 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1313 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
1314 * c-cppbuiltin.c (c_cpp_builtins): Define them.
1316 2007-03-20 Mark Mitchell <mark@codesourcery.com>
1318 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
1319 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
1320 (arm_elf_asm_constructor): Use it.
1321 (arm_elf_asm_destructor): New function.
1323 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
1325 * jump.c (mark_jump_label): Treat SEQUENCE specially.
1327 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
1329 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
1331 2007-03-19 Andrew Haley <aph@redhat.com>
1333 PR tree-optimization/31264
1334 * tree-vrp.c (register_edge_assert_for_1): Don't look though
1337 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
1339 PR rtl-optimization/30907
1340 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
1341 (fwprop_init): Always call loop_optimizer_initialize.
1342 (fwprop_done): Always call loop_optimizer_finalize.
1343 (fwprop): We always have loop info now.
1344 (gate_fwprop_addr): Remove.
1345 (pass_fwprop_addr): Use gate_fwprop as gate.
1347 PR rtl-optimization/30841
1348 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
1349 df_chain_alloc): Call df_reorganize_refs unconditionally.
1350 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
1351 refs_organized to refs_organized_size.
1352 (df_ref_create_structure): Use refs_organized_size instead of
1353 bitmap_size if refs had been organized, and keep refs_organized_size
1355 * df.h (struct df_ref_info): Change refs_organized to
1356 refs_organized_size.
1357 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
1360 2007-03-19 Mark Mitchell <mark@codesourcery.com>
1362 * except.c (output_function_exception_table): Do not reference the
1363 EH personality routine for functions that do not require an
1366 2007-03-20 Jakub Jelinek <jakub@redhat.com>
1369 * c-typeck.c (convert_for_assignment): Call comptypes for
1370 RECORD_TYPE or UNION_TYPE.
1373 * reload1.c (reload): Do invalid ASM checking after
1374 cleanup_subreg_operands.
1376 2007-03-19 Jeff Law <law@redhat.com>
1378 * tree-cfg.c (find_taken_edge): Tighten conditions for
1379 optimizing computed gotos.
1381 2007-03-19 Michael Matz <matz@suse.de>
1383 * builtins.c (expand_builtin_sync_operation,
1384 expand_builtin_compare_and_swap,
1385 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
1388 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
1389 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
1392 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1394 * doc/tm.texi: Add brackets around the return type of
1395 TARGET_SECONDARY_RELOAD.
1397 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
1398 Richard Guenther <rguenther@suse.de>
1400 PR tree-optimization/31254
1401 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
1402 Use handled_component_p () where appropriate. Continue
1403 propagating into the rhs if we propagated into an INDIRECT_REF
1406 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1408 * config/s390/s390.md (op_type attribute): RRR instruction type added.
1409 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
1410 (xde, xdee): Mode attributes adjusted to support DFP modes.
1411 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
1412 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
1413 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
1414 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
1415 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
1416 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
1417 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
1419 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
1420 "movsf"): Insn definitions removed.
1421 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
1422 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
1423 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
1425 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
1426 "reload_in<mode>", "reload_out<mode>"): Expander added.
1427 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
1430 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1432 * config/s390/s390.md: Only non-functional changes. Renamed
1433 FPR mode macro to BFP all over the file.
1435 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1437 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
1438 (op_type attribute): RRF instruction type added.
1439 (fT0): New mode attribute.
1440 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
1441 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
1442 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
1443 no secondary memory is needed when moving DFmode values between GPRs
1446 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1448 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
1449 inverted and documentation adjusted.
1450 ("mhard-dfp", "msoft-dfp"): New options.
1451 * config/s390/s390.c (s390_handle_arch_option): New architecture
1453 (override_options): Sanity checks for the new options added.
1454 * config.gcc: New architecture switch: z9-ec.
1455 * config/s390/s390.h (processor_flags): PF_DFP added.
1456 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
1457 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
1458 when the bit is NOT set so remove it from the defaults.
1460 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1462 * genemit.c (main): Print include statement for dfp.h.
1463 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
1466 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
1468 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
1470 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
1473 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
1476 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1478 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
1479 attr_length_call, output_call, output_indirect_call): Cleanup
1480 formatting of targetm calls.
1482 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
1484 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
1486 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1488 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
1489 reservation, bypass and anti-bypass descriptions for these instructions.
1490 Update move patterns.
1491 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
1494 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
1496 * tree-vect-transform.c (get_initial_def_for_induction): Replace
1497 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
1498 (get_initial_def_for_reduction): Likewise.
1500 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
1502 Fix PR tree-optimization/29922
1503 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
1504 (get_representative): Removed.
1505 (value_dies_in_block_x): Update for rvuse removal.
1506 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
1507 (compute_antic_aux): Handle when PHI nodes appear in
1508 non-single-successors.
1509 (dump_bitmap_of_names): Removed.
1510 (compute_antic_safe): Renamed and removed rvuse calculation.
1511 Calculate only antic safe.
1512 (insert_into_preds_of_block): Remove assert.
1513 (execute_pre): Update for renamed functions.
1514 (defer_or_phi_translate_block): New function.
1516 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
1518 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
1519 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
1521 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
1522 Follow spelling conventions.
1524 * tree-data-ref.h: Remove the prototype for analyze_array.
1526 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
1528 PR tree-optimization/31041
1529 * tree-vect-transform.c (get_initial_def_for_induction): Call
1530 force_gimple_operand.
1532 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
1534 * ipa-type-escape.c (look_for_casts) : Revert code to use
1535 handled_component_p due to ada test a-numaux.adb.
1537 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
1539 * final.c (final_scan_insn): Alter the condition of a
1540 conditional trap if we have nonstandard CC.
1542 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1544 * configure.ac: Remove excess quoting from asm line 0 test.
1545 * configure: Rebuilt.
1547 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1549 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
1550 * c-common.c (convert_and_check): Move warning logic to...
1551 (warnings_for_convert_and_check): ...here. Define.
1552 * c-common.h (warnings_for_convert_and_check): Declare.
1554 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1556 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
1557 (output_call): Likewise.
1559 2007-03-16 Richard Sandiford <richard@codesourcery.com>
1561 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
1563 2007-03-16 Richard Sandiford <richard@codesourcery.com>
1565 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
1567 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
1569 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
1570 opteron, athlon-64 and athlon-fx processor_alias_table entries.
1572 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
1574 PR tree-optimization/31183
1575 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
1576 Use double_int instead of unsigned int for representing access_strides.
1577 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
1579 2007-03-16 Richard Guenther <rguenther@suse.de>
1581 PR tree-optimization/31146
1582 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
1583 to allow recursion of forward_propagate_addr_expr.
1584 (forward_propagate_addr_into_variable_array_index): Likewise.
1585 (forward_propagate_addr_expr): Likewise.
1586 (tree_ssa_forward_propagate_single_use_vars): Likewise.
1587 (forward_propagate_addr_expr_1): Recurse on simple copies
1588 instead of propagating into them. Do so for useless conversions
1590 (forward_propagate_addr_expr): Clean up unused statements after
1593 2007-03-16 Richard Guenther <rguenther@suse.de>
1595 * builtins.c (expand_builtin_cexpi): Use the right argument
1596 for the expansion via cexp.
1598 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1600 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
1601 * configure: Rebuilt.
1603 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1606 * dwarf2out.c (force_type_die): Adjust comment.
1607 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
1609 2007-03-15 DJ Delorie <dj@redhat.com>
1611 * config/frv/predicates.md (minmax_operator): Don't check operands
1614 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
1616 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
1617 Update constant estimates of number of iterations.
1618 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
1619 argument renamed to "realistic".
1620 (compute_estimated_nb_iterations): Removed.
1621 (record_niter_bound): New function.
1622 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
1623 call record_nonwrapping_iv with upper = false.
1624 (infer_loop_bounds_from_signedness): Pass upper argument to
1625 record_nonwrapping_iv.
1626 (estimate_numbers_of_iterations_loop): Do not call
1627 compute_estimated_nb_iterations. Record estimate based on profile
1628 information. Initialize the constant estimates of number of
1630 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
1632 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
1633 number of iterations is too small.
1634 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
1635 (EST_NOT_AVAILABLE): Removed.
1636 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
1637 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
1640 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
1642 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
1643 Handle NE_EXPR guards.
1645 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1648 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
1649 Set also -pedantic-errors by default for the preprocessor unless
1650 -fpermissive is given.
1652 2007-03-15 Richard Guenther <rguenther@suse.de>
1656 * builtins.c (expand_builtin_cexpi): As a fallback if we
1657 don't have builtins for sincos or cexp create a function
1658 declaration for cexp and expand to a call to that.
1659 (expand_builtin_int_roundingfn): Always fall
1660 back to floor/ceil and its variants even if they may be
1663 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
1666 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
1667 jump tables, move the call to delete_dead_jumptables from here...
1668 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
1669 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
1670 don't allow merging of blocks that try_redirect_by_replacing_jump
1671 also does not handle when not optimizing.
1673 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
1674 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1676 * config/i386/i386.md (x86_sahf_1): Correctly handle
1679 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
1682 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
1683 x86_64_general_operand as operand[2] predicate. Remove "iF"
1684 from operand constraints and use "e" constraint instead.
1685 (*subti3_1, *subti3_1 splitter): Ditto.
1686 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
1687 operand[1] predicate.
1689 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
1691 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
1692 arrays, multiply the access strides by the size of the sub-array.
1693 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
1695 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
1697 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
1698 the configured assembler supports the sahf mnemonic.
1699 * configure: Regenerate.
1700 * config.in: Regenerate.
1702 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
1703 emit "sahf" or ".byte\t0x9e" as asm template.
1705 2007-03-14 Michael Meissner <michael.meissner@amd.com>
1708 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
1709 option to replace hard coded TARGET_xxx in md file.
1710 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
1711 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1712 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
1713 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
1714 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
1715 (X86_TUNE_NOT_VECTORMODE): Ditto.
1716 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
1717 (TUNE_AVOID_VECTOR_DECODE): Ditto.
1718 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1719 (TUNE_SLOW_IMUL_IMM8): Ditto.
1720 (TUNE_MOVE_M1_VIA_OR): Ditto.
1721 (TUNE_NOT_UNPAIRABLE): Ditto.
1722 (TUNE_NOT_VECTORMODE): Ditto.
1724 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
1727 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
1728 tuning options instead of hard coded TARGET_xxx.
1729 (fix ssemode peephole2's): Ditto.
1730 (imul peephole2's): Ditto.
1732 (movdi_or_rex64): Ditto.
1733 (move peephole2): Ditto.
1734 (not peephole2's): Ditto.
1736 2007-03-14 Dirk Mueller <dmueller@suse.de>
1738 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
1739 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
1740 * c-parser.c (c_parser_if_body): Always add an empty statement in case
1742 * c-parser.c (c_parser_do_statement): Warn about empty body in
1744 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
1745 * doc/invoke.texi (-Wempty-body): Update documentation.
1747 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1750 * c-common.h (warn_for_div_by_zero): Declare.
1751 * c-common.c (warn_for_div_by_zero): Define.
1752 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
1755 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1757 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
1758 to PREFIX and STANDARD_PREFIX.
1760 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1761 Phil Edwards <phil@codesourcery.com>
1763 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
1764 (__gthread_once_t): Remove busy field for RTPs.
1765 (__GTHREAD_ONCE_INIT): Update accordingly.
1767 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1769 * doc/invoke.texi: Document VxWorks options.
1771 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
1773 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
1775 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
1777 PR tree-optimization/30590
1778 * tree-nrv.c (tree_nrv): Check for the partial update of the
1781 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
1783 * flags.h (flag_random_seed): Remove declaration, in favor of...
1784 * toplev.h (get_random_seed, set_random_seed): ... these.
1785 * tree.c (get_file_function_name): Use the former.
1786 * opts.c (common_handle_option): Use the latter.
1789 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
1792 * cse.c (cse_find_path): Do not bail out if a basic block that
1793 we already visited now becomes part of a path that starts at a
1794 different basic block. Just disallow this, to make sure we
1795 visit each basic block at most once.
1797 2007-03-13 Jan Hubicka <jh@suse.cz>
1799 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
1800 when profile esitmate is present, calls with very low frequency are
1803 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
1805 PR tree-optimization/30730
1806 PR tree-optimization/26900
1807 * tree-ssa-loop-niter.c: Include gmp.h.
1809 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
1810 split_to_var_and_offset, determine_value_range,
1811 bound_difference_of_offsetted_base, refine_bounds_using_guard,
1812 bound_difference, bounds_add, bounds_negate,
1813 number_of_iterations_ne_max, dump_affine_iv): New functions.
1814 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
1815 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
1816 difference of initial and final value of control iv to validate
1818 (number_of_iterations_cond): Add loop parameter. Determine bounds
1819 on the difference of the extremes of the control iv. Add dumps.
1820 (expand_simple_operations): Handle phi nodes.
1821 (simplify_using_initial_conditions): Do not record used conditions.
1822 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
1823 Do not set additional_info.
1824 (implies_nonnegative_p, implies_ge_p): Removed.
1825 (derive_constant_upper_bound): Do not use parameter `additional'.
1826 (record_estimate): Parameter `additional' removed. Parameter
1827 `i_bound' added. Do not call derive_constant_upper_bound.
1828 (record_nonwrapping_iv): Use derive_constant_upper_bound to
1829 bound the number of iterations estimate.
1830 (estimate_numbers_of_iterations_loop): Pass the estimate from
1831 the number of iterations analysis to record_estimate.
1832 * tree.h (multiple_of_p): Declare.
1833 * tree-scalar-evolution.c (expression_expensive_p): Removed.
1834 (scev_const_prop): Do not check expression_expensive_p.
1835 * fold-const.c (multiple_of_p): Exported.
1836 * double-int.c (double_int_mask): Exported.
1837 * double-int.h (double_int_mask): Declare.
1838 * tree-flow.h (struct tree_niter_desc): Removed additional_info
1839 field. Added max field.
1841 2007-03-13 David Taylor <taylor@candd.org>
1844 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
1847 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1850 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
1851 two unamed patterns.
1853 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
1855 * config/i386/i386.opt (mcx16, msahf): New options.
1856 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
1857 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
1859 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
1860 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
1861 Output -mcx16 and -msahf options when corresponding bit is set.
1863 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
1866 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
1868 * configure.ac: Test for assembler tolerance to # 0 "".
1869 * configure, config.in: Rebuilt.
1870 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
1872 2007-03-13 Geoffrey Keating <geoffk@apple.com>
1874 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
1876 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
1877 (handle_syscall): Handle direct system calls.
1878 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
1880 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
1882 * doc/invoke.texi: Fix cpp.info cross-reference.
1883 * doc/passes.texi: Fix gcc.info cross-reference.
1885 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
1887 PR tree-optimization/30835
1888 * lambda-code.c (can_convert_to_perfect_nest): Check whether
1889 bb_for_stmt is not NULL before accessing it.
1891 2007-03-12 Joseph Myers <joseph@codesourcery.com>
1893 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
1896 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
1899 * doc/install.texi: Document --enable-stage1-languages
1901 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
1903 * tree-pass.h (pass_into_cfg_layout_mode,
1904 pass_outof_cfg_layout_mode): Declare.
1905 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
1906 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
1907 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
1908 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
1910 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
1912 * c-decl.c (warn_variable_length_array): New function.
1913 Refactored from grokdeclarator to handle warn_vla
1914 and handle unnamed array case.
1915 (grokdeclarator): Refactored VLA warning case.
1916 * c.opt (Wvla): New flag.
1917 * doc/invoke.texi (Wvla): New warning.
1919 2007-03-12 Richard Henderson <rth@redhat.com>
1921 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
1922 (TARGET_SECTION_TYPE_FLAGS): New.
1924 2007-03-12 Richard Henderson <rth@redhat.com>
1926 * config/darwin.c (machopic_reloc_rw_mask): New.
1927 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
1928 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
1930 2007-03-12 Mark Mitchell <mark@codesourcery.com>
1932 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
1933 * cppdefault.h (cpp_PREFIX): Document.
1934 (cpp_PREFIX_len): Likewise.
1935 (cpp_EXEC_PREFIX): New variable.
1936 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
1937 * c-incpath.c (add_standard_paths): Correct logic for relocating
1938 paths within prefix.
1940 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
1942 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
1943 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
1945 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
1946 fix_truncdfdi_sse using SSEMODEF mode macro.
1947 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
1948 fix_truncdfsi_sse using SSEMODEF mode macro.
1949 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
1950 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
1952 2007-03-12 Richard Sandiford <richard@codesourcery.com>
1954 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
1957 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
1959 * tree.h : Add multiple_of_p declaration.
1960 * fold-const.c (multiple_of_p): Make multiple_of_p public.
1961 * ipa-type-escape.c (results_of_malloc): Redundant.
1962 (visited_stmts): New. Visited stmt for walk_use_def_chains.
1963 (cast_type): Extended with new members.
1964 (check_cast): Returns cast_type.
1965 (cast): New structure for data of walk_use_def_chains.
1966 (is_malloc_result, is_cast_from_non_pointer_1,
1967 is_cast_from_non_pointer,
1968 is_array_access_through_pointer_and_index): New functions.
1969 (look_for_casts): Returns cast types.
1970 (check_call): Returns void.
1971 (okay_pointer_operation): Use support of pointer plus index,
1972 pointer plus constant and allow all multiplications.
1974 2007-03-11 Richard Guenther <rguenther@suse.de>
1976 PR tree-optimization/31115
1977 * tree-vrp.c (extract_range_from_binary_expr): Make sure
1978 the shift count is positive and non-anti-range for RSHIFT_EXPR.
1979 A shift count of zero is not special as with *_DIV_EXPR.
1980 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
1983 2007-03-11 Ian Lance Taylor <iant@google.com>
1985 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
1986 the *_DIV_EXPR codes correctly with overflow infinities.
1988 2007-03-11 Ira Rosen <irar@il.ibm.com>
1990 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
1991 indicate success/failure of the analysis. Add negation to subtrahend
1992 in case of subtraction. Fail if both operands contain constants.
1993 (create_data_ref): Fail if analyze_offset fails.
1995 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
1997 * config/i386/i386.md (frndintxf2): Rename to ...
1998 (rintxf2): ... this. Remove expander having same name.
1999 (rintsf2, rintdf2): Implement using SSEMODEF macro.
2000 (roundsf2, rounddf2): Ditto.
2001 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
2002 (lround<mode>di2, lround<mode>si2): Ditto.
2004 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
2006 * lower-subreg.c: Include except.h.
2007 (decompose_multiword_subregs): Verify that the only control flow
2008 insns we can split are loads to multi-words pseudos.
2009 Handle breaking such blocks after splitting, instead of calling
2010 find_many_sub_basic_blocks.
2012 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
2013 on the new basic block. Add a lengthy comment explaining why we
2014 thought this was necessary.
2015 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
2017 2007-03-10 Mark Mitchell <mark@codesourcery.com>
2020 * tree.c (walk_type_fields): Recurse into the element type of
2021 ARRAY_TYPEs if there is a pointer set.
2023 2007-03-10 Dirk Mueller <dmueller@suse.de>
2025 * c-common.c (warn_logical_operator): Fix condition.
2027 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
2029 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
2031 * config/darwin.c (machopic_select_section): Remove superfluous
2032 argument in call to categorize_decl_for_section. Remove unused
2035 2007-03-10 Joseph Myers <joseph@codesourcery.com>
2037 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
2039 * configure: Regenerate.
2041 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
2044 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
2045 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
2046 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
2047 Add LABEL_NUSES to emitted label.
2048 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
2049 branch probability value to emitted jump insn.
2050 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
2051 Do not check life information and do not re-arrange input operands
2052 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
2054 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
2056 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
2057 the change of decode_asm_operands.
2059 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
2061 * mode-switching.c (create_pre_exit): Skip blockage insn.
2063 2007-03-09 Diego Novillo <dnovillo@redhat.com>
2065 * tree-pass.h (TODO_update_smt_usage): Remove.
2067 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
2071 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2073 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
2074 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
2075 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
2078 2007-03-09 Geoffrey Keating <geoffk@apple.com>
2080 * gcc.c: Document %{, in big comment at top.
2081 (input_suffix_matches): Remove special handling for .s and
2083 (input_spec_matches): New.
2084 (handle_braces): Handle %{,.
2085 (validate_switches): ',' indicates a value which is not a switch.
2086 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
2087 to detect assembler input.
2088 * config/i386/sol2.h (CPP_SPEC): Likewise.
2089 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
2090 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
2091 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
2092 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
2093 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
2094 -m64 causes deployment target to default to 10.5.
2095 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
2097 2007-03-09 Richard Henderson <rth@redhat.com>
2100 * target.h (targetm.asm.out.reloc_rw_mask): New.
2101 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
2102 (TARGET_ASM_OUT): Use it.
2103 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
2104 * varasm.c (categorize_decl_for_section): Remove shlib argument;
2105 use the new reloc_rw_mask target hook instead.
2106 (default_section_type_flags_1): Merge into...
2107 (default_section_type_flags): ... here.
2108 (decl_readonly_section_1): Merge into...
2109 (decl_readonly_section): ... here.
2110 (default_elf_select_section_1): Merge into...
2111 (default_elf_select_section): ... here.
2112 (default_unique_section_1): Merge into...
2113 (default_unique_section): ... here.
2114 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
2115 (default_select_rtx_section): Use it.
2116 (default_elf_select_rtx_section): Likewise.
2117 * output.h: Update to match.
2118 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
2119 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
2120 (TARGET_ASM_RELOC_RW_MASK): New.
2121 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
2122 to categorize_decl_for_section.
2123 (x86_64_elf_unique_section): Likewise.
2124 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
2125 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
2126 (TARGET_ASM_RELOC_RW_MASK): New.
2127 * config/ia64/ia64.c (ia64_rwreloc_select_section,
2128 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
2129 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
2130 (TARGET_RWRELOC): Remove.
2131 (ia64_section_type_flags): Adjust call to default_section_type_flags.
2132 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
2133 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
2134 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
2135 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
2136 (rs6000_xcoff_select_section): Use decl_readonly_section.
2137 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
2138 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
2139 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
2140 (TARGET_SECTION_TYPE_FLAGS): Remove.
2141 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
2143 2007-03-09 Roger Sayle <roger@eyesopen.com>
2145 * fold-const.c (fold_comparison): Remove compile-time evaluation of
2146 complex constant equality/inequality comparisons for here.
2147 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
2148 known at compile-time or can be simplified to a scalar comparison.
2149 (fold_relational_const): Move compile-time evaluation of complex
2150 constant equality/inequality comparisons to here.
2152 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2154 PR rtl-optimization/30643
2155 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
2157 (fold_rtx): Recurse, like before 2006-11-03.
2159 2007-03-09 DJ Delorie <dj@redhat.com>
2161 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
2164 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
2166 PR tree-optimization/30375
2167 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
2168 LHS of statements is not the same.
2169 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
2171 2007-03-09 Chao-ying Fu <fu@mips.com>
2173 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
2175 * doc/invoke.texi (-mdspr2): Document new option.
2176 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
2177 New unspec for DSP REV 2.
2178 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
2179 these instructions are extended in DSP REV 2.
2180 (mips-dspr2.md): Include.
2181 * config/mips/mips.opt (mdspr2): New option.
2182 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
2183 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
2184 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
2185 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
2186 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
2187 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
2188 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
2190 (bdesc_map): Add one field of unsupported_target_flags.
2191 (bdesc_arrays): Update entries to have extra fields. Add
2193 (mips_init_builtins): Initialize new function types.
2194 Check unsupported_target_fileds to filter out builtins.
2195 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
2197 (ASM_SPEC): Pass mdspr2 to the assembler.
2198 * config/mips/mips-dspr2.md: New file.
2200 2007-03-09 Sa Liu <saliu@de.ibm.com>
2202 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
2204 2007-03-09 Ian Lance Taylor <iant@google.com>
2206 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
2207 argument) like -Wstrict-overflow=2.
2208 * doc/invoke.texi (Warning Options): Update documentation.
2210 2007-03-09 Dirk Mueller <dmueller@suse.de>
2213 * doc/invoke.texi (-Wlogical-op): Document.
2214 * common.opt (-Wlogical-op): New.
2215 * c-common.h (warn_logical_operator): Declare.
2216 * c-common.c (warn_logical_operator): Define.
2217 * c-typeck.c (parser_build_binary_op): Call
2218 warn_logical_operator.
2220 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2222 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
2223 * final.c (final_scan_insn): Test for non-"" file name.
2225 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
2227 * doc/loop.texi: Document the Omega linear constraints solver.
2228 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
2229 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
2230 omega-hash-table-size, omega-max-keys, and
2231 omega-eliminate-redundant-constraints.
2232 * tree-pass.h (pass_check_data_deps): Declared.
2235 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
2236 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
2237 pass_check_data_deps): New.
2238 * tree-data-ref.c (init_data_ref): Remove declaration.
2239 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
2240 (analyze_array): Renamed init_array_ref, move up initializations.
2241 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
2242 Removed arguments that are set to NULL.
2243 (analyze_indirect_ref): Correct indentation, correct call to
2245 (object_analysis): Call init_array_ref instead of analyze_array.
2246 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
2247 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
2248 of DR_ACCESS_FNS_ADDR.
2249 (init_omega_eq_with_af, omega_extract_distance_vectors,
2250 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
2251 ddr_consistent_p): New.
2252 (compute_affine_dependence): Check consistency of ddrs when
2253 flag_check_data_deps is passed.
2254 (analyze_all_data_dependences): Uncomment.
2255 (tree_check_data_deps): New.
2256 * tree-data-ref.h: Include omega.h.
2257 (DR_ACCESS_FNS_ADDR): Removed.
2258 (data_dependence_relation): Add inner_loop.
2259 (DDR_INNER_LOOP): New.
2260 * common.opt (fcheck-data-deps): New.
2261 * tree-flow.h (tree_check_data_deps): Declare.
2262 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
2263 (OBJS-common): Depend on omega.o.
2265 * passes.c (pass_check_data_deps): Scheduled.
2266 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2267 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2268 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
2269 PARAM_VECT_MAX_VERSION_CHECKS,
2270 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
2272 2007-03-09 Richard Guenther <rguenther@suse.de>
2274 PR tree-optimization/30904
2276 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
2277 the same way as *_DIV_EXPR.
2279 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2281 * recog.c (decode_asm_operands): No mixed declarations and code.
2283 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2285 * rtl.def (ASM_INPUT): Add location.
2286 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
2287 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
2288 (decode_asm_operands): Add loc operand.
2289 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
2290 * stmt.c (expand_asm): Rename to...
2291 (expand_asm_loc): ... this. Add locus argument. Pass it on to
2292 gen_rtx_ASM_INPUT_loc.
2293 (expand_asm_expr): Adjust.
2294 * recog.c (decode_asm_operands): Add loc operand.
2295 (check_asm_operands, extract_insn): Adjust.
2296 * reload1.c (maybe_fix_stack_asms): Likewise.
2297 * final.c (asm_insn_count): Likewise.
2298 (final_scan_insn): Output # line before and after asm.
2300 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
2302 * tree-ssa-structalias.c (variable_info): Remove
2304 (new_var_info): Ditto.
2305 (shared_bitmap_info_t): New structure.
2306 (shared_bitmap_table): New variable.
2307 (shared_bitmap_hash): New function.
2308 (shared_bitmap_eq): Ditto
2309 (shared_bitmap_lookup): Ditto.
2310 (shared_bitmap_add): Ditto.
2311 (merge_smts_into): Change to take bitmap directly.
2312 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
2313 (init_alias_vars): Init shared bitmap hashtable.
2314 (delete_points_to_sets): Delete shared bitmap hashtable.
2315 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
2316 is_aliased removal as a change that was still necessary was
2319 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
2321 * config/i386/i386.h (override_options): Conditionally disable
2322 x86_sahf for 64bit targets only.
2324 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
2327 * c-decl.c (merge_decls): Don't call make_var_volatile.
2328 * varasm.c (make_var_volatile): Remove.
2329 * output.h (make_var_volatile): Remove.
2331 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
2333 PR tree-optimization/31085
2334 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
2336 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2338 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
2339 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
2340 ATTR_CONST_NOTHROW_LIST.
2342 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
2345 2007-03-08 Diego Novillo <dnovillo@redhat.com>
2347 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
2349 2007-03-08 Geoffrey Keating <geoffk@apple.com>
2352 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
2354 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
2355 passed, use shared libgcc.
2357 2007-03-08 Roger Sayle <roger@eyesopen.com>
2359 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
2360 instead of calling build2 with a GIMPLE_MODIFY_STMT.
2361 (honor_protect_cleanup_actions, lower_try_finally_switch):
2363 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
2364 ifc_temp_var): Likewise.
2365 * tree-inline.c (setup_one_parameter): Likewise.
2366 * tree-mudflap.c (mf_decl_cache_locals,
2367 mf_build_check_statement_for): Likewise.
2368 * tree-nested.c (init_tmp_var, save_tmp_var,
2369 finalize_nesting_tree_1): Likewise.
2370 * tree-outof-ssa.c (insert_copy_on_edge,
2371 insert_backedge_copies): Likewise.
2372 * tree-profile.c (tree_gen_edge_profiler,
2373 tree_gen_ic_profiler): Likewise.
2374 * tree-scalar-evolution.c (scev_const_prop): Likewise.
2375 * tree-sra.c (sra_build_assignment): Likewise.
2376 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
2377 * tree-ssa-math-opts.c (insert_reciprocals,
2378 execute_cse_sincos_1): Likewise.
2379 * tree-tailcall.c (adjust_accumulator_values,
2380 adjust_return_value): Likewise.
2381 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
2382 * tree-vect-transform.c (vect_create_data_ref_ptr,
2383 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
2384 vect_create_epilog_for_reduction, vectorizable_reduction,
2385 vectorizable_call, vectorizable_conversion,
2386 vectorizable_assignment, vectorizable_operation,
2387 vectorizable_type_demotion, vect_gen_widened_results_half,
2388 vect_permute_store_chain, vectorizable_store,
2389 vect_setup_realignment, vect_permute_load_chain,
2390 vectorizable_load, vectorizable_condition,
2391 vect_create_cond_for_align_checks): Likewise.
2392 * tree-vrp.c (build_assert_expr_for): Likewise.
2394 2007-03-08 Ian Lance Taylor <iant@google.com>
2396 * tree-vrp.c: Include "intl.h".
2397 (usable_range_p): New static function.
2398 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
2399 overflowed values, juts set *strict_overflow_p.
2400 (compare_values): Only return -2 if one of the operands is not a
2402 (compare_ranges): Call usable_range_p.
2403 (compare_range_with_value): Likewise.
2404 (vrp_evaluate_conditional_warnv): Rename from
2405 vrp_evaluate_conditional. Make static. Change all callers.
2406 (vrp_evaluate_conditional): New function.
2407 (simplify_div_or_mod_using_ranges): Issue warning about reliance
2409 (simplify_abs_using_ranges): Likewise.
2410 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
2411 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
2412 within_stmt parameter.
2413 * tree-ssa-propagate.c (fold_predicate_in): Update call to
2414 vrp_evaluate_conditional.
2415 * tree-ssa-threadedge.c
2416 (record_temporary_equivalences_from_stmts_at_dest): Change
2417 simplify parameter to take a second tree parameter.
2418 (simplify_control_stmt_condition): Likewise.
2419 (thread_across_edge): Likewise.
2420 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
2421 (thread_across_edge): Likewise.
2422 * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
2424 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
2426 * config/i386/i386.h (TARGET_SAHF): New define.
2427 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
2428 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
2429 (x86_sahf): New global variable.
2430 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
2431 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
2432 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
2433 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
2435 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
2436 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
2437 when expanding fcomi/sahf based tests.
2438 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
2439 expanding sahf based alternative. Emit sahf based sequence when
2440 optimizing for code size.
2441 * config/i386/i386.md (x86_sahf_1): Do not disable for
2442 TARGET_64BIT, enable for TARGET_SAHF.
2444 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
2446 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
2447 spurious whitespace from error message.
2449 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
2452 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
2454 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
2456 * c-decl.c (grokdeclarator): Disable warnings for anonymous
2458 * tree-sra.c (instantiate_element): Propagate disabled warnings
2459 from the element itself to the created variable.
2461 2007-03-07 Richard Henderson <rth@redhat.com>
2464 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
2465 silently fix up the stack in the case of a missing register.
2467 2007-03-07 Paul Brook <paul@codesourcery.com>
2469 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
2471 2007-03-07 Joseph Myers <joseph@codesourcery.com>
2473 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
2475 (phase1_vrs): Use them.
2476 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
2477 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
2478 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
2479 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
2480 __gnu_Unwind_Restore_WMMXC if required.
2481 (_Unwind_VRS_Pop): Implement iWMMXt support.
2482 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
2483 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
2484 gnu_Unwind_Save_WMMXC): Define.
2486 2007-03-07 Richard Sandiford <richard@codesourcery.com>
2488 * config/vxworks.h (vxworks_override_options): Declare.
2489 (VXWORKS_OVERRIDE_OPTIONS): Use it.
2490 * config/vxworks.c: Include target.h and toplev.h.
2491 (vxworks_override_options): New function.
2492 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
2494 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
2496 * config/s390/s390.c (override_options): Don't emit an error when
2497 -mstack-size is used without providing -mstack-guard.
2498 (s390_emit_prologue): Choose stack_guard value automatically if not
2499 provided via command line.
2500 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
2502 2007-03-07 Richard Sandiford <richard@codesourcery.com>
2504 * config/i386/i386.c (output_set_got): Add a GOT initialization
2505 sequence for VxWorks PIC.
2506 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
2507 around labels as well as symbols. Use gotoff_operand instead
2508 of local_symbolic_operand.
2509 (legitimize_pic_address): Use gotoff_operand instead of
2510 local_symbolic_operand. Use @GOT accesses for labels as
2512 (ix86_output_addr_diff_elt): Use PC-relative rather than
2513 GP-relative offsets for VxWorks PIC.
2514 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
2515 no_new_pseudos. Check whether the returned register is op0.
2516 * config/i386/i386.md (tablejump): Use PC-relative rather than
2517 GP-relative offsets for VxWorks PIC.
2518 * config/i386/predicates.md (gotoff_operand): New predicate.
2520 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2522 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
2524 * config/vxworks-dummy.h: New file.
2525 * config/i386/i386.h: Include it.
2527 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
2529 * dwarf2out.c (is_inlined_entry_point): New
2530 (add_high_low_attributes): Emit DW_AT_entry_pc along with
2531 DW_AT_ranges if the first subblock is the entry point.
2533 2007-03-06 David Daney <ddaney@avtrex.com>
2535 * doc/install.texi (mips-*-*): Change recommended binutils
2538 2007-03-06 Anatoly Sokolov <aesok@post.ru>
2540 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
2541 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
2543 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2544 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2546 2007-03-06 Jan Hubicka <jh@suse.cz>
2548 * errors.h (warning, error, fatal, internal_error): Mark as cold.
2549 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
2551 (probably_cold_bb_p): Cold functions are cold.
2552 (probably_never_executed_bb_p): Cold functions are cold.
2553 (tree_bb_level_predictions): Predict calls to cold functions as not
2555 (compute_function_frequency): Check hot/cold attributes.
2556 * function.h (function_frequency): Update comments.
2557 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
2558 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
2559 (c_common_att): Add cold and hot.
2561 * doc/extend.texi (hot,cold attributes): Document.
2563 2007-03-06 Andrew Haley <aph@redhat.com>
2565 * function.c (expand_function_end): Move blockage to just after we
2566 emit the label for the naked return from the function.
2568 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2570 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
2573 2007-03-06 Jan Hubicka <jh@suse.cz>
2575 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
2576 loaded for constant large models. Non-large 64bit PIC can do.
2577 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
2578 * cmodel.h: Add LARGE PIC.
2579 * i386.md (UNSPEC_PLTOFF): New.
2580 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
2582 (*call_1_rex64): Disable for large models.
2583 (*call_1_rex64_large): New.
2584 (*call_value_1_rex64): Disable for large models.
2585 (*call_value_1_rex64_large): New.
2586 (set_rip_rex4): New.
2587 (set_got_offset_rex64): New.
2588 * predicates.md (constant_call_address_operand): For large model
2589 constant calls are not possible.
2590 * i386-protos.h (construct_plt_address): Declare.
2591 * i386.c (override_options): Accept large models.
2592 (ix86_expand_prologue): Expand large PIC GOT pointer load.
2593 (legitimate_constant_p): Add new UNSPECs.
2594 (legitimate_pic_operand_p): Likewise.
2595 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
2596 (legitimize_pic_address): Do easy RIP relative way for TLS only for
2598 (output_pic_addr_const): Add PLTOFF.
2599 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
2600 (ix86_expand_move): Legitimize pic address when in PIC mode.
2601 (construct_plt_address): New function.
2602 (ix86_expand_call): Offload the address to register and use GOT pointer
2604 * invoke.texi (mcmodel=large): Update documentation.
2606 2007-03-06 Richard Henderson <rth@redhat.com>
2608 * config/i386/i386.c (x86_use_leave, x86_push_memory,
2609 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
2610 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
2611 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
2612 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
2613 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
2614 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
2615 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
2616 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
2617 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
2618 x86_partial_reg_dependency, x86_memory_mismatch_stall,
2619 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
2620 x86_sse_partial_reg_dependency, x86_sse_split_regs,
2621 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2622 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
2623 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
2624 x86_schedule, x86_use_bt, x86_pad_returns,
2625 x86_use_xchgb): Merge into ...
2626 (ix86_tune_features): ... here. New array.
2627 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2628 x86_bswap): Merge into ...
2629 (ix86_arch_features): ... here. New array.
2630 (x86_3dnow_a): Remove.
2631 (x86_accumulate_outgoing_args): Make static.
2632 (x86_arch_always_fancy_math_387): Make static.
2633 (ix86_tune_mask, ix86_arch_mask): Move ...
2634 (override_options): ... to local variables here. Apply the
2635 appropriate mask to each element of ix86_arch_features and
2636 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
2637 as were done in the old macros.
2638 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
2639 * config/i386/i386.h (x86_use_leave, x86_push_memory,
2640 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
2641 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
2642 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
2643 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
2644 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
2645 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
2646 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
2647 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
2648 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
2649 x86_partial_reg_dependency, x86_memory_mismatch_stall,
2650 x86_accumulate_outgoing_args, x86_prologue_using_move,
2651 x86_epilogue_using_move, x86_decompose_lea,
2652 x86_arch_always_fancy_math_387, x86_shift1,
2653 x86_sse_partial_reg_dependency, x86_sse_split_regs,
2654 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2655 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
2656 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2657 x86_use_incdec, x86_pad_returns, x86_bswap,
2658 x86_partial_flag_reg_stall): Remove.
2659 (enum ix86_tune_indices): New.
2660 (ix86_tune_features): New.
2661 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
2662 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
2663 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
2664 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
2665 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
2666 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
2667 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
2668 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
2669 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
2670 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
2671 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
2672 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
2673 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
2674 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
2675 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
2676 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
2677 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
2678 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
2679 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
2680 TARGET_EXT_80387_CONSTANTS): Use it.
2681 (enum ix86_arch_indices): New.
2682 (ix86_arch_features): New.
2683 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
2684 TARGET_BSWAP): Use it.
2685 (ix86_tune_mask, ix86_arch_mask): Remove.
2687 2007-03-06 Joseph Myers <joseph@codesourcery.com>
2690 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
2691 Define using $${sysroot_headers_suffix}.
2692 * configure: Regenerate.
2693 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
2694 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
2696 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
2697 * gcc.c (print_sysroot_headers_suffix): New.
2698 (option_map): Include --print-sysroot-headers-suffix.
2699 (display_help): Mention -print-sysroot-headers-suffix.
2700 (process_command): Handle -print-sysroot-headers-suffix.
2701 (do_spec_1): Append multilib directory to include-fixed path if
2702 sysroot suffixes in use.
2703 (main): Handle -print-sysroot-headers-suffix.
2704 * Makefile.in (start.encap): Don't depend on xlimits.h
2705 (xlimits.h): Remove.
2706 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
2707 limits.h for each multilib in fixinc_list.
2708 (fixinc_list, s-fixinc_list): New.
2709 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
2710 generate them for each multilib in fixinc_list.
2711 (stmp-fixproto): Use include-fixed. Run fixproto for each
2712 multilib in fixinc_list.
2713 (mostlyclean): Don't remove xlimits.h.
2714 (clean): Remove include-fixed.
2715 (real-install-headers-tar, real-install-headers-cpio,
2716 real-install-headers-cp): Don't copy include, only include-fixed.
2717 (install-mkheaders): Depend on fixinc_list. Don't depend on
2718 xlimits.h. Save limits.h files for each multilib in fixinc_list.
2719 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
2720 SYSTEM_HEADER_DIR setting in mkheaders.conf.
2722 2007-03-06 Jan Hubicka <jh@suse.cz>
2724 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
2727 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2729 * configure.ac: Allow tm_file to contain build-directory files.
2730 * configure: Regenerate.
2731 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
2732 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
2733 * config/m68k/print-sysroot-suffix.sh: New file.
2735 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2737 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
2738 of pic_offset_table_rtx if reload_completed.
2739 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
2740 PIC_OFFSET_TABLE_REGNUM.
2741 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
2743 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
2744 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
2746 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2748 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2749 functions that call eh_return.
2751 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2753 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2754 functions that need a constant pool.
2756 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2759 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
2760 (m68k_preferred_reload_class): Likewise.
2761 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
2762 (SECONDARY_RELOAD_CLASS): Define.
2763 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
2764 (LIMIT_RELOAD_CLASS): Delete.
2765 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
2766 registers from storing bytes.
2767 (m68k_secondary_reload_class): New function.
2768 (m68k_preferred_reload_class): Likewise.
2770 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2772 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
2774 (m68k_expand_prologue): Likewise.
2776 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2778 * config/m68k/m68k-protos.h (output_sibcall): Declare.
2779 (mips_expand_epilogue): Add a bool parameter.
2780 (m68k_legitimize_sibcall_address): Declare.
2781 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
2782 (m68k_expand_epilogue): Add a parameter to select between sibling
2783 and normal epilogues. Only generate a return for the latter.
2784 (m68k_ok_for_sibcall_p): New function.
2785 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
2786 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
2787 (sibcall_value, *sibcall_value): Likewise.
2788 (*call, *call_value): Require !SIBLING_CALL_P.
2789 (epilogue): Update call to m68k_expand_epilogue.
2790 (sibcall_epilogue): New pattern.
2791 * config/m68k/predicates.md (const_call_operand): Say that this
2792 predicate applies to sibling calls too.
2793 (sibcall_operand): New predicate.
2795 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2797 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
2798 alternatives as movsi_cf.
2799 (movsf_cf_hard): Add commentary.
2801 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
2802 Richard Sandiford <richard@codesourcery.com>
2804 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
2805 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
2806 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
2807 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
2808 as being live on exit from an interrupt function.
2809 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
2810 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
2811 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
2812 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
2813 (m68k_interrupt_function_p): Globalize.
2814 (m68k_compute_frame_layout): Remove reverse mask code.
2815 (m68k_emit_movem, m68k_set_frame_related): New functions.
2816 (m68k_output_function_prologue): Delete in favor of...
2817 (m68k_expand_prologue): ...this new function.
2818 (m68k_output_function_epilogue): Delete in favor of...
2819 (m68k_expand_epilogue): ...this new function.
2820 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
2822 (print_operand): Handle %?.
2823 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
2824 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
2825 (prologue, epilogue): New patterns.
2826 (return): Turn into a define_expand.
2827 (*return): New pattern, derived from old "return" pattern. Use rte
2828 rather than rts for interrupt functions. Only use rtd if the pop
2830 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
2831 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
2832 (link, *link, unlink, *unlink, load_got): Likewise.
2834 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2838 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
2839 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
2840 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
2841 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
2842 and m68k_matches_u_p.
2843 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
2844 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
2845 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
2846 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
2847 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
2848 (REG_STRICT_P): New macro.
2849 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
2850 PCREL_GENERAL_OPERAND_OK.
2851 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
2852 m68k_legitimate_base_reg_p.
2853 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
2854 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
2855 (PIC_CASE_VECTOR_ADDRESS): Update comment.
2856 * config/m68k/m68k.c (m68k_address): New structure.
2857 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
2858 (m68k_decompose_index, m68k_legitimate_constant_address_p)
2859 (m68k_jump_table_ref_p, m68k_decompose_address)
2860 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
2861 (m68k_matches_u_p): New functions.
2862 (print_operand_address): Rewrite to use m68k_decompose_index.
2864 2007-03-05 David Taylor <dtaylor@emc.com>
2866 * gcc.c: Correct copyright date in --version output.
2868 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2870 * pa.md: In unamed move patterns, disparge copies between general
2871 and floating point registers using '?' modifier. Don't include 'f'
2872 constraint for register preferences in DImode, SImode, HImode and
2873 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
2874 Remove constraints for copies between general and floating registers
2875 in soft-float DFmode pattern.
2876 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
2880 2007-03-05 Mike Stump <mrs@apple.com>
2882 * c-common.c (targetcm): Add.
2883 * c-opts.c (c_common_handle_option): Handle language specific
2885 * opts.c (handle_option): Verify language for target options, if
2887 * opth-gen.awk: Add CL_LANG_ALL.
2888 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
2889 (TARGETCM_INITIALIZER): Add.
2890 * target.h (struct gcc_targetcm): Add.
2892 * targhooks.c (default_handle_c_option): Add.
2893 * targhooks.h (default_handle_c_option): Add.
2894 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
2896 * config/darwin.opt (iframework): Add.
2897 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
2898 * config/darwin-c.c (handle_c_option): Add.
2899 (TARGET_HANDLE_C_OPTION): Add.
2901 * doc/invoke.texi (Darwin Options): Add -iframework.
2903 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2905 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
2908 2007-03-05 Ian Lance Taylor <iant@google.com>
2910 * c.opt (fgnu89-inline): New option.
2911 * c-opts.c (c_common_post_options): Set default value for
2913 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
2914 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
2916 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
2917 (grokdeclarator, start_function): Likewise.
2918 * c-cppbuiltin.c (c_cpp_builtins): Define either
2919 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
2920 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
2921 (C Dialect Options): Document -fgnu89-inline.
2922 * doc/extend.texi (Function Attributes): Explain what the
2923 gnu_inline attribute does.
2924 * doc/cpp.texi (Common Predefined Macros): Document
2925 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
2927 2007-03-05 Ian Lance Taylor <iant@google.com>
2929 PR tree-optimization/31034
2930 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
2931 half-range if the other side is an overflow infinity.
2933 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
2935 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
2936 (bfin*-linux-uclibc*): New configuration.
2937 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
2939 * config/bfin/linux.h: New file.
2940 * config/bfin/libgcc-bfin.ver: New file.
2941 * config/bfin/t-bfin-uclinux: New file.
2942 * config/bfin/t-bfin-linux: New file.
2943 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
2944 (TARGET_OS_CPP_BUILTINS): New macro.
2946 2007-03-05 Richard Guenther <rguenther@suse.de>
2948 * fold-const.c (fold_binary): Remove duplicate folding
2949 of comparison of non-null ADDR_EXPR against null.
2951 2007-03-05 Richard Guenther <rguenther@suse.de>
2952 Dorit Nuzman <dorit@il.ibm.com>
2954 PR tree-optimization/26420
2955 * tree-vectorizer.c (vectorize_loops): Bail out early if there
2956 are no loops in the function. Only print the number of
2957 vectorized loops if it is greater than zero or we are supposed
2958 to print information about unvectorized loops.
2960 2007-03-05 Revital Eres <eres@il.ibm.com>
2962 * gcc.dg/var-expand1.c: New test.
2963 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
2964 when an accumulator is expanded.
2966 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2969 * c-common.c (convert_and_check): Don't give warnings for
2970 conversion if 'expr' already overflowed.
2972 2007-03-04 Roger Sayle <roger@eyesopen.com>
2975 * fold-const.c (fold_comparison): Enforce type consistency when
2976 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
2978 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
2980 * tree-ssa-address.c (create_mem_ref): Do not put an expression
2981 containing a cast to the base of TARGET_MEM_REF.
2983 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
2985 * tree.c (tree_contains_struct_check_failed): Remove spurious
2986 whitespace from error message.
2988 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
2991 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
2992 instead of precision.
2994 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
2995 Nathan Sidwell <nathan@codesourcery.com>
2997 * emit-rtl.c (find_auto_inc): New.
2998 (try_split): recreate REG_INC notes,
2999 Use regular for loops rather than whiles.
3001 2007-03-03 Andreas Schwab <schwab@suse.de>
3003 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
3004 * configure: Regenerate.
3006 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3008 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
3009 flag_rounding_math, not flag_unsafe_math_optimizations.
3011 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
3013 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
3014 alpha_fold_vector_minmax): Likewise.
3015 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
3016 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
3018 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
3020 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
3021 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
3022 if the lhs has side-effects.
3023 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
3025 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3027 * config/i386/i386.h (TUNEMASK): Remove define.
3028 (ARCHMASK): Remove define.
3029 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
3030 Use ix86_arch_mask variable instead of ARCHMASK.
3031 * config/i386/i386.c (override_options): Ditto.
3032 (standard_80387_constant_p): Ditto.
3034 2007-03-02 Ian Lance Taylor <iant@google.com>
3036 Used signed infinities in VRP.
3037 * tree-vrp.c (uses_overflow_infinity): New static function.
3038 (supports_overflow_infinity): New static function.
3039 (make_overflow_infinity): New static function.
3040 (negative_overflow_infinity): New static function.
3041 (positive_overflow_infinity): New static function.
3042 (is_negative_overflow_infinity): New static function.
3043 (is_positive_overflow_infinity): New static function.
3044 (is_overflow_infinity): New static function.
3045 (overflow_infinity_range_p): New static function.
3046 (compare_values_warnv): New function split out of compare_values.
3047 (compare_value): Call it.
3048 (set_value_range_to_nonnegative): Add overflow_infinity
3049 parameter. Change caller.
3050 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
3052 (vrp_expr_computes_nonzero): Likewise.
3053 (compare_ranges, compare_range_with_value): Likewise.
3054 (compare_name_with_value, compare_names): Likewise.
3055 (vrp_evaluate_conditional): Likewise.
3056 (set_value_range): Handle infinity
3057 (vrp_operand_equal_p, operand_less_p): Likewise.
3058 (extract_range_from_assert): Likewise.
3059 (vrp_int_const_binop): Likewise.
3060 (extract_range_from_binary_expr): Likewise.
3061 (extract_range_from_unary_expr): Likewise.
3062 (extract_range_from_comparison): Likewise.
3063 (extract_range_from_expr): Likewise.
3064 (dump_value_range): Likewise.
3065 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
3066 (test_for_singularity): Likewise.
3067 (vrp_int_const_binop): Remove inline qualifier.
3068 (adjust_range_with_scev): Add comment.
3069 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
3071 2007-03-02 Diego Novillo <dnovillo@redhat.com>
3073 * tree-ssa-structalias.c (could_have_pointers): Tidy.
3074 (get_constraint_for): Likewise.
3075 (do_structure_copy): Likewise.
3076 (find_func_aliases): Fix references to MODIFY_EXPR.
3077 (intra_create_variable_infos): Tidy.
3078 * tree-ssa-operands.c (add_virtual_operand): Add argument
3080 When adding members of alias sets, if IS_CALL_SITE is true and
3081 the symbol is not call-clobbered, skip it.
3084 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
3086 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
3087 entry by means of emit_insn_at_entry.
3089 2007-03-02 Richard Henderson <rth@redhat.com>
3091 * expr.h (promoted_input_arg): Remove decl.
3092 * function.c (promoted_input_arg): Merge into ...
3093 * combine.c (setup_incoming_promotions): ... only caller.
3094 Rearrange to avoid double loop.
3096 2007-03-02 Ben Elliston <bje@au.ibm.com>
3097 Peter Bergner <bergner@vnet.ibm.com>
3098 Janis Johnson <janis187@us.ibm.com>
3100 * config/rs6000/dfp.md: New file.
3101 * config/rs6000/rs6000.md: Include dfp.md.
3102 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
3103 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
3104 and TDmode decimal float modes in FP registers.
3105 (num_insns_constant): Likewise.
3106 (rs6000_legitimate_offset_address_p): Likewise.
3107 (rs6000_legitimize_address): Likewise.
3108 (rs6000_legitimize_reload_address): Likewise.
3109 (rs6000_legitimate_address): Likewise.
3110 (rs6000_emit_move): Likewise.
3111 (function_arg_boundary): Likewise.
3112 (function_arg_advance): Likewise.
3113 (rs6000_darwin64_record_arg_recurse): Likewise.
3114 (function_arg): Likewise.
3115 (rs6000_gimplify_va_arg): Likewise.
3116 (rs6000_split_multireg_move): Likewise.
3117 (rs6000_output_function_epilogue): Likewise.
3118 (rs6000_output_function_epilogue): Likewise.
3119 (rs6000_register_move_cost): Likewise.
3120 (rs6000_function_value): Likewise.
3121 (rs6000_libcall_value): Likewise.
3123 2007-03-02 Richard Sandiford <richard@codesourcery.com>
3125 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
3127 2007-03-02 Richard Sandiford <richard@codesourcery.com>
3129 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
3130 Use $MULTIDIR to choose between the kernel and RTP headers,
3131 and use $WIND_BASE and $WIND_USR to locate them.
3133 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3135 * config/i386/i386.c (override_options): Put initialization of
3136 ix86_tune_mask and ix86_arch_mask to the correct place.
3138 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
3139 Michael Meissner <michael.meissner@amd.com>
3142 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
3144 (TARGET_CMOVE): Use ARCHMASK.
3145 (TARGET_CMPXCHG): Ditto.
3146 (TARGET_CMPXCHG8B): Ditto.
3147 (TARGET_XADD): Ditto.
3148 (TARGET_BSWAP): Ditto.
3149 * config/i386/i386.c (ix86_tune_mask): New global variable.
3150 (ix86_arch_mask): Ditto.
3151 (override_options): Initialize ix86_tune_mask and
3152 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
3155 2007-03-02 Ben Elliston <bje@au.ibm.com>
3158 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
3160 2007-03-02 Joseph Myers <joseph@codesourcery.com>
3162 * target.h (init_dwarf_reg_sizes_extra): New target hook.
3163 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
3164 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
3165 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
3167 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
3168 rs6000_init_dwarf_reg_sizes_extra): New.
3169 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
3170 SPE register high parts.
3172 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
3174 * Makefile.in: Add install-pdf target as
3175 copied from automake v1.10 rules.
3176 * configure.ac: Add install-pdf to target list.
3177 * configure: Regenerate.
3179 2007-03-01 Paul Brook <paul@codesourcery.com>
3181 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
3182 modes to LDRD for DImode.
3183 (output_move_double): Fixup out of range ldrd/strd.
3184 (vfp_secondary_reload_class): Rename...
3185 (coproc_secondary_reload_class): ... to this. Add wb argument.
3186 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
3187 coproc_secondary_reload_class for CLASS_IWMMXT.
3188 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
3189 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
3191 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
3193 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
3194 factor by the estimated number of iterations.
3195 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
3198 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
3199 decode_caches_intel, detect_caches_intel): New functions.
3200 (host_detect_local_cpu): Use detect_caches_amd and
3201 detect_caches_intel.
3203 2007-03-01 Richard Henderson <rth@redhat.com>
3205 * expr.c (emit_move_complex_push): Export.
3206 (emit_move_complex_parts): Split out from ...
3207 (emit_move_complex): ... here.
3208 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
3209 * config/i386/i386.md (movcdi): New.
3211 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
3213 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
3214 size of mode1 to check for tieable modes in MMX case.
3216 2007-03-01 Richard Sandiford <richard@codesourcery.com>
3218 * Makefile.in (rtlanal.o): Depend on tree.h.
3219 * rtl.h (offset_within_section_p, split_const): Declare.
3220 * rtlanal.c: Include tree.h.
3221 (offset_within_block_p): New function, taken from
3222 mips_offset_within_object_p.
3223 (split_const): New function, taken from mips_split_const.
3224 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
3226 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
3227 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
3228 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
3229 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
3230 (m68k_illegitimate_symbolic_constant_p): New function.
3231 * config/m68k/m68k.md (movsi): Remove misleading predicates.
3232 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
3233 symbolic constant that might be outside the symbol's section,
3234 move the symbol first and then add the offset.
3235 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
3237 * config/mips/mips.c (mips_split_const): Delete.
3238 (mips_offset_within_object_p): Delete.
3239 (mips_symbolic_constant_p): Use offset_within_section_p and
3240 split_const instead of mips_offset_within_object_p and
3242 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
3243 (mips_legitimize_const_move, print_operand_reloc)
3244 (mips_dangerous_for_la25_p): Use split_const instead of
3247 2007-02-28 Eric Christopher <echristo@apple.com>
3249 * Makefile.in (install-include-dir): Don't rm -rf include.
3251 2007-02-28 Richard Guenther <rguenther@suse.de>
3254 * fold-const.c (fold_binary): Do not associate expressions
3255 with more than one variable for integer types that do not wrap.
3257 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
3259 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
3260 Delete, and replace with...
3261 (fold_builtin_call_array): This. Update callers to use it.
3262 * fold-const.c (fold_build_call_list): Delete, and replace with...
3263 (fold_build_call_array): This.
3264 (fold_build_call_list_initializer): Delete, and replace with...
3265 (fold_build_call_array_initializer): This.
3266 * tree.h: Update declarations to reflect above changes.
3268 * c-typeck.c (build_function_call): Store converted arguments
3269 in a stack-allocated array instead of building a list.
3270 (convert_arguments): Store arguments in the array passed in as an
3271 argument, and return the actual number of arguments.
3272 * c-format.c: (check_function_format): Pass arguments in an
3273 array instead of a list.
3274 * c-common.c (check_function_nonnull): Likewise.
3275 (check_function_sentinel): Likewise.
3276 (check_function_arguments): Likewise.
3277 * c-common.h: Update declarations to reflect above changes.
3279 2007-02-28 Jan Hubicka <jh@suse.cz>
3281 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
3282 PRED_NEGATIVE_RETURN): Update outcomes.
3284 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
3286 * calls.c (emit_library_call_value_1): Handle partial registers
3287 correctly when building up CALL_INSN_FUNCTION_USAGE.
3289 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3291 * pa/predicates.md (move_src_operand): Allow zero for mode.
3292 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
3295 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
3298 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
3299 *movv2df_internal): Enable pattern only for valid operand
3301 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
3302 tie only 128bit modes. For MMX registers, tie only 64bit modes.
3304 2007-02-27 Mike Stump <mrs@apple.com>
3306 * config/darwin-crt3.c: Avoid compilation when compiling for a
3309 2007-02-27 Joseph Myers <joseph@codesourcery.com>
3311 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
3313 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
3314 for fixed headers and limits.h.
3315 (install-include-dir, install-headers-tar, install-headers-cpio,
3316 install-headers-cp, real-install-headers-tar,
3317 real-install-headers-cpio, real-install-headers-cp): Handle
3318 include-fixed as well as include.
3319 (install-mkheaders): Don't install files that go only in include
3321 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
3322 from GCC_INCLUDE_DIR.
3323 * gcc.c (process_command): Remove special -BstageN/ handling.
3324 (do_spec_1): Add include-fixed directories.
3326 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3328 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
3330 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
3332 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
3335 2007-02-27 Mark Mitchell <mark@codesourcery.com>
3337 * c-common.c (get_priority): Add check for
3338 SUPPORTS_INIT_PRIORITY.
3340 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3342 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
3344 * config/bfin/bfin.c: Include "cfglayout.h".
3345 (MAX_LSETUP_DISTANCE): New macro.
3346 (struct loop_info): New members incoming, incoming_src and
3347 incoming_dest. Delete member predecessor.
3348 (length_for_loop): New function.
3349 (bfin_optimize_loop): Handle more different loop structures.
3350 (bfin_discover_loop): Rework detection of predecessor blocks by
3351 examining incoming edges.
3352 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
3354 (bfin_reorder_loops): New function.
3355 (bfin_reorg_loops): Use these three new functions.
3357 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
3358 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
3359 (CONSTRAINT_LEN): Add entry for 'q'.
3360 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
3361 Add 'q' constraints.
3362 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
3363 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
3365 * config/bfin/bfin.md (add_with_carry): New pattern.
3366 (s_or_u, su_optab, su_modifier): New code macros/attrs.
3367 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
3368 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
3369 support unsigned multiplies too. Removed incorrect commutativity from
3370 operand 1 constraint where appropriate.
3371 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
3373 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
3374 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
3376 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
3377 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
3378 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
3379 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
3380 usmulhisi_hh_huh): New patterns.
3382 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
3383 lshifthi3): Fix output template to use half reg for operand 2.
3385 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
3388 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
3390 2007-02-27 Andreas Schwab <schwab@suse.de>
3392 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
3394 2007-02-27 Jan Hubicka <jh@suse.cz>
3396 * predict.c (last_basic_block_p): Remove.
3397 (tree_estimate_probability): Update return heuristic for commonized
3400 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
3402 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
3404 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
3406 * doc/include/gcc-common.texi (versionsubtitle): New macro.
3407 * doc/cpp.texi: Standardize title page.