1 2007-04-02 Dave Korn <dave.korn@artimi.com>
3 * doc/tm.texi (FUNCTION_MODE): Update and extend documentation.
5 2007-04-02 Dave Korn <dave.korn@artimi.com>
7 * libgcc2.h (exception_descriptor): Don't forward-declare.
8 (__get_eh_table_language, __get_eh_table_version): Delete
9 prototypes of long-dead functions.
11 2007-04-01 Daniel Berlin <dberlin@dberlin.org>
15 * Makefile.in (ebitmap.o): New target.
17 2007-04-01 Jan Hubicka <jh@suse.cz>
19 * emit-rtl.c (emit_insn_before_setloc): Do not ICE when asked to emit
20 before very first instruction.
22 2007-04-01 Jan Hubicka <jh@suse.cz>
24 * ggc-page.c (ggc_print_statistics): Fix formatting string to avoid
25 waring on 64bit hosts.
26 * bitmap.h: Fix typo in bitmap_head_def.
28 2007-04-01 Steven Bosscher <steven@gcc.gnu.org>
30 PR rtl-optimization/31391
31 * cfgcleanup.c (try_optimize_cfg): If a removed label is turned
32 into a DELETED_LABEL note, and the label is in an empty basic
33 block, update BB_END as well as BB_HEAD.
35 2007-04-01 Richard Henderson <rth@redhat.com>
37 PR tree-optimization/31169
38 * tree-vrp.c (extract_range_from_binary_expr) <RSHIFT_EXPR>: Drop
39 to varying if the range is outside [0, prec-1].
41 2007-04-01 Richard Sandiford <richard@codesourcery.com>
44 * config/mips/mips.md (load_const_gp): New insn.
45 * config/mips/mips.c (mips_split_symbol): Avoid using or creating
46 the MIPS16 GP pseudo register if no_new_pseudos.
47 (mips16_gp_pseudo_reg): Use gen_load_const_gp.
49 2007-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
52 * config/rs6000/rs6000.md (call): Convert to LR hard reg for
54 (call_value): Likewise.
56 2007-03-31 Wolfgang Bangerth <bangerth@dealii.org>
57 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
60 * doc/invoke.texi: (optimization options): Reword description
61 of -ffast-math. Document its primary purpose.
63 2007-03-31 Richard Guenther <rguenther@suse.de>
65 * omp-low.c (splay-tree.h): Include.
66 (lookup_decl): Replace splay-tree usage by pointer-map.
67 (maybe_lookup_decl): Likewise.
68 (new_omp_context): Likewise.
69 (delete_omp_context): Likewise.
70 * gimplify.c (splay-tree.h): Include.
71 * tree-inline.c (insert_decl_map): Replace splay-tree usage by
73 (remap_ssa_name): Likewise.
74 (remap_decl): Likewise.
75 (remap_type_1): Likewise.
76 (remap_type): Likewise.
77 (copy_body_r): Likewise.
78 (expand_call_inline): Likewise.
79 (clone_body): Likewise.
80 (copy_tree_r): Likewise.
81 (remap_save_expr): Likewise.
83 (unsave_expr_now): Likewise.
84 (tree_function_versioning): Likewise.
85 (build_duplicate_type): Likewise.
86 * tree-inline.h (pointer-set.h): Include instead of splay-tree.h.
87 (struct copy_body_data): Replace splay-tree by pointer-map.
88 * Makefile.in (TREE_INLINE_H): Depend on pointer-map.h,
90 (gimplify.o): Depend on $(SPLAY_TREE_H).
91 (omp-low.p): Likewise.
93 2007-03-31 Anatoly Sokolov <aesok@post.ru>
95 * config/avr/predicates.md (even_register_operand,
96 odd_register_operand): New predicates.
97 * config/avr/avr.md (movw peephole2): New.
98 (movw_r peephole2): New.
100 2007-03-30 Rafael Avila de Espindola <espindola@google.com>
102 * tree.h (get_signed_or_unsigned_type): New.
103 * fold-const.c (operand_equal_for_comparison_p): Use
104 get_signed_or_unsigned_type instead of
105 lang_hooks.types.signed_or_unsigned_type.
106 * expr.c (store_expr): Ditto.
107 * langhooks.c (get_signed_or_unsigned_type): New.
108 (lhd_signed_or_unsigned_type): New.
109 * langhooks.h (lhd_signed_or_unsigned_type): New.
110 * langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
112 2007-03-30 Richard Henderson <rth@redhat.com>
114 * tree-ssa-loop-ivopts.c: Include target.h.
115 (produce_memory_decl_rtl): Pass the rtx through encode_section_info.
116 (get_address_cost): Force SYMBOL_FLAG_LOCAL set.
117 (force_expr_to_var_cost): Use produce_memory_decl_rtl.
118 * Makefile.in (tree-ssa-loop-ivopts.o): Depend on TARGET_H.
120 2007-03-30 Richard Henderson <rth@redhat.com>
121 Kai Tietz <kai.tietz@onevision.com>
123 * config/i386/cygming.h (DWARF2_DEBUGGING_INFO): Enable by
125 (PREFERRED_DEBUGGING_TYPE): Prefer dwarf2 for 64-bit.
126 (TARGET_64BIT_MS_ABI): New.
127 (DBX_REGISTER_NUMBER): Handle 64-bit.
128 (SIZE_TYPE, PTRDIFF_TYPE): Use long long for 64-bit.
129 (LONG_TYPE_SIZE): Force to 32.
130 (REG_PARM_STACK_SPACE): New.
131 (OUTGOING_REG_PARM_STACK_SPACE): New.
132 (REGPARM_MAX, SSE_REGPARM_MAX): New.
133 (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
134 (STACK_BOUNDARY): Use 128 for 64-bit.
135 * config/i386/cygwin.asm: Use push/ret to preserve call stack.
136 Add 64-bit implementation.
137 * config/i386/gthr-win32.c (__gthr_win32_key_create): Mark dtor
139 * config/i386/i386.c (x86_64_ms_abi_int_parameter_registers): New.
140 (override_options): Set ix86_cmodel for TARGET_64BIT_MS_ABI.
141 Warn for -mregparm, -mrtd in 64-bit mode; force ix86_regparm
142 for 64-bit; use TARGET_SUBTARGET64_DEFAULT.
143 (ix86_handle_cconv_attribute): Don't warn when ignoring if
145 (ix86_function_arg_regno_p): Handle TARGET_64BIT_MS_ABI.
146 (ix86_pass_by_reference): Likewise.
147 (ix86_function_value_regno_p): Likewise.
148 (ix86_build_builtin_va_list): Likewise.
149 (ix86_va_start, ix86_gimplify_va_arg): Likewise.
150 (function_arg_advance_ms_64): New.
151 (function_arg_advance): Call it.
152 (function_arg_ms_64): New.
153 (function_arg): Call it.
154 (function_value_ms_64): New.
155 (ix86_function_value_1): Call it.
156 (return_in_memory_ms_64): New.
157 (ix86_return_in_memory): Call it.
158 (setup_incoming_varargs_ms_64): New.
159 (ix86_setup_incoming_varargs): Call it.
160 (ix86_expand_prologue): Handle 64-bit stack probing.
161 (legitimize_pic_address): Handle TARGET_64BIT_MS_ABI.
162 (output_pic_addr_const): Likewise.
163 (x86_this_parameter): Likewise.
164 (x86_output_mi_thunk): Likewise.
165 (x86_function_profiler): Likewise.
166 (TARGET_STRICT_ARGUMENT_NAMING): New.
167 * config/i386/i386.h (TARGET_SUBTARGET64_DEFAULT): New.
168 (TARGET_64BIT_MS_ABI): New.
169 (CONDITIONAL_REGISTER_USAGE): Handle TARGET_64BIT_MS_ABI.
170 * config/i386/i386.md (allocate_stack_worker): Remove.
171 (allocate_stack_worker_32): Rename from allocate_stack_worker_1;
172 describe the clobber of eax without a match_scratch.
173 (allocate_stack_worker_postreload): Remove.
174 (allocate_stack_worker_64): Rename from allocate_stack_worker_rex64;
175 describe the clobbers of rax, r10, r11 properly; use __chkstk symbol.
176 (allocate_stack_worker_rex64_postreload): Remove.
177 (allocate_stack): Handle 64-bit.
178 * config/i386/i386elf (TARGET_SUBTARGET_DEFAULT): Remove.
179 * config/i386/mingw32.h (TARGET_VERSION): Set correctly for 64-bit.
180 (EXTRA_OS_CPP_BUILTINS): Handle 64-bit.
181 (STANDARD_INCLUDE_DIR): Handle TARGET_64BIT_DEFAULT.
182 (STANDARD_STARTFILE_PREFIX_1): Likewise.
183 * config/i386/unix.h (TARGET_SUBTARGET64_DEFAULT): New.
184 * config.build (x86_64-*-mingw*): New host.
185 * config.host (x86_64-*-mingw*): New host.
186 * config.gcc (x86_64-*-mingw*): New target.
187 * gthr-win32.h (__gthread_key_create): Mark dtor unused.
189 2007-03-30 Richard Henderson <rth@redhat.com>
190 Kai Tietz <kai.tietz@onevision.com>
192 * c-pragma.c (struct def_pragma_macro_value): New.
193 (struct def_pragma_macro): New.
194 (pushed_macro_table): New.
195 (dpm_hash, dpm_eq): New.
196 (handle_pragma_push_macro, handle_pragma_pop_macro): New.
197 (init_pragma): Install them.
198 * doc/tm.texi (HANDLE_PRAGMA_PUSH_POP_MACRO): New.
200 2007-03-30 Anatoly Sokolov <aesok@post.ru>
202 * config/avr/avr.c (avr_override_options): Clear
203 'flag_delete_null_pointer_checks'.
205 2007-03-30 Paolo Carlini <pcarlini@suse.de>
208 * c-common.h (enum rid): Add RID_HAS_NOTHROW_ASSIGN,
209 RID_HAS_NOTHROW_CONSTRUCTOR, RID_HAS_NOTHROW_COPY,
210 RID_HAS_TRIVIAL_ASSIGN, RID_HAS_TRIVIAL_CONSTRUCTOR,
211 RID_HAS_TRIVIAL_COPY, RID_HAS_TRIVIAL_DESTRUCTOR,
212 RID_HAS_VIRTUAL_DESTRUCTOR, RID_IS_ABSTRACT, RID_IS_BASE_OF,
213 RID_IS_CONVERTIBLE_TO, RID_IS_CLASS, RID_IS_EMPTY, RID_IS_ENUM,
214 RID_IS_POD, RID_IS_POLYMORPHIC, RID_IS_UNION, as
216 * doc/extend.texi (Extensions to the C++ Language): Add Type Traits.
218 2007-03-30 Steven Bosscher <steven@gcc.gnu.org>
220 * regmove.c: Move all of pass_stack_adjustments from here...
221 * combine-stack-adj.c: ...to this new file.
222 * Makefile.in: Add rules for combine-stack-adj.o.
224 2007-03-30 Zdenek Dvorak <dvorakz@suse.cz>
226 PR tree-optimization/31383
227 * tree-data-ref.c (affine_function_equal_p): Do not require the vectors
228 to have the same length.
230 2007-03-30 Jan Hubicka <jh@suse.cz>
232 PR middle-end/PR30700
233 * dwarf2out.c (reference_to_unused): Ask cgraph for functions
234 availablility; add more sanity checking; ask varpool only about
237 2007-03-29 Richard Henderson <rth@redhat.com>
239 * unwind-generic.h (_sleb128_t, _uleb128_t): Don't use HAVE_LONG_LONG
240 to decide, but __SIZEOF_LONG_LONG__.
242 2007-03-29 Richard Henderson <rth@redhat.com>
244 * emutls.c (struct __emutls_array): New.
245 (emutls_destroy): Use it instead of casting element 0 from void*.
246 (__emutls_get_address): Likewise.
248 2007-03-29 Richard Henderson <rth@redhat.com>
250 * varasm.c (initializer_constant_valid_p): Don't deny
251 DECL_DLLIMPORT_P on functions.
253 * config/i386/cygming.h: Remove function declarations.
254 (SUBTARGET_ENCODE_SECTION_INFO): Don't undef first.
255 (ASM_OUTPUT_LABELREF): Remove.
256 (COMMON_ASM_OP): Remove.
257 (ASM_OUTPUT_COMMON): Remove.
258 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
259 (ASM_DECLARE_OBJECT_NAME): Use i386_pe_maybe_record_exported_symbol.
260 (ASM_DECLARE_FUNCTION_NAME): Likewise.
261 * config/i386/i386-interix.h (SUBTARGET_ENCODE_SECTION_INFO):
262 Rename from TARGET_ENCODE_SECTION_INFO.
263 * config/i386/netware.h: Likewise.
264 * config/i386/i386-protos.h: Update.
265 * config/i386/i386.c (ix86_function_ok_for_sibcall): Turn ifdef
266 of TARGET_DLLIMPORT_DECL_ATTRIBUTES into straight if.
267 (legitimate_constant_p): Reject dllimports.
268 (dllimport_map, get_dllimport_decl): New.
269 (legitimize_dllimport_symbol): New.
270 (legitimize_address, ix86_expand_move): Use it.
271 (TARGET_BINDS_LOCAL_P): Redefine for TARGET_DLLIMPORT_DECL_ATTRIBUTES.
272 * config/i386/i386.h (DLL_IMPORT_EXPORT_PREFIX): Remove.
273 (SYMBOL_FLAG_DLLIMPORT, SYMBOL_REF_DLLIMPORT_P): New.
274 (SYMBOL_FLAG_DLLEXPORT, SYMBOL_REF_DLLEXPORT_P): New.
275 * config/i386/predicates.md (constant_call_address_operand): Only
276 accept symbols; reject dllimport_p symbols.
277 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Use
278 i386_pe_maybe_record_exported_symbol.
279 * config/i386/winnt.c (DLL_IMPORT_PREFIX, DLL_EXPORT_PREFIX): Remove.
280 (i386_pe_determine_dllexport_p): Rename from i386_pe_dllexport_p.
281 (i386_pe_determine_dllimport_p): Rename from i386_pe_dllimport_p;
282 trust the setting of DECL_DLLIMPORT_P.
283 (i386_pe_dllexport_name_p, i386_pe_dllimport_name_p): Remove.
284 (i386_pe_mark_dllexport, i386_pe_mark_dllimport): Remove.
285 (gen_stdcall_or_fastcall_suffix): Return NULL if no change required;
286 tidy the argument scanning loop.
287 (i386_pe_encode_section_info): Set SYMBOL_FLAG_DLLIMPORT and
288 SYMBOL_FLAG_DLLEXPORT in SYMBOL_REF_FLAGS.
289 (i386_pe_strip_name_encoding): Remove.
290 (i386_pe_binds_local_p): New.
291 (i386_pe_strip_name_encoding_full): Use default_strip_name_encoding.
292 (i386_pe_output_labelref): Remove.
293 (i386_pe_asm_output_aligned_decl_common): New.
294 (i386_pe_maybe_record_exported_symbol): Rename from
295 i386_pe_record_exported_symbol; check for dllexported symbols.
297 2007-03-29 Zack Weinberg <zack@mrtock.ucsd.edu>
299 * gengtype.c (oprintf): Mostly revert changes from 2007-03-26;
300 add comment explaining why vsnprintf cannot be used.
302 2007-03-29 Douglas Gregor <doug.gregor@gmail.com>
304 PR tree-optimization/30666
305 * tree.c (build_complex_type): When creating type names for DWARF2
306 debug info, create TYPE_DECLs for TYPE_NAME instead of
308 (build_common_tree_nodes_2): Use build_complex_type when building
309 predefined complex types, to preserve canonical types.
311 2007-03-29 Steven Bosscher <steven@gcc.gnu.org>
313 * ifcvt.c (struct noce_if_info): Add then_else_reversed field.
314 (noce_get_alt_condition): Look at it to determine whether to
315 reverse the condition or not.
316 (noce_get_condition): Substitute the truth for lies.
317 (noce_find_if_block): Set the then_else_reversed field.
319 2007-03-29 Lars Poeschel <larsi@wh2.tu-dresden.de>
321 * config/fr30/fr30.md (movdi): Do not accept immediates as the
322 destination of this insn.
323 * config/fr30/fr30.c (fr30_move_double): Use emit_move_insn rather
324 than calling gen_rtx_SET directly. Use r0 to hold the value of
325 'address + 4' rather than a stack based temporary which can be
328 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
330 * config/s390/s390.c (s390_secondary_input_reload_class,
331 s390_secondary_output_reload_class): Functions removed.
332 (s390_secondary_reload): New function.
333 (TARGET_SECONDARY_RELOAD): Target macro defined.
334 * config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS,
335 SECONDARY_OUTPUT_RELOAD_CLASS): Macro definitions removed.
336 * config/s390/s390.md ("reload_outti", "reload_outdi",
337 "reload_indi", "reload_insi", "reload_out<mode>", "reload_in<mode>",
338 "reload_out<mode>"): Expanders removed.
339 ("reload<mode>_plus", "reload<mode>_nonoffmem_in",
340 "reload<mode>_nonoffmem_out"): Expanders added.
342 2007-03-29 Andreas Krebbel <krebbel1@de.ibm.com>
344 * regmove.c (optimize_reg_copy_1): Don't perform DEST->SRC repair action if
345 SRC->DEST replacement failed anyway.
347 2007-03-28 Mike Stump <mrs@apple.com>
349 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Add.
350 * config/darwin.h (MAX_OFILE_ALIGNMENT): Fix.
351 * config/rs6000/darwin.h (ASM_OUTPUT_ALIGNED_COMMON): Removed #undef.
353 2007-03-28 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
355 * config.gcc: Accept barcelona as a variant of amdfam10.
356 * config/i386/i386.c (override_options): Likewise.
357 * doc/invoke.texi: Likewise.
359 2007-03-28 Eric Botcazou <ebotcazou@adacore.com>
361 * tree-dfa.c (get_ref_base_and_extent): Do not expect positive
362 offsets for BIT_FIELD_REF and COMPONENT_REF.
364 2007-03-28 Richard Guenther <rguenther@suse.de>
366 * tree.c (is_global_var): Move ...
367 * tree-flow-inline.h (is_global_var): ... here.
368 * tree.h (is_global_var): Remove declaration.
370 2007-03-28 Uros Bizjak <ubizjak@gmail.com>
372 * config/i386/i386.h (X86_TUNE_PROMOTE_HIMODE_IMUL): New tuning
374 (TARGET_TUNE_PROMOTE_HIMODE_IMUL): New define. Use new tuning option.
375 * config/i386/i386.c (ix86_tune_features): Initialize new
377 * config/i386/predicates.md (promotable_binary_operator): Use
378 TARGET_TUNE_PROMOTE_HIMODE_IMUL.
380 2007-03-28 Grigory Zagorodnev <grigory_zagorodnev@linux.intel.com>
383 * config/i386/sse.md (uminv16qi3): Use UMIN instead of UMAX.
385 2007-03-28 Lars Poeschel <larsi@wh2.tu-dresden.de>
387 * config/fr30/fr30.md (movsi_internal): Change destination
388 constraint from m to V and add m to the end.
390 2007-03-28 Christian Bruel <christian.bruel@st.com>
392 * config/sh/sh.md (movsi_i): Fix type attribute.
394 2007-03-28 Christian Bruel <christian.bruel@st.com>
396 * config/sh/sh.md (movsi_ie): Fix memory constraints attribute length.
397 (movsf_ie): Likewise.
399 2007-03-28 Christian Bruel <christian.bruel@st.com>
401 * config.gcc: Add sh4-300 to multilib.
402 * config/sh/t-mlib-sh4-300: New file.
404 2007-03-28 Andreas Krebbel <krebbel1@de.ibm.com>
406 * config/s390/s390.md ("fix_trunc<mode>di2"): New expander.
407 ("fix_trunc<DFP:mode>di2_dfp"): New insn definition renamed from
409 ("fixuns_truncdddi2", "fixuns_trunctddi2"): Use
410 fix_trunc<DFP:mode>di2_dfp instead of fix_trunc<mode>di2.
411 ("fix_truncdfsi2", "fix_truncsfsi2", "fixuns_truncdddi2",
412 "fixuns_trunctddi2"): Whitespace fix.
414 2007-03-28 Kaz Kojima <kkojima@gcc.gnu.org>
416 * config/sh/sh.h (CALL_COOKIE_RET_TRAMP_SHIFT): Move after
417 the definition of struct sh_args.
418 (CALL_COOKIE_RET_TRAMP, CALL_COOKIE_STACKSEQ_SHIFT,
419 CALL_COOKIE_INT_REG_GET): Likewise.
421 2007-03-28 Steven Bosscher <steven@gcc.gnu.org>
423 * ifcvt.c (cond_exec_find_if_block): Return FALSE if no
424 transformations are applied successfully.
426 2007-03-27 Douglas Gregor <doug.gregor@gmail.com>
428 * tree.c (tree_contains_struct): Permit 512 tree codes.
429 * tree.h (tree_contains_struct): Ditto.
430 (MAX_TREE_CODES): Ditto.
431 (struct tree_base): Make CODE 16 bits, instead of 8 bits. Add
432 SPARE member to store remaining padding bits.
434 2007-03-27 Anatoly Sokolov <aesok@post.ru>
436 * config/avr/avr.c (avr_mcu_types): Move at90usb82 device to 'avr4'
439 2007-03-27 Janis Johnson <janis187@us.ibm.com>
441 * configure.ac: Fix assembler test for powerpc*-linux decimal float.
442 * configure: Regenerate.
444 * configure: Regenerate using the correct version of autoconf.
446 2007-03-27 Anatoly Sokolov <aesok@post.ru>
448 * config/avr/avr.c (avr_hard_regno_mode_ok): Disallow QImode in stack
450 * config/avr/avr.h (REGISTER_NAMES): Rename "__SPL__" and "__SPH__"
451 regs to "__SP_L__" and "__SP_H__".
453 2007-03-27 Richard Guenther <rguenther@suse.de>
455 * tree-dfa.c (get_ref_base_and_extent): Replace bit_offset and
456 computations with it with a HOST_WIDE_INT variable.
458 2007-03-26 Mike Stump <mrs@apple.com>
460 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Add
461 objective-c-header, objective-c++-header and objc++-cpp-output
463 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
465 2007-03-26 Richard Henderson <rth@redhat.com>
468 * config/i386/i386.c (IX86_BUILTIN_PSLLDQ128, IX86_BUILTIN_PSLLW128,
469 IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128, IX86_BUILTIN_PSRAW128,
470 IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128, IX86_BUILTIN_PSRLD128,
471 IX86_BUILTIN_PSRLQ128): New.
472 (ix86_init_mmx_sse_builtins): Add them.
473 (ix86_expand_builtin): Expand them.
474 * config/i386/sse.md (ashr<mode>3, lshr<mode>3, ashl<mode>3): Make
476 * config/i386/emmintrin.h (_mm_slli_epi64, _mm_srai_epi16,
477 _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
478 _mm_srli_epi64): Mark __B const.
479 (_mm_srli_si128, _mm_srli_si128): Fix disabled inline versions.
480 (_mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64, _mm_sra_epi16,
481 _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32, _mm_srl_epi64): Use
482 new two-vector shift builtins.
484 2007-03-26 Ian Lance Taylor <iant@google.com>
486 PR tree-optimization/31345
487 * tree-vrp.c (extract_range_from_binary_expr): Turn ranges like
488 [+INF, +INF(OVF)] into VARYING.
490 2007-03-26 Zack Weinberg <zackw@panix.com>
492 * gengtype-parse.c: New file.
493 * gengtype-yacc.y: Delete.
494 * gengtype-lex.l: Don't include gengtype-yacc.h.
495 Define YY_DECL and yyterminate appropriately for recursive
496 descent parser. yylval is now a string out-parameter to yylex.
497 (HWS, EOID): New shorthand.
498 (IWORD): Add a couple more types.
499 (yylex): Add a setup stanza. Remove the complex rules for
500 detecting GTY'ed types and typedefs; replace with simple
501 keyword detectors. Adjust everything for the changed
502 definition of yylval. Ignore all pp-directives, not just #define.
504 (parse_file): Rename yybegin; do not call yyparse.
506 * gengtype.c (xasprintf): Export again.
507 (this_file): New. Use everywhere __FILE__ was being used.
508 (get_lang_bitmap): Special case types defined in gengtype.c.
509 (do_typedef, new_structure): Suppress definition of certain types.
510 (new_structure): Improve diagnostics of duplicate definitions.
511 Make sure location_s is associated with input.h.
512 (nreverse_pairs, define_location_structures): New functions.
513 (main): Improve tagging of kludge types. Remove old kludges
514 for input.h types; use define_location_structures.
515 * gengtype.h: Update prototypes. Define token codes here.
516 * Makefile.in: Remove all references to gengtype-yacc.
517 Add rules for gengtype-parse.o. Adjust rules for gengtype-lex.o
519 * bitmap.h (struct bitmap_head_def): Coalesce definitions,
520 add GTY((skip)) to the field that's only conditionally there.
521 * doc/install.texi: Document that Bison is no longer required
522 unless building treelang.
524 * gengtype.c: Don't include gtyp-gen.h.
525 (srcdir): Declare here.
526 (base_files, lang_dir_names): Allocate dynamically.
527 (gt_files, num_gt_files, num_lang_dirs): New globals.
528 (measure_input_list, read_input_line, read_input_list)
529 (set_lang_bitmap): New functions.
530 (get_base_file_bitmap): Rename get_lang_bitmap and drastically
531 simplify, relying on read_input_list to set up the bitmaps.
532 (main): Arguments are no longer unused. Check for correct number
533 of command line arguments, set srcdir and srcdir_len, then call
534 read_input_list, before doing anything else. No need to worry
535 about duplicates in main loop.
536 * configure.ac: Simplify the calculation of all_gtfiles.
537 Put language tags in there. Don't set or substitute
538 all_gtfiles_files_langs or all_gtfiles_files_frags.
539 * Makefile.in: Revamp the way gengtype is invoked, now that it
540 takes a file on its command line with a much simpler format.
541 Remove or replace with gtyp-input.list all references to gtyp-gen.h.
542 (GTFILES): Remove duplicates and C source files.
543 * c-config-lang.in, cp/config-lang.in, objc/config-lang.in
544 * objcp/config-lang.in: Add c-pragma.h to gtfiles.
545 * configure: Regenerate.
547 * gengtype.h: Remove all type definitions to gengtype.c; leave
548 only definitions of options_p, type_p, and pair_p as opaque
549 pointers. Update prototypes.
550 * gengtype.c: Many type definitions moved here from gengtype.h.
551 Consolidate type definitions at the top of the file.
552 (xvasprintf): Delete.
553 (xasprintf): Make static.
554 (create_nested_pointer_option): Add 'next' parameter.
555 (create_field_all, create_field_at): New functions.
556 (create_field): Now a thin wrapper around create_field_all.
557 (create_optional_field): Rename create_optional_field_ and add
558 line argument. Original name is now a macro which supplies
560 (oprintf): Use vsnprintf directly.
561 (close_output_files): Use fatal rather than perror/exit.
562 (note_def_vec, note_def_vec_alloc): Use create_field_at.
563 (main): Set progname. Don't use exit.
564 * gengtype-yacc.y (struct_fields): Use create_field_at.
565 (option, optionseqopt): Delete.
566 (optionseq): Consolidate productions from option here so we
567 can use the first argument to create_option.
569 * gengtype-lex.l: Distinguish unions from structures in the
570 token type. Don't call find_structure; return the tag as a string.
571 * gengtype-yacc.y: Add new token types ENT_TYPEDEF_UNION and ENT_UNION.
572 Type of these, ENT_TYPEDEF_STRUCT, and ENT_STRUCT is string.
573 Reorganize typedef_struct production accordingly.
574 Use create_nested_ptr_option.
575 * gengtype.c (create_nested_ptr_option): New function.
576 * gengtype.h: Declare it.
578 * gengtype.h (struct type): Replace 'sc' with boolean, scalar_is_char.
579 (string_type): Don't declare.
580 (do_scalar_typedef): Declare.
581 (create_scalar_type): Update prototype.
582 * gengtype.c (string_type): Make static.
583 (scalar_nonchar, scalar_char): New.
584 (do_scalar_typedef): Export. Always use scalar_nonchar for the type.
585 (resolve_typedef): Use scalar_nonchar for error recovery.
586 (create_scalar_type): Remove name_len field. Return scalar_char
587 or scalar_nonchar as appropriate.
588 (adjust_field_type): Look at scalar_is_char boolean to decide whether
590 (throughout): Use scalar_nonchar instead of calling create_scalar_type,
592 (main): Initialize scalar_char and scalar_nonchar before calling
594 * gengtype-lex.l: Adjust for removal of second argument to
595 create_scalar_type. Use yylval.s instead of yylval.t when
597 * gengtype-yacc.y: Type of SCALAR is string. Call
598 create_scalar_type from type:SCALAR rule. Adjust for removal of
599 second argument to create_scalar_type.
601 * vec.h: Remove all #if IN_GENGTYPE blocks.
602 Add comment saying that changes may require adjustments to gengtype.
603 * gengtype.c: Don't include coretypes.h or tm.h.
604 Add comment to inclusion of errors.h.
605 (note_def_vec, note_def_vec_alloc): New functions.
606 * gengtype.h: Declare new functions.
607 * gengtype-lex.l: Don't include coretypes.h.
608 (YY_INPUT, macro_input, push_macro_expansion, mangle_macro_name):
610 (update_lineno): Remove unnecessary prototype.
611 (DEF_VEC_* rules): Simplify using note_def_vec / note_def_vec_alloc.
612 (VEC rule): Just return VEC_TOKEN.
613 * gengtype-yacc.y (VEC_TOKEN): New token type.
614 (type): Add a production for VEC(a,b).
615 * Makefile.in: Update dependencies.
617 * gengtype-lex.l: Remove rules for parsing pointer-to-function
618 typedefs that use the old PARAMS macro.
620 * gengtype-lex.l: Remove all rules and states relating to yacc
622 * gengtype-yacc.y: Similarly.
623 * gengtype.c (note_yacc_type): Delete function.
624 * gengtype.h: Update prototypes.
626 2007-03-26 Joseph Myers <joseph@codesourcery.com>
628 * tree-pretty-print.c (dump_generic_node): Report precision of
629 unnamed integer types.
631 2007-03-26 Steven Bosscher <steven@gcc.gnu.org>
633 * ifcvt.c (noce_try_store_flag_constants): Don't check
635 (noce_try_store_flag_constants): Don't check no_new_pseudos.
636 (noce_try_addcc, noce_try_store_flag_mask, noce_try_cmove_arith,
637 noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
638 noce_try_sign_mask): Likewise.
639 (if_convert): Check no_new_pseudos here.
641 (cond_exec_process_if_block, noce_process_if_block, find_if_block):
643 (struct noce_if_info): Add then_bb, else_bb, join_bb members.
644 (noce_get_condition): Handle new then_else_reversed argument.
645 (noce_init_if_info): Remove, fold into noce_find_if_block.
646 (noce_process_if_block): Take a struct noce_if_info as the
647 argument. Don't set up one based on ce_if_info. Update pointer
648 references accordingly.
649 (cond_move_process_if_block): Likewise.
650 (process_if_block): Removed.
651 (find_if_block): Removed. Move functionality two new functions,
652 noce_find_if_block and cond_exec_find_if_block.
653 (noce_find_if_block): New function. Be aware of IF-THEN-JOIN
654 blocks and the symmetric IF-ELSE-JOIN case.
655 (cond_exec_find_if_block): Also new function mostly based on old
656 find_if_block and process_if_block.
657 (find_if_header): Replace find_if_block call with separately
658 guarded calls to noce_find_if_block and cond_exec_find_if_block.
659 (find_cond_trap): Update noce_get_condition call.
660 (dead_or_predicable): Likewise.
662 2007-03-26 Jakub Jelinek <jakub@redhat.com>
664 * config/i386/i386.c (IX86_BUILTIN_CMPNEPD, IX86_BUILTIN_CMPNESD):
666 (IX86_BUILTIN_PSLLW128, IX86_BUILTIN_PSLLD128, IX86_BUILTIN_PSLLQ128,
667 IX86_BUILTIN_PSRAW128, IX86_BUILTIN_PSRAD128, IX86_BUILTIN_PSRLW128,
668 IX86_BUILTIN_PSRLD128, IX86_BUILTIN_PSRLQ128): Remove.
669 (ix86_init_mmx_sse_builtins): Remove v8hi_ftype_v8hi_v2di and
670 v4si_ftype_v4si_v2di. Remove __builtin_ia32_psllw128,
671 __builtin_ia32_pslld128, __builtin_ia32_psllq128,
672 __builtin_ia32_psrlw128, __builtin_ia32_psrld128,
673 __builtin_ia32_psrlq128, __builtin_ia32_psraw128 and
674 __builtin_ia32_psrad128 builtins.
676 2007-03-26 Uros Bizjak <ubizjak@gmail.com>
678 * reg-stack.c (replace_reg): Use IN_RANGE macro in gcc_assert().
679 * config/i386/constraints.md
680 (define_constraint "I"): Use IN_RANGE macro.
681 (define_constraint "J"): Ditto.
682 (define_constraint "K"): Ditto.
683 (define_constraint "M"): Ditto.
684 (define_constraint "N"): Ditto.
685 (define_constraint "O"): Ditto.
686 * config/i386/predicates.md
687 (define_predicate "register_no_elim_operand"): Use IN_RANGE macro.
688 (define_predicate "const_0_to_3_operand"): Ditto.
689 (define_predicate "const_0_to_7_operand"): Ditto.
690 (define_predicate "const_0_to_15_operand"): Ditto.
691 (define_predicate "const_0_to_63_operand"): Ditto.
692 (define_predicate "const_0_to_255_operand"): Ditto.
693 (define_predicate "const_1_to_31_operand"): Ditto.
694 (define_predicate "const_2_to_3_operand"): Ditto.
695 (define_predicate "const_4_to_7_operand"): Ditto.
697 2007-03-25 David Edelsohn <edelsohn@gnu.org>
699 * config/rs6000/rs6000.c (rs6000_emit_prologue): Always clobber LR
700 in SImode for save_world.
701 * config/rs6000/altivec.md (save_world, restore_world): Convert to
704 2007-03-25 Dorit Nuzman <dorit@il.ibm.com>
706 PR tree-optimization/30784
707 * fold-const.c (fold_ternary): Handle CONSTRUCTOR in case
710 2007-03-25 Revital Eres <eres@il.ibm.com>
712 * tree-if-conv.c (if_convertible_gimple_modify_stmt_p):
713 Fold movement_possibility function into it.
715 2007-03-25 David Edelsohn <edelsohn@gnu.org>
717 * config/rs6000/darwin.md (load_macho_picbase): Ignore operand 0.
718 (load_macho_picbase_{si,di}): Convert to LR hard reg.
719 (call_indirect_nonlocal_darwin64): Same.
720 (call_nonlocal_darwin64): Same.
721 (call_value_indirect_nonlocal_darwin64): Same.
722 (call_value_nonlocal_darwin64): Same.
723 (sibcall_nonlocal_darwin64): Same.
724 (sibcall_value_nonlocal_darwin64): Same.
725 (sibcall_symbolic_64): Same.
726 (sibcall_value_symbolic_64): Same.
727 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Remove
729 (rs6000_emit_load_toc_table): Same.
730 * config/rs6000/altivec.md (restore_world): Convert to LR hard reg.
731 * config/rs6000/rs6000.md (mulh_call): Convert to LR hard reg.
737 (load_toc_v4_pic_si): Same
738 (load_toc_v4_PIC_1): Same.
739 (load_toc_v4_PIC_1b): Same.
740 (call_indirect_aix{32,64}): Same.
741 (call_value_indirect_aix{32,64}): Same.
744 (call_local{32,64}): Same.
745 (call_value_local{32,64}): Same.
746 (call_indirect_nonlocal_aix{32,64}): Same.
747 (call_nonlocal_aix{32,64}): Same.
748 (call_value_indirect_nonlocal_aix{32,64}): Same.
749 (call_value_nonlocal_aix{32,64}): Same.
750 (call_indirect_nonlocal_sysv<mode>): Same.
751 (call_nonlocal_sysv<mode>): Same.
752 (call_value_indirect_nonlocal_sysv<mode>): Same.
753 (call_value_nonlocal_sysv<mode>): Same.
755 (sibcall_local{32,64}): Same.
756 (sibcall_value_local{32,64}): Same.
757 (sibcall_nonlocal_aix{32,64}): Same.
758 (sibcall_value_nonlocal_aix{32,64}): Same.
759 (sibcall_nonlocal_sysv<mode>): Same.
760 (sibcall_value): Same.
761 (sibcall_value_nonlocal_sysv<mode>): Same.
763 2007-03-24 Paul Brook <paul@codesourcery.com>
765 * config/arm/lib1funcs.asm (div0): Use ARM_FUNC_START and do_push.
766 * config/arm/linux-eabi.h: Remove legacy syscall hack.
768 2007-03-24 Richard Henderson <rth@redhat.com>
770 * config/ia64/constraints.md: New file.
771 * config/ia64/predicates.md: Replace CONST_OK_FOR_? with
772 satisfies_constraint_?.
773 * config/ia64/ia64.c (ia64_move_ok, ia64_legitimate_constant_p,
774 ia64_reload_gp, spill_restore_mem, ia64_expand_prologue,
775 ia64_expand_epilogue, ia64_split_return_addr_rtx, ia64_rtx_costs,
776 ia64_output_mi_thunk): Likewise.
777 (ia64_const_ok_for_letter_p): Remove.
778 (ia64_const_double_ok_for_letter_p): Remove.
779 (ia64_extra_constraint): Remove.
780 * config/ia64/ia64.h (REG_CLASS_FROM_LETTER): Remove.
781 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K, CONST_OK_FOR_L,
782 CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O, CONST_OK_FOR_P,
783 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_G,
784 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT,
785 EXTRA_MEMORY_CONSTRAINT): Remove.
786 * config/ia64/ia64.md: Include constriants.md. Replace
787 CONST_OK_FOR_? with satisfies_constraint_?.
789 2007-03-23 Michael Meissner <michael.meissner@amd.com>
790 H.J. Lu <hongjiu.lu@intel.com>
792 * config/dfp-bit.h (DPD_BID_NAME): New macro to give either the
794 (name macros): Use DPD_BID_NAME to convert names properly.
796 * optabs.c (DECIMAL_PREFIX): Prefix string to use for the current
797 decimal floating point format.
798 (init_floating_libfuncs): Change decimal functions so that they
799 have a "bid_" prefix if the decimal system uses the BID format,
800 and "dpd_" prefix if the decimal system uses the DPD format.
801 (init_interclass_conv_libfuncs): Ditto.
802 (init_intraclass_conv_libfuncs): Ditto.
804 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
805 using the BID format.
807 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
808 whether we are using the BID decimal format.
809 * configure: Regenerate.
811 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
812 the compiler has decimal floating point enabled. Define
813 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
816 * config.in (ENABLE_DECIMAL_BID_FORMAT): New macro to say we are
817 using the BID format.
819 * configure.ac (ENABLE_DECIMAL_BID_FORMAT): Set to 1/0 to say
820 whether we are using the BID decimal format.
821 * configure: Regenerate.
823 * c-cppbuiltin.c (c_cpp_builtins): Define __STDC_WANT_DEC_FP__ if
824 the compiler has decimal floating point enabled. Define
825 __DECIMAL_BID_FORMAT__ if BID decimal floating point is used
828 * doc/install.texi (--enable-decimal-float): Document BID and DPD
829 options, and that it is enabled for i386/x86_64 systems.
831 * Makefile.in (enable_decimal_float): New.
833 (DECNUMINC): Add -I$(DECNUMFMT).
834 (DECNUM_H): Mov decimal32.h, decimal64.h and decimal128.h
835 to $(DECNUMFMT) from $(DECNUM).
837 * configure.ac: Support * --enable-decimal-float={no,yes,bid,dpd}.
838 Substitute enable_decimal_float.
839 * configure: Regenerated.
842 * config/dfp-bit.c (__dec_byte_swap): Use uint32_t instead of
845 * configure.ac: Enable decimal float for x86_64-*-linux*.
846 * configure: Regenerated.
849 * dfp.c (decimal_real_arithmetic): Use decimal128FlipSign and
850 decimal128ClearSign to flip and clear the sign bit in decimal128.
851 (decimal_real_maxval): Set decimal128SetSign to set the sign
854 2007-03-23 Ian Lance Taylor <iant@google.com>
856 * fold-const.c (fold_binary): Correct warning for X - c >= X.
858 2007-03-23 Ian Lance Taylor <iant@google.com>
860 * tree-dump.c (dump_files): Correct comment.
862 2007-03-23 Ian Lance Taylor <iant@google.com>
864 * tree-vrp.c (operand_less_p): Ignore fold overflow warnings.
866 2007-03-23 Steven Bosscher <steven@gcc.gnu.org>
868 * tracer.c (tracer): Don't take FLAGS argument. Assert we are
869 in cfglayout mode. Don't go into and out of cfglayout mode.
870 Link the blocks in the order of the constructed traces.
871 (rest_of_handle_tracer): Adjust call to tracer.
872 * loop-init.c (rtl_loop_init): Assert we are in cfglayout mode.
873 Don't go into cfglayout mode.
874 (rtl_loop_done): Don't go out of cfglayout mode.
875 * cfglayout.c (relink_block_chain): New function, split out from...
876 (fixup_reorder_chain): ...here. Remove redundant checking.
877 (cfg_layout_finalize): Don't clear the header, footer, and aux
878 fields here, move the code to do so to relink_block_chain. Likewise
879 for free_original_copy_tables.
880 * rtl.h (tracer): Update prototype.
881 * bb-reorder.c (reorder_basic_blocks): Don't take FLAGS argument.
882 Assert we are in cfglayout mode. Don't go into and out of cfglayout
883 mode. Use relink_block_chain to serialize the CFG according to the
884 new basic block order. Move targetm.cannot_modify_jumps_p check from
886 (gate_handle_reorder_blocks): ...to here.
887 (duplicate_computed_gotos): Move targetm.cannot_modify_jumps_p check
889 (gate_duplicate_computed_gotos): ...to here.
890 (rest_of_handle_reorder_blocks): Don't see if anything has changed,
891 something always changes when going into and out of cfglayout mode.
892 Perform an expensive cfg cleanup while going into cfglayout mode.
893 Always update liveness information on HAVE_conditional_execution
894 targets. Reserialize the basic blocks and go out of cfglayout mode.
895 * reg-stack.c: Include cfglayout.h.
896 (rest_of_handle_stack_regs): Go into and out of cfglayout mode around
897 the call to reorder_basic_blocks.
898 * basic-block.h (reorder_basic_blocks): Update prototype.
899 (relink_block_chain): New prototype.
900 * passes.c (pass_outof_cfg_layout_mode): Move after cse2.
902 2007-03-23 Joseph Myers <joseph@codesourcery.com>
904 * config/mips/mips.md (type, hazard, *movdi_32bit,
905 *movdi_gp32_fp64, *movdi_64bit, *movsi_internal, movcc,
906 *movhi_internal, *movqi_internal, *movsf_hardfloat,
907 *movdf_hardfloat_64bit, *movdf_hardfloat_32bit, *movdf_softfloat,
908 movv2sf_hardfloat_64bit, load_df_low, load_df_high, store_df_high,
909 mthc1, mfhc1): Change xfer instruction type to mfc and mtc, as
911 (movcc): Change first xfer to multi.
912 * config/mips/24k.md, config/mips/4100.md, config/mips/4300.md,
913 config/mips/5000.md, config/mips/5400.md, config/mips/5500.md,
914 config/mips/5k.md, config/mips/7000.md, config/mips/9000.md,
915 config/mips/generic.md: Change reservations using "xfer" to use
917 * config/mips/sb1.md (ir_sb1_mtxfer): Use "mtc" instead of
919 (ir_sb1_mfxfer): Use "mfc" instead of using match_operand.
920 * config/mips/sr71k.md (ir_sr70_xfer_from): Use "mfc" instead of
922 (ir_sr70_xfer_to): Use "mtc" instead of examining mode.
924 2007-03-22 Richard Henderson <rth@redhat.com>
926 * config/i386/i386.c: Remove unnecessary function declarations.
927 Move targetm definition, and all related macros, to the end of
928 the file. Resort some functions to put definitions before uses.
929 (ix86_attribute_table): Make static. Move to end of file.
930 (ix86_gimplify_va_arg): Make static.
932 2007-03-22 Richard Henderson <rth@redhat.com>
934 * config/i386/i386.c (ix86_function_regparm): Early exit for 64-bit;
935 don't increase local_regparm with force_align_arg_pointer check.
936 (ix86_function_sseregparm): Assert 32-bit.
937 (type_has_variadic_args_p): New.
938 (ix86_return_pops_args): Early exit for 64-bit. Reindent; use
939 type_has_variadic_args_p.
940 (ix86_function_arg_regno_p): Use == 0 instead of ! test for eax.
941 (init_cumulative_args): Remove TARGET_DEBUG_ARG. Remove zero_cum;
942 use memset instead. Do maybe_vaarg check first; skip attribute
943 tests if true; skip attribute tests for 64-bit.
944 (construct_container): Remove TARGET_DEBUG_ARG.
945 (function_arg_advance_32, function_arg_advance_64): Split out ...
946 (function_arg_advance): ... from here.
947 (function_arg_32, function_arg_64): Split out ...
948 (function_arg): ... from here.
949 (ix86_pass_by_reference): Tidy.
950 (ix86_function_value_regno_p): Rearrange w/ switch on regno.
951 (function_value_32): New, from parts of ix86_function_value
952 and ix86_value_regno.
953 (function_value_64): New, from parts of ix86_function_value
954 and ix86_libcall_value.
955 (ix86_function_value_1): New.
956 (ix86_function_value, ix86_libcall_value): Use it.
957 (return_in_memory_32, return_in_memory_64): Split out ...
958 (ix86_return_in_memory): ... from here.
959 (ix86_struct_value_rtx): Skip for 64-bit.
960 (ix86_libcall_value, ix86_value_regno): Remove.
961 (setup_incoming_varargs_64): Split out ...
962 (ix86_setup_incoming_varargs): ... from here.
963 (ix86_va_start): Remove TARGET_DEBUG_ARG.
964 (legitimate_address_p, legitimize_address): Remove TARGET_DEBUG_ADDR.
965 * config/i386/i386-protos.h (ix86_function_value): Remove.
966 * config/i386/i386.opt (TARGET_DEBUG_ADDR, TARGET_DEBUG_ARG): Remove.
968 2007-03-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
971 * c-lex.c (interpret_float): On overflow, emit pedantic warning if
972 infinities not supported, otherwise emit warning if -Woverflow. On
973 underflow, emit warning if -Woverflow.
974 * real.c (real_from_string): Return -1 if underflow, +1 if overflow
976 * real.h (real_from_string): Update declaration
978 2007-03-22 Kai Tietz <kai.tietz@onevision.com>
979 Richard Henderson <rth@redhat.com>
981 * defaults.h (OUTGOING_REG_PARM_STACK_SPACE): Provide default.
982 * calls.c (compute_argument_block_size, expand_call,
983 emit_library_call_value_1): Don't ifdef OUTGOING_REG_PARM_STACK_SPACE.
984 * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
985 * function.c (STACK_DYNAMIC_OFFSET): Likewise.
986 * doc/tm.texi (OUTGOING_REG_PARM_STACK_SPACE): Update.
987 * config/alpha/unicosmk.h, config/bfin/bfin.h, config/iq2000/iq2000.h,
988 config/mips/mips.h, config/mn10300/mn10300.h, config/mt/mt.h,
989 config/pa/pa.h, config/rs6000/rs6000.h, config/score/score.h,
990 config/spu/spu.h, config/v850/v850.h (OUTGOING_REG_PARM_STACK_SPACE):
993 2007-03-22 Joseph Myers <joseph@codesourcery.com>
995 * c-incpath.c (add_sysroot_to_chain): New.
996 (merge_include_chains): Add sysroot argument. Call
997 add_sysroot_to_chain if sysrooted.
998 (register_include_chains): Update call to merge_include_chains.
999 * doc/cppopts.texi: Document use of '=' in include directory
1002 2007-03-22 Uros Bizjak <ubizjak@gmail.com>
1004 * config/i386/i386.md (cmp<mode>): Rename from cmpsf and cmpdf.
1005 Macroize expander using SSEMODEF mode macro. Use SSE_FLOAT_MODE_P.
1006 (*cmpfp_<mode>): Rename from *cmpfp_sf and *cmpfp_df. Macroize
1007 insn pattern using X87MODEF12 mode macro.
1009 2007-03-21 Seongbae Park <seongbae.park@gmail.com>
1011 * regmove.c (regmove_optimize): Use reg_mentioned_p
1012 instead of reg_overlap_mentioned_p for DST.
1014 2007-03-21 Mike Stump <mrs@apple.com>
1016 * c.opt: Fixup for Objective-C/C++.
1018 2007-03-21 Steve Ellcey <sje@cup.hp.com>
1020 * explow.c (convert_memory_address): Fold memory reference when
1021 POINTERS_EXTEND_UNSIGNED < 0
1023 2007-03-21 Richard Henderson <rth@redhat.com>
1026 * config/i386/emmintrin.h (__m128i, __m128d): Mark may_alias.
1027 * config/i386/mmintrin.h (__m64): Likewise.
1028 * config/i386/xmmintrin.h (__m128): Likewise.
1030 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1032 * config/vxworks.h (VXWORKS_ADDITIONAL_CPP_SPEC): Remove -D options.
1033 (VXWORKS_OS_CPP_BUILTINS): Define.
1034 * config/i386/vxworks.h (VXWORKS_CPU_DEFINE): Fold into...
1035 (TARGET_OS_CPP_BUILTINS): ...here. Use VXWORKS_OS_CPP_BUILTINS.
1037 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1039 * rtl.h (constant_pool_reference_p): Delete.
1040 (find_constant_src): Declare.
1041 * rtlanal.c (find_constant_src): New function.
1042 * simplify-rtx.c (constant_pool_reference_p): Delete.
1043 * config/i386/i386.md: Use find_constant_src instead of
1044 constant_pool_reference_p/avoid_constant_pool_reference pairs.
1046 2007-03-21 Richard Sandiford <richard@codesourcery.com>
1048 * doc/invoke.texi (-fpie, -fPIE): Document __pie__ and __PIE__.
1049 * c-cppbuiltin.c (c_cpp_builtins): Define them.
1051 2007-03-20 Mark Mitchell <mark@codesourcery.com>
1053 * config/arm/elf.h (TARGET_ASM_DESTRUCTOR): Define.
1054 * config/arm/arm.c (arm_elf_asm_cdtor): New function.
1055 (arm_elf_asm_constructor): Use it.
1056 (arm_elf_asm_destructor): New function.
1058 2007-03-20 Bernd Schmidt <bernd.schmidt@analog.com>
1060 * jump.c (mark_jump_label): Treat SEQUENCE specially.
1062 2007-03-20 Nathan Sidwell <nathan@codesourcery.com>
1064 * config/vxlib.c (tls_delete_hook): Use TCB for kernel tasks.
1066 2007-03-19 Andrew Haley <aph@redhat.com>
1068 PR tree-optimization/31264
1069 * tree-vrp.c (register_edge_assert_for_1): Don't look though
1072 2007-03-19 Paolo Bonzini <bonzini@gnu.org>
1074 PR rtl-optimization/30907
1075 * fwprop.c (forward_propagate_into): Never propagate inside a loop.
1076 (fwprop_init): Always call loop_optimizer_initialize.
1077 (fwprop_done): Always call loop_optimizer_finalize.
1078 (fwprop): We always have loop info now.
1079 (gate_fwprop_addr): Remove.
1080 (pass_fwprop_addr): Use gate_fwprop as gate.
1082 PR rtl-optimization/30841
1083 * df-problems.c (df_ru_local_compute, df_rd_local_compute,
1084 df_chain_alloc): Call df_reorganize_refs unconditionally.
1085 * df-scan.c (df_rescan_blocks, df_reorganize_refs): Change
1086 refs_organized to refs_organized_size.
1087 (df_ref_create_structure): Use refs_organized_size instead of
1088 bitmap_size if refs had been organized, and keep refs_organized_size
1090 * df.h (struct df_ref_info): Change refs_organized to
1091 refs_organized_size.
1092 (DF_DEFS_SIZE, DF_USES_SIZE): Use refs_organized_size instead of
1095 2007-03-19 Mark Mitchell <mark@codesourcery.com>
1097 * except.c (output_function_exception_table): Do not reference the
1098 EH personality routine for functions that do not require an
1101 2007-03-20 Jakub Jelinek <jakub@redhat.com>
1104 * c-typeck.c (convert_for_assignment): Call comptypes for
1105 RECORD_TYPE or UNION_TYPE.
1108 * reload1.c (reload): Do invalid ASM checking after
1109 cleanup_subreg_operands.
1111 2007-03-19 Jeff Law <law@redhat.com>
1113 * tree-cfg.c (find_taken_edge): Tighten conditions for
1114 optimizing computed gotos.
1116 2007-03-19 Michael Matz <matz@suse.de>
1118 * builtins.c (expand_builtin_sync_operation,
1119 expand_builtin_compare_and_swap,
1120 expand_builtin_lock_test_and_set): Care for extending CONST_INTs
1123 * config/i386/sync.md (sync_double_compare_and_swapdi_pic,
1124 sync_double_compare_and_swap_ccdi_pic): Use "SD" as constraint
1127 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1129 * doc/tm.texi: Add brackets around the return type of
1130 TARGET_SECONDARY_RELOAD.
1132 2007-03-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
1133 Richard Guenther <rguenther@suse.de>
1135 PR tree-optimization/31254
1136 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
1137 Use handled_component_p () where appropriate. Continue
1138 propagating into the rhs if we propagated into an INDIRECT_REF
1141 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1143 * config/s390/s390.md (op_type attribute): RRR instruction type added.
1144 (FP, DFP, SD_SF, DD_DF, TD_TF): New mode macros.
1145 (xde, xdee): Mode attributes adjusted to support DFP modes.
1146 (RRer, f0, op1, Rf, bt, bfp, HALF_TMODE): New mode attributes added.
1147 ("cmp<mode>", "*cmp<mode>_css_0", "*cmp<mode>_ccs", TF move splitters,
1148 DF move splitters, "floatdi<mode>2", "add<mode>3", "*add<mode>3",
1149 "*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3", "*sub<mode>3",
1150 "*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3", "*mul<mode>3",
1151 "div<mode>3", "*div<mode>3", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
1152 "*negabs<mode>2_nocc", "copysign<mode>3"): Adjusted to support DFP
1154 ("*movtf_64", "*movtf_31", "*movdf_64dfp", "*movdf_64", "*movdf_31",
1155 "movsf"): Insn definitions removed.
1156 ("*mov<mode>_64", "*mov<mode>_31", "mov<mode>", "*mov<mode>_64dfp",
1157 "*mov<mode>_64", "*mov<mode>_31", "fix_trunc<DFP:mode>di2",
1158 "trunctddd2", "truncddsd2", "extendddtd2", "extendsddd2"): Insn
1160 ("fixuns_truncdddi2", "fixuns_trunctddi2", "mov<mode>",
1161 "reload_in<mode>", "reload_out<mode>"): Expander added.
1162 ("movtf", "movdf", "reload_outtf", "reload_outdf", "reload_intf"):
1165 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1167 * config/s390/s390.md: Only non-functional changes. Renamed
1168 FPR mode macro to BFP all over the file.
1170 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1172 * config/s390/s390.md (UNSPEC_COPYSIGN): New constant.
1173 (op_type attribute): RRF instruction type added.
1174 (fT0): New mode attribute.
1175 ("*movdi_64dfp", "*movdf_64dfp", "*neg<mode>2_nocc", "*abs<mode>2_nocc",
1176 "*negabs<mode>2_nocc", "copysign<mode>3"): Insn definitions added.
1177 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Due to a new instruction
1178 no secondary memory is needed when moving DFmode values between GPRs
1181 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1183 * config/s390/s390.opt ("mhard-float", "msoft-float"): Bit value
1184 inverted and documentation adjusted.
1185 ("mhard-dfp", "msoft-dfp"): New options.
1186 * config/s390/s390.c (s390_handle_arch_option): New architecture
1188 (override_options): Sanity checks for the new options added.
1189 * config.gcc: New architecture switch: z9-ec.
1190 * config/s390/s390.h (processor_flags): PF_DFP added.
1191 (TARGET_CPU_DFP, TARGET_DFP): Macro definitions added.
1192 (TARGET_DEFAULT): Due to the s390.opt changes hard float is enabled
1193 when the bit is NOT set so remove it from the defaults.
1195 2007-03-19 Andreas Krebbel <krebbel1@de.ibm.com>
1197 * genemit.c (main): Print include statement for dfp.h.
1198 * dfp.h (decimal_real_arithmetic): Hide prototype if tree_code enum
1201 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
1203 * config/cris/t-elfmulti (EXTRA_MULTILIB_PARTS): Do not define here.
1205 2007-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
1208 * config/sh/sh.c (sh_adjust_cost): Use the result of single_set
1211 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1213 * pa.c (output_deferred_plabels, output_bb, output_millicode_call,
1214 attr_length_call, output_call, output_indirect_call): Cleanup
1215 formatting of targetm calls.
1217 2007-03-19 Hans-Peter Nilsson <hp@axis.com>
1219 * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define to 1.
1221 2007-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1223 * pa.md: Add fpstore_load and store_fpload instruction types. Provide
1224 reservation, bypass and anti-bypass descriptions for these instructions.
1225 Update move patterns.
1226 * pa.c (hppa_fpstore_bypass_p): Check for both TYPE_FPSTORE_LOAD and
1229 2007-03-18 Dorit Nuzman <dorit@il.ibm.com>
1231 * tree-vect-transform.c (get_initial_def_for_induction): Replace
1232 GET_MODE_NUNITS with TYPE_VECTOR_SUBPARTS.
1233 (get_initial_def_for_reduction): Likewise.
1235 2007-03-16 Daniel Berlin <dberlin@dberlin.org>
1237 Fix PR tree-optimization/29922
1238 * tree-ssa-pre.c (bb_bitmap_sets): Remove RVUSE_* members.
1239 (get_representative): Removed.
1240 (value_dies_in_block_x): Update for rvuse removal.
1241 (valid_in_sets): Update for renaming of vuses_dies_in_block_x.
1242 (compute_antic_aux): Handle when PHI nodes appear in
1243 non-single-successors.
1244 (dump_bitmap_of_names): Removed.
1245 (compute_antic_safe): Renamed and removed rvuse calculation.
1246 Calculate only antic safe.
1247 (insert_into_preds_of_block): Remove assert.
1248 (execute_pre): Update for renamed functions.
1249 (defer_or_phi_translate_block): New function.
1251 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
1253 * config/arm/arm.c, config/arm/thumb2.md, config/m68k/m68k.c,
1254 config/spu/spu.c, omega.h, passes.c, predict.c: Fix comment
1256 * doc/cpp.texi, doc/extend.texi, doc/invoke.texi: Fix typos.
1257 Follow spelling conventions.
1259 * tree-data-ref.h: Remove the prototype for analyze_array.
1261 2007-03-17 Dorit Nuzman <dorit@il.ibm.com>
1263 PR tree-optimization/31041
1264 * tree-vect-transform.c (get_initial_def_for_induction): Call
1265 force_gimple_operand.
1267 2007-03-17 Olga Golovanevsky <olga@il.ibm.com>
1269 * ipa-type-escape.c (look_for_casts) : Revert code to use
1270 handled_component_p due to ada test a-numaux.adb.
1272 2007-03-17 Kazu Hirata <kazu@codesourcery.com>
1274 * final.c (final_scan_insn): Alter the condition of a
1275 conditional trap if we have nonstandard CC.
1277 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1279 * configure.ac: Remove excess quoting from asm line 0 test.
1280 * configure: Rebuilt.
1282 2007-03-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1284 * doc/invoke.texi (-Wconversion): Document warnings specific to C++.
1285 * c-common.c (convert_and_check): Move warning logic to...
1286 (warnings_for_convert_and_check): ...here. Define.
1287 * c-common.h (warnings_for_convert_and_check): Declare.
1289 2007-03-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1291 * pa.c (attr_length_call): Partially revert change of 2007-03-09.
1292 (output_call): Likewise.
1294 2007-03-16 Richard Sandiford <richard@codesourcery.com>
1296 * config/vxworks.h (SUPPORTS_INIT_PRIORITY): Define.
1298 2007-03-16 Richard Sandiford <richard@codesourcery.com>
1300 * config/vx-common.h (WINT_TYPE, WINT_TYPE_SIZE): Define.
1302 2007-03-16 Uros Bizjak <ubizjak@gmail.com>
1304 * config/i386/i386.c (override_options): Add PTA_NO_SAHF to k8,
1305 opteron, athlon-64 and athlon-fx processor_alias_table entries.
1307 2007-03-16 Sebastian Pop <sebastian.pop@inria.fr>
1309 PR tree-optimization/31183
1310 * tree-loop-linear.c (gather_interchange_stats, try_interchange_loops):
1311 Use double_int instead of unsigned int for representing access_strides.
1312 * testsuite/gcc.dg/tree-ssa/pr31183.c: New.
1314 2007-03-16 Richard Guenther <rguenther@suse.de>
1316 PR tree-optimization/31146
1317 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Restructure
1318 to allow recursion of forward_propagate_addr_expr.
1319 (forward_propagate_addr_into_variable_array_index): Likewise.
1320 (forward_propagate_addr_expr): Likewise.
1321 (tree_ssa_forward_propagate_single_use_vars): Likewise.
1322 (forward_propagate_addr_expr_1): Recurse on simple copies
1323 instead of propagating into them. Do so for useless conversions
1325 (forward_propagate_addr_expr): Clean up unused statements after
1328 2007-03-16 Richard Guenther <rguenther@suse.de>
1330 * builtins.c (expand_builtin_cexpi): Use the right argument
1331 for the expansion via cexp.
1333 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1335 * configure.ac: Don't require ELF binutils to tolerate # 0 "".
1336 * configure: Rebuilt.
1338 2007-03-16 Alexandre Oliva <aoliva@redhat.com>
1341 * dwarf2out.c (force_type_die): Adjust comment.
1342 (dwarf2out_imported_module_or_decl): Handle base AT_import types.
1344 2007-03-15 DJ Delorie <dj@redhat.com>
1346 * config/frv/predicates.md (minmax_operator): Don't check operands
1349 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
1351 * tree-ssa-loop-niter.c (record_estimate): Add "upper" argument.
1352 Update constant estimates of number of iterations.
1353 (record_nonwrapping_iv): Add "upper" argument. "data_size_bounds_p"
1354 argument renamed to "realistic".
1355 (compute_estimated_nb_iterations): Removed.
1356 (record_niter_bound): New function.
1357 (idx_infer_loop_bounds): For possible but unlikely tail arrays,
1358 call record_nonwrapping_iv with upper = false.
1359 (infer_loop_bounds_from_signedness): Pass upper argument to
1360 record_nonwrapping_iv.
1361 (estimate_numbers_of_iterations_loop): Do not call
1362 compute_estimated_nb_iterations. Record estimate based on profile
1363 information. Initialize the constant estimates of number of
1365 * tree-data-ref.c (estimated_loop_iterations): Return the recorded
1367 * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Add dump when
1368 number of iterations is too small.
1369 * cfgloop.h (struct nb_iter_bound): Remove "realistic" field.
1370 (EST_NOT_AVAILABLE): Removed.
1371 (struct loop): Replace estimated_nb_iterations by any_upper_bound,
1372 nb_iterations_upper_bound, any_estimate and nb_iterations_estimate
1375 2007-03-15 Zdenek Dvorak <dvorakz@suse.cz>
1377 * tree-ssa-loop-niter.c (refine_bounds_using_guard, bound_difference):
1378 Handle NE_EXPR guards.
1380 2007-03-15 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1383 * c-opts.c (c_common_post_options): Handle C++ post-processing here.
1384 Set also -pedantic-errors by default for the preprocessor unless
1385 -fpermissive is given.
1387 2007-03-15 Richard Guenther <rguenther@suse.de>
1391 * builtins.c (expand_builtin_cexpi): As a fallback if we
1392 don't have builtins for sincos or cexp create a function
1393 declaration for cexp and expand to a call to that.
1394 (expand_builtin_int_roundingfn): Always fall
1395 back to floor/ceil and its variants even if they may be
1398 2007-03-15 Steven Bosscher <steven@gcc.gnu.org>
1401 * cfglayout.c (fixup_reorder_chain): Postpone deleting dead
1402 jump tables, move the call to delete_dead_jumptables from here...
1403 (cfg_layout_finalize): ...to here. But rebuild jump labels first.
1404 * cfgrtl.c (cfg_layout_can_merge_blocks_p): When not optimizing,
1405 don't allow merging of blocks that try_redirect_by_replacing_jump
1406 also does not handle when not optimizing.
1408 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
1409 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1411 * config/i386/i386.md (x86_sahf_1): Correctly handle
1414 2007-03-15 Uros Bizjak <ubizjak@gmail.com>
1417 * config/i386/i386.md (*addti3_1, *addti3_1 splitter): Use
1418 x86_64_general_operand as operand[2] predicate. Remove "iF"
1419 from operand constraints and use "e" constraint instead.
1420 (*subti3_1, *subti3_1 splitter): Ditto.
1421 (*negti2_1, *negti2_1 splitter): Use nonimmediate_operand as
1422 operand[1] predicate.
1424 2007-03-14 Sebastian Pop <sebastian.pop@inria.fr>
1426 * tree-loop-linear.c (gather_interchange_stats): For multidimensional
1427 arrays, multiply the access strides by the size of the sub-array.
1428 * testsuite/gcc.dg/tree-ssa/ltrans-5.c: New.
1430 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
1432 * configure.ac (HAVE_AS_IX86_SAHF): On x86 targets check whether
1433 the configured assembler supports the sahf mnemonic.
1434 * configure: Regenerate.
1435 * config.in: Regenerate.
1437 * config/i386/i386.md (x86_sahf_1): Depending on HAVE_AS_IX86_SAHF,
1438 emit "sahf" or ".byte\t0x9e" as asm template.
1440 2007-03-14 Michael Meissner <michael.meissner@amd.com>
1443 * config/i386/i386.h (X86_TUNE_SHORTEN_X87_SSE): New tuning
1444 option to replace hard coded TARGET_xxx in md file.
1445 (X86_TUNE_AVOID_VECTOR_DECODE): Ditto.
1446 (X86_TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1447 (X86_TUNE_SLOW_IMUL_IMM8): Ditto.
1448 (X86_TUNE_MOVE_M1_VIA_OR): Ditto.
1449 (X86_TUNE_NOT_UNPAIRABLE): Ditto.
1450 (X86_TUNE_NOT_VECTORMODE): Ditto.
1451 (TUNE_SHORTEN_X87_SSE): Use new tuning option.
1452 (TUNE_AVOID_VECTOR_DECODE): Ditto.
1453 (TUNE_SLOW_IMUL_IMM32_MEM): Ditto.
1454 (TUNE_SLOW_IMUL_IMM8): Ditto.
1455 (TUNE_MOVE_M1_VIA_OR): Ditto.
1456 (TUNE_NOT_UNPAIRABLE): Ditto.
1457 (TUNE_NOT_VECTORMODE): Ditto.
1459 * config/i386/i386.c (ix86_tune_features): Fill in new tuning
1462 * config/i386/i386.md (fix_trunc?f?1_sse peephole2): Use new
1463 tuning options instead of hard coded TARGET_xxx.
1464 (fix ssemode peephole2's): Ditto.
1465 (imul peephole2's): Ditto.
1467 (movdi_or_rex64): Ditto.
1468 (move peephole2): Ditto.
1469 (not peephole2's): Ditto.
1471 2007-03-14 Dirk Mueller <dmueller@suse.de>
1473 * c-common.h (empty_body_warning): Rename to empty_if_body_warning.
1474 * c-common.c (empty_if_body_warning): Rephrase diagnostic message.
1475 * c-parser.c (c_parser_if_body): Always add an empty statement in case
1477 * c-parser.c (c_parser_do_statement): Warn about empty body in
1479 * c-typeck (c_finish_if_stmt): Call empty_if_body_warning.
1480 * doc/invoke.texi (-Wempty-body): Update documentation.
1482 2007-03-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1485 * c-common.h (warn_for_div_by_zero): Declare.
1486 * c-common.c (warn_for_div_by_zero): Define.
1487 * c-typeck.c (build_binary_op): Call warn_for_div_zero instead of
1490 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1492 * Makefile.in (PREPROCESSOR_DEFINES): Add directory terminators
1493 to PREFIX and STANDARD_PREFIX.
1495 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1496 Phil Edwards <phil@codesourcery.com>
1498 * gthr-vxworks.h: Add an extern "C" wrapper for C++.
1499 (__gthread_once_t): Remove busy field for RTPs.
1500 (__GTHREAD_ONCE_INIT): Update accordingly.
1502 2007-03-14 Richard Sandiford <richard@codesourcery.com>
1504 * doc/invoke.texi: Document VxWorks options.
1506 2007-03-14 Uros Bizjak <ubizjak@gmail.com>
1508 * doc/invoke.texi (i386 and x86-64 Options): Clarify -msahf option.
1510 2007-03-13 Seongbae Park <seongbae.park@gmail.com>
1512 PR tree-optimization/30590
1513 * tree-nrv.c (tree_nrv): Check for the partial update of the
1516 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
1518 * flags.h (flag_random_seed): Remove declaration, in favor of...
1519 * toplev.h (get_random_seed, set_random_seed): ... these.
1520 * tree.c (get_file_function_name): Use the former.
1521 * opts.c (common_handle_option): Use the latter.
1524 2007-03-13 Steven Bosscher <steven@gcc.gnu.org>
1527 * cse.c (cse_find_path): Do not bail out if a basic block that
1528 we already visited now becomes part of a path that starts at a
1529 different basic block. Just disallow this, to make sure we
1530 visit each basic block at most once.
1532 2007-03-13 Jan Hubicka <jh@suse.cz>
1534 * ipa-inline.c (cgraph_maybe_hot_edge_p): Look for hot/cold attributes,
1535 when profile esitmate is present, calls with very low frequency are
1538 2007-03-13 Zdenek Dvorak <dvorakz@suse.cz>
1540 PR tree-optimization/30730
1541 PR tree-optimization/26900
1542 * tree-ssa-loop-niter.c: Include gmp.h.
1544 (mpz_set_double_int, get_type_bounds, mpz_to_double_int,
1545 split_to_var_and_offset, determine_value_range,
1546 bound_difference_of_offsetted_base, refine_bounds_using_guard,
1547 bound_difference, bounds_add, bounds_negate,
1548 number_of_iterations_ne_max, dump_affine_iv): New functions.
1549 (number_of_iterations_ne, number_of_iterations_lt_to_ne,
1550 assert_loop_rolls_lt, assert_loop_rolls_le): Use bounds on the
1551 difference of initial and final value of control iv to validate
1553 (number_of_iterations_cond): Add loop parameter. Determine bounds
1554 on the difference of the extremes of the control iv. Add dumps.
1555 (expand_simple_operations): Handle phi nodes.
1556 (simplify_using_initial_conditions): Do not record used conditions.
1557 (number_of_iterations_exit): Pass loop to number_of_iterations_cond.
1558 Do not set additional_info.
1559 (implies_nonnegative_p, implies_ge_p): Removed.
1560 (derive_constant_upper_bound): Do not use parameter `additional'.
1561 (record_estimate): Parameter `additional' removed. Parameter
1562 `i_bound' added. Do not call derive_constant_upper_bound.
1563 (record_nonwrapping_iv): Use derive_constant_upper_bound to
1564 bound the number of iterations estimate.
1565 (estimate_numbers_of_iterations_loop): Pass the estimate from
1566 the number of iterations analysis to record_estimate.
1567 * tree.h (multiple_of_p): Declare.
1568 * tree-scalar-evolution.c (expression_expensive_p): Removed.
1569 (scev_const_prop): Do not check expression_expensive_p.
1570 * fold-const.c (multiple_of_p): Exported.
1571 * double-int.c (double_int_mask): Exported.
1572 * double-int.h (double_int_mask): Declare.
1573 * tree-flow.h (struct tree_niter_desc): Removed additional_info
1574 field. Added max field.
1576 2007-03-13 David Taylor <taylor@candd.org>
1579 * gcc.c (cpp_unique_options): If -MT or -MQ is seen, don't pass
1582 2007-03-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1585 * pa.md (vdepi_ior): Don't allow zero length deposit. Likewise for
1586 two unamed patterns.
1588 2007-03-13 Uros Bizjak <ubizjak@gmail.com>
1590 * config/i386/i386.opt (mcx16, msahf): New options.
1591 * config/i386/i386.c (x86_cmpxchg16b, x86_sahf): Remove.
1592 (ix86_tune_features) [X86_TUNE_USE_SAHF]: Enable for m_GENERIC.
1594 * config/i386/driver-i386.c (bit_LAHF_LM): New define.
1595 (host_detect_local_cpu): Detect cx16 and lahf_lm cpuid bits.
1596 Output -mcx16 and -msahf options when corresponding bit is set.
1598 * doc/invoke.texi (i386 and x86-64 Options): Document -mcx16
1601 2007-03-13 Alexandre Oliva <aoliva@redhat.com>
1603 * configure.ac: Test for assembler tolerance to # 0 "".
1604 * configure, config.in: Rebuilt.
1605 * final.c (final_scan_insn): Emit it if HAVE_AS_LINE_ZERO.
1607 2007-03-13 Geoffrey Keating <geoffk@apple.com>
1609 * doc/invoke.texi (Spec Files): Update for '%{,' spec.
1611 * config/rs6000/darwin-fallback.c: Compile file only on powerpc.
1612 (handle_syscall): Handle direct system calls.
1613 * config/rs6000/darwin.h (HAS_MD_FALLBACK_FRAME_STATE_FOR): Delete.
1615 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
1617 * doc/invoke.texi: Fix cpp.info cross-reference.
1618 * doc/passes.texi: Fix gcc.info cross-reference.
1620 2007-03-12 Zdenek Dvorak <dvorakz@suse.cz>
1622 PR tree-optimization/30835
1623 * lambda-code.c (can_convert_to_perfect_nest): Check whether
1624 bb_for_stmt is not NULL before accessing it.
1626 2007-03-12 Joseph Myers <joseph@codesourcery.com>
1628 * gcc.c (main): Handle target_sysroot_hdrs_suffix being NULL for
1631 2007-03-12 Brooks Moses <brooks.moses@codesourcery.com>
1634 * doc/install.texi: Document --enable-stage1-languages
1636 2007-03-12 Steven Bosscher <steven@gcc.gnu.org>
1638 * tree-pass.h (pass_into_cfg_layout_mode,
1639 pass_outof_cfg_layout_mode): Declare.
1640 * cfglayout.c (into_cfg_layout_mode, outof_cfg_layout_mode,
1641 pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode): New.
1642 * passes.c (pass_into_cfg_layout_mode): Schedule before jump2.
1643 (pass_outof_cfg_layout_mode): Schedule after pass_rtl_ifcvt.
1645 2007-03-12 Seongbae Park <seongbae.park@gmail.com>
1647 * c-decl.c (warn_variable_length_array): New function.
1648 Refactored from grokdeclarator to handle warn_vla
1649 and handle unnamed array case.
1650 (grokdeclarator): Refactored VLA warning case.
1651 * c.opt (Wvla): New flag.
1652 * doc/invoke.texi (Wvla): New warning.
1654 2007-03-12 Richard Henderson <rth@redhat.com>
1656 * config/alpha/alpha.c (alpha_elf_section_type_flags): New.
1657 (TARGET_SECTION_TYPE_FLAGS): New.
1659 2007-03-12 Richard Henderson <rth@redhat.com>
1661 * config/darwin.c (machopic_reloc_rw_mask): New.
1662 * config/darwin-protos.h (machopic_reloc_rw_mask): Declare.
1663 * config/darwin.h (TARGET_ASM_RELOC_RW_MASK): New.
1665 2007-03-12 Mark Mitchell <mark@codesourcery.com>
1667 * cppdefault.c (cpp_EXEC_PREFIX): New variable.
1668 * cppdefault.h (cpp_PREFIX): Document.
1669 (cpp_PREFIX_len): Likewise.
1670 (cpp_EXEC_PREFIX): New variable.
1671 * Makefile.in (PREPROCESSOR_DEFINES): Add STANDARD_EXEC_PREFIX.
1672 * c-incpath.c (add_standard_paths): Correct logic for relocating
1673 paths within prefix.
1675 2007-03-12 Uros Bizjak <ubizjak@gmail.com>
1677 * config/i386/i386.md (fixuns_trunc<mode>hi2): Implement from
1678 fixuns_truncsfhi2 and fixuns_truncdfhi2 using SSEMODEF
1680 (fix_trunc<mode>di_sse): Implement from fix_truncsfdi_sse and
1681 fix_truncdfdi_sse using SSEMODEF mode macro.
1682 (fix_trunc<mode>si_sse): Implement from fix_truncsfsi_sse and
1683 fix_truncdfsi_sse using SSEMODEF mode macro.
1684 (fix_trunc?f?i_sse peephole2): Implement using SSEMODEF mode macro.
1685 (fix_trunc?f?i_sse K8 peephole2): Fix register constraint.
1687 2007-03-12 Richard Sandiford <richard@codesourcery.com>
1689 * config.gcc (i[4567]86-wrs-vxworks, i[4567]86-wrs-vxworksae): Add
1692 2007-03-12 Olga Golovanevsky <olga@il.ibm.com>
1694 * tree.h : Add multiple_of_p declaration.
1695 * fold-const.c (multiple_of_p): Make multiple_of_p public.
1696 * ipa-type-escape.c (results_of_malloc): Redundant.
1697 (visited_stmts): New. Visited stmt for walk_use_def_chains.
1698 (cast_type): Extended with new members.
1699 (check_cast): Returns cast_type.
1700 (cast): New structure for data of walk_use_def_chains.
1701 (is_malloc_result, is_cast_from_non_pointer_1,
1702 is_cast_from_non_pointer,
1703 is_array_access_through_pointer_and_index): New functions.
1704 (look_for_casts): Returns cast types.
1705 (check_call): Returns void.
1706 (okay_pointer_operation): Use support of pointer plus index,
1707 pointer plus constant and allow all multiplications.
1709 2007-03-11 Richard Guenther <rguenther@suse.de>
1711 PR tree-optimization/31115
1712 * tree-vrp.c (extract_range_from_binary_expr): Make sure
1713 the shift count is positive and non-anti-range for RSHIFT_EXPR.
1714 A shift count of zero is not special as with *_DIV_EXPR.
1715 (vrp_int_const_binop): Handle RSHIFT_EXPR for determining overflow
1718 2007-03-11 Ian Lance Taylor <iant@google.com>
1720 * tree-vrp.c (vrp_int_const_binop): Handle PLUS_EXPR and
1721 the *_DIV_EXPR codes correctly with overflow infinities.
1723 2007-03-11 Ira Rosen <irar@il.ibm.com>
1725 * tree-data-ref.c (analyze_offset): Add a return value (bool) to
1726 indicate success/failure of the analysis. Add negation to subtrahend
1727 in case of subtraction. Fail if both operands contain constants.
1728 (create_data_ref): Fail if analyze_offset fails.
1730 2007-03-11 Uros Bizjak <ubizjak@gmail.com>
1732 * config/i386/i386.md (frndintxf2): Rename to ...
1733 (rintxf2): ... this. Remove expander having same name.
1734 (rintsf2, rintdf2): Implement using SSEMODEF macro.
1735 (roundsf2, rounddf2): Ditto.
1736 (lrint<mode>di2, lrint<mode>si2): Implement using SSEMODEI24 macro.
1737 (lround<mode>di2, lround<mode>si2): Ditto.
1739 2007-03-11 Steven Bosscher <steven@gcc.gnu.org>
1741 * lower-subreg.c: Include except.h.
1742 (decompose_multiword_subregs): Verify that the only control flow
1743 insns we can split are loads to multi-words pseudos.
1744 Handle breaking such blocks after splitting, instead of calling
1745 find_many_sub_basic_blocks.
1747 * loop-unroll.c (split_edge_and_insert): Don't set BB_SUPERBLOCK
1748 on the new basic block. Add a lengthy comment explaining why we
1749 thought this was necessary.
1750 * cfglayout.c (cfg_layout_finalize): Don't break superblocks.
1752 2007-03-10 Mark Mitchell <mark@codesourcery.com>
1755 * tree.c (walk_type_fields): Recurse into the element type of
1756 ARRAY_TYPEs if there is a pointer set.
1758 2007-03-10 Dirk Mueller <dmueller@suse.de>
1760 * c-common.c (warn_logical_operator): Fix condition.
1762 2007-03-10 Tobias Schlüter <tobi@gcc.gnu.org>
1764 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Add missing
1766 * config/darwin.c (machopic_select_section): Remove superfluous
1767 argument in call to categorize_decl_for_section. Remove unused
1770 2007-03-10 Joseph Myers <joseph@codesourcery.com>
1772 * configure.ac (glibc_header_dir): Set using with_build_sysroot if
1774 * configure: Regenerate.
1776 2007-03-10 Uros Bizjak <ubizjak@gmail.com>
1779 * config/i386/i386.md (UNSPEC_C2_FLAG): New constant.
1780 (fpremxf4_i387, fprem1xf4_i387): Use UNSPEC_C2_FLAG.
1781 (fmodxf3, fmod<mode>3, remainderxf3, remainder<mode>3):
1782 Add LABEL_NUSES to emitted label.
1783 * config/i386/i386.c (ix86_emit_fp_unordered_jump): Add
1784 branch probability value to emitted jump insn.
1785 * reg-stack.c (subst_stack_regs_pat)[UNSPEC]: Handle UNSPEC_C2_FLAG.
1786 Do not check life information and do not re-arrange input operands
1787 for UNSPEC_FSCALE_EXP, UNSPEC_FPREM_U and UNSPEC_FPREM1_U.
1789 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
1791 * config/sh/sh.c (sh_insn_length_adjustment): Adjust for
1792 the change of decode_asm_operands.
1794 2007-03-10 Kaz Kojima <kkojima@gcc.gnu.org>
1796 * mode-switching.c (create_pre_exit): Skip blockage insn.
1798 2007-03-09 Diego Novillo <dnovillo@redhat.com>
1800 * tree-pass.h (TODO_update_smt_usage): Remove.
1802 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1806 2007-03-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1808 * pa.c (attr_length_call): Revise condition for long pc-relative branch.
1809 (output_call): Use "LONG_PIC_SDIFF" instruction sequence for long local
1810 calls on the SOM target. Don't use "LONG_PIC_PCREL" call sequence on
1813 2007-03-09 Geoffrey Keating <geoffk@apple.com>
1815 * gcc.c: Document %{, in big comment at top.
1816 (input_suffix_matches): Remove special handling for .s and
1818 (input_spec_matches): New.
1819 (handle_braces): Handle %{,.
1820 (validate_switches): ',' indicates a value which is not a switch.
1821 * config/alpha/osf.h (ASM_FINAL_SPEC): Use %{, rather than %{.
1822 to detect assembler input.
1823 * config/i386/sol2.h (CPP_SPEC): Likewise.
1824 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
1825 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
1826 * config/rs6000/lynx.h (ASM_SPEC): Likewise.
1827 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
1828 * config/i386/darwin.h (DARWIN_MINVERSION_SPEC): Objective-C plus
1829 -m64 causes deployment target to default to 10.5.
1830 * config/rs6000/darwin.h (DARWIN_MINVERSION_SPEC): Likewise.
1832 2007-03-09 Richard Henderson <rth@redhat.com>
1835 * target.h (targetm.asm.out.reloc_rw_mask): New.
1836 * target-def.h (TARGET_ASM_RELOC_RW_MASK): New.
1837 (TARGET_ASM_OUT): Use it.
1838 * targhooks.c, targhooks.h (default_reloc_rw_mask): New.
1839 * varasm.c (categorize_decl_for_section): Remove shlib argument;
1840 use the new reloc_rw_mask target hook instead.
1841 (default_section_type_flags_1): Merge into...
1842 (default_section_type_flags): ... here.
1843 (decl_readonly_section_1): Merge into...
1844 (decl_readonly_section): ... here.
1845 (default_elf_select_section_1): Merge into...
1846 (default_elf_select_section): ... here.
1847 (default_unique_section_1): Merge into...
1848 (default_unique_section): ... here.
1849 (compute_reloc_for_rtx_1, compute_reloc_for_rtx): New.
1850 (default_select_rtx_section): Use it.
1851 (default_elf_select_rtx_section): Likewise.
1852 * output.h: Update to match.
1853 * doc/tm.texi (TARGET_ASM_RELOC_RW_MASK): New.
1854 * config/alpha/alpha.c (alpha_elf_reloc_rw_mask): New.
1855 (TARGET_ASM_RELOC_RW_MASK): New.
1856 * config/i386/i386.c (x86_64_elf_select_section): Adjust call
1857 to categorize_decl_for_section.
1858 (x86_64_elf_unique_section): Likewise.
1859 * config/ia64/hpux.h (TARGET_ASM_SELECT_SECTION,
1860 TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_RTX_SECTION): Remove.
1861 (TARGET_ASM_RELOC_RW_MASK): New.
1862 * config/ia64/ia64.c (ia64_rwreloc_select_section,
1863 ia64_rwreloc_unique_section, ia64_rwreloc_select_rtx_section): Remove.
1864 (ia64_hpux_reloc_rw_mask, ia64_reloc_rw_mask): New.
1865 (TARGET_RWRELOC): Remove.
1866 (ia64_section_type_flags): Adjust call to default_section_type_flags.
1867 * config/ia64/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
1868 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Remove.
1869 (rs6000_elf_select_section, rs6000_elf_unique_section): Remove.
1870 (rs6000_elf_reloc_rw_mask, rs6000_xcoff_reloc_rw_mask): New.
1871 (rs6000_xcoff_select_section): Use decl_readonly_section.
1872 (rs6000_xcoff_section_type_flags): Use default_section_type_flags.
1873 * config/rs6000/sysv4.h (TARGET_ASM_RELOC_RW_MASK): New.
1874 (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): Remove.
1875 (TARGET_SECTION_TYPE_FLAGS): Remove.
1876 * config/rs6000/xcoff.h (TARGET_ASM_RELOC_RW_MASK): New.
1878 2007-03-09 Roger Sayle <roger@eyesopen.com>
1880 * fold-const.c (fold_comparison): Remove compile-time evaluation of
1881 complex constant equality/inequality comparisons for here.
1882 (fold_binary) <EQ_EXPR>: Simplify complex comparisons that are
1883 known at compile-time or can be simplified to a scalar comparison.
1884 (fold_relational_const): Move compile-time evaluation of complex
1885 constant equality/inequality comparisons to here.
1887 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
1889 PR rtl-optimization/30643
1890 * cse.c (cse_insn): Recompute dest_hash after insert_regs for
1892 (fold_rtx): Recurse, like before 2006-11-03.
1894 2007-03-09 DJ Delorie <dj@redhat.com>
1896 * config/m32c/t-m32c (m32c-pragma.o): Add TM_H dependency to
1899 2007-03-09 Aldy Hernandez <aldyh@redhat.com>
1901 PR tree-optimization/30375
1902 * tree-ssa-dse.c (dse_possible_dead_store_p): Do not eliminate if
1903 LHS of statements is not the same.
1904 * testsuite/gcc.dg/tree-ssa/ssa-dse-10.c: New.
1906 2007-03-09 Chao-ying Fu <fu@mips.com>
1908 * doc/extend.texi (MIPS DSP Built-in Functions): Document the DSP
1910 * doc/invoke.texi (-mdspr2): Document new option.
1911 * config/mips/mips.md (UNSPEC_ABSQ_S_QB .. UNSPEC_DPSQX_SA_W_PH):
1912 New unspec for DSP REV 2.
1913 (<u>mulsidi3_32bit_internal): Check if !TARGET_DSPR2, because
1914 these instructions are extended in DSP REV 2.
1915 (mips-dspr2.md): Include.
1916 * config/mips/mips.opt (mdspr2): New option.
1917 * config/mips/mips.c (mips_function_type): Add MIPS_V4QI_FTYPE_V4QI,
1918 MIPS_SI_FTYPE_SI_SI_SI, MIPS_DI_FTYPE_DI_USI_USI, MIPS_DI_FTYPE_SI_SI,
1919 MIPS_DI_FTYPE_USI_USI, MIPS_V2HI_FTYPE_SI_SI_SI.
1920 (override_options): Check TARGET_DSPR2 to enable MASK_DSP.
1921 (CODE_FOR_mips_mul_ph): Define it to CODE_FOR_mulv2hi3.
1922 (dsp_bdesc): Add DSP REV 2 builtins. Remove 32-bit only DSP builtins.
1923 (dsp_32only_bdesc): New description table for 32-bit only DSP REV 1
1925 (bdesc_map): Add one field of unsupported_target_flags.
1926 (bdesc_arrays): Update entries to have extra fields. Add
1928 (mips_init_builtins): Initialize new function types.
1929 Check unsupported_target_fileds to filter out builtins.
1930 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_dspr2 if
1932 (ASM_SPEC): Pass mdspr2 to the assembler.
1933 * config/mips/mips-dspr2.md: New file.
1935 2007-03-09 Sa Liu <saliu@de.ibm.com>
1937 * config/rs6000/altivec.md: Fix vcond patterns using if_then_else.
1939 2007-03-09 Ian Lance Taylor <iant@google.com>
1941 * opts.c (common_handle_option): Treat -Wstrict-overflow (with no
1942 argument) like -Wstrict-overflow=2.
1943 * doc/invoke.texi (Warning Options): Update documentation.
1945 2007-03-09 Dirk Mueller <dmueller@suse.de>
1948 * doc/invoke.texi (-Wlogical-op): Document.
1949 * common.opt (-Wlogical-op): New.
1950 * c-common.h (warn_logical_operator): Declare.
1951 * c-common.c (warn_logical_operator): Define.
1952 * c-typeck.c (parser_build_binary_op): Call
1953 warn_logical_operator.
1955 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
1957 * rtl.h (gen_rtx_ASM_INPUT): Use "" instead of NULL file name.
1958 * final.c (final_scan_insn): Test for non-"" file name.
1960 2007-03-09 Sebastian Pop <sebastian.pop@inria.fr>
1962 * doc/loop.texi: Document the Omega linear constraints solver.
1963 * doc/invoke.texi: Document -fcheck-data-deps, omega-max-vars,
1964 omega-max-geqs, omega-max-eqs, omega-max-wild-cards,
1965 omega-hash-table-size, omega-max-keys, and
1966 omega-eliminate-redundant-constraints.
1967 * tree-pass.h (pass_check_data_deps): Declared.
1970 * timevar.def (TV_CHECK_DATA_DEPS): Declared.
1971 * tree-ssa-loop.c (check_data_deps, gate_check_data_deps,
1972 pass_check_data_deps): New.
1973 * tree-data-ref.c (init_data_ref): Remove declaration.
1974 (dump_data_dependence_relation): Dump DDR_INNER_LOOP.
1975 (analyze_array): Renamed init_array_ref, move up initializations.
1976 (init_data_ref): Renamed init_pointer_ref. Moved before its call.
1977 Removed arguments that are set to NULL.
1978 (analyze_indirect_ref): Correct indentation, correct call to
1980 (object_analysis): Call init_array_ref instead of analyze_array.
1981 (initialize_data_dependence_relation): Initialize DDR_INNER_LOOP.
1982 (access_functions_are_affine_or_constant_p): Use DR_ACCESS_FNS instead
1983 of DR_ACCESS_FNS_ADDR.
1984 (init_omega_eq_with_af, omega_extract_distance_vectors,
1985 omega_setup_subscript, init_omega_for_ddr_1, init_omega_for_ddr,
1986 ddr_consistent_p): New.
1987 (compute_affine_dependence): Check consistency of ddrs when
1988 flag_check_data_deps is passed.
1989 (analyze_all_data_dependences): Uncomment.
1990 (tree_check_data_deps): New.
1991 * tree-data-ref.h: Include omega.h.
1992 (DR_ACCESS_FNS_ADDR): Removed.
1993 (data_dependence_relation): Add inner_loop.
1994 (DDR_INNER_LOOP): New.
1995 * common.opt (fcheck-data-deps): New.
1996 * tree-flow.h (tree_check_data_deps): Declare.
1997 * Makefile.in (TREE_DATA_REF_H): Depend on omega.h.
1998 (OBJS-common): Depend on omega.o.
2000 * passes.c (pass_check_data_deps): Scheduled.
2001 * params.def (PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
2002 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
2003 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS,
2004 PARAM_VECT_MAX_VERSION_CHECKS,
2005 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS): New.
2007 2007-03-09 Richard Guenther <rguenther@suse.de>
2009 PR tree-optimization/30904
2011 * tree-vrp.c (extract_range_from_binary_expr): Handle RSHIFT_EXPR
2012 the same way as *_DIV_EXPR.
2014 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2016 * recog.c (decode_asm_operands): No mixed declarations and code.
2018 2007-03-09 Alexandre Oliva <aoliva@redhat.com>
2020 * rtl.def (ASM_INPUT): Add location.
2021 * rtl.h (ASM_INPUT_SOURCE_LOCATION): New.
2022 (ASM_INPUT_SOURCE_FILE, ASM_INPUT_SOURCE_LINE): New.
2023 (decode_asm_operands): Add loc operand.
2024 (gen_rtx_ASM_INPUT, gen_rtx_ASM_INPUT_loc): Define.
2025 * stmt.c (expand_asm): Rename to...
2026 (expand_asm_loc): ... this. Add locus argument. Pass it on to
2027 gen_rtx_ASM_INPUT_loc.
2028 (expand_asm_expr): Adjust.
2029 * recog.c (decode_asm_operands): Add loc operand.
2030 (check_asm_operands, extract_insn): Adjust.
2031 * reload1.c (maybe_fix_stack_asms): Likewise.
2032 * final.c (asm_insn_count): Likewise.
2033 (final_scan_insn): Output # line before and after asm.
2035 2007-03-09 Daniel Berlin <dberlin@dberlin.org>
2037 * tree-ssa-structalias.c (variable_info): Remove
2039 (new_var_info): Ditto.
2040 (shared_bitmap_info_t): New structure.
2041 (shared_bitmap_table): New variable.
2042 (shared_bitmap_hash): New function.
2043 (shared_bitmap_eq): Ditto
2044 (shared_bitmap_lookup): Ditto.
2045 (shared_bitmap_add): Ditto.
2046 (merge_smts_into): Change to take bitmap directly.
2047 (find_what_p_points_to): Rewrite to use shared bitmap hashtable.
2048 (init_alias_vars): Init shared bitmap hashtable.
2049 (delete_points_to_sets): Delete shared bitmap hashtable.
2050 * tree-ssa-operands.c (add_virtual_operand): Partially revert the
2051 is_aliased removal as a change that was still necessary was
2054 2007-03-09 Uros Bizjak <ubizjak@gmail.com>
2056 * config/i386/i386.h (override_options): Conditionally disable
2057 x86_sahf for 64bit targets only.
2059 2007-03-08 Andrew Pinski <andrew_pinski@playstation.sony.com>
2062 * c-decl.c (merge_decls): Don't call make_var_volatile.
2063 * varasm.c (make_var_volatile): Remove.
2064 * output.h (make_var_volatile): Remove.
2066 2007-03-08 Zdenek Dvorak <dvorakz@suse.cz>
2068 PR tree-optimization/31085
2069 * tree-ssa-address.c (create_mem_ref): Fix test of type of base.
2071 2007-03-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2073 * builtins.def (lceil, lceilf, lceill, lfloor, lfloorf, lfloorl,
2074 llceil, llceilf, llceill, llfloor, llfloorf, llfloorl): Mark with
2075 ATTR_CONST_NOTHROW_LIST.
2077 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
2080 2007-03-08 Diego Novillo <dnovillo@redhat.com>
2082 * doc/tree-ssa.texi: Remove documentation for V_MUST_DEF.
2084 2007-03-08 Geoffrey Keating <geoffk@apple.com>
2087 * gccspec.c (lang_specific_driver): Do nothing when NEXT_OBJC_RUNTIME
2089 * config/darwin.h (REAL_LIBGCC_SPEC): When -fgnu-runtime is
2090 passed, use shared libgcc.
2092 2007-03-08 Roger Sayle <roger@eyesopen.com>
2094 * tree-eh.c (do_return_redirection): Call build_gimple_modify_stmt
2095 instead of calling build2 with a GIMPLE_MODIFY_STMT.
2096 (honor_protect_cleanup_actions, lower_try_finally_switch):
2098 * tree-if-conv.c (replace_phi_with_cond_gimple_modify_stmt,
2099 ifc_temp_var): Likewise.
2100 * tree-inline.c (setup_one_parameter): Likewise.
2101 * tree-mudflap.c (mf_decl_cache_locals,
2102 mf_build_check_statement_for): Likewise.
2103 * tree-nested.c (init_tmp_var, save_tmp_var,
2104 finalize_nesting_tree_1): Likewise.
2105 * tree-outof-ssa.c (insert_copy_on_edge,
2106 insert_backedge_copies): Likewise.
2107 * tree-profile.c (tree_gen_edge_profiler,
2108 tree_gen_ic_profiler): Likewise.
2109 * tree-scalar-evolution.c (scev_const_prop): Likewise.
2110 * tree-sra.c (sra_build_assignment): Likewise.
2111 * tree-ssa-loop-im.c (determine_invariantness_stmt): Likewise.
2112 * tree-ssa-math-opts.c (insert_reciprocals,
2113 execute_cse_sincos_1): Likewise.
2114 * tree-tailcall.c (adjust_accumulator_values,
2115 adjust_return_value): Likewise.
2116 * tree-vect-patterns.c (vect_pattern_recog_1): Likewise.
2117 * tree-vect-transform.c (vect_create_data_ref_ptr,
2118 bump_vector_ptr, vect_init_vector, get_initial_def_for_induction,
2119 vect_create_epilog_for_reduction, vectorizable_reduction,
2120 vectorizable_call, vectorizable_conversion,
2121 vectorizable_assignment, vectorizable_operation,
2122 vectorizable_type_demotion, vect_gen_widened_results_half,
2123 vect_permute_store_chain, vectorizable_store,
2124 vect_setup_realignment, vect_permute_load_chain,
2125 vectorizable_load, vectorizable_condition,
2126 vect_create_cond_for_align_checks): Likewise.
2127 * tree-vrp.c (build_assert_expr_for): Likewise.
2129 2007-03-08 Ian Lance Taylor <iant@google.com>
2131 * tree-vrp.c: Include "intl.h".
2132 (usable_range_p): New static function.
2133 (compare_values_warnv): Don't test TYPE_OVERFLOW_UNDEFINED for
2134 overflowed values, juts set *strict_overflow_p.
2135 (compare_values): Only return -2 if one of the operands is not a
2137 (compare_ranges): Call usable_range_p.
2138 (compare_range_with_value): Likewise.
2139 (vrp_evaluate_conditional_warnv): Rename from
2140 vrp_evaluate_conditional. Make static. Change all callers.
2141 (vrp_evaluate_conditional): New function.
2142 (simplify_div_or_mod_using_ranges): Issue warning about reliance
2144 (simplify_abs_using_ranges): Likewise.
2145 (simplify_stmt_for_jump_threading): Add within_stmt parameter.
2146 * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Add
2147 within_stmt parameter.
2148 * tree-ssa-propagate.c (fold_predicate_in): Update call to
2149 vrp_evaluate_conditional.
2150 * tree-ssa-threadedge.c
2151 (record_temporary_equivalences_from_stmts_at_dest): Change
2152 simplify parameter to take a second tree parameter.
2153 (simplify_control_stmt_condition): Likewise.
2154 (thread_across_edge): Likewise.
2155 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
2156 (thread_across_edge): Likewise.
2157 * gcc/Makefile.in (tree-vrp.o): Depend upon intl.h.
2159 2007-03-08 Uros Bizjak <ubizjak@gmail.com>
2161 * config/i386/i386.h (TARGET_SAHF): New define.
2162 * config/i386/i386.c (ix86_tune_features) [X86_TUNE_USE_SAHF]:
2163 Also enable for m_K8, m_AMDFAM10 and m_CORE2.
2164 (x86_sahf): New global variable.
2165 (override_options): Add PTA_NO_SAHF to pta_flags enum. Recode
2166 pta_flags masks using shifts. Add PTA_NO_SAHF to x86_64 and
2167 nocona processor flags. Set x86_sahf when PTA_NO_SAHF is not set
2168 in processor flags. Do not unconditionally disable TARGET_USE_SAHF
2170 (ix86_fp_comparison_sahf_cost): Return high value for !TARGET_SAHF.
2171 (ix86_expand_fp_compare): Check for TARGET_CMOVE or TARGET_SAHF
2172 when expanding fcomi/sahf based tests.
2173 (ix86_emit_fp_unordered_jump): Check for TARGET_SAHF when
2174 expanding sahf based alternative. Emit sahf based sequence when
2175 optimizing for code size.
2176 * config/i386/i386.md (x86_sahf_1): Do not disable for
2177 TARGET_64BIT, enable for TARGET_SAHF.
2179 2007-03-08 Martin Michlmayr <tbm@cyrius.com>
2181 * tree-ssa-coalesce.c (fail_abnormal_edge_coalesce): Remove
2182 spurious whitespace from error message.
2184 2007-03-08 Volker Reichelt <reichelt@netcologne.de>
2187 * c-common.c (fold_offsetof_1): Handle COMPOUND_EXPR.
2189 2007-03-08 Alexandre Oliva <aoliva@redhat.com>
2191 * c-decl.c (grokdeclarator): Disable warnings for anonymous
2193 * tree-sra.c (instantiate_element): Propagate disabled warnings
2194 from the element itself to the created variable.
2196 2007-03-07 Richard Henderson <rth@redhat.com>
2199 * reg-stack.c (emit_swap_insn): If a malformed asm was seen,
2200 silently fix up the stack in the case of a missing register.
2202 2007-03-07 Paul Brook <paul@codesourcery.com>
2204 * config/arm/libunwind.S: Add .arch/.object_arch for armv4 builds.
2206 2007-03-07 Joseph Myers <joseph@codesourcery.com>
2208 * config/arm/unwind-arm.c (struct wmmxd_regs, struct wmmxc_regs):
2210 (phase1_vrs): Use them.
2211 (DEMAND_SAVE_WMMXD, DEMAND_SAVE_WMMXC): New.
2212 (__gnu_Unwind_Save_WMMXD, __gnu_Unwind_Restore_WMMXD,
2213 __gnu_Unwind_Save_WMMXC, __gnu_Unwind_Restore_WMMXC): Declare.
2214 (restore_non_core_regs): Call __gnu_Unwind_Restore_WMMXD and
2215 __gnu_Unwind_Restore_WMMXC if required.
2216 (_Unwind_VRS_Pop): Implement iWMMXt support.
2217 * config/arm/libunwind.S (gnu_Unwind_Restore_WMMXD,
2218 gnu_Unwind_Save_WMMXD, gnu_Unwind_Restore_WMMXC,
2219 gnu_Unwind_Save_WMMXC): Define.
2221 2007-03-07 Richard Sandiford <richard@codesourcery.com>
2223 * config/vxworks.h (vxworks_override_options): Declare.
2224 (VXWORKS_OVERRIDE_OPTIONS): Use it.
2225 * config/vxworks.c: Include target.h and toplev.h.
2226 (vxworks_override_options): New function.
2227 * config/t-vxworks (vxworks.o): Depend on $(TARGET_H) and toplev.h.
2229 2007-03-07 Andreas Krebbel <krebbel1@de.ibm.com>
2231 * config/s390/s390.c (override_options): Don't emit an error when
2232 -mstack-size is used without providing -mstack-guard.
2233 (s390_emit_prologue): Choose stack_guard value automatically if not
2234 provided via command line.
2235 * doc/invoke.texi: Adjust description of -mstack-guard and -mstack-size.
2237 2007-03-07 Richard Sandiford <richard@codesourcery.com>
2239 * config/i386/i386.c (output_set_got): Add a GOT initialization
2240 sequence for VxWorks PIC.
2241 (legitimate_pic_address_disp_p): Allow UNSPEC_GOT wrappers
2242 around labels as well as symbols. Use gotoff_operand instead
2243 of local_symbolic_operand.
2244 (legitimize_pic_address): Use gotoff_operand instead of
2245 local_symbolic_operand. Use @GOT accesses for labels as
2247 (ix86_output_addr_diff_elt): Use PC-relative rather than
2248 GP-relative offsets for VxWorks PIC.
2249 (ix86_expand_move): Pass NULL_RTX to legitimize_pic_address unless
2250 no_new_pseudos. Check whether the returned register is op0.
2251 * config/i386/i386.md (tablejump): Use PC-relative rather than
2252 GP-relative offsets for VxWorks PIC.
2253 * config/i386/predicates.md (gotoff_operand): New predicate.
2255 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2257 * config/vxworks.h (VXWORKS_GOTT_BASE, VXWORKS_GOTT_INDEX): Undefine
2259 * config/vxworks-dummy.h: New file.
2260 * config/i386/i386.h: Include it.
2262 2007-03-07 Alexandre Oliva <aoliva@redhat.com>
2264 * dwarf2out.c (is_inlined_entry_point): New
2265 (add_high_low_attributes): Emit DW_AT_entry_pc along with
2266 DW_AT_ranges if the first subblock is the entry point.
2268 2007-03-06 David Daney <ddaney@avtrex.com>
2270 * doc/install.texi (mips-*-*): Change recommended binutils
2273 2007-03-06 Anatoly Sokolov <aesok@post.ru>
2275 * config/avr/avr.c (avr_mcu_types): Add support for ATmega325P,
2276 ATmega3250P, ATmega329P, ATmega3290P, AT90USB82 and AT90USB162
2278 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
2279 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
2281 2007-03-06 Jan Hubicka <jh@suse.cz>
2283 * errors.h (warning, error, fatal, internal_error): Mark as cold.
2284 * predict.c (maybe_hot_bb): Cold functions are never hot; hot functions
2286 (probably_cold_bb_p): Cold functions are cold.
2287 (probably_never_executed_bb_p): Cold functions are cold.
2288 (tree_bb_level_predictions): Predict calls to cold functions as not
2290 (compute_function_frequency): Check hot/cold attributes.
2291 * function.h (function_frequency): Update comments.
2292 * predict.def (PRED_COLD_FUNCTION): Predict cold function.
2293 * c-common.c (handle_hot_attribute, handle_cold_attribute): New.
2294 (c_common_att): Add cold and hot.
2296 * doc/extend.texi (hot,cold attributes): Document.
2298 2007-03-06 Andrew Haley <aph@redhat.com>
2300 * function.c (expand_function_end): Move blockage to just after we
2301 emit the label for the naked return from the function.
2303 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2305 * config/i386/att.h (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Undefine
2308 2007-03-06 Jan Hubicka <jh@suse.cz>
2310 * reg-stack.c (reg_to_stack): Large models don't allow NAN to be
2311 loaded for constant large models. Non-large 64bit PIC can do.
2312 * i386.h (CASE_VECTOR_MODE): Large PIC cases are 64bit.
2313 * cmodel.h: Add LARGE PIC.
2314 * i386.md (UNSPEC_PLTOFF): New.
2315 (UNSPEC_SET_RIP, UNSPEC_SET_GOT_OFFSET): New; renumber other unspecs as
2317 (*call_1_rex64): Disable for large models.
2318 (*call_1_rex64_large): New.
2319 (*call_value_1_rex64): Disable for large models.
2320 (*call_value_1_rex64_large): New.
2321 (set_rip_rex4): New.
2322 (set_got_offset_rex64): New.
2323 * predicates.md (constant_call_address_operand): For large model
2324 constant calls are not possible.
2325 * i386-protos.h (construct_plt_address): Declare.
2326 * i386.c (override_options): Accept large models.
2327 (ix86_expand_prologue): Expand large PIC GOT pointer load.
2328 (legitimate_constant_p): Add new UNSPECs.
2329 (legitimate_pic_operand_p): Likewise.
2330 (legitimate_pic_address_disp_p): Disallow local symbols for large PICs.
2331 (legitimize_pic_address): Do easy RIP relative way for TLS only for
2333 (output_pic_addr_const): Add PLTOFF.
2334 (ix86_output_addr_diff_elt): Output 64bit tables when needed.
2335 (ix86_expand_move): Legitimize pic address when in PIC mode.
2336 (construct_plt_address): New function.
2337 (ix86_expand_call): Offload the address to register and use GOT pointer
2339 * invoke.texi (mcmodel=large): Update documentation.
2341 2007-03-06 Richard Henderson <rth@redhat.com>
2343 * config/i386/i386.c (x86_use_leave, x86_push_memory,
2344 x86_zero_extend_with_and, x86_movx, x86_double_with_add,
2345 x86_use_bit_test, x86_unroll_strlen, x86_deep_branch,
2346 x86_branch_hints, x86_use_sahf, x86_partial_reg_stall,
2347 x86_partial_flag_reg_stall, x86_use_himode_fiop, x86_use_simode_fiop,
2348 x86_use_mov0, x86_use_cltd, x86_read_modify_write, x86_read_modify,
2349 x86_split_long_moves, x86_promote_QImode, x86_fast_prefix,
2350 x86_single_stringop, x86_qimode_math, x86_promote_qi_regs,
2351 x86_himode_math, x86_promote_hi_regs, x86_sub_esp_4, x86_sub_esp_8,
2352 x86_add_esp_4, x86_add_esp_8, x86_integer_DFmode_moves,
2353 x86_partial_reg_dependency, x86_memory_mismatch_stall,
2354 x86_prologue_using_move, x86_epilogue_using_move, x86_shift1,
2355 x86_sse_partial_reg_dependency, x86_sse_split_regs,
2356 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2357 x86_sse_load0_by_pxor, x86_use_ffreep, x86_use_incdec,
2358 x86_inter_unit_moves, x86_ext_80387_constants, x86_four_jump_limit,
2359 x86_schedule, x86_use_bt, x86_pad_returns,
2360 x86_use_xchgb): Merge into ...
2361 (ix86_tune_features): ... here. New array.
2362 (x86_cmove, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2363 x86_bswap): Merge into ...
2364 (ix86_arch_features): ... here. New array.
2365 (x86_3dnow_a): Remove.
2366 (x86_accumulate_outgoing_args): Make static.
2367 (x86_arch_always_fancy_math_387): Make static.
2368 (ix86_tune_mask, ix86_arch_mask): Move ...
2369 (override_options): ... to local variables here. Apply the
2370 appropriate mask to each element of ix86_arch_features and
2371 ix86_tune_features. Adjust TARGET_CMOVE and TARGET_USE_SAHF
2372 as were done in the old macros.
2373 (standard_80387_constant_p): Use TARGET_EXT_80387_CONSTANTS.
2374 * config/i386/i386.h (x86_use_leave, x86_push_memory,
2375 x86_zero_extend_with_and, x86_use_bit_test, x86_cmove, x86_deep_branch,
2376 x86_branch_hints, x86_unroll_strlen, x86_double_with_add,
2377 x86_partial_reg_stall, x86_movx, x86_use_himode_fiop,
2378 x86_use_simode_fiop, x86_use_mov0, x86_use_cltd, x86_use_xchgb,
2379 x86_read_modify_write, x86_read_modify, x86_split_long_moves,
2380 x86_promote_QImode, x86_single_stringop, x86_fast_prefix,
2381 x86_himode_math, x86_qimode_math, x86_promote_qi_regs,
2382 x86_promote_hi_regs, x86_integer_DFmode_moves, x86_add_esp_4,
2383 x86_add_esp_8, x86_sub_esp_4, x86_sub_esp_8,
2384 x86_partial_reg_dependency, x86_memory_mismatch_stall,
2385 x86_accumulate_outgoing_args, x86_prologue_using_move,
2386 x86_epilogue_using_move, x86_decompose_lea,
2387 x86_arch_always_fancy_math_387, x86_shift1,
2388 x86_sse_partial_reg_dependency, x86_sse_split_regs,
2389 x86_sse_unaligned_move_optimal, x86_sse_typeless_stores,
2390 x86_sse_load0_by_pxor, x86_use_ffreep, x86_inter_unit_moves,
2391 x86_schedule, x86_use_bt, x86_cmpxchg, x86_cmpxchg8b, x86_xadd,
2392 x86_use_incdec, x86_pad_returns, x86_bswap,
2393 x86_partial_flag_reg_stall): Remove.
2394 (enum ix86_tune_indices): New.
2395 (ix86_tune_features): New.
2396 (TARGET_USE_LEAVE, TARGET_PUSH_MEMORY, TARGET_ZERO_EXTEND_WITH_AND,
2397 TARGET_USE_BIT_TEST, TARGET_UNROLL_STRLEN,
2398 TARGET_DEEP_BRANCH_PREDICTION, TARGET_BRANCH_PREDICTION_HINTS,
2399 TARGET_DOUBLE_WITH_ADD, TARGET_USE_SAHF, TARGET_MOVX,
2400 TARGET_PARTIAL_REG_STALL, TARGET_PARTIAL_FLAG_REG_STALL,
2401 TARGET_USE_HIMODE_FIOP, TARGET_USE_SIMODE_FIOP, TARGET_USE_MOV0,
2402 TARGET_USE_CLTD, TARGET_USE_XCHGB, TARGET_SPLIT_LONG_MOVES,
2403 TARGET_READ_MODIFY_WRITE, TARGET_READ_MODIFY, TARGET_PROMOTE_QImode,
2404 TARGET_FAST_PREFIX, TARGET_SINGLE_STRINGOP, TARGET_QIMODE_MATH,
2405 TARGET_HIMODE_MATH, TARGET_PROMOTE_QI_REGS, TARGET_PROMOTE_HI_REGS,
2406 TARGET_ADD_ESP_4, TARGET_ADD_ESP_8, TARGET_SUB_ESP_4,
2407 TARGET_SUB_ESP_8, TARGET_INTEGER_DFMODE_MOVES,
2408 TARGET_PARTIAL_REG_DEPENDENCY, TARGET_SSE_PARTIAL_REG_DEPENDENCY,
2409 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL, TARGET_SSE_SPLIT_REGS,
2410 TARGET_SSE_TYPELESS_STORES, TARGET_SSE_LOAD0_BY_PXOR,
2411 TARGET_MEMORY_MISMATCH_STALL, TARGET_PROLOGUE_USING_MOVE,
2412 TARGET_EPILOGUE_USING_MOVE, TARGET_SHIFT1, TARGET_USE_FFREEP,
2413 TARGET_INTER_UNIT_MOVES, TARGET_FOUR_JUMP_LIMIT, TARGET_SCHEDULE,
2414 TARGET_USE_BT, TARGET_USE_INCDEC, TARGET_PAD_RETURNS,
2415 TARGET_EXT_80387_CONSTANTS): Use it.
2416 (enum ix86_arch_indices): New.
2417 (ix86_arch_features): New.
2418 (TARGET_CMOVE, TARGET_CMPXCHG, TARGET_CMPXCHG8B, TARGET_XADD,
2419 TARGET_BSWAP): Use it.
2420 (ix86_tune_mask, ix86_arch_mask): Remove.
2422 2007-03-06 Joseph Myers <joseph@codesourcery.com>
2425 * configure.ac (CROSS_SYSTEM_HEADER_DIR, build_system_header_dir):
2426 Define using $${sysroot_headers_suffix}.
2427 * configure: Regenerate.
2428 * cppdefault.c (cpp_include_defaults): Make FIXED_INCLUDE_DIR a
2429 multilib-suffixed directory if SYSROOT_HEADERS_SUFFIX_SPEC
2431 * doc/invoke.texi (-print-sysroot-headers-suffix): Document.
2432 * gcc.c (print_sysroot_headers_suffix): New.
2433 (option_map): Include --print-sysroot-headers-suffix.
2434 (display_help): Mention -print-sysroot-headers-suffix.
2435 (process_command): Handle -print-sysroot-headers-suffix.
2436 (do_spec_1): Append multilib directory to include-fixed path if
2437 sysroot suffixes in use.
2438 (main): Handle -print-sysroot-headers-suffix.
2439 * Makefile.in (start.encap): Don't depend on xlimits.h
2440 (xlimits.h): Remove.
2441 (stmp-int-hdrs): Don't depend on xlimits.h. Inline generation of
2442 limits.h for each multilib in fixinc_list.
2443 (fixinc_list, s-fixinc_list): New.
2444 (stmp-fixinc): Depend on fixinc_list. If not copying headers,
2445 generate them for each multilib in fixinc_list.
2446 (stmp-fixproto): Use include-fixed. Run fixproto for each
2447 multilib in fixinc_list.
2448 (mostlyclean): Don't remove xlimits.h.
2449 (clean): Remove include-fixed.
2450 (real-install-headers-tar, real-install-headers-cpio,
2451 real-install-headers-cp): Don't copy include, only include-fixed.
2452 (install-mkheaders): Depend on fixinc_list. Don't depend on
2453 xlimits.h. Save limits.h files for each multilib in fixinc_list.
2454 Always save mkinstalldirs. Preserve ${sysroot_headers_suffix} in
2455 SYSTEM_HEADER_DIR setting in mkheaders.conf.
2457 2007-03-06 Jan Hubicka <jh@suse.cz>
2459 * regstack.c (reg_to_stack): When in 64bit PIC mode, we still can load
2462 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2464 * configure.ac: Allow tm_file to contain build-directory files.
2465 * configure: Regenerate.
2466 * config.gcc (m68k-*-uclinux*): Add ./sysroot-suffix.h to tm_file.
2467 * config/m68k/t-uclinux (sysroot-suffix.h): New target.
2468 * config/m68k/print-sysroot-suffix.sh: New file.
2470 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2472 * config/m68k/m68k.h (PIC_OFFSET_TABLE_REGNUM): Use the REGNO
2473 of pic_offset_table_rtx if reload_completed.
2474 (CONDITIONAL_REGISTER_USAGE): Use PIC_REG instead of
2475 PIC_OFFSET_TABLE_REGNUM.
2476 * config/m68k/m68k.c (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Always
2478 (m68k_save_reg): Use PIC_REG instead of PIC_OFFSET_TABLE_REGNO.
2479 (m68k_output_mi_thunk): Rewrite to use RTL. Honor vcall_offset.
2481 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2483 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2484 functions that call eh_return.
2486 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2488 * config/m68k/m68k.c (m68k_save_reg): Save the PIC register in
2489 functions that need a constant pool.
2491 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2494 * config/m68k/m68k-protos.h (m68k_secondary_reload_class): Declare.
2495 (m68k_preferred_reload_class): Likewise.
2496 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Remove duplicated comment.
2497 (SECONDARY_RELOAD_CLASS): Define.
2498 (PREFERRED_RELOAD_CLASS): Use m68k_preferred_reload_class.
2499 (LIMIT_RELOAD_CLASS): Delete.
2500 * config/m68k/m68k.c (m68k_regno_mode_ok): Don't prevent address
2501 registers from storing bytes.
2502 (m68k_secondary_reload_class): New function.
2503 (m68k_preferred_reload_class): Likewise.
2505 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2507 * config/m68k/m68k.c (m68k_save_reg): Remove special case for
2509 (m68k_expand_prologue): Likewise.
2511 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2513 * config/m68k/m68k-protos.h (output_sibcall): Declare.
2514 (mips_expand_epilogue): Add a bool parameter.
2515 (m68k_legitimize_sibcall_address): Declare.
2516 * config/m68k/m68k.c (TARGET_FUNCTION_OK_FOR_SIBCALL): Define.
2517 (m68k_expand_epilogue): Add a parameter to select between sibling
2518 and normal epilogues. Only generate a return for the latter.
2519 (m68k_ok_for_sibcall_p): New function.
2520 (m68k_legitimize_sibcall_address, output_sibcall): New functions.
2521 * config/m68k/m68k.md (sibcall, *sibcall): New patterns.
2522 (sibcall_value, *sibcall_value): Likewise.
2523 (*call, *call_value): Require !SIBLING_CALL_P.
2524 (epilogue): Update call to m68k_expand_epilogue.
2525 (sibcall_epilogue): New pattern.
2526 * config/m68k/predicates.md (const_call_operand): Say that this
2527 predicate applies to sibling calls too.
2528 (sibcall_operand): New predicate.
2530 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2532 * config/m68k/m68k.md (movsf_cf_soft): Provide the same non-mov3q
2533 alternatives as movsi_cf.
2534 (movsf_cf_hard): Add commentary.
2536 2007-03-06 Kazu Hirata <kazu@codesourcery.com>
2537 Richard Sandiford <richard@codesourcery.com>
2539 * config/m68k/m68k-protos.h (m68k_interrupt_function_p): Declare.
2540 (m68k_movem_pattern_p, m68k_output_movem): Likewise.
2541 (m68k_expand_prologue, m68k_expand_epilogue): Likewise.
2542 * config/m68k/m68k.h (EPILOGUE_USES): Define. Treat all registers
2543 as being live on exit from an interrupt function.
2544 (PRINT_OPERAND_PUNCT_VALID_P): Return true for '?'.
2545 * config/m68k/m68k.c (MIN_MOVEM_REGS, MIN_FMOVEM_REGS): New macros.
2546 (m68k_frame): Remove reg_rev_mask and fpu_rev_mask.
2547 (TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Delete.
2548 (m68k_interrupt_function_p): Globalize.
2549 (m68k_compute_frame_layout): Remove reverse mask code.
2550 (m68k_emit_movem, m68k_set_frame_related): New functions.
2551 (m68k_output_function_prologue): Delete in favor of...
2552 (m68k_expand_prologue): ...this new function.
2553 (m68k_output_function_epilogue): Delete in favor of...
2554 (m68k_expand_epilogue): ...this new function.
2555 (m68k_split_offset, m68k_movem_pattern_p, m68k_output_movem): New
2557 (print_operand): Handle %?.
2558 * config/m68k/m68k.md (UNSPEC_SIN, UNSPEC_COS): Remove excess space.
2559 (UNSPEC_GOT, A1_REG, PIC_REG, FP0_REG): New constants.
2560 (prologue, epilogue): New patterns.
2561 (return): Turn into a define_expand.
2562 (*return): New pattern, derived from old "return" pattern. Use rte
2563 rather than rts for interrupt functions. Only use rtd if the pop
2565 (*m68k_store_multiple, *m68k_store_multiple_automod): New patterns.
2566 (*m68k_load_multiple, *m68k_load_multiple_automod): Likewise.
2567 (link, *link, unlink, *unlink, load_got): Likewise.
2569 2007-03-06 Richard Sandiford <richard@codesourcery.com>
2573 * config/m68k/m68k-protos.h (m68k_legitimate_base_reg_p): Declare.
2574 (m68k_legitimate_index_reg_p, m68k_legitimate_address_p): Likewise.
2575 (m68k_matches_q_p, m68k_matches_u_p): Likewise.
2576 * config/m68k/m68k.h (EXTRA_CONSTRAINT): Use m68k_matches_q_p
2577 and m68k_matches_u_p.
2578 (PCREL_GENERAL_OPERAND_OK, LEGITIMATE_BASE_REG_P): Delete.
2579 (INDIRECTABLE_1_ADDRESS_P, GO_IF_NONINDEXED_ADDRESS): Delete.
2580 (GO_IF_INDEXABLE_BASE, GO_IF_INDEXING, GO_IF_INDEXED_ADDRESS): Delete.
2581 (LEGITIMATE_INDEX_REG_P, LEGITIMATE_INDEX_P): Delete.
2582 (GO_IF_COLDFIRE_FPU_LEGITIMATE_ADDRESS): Delete.
2583 (REG_STRICT_P): New macro.
2584 (LEGITIMATE_PIC_OPERAND_P): Use REG_STRICT_P rather than
2585 PCREL_GENERAL_OPERAND_OK.
2586 (REG_OK_FOR_BASE_P): Merge definitions. Use REG_STRICT_P and
2587 m68k_legitimate_base_reg_p.
2588 (REG_MODE_OK_FOR_INDEX_P): Likewise m68k_legitimate_index_reg_p.
2589 (GO_IF_LEGITIMATE_ADDRESS): Likewise m68k_legitimate_address_p.
2590 (PIC_CASE_VECTOR_ADDRESS): Update comment.
2591 * config/m68k/m68k.c (m68k_address): New structure.
2592 (m68k_legitimate_base_reg_p, m68k_legitimate_index_reg_p)
2593 (m68k_decompose_index, m68k_legitimate_constant_address_p)
2594 (m68k_jump_table_ref_p, m68k_decompose_address)
2595 (m68k_legitimate_address_p, m68k_legitimate_mem_p, m68k_matches_q_p)
2596 (m68k_matches_u_p): New functions.
2597 (print_operand_address): Rewrite to use m68k_decompose_index.
2599 2007-03-05 David Taylor <dtaylor@emc.com>
2601 * gcc.c: Correct copyright date in --version output.
2603 2007-03-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2605 * pa.md: In unamed move patterns, disparge copies between general
2606 and floating point registers using '?' modifier. Don't include 'f'
2607 constraint for register preferences in DImode, SImode, HImode and
2608 QImode patterns. Likewise for 'r' in DFmode and SFmode patterns.
2609 Remove constraints for copies between general and floating registers
2610 in soft-float DFmode pattern.
2611 (movdf): Fail if operand1 is a CONST_DOUBLE and operand0 is a hard
2615 2007-03-05 Mike Stump <mrs@apple.com>
2617 * c-common.c (targetcm): Add.
2618 * c-opts.c (c_common_handle_option): Handle language specific
2620 * opts.c (handle_option): Verify language for target options, if
2622 * opth-gen.awk: Add CL_LANG_ALL.
2623 * target-def.h (TARGET_HANDLE_C_OPTION): Add.
2624 (TARGETCM_INITIALIZER): Add.
2625 * target.h (struct gcc_targetcm): Add.
2627 * targhooks.c (default_handle_c_option): Add.
2628 * targhooks.h (default_handle_c_option): Add.
2629 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Add.
2631 * config/darwin.opt (iframework): Add.
2632 * config/darwin.h (TARGET_HAS_TARGETCM): Add.
2633 * config/darwin-c.c (handle_c_option): Add.
2634 (TARGET_HANDLE_C_OPTION): Add.
2636 * doc/invoke.texi (Darwin Options): Add -iframework.
2638 2007-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2640 * convert.c (convert_to_integer): Fix nearbyint/rint -> *lrint
2643 2007-03-05 Ian Lance Taylor <iant@google.com>
2645 * c.opt (fgnu89-inline): New option.
2646 * c-opts.c (c_common_post_options): Set default value for
2648 * c-decl.c (WANT_C99_INLINE_SEMANTICS): Remove.
2649 (pop_scope): Check flag_gnu89_inline rather than flag_isoc99 for
2651 (diagnose_mismatched_decls, merge_decls, start_decl): Likewise.
2652 (grokdeclarator, start_function): Likewise.
2653 * c-cppbuiltin.c (c_cpp_builtins): Define either
2654 __GNUC_GNU_INLINE__ or __GNUC_STDC_INLINE__.
2655 * doc/invoke.texi (Option Summary): Mention -fgnu89-inline.
2656 (C Dialect Options): Document -fgnu89-inline.
2657 * doc/extend.texi (Function Attributes): Explain what the
2658 gnu_inline attribute does.
2659 * doc/cpp.texi (Common Predefined Macros): Document
2660 __GNUC_GNU_INLINE__ and __GNUC_STDC_INLINE__.
2662 2007-03-05 Ian Lance Taylor <iant@google.com>
2664 PR tree-optimization/31034
2665 * tree-vrp.c (extract_range_from_assert): Don't try to handle a
2666 half-range if the other side is an overflow infinity.
2668 2007-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
2670 * config.gcc (bfin*-uclinux*): Use t-bfin-uclinux.
2671 (bfin*-linux-uclibc*): New configuration.
2672 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefined before
2674 * config/bfin/linux.h: New file.
2675 * config/bfin/libgcc-bfin.ver: New file.
2676 * config/bfin/t-bfin-uclinux: New file.
2677 * config/bfin/t-bfin-linux: New file.
2678 * config/bfin/uclinux.h (LINUX_TARGET_OS_CPP_BUILTINS): New macro.
2679 (TARGET_OS_CPP_BUILTINS): New macro.
2681 2007-03-05 Richard Guenther <rguenther@suse.de>
2683 * fold-const.c (fold_binary): Remove duplicate folding
2684 of comparison of non-null ADDR_EXPR against null.
2686 2007-03-05 Richard Guenther <rguenther@suse.de>
2687 Dorit Nuzman <dorit@il.ibm.com>
2689 PR tree-optimization/26420
2690 * tree-vectorizer.c (vectorize_loops): Bail out early if there
2691 are no loops in the function. Only print the number of
2692 vectorized loops if it is greater than zero or we are supposed
2693 to print information about unvectorized loops.
2695 2007-03-05 Revital Eres <eres@il.ibm.com>
2697 * gcc.dg/var-expand1.c: New test.
2698 * loop-unroll.c (analyze_insn_to_expand_var): Add dump info
2699 when an accumulator is expanded.
2701 2007-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2704 * c-common.c (convert_and_check): Don't give warnings for
2705 conversion if 'expr' already overflowed.
2707 2007-03-04 Roger Sayle <roger@eyesopen.com>
2710 * fold-const.c (fold_comparison): Enforce type consistency when
2711 transforming ~X op ~Y to Y op X, and ~X op C to X op' ~C.
2713 2007-03-04 Zdenek Dvorak <dvorakz@suse.cz>
2715 * tree-ssa-address.c (create_mem_ref): Do not put an expression
2716 containing a cast to the base of TARGET_MEM_REF.
2718 2007-03-04 Martin Michlmayr <tbm@cyrius.com>
2720 * tree.c (tree_contains_struct_check_failed): Remove spurious
2721 whitespace from error message.
2723 2007-03-04 Andrew Pinski <andrew_pinski@playstation.sony.com>
2726 * config/rs6000/rs6000.c (rs6000_function_value): Look at bit size
2727 instead of precision.
2729 2007-03-04 Roman Zippel <zippel@linux-m68k.org>
2730 Nathan Sidwell <nathan@codesourcery.com>
2732 * emit-rtl.c (find_auto_inc): New.
2733 (try_split): recreate REG_INC notes,
2734 Use regular for loops rather than whiles.
2736 2007-03-03 Andreas Schwab <schwab@suse.de>
2738 * configure.ac (HAVE_AS_REL16): Move test back to correct place.
2739 * configure: Regenerate.
2741 2007-03-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2743 * builtins.def (ATTR_MATHFN_FPROUNDING): Rely on
2744 flag_rounding_math, not flag_unsafe_math_optimizations.
2746 * c-pretty-print.c (pp_c_direct_abstract_declarator): Use
2748 * config/alpha/alpha.c (alpha_fold_builtin_zapnot,
2749 alpha_fold_vector_minmax): Likewise.
2750 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
2751 * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
2753 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
2755 * tree-sra.c (sra_walk_fns) <ldst>: Document new restriction.
2756 (sra_walk_modify_expr) <rhs_elt>: Treat the reference as a use
2757 if the lhs has side-effects.
2758 <lhs_elt>: Treat the reference as a use if the rhs has side-effects.
2760 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
2762 * config/i386/i386.h (TUNEMASK): Remove define.
2763 (ARCHMASK): Remove define.
2764 (TARGET_*): Use ix86_tune_mask variable instead of TUNEMASK.
2765 Use ix86_arch_mask variable instead of ARCHMASK.
2766 * config/i386/i386.c (override_options): Ditto.
2767 (standard_80387_constant_p): Ditto.
2769 2007-03-02 Ian Lance Taylor <iant@google.com>
2771 Used signed infinities in VRP.
2772 * tree-vrp.c (uses_overflow_infinity): New static function.
2773 (supports_overflow_infinity): New static function.
2774 (make_overflow_infinity): New static function.
2775 (negative_overflow_infinity): New static function.
2776 (positive_overflow_infinity): New static function.
2777 (is_negative_overflow_infinity): New static function.
2778 (is_positive_overflow_infinity): New static function.
2779 (is_overflow_infinity): New static function.
2780 (overflow_infinity_range_p): New static function.
2781 (compare_values_warnv): New function split out of compare_values.
2782 (compare_value): Call it.
2783 (set_value_range_to_nonnegative): Add overflow_infinity
2784 parameter. Change caller.
2785 (vrp_expr_computes_nonnegative): Add strict_overflow_p parameter.
2787 (vrp_expr_computes_nonzero): Likewise.
2788 (compare_ranges, compare_range_with_value): Likewise.
2789 (compare_name_with_value, compare_names): Likewise.
2790 (vrp_evaluate_conditional): Likewise.
2791 (set_value_range): Handle infinity
2792 (vrp_operand_equal_p, operand_less_p): Likewise.
2793 (extract_range_from_assert): Likewise.
2794 (vrp_int_const_binop): Likewise.
2795 (extract_range_from_binary_expr): Likewise.
2796 (extract_range_from_unary_expr): Likewise.
2797 (extract_range_from_comparison): Likewise.
2798 (extract_range_from_expr): Likewise.
2799 (dump_value_range): Likewise.
2800 (vrp_visit_cond_stmt, vrp_visit_phi_node): Likewise.
2801 (test_for_singularity): Likewise.
2802 (vrp_int_const_binop): Remove inline qualifier.
2803 (adjust_range_with_scev): Add comment.
2804 * tree-flow.h (vrp_evaluate_conditional): Update declaration.
2806 2007-03-02 Diego Novillo <dnovillo@redhat.com>
2808 * tree-ssa-structalias.c (could_have_pointers): Tidy.
2809 (get_constraint_for): Likewise.
2810 (do_structure_copy): Likewise.
2811 (find_func_aliases): Fix references to MODIFY_EXPR.
2812 (intra_create_variable_infos): Tidy.
2813 * tree-ssa-operands.c (add_virtual_operand): Add argument
2815 When adding members of alias sets, if IS_CALL_SITE is true and
2816 the symbol is not call-clobbered, skip it.
2819 2007-03-02 Eric Botcazou <ebotcazou@adacore.com>
2821 * config/alpha/alpha.c (alpha_gp_save_rtx): Insert the insns at the
2822 entry by means of emit_insn_at_entry.
2824 2007-03-02 Richard Henderson <rth@redhat.com>
2826 * expr.h (promoted_input_arg): Remove decl.
2827 * function.c (promoted_input_arg): Merge into ...
2828 * combine.c (setup_incoming_promotions): ... only caller.
2829 Rearrange to avoid double loop.
2831 2007-03-02 Ben Elliston <bje@au.ibm.com>
2832 Peter Bergner <bergner@vnet.ibm.com>
2833 Janis Johnson <janis187@us.ibm.com>
2835 * config/rs6000/dfp.md: New file.
2836 * config/rs6000/rs6000.md: Include dfp.md.
2837 (add<mode>3_internal1): Disable for DECIMAL_FLOAT_MODE_P operands.
2838 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Handle DDmode
2839 and TDmode decimal float modes in FP registers.
2840 (num_insns_constant): Likewise.
2841 (rs6000_legitimate_offset_address_p): Likewise.
2842 (rs6000_legitimize_address): Likewise.
2843 (rs6000_legitimize_reload_address): Likewise.
2844 (rs6000_legitimate_address): Likewise.
2845 (rs6000_emit_move): Likewise.
2846 (function_arg_boundary): Likewise.
2847 (function_arg_advance): Likewise.
2848 (rs6000_darwin64_record_arg_recurse): Likewise.
2849 (function_arg): Likewise.
2850 (rs6000_gimplify_va_arg): Likewise.
2851 (rs6000_split_multireg_move): Likewise.
2852 (rs6000_output_function_epilogue): Likewise.
2853 (rs6000_output_function_epilogue): Likewise.
2854 (rs6000_register_move_cost): Likewise.
2855 (rs6000_function_value): Likewise.
2856 (rs6000_libcall_value): Likewise.
2858 2007-03-02 Richard Sandiford <richard@codesourcery.com>
2860 * config/t-vxworks (LIMITS_H_TEST): Define to true for VxWorks.
2862 2007-03-02 Richard Sandiford <richard@codesourcery.com>
2864 * config/t-vxworks (LIBGCC2_INCLUDES): Pass -nostdinc.
2865 Use $MULTIDIR to choose between the kernel and RTP headers,
2866 and use $WIND_BASE and $WIND_USR to locate them.
2868 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
2870 * config/i386/i386.c (override_options): Put initialization of
2871 ix86_tune_mask and ix86_arch_mask to the correct place.
2873 2007-03-02 Uros Bizjak <ubizjak@gmail.com>
2874 Michael Meissner <michael.meissner@amd.com>
2877 * config/i386/i386.h (TUNEMASK): Redefine to use ix86_tune_mask.
2879 (TARGET_CMOVE): Use ARCHMASK.
2880 (TARGET_CMPXCHG): Ditto.
2881 (TARGET_CMPXCHG8B): Ditto.
2882 (TARGET_XADD): Ditto.
2883 (TARGET_BSWAP): Ditto.
2884 * config/i386/i386.c (ix86_tune_mask): New global variable.
2885 (ix86_arch_mask): Ditto.
2886 (override_options): Initialize ix86_tune_mask and
2887 ix86_arch_mask. Use ARCHMASK to clear MASK_NO_FANCY_MATH_387 in
2890 2007-03-02 Ben Elliston <bje@au.ibm.com>
2893 * config/dfp-bit.c (DFP_TO_INT): Initialise qval with "1.".
2895 2007-03-02 Joseph Myers <joseph@codesourcery.com>
2897 * target.h (init_dwarf_reg_sizes_extra): New target hook.
2898 * target-def.h (TARGET_INIT_DWARF_REG_SIZES_EXTRA): New default.
2899 * doc/tm.texi (TARGET_INIT_DWARF_REG_SIZES_EXTRA): Document.
2900 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Call this
2902 * config/rs6000/rs6000.c (TARGET_INIT_DWARF_REG_SIZES_EXTRA,
2903 rs6000_init_dwarf_reg_sizes_extra): New.
2904 * config/rs6000/linux-unwind.h (ppc_fallback_frame_state): Support
2905 SPE register high parts.
2907 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com>
2909 * Makefile.in: Add install-pdf target as
2910 copied from automake v1.10 rules.
2911 * configure.ac: Add install-pdf to target list.
2912 * configure: Regenerate.
2914 2007-03-01 Paul Brook <paul@codesourcery.com>
2916 * config/arm/arm.c (arm_legitimate_index_p): Limit iWMMXt addressing
2917 modes to LDRD for DImode.
2918 (output_move_double): Fixup out of range ldrd/strd.
2919 (vfp_secondary_reload_class): Rename...
2920 (coproc_secondary_reload_class): ... to this. Add wb argument.
2921 * config/arm/arm.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use
2922 coproc_secondary_reload_class for CLASS_IWMMXT.
2923 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
2924 * arm-protos.h (coproc_secondary_reload_class): Update prototype.
2926 2007-03-01 Zdenek Dvorak <dvorakz@suse.cz>
2928 * tree-ssa-loop-prefetch.c (determine_unroll_factor): Bound the unroll
2929 factor by the estimated number of iterations.
2930 (loop_prefetch_arrays): Do not prefetch in loops that iterate less than
2933 * config/i386/driver-i386.c (describe_cache, detect_caches_amd,
2934 decode_caches_intel, detect_caches_intel): New functions.
2935 (host_detect_local_cpu): Use detect_caches_amd and
2936 detect_caches_intel.
2938 2007-03-01 Richard Henderson <rth@redhat.com>
2940 * expr.c (emit_move_complex_push): Export.
2941 (emit_move_complex_parts): Split out from ...
2942 (emit_move_complex): ... here.
2943 * expr.h (emit_move_complex_push, emit_move_complex_parts): Declare.
2944 * config/i386/i386.md (movcdi): New.
2946 2007-03-01 Uros Bizjak <ubizjak@gmail.com>
2948 * config/i386/i386.c (ix86_modes_tieable_p): Fix typo, use also
2949 size of mode1 to check for tieable modes in MMX case.
2951 2007-03-01 Richard Sandiford <richard@codesourcery.com>
2953 * Makefile.in (rtlanal.o): Depend on tree.h.
2954 * rtl.h (offset_within_section_p, split_const): Declare.
2955 * rtlanal.c: Include tree.h.
2956 (offset_within_block_p): New function, taken from
2957 mips_offset_within_object_p.
2958 (split_const): New function, taken from mips_split_const.
2959 * config/m68k/m68k-protos.h (m68k_illegitimate_symbolic_constant_p):
2961 * config/m68k/m68k.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): Define.
2962 (CONSTANT_ADDRESS_P): Only accept legitimate constants.
2963 (LEGITIMATE_CONSTANT_P): Check m68k_illegitimate_symbolic_constant_p.
2964 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2965 (m68k_illegitimate_symbolic_constant_p): New function.
2966 * config/m68k/m68k.md (movsi): Remove misleading predicates.
2967 If M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P and the source is a
2968 symbolic constant that might be outside the symbol's section,
2969 move the symbol first and then add the offset.
2970 * config/m68k/uclinux.h (M68K_OFFSETS_MUST_BE_WITHIN_SECTIONS_P):
2972 * config/mips/mips.c (mips_split_const): Delete.
2973 (mips_offset_within_object_p): Delete.
2974 (mips_symbolic_constant_p): Use offset_within_section_p and
2975 split_const instead of mips_offset_within_object_p and
2977 (mips_cannot_force_const_mem, mips_const_insns, mips_unspec_address)
2978 (mips_legitimize_const_move, print_operand_reloc)
2979 (mips_dangerous_for_la25_p): Use split_const instead of
2982 2007-02-28 Eric Christopher <echristo@apple.com>
2984 * Makefile.in (install-include-dir): Don't rm -rf include.
2986 2007-02-28 Richard Guenther <rguenther@suse.de>
2989 * fold-const.c (fold_binary): Do not associate expressions
2990 with more than one variable for integer types that do not wrap.
2992 2007-02-28 Sandra Loosemore <sandra@codesourcery.com>
2994 * builtins.c (fold_builtin_call_list, fold_builtin_call_valist):
2995 Delete, and replace with...
2996 (fold_builtin_call_array): This. Update callers to use it.
2997 * fold-const.c (fold_build_call_list): Delete, and replace with...
2998 (fold_build_call_array): This.
2999 (fold_build_call_list_initializer): Delete, and replace with...
3000 (fold_build_call_array_initializer): This.
3001 * tree.h: Update declarations to reflect above changes.
3003 * c-typeck.c (build_function_call): Store converted arguments
3004 in a stack-allocated array instead of building a list.
3005 (convert_arguments): Store arguments in the array passed in as an
3006 argument, and return the actual number of arguments.
3007 * c-format.c: (check_function_format): Pass arguments in an
3008 array instead of a list.
3009 * c-common.c (check_function_nonnull): Likewise.
3010 (check_function_sentinel): Likewise.
3011 (check_function_arguments): Likewise.
3012 * c-common.h: Update declarations to reflect above changes.
3014 2007-02-28 Jan Hubicka <jh@suse.cz>
3016 * predict.def (PRED_TREE_EARLY_RETURN, PRED_CONST_RETURN,
3017 PRED_NEGATIVE_RETURN): Update outcomes.
3019 2007-02-28 Bernd Schmidt <bernd.schmidt@analog.com>
3021 * calls.c (emit_library_call_value_1): Handle partial registers
3022 correctly when building up CALL_INSN_FUNCTION_USAGE.
3024 2007-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3026 * pa/predicates.md (move_src_operand): Allow zero for mode.
3027 * pa/pa.md: Fix constraints for zero CONST_DOUBLE in 64-bit DFmode
3030 2007-02-27 Uros Bizjak <ubizjak@gmail.com>
3033 * config/i386/sse.md (*mov<mode>_internal, *movv4sf_internal,
3034 *movv2df_internal): Enable pattern only for valid operand
3036 * config/i386/i386.c (ix86_modes_tieable_p): For SSE registers,
3037 tie only 128bit modes. For MMX registers, tie only 64bit modes.
3039 2007-02-27 Mike Stump <mrs@apple.com>
3041 * config/darwin-crt3.c: Avoid compilation when compiling for a
3044 2007-02-27 Joseph Myers <joseph@codesourcery.com>
3046 * Makefile.in (PREPROCESSOR_DEFINES, test-protoize-simple): Define
3048 (stmp-int-hdrs, stmp-fixinc, install-headers): Use include-fixed
3049 for fixed headers and limits.h.
3050 (install-include-dir, install-headers-tar, install-headers-cpio,
3051 install-headers-cp, real-install-headers-tar,
3052 real-install-headers-cpio, real-install-headers-cp): Handle
3053 include-fixed as well as include.
3054 (install-mkheaders): Don't install files that go only in include
3056 * cppdefault.c (cpp_include_defaults): Separate FIXED_INCLUDE_DIR
3057 from GCC_INCLUDE_DIR.
3058 * gcc.c (process_command): Remove special -BstageN/ handling.
3059 (do_spec_1): Add include-fixed directories.
3061 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3063 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add _umulsi3_highpart and
3065 * config/bfin/lib1funcs.asm (___umulsi3_highpart, ___smulsi3_highpart):
3067 * config/bfin/bfin.md (smulsi3_highpart, umulsi3_highpart): New
3070 2007-02-27 Mark Mitchell <mark@codesourcery.com>
3072 * c-common.c (get_priority): Add check for
3073 SUPPORTS_INIT_PRIORITY.
3075 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3077 * config/bfin/bfin.md (doloop_end): FAIL if counter reg isn't SImode.
3079 * config/bfin/bfin.c: Include "cfglayout.h".
3080 (MAX_LSETUP_DISTANCE): New macro.
3081 (struct loop_info): New members incoming, incoming_src and
3082 incoming_dest. Delete member predecessor.
3083 (length_for_loop): New function.
3084 (bfin_optimize_loop): Handle more different loop structures.
3085 (bfin_discover_loop): Rework detection of predecessor blocks by
3086 examining incoming edges.
3087 (bfin_discover_loops, bfin_free_loops): New functions, broken out of
3089 (bfin_reorder_loops): New function.
3090 (bfin_reorg_loops): Use these three new functions.
3092 * config/bfin/bfin.h (enum reg_class, REG_CLASS_NAMES,
3093 REG_CLASS_CONTENTS): Add D0REGS through D7REGS.
3094 (CONSTRAINT_LEN): Add entry for 'q'.
3095 (REG_CLASS_FROM_CONSTRAINT): Renamed from REG_CLASS_FROM_LETTER.
3096 Add 'q' constraints.
3097 (REGNO_REG_CLASS): For R0 through R7, return corresponding regclass.
3098 (CLASS_LIKELY_SPILLED_P): True for R0, R1 and R2.
3100 * config/bfin/bfin.md (add_with_carry): New pattern.
3101 (s_or_u, su_optab, su_modifier): New code macros/attrs.
3102 (<su_optab>hisi_ll, <su_optab>hisi_lh, <su_optab>hisi_hl,
3103 <su_optab>hisi_hh): Renamed from mulhisi_xx patterns; macroized to
3104 support unsigned multiplies too. Removed incorrect commutativity from
3105 operand 1 constraint where appropriate.
3106 (usmulhisi_ull, usmulhisi_ulh, usmulhisi_uhl, usmulhisi_uhh): New
3108 (<su_optab>hisi_ll_lh, <su_optab>hisi_ll_hl, <su_optab>hisi_ll_hh,
3109 <su_optab>hisi_lh_hl, <su_optab>hisi_lh_hh, <su_optab>hisi_hl_hh):
3111 (usmulhisi_ll_lul, usmulhisi_ll_luh, usmulhisi_ll_hul,
3112 usmulhisi_ll_huh, usmulhisi_lh_lul, usmulhisi_lh_luh, usmulhisi_lh_hul,
3113 usmulhisi_lh_huh, usmulhisi_hl_lul, usmulhisi_hl_luh, usmulhisi_hl_hul,
3114 usmulhisi_hl_huh, usmulhisi_hh_lul, usmulhisi_hh_luh, usmulhisi_hh_hul,
3115 usmulhisi_hh_huh): New patterns.
3117 * config/bfin/bfin.md (ssashiftv2hi3, ssashifthi3, lshiftv2hi3,
3118 lshifthi3): Fix output template to use half reg for operand 2.
3120 * config/bfin/bfin.c (bfin_output_mi_thunk): Use R3 as scratch reg
3123 * config/bfin/bfin.md (rotl16, rotlsi3, rotrsi3): New patterns.
3125 2007-02-27 Andreas Schwab <schwab@suse.de>
3127 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-common.texi.
3129 2007-02-27 Jan Hubicka <jh@suse.cz>
3131 * predict.c (last_basic_block_p): Remove.
3132 (tree_estimate_probability): Update return heuristic for commonized
3135 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
3137 * Makefile.in (TEXI_GCCINSTALL_FILES): Add gcc-vers.texi dependency.
3139 2007-02-26 Brooks Moses <brooks.moses@codesourcery.com>
3141 * doc/include/gcc-common.texi (versionsubtitle): New macro.
3142 * doc/cpp.texi: Standardize title page.
3143 * doc/cppinternals.texi: Likewise.
3144 * doc/gcc.texi: Standardize title page, remove version number
3145 from copyright page.
3146 * doc/gccint.texi: Likewise.
3147 * doc/install.texi: Standardize title page, add table of
3150 2007-02-26 Jan Hubicka <jh@suse.cz>
3152 * predict.def: Set outcomes according to more recent results.
3153 (PRED_LOOP_CONDITION, PRED_LOOP_PRECONDITIONING, PRED_LOOP_HEADER):
3154 Remove dead predictors.
3155 * predict.c (return_prediction): Fix pasto.
3157 2007-02-27 Bernd Schmidt <bernd.schmidt@analog.com>
3159 * loop-iv.c (simplify_using_initial_values): Fix oversight in previous
3160 change; avoid a memory leak when returning early.
3162 2007-02-26 Mark Mitchell <mark@codesourcery.com>
3164 * c-decl.c (static_ctors): Move to c-common.c.
3165 (static_dtors): Likewise.
3166 (finish_function): Use c_record_cdtor_fn.
3167 (build_cdtor): Move to c-common.c.
3168 (c_write_global_declarations): Use c_build_cdtor_fns.
3169 * c-common.h (static_ctors): Declare.
3170 (static_dtors): Likewise.
3171 (c_record_cdtor_fn): Likewise.
3172 (c_build_cdtor_fns): Likewise.
3173 * c-common.c (static_ctors): New variable.
3174 (static_dtors): Likewise.
3175 (c_record_cdtor_fn): New function.
3176 (build_cdtor): Move from c-decl.c
3177 (c_build_cdtor_fns): New function.
3179 * output.h (assemble_addr_to_section): Declare.
3180 (get_cdtor_priority_section): Likewise.
3181 * varasm.c (assemble_addr_to_section): New function.
3182 (get_cdtor_priority_section): Likewise.
3183 (default_named_section_asm_out_destructor): Use them.
3184 (destor_dtor_section_asm_out_destructor): Likewise.
3185 (default_named_section_asm_out_constructor): Likewise.
3186 (default_ctor_section_asm_out_constructor): Likewise.
3187 * config.gcc (*-*-vxworks*): Include vxworks.o.
3188 * config/t-vxworks (vxworks.o): New target.
3189 * config/vxworks.h (ALWAYS_NUMBER_CTORS_SECTIONS): Remove.
3190 (TARGET_ASM_CONSTRUCTOR): Define.
3191 (TARGET_ASM_DESTRUCTOR): Likewise.
3192 (vxworks_asm_out_constructor): Declare.
3193 (vxworks_asm_out_destructor): Likewise.
3195 * c-common.c (get_priority): Check that we have not just an
3196 INTEGER_CST, but an integer constant with integeral type.
3198 2007-02-25 Uros Bizjak <ubizjak@gmail.com>
3200 PR tree-optimization/30938
3201 * tree-vect-transform.c (vectorizable_call): Fix off-by-one error:
3202 use &dt[nargs-1] instead of &dt[nargs] in the call to
3203 vect_is_simple_use().
3205 2007-02-25 Ulrich Weigand <uweigand@de.ibm.com>
3207 * reload.c (find_reloads_address_1): Handle PLUS expressions resulting
3208 from register elimination as PRE_MODIFY / POST_MODIFY increments.
3209 Do not attempt to handle MEM inside auto-inc expressions.
3210 * reload1.c (eliminate_regs_1): Do not attempt to handle elimination
3211 of a register modified by an auto-inc expression. However, do handle
3212 elimination of a register used as PRE_MODIFY / POST_MODIFY increment.
3213 (elimination_effects): Prohibit elimination of a register modified
3214 by an auto-inc expression. Disable register elimination rules whose
3215 target register is modified by an auto-inc expression with variable
3218 2007-02-25 Zdenek Dvorak <dvorakz@suse.cz>
3220 * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): Fix
3222 (array_at_struct_end_p): New function.
3223 (idx_infer_loop_bounds): Use it.
3224 (estimate_numbers_of_iterations_loop): Export.
3225 * predict.c (predict_loops): Use estimated_loop_iterations_int.
3226 Do not use PRED_LOOP_EXIT on exits predicted by # of iterations.
3227 (tree_estimate_probability): Call record_loop_exits.
3228 * tree-data-ref.c (get_number_of_iters_for_loop): Replaced by ...
3229 (estimated_loop_iterations, estimated_loop_iterations_int,
3230 estimated_loop_iterations_tree): New functions.
3231 (analyze_siv_subscript_cst_affine,
3232 compute_overlap_steps_for_affine_1_2,
3233 analyze_subscript_affine_affine): Use estimated_loop_iterations_int.
3234 (analyze_miv_subscript): Use estimated_loop_iterations_tree.
3235 * predict.def (PRED_LOOP_ITERATIONS): Update comment.
3236 (PRED_LOOP_ITERATIONS_GUESSED): New.
3237 * cfgloop.c (record_loop_exits): Do nothing if there are no loops.
3238 * cfgloop.h (estimate_numbers_of_iterations_loop,
3239 estimated_loop_iterations_int): Declare.
3241 2007-02-25 Mark Mitchell <mark@codesourcery.com>
3243 * doc/extend.texi: Document optional priority argument to
3244 constructors and destructors.
3245 * tree.c (init_priority_for_decl): Adjust GTY markers.
3246 (init_ttree): Use priority-info hash functions for
3247 init_priority_for_decl.
3248 (tree_map_eq): Rename to ...
3249 (tree_map_base_eq): ... this.
3250 (tree_map_marked_p): Rename to ...
3251 (tree_map_base_marked_p): ... this.
3252 (tree_map_base_hash): New function.
3253 (decl_init_priority_lookup): Rework.
3254 (decl_fini_priority_lookup): New function.
3255 (decl_priority_info): New function.
3256 (decl_init_priority_insert): Use it.
3257 (decl_fini_priority_insert): Likewise.
3258 (decl_restrict_base_lookup): Adjust for refactoring of tree_map
3260 (decl_restrict_base_insert): Likewise.
3261 (decl_debug_expr_insert): Likewise.
3262 (decl_value_expr_lookup): Likewise.
3263 (decl_value_expr_insert): Likewise.
3264 * tree.h (priority_type): New type.
3265 (decl_init_priority_lookup): Use priority_type.
3266 (decl_fini_priority_lookup): New function.
3267 (decl_init_priority_insert): Use priority_type.
3268 (decl_fini_priority_insert): New function.
3269 (DECL_HAS_INIT_PRIORITY): Tweak comments.
3270 (DECL_INIT_PRIORITY): Likewise.
3271 (SET_DECL_INIT_PRIORITY): Add comment.
3272 (DECL_FINI_PRIORITY): New macro.
3273 (SET_DECL_FINI_PRIORITY): Likewise.
3274 (DEFAULT_INIT_PRIORITY): Document.
3275 (MAX_INIT_PRIORITY): Likewise.
3276 (MAX_RESERVED_INIT_PRIORITY): Likewise.
3277 (tree_map_base): New type.
3278 (tree_map_base_eq): New function.
3279 (tree_map_base_hash): Likewise.
3280 (tree_map_base_marked_p): Likewise.
3281 (tree_map): Inherit from tree_map_base.
3282 (tree_map_eq): Make it a macro.
3283 (tree_map_marked_p): Likewise.
3284 (tree_int_map): Inherit from tree_map_base.
3285 (tree_int_map_eq): Make it a macro.
3286 (tree_int_map_hash): Likewise.
3287 (tree_int_map_marked_p): Likewise.
3288 (tree_priority_map): New type.
3289 (tree_priority_map_eq): New macro.
3290 (tree_priority_map_hash): Likewise.
3291 (tree_priority_map_marked_p): Likewise.
3292 * varasm.c (emults_decl): Adjust for refactoring of tree_map
3294 (emutls_common_1): Likewise.
3295 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
3296 * tree-ssa-structalias.c (heapvar_lookup): Adjust for refactoring
3297 of tree_map hierarchy.
3298 * tree-cfg.c (move_stmt_r): Likewise.
3299 (new_label_mapper): Likewise.
3300 * c-tree.h (c_expand_body): Move to ...
3301 * c-common.h (c_expand_body): ... here.
3302 * c-decl.c (c_expand_body): Move to ...
3303 * c-common.c (c_expand_body): ... here.
3304 (c_common_attribute_table): Allow 1 argument for the constructor
3305 and destructor attributes.
3306 (get_priority): New function.
3307 (handle_constructor_attribute): Set DECL_INIT_PRIORITY.
3308 (handle_destructor_attribute): Set DECL_FINI_PRIORITY.
3310 2007-02-24 Jan Hubicka <jh@suse.cz>
3313 * tree-inline.c (copy_bb): Produce exact copy of EH info when copying for inlining.
3315 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
3316 Jan Hubicka <jh@suse.cz>
3319 * i386.c (counter_mode): New function.
3320 (expand_set_or_movmem_via_loop): Use it.
3321 (expand_movmem_epilogue): Likewise; fix pasto.
3322 (ix86_expand_movmem): Do emit guard even for constant counts.
3323 (ix86_expand_setmem): Likewise.
3325 2007-02-25 Nick Clifton <nickc@redhat.com>
3327 * config/frv/frv.h (ASM_OUTPUT_CASE_LABEL): Delete.
3328 (JUMP_TABLES_IN_TEXT_SECTION): Define.
3330 2007-02-24 Uros Bizjak <ubizjak@gmail.com>
3333 * config/i386/i386.md (expand_movmem_epilogue): Fix typo, mask
3334 count argument with 0x10, not with 0x16.
3335 (expand_setmem_epilogue): Ditto.
3337 2007-02-24 Mike Stump <mrs@apple.com>
3339 * config/i386/i386.c (output_pic_addr_const): Stubify optimized
3342 2007-02-24 Richard Guenther <rguenther@suse.de>
3345 * fold-const.c (fold_binary): Fold x +- CST op x for
3346 EQ_EXPR and NE_EXPR.
3348 2007-02-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3350 * pa.md (muldi3): Force subregs to registers in 64-bit expander.
3352 2007-02-24 Jan Hubicka <jh@suse.cz>
3354 * cgraphunit.c (decide_is_function_needed): Honor
3355 -fkeep-inline-functions.
3357 2007-02-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3359 * builtins.c (fold_builtin_modf): New.
3360 (fold_builtin_2): Use it.
3362 2007-02-24 Bernd Schmidt <bernd.schmidt@analog.com>
3364 * loop-iv.c (implies_p): Detect additional cases where A implies B.
3365 (determine_max_iter): Take additional LOOP arg; all callers changed.
3366 Lose broken logic dealing with PLUS. Try to limit the upper bound by
3367 one using simplifications.
3368 (simplify_using_initial_values): Return if the expression becomes
3369 invalid due to altered regs.
3371 2007-02-23 DJ Delorie <dj@redhat.com>
3373 * doc/tm.h (BIGGEST_ALIGNMENT): Clarify the purpose of this macro.
3375 2007-02-23 Mike Stump <mrs@apple.com>
3377 * tlink.c (scan_linker_output): Parse linker messages from
3378 darwin9's linker better.
3380 2007-02-23 Steve Ellcey <sje@cup.hp.com>
3383 * varpool.c (varpool_assemble_pending_decls): Set
3384 varpool_last_needed_node to null.
3386 2007-02-23 DJ Delorie <dj@redhat.com>
3388 * config/i386/i386.c (ix86_data_alignment): Don't specify an
3389 alignment bigger than the object file can handle.
3391 2007-02-23 Uros Bizjak <ubizjak@gmail.com>
3394 * config/i386/i386.md (*movdi_1_rex64, zero_extendsidi2_32,
3395 zero_extendsidi2_rex64): Penalize MMX register<->memory moves.
3396 (*movsf_1): Penalize MMX moves.
3398 2007-02-23 Bernd Schmidt <bernd.schmidt@analog.com>
3400 * config/bfin/bfin.md (doloop_end): Fail for loops that can iterate
3401 2^32-1 or more times unless flag_unsafe_loop_optimizations.
3403 * loop-iv.c (determine_max_iter): Moved in front of its sole user.
3405 2007-02-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3407 * builtins.c (fold_builtin_logb, fold_builtin_significand): New.
3408 (fold_builtin_1): Use them.
3409 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle
3410 BUILT_IN_SIGNIFICAND.
3412 2007-02-23 H.J. Lu <hongjiu.lu@intel.com>
3414 * config/i386/i386.c (bdesc_1arg): Initialize
3415 IX86_BUILTIN_MOVSHDUP and IX86_BUILTIN_MOVSLDUP with
3416 "__builtin_ia32_movshdup" and "__builtin_ia32_movsldup".
3417 (ix86_init_mmx_sse_builtins): Remove IX86_BUILTIN_MOVSHDUP
3418 and IX86_BUILTIN_MOVSLDUP.
3420 2007-02-22 Paolo Bonzini <bonzini@gnu.org>
3422 PR rtl-optimization/30841
3423 * fwprop.c (propagate_rtx_1): Accept a VOIDmode replacement address.
3425 2007-02-22 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3427 * builtins.c (fold_builtin_frexp): New.
3428 (fold_builtin_2): Use it.
3430 2007-02-22 Mark Mitchell <mark@codesourcery.com>
3432 * doc/invoke.texi (Spec Files): Document getenv spec function.
3434 * gcc.c (getenv_spec_function): New function.
3435 (static_spec_functions): Add it.
3436 * config/vxworks.h (VXWORKS_TARGET_DIR): Remove.
3437 (VXWORKS_ADDITIONAL_CPP_SPEC): Use getenv to find the VxWorks
3440 2007-02-22 Michael Matz <matz@suse.de
3443 * dwarf2out.c (add_AT_string): Call ggc_strdup once per string.
3444 (type_tag): Use lang_hooks.dwarf_name instead of DECL_NAME.
3446 2007-02-22 Ian Lance Taylor <iant@google.com>
3449 * dwarf2out.c (concatn_mem_loc_descriptor): New static function.
3450 (mem_loc_descriptor): Call it.
3452 2007-02-22 Zdenek Dvorak <dvorakz@suse.cz>
3453 Ira Rosen <irar@il.ibm.com>
3455 * tree-data-ref.c (ptr_ptr_may_alias_p): Take alias sets into account.
3457 2007-02-22 Ira Rosen <irar@il.ibm.com>
3459 PR tree-optimization/30843
3460 * tree-vect-transform.c (vect_transform_loop): Remove strided scalar
3461 stores only after all the group is vectorized.
3463 2007-02-22 Dorit Nuzman <dorit@il.ibm.com>
3465 PR tree-optimization/30858
3466 * tree-vectorizer.c (vect_is_simple_reduction): Check that the stmts
3467 in the reduction cycle have a single use in the loop.
3468 * tree-vectorizer.h (relevant): Add documentation.
3470 2007-02-20 Mike Stump <mrs@apple.com>
3472 * configure.ac (powerpc*-*-darwin*): #include <sys/cdefs.h>.
3473 * configure: Regenerate.
3475 2007-02-21 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
3477 Change the defaults of some parameters and options.
3478 * config/spu/spu-protos.h (spu_optimization_options): Declare.
3479 * config/spu/spu.c (spu_optimization_options): Add.
3480 (spu_override_options): Change params in spu_optimization_options.
3481 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Define.
3483 Register 127 is only 16 byte aligned when used as a frame pointer.
3484 * config/spu/spu-protos.h (spu_init_expanders): Declare.
3485 * config/spu/spu.c (spu_expand_prologue): Set REGNO_POINTER_ALIGN for
3486 HARD_FRAME_POINTER_REGNUM.
3487 (spu_legitimate_address): Use regno_aligned_for_reload.
3488 (regno_aligned_for_load): HARD_FRAME_POINTER_REGNUM is only 16 byte
3489 aligned when frame_pointer_needed is true.
3490 (spu_init_expanders): New. Set alignment of HARD_FRAME_POINTER_REGNUM
3492 * config/spu/spu.h (INIT_EXPANDERS): Define.
3494 Make sure shift and rotate instructions have valid immediate operands.
3495 * config/spu/predicates.md (spu_shift_operand): Remove.
3496 * config/spu/spu.c (print_operand): Add [efghEFGH] modifiers.
3497 * config/spu/constraints.md (W, O): Extend range.
3498 * config/spu/spu.md (umask, nmask): Define.
3499 (ashl<mode>3, ashldi3, ashlti3_imm, shlqbybi_ti, shlqbi_ti, shlqby_ti,
3500 lshr<mode>3, rotm_<mode>, lshr<mode>3_imm, rotqmbybi_<mode>,
3501 rotqmbi_<mode>, rotqmby_<mode>, ashr<mode>3, rotma_<mode>,
3502 rotl<mode>3, rotlti3, rotqbybi_ti, rotqby_ti, rotqbi_ti): Use
3503 spu_nonmem_operand instead of spu_shift_operands. Use new modifiers.
3504 (lshr<mode>3_reg): Fix rtl description.
3506 Make sure mulhisi immediate operands are valid.
3507 * config/spu/predicates.md (imm_K_operand): Add.
3508 * config/spu/spu.md (mulhisi3_imm, umulhisi3_imm): Use imm_K_operand.
3510 Generate constants using fsmbi and andi.
3511 * config/spu/spu.c (enum immediate_class): Add IC_FSMBI2.
3512 (print_operand, spu_split_immediate, classify_immediate,
3513 fsmbi_const_p): Handle IC_FSMBI2.
3515 Correctly handle a CONST_VECTOR containing symbols.
3516 * config/spu/spu.c (print_operand): Handle HIGH correctly.
3517 (spu_split_immediate): Split CONST_VECTORs with -mlarge-mem.
3518 (immediate_load_p): Allow symbols that use 2 instructions to create.
3519 (classify_immediate, spu_builtin_splats): Don't accept a CONST_VECTOR
3520 with symbols when flag_pic is set.
3521 (const_vector_immediate_p): New.
3522 (logical_immediate_p, iohl_immediate_p, arith_immediate_p): Don't
3523 accept a CONST_VECTOR with symbols.
3524 (spu_legitimate_constant_p): Use const_vector_immediate_p. Don't
3525 accept a CONST_VECTOR with symbols when flag_pic is set. Handle HIGH
3527 * config/spu/spu.md (high, low): Delete.
3528 (low_<mode>): Define.
3530 Remove INTRmode and INTR_REGNUM, which didn't work.
3531 * config/spu/spu.c (spu_conditional_register_usage): Remove reference
3533 * config/spu/spu-builtins.md (spu_idisable, spu_ienable, set_intr,
3534 set_intr_pic, set_intr_cc, set_intr_cc_pic, set_intr_return, unnamed
3535 peephole2 pattern): Don't use INTR or 131.
3536 (movintrcc): Delete.
3537 * config/spu/spu.h (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS,
3538 CALL_USED_REGISTERS, REGISTER_NAMES, INTR_REGNUM): Remove INTR_REGNUM.
3539 * config/spu/spu.md (UNSPEC_IDISABLE, UNSPEC_IENABLE): Remove.
3540 (UNSPEC_SET_INTR): Add.
3541 * config/spu/spu-modes.def (INTR): Remove.
3543 More accurate warnings about run-time relocations.
3544 * config/spu/spu.c (reloc_diagnostic): Test in_section.
3546 Correctly warn about immediate arguments to specific intrinsics.
3547 * config/spu/spu.c (spu_check_builtin_parm): Handle CONST_VECTORs.
3548 (spu_expand_builtin_1): Call spu_check_builtin_parm before checking
3549 the instruction predicate.
3551 Fix tree check errors with latest update.
3552 * config/spu/spu.c (expand_builtin_args, spu_expand_builtin_1): Use
3554 (spu_expand_builtin): Use CALL_EXPR_FN.
3556 Add missing specific intrinsics.
3557 * config/spu/spu-builtins.def: Add si_bisled, si_bisledd and
3559 * config/spu/spu_internals.h: Ditto.
3561 Fix incorrect operand modifiers.
3562 * config/spu/spu-builtins.md (spu_mpy, spu_mpyu): Remove use of %H.
3563 * config/spu/spu.md (xor<mode>3): Change %S to %J.
3565 Optimize one case of zero_extend of a vec_select.
3566 * config/spu/spu.md (_vec_extractv8hi_ze): Add.
3568 Accept any immediate for hbr.
3569 * config/spu/spu.md (hbr): Change s constraints to i.
3571 2007-02-21 Paul Brook <paul@codesourcery.com>
3573 * config/arm/arm.c (thumb2_final_prescan_insn): Don't incrememnt
3574 condexec_count when skipping USE and CLOBBER.
3576 2007-02-21 Nick Clifton <nickc@redhat.com>
3578 * common.opt (Warray-bounds): Add Warning attribute.
3579 (Wstrict-overflow, Wstrict-overflow=, Wcoverage-mismatch):
3581 (fsized-zeroes): Add Optimization attribute.
3582 (fsplit-wide-types, ftree-scev-cprop): Likewise.
3583 * c.opt (Wc++0x-compat): Add Warning attribute.
3585 2007-02-21 Ulrich Weigand <uweigand@de.ibm.com>
3588 * reload1.c (eliminate_regs_in_insn): In the single_set special
3589 case, attempt to re-recognize the insn before falling back to
3590 having reload fix it up.
3592 2007-02-20 Eric Christopher <echristo@gmail.com>
3594 * config/frv/frv.c (frv_read_argument): Take a tree and int argument.
3595 Rewrite accordingly.
3596 (frv_read_iacc_argument): Ditto.
3597 (frv_expand_set_builtin): Take a call instead of arglist, update for
3599 (frv_expand_unop_builtin): Ditto.
3600 (frv_expand_binop_builtin): Ditto.
3601 (frv_expand_cut_builtin): Ditto.
3602 (frv_expand_binopimm_builtin): Ditto.
3603 (frv_expand_voidbinop_builtin): Ditto.
3604 (frv_expand_int_void2arg): Ditto.
3605 (frv_expand_prefetches): Ditto.
3606 (frv_expand_voidtriop_builtin): Ditto.
3607 (frv_expand_voidaccop_builtin): Ditto.
3608 (frv_expand_load_builtin): Ditto.
3609 (frv_expand_store_builtin): Ditto.
3610 (frv_expand_mdpackh_builtin): Ditto.
3611 (frv_expand_mclracc_builtin): Ditto.
3612 (frv_expand_mrdacc_builtin): Ditto.
3613 (frv_expand_mwtacc_builtin): Ditto.
3614 (frv_expand_builtin): Remove usage of CALL_EXPR_ARGS, update
3617 2007-02-20 Janis Johnson <janis187@us.ibm.com>
3619 * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcmpb and -mdfp.
3620 * configure.ac (HAVE_GAS_CMPB): Check for assembler support of the
3622 (HAVE_GAS_DFP): Check for assembler support of decimal floating
3624 * configure: Regenerate.
3625 * config.in: Regenerate.
3626 * config/rs6000/rs6000.opt (mcmpb, mdfp): New.
3627 * config/rs6000/rs6000.c (rs6000_override_options): Add CMPB and DFP
3628 masks to power6 and power6x and to POWERPC_MASKS.
3629 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3631 * config/rs6000/rs6000.h: Check assembler support for CMPB and DFP.
3632 * config/rs6000/sysv4.opt (mprototype): Use variable, not mask.
3633 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3634 Access PROTOTYPE as variable, not mask.
3636 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
3638 * rtl.h (remove_reg_equal_equiv_notes): New prototype.
3639 * rtlanal.c (remove_reg_equal_equiv_notes): New function.
3640 * combine.c (adjust_for_new_dest): Use it.
3641 * postreload.c (reload_combine): Likewise.
3643 2007-02-20 Steven Bosscher <steven@gcc.gnu.org>
3645 * rtlanal.c (find_reg_equal_equiv_note): Do not find REG_EQ*
3646 notes on an insn with multiple sets, even if single_set returns
3647 non-NULL for that insn.
3649 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3651 * fold-const.c (tree_expr_nonnegative_warnv_p): Handle scalb,
3654 2007-02-20 Geoffrey Keating <geoffk@apple.com>
3656 * config/darwin.h (LINK_SPEC): Default -mmacosx-version-min only
3657 if user didn't pass it.
3658 * config/i386/darwin.h (CC1_SPEC): Likewise.
3659 * config/rs6000/darwin.h (CC1_SPEC): Likewise.
3660 (DARWIN_MINVERSION_SPEC): Don't depend on user's setting of
3661 -mmacosx-version-min.
3663 2007-02-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3664 Uros Bizjak <ubizjak@gmail.com>
3666 * optabs.h (enum optab_index): Add new OTI_scalb.
3667 (scalb_optab): Define corresponding macro.
3668 * optabs.c (init_optabs): Initialize scalb_optab.
3669 * genopinit.c (optabs): Implement scalb_optab using scalb?f3
3671 * builtins.c (expand_builtin_mathfn_2, expand_builtin): Handle
3672 BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L} and BUILT_IN_SCALBLN{,F,L}.
3673 (expand_builtin): Expand BUILT_IN_SCALB{,F,L}, BUILT_IN_SCALBN{,F,L}
3674 and BUILT_IN_SCALBLN{,F,L} using expand_builtin_mathfn_2 if
3675 flag_unsafe_math_optimizations is set.
3677 * config/i386/i386.md (scalbxf3, scalb<mode>3): New expanders
3678 to implement scalbf, scalb and scalbl built-ins as inline x87
3681 2007-02-20 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3682 DJ Delorie <dj@redhat.com>
3685 * diagnostic.c (diagnostic_count_diagnostic): Move -Werror logic to...
3686 (diagnostic_report_diagnostic): ... here, and turn them into real
3687 errors. If warnings are inhibited, no need to do anything.
3689 2007-02-20 Uros Bizjak <ubizjak@gmail.com>
3691 * config/i386/i386.md (expm1xf2): Reorder insn sequence for
3692 better code generation.
3694 2007-02-20 Ben Elliston <bje@au.ibm.com>
3696 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove extra ;.
3698 2007-02-20 Kazu Hirata <kazu@codesourcery.com>
3700 * config/alpha/alpha.c, config/alpha/alpha.md,
3701 config/alpha/lib1funcs.asm, config/alpha/vms-crt0-64.c,
3702 config/alpha/vms-psxcrt0-64.c, config/arc/arc.c,
3703 config/arc/arc.h, config/arm/arm.c, config/arm/arm.md,
3704 config/arm/lib1funcs.asm: Follow spelling conventions.
3706 * config/c4x/c4x.md, config/cris/cris.c, config/crx/crx.c,
3707 config/fr30/fr30.md, config/i386/i386.h,
3708 config/iq2000/iq2000.h, config/iq2000/predicates.md,
3709 config/pa/milli64.S, config/pa/pa.c, config/pa/pa.h,
3710 config/pa/pa.md, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
3711 config/pdp11/pdp11.c, config/pdp11/pdp11.h,
3712 config/rs6000/altivec.md, config/rs6000/rs6000.c,
3713 config/s390/s390-modes.def, config/sparc/netbsd-elf.h,
3714 config/sparc/sparc.c, config/sparc/sparc.h,
3715 config/sparc/sparc.md, config/spu/constraints.md,
3716 config/spu/spu.c, config/stormy16/stormy16.md: Follow spelling
3719 2007-02-20 Alan Modra <amodra@bigpond.net.au>
3722 * varasm.c (use_blocks_for_decl_p): Return false for decls with
3725 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
3727 * doc/invoke.texi (-ftree-lrs): Remove.
3729 2007-02-19 Diego Novillo <dnovillo@redhat.com>
3731 * tree-ssa-pre.c (create_value_expr_from): Initialize POOL to
3734 2007-02-19 Lee Millward <lee.millward@codesourcery.com>
3736 * config/ia64/ia64.c (ia64_expand_builtin): Use the
3737 new CALL_EXPR_FN macro for retrieving the function
3738 declaration of the input expression.
3740 2007-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3742 * c.opt (Waddress): New.
3743 * common.opt (Walways-true): Delete.
3744 (Wstring-literal-comparison): Delete.
3745 * doc/invoke.texi (Warning Options): Delete -Walways-true and
3746 -Wstring-literal-comparison. Add -Waddress.
3748 (Walways-true): Delete.
3749 (Wstring-literal-comparison): Delete.
3750 * doc/extend.texi (#pragma GCC diagnostic): Use -Wformat
3751 consistently instead of -Walways-true in example.
3752 * c-opts.c (c_common_handle_option): -Waddress is enabled by -Wall.
3753 * c-typeck.c (parser_build_binary_op): Replace
3754 -Wstring-literal-comparison and -Walways-true with -Waddress.
3755 * c-common.c (c_common_truthvalue_conversion): Replace -Walways-true
3758 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
3760 * tree-cfg.c (dump_function_to_file): Be prepared for functions
3761 without DECL_STRUCT_FUNCTION initialized.
3763 2007-02-19 Eric Botcazou <ebotcazou@adacore.com>
3765 * gimplify.c (gimplify_init_ctor_preeval_1): Detect potential overlap
3766 due to calls to functions taking pointers as parameters.
3768 2007-02-19 Richard Henderson <rth@redhat.com>
3771 * var-tracking.c (track_expr_p): Disallow AGGREGATE_TYPE_P
3774 2007-02-19 Andreas Krebbel <krebbel1@de.ibm.com>
3776 * config/s390/s390.c (s390_call_saved_register_used,
3777 s390_function_ok_for_sibcall): Adjust the way CALL_EXPR arguments are
3778 accessed to the new scheme.
3780 2007-02-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3782 * config/cris/cris.c (cris_movem_load_rest_p, cris_store_multiple_op_p)
3783 (cris_print_index, cris_print_operand, cris_print_operand_address)
3784 (cris_reload_address_legitimized, cris_rtx_costs, cris_address_cost)
3785 (cris_side_effect_mode_ok, cris_valid_pic_const, cris_split_movdx)
3786 (cris_expand_pic_call_address): Use xxx_P predicate macros instead of
3788 * config/cris/cris.h (SECONDARY_RELOAD_CLASS, EXTRA_CONSTRAINT_Q,
3789 EXTRA_CONSTRAINT_T, BDAP_INDEX_P, BIAP_INDEX_P, SIMPLE_ADDRESS_P,
3790 GO_IF_LEGITIMATE_ADDRESS): Ditto.
3791 * config/cris/cris.md (define_insns: *btst, movdi, *mov_side<mode>)
3792 (*mov_sidesisf, *mov_side<mode>_mem, *mov_sidesisf_mem)
3793 (*clear_side<mode>, movsi, *movsi_internal, *ext_sideqihi)
3794 (*ext_side<mode>si, *op_side<mode>, *op_swap_side<mode>, addsi3)
3795 (*extopqihi_side, *extop<mode>si_side, *extopqihi_swap_side)
3796 (*extop<mode>si_swap_side, addi_mul, *addi,andsi3, andhi3, ashl<mode>3)
3797 (uminsi3, call, call_value): Ditto.
3798 (define_split: indir_to_reg_split, unnamed): Ditto.
3800 2007-02-19 Dorit Nuzman <dorit@il.ibm.com>
3802 PR tree-optimization/30975
3803 * tree-vect-trasnform.c (vect_get_vec_def_for_stmt_copy): Remove
3806 2007-02-18 Eric Christopher <echristo@gmail.com>
3808 * mips.c (mips_prepare_builtin_arg): Add argnum parameter.
3809 Remove use of arglist.
3810 (mips_expand_builtin): Remove use of arglist, pass in expr.
3811 (mips_expand_builtin_direct): Rewrite handling for arglist removal.
3812 (mips_expand_builtin_movtf): Ditto.
3813 (mips_expand_builtin_compare): Ditto.
3815 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
3817 * tree-sra.c (sra_build_assignment): Replace assertion
3818 checking with a comment explaining why it can't be done.
3820 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
3823 * tree-dump.c (dequeue_and_dump): Add tcc_vl_exp case missed
3824 during CALL_EXPR representation conversion.
3825 * tree-ssa-propagate.c (set_rhs): Likewise.
3827 2007-02-19 Alexandre Oliva <aoliva@redhat.com>
3829 * tree-sra.c (sra_build_assignment): Disable assertion checking
3832 2007-02-18 Roger Sayle <roger@eyesopen.com>
3834 * function.c (gimplify_parameters): Call build_gimple_modify_stmt
3835 instead of calling build2 with a GIMPLE_MODIFY_STMT.
3836 * gimple-low.c (lower_function_body, lower_builtin_setjmp):
3838 * gimplify.c (build_stack_save_restore, gimplify_return_expr,
3839 gimplify_decl_expr, gimplify_self_mod_expr, gimplify_cond_expr,
3840 gimplify_init_ctor_eval_range, gimple_push_cleanup,
3841 gimplify_omp_for, gimplify_omp_atomic_pipeline,
3842 gimplify_omp_atomic_mutex, gimplify_expr, gimplify_one_sizepos,
3843 force_gimple_operand): Likewise.
3844 * ipa-cp.c (constant_val_insert): Likewise.
3845 * lambda-code.c (lbv_to_gcc_expression, lle_to_gcc_expression,
3846 lambda_loopnest_to_gcc_loopnest, replace_uses_equiv_to_x_with_y,
3847 perfect_nestify): Likewise.
3848 * langhooks.c (lhd_omp_assignment): Likewise.
3849 * omp-low.c (lower_rec_input_clauses, lower_reduction_clauses,
3850 lower_copyprivate_clauses, lower_send_clauses,
3851 lower_send_shared_vars, expand_parallel_call,
3852 expand_omp_for_generic, expand_omp_for_static_nochunk,
3853 expand_omp_for_static_chunk, expand_omp_sections,
3854 lower_omp_single_copy, lower_omp_for_lastprivate,
3855 lower_omp_parallel, init_tmp_var, save_tmp_var): Likewise.
3856 * value-prof.c (tree_divmod_fixed_value, tree_mod_pow2,
3857 tree_mod_subtract, tree_ic, tree_stringop_fixed_value):
3860 2007-02-19 Kazu Hirata <kazu@codesourcery.com>
3862 * config/sh/divtab.c, config/sh/sh.c, config/sh/sh.h,
3863 config/sh/sh.md: Follow spelling conventions.
3865 * config/frv/frv.c, config/frv/frv.h, config/frv/frv.md,
3866 config/frv/predicates.md: Follow spelling conventions.
3868 * config/m68k/linux-unwind.h: Fix a comment typo.
3869 * target.h: Follow spelling conventions.
3871 2007-02-18 Roger Sayle <roger@eyesopen.com>
3873 PR rtl-optimization/28173
3874 * simplify-rtx.c (simplify_binary_operation_1) <IOR>: Optimize
3875 (X & C1) | C2 as C2 when (C1 & C2) == C1 and X has no side-effects.
3876 Optimize (X & C1) | C2 as X | C2 when (C1 | C2) == ~0.
3877 Canonicalize (X & C1) | C2 as (X & (C1 & ~C2)) | C2.
3878 <AND>: Canonicalize (X | C1) & C2 as (X & C2) | (C1 & C2).
3880 2007-02-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3882 * builtins.c (fold_builtin_load_exponent): New.
3883 (fold_builtin_2): Use it.
3885 2007-02-18 Steven Bosscher <steven@gcc.gnu.org>
3887 PR rtl-optimization/30773
3888 * local-alloc.c (update_equiv_regs): Do not set reg_equiv_init
3889 if we fail to attach a REG_EQUIV note.
3891 2007-02-18 David Edelsohn <edelsohn@gnu.org>
3892 Roger Sayle <roger@eyesopen.com>
3894 * config/rs6000/rs6000.md (bswapsi2): New define_insn and splitter.
3896 2007-02-18 Sandra Loosemore <sandra@codesourcery.com>
3898 * calls.c (initialize_argument_information): Pass original EXP
3899 and STRUCT_VALUE_ADDR_VALUE instead of a list of arguments. Move
3900 code to split complex arguments here, as part of initializing the
3902 (expand_call): Remove code that builds a list of arguments and
3903 inserts implicit arguments into it. Instead, just count how many
3904 implicit arguments there will be so we can determine the size of
3905 the ARGS array, and let initialize_argument_information do the work.
3906 (split_complex_values): Delete unused function.
3908 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
3910 * tree-eh.c (tree_could_trap_p): Handle VIEW_CONVERT_EXPR.
3912 2007-02-18 Eric Botcazou <ebotcazou@adacore.com>
3914 * calls.c (mem_overlaps_already_clobbered_arg_p): Return true
3915 for arg pointer based indexed addressing.
3917 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
3919 * config/ia64/ia64.h, config/ia64/ia64.md,
3920 config/ia64/predicates.md, config/ia64/sysv4.h: Follow
3921 spelling conventions.
3923 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
3925 * config/m68k/m68k.c (split_di): New.
3926 * config/m68k/m68k-protos.h: Declare split_di.
3927 * config/m68k/m68k.md (extendsidi2*,ashldi3*,ashrdi3*,lshrdi3*):
3928 Improve predicate handling and split constant shifts.
3930 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
3932 * config/m68k/m68k.md (extv,extzv,insv): disable dynamic
3933 parameter for register bitfield operations, general predicates
3936 2007-02-18 Roman Zippel <zippel@linux-m68k.org>
3938 * config/m68k/linux.h (MD_UNWIND_SUPPORT): Define.
3939 * config/m68k/linux-unwind.h: New file.
3941 2007-02-18 Kazu Hirata <kazu@codesourcery.com>
3943 * cfgloop.c, config/alpha/alpha.c, config/bfin/bfin.c,
3944 config/i386/athlon.md, config/ia64/ia64.md,
3945 config/rs6000/rs6000.c, config/s390/s390.c, config/spu/spu.md,
3946 df-problems.c, df.h, fold-const.c, ipa-cp.c, ipa-inline.c,
3947 ipa-prop.h, see.c, struct-equiv.c, tree-inline.c,
3948 tree-ssa-loop-niter.c, tree-vect-analyze.c,
3949 tree-vect-transform.c: Fix comment typos.
3951 2007-02-17 Kazu Hirata <kazu@codesourcery.com>
3953 * sched-deps.c (find_insn_list): Remove.
3954 * sched-int.h: Remove the prototype for find_insn_list.
3956 2007-02-16 Geoffrey Keating <geoffk@apple.com>
3958 * config/darwin.h (LINK_SPEC): Always pass -macosx_version_min
3960 (DARWIN_EXTRA_SPECS): Add %(darwin_minversion).
3961 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Just call
3962 darwin_rs6000_override_options.
3963 (C_COMMON_OVERRIDE_OPTIONS): Expect
3964 darwin_macosx_version_min to be non-NULL always.
3965 (TARGET_C99_FUNCTIONS): Likewise.
3966 (CC1_SPEC): Always pass -mmacosx-version-min to cc1*.
3967 (DARWIN_MINVERSION_SPEC): New.
3968 * config/rs6000/rs6000.c (darwin_rs6000_override_options): New.
3969 * config/i386/darwin.h (CC1_SPEC): Always pass -mmacosx-version-min