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