1 2005-01-06 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
3 * gcc.c (process_command): Change year in 'gcc --version' to 2005.
5 2005-01-05 Daniel Berlin <dberlin@dberlin.org>
7 Fix PR middle-end/19286
9 * dwarf2out.c (gen_subprogram_die): If we've already tried to
10 output this subprogram, simply ignore this attempt to do it again.
11 (add_abstract_origin_attribute): Don't abort trying to add the abstract
12 origin attribute if it's not possible.
13 (gen_block_die): Don't ignore subblocks of "unused" blocks.
14 (decls_for_scope): Ditto.
15 * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
16 (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
18 2005-01-05 Richard Henderson <rth@redhat.com>
21 * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
23 (ix86_expand_binop_builtin): Force operands into registers
25 (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
26 ix86_expand_sse_compare, ix86_expand_sse_comi,
27 ix86_expand_builtin): Likewise.
29 2005-01-05 Richard Henderson <rth@redhat.com>
31 * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
33 * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
34 (mulv4hi3): Set itanium_class mmmul.
35 (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
36 (fpack): Rename from fpack_sfsf.
38 2005-01-05 Richard Henderson <rth@redhat.com>
41 * reload1.c (do_input_reload): Restrict the optimization deleteing
42 a previous output reload to RELOAD_FOR_INPUT.
44 2005-01-05 Steven Bosscher <stevenb@suse.de>
46 * combine.c (expand_compound_operation) <ZERO_EXTRACT>: Add
47 comment that we fall through after case.
48 (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
49 (distribute_links): Likewise.
50 * cse.c (cse_insn): Likewise.
51 * cselib.c (cselib_invalidate_mem): Likewise.
52 * df.c: Update comments at the top of the file.
53 (read_modify_subreg_p): Update comments here too.
54 (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
55 * flow.c (mark_set_1): Likewise.
56 (mark_used_regs): Likewise.
57 * gcse.c (mems_conflict_for_gcse_p): Likewise.
58 (canon_list_insert): Likewise.
60 (try_replace_reg): Likewise.
61 (store_killed_in_insn): Likewise.
62 * loop.c (count_one_set): Likewise.
63 (basic_induction_var): Likewise.
64 * postreload-gcse.c (find_mem_conflicts): Likewise.
65 * postreload.c (reload_combine_note_store): Likewise.
66 (move2add_note_store): Likewise.
67 * reload.c (find_equiv_reg): Likewise.
68 (mark_referenced_resources): Likewise.
69 * rtlanal.c (set_noop_p): Likewise.
70 (note_stores): Likewise.
71 (note_uses): Likewise.
72 * sched-deps.c (sched_analyze_1): Likewise.
73 * sched-rgn.c (check_live_1): Likewise.
74 (update_live_1): Likewise.
75 * config/i860/i860.c: Likewise.
77 * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
79 (ZERO_EXTRACT): Mention that this one can be an lvalue.
81 * doc/rtl.texi: Update documentation for bit-fields and SET.
83 2005-01-05 Roger Sayle <roger@eyesopen.com>
85 * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
87 2005-01-05 Jan Hubicka <jh@suse.cz>
88 Richard Henderson <rth@redhat.com>
91 * config/i386/i386.c (ix86_expand_move): Handle tls symbols
94 2005-01-05 Richard Henderson <rth@redhat.com>
97 * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
98 (sse_shufps): Change operand 3 to const_int_operand.
99 (sse2_storelps): Fix typo in template.
100 (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
101 * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
102 (ix86_expand_builtin): Likewise.
104 2005-01-05 Julian Brown <julian@codesourcery.com>
106 * config/arm/arm.c (arm_return_in_memory): Treat complex types
107 as aggregates for AAPCS ABIs.
109 2005-01-05 Stan Shebs <shebs@apple.com>
111 * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
112 Mach-O getters if ppc64.
113 * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
115 * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
116 signed four-byte field for global code case.
117 (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
119 2005-01-05 Roger Sayle <roger@eyesopen.com>
122 * c-common.c: Include real.h.
123 (c_common_truthvalue_conversion): Avoid destructively modifying expr.
124 Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
125 Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
126 * Makefile.in (c-common.o): Update dependencies.
128 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
130 * c-parse.in (asm_string): Add trailing semicolon.
132 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
134 * c-parse.in (asm_string): New. Don't allow wide strings in
136 (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
137 asm_string instead of STRING.
139 2005-01-05 Joseph S. Myers <joseph@codesourcery.com>
141 * c-typeck.c (constructor_no_implicit): Remove.
142 (set_designator, process_init_element): Don't check
143 constructor_no_implicit.
145 2005-01-05 J"orn Rennecke <joern.rennecke@st.com>
146 Kaz Kojima <kkojima@gcc.gnu.org>
149 * lcm.c (create_pre_exit): New.
150 (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
151 ENTRY_EXIT_EXTRA to 3. Use create_pre_exit.
153 2004-01-05 Richard Earnshaw <rearnsha@arm.com>
155 * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
156 -msoft-float in target_float_switch.
157 * arm.c (arm_override_options): Fix processing of target_float_switch.
159 2004-01-05 Richard Earnshaw <rearnsha@arm.com>
161 * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
164 2004-01-05 Uros Bizjak <uros@kss-loka.si>
166 * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
167 Replace i387 with 'i386 compiler' in -mfpmath=sse option.
169 2005-01-04 Roger Sayle <roger@eyesopen.com>
171 * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
172 if deleting the then-block allows the test-block to fallthru to the
175 2005-01-04 Andrew Pinski <pinskia@physics.uc.edu>
178 * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
179 after the full declaration if the are in two different TUs.
181 2005-01-04 Richard Henderson <rth@redhat.com>
184 * tree-sra.c (generate_one_element_init): Just
185 call gimplify_and_add.
186 (generate_element_init): Record the
187 new referenced variables and mark them for renaming
189 (generate_element_init_1): This.
190 (scalarize_init): Don't call push_gimplify_context/
191 pop_gimplify_context.
193 2005-01-04 Geoffrey Keating <geoffk@apple.com>
195 * toplev.c (get_src_pwd): Handle failure of getpwd().
197 2005-01-04 Roger Sayle <roger@eyesopen.com>
199 * fold-const.c (fold_single_bit_test): Delete unreachable handling
201 (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
202 all the cases handled by it are inverted by invert_truthvalue.
204 2005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
206 * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
207 (save_register_windowsi): Likewise.
209 2005-01-04 Richard Henderson <rth@redhat.com>
211 * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
213 2005-01-04 Uros Bizjak <uros@kss-loka.si>
216 * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
217 any simplifications of vector mode comparison operators.
218 * simplify-rtx.c (simplify_relational_operation): Fix variable name.
220 2005-01-04 Paolo Bonzini <bonzini@gnu.org>
221 Devang Patel <dpatel@apple.com>
223 PR tree-optimization/18308
224 * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
225 the operands before creating a new expression.
226 * dojump.c (do_jump): Make drop_through_label available
227 for all cases. Add expansion of COND_EXPR.
229 2005-01-04 Ira Rosen <irar@il.ibm.com>
231 * tree-vectorizer.c (vect_analyze_offset_expr): Test for
232 INTEGER_CST instead of TREE_CONSTANT.
233 (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
234 instead of TREE_CONSTANT.
235 (vect_analyze_pointer_ref_access): Test for INTEGER_CST
236 instead of TREE_CONSTANT.
238 2005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
240 * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
242 2005-01-04 Uros Bizjak <uros@kss-loka.si>
245 * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
246 (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
248 2005-01-03 Richard Henderson <rth@redhat.com>
250 * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
251 (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
252 fold_convert_const_real_from_real): Split out from ...
253 (fold_convert_const): ... here.
255 2005-01-03 Richard Henderson <rth@redhat.com>
258 * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
259 (mov<MMXMODEI>_internal): Likewise.
260 (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
261 Add V2SF case; use it for SSE1; don't use TI.
262 (movdf_integer): Likewise.
263 (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
265 2005-01-03 Ira Rosen <irar@il.ibm.com>
267 * tree-vectorizer.c (vect_strip_conversions): New function.
268 (vect_analyze_offset_expr): Call vect_strip_conversions. Add
269 check for binary class.
271 2005-01-03 Daniel Berlin <dberlin@dberlin.org>
275 * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
277 * gimple-low.c (mark_blocks_with_used_vars): New function.
278 (mark_blocks_with_used_subblocks): Ditto.
279 (mark_used_blocks): Ditto.
280 (pass_mark_used_blocks): New pass.
281 * tree-inline.c: Include debug.h.
282 (expand_call_inline): Call outlining_inline_function here.
283 * tree-optimize.c (init_tree_optimization_passes): Add
284 pass_mark_used_blocks.
285 * tree-pass.h (pass_mark_used_blocks): New.
286 * Makefile.in (tree-inline.o): Add debug.h dependency.
288 2005-01-03 Geoffrey Keating <geoffk@apple.com>
290 * config/darwin.c (darwin_handle_weak_import_attribute): Permit
291 VAR_DECLs to have weak_import attribute.
293 * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
296 2004-01-03 Steven Bosscher <stevenb@suse.de>
298 * passes.c (rest_of_compilation): Don't run regmove if only
299 flag_expensive_optimizations, require flag_regmove instead.
301 2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
303 * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
305 * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
306 * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
307 * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
308 * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
310 2005-01-03 Richard Henderson <rth@redhat.com>
312 * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
313 (ia64_const_ok_for_letter_p): New.
314 (ia64_const_double_ok_for_letter_p): New.
315 (ia64_extra_constraint): New.
316 (ia64_expand_vecint_compare): New.
317 (ia64_expand_vcondu_v2si): New.
318 (ia64_expand_vecint_cmov): New.
319 (ia64_expand_vecint_minmax): New.
320 (ia64_print_operand): Add 'v'.
321 (ia64_preferred_reload_class): New.
322 (ia64_vector_mode_supported_p): New.
323 * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
324 (PREFERRED_RELOAD_CLASS): Move to function.
325 (CONST_OK_FOR_LETTER_P): Move to function.
326 (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
327 (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
328 (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
329 (EXTRA_CONSTRAINT): Move to function.
330 * config/ia64/ia64.md: Include vect.md.
331 (itanium_class): Add mmalua.
333 * config/ia64/itanium1.md (1_mmalua): New. Add it to bypasses.
335 * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
336 * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
338 (const_int_2bit_operand): New.
339 (fr_reg_or_0_operand): New.
340 * config/ia64/ia64-modes.def: Add vector modes.
341 * config/ia64/ia64-protos.h: Update.
342 * config/ia64/vect.md: New file.
344 2005-01-03 Richard Henderson <rth@redhat.com>
346 * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
348 2005-01-03 Uros Bizjak <uros@kss-loka.si>
351 * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
353 (log1pdf2): Change mode of operands[0,1] to DFmode.
355 2005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
357 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
358 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
359 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
360 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
361 SPARC_RELAXED_ORDERING.
363 2005-01-03 Richard Henderson <rth@redhat.com>
364 Uros Bizjak <uros@kss-loka.si>
367 * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
368 IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
369 * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
371 (*mmx_pinsrw, *sse2_pinsrw): New patterns.
372 * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
373 const_pow2_1_to_128_operand): New predicates.
375 2005-01-02 Greg McGary <greg@mcgary.org>
377 * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
379 (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
380 object. [ptr_type]: Remove unused variable.
381 Remember nearest addressable array-element or record-component
382 when checking bitfield components. Tolerate empty BIND_EXPR.
384 2005-01-01 Richard Henderson <rth@redhat.com>
386 * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
387 that don't narrow the value. Fail for other conversions.
389 2005-01-01 Richard Henderson <rth@redhat.com>
392 * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
393 * c-lang.c (finish_file): Don't do it here.
394 * objc/objc-act.c (objc_finish_file): Likewise.
396 * cgraph.c (decl_assembler_name_equal): New.
397 (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
398 (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
399 * cgraph.h (struct cgraph_varpool_node): Add next.
400 (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
401 * varasm.c (assemble_alias): Mark the target as needed.
403 2005-01-01 Andrew Pinski <pinskia@physics.uc.edu>
406 * function.c (get_arg_pointer_save_area): Use entry_of_function
407 instead of get_insns.
409 2005-01-01 Roger Sayle <roger@eyesopen.com>
410 Andrew Pinski <pinskia@physics.uc.edu>
411 James E. Wilson <wilson@specifixinc.com>
413 PR rtl-optimization/12092
414 * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
417 2005-01-01 Roger Sayle <roger@eyesopen.com>
418 Olivier Hainque <hainque@act-europe.fr>
420 * tree.c (int_fits_type_p): A narrower type always fits in a
421 wider one, except for negative values into unsigned types.
423 2005-01-01 Roger Sayle <roger@eyesopen.com>
425 * tree.c (int_fits_type_p): Compare the result of force_fit_type
426 with the original constant rather than require TREE_OVERFLOW.
428 2005-01-01 Steven Bosscher <stevenb@suse.de>
431 * c-decl.c (finish_function): If compiling C99, annotate the
432 compiler generated return with the current file name and line 0.
433 * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
434 the source line is greater than 0.
435 (remove_bb): Likewise.
437 See ChangeLog.12 for earlier changes.