]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
Fix typos.
[gcc.git] / gcc / ChangeLog
CommitLineData
d6efd7d6
DN
12005-03-17 Dorit Naishlos <dorit@il.ibm.com>
2
3 PR tree-optimization/20474
4 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
5 size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
6
981c7dce
KH
72005-03-17 Kazu Hirata <kazu@cs.umass.edu>
8
9 * config/h8300/h8300-protos.h: Remove prototypes for
10 general_operand_src, general_operand_dst, single_one_operand,
11 single_zero_operand, call_insn_operand,
12 two_insn_adds_subs_operand, small_call_insn_operand,
13 jump_address_operand, bit_operand, bit_memory_operand,
14 stack_pointer_operand, const_int_gt_2_operand,
15 const_int_ge_8_operand, const_int_qi_operand,
16 const_int_hi_operand, incdec_operand, bit_operator,
17 nshift_operator, eqne_operator, gtle_operator,
18 gtuleu_operator, iorxor_operator.
19 Add prototypes for h8sx_shift_type h8sx_classify_shift and
20 h8300_ldm_stm_parallel.
21 * config/h8300/h8300.c (h8sx_shift_type,): Move to
22 h8300-protos.h.
23 (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
24 SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
25 (h8300_ldm_stm_parallel): Make it extern.
26 (h8300_ldm_parallel, h8300_stm_parallel,
27 h8300_return_parallel, general_operand_src,
28 general_operand_dst, h8300_dst_operand, h8300_src_operand,
29 nibble_operand, reg_or_nibble_operand, single_one_operand,
30 single_zero_operand, call_insn_operand,
31 two_insn_adds_subs_operand, small_call_insn_operand,
32 jump_address_operand, bit_operand, bit_memory_operand,
33 stack_pointer_operand, const_int_gt_2_operand,
34 const_int_ge_8_operand, const_int_qi_operand,
35 const_int_hi_operand, incdec_operand, eqne_operator,
36 gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
37 h8sx_binary_memory_operator, h8sx_unary_memory_operator,
38 h8sx_unary_shift_operator, h8sx_binary_shift_operator,
39 nshift_operator): Move to predicates.md.
40 * config/h8300/h8300.h (PREDICATE_CODES): Remove.
41 * config/h8300/h8300.md: Include predicates.md.
42 * config/h8300/predicates.md: New.
43
dbdd120f
RH
442005-03-17 Richard Henderson <rth@redhat.com>
45
46 * config.gcc (ia64*-*-hpux*): Add extra_options.
47 * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
48 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
49 * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
50 (ia64_tls_size_string, ia64_tune_string): Remove.
51 (ia64_tune): Init to PROCESSOR_ITANIUM2.
52 (TARGET_DEFAULT_TARGET_FLAGS): New.
53 (TARGET_HANDLE_OPTION): New.
54 (ia64_override_options): Move options parsing ...
55 (ia64_handle_option): ... here. New.
56 * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
57 MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
58 MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
59 MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
60 MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
61 MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
62 MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
63 TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
64 TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
65 TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
66 TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
67 TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
68 TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
69 TARGET_EARLY_STOP_BITS): Remove.
70 (TARGET_ILP32): Default false.
71 (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
72 (enum ia64_inline_type): New.
73 (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
74 * config/ia64/ia64.md: Update for new definitions of
75 TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
76 * config/ia64/ia64.opt: New file.
77 * config/ia64/ilp32.opt: New file.
78
0c103070
L
792005-03-17 H.J. Lu <hongjiu.lu@intel.com>
80
81 PR target/18380
82 * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
83
5463c726
KH
842005-03-17 Kazu Hirata <kazu@cs.umass.edu>
85
86 * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
87 instead of MASK_H8300S.
88 * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
89 MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
90 MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
91 MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
92 TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
93 TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
94 TARGET_SWITCHES): Remove.
95 (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
96 TARGET_H8300SX.
97 * config/h8300/h8300.opt: New.
98
3ad7bb65
KH
99 * config/alpha/alpha.opt, config/arc/arc.opt,
100 config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
101 notices.
102
3bd62c45
ILT
1032005-03-17 Ian Lance Taylor <ian@airs.com>
104
105 * gmon.c: Remove.
106
3ff01d4d
RS
1072005-03-17 Richard Sandiford <rsandifo@redhat.com>
108
109 * config/arc/arc.c (arc_cpu_string): Make static. Default to "base"
110 (arc_text_string, arc_data_string, arc_rodata_string): Make static.
111 (TARGET_HANDLE_OPTION): Override default.
112 (arc_handle_option): New function.
113 (arc_init): Remove code to set arch_cpu_string.
114 * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
115 (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
116 (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
117 (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
118 (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
119 (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
120 (arc_rodata_string, TARGET_OPTIONS): Delete.
121 * config/arc/arc.opt: New file.
122
52eb57df
RH
1232005-03-17 Richard Henderson <rth@redhat.com>
124
125 * doc/extend.texi (Weak Pragmas): New section.
126 (attribute alias): Clarify that target must be in the same
127 translation unit.
128
8bea7f7c
RH
1292005-03-17 Richard Henderson <rth@redhat.com>
130
131 * config/alpha/alpha.opt: New file.
132 * config/alpha/alpha.c (alpha_tune): New. Rename all existing uses
133 of alpha_cpu.
134 (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
135 alpha_fprm_string, alpha_fptm_string): Make static.
136 (alpha_tls_size_string): Remove.
137 (alpha_handle_option): New.
138 (override_options): Update for alpha_cpu/alpha_tune split.
139 (alpha_file_start): Likewise.
140 (TARGET_DEFAULT_TARGET_FLAGS): New.
141 (TARGET_HANDLE_OPTION): New.
142 * config/alpha/alpha.h (alpha_tune): Declare.
143 (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
144 MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
145 MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
146 TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
147 TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
148 TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
149 MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
150 MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
151 TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
152 TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
153 (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
154 (TARGET_DEFAULT): Remove MASK_FP.
155 (TARGET_FP): Redefined based on TARGET_SOFT_FP.
156 (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
157 (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
158 alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
159 alpha_tls_size_string): Remove.
160 * config/alpha/alpha.md (prefetch): Use alpha_cpu.
161 (attribute tune): Rename from attribute cpu.
162 * config/alpha/ev4.md: Update to match.
163 * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
164 * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
165 * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
166 * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
167 * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
168 * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
169
68e11b42
JW
1702005-03-16 James E. Wilson <wilson@specifixinc.com>
171
172 * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
173 and return without creating new state if before_nops_num is nonzero.
174 * config/ia64/ia64.md (first_insn): New attribute.
175 (alloc): Set it to yes.
176
e8b19a77
DB
1772005-03-16 Daniel Berlin <dberlin@dberlin.org>
178
179 * tree-vectorizer.c (new_vec_stmt_info): Initialize
180 STMT_VINFO_SUBVARS to NULL.
181 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
182
b2df20b4
DJ
1832005-03-16 Dale Johannesen <dalej@apple.com>
184
185 * rtlanal.c (find_first_parameter_load): Rewrite to
186 return actual first param load or the call if none,
187 instead of first in block, when not all loads exist.
188
9abd1955
RS
1892005-03-16 Roger Sayle <roger@eyesopen.com>
190
191 * optabs.c (expand_copysign_absneg): Make static.
192 * optabs.h (expand_copysign_absneg): Delete prototype.
193 * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
194
e4d5432a
RH
1952005-03-16 Richard Henderson <rth@redhat.com>
196
197 PR middle-end/15700
198 * varasm.c (struct alias_pair): Rename from struct output_def_pair.
199 (alias_pairs): Rename from output_defs.
200 (find_decl_and_mark_needed): Split out from assemble_alias.
201 (do_assemble_alias): New.
202 (assemble_output_def): Remove.
203 (finish_aliases_1, finish_aliases_2): New.
204 (process_pending_assemble_output_defs): Remove.
205 (assemble_alias): Defer aliases for which we don't yet have a
206 non-external decl for the target symbol.
207 * passes.c (rest_of_decl_compilation): Register variables with cgraph.
208 * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
209 * toplev.c (compile_file): Use finish_aliases_2 instead of
210 process_pending_assemble_output_defs.
211 * tree.h (finish_aliases_1, finish_aliases_2): Declare.
212 (process_pending_assemble_output_defs): Remove.
213
5f6c8a56
DB
2142005-03-16 Daniel Berlin <dberlin@dberlin.org>
215
216 Fix PR tree-optimization/20489
217
218 * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
219 for empty structures.
220
70596642
DB
2212005-03-16 Daniel Berlin <dberlin@dberlin.org>
222
f718710e 223 Fix PR tree-optimization/20490
70596642
DB
224
225 * tree-ssa-pre.c (create_expression_by_pieces): Use
226 force_gimple_operand on result of fold.
227
13953f0a
AP
2282005-03-16 Andrew Pinski <pinskia@physics.uc.edu>
229
230 * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
231 of closing parenthesis.
232
a456b432
KH
2332005-03-16 Kazu Hirata <kazu@cs.umass.edu>
234
235 * builtins.c (expand_movstr): Update a call to
236 fold_builtin_strcpy.
237 (expand_builtin_strncpy): Update a call to
238 fold_builtin_strncpy.
239 (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
240 arguments of CALL_EXPR.
241 (fold_builtin_1): Update calls to fold_builtin_strcpy and
242 fold_builtin_strncpy.
243 * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
244 * tree.h: Update the prototypes of fold_builtin_strcpy and
245 fold_builtin_strncpy.
246
00c714ed
SB
2472005-03-16 Steven Bosscher <stevenb@suse.de>
248 Dorit Naishlos <dorit@il.ibm.com>
249
250 * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
251 UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
252 error.
253
b8c4a565
SB
2542005-03-16 Steven Bosscher <stevenb@suse.de>
255
256 * tree-inline.c (walk_type_fields, walk_tree,
257 walk_tree_without_duplicates): Move from here...
258 * tree.c: ...to here.
259
a1286ef5
ZW
2602005-03-15 Zack Weinberg <zack@codesourcery.com>
261
262 * BASE-VER, DATESTAMP, DEV-PHASE: New files.
263 * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
264 (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
265 (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
266 (version): Define using $(BASEVER_c).
267 (Makefile, config.status, build/gcov-iov.o): No longer depends on
268 version.c.
269 (version.o): Depend on version files; add custom generation command.
270 (prefix.o): Define BASEVER on command line.
271 (s-iov): Depend on version files; adjust command.
272 (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
273 Add gcc-vers.texi.
274 (gcc-vers.texi): New rule.
275 (doc/%.info, doc/%.dvi): Add -I . to command line.
276 (doc/gccinstall.dvi): Likewise.
277 (PACKAGE): Delete. All uses replaced with "gcc".
278 * aclocal.m4: Do not include gcc-version.m4.
279 * configure.ac: Do not invoke TL_AC_GCC_VERSION.
280 Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
281 Set is_release based on contents of DEV-PHASE.
282 Set gcc_version based on contents of BASE-VER.
283 Define WIN32_REGISTRY_KEY only if the user overrode the default.
284 * config.in, configure: Regenerate.
285 * gccbug.in: Determine version of GCC in use at runtime.
286 * gcov-iov.c: Get version number and development phase from
287 command line, not by including version.c.
288 * intl.c: Replace all uses of PACKAGE with "gcc".
289 * libada-mk.in: Delete unused "gcc_version" variable.
290 * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
291 * version.c: (VERSUFFIX): New hook for redistributors; adjust
292 commentary to match.
293 (version_string): Put together from pieces.
294 * config/alpha/x-vms: Do not use $(gcc_version).
295 * config/i386/t-nwld: Likewise.
296 * doc/include/gcc-common.texi: Include gcc-vers.texi for
297 version-GCC and DEVELOPMENT.
298
0ebfd2c9
RS
2992005-03-15 Roger Sayle <roger@eyesopen.com>
300
301 PR tree-optimization/17454
302 * tree.c (tree_size): Add case for TREE_BINFO.
303 * fold-const.c (fold_checksum_tree): Only clear the overloaded
304 field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
305
69f39b11
RS
3062005-03-15 Roger Sayle <roger@eyesopen.com>
307
308 * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
309 op1 whilst expanding the signed widenening multiply variant.
310
d522e7a2
RS
3112005-03-15 Richard Sandiford <rsandifo@redhat.com>
312
313 * toplev.c (display_target_options): Avoid unused variable warning if
314 TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
315 * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
316 (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
317 (mips_isa): Initialize to MIPS_ABI_DEFAULT.
318 (mips_isa_info): New variable.
319 (mips_parse_cpu): Remove the first argument and leave the caller
320 to report errors.
321 (TARGET_HANDLE_OPTION): Override default.
322 (mips_handle_option): New function. Move option validation code from...
323 (override_options): ...here. Update calls to mips_parse_cpu.
324 * config/mips/mips.h (mips_arch_string, mips_tune_string)
325 (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
326 (SUBTARGET_TARGET_OPTIONS): Delete.
327 * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
328 (mno-flush-func, mtune=): New options.
329
c064fde5
RS
3302005-03-15 Roger Sayle <roger@eyesopen.com>
331 Richard Henderson <rth@redhat.com>
332
333 * real.c (c4x_single_format, c4x_extended_format): Provide values
334 for signbit_ro for c4x's single and extended floating point formats.
335 * optabs.c (expand_copysign): Use the floating point format's
336 signbit_ro for expanding via expand_copysign_absneg, and it's
337 signbit_rw field for expanding via expand_copysign_bit.
338
5f55a1ba
DN
3392005-03-15 Dorit Naishlos <dorit@il.ibm.com>
340
341 * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
342 known_alignment_for_access_p.
343 (known_alignment_for_access_p): New.
344 (do_peeling_for_alignment): Field made int instead of bool and renamed
345 to peeling_for_alignment.
346 (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
347 * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
348 functionality used to be in vect_analyze_operations.
349 (vect_analyze_operations): Code to determine vectorization factor was
350 moved to vect_determine_vectorization_factor.
351 (vect_enhance_data_refs_alignment): Update to correct alignment when it
352 is known instead of -1. Set LOOP_PEELING_FOR_ALIGNMENT to peeling
353 factor.
354 (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
355 be part of vect_analyze_operations).
356 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
357 creating the guard condition, as the number of iterations may be
358 constant.
359 (slpeel_tree_peel_loop_to_edge): Use new name of
360 LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
361 * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
362 alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
363 (vect_do_peeling_for_alignment): Use fold.
364 (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
365
366 (vect_update_inits_of_dr): Renamed to
367 vect_update_init_of_dr.
368 (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
369 (vectorizable_store): Fix assertion to use == instead of =.
370
119bb233
DJ
3712005-03-15 Daniel Jacobowitz <dan@codesourcery.com>
372
373 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
374 call_used_regs for wCG registers.
375
0ca89db7
UW
3762005-03-15 Ulrich Weigand <uweigand@de.ibm.com>
377
378 * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
379 for non-offsettable memory references to cope with outstanding reload
380 replacements, take 2.
381
9199f050
UB
3822005-03-15 Uros Bizjak <uros@kss-loka.si>
383
384 PR target/18668
385 * config/i386/i386.h (x86_fisttp): New.
386 (TARGET_FISTTP): New macro.
387 * config/i386/i386.c (x86_fisttp): Set for NOCONA.
388 (output_fix_trunc): Add fisttp parameter. Generate fisttp x87
389 instruction when fisttp flag is set.
390 * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
391
392 * config/i386/i386.md (type attribute): Add fisttp.
393 (unit attribute): Set to i387 for fisttp type.
394 (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
395 (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
396 TARGET_FISTTP.
397 (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
398 Generate fisttp patterns for TARGET_FISTTP. Implement using mode
399 macros.
400 (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
401 patterns for TARGET_FISTTP. Enable patterns for
402 (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
403 (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
404 fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
405 implement fisttp x87 insn.
406 (fix_trunc*_i387_fisttp splitters): New patterns.
407 (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
408 Rename to *fix_trunc<mode>_i387_1. Implement using mode macros.
409 Disable patterns for TARGET_FISTTP. Add comment about FLAGS_REG
410 clobber.
411 (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
412 Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
413 Implement using mode macros. Disable patterns for TARGET_FISTTP.
414 (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
415 fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
416 fix_trunc<mode>_i387_with_temp. Implement using mode macros.
417 Disable patterns for TARGET_FISTTP.
418 (fix_trunc*_i387 splitters): Implement usign mode macros.
419 (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
420 fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
421 (fix_trunx*_sse peephole2s): Implement using mode macros.
422
9b12dc4f
R
4232005-03-15 J"orn Rennecke <joern.rennecke@st.com>
424
425 PR rtl-optimization/20291
426 * combine.c (try_combine): If splitting fails, re-try with
427 original combined pattern, i.e. before clobber stripping.
428
85bfab36
EC
4292005-03-14 Eric Christopher <echristo@redhat.com>
430
431 * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
432 STACK_GROWS_DOWNWARD.
a1286ef5 433
b87a0206
RS
4342005-03-14 Roger Sayle <roger@eyesopen.com>
435
436 * real.h (struct real_format): Split the signbit field into two
437 two fields, signbit_ro and signbit_rw.
438 * real.c (ieee_single_format, mips_single_format, ieee_double_format,
439 mips_double_format, ieee_extended_motorola_format,
440 ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
441 ieee_extended_intel_128_format, ibm_extended_format,
442 mips_extended_format, ieee_quad_format, mips_quad_format,
443 vax_f_format, vax_d_format, vax_g_format, i370_single_format,
444 i370_double_format, c4x_single_format, c4x_extended_format,
445 real_internal_format): Update initializers for new field.
446 * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
447 real_format structure.
448 * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
449 field of the real_format structure.
450
9044951e
DB
4512005-03-14 Daniel Berlin <dberlin@dberlin.org>
452
453 Fix PR tree-optimization/20458
454
455 * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
456 DECL_EXTERNAL on STRUCT_FIELD tags.
457 (clear_call_clobbered): Ditto.
458 * tree-ssa-operands.c (note_addressable): Make sure the original
459 variable doesn't slip into the addressable list if we have
460 subvars.
461 * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
462 tags too.
a1286ef5 463
50668cf6
GK
4642005-03-14 Geoffrey Keating <geoffk@apple.com>
465
466 * doc/cppopts.texi (-fexec-charset): Add concept index entry.
467 (-fwide-exec-charset): Likewise.
468 (-finput-charset): Likewise.
469 * doc/invoke.texi (Warning Options): Document -Wnormalized=.
470 * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
471 * c.opt (Wnormalized): New.
472
ce84fa41
DP
4732005-03-14 Devang Patel <dpatel@apple.com>
474
475 * doc/invoke.texi: Add reference to Visibility document.
a1286ef5 476
21c425ee
RS
4772005-03-14 Richard Sandiford <rsandifo@redhat.com>
478
479 * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
480 MASK_SPLIT_ADDRESSES.
481 * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
482 (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
483 (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
484 (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
485 (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
486 (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
487 (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
488 (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
489 (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
490 (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
491 (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
492 (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
493 (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
494 (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
495 (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
496 (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
497 (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
498 (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
499 (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
500 (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
501 (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
502 (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
503 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
504 (TARGET_EXPLICIT_RELOCS): Delete.
505 (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
506 (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
507 * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
508 (override_options): Set MASK_LONG64 if -mint64 is given and no
509 -mlongXX option is. Complain about -mint64 -mlong32.
510 (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
511 MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
512 * config/mips/mips.opt: New file.
513
75685792
RS
5142005-03-14 Richard Sandiford <rsandifo@redhat.com>
515
516 * config.gcc (extra_options): New variable for listing option files.
517 Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
518 * configure.ac (extra_opt_files): New AC_SUBST variable.
519 (tm_file_list, tm_include_list): Include options.h first.
520 * configure: Regenerate.
521 * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
522 (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
523 (s-options-h): New rule.
524 (options.h): Depend on it.
525 (TEXI_GCCINT_FILES): Add options.texi.
526 * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
527 * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
528 * target.h (gcc_target): Add default_target_flags and handle_option.
529 * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
530 (TARGET_HANDLE_OPTION): New macros.
531 (TARGET_INITIALIZER): Include them.
532 * opt-functions.awk (opt_args, nth_arg): New functions.
533 (switch_flags): Handle the "Target" flag.
534 (var_args): Delete.
535 (var_name): Use opt_args and nth_arg.
536 (var_set, var_ref): Likewise. Handle "Mask" and "InverseMask".
537 * opth-gen.awk: Declare target_flags. Declare MASK_* and TARGET_*
538 macros for the "Mask" and "InverseMask" options.
539 * opts.h (cl_var_cond): New enum.
a1286ef5 540 (cl_option): Replace the "has_set_value" and "set_value" fields with
75685792
RS
541 "var_cond" and "var_value".
542 (CL_TARGET): New macro.
543 (option_enabled, print_filtered_help): Declare.
544 (decode_options): Move definition.
545 * opts.c (handle_option): Search for the original option before
546 removing any "no-" prefix. Handle CL_TARGET. Adjust for the new
547 var_cond and var_value fields. Use targetm.handle_option to handle
548 target options.
549 (decode_options): Set target_flags to targetm.default_target_flags.
550 (print_filtered_help): Make global. Handle CL_TARGET.
551 (option_enabled): New function.
552 * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
553 (display_target_options, set_target_switch, print_switch_values)
554 (default_pch_valid_p): Guard uses of target_switches with
555 #ifdef TARGET_SWITCHES. Also...
556 (display_target_options): Display the CL_TARGET entries in cl_options.
557 (set_target_option): Don't complain about the "" option when
558 TARGET_SWITCHES is undefined.
559 (print_switch_values): Use option_enabled.
560 (default_pch_valid_p): Check cl_options[] when looking for something
561 that has changed the value of target_flags.
562 * c.opt: Remove documentation from top of file.
563 * doc/gccint.texi: Add an "Options" chapter. Include options.texi.
564 * doc/sourecebuild.texi: Refer to the new options documentation
565 instead of c.opt. Document machine-specific .opt files.
566 * doc/tm.texi (target_flags): Say that this variable is declared
567 by options.h.
568 (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
569 (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
570 an alternative.
571 * doc/options.texi: New file.
572
3a3b81e7
AO
5732005-03-14 Alexandre Oliva <aoliva@redhat.com>
574
575 PR middle-end/18628
576 * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
577 register.
578
aff98faf
AO
5792005-03-14 Alexandre Oliva <aoliva@redhat.com>
580
581 PR c++/20280
582 * gimplify.c (gimplify_cond_expr): Add fallback argument. Use a
583 temporary variable of pointer type if an lvalues is required.
584 (gimplify_modify_expr_rhs): Request an rvalue from it.
585 (gimplify_expr): Pass fallback on.
586
55b18c19
KH
5872005-03-14 Kazu Hirata <kazu@cs.umass.edu>
588
589 * cfgbuild.c: Update comments.
590
f927760b
RS
5912005-03-14 Roger Sayle <roger@eyesopen.com>
592
593 PR rtl-optimization/17236
594 * optabs.c (expand_doubleword_mult): New helper function split out
595 from expand_binop. Permute the order in which instructions are
596 emitted to minimize the number of simultaneously live registers.
597 (expand_binop): Call expand_doubleword_mult to synthesize a double
598 word multiplication.
599
a6ee1a15
KH
6002005-03-14 Kazu Hirata <kazu@cs.umass.edu>
601
602 * basic-block.h: Update the prototypes of cached_make_edge and
603 rtl_make_eh_edge.
604 * cfg.c (cached_make_edge): Take edge_cache representing one
605 row of the adjacency matrix of edges.
606 * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
607 (make_edges): Initialize edge_cache to represent one row of
608 the adjacency matrix of edges.
609
8eaa0f34
ZD
6102005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
611
612 * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
613 New functions.
614 (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
615 Remove unused removed_phis variable.
616 (conditional_replacement): Use build1/build2.
617 (abs_replacement): Use last_and_only_stmt and build1/build2.
618
dcd6de6d
ZD
6192005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
620
621 * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
622 ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
623 * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
624 (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
625 * c-common.c (handle_novops_attribute): New function.
626 (c_common_attribute_table): Add "no vops" entry.
627 * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
628 * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
629 * tree-ssa-operands.c (get_call_expr_operands): Do not
630 create virtual operands for calls with ECF_NOVOPS flag.
631 * tree.h (DECL_IS_NOVOPS): New macro.
632 (struct tree_decl): Add novops_flag.
633 (ECF_NOVOPS): New constant.
634
0e8c2b0d
UB
6352005-03-14 Uros Bizjak <uros@kss-loka.si>
636
637 PR target/17688
638 * config/i386/i386.c (x86_use_himode_fiop): New.
639 (x86_use_simode_fiop): Rename from x86_use_fiop.
640 * config/i386/i386.h (x86_use_himode_fiop): Declare.
641 (TARGET_USE_HIMODE_FIOP): New.
642 (x86_use_simode_fiop): Rename from x86_use_fiop.
643 (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
a1286ef5 644
0e8c2b0d
UB
645 * config/i386/i386.md (X87MODEI12): New mode macro define.
646 (*cmpfp_<mode>): Rename from *cmpfp_si. Use X87MODEI12 mode macro
647 to implement x87 FP compare with HImode input operands.
648 (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
649 Use X87MODEI12 mode macro to handle HImode input operands.
650 (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
651 *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
652 Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
653 *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
654 macro to implement x87 operators with HImode input operands.
655 (fop splitters): Use X87MODEI12 mode macro to handle HImode
656 input operands.
657
f1b19062
ZD
6582005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
659
660 * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
661 integer_zerop.
662 * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
663 constants invariant.
664
9e32d2be
ZD
6652005-03-14 Zdenek Dvorak <dvorakz@suse.cz>
666
667 * basic-block.h (BB_VISITED): Removed.
668 * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
669
18410793
FH
6702005-03-14 Falk Hueffner <falk@debian.org>
671
672 PR bootstrap/20424
673 * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
674
c1b97125
KH
6752005-03-14 Kazu Hirata <kazu@cs.umass.edu>
676
677 * ggc-zone.c: Fix comment typos.
678
a2130901
KH
679 * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
680 stringpool.c, config/mips/mips-protos.h: Update copyright.
681
9390387d
AM
6822005-03-14 Alan Modra <amodra@bigpond.net.au>
683
684 * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
685 throughout with its typedef, "rtx".
686 * config/rs6000/rs6000.c: Likewise. Formatting fixes.
687 (rs6000_tls_symbol_ref_1): Remove inline keyword.
688 * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting. Reorder
689 regs in comment to match code.
690
c148389e
KH
6912005-03-14 Kazu Hirata <kazu@cs.umass.edu>
692
693 * except.c (check_handled): Make it static.
694 * except.h: Remove the corresponding prototype.
695
7b25e663
KH
696 * function.c (get_func_frame_size): Make it static.
697 * function.h: Remove the corresponding type.
698
1b28cd06
KH
699 * regclass.c (reg_class_superclasses, reg_class_subclasses):
700 Make them static.
701 * hard-reg-set.h: Remove the corresponding declarations.
702
8de1fc1b
KH
703 * tree-cfg.c (verify_stmts): Check that
704 bb_for_stmt (stmt) == bb for every PHI node and statement.
705
fe3e7450
AM
7062005-03-14 Alan Modra <amodra@bigpond.net.au>
707
708 * config.gcc: Remove excess indentation.
709 (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
710
362cb1bb
RS
7112005-03-13 Roger Sayle <roger@eyesopen.com>
712
713 PR middle-end/19331
714 * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
715 * fold-const.c (fold_sign_changed_comparison): Likewise.
716 (fold_binary): Optimize comparisons against widened operands if
717 the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
718
e4a31e19 7192005-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1da4c3a7
EB
720
721 * config/sparc/sparc.c (struct_value_alias_set): New global variable.
722 (sparc_override_options): Initialize it.
723 (sparc_struct_value_rtx): Set it on the MEM to be returned.
724
97c54d9a
DE
7252005-03-13 David Edelsohn <edelsohn@gnu.org>
726
727 * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
728 (reg_or_none500mem_operand): New predicate.
729 (zero_reg_mem_operand): New predicate.
730 * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
731 to reg_or_none500mem_operand.
732 (extendsfdf2_fpr): Add MEM alternative.
733 (extenddftf2_internal): Change operand2 predicate to
734 zero_reg_mem_operand.
735
08cee789
DJ
7362005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
737
738 * ggc-zone.c: Rewritten.
739
740 * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
741 if there are none.
742 * configure.ac: Define GGC_ZONE for --with-gc=zone.
743 * config.in: Regenerated.
744 * configure: Regenerated.
ae83e8ae 745 * gengtype.c (write_types_process_field, write_func_for_structure):
08cee789
DJ
746 Pass new argument to gt_pch_note_object.
747 * ggc-common.c (struct ptr_data): Add TYPE.
748 (gt_pch_note_object): Take TYPE argument and save it.
749 (call_count): Update call to ggc_pch_count_object.
750 (call_alloc): Update call to ggc_pch_alloc_object.
751 (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
752 file.
753 * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
754 * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
755 (ggc_alloc_zone_stat): Delete.
756 (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
757 * ggc.h (gt_pch_note_object, ggc_pch_count_object)
758 (ggc_pch_alloc_object): Update prototypes.
759 (garbage_zone): Delete.
760 (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
761 GGC_ZONE conditional. Update. Change tree_zone and rtl_zone into
762 pointers.
763 (tree_id_zone): New variable.
764 (ggc_alloc_cleared_zone): Remove unused.
765 (ggc_alloc_zone): Define.
766 (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
767 * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
768 ggc_alloc_zone_stat.
769 * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
770 * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
771 (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
772 (make_node_stat): Likewise. Use tree_id_zone.
773
69229b81
DJ
7742005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
775 Joseph S. Myers <joseph@codesourcery.com>
776
777 * configure.ac: Check for MIPS TLS.
778 * configure: Regenerated.
779 * config/mips/mips-protos.h (enum mips_symbol_type): Add
780 SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
781 SYMBOL_GOTTPREL, and SYMBOL_TPREL.
782 * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
783 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
784 (mips_classify_symbol, mips_symbolic_constant_p)
785 (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
786 (mips_tls_operand_p, mips_call_tls_get_addr)
787 (mips_legitimize_tls_address, mips_cannot_force_const_mem)
788 (mips_tls_symbol_ref_1): New functions.
789 (mips_legitimize_address, mips_legitimize_const_move): Call
790 mips_legitimize_tls_address.
791 (override_options): Handle V1_REG and TLS symbols. Disable TLS
792 for MIPS16.
793 * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
794 (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
795 (mips_char_to_class): Document V1_REG.
796 (HAVE_AS_TLS): Provide default.
797 * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
798 constants.
799 (load_got<mode>): Renamed from *load_got<mode>. Allow when
800 !TARGET_ABICALLS.
801 (tls_get_tp_<mode>): New instruction.
802
b095fe2c
DJ
8032005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
804
805 * configure.ac: Update checks for target tools.
806 * configure: Regenerated.
807
0bfb33e5
DJ
8082005-03-13 Daniel Jacobowitz <dan@codesourcery.com>
809
810 * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
811
65dc9350
RS
8122005-03-13 Roger Sayle <roger@eyesopen.com>
813
814 * expmed.c (expand_mult): Use synthetic multiplication sequences for
815 more classes of DImode multiplication by constant. Allow both
a1286ef5 816 multiplication by small negative constants (by performing a
65dc9350
RS
817 multiplication by a positive constant and negating the result) and
818 multiplications by large powers of two, by using a left shift.
819
d357720d
KH
8202005-03-13 Kazu Hirata <kazu@cs.umass.edu>
821
822 * tree-into-ssa.c (find_idf): Speed up by putting the indexes
823 of basic blocks into work_stack.
824
d4ff96d5
KH
825 * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
826 config/mips/vr.h: Update copyright.
827
13d21cb7
KH
828 * c-decl.c (c_init_decl_processing): Remove useless calls to
829 build_function_type.
830
b87e6936
KH
831 * builtins.c (fold_trunc_transparent_mathfn,
832 fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
833 fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
834 fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
835 fold_builtin_strcpy, fold_builtin_strncpy,
836 fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
837 TREE_TYPE (exp).
838
b475548e
KH
839 * builtins.c (expand_builtin_mathfn_3): Remove local variable
840 before_call.
841
30a6aaed
KH
842 * lambda-code.c (lambda_compute_auxillary_space): Remove local
843 variable determinant.
844
ed9cef22
KH
845 * tree-cfg.c (group_case_labels): Remove local variable type.
846
0b4961d0
KH
847 * tree-ssa-live.c (build_tree_conflict_graph): Remove local
848 variable ann.
849
92c54d2c
KH
850 * tree-ssa-phiopt.c (value_replacement): Remove local variable
851 result.
852
6bbaec09
AH
8532005-03-13 Andy Hutchinson <HutchinsonAndy@netscape.net>
854
855 PR target/18251
856 * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
857 (*movmemqi_insn): Delete.
858 (*movmemhi): Delete.
859
5cb08bab
KH
8602005-03-13 Kazu Hirata <kazu@cs.umass.edu>
861
862 * builtins.c (fold_builtin_classify): Take decomposed
863 arguments of CALL_EXPR.
864 (fold_builtin_1): Update a call to fold_builtin_classify.
865
67c2939d
JM
8662005-03-13 Joseph S. Myers <joseph@codesourcery.com>
867
868 PR c/20402
869 * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
870 through into call to parser_xref_tag after parse error.
871 (c_parser_struct_declaration): Consistently return NULL_TREE on
872 error.
873
c75ab022
DB
8742005-03-12 Daniel Berlin <dberlin@dberlin.org>
875
876 * tree-flow-inline.h (ref_contains_array_ref): New function.
877 (lookup_subvars_for_var): Ditto.
878 (get_subvars_for_var): Ditto.
879 (var_can_have_subvars): Ditto.
880
881 * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
882 (struct subvar): New type.
883
884 * tree-dfa.c (okay_component_ref_for_subvars): New function.
885
886 * tree-optimize.c (init_tree_optimization_passes): Call
887 pass_create_structure_vars.
888
889 * tree-ssa-alias.c: Include vec.h.
890 (init_alias_info): Don't auto-clear call clobbered on struct-field
891 tags.
892 (compute_flow_insensitive_aliasing): Handle subvars.
893 (group_aliases): Handle STRUCT_FIELD aliases.
894 (setup_pointers_and_addressables): Ditto.
895 Don't mark variables non-addressable if they still have
896 addressable subvars.
897 Also mark subvars addressable when the real variable is marked
a1286ef5 898 addressable.
c75ab022
DB
899 (add_pointed_to_var): Try to prune the pointed-to set by only
900 pointing to subvars when possible.
901 Otherwise, make sure we set addresses_needed and pt_vars to
902 properly include subvars.
903 (bitpos_of_field): New function.
904 (push_fields_onto_fieldstack): Ditto.
905 (get_or_create_used_part_for): Ditto.
906 (create_overlap_variables_for): Ditto.
907 (find_used_portions): Ditto.
908 (create_structure_vars): Ditto.
909 (pass_create_structure_vars): New structure.
910
911 * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
912 (get_expr_operands): Handle subvars. Also try to turn
913 COMPONENT_REF accesses into must-defs now that we can accurately
914 portray it.
915 (note_addressable): Try to only mark as addressable those subvars
916 we know a COMPONENT_REF touches.
917 (overlap_subvar): New function.
918
919 * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
920 Handle subvar storing.
921 (vect_address_analysis): Update caller of vect_object_analysis.
922
923 * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
924
925 * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
926 (STMT_VINFO_SUBVARS): New macro.
927
928 * common.opts: add flag_tree_salias.
a1286ef5 929
c75ab022 930 * opts.c (decode_options): flag_tree_salias defaults to on.
a1286ef5 931
c75ab022
DB
932 * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
933
934 * doc/tree-ssa.texi: Document structural alias analysis.
a1286ef5 935
7d3bf067
SB
9362005-03-12 Steven Bosscher <stevenb@suse.de>
937
938 * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
939 * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
940 * tree-ssa-operands.c (get_expr_operands): Likewise.
941 (get_expr_operands): Likewise for ERROR_MARK.
942
84f464e5
KH
9432005-03-12 Kazu Hirata <kazu@cs.umass.edu>
944
945 * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
946 var.
947
a1c7f471
KH
948 * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
949 removed_phis.
950
84ceaf06
KH
951 * tree-ssa-pre.c (compute_avail): Remove local variable val.
952 (mark_operand_necessary): Remove local variable ver.
953
8b54274e
KH
954 * tree-vect-transform.c (vect_get_new_vect_var): Remove local
955 variable prefix_len.
956
75328849
KH
957 * value-prof.c (mod_subtract_transform): Remove local variable
958 value.
959
7cfb2e10
KH
960 * builtins.c (fold_builtin_exponent): Take decomposed
961 arguments of CALL_EXPR.
962 (fold_builtin_1): Update a call to fold_builtin_exponent.
963
fba08921
KH
964 * builtins.c (fold_builtin_logarithm): Take decomposed
965 arguments of CALL_EXPR.
966 (fold_builtin_1): Update a call to fold_builtin_logarithm.
967
9386194f
KH
968 * c-decl.c (c_init_decl_processing): Remove local variables
969 ptr_ftype_void and ptr_ftype_ptr.
970
70e2829d
KH
971 * gimplify.c (gimplify_expr): Remove local variables r0 and
972 r1.
973
f7448d50
KH
974 * reg-stack.c (move_for_stack_reg): Remove local variable
975 push_insn.
976 (compare_for_stack_reg): Remove local variable flags_user.
977 (convert_regs_1): Remove local variable deleted.
978
2b74282d
KH
979 * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
980 variable new_cond.
981 (combine_blocks): Remove local variables exits and new_e.
982
fb2a5747
KH
983 * tree-inline.c (expand_call_inline): Remove local variable
984 decl.
985
f39b4c07
KH
986 * tree-ssa-live.c (create_ssa_var_map,
987 calculate_live_on_entry): Remove local variable snn.
988
47e20491
GK
9892005-03-12 Geoffrey Keating <geoffk@apple.com>
990
a1286ef5 991 * c-lex.c (c_lex_with_flags): Add parameter to call to
47e20491
GK
992 cpp_spell_token.
993
6037d88d
PB
9942005-03-11 Per Bothner <per@bothner.com>
995
996 * c-tree.h (struct c_declarator): New id_loc field.
997 * c-pragma.h (c_lex_with_flags): Take position reference.
998 * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
999 iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
1000 (c_lex): Pass dummy location to c_lex_with_flags.
1001 * c-parser.c (c_lex_one_token): Set c_token's location using
1002 c_lex_with_flags, instead of input_location, which might be "ahead".
1003 (c_parser_direct_declarator): Set declarator's id_loc from
1004 c_token's id_loc.
1005 * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
1006 declarator's id_loc, rather than probably-imprecise input_location.
1007 (build_id_declarator): Initialize c_declarator's id_loc field.
1008
210e1852
RS
10092005-03-11 Roger Sayle <roger@eyesopen.com>
1010
1011 PR middle-end/20419
1012 * builtins.c (expand_builtin_signbit): Force the signbit's word
1013 into an integer register to avoid SUBREGs of floating point modes.
1014
c6c81aa6
KH
10152005-03-12 Kazu Hirata <kazu@cs.umass.edu>
1016
1017 * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
1018 target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
1019 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
1020 config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
1021
c6506442
DE
10222005-03-11 David Edelsohn <edelsohn@gnu.org>
1023
1024 PR rtl-optimization/20306
1025 * expr.c (emit_move_complex): Set try_int false if mode is
1026 MODE_COMPLEX_FLOAT and mov_optab exists for inner mode. Only try
1027 emit_block_move if try_int is true.
1028
f817d5d4
RH
10292005-03-11 Richard Henderson <rth@redhat.com>
1030
1031 PR target/20415
1032 * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
1033 * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
1034 to match.
1035
0ac40e7a
RS
10362005-03-11 Richard Sandiford <rsandifo@redhat.com>
1037
1038 * config/mips/mips.h (mips_fix_vr4130_string): Declare.
1039 (TARGET_FIX_VR4130): New macro.
1040 (TARGET_OPTIONS): Add -mfix-vr4130.
1041 (ISA_HAS_MACCHI): New macro.
1042 (ASM_SPEC): Add -mfix-vr4130.
1043 * config/mips/mips.c (mips_fix_vr4130_string): New variable.
1044 (override_options): Handle mips_fix_vr4130_string.
1045 (mips_avoid_hazards): Clear all_noreorder_p
1046 if we're working around VR4130 errata and the macc alternatives
1047 are not available.
1048 * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
1049 (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
1050 * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
1051 (MULTILIB_DEFAULTS): Remove leading "march=".
1052 (DRIVER_SELF_SPECS): Likewise. Make -mfix-vr4130 imply -march=vr4130
1053 if no architecture option is given.
1054 * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
1055 VR4130 multilibs.
1056 (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
1057 * doc/invoke.texi: Document -mfix-vr4130.
1058
266c6b40
RS
10592005-03-11 Richard Sandiford <rsandifo@redhat.com>
1060
1061 * config/mips/mips.c (override_options): Only warn about -mint64
1062 deprecation if TARGET_INT64.
1063
74124c73
KG
10642005-03-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1065
1066 * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
1067 ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
1068 ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
1069 are non-specific regarding the nonnull parameter positions.
1070 (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
1071 ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
1072 ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
1073 ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
a1286ef5 1074
74124c73
KG
1075 * builtins.def: Use the non-specific "nonnull" attibute lists.
1076
81b29e2f
ZD
10772005-03-11 Zdenek Dvorak <dvorakz@suse.cz>
1078
1079 * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
1080 single_pred_edge, single_succ, single_pred): Improve comments.
1081
c5cbcccf
ZD
10822005-03-11 Zdenek Dvorak <dvorakz@suse.cz>
1083
1084 * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
1085 single_pred_edge, single_succ, single_pred): New inline functions.
1086 * bb-reorder.c (rotate_loop, find_traces_1_round,
1087 add_labels_and_missing_jumps, fix_up_fall_thru_edges,
1088 duplicate_computed_gotos): Use the single_succ/pred functions.
1089 * cfganal.c (forwarder_block_p): Ditto.
1090 * cfgbuild.c (compute_outgoing_frequencies): Ditto.
1091 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1092 outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
1093 merge_seq_blocks): Ditto.
1094 * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
1095 * cfglayout.c (fixup_reorder_chain): Ditto.
1096 * cfgloop.c (mark_single_exit_loops, update_latch_info,
1097 canonicalize_loop_headers, verify_loop_structure): Ditto.
1098 * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
1099 mfb_update_loops, create_preheader, force_single_succ_latches,
1100 create_loop_notes): Ditto.
1101 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
1102 force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
1103 commit_one_edge_insertion, purge_dead_edges,
1104 cfg_layout_can_merge_blocks_p): Ditto.
1105 * except.c (sjlj_emit_function_enter): Ditto.
1106 * flow.c (init_propagate_block_info): Ditto.
1107 * function.c (thread_prologue_and_epilogue_insns): Ditto.
1108 * gcse.c (find_implicit_sets, bypass_conditional_jumps,
1109 insert_insn_end_bb): Ditto.
1110 * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
1111 find_if_case_2): Ditto.
1112 * lambda-code.c (perfect_nestify): Ditto.
1113 * lcm.c (optimize_mode_switching): Ditto.
1114 * loop-doloop.c (doloop_modify): Ditto.
1115 * loop-init.c (loop_optimizer_init): Ditto.
1116 * loop-iv.c (simplify_using_initial_values): Ditto.
1117 * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
1118 * loop-unswitch.c (unswitch_loop): Ditto.
1119 * modulo-sched.c (generate_prolog_epilog): Ditto.
1120 * predict.c (combine_predictions_for_insn, estimate_probability,
1121 tree_estimate_probability, last_basic_block_p,
1122 estimate_bb_frequencies): Ditto.
1123 * profile.c (branch_prob): Ditto.
1124 * regrename.c (copyprop_hardreg_forward): Ditto.
1125 * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
1126 * tracer.c (layout_superblocks): Ditto.
1127 * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
1128 cfg_remove_useless_stmts_bb, cleanup_control_flow,
1129 cleanup_control_expr_graph, disband_implicit_edges,
1130 tree_find_edge_insert_loc, bsi_commit_edge_inserts,
1131 tree_verify_flow_info, tree_make_forwarder_block,
1132 tree_forwarder_block_p, remove_forwarder_block,
1133 remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
1134 * tree-if-conv.c (tree_if_conversion): Ditto.
1135 * tree-mudflap.c (mf_build_check_statement_for): Ditto.
1136 * tree-ssa-dce.c (remove_dead_stmt): Ditto.
1137 * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
1138 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
1139 copy_loop_headers): Ditto.
1140 * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
1141 * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
1142 * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
1143 lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
1144 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
1145 * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
1146 * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
1147 * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
1148 * tree-ssa-threadupdate.c (redirect_edges): Ditto.
1149 * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
1150 eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
1151 * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
1152 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
1153 * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
1154 slpeel_add_loop_guard): Ditto.
1155
694d73e1
JM
11562005-03-11 James A. Morrison <phython@gcc.gnu.org>
1157
7d3bf067
SB
1158 PR tree-optimization/15784
1159 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
1160 and -1 - A to ~A.
cbefb99c 1161
7d3bf067
SB
1162 * stmt.c (expand_case): Don't change index_type. Convert minval
1163 to the proper type.
cbefb99c 1164
694d73e1
JM
1165 PR tree-optimization/20130
1166 * fold-const.c (fold): Fold x * -1 into -x.
1167
550b7784
KK
11682005-03-11 Kaz Kojima <kkojima@gcc.gnu.org>
1169
1170 PR rtl-optimization/20331
1171 * rtlanal.c (modified_between_p): Check its address first for MEM.
1172 (modified_in_p): Likewise.
1173
3f0b8b66
JM
11742005-03-11 Joseph S. Myers <joseph@codesourcery.com>
1175
1176 * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
1177
927630a5
SB
11782005-03-10 Steven Bosscher <stevenb@suse.de>
1179
1180 * expr.c (expand_expr_real_1): If possible, use a conditional
1181 move for expanding MIN_EXPR and MAX_EXPR.
1182 Use temp for moving around rtx-en.
1183
dddcca1d
AP
11842005-03-10 Andrew Pinski <pinskia@physics.uc.edu>
1185
1186 PR rtl-opt/20412
1187 * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
1188 correct mode.
1189
e4fbead1
RS
11902005-03-10 Roger Sayle <roger@eyesopen.com>
1191
1192 * builtins.c (expand_builtin_signbit): Extend to handle floating
1193 point modes wider than the largest integer type, using the
1194 operand_subword_force function to obtain the signbit's word.
1195
985f2d8f
JJ
11962005-03-10 Jakub Jelinek <jakub@redhat.com>
1197
1198 PR target/20322
1199 * combine.c (try_combine): If recog_for_combine added CLOBBERs
1200 to NEWI2PAT, fail to combine if they are used by NEWPAT.
1201
cf379ac0
AH
12022005-03-10 Aldy Hernandez <aldyh@redhat.com>
1203
927630a5 1204 * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
cf379ac0 1205
b25a2407
KH
12062005-03-10 Kazu Hirata <kazu@cs.umass.edu>
1207
1208 * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
1209 type void.
1210 (perform_edge_inserts): Unconditionally call
1211 free_dominator_info.
1212
17008288
KH
1213 * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
1214
9a7363b9
BW
12152005-03-10 Bob Wilson <bob.wilson@acm.org>
1216
1217 * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
1218
8117c488
NS
12192005-03-10 Nathan Sidwell <nathan@codesourcery.com>
1220
fd6132db
NS
1221 * bitmap.c (bitmap_copy): Remove manual loop unrolling.
1222
fbc848cc
NS
1223 * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
1224 gcc_unreachable.
1225 (rtl_register_value_prof_hooks,
1226 tree_value_profile_transformations,
1227 tree_register_value_prof_hooks): Likewise.
1228 * var-tracking.c (stack_adjust_offset_pre_post,
1229 variable_htab_free, variable_union, dataflow_set_different_2,
1230 count_uses, variable_was_changed, set_frame_base_location,
1231 set_variable_part, emit_note_insn_var_location, vt_emit_notes,
1232 vt_add_function_parameters): Likewise.
1233 * varasm.c (named_section_real, named_section, make_decl_rtl,
1234 asm_emit_uninitialised, assemble_integer, decode_addr_const,
1235 const_hash_1, compare_constant, copy_constant, force_const_mem,
1236 output_constant_pool_2, output_constant_pool_1, output_constant,
1237 output_constructor, make_decl_one_only, decl_tls_model,
1238 default_no_named_section, default_elf_select_section_1,
1239 default_unique_section_1): Likewise.
1240 * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
1241 * vmsdbgout.c (addr_const_to_string): Likewise.
1242
8117c488
NS
1243 PR c++/20375
1244 * function.c (struct assign_parm_data_one): Remove last_named
1245 field.
1246 (assign_parm_find_data_types): Don't determine last_named.
1247 Reorder named_parm determination.
1248 (assign_parms): Only setup varargs on the last non-varadic
1249 parameter.
1250
91c18512
KI
12512005-03-10 Kazuhiro Inaoka <inaoka.lazuhiro@renesas.com>
1252
1253 * config/m32r/m32r.md (load_sda_base_32): New pattern. Loads
1254 sda base address on medium model.
1255
2b271002
ZD
12562005-03-10 Zdenek Dvorak <dvorakz@suse.cz>
1257
1258 * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
1259 * cfgloop.c (flow_loop_nodes_find): Export.
1260 * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
1261 Declare.
1262 * cfgloopmanip.c (fix_loop_structure): New function.
1263 * predict.c (predict_loops): Clean up the loops information.
1264 * tree-cfg.c (cleanup_tree_cfg_loop): New function.
1265 (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
1266 loop structure.
1267 * tree-flow.h (cleanup_tree_cfg_loop): Declare.
1268 (rewrite_into_loop_closed_ssa): Declaration changed.
1269 * tree-loop-linear.c (linear_transform_loops): Add argument to
1270 rewrite_into_loop_closed_ssa call.
1271 * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
1272 * tree-ssa-loop-im.c (move_computations): Ditto.
1273 * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
1274 * tree-vectorizer.c (vectorize_loops): Ditto.
1275 * tree-optimize.c: Include cfgloop.h.
1276 (execute_todo): Choose whether to call cleanup_tree_cfg or
1277 cleanup_tree_cfg_loop.
1278 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
1279 (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
1280 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
1281 cleanup_tree_cfg_loop call.
1282 * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
1283 (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
1284 work on part of cfg.
1285
372d72d9
JJ
12862005-03-10 Jakub Jelinek <jakub@redhat.com>
1287
1288 PR inline-asm/20314
1289 * gimplify.c (gimplify_asm_expr): Handle input/output constraints
1290 with multiple alternatives.
1291
1292 * stmt.c (parse_output_constraint): Fix a typo.
1293
4cfdf48f
BW
12942005-03-09 Bob Wilson <bob.wilson@acm.org>
1295
1296 * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
1297 assembly directive instead of deprecated "no-generics".
1298
9c90a97e
UW
12992005-03-09 Ulrich Weigand <uweigand@de.ibm.com>
1300
1301 * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
1302 for non-offsettable memory references to cope with outstanding reload
1303 replacements.
1304 * config/s390/s390.md ("reload_outti"): Call find_replacement to
1305 avoid losing outstanding address reloads.
1306 ("reload_outdi", "reload_outdf"): Likewise.
1307
d86dc303
KG
13082005-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1309
1310 * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
1311 code. Add more cbrt transformations.
1312
d3592adf
KG
13132005-03-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1314
1315 * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
1316
62ab45cc
KH
13172005-03-09 Kazu Hirata <kazu@cs.umass.edu>
1318
1319 * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
1320 NULL_TREE when a given tree is not simplified.
1321 (fold): Return the original tree when any of the functions
1322 mentioned above NULL_TREE.
1323
fbaa905c
KH
1324 * fold-const.c (fold_unary, fold_binary): Take decomposed
1325 arguments, code, type, op0, and op1 in case of fold_binary.
1326 (fold): Update calls to fold_unary and fold_binary.
1327
a35da91f
RS
13282005-03-09 Roger Sayle <roger@eyesopen.com>
1329
1330 * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
1331 a fndecl and an arglist instead of a CALL_EXPR, exp.
1332
2b410855
KH
13332005-03-09 Kazu Hirata <kazu@cs.umass.edu>
1334
1335 * cfglayout.c (fixup_reorder_chain): Remove old_bb.
1336
a9b2ee88
KH
1337 * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
1338
b258008a
KH
1339 * expr.c (expand_assignment): Remove orig_to_rtx.
1340
5758c0f1
KH
1341 * fold-const.c (int_const_binop): Remove no_overflow.
1342
40e48138
KH
1343 * ifcvt.c (noce_emit_move_insn): Remove inmode.
1344
3c3f4b56
KH
1345 * loop-iv.c (get_biv_step_1): Remove lhs.
1346
d300f6bb
KH
1347 * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
1348
e140d617
KH
1349 * real.c (real_nan): Remove neg.
1350
5e35992a
KH
1351 * function.c (thread_prologue_and_epilogue_insns): Remove i
1352 and newinsn.
1353
1d846d0d
KH
1354 * tree-data-ref.c (array_base_name_differ_p): Remove ta and
1355 tb.
1356
29b86a49
KH
1357 * tree-eh.c (tree_could_trap_p): Remove idx.
1358
184d1bb5
KH
1359 * tree-into-ssa.c (ann): Remove ann.
1360
df0159b7
KH
1361 * tree-outof-ssa.c (num_nodes): Remove num_nodes.
1362
dc3fcf39
KH
1363 * tree-sra.c (decide_block_copy): Remove inst_count.
1364
a92b9bdf
KH
1365 * tree-ssa-alias.c (may_alias_p): Remove v_ann.
1366
e2b8bd6c
KH
1367 * tree-ssa-loop-im.c (lhs): Remove.
1368
5e91f7a3
KH
1369 * cfgbuild.c (state, STATE, SET_STATE,
1370 BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
1371 make_edges.
1372 (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
1373 (find_basic_blocks): Set the state of each basic block to
1374 BLOCK_NEW.
1375
b0c32a73
JL
13762005-03-08 Jeff Law <law@redhat.com>
1377
1378 * tree-cfg.c (cleanup_control_flow): If removal of a computed
1379 goto results in the removal of edges in the CFG, then we need
1380 to recompute dominators.
1381
b735d54b
BE
13822005-03-09 Ben Elliston <bje@au.ibm.com>
1383
1384 * c-common.c (c_do_switch_warnings): Comment fix.
1385
1fbbc055
JB
13862005-03-08 Julian Brown <julian@codesourcery.com>
1387
1388 * Patch from 2005-03-08 reverted for causing regressions and
1389 ppc-darwin bootstrap failure.
1390
4d3e6fae
FJ
13912005-03-08 Fariborz Jahanian <fjahanian@apple.com>
1392
a1286ef5 1393 * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
4d3e6fae
FJ
1394 Define the real function for ppc-darwin.
1395 * c-typeck.c (convert_arguments): Check for target-specific
1396 invalid argument call to unprototyped function.
a1286ef5 1397 * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
4d3e6fae 1398 New Macro.
a1286ef5 1399 * target.h (invalid_arg_for_unprototyped_fn): New field
4d3e6fae 1400 in struct calls.
a1286ef5 1401 * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
4d3e6fae 1402 default target hook.
a1286ef5 1403 * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
4d3e6fae
FJ
1404 Declare.
1405
802415d1
KH
14062005-03-08 Kazu Hirata <kazu@cs.umass.edu>
1407
1408 * c-typeck.c (constructor_stack, constructor_range_stack,
1409 initializer_stack): Make them static.
1410
06c8f57b
KH
1411 * cfg.c (rbi_pool): Make it static.
1412
1ebf7687
KH
1413 * gimple-low.c (lower_stmt_body): Make it static.
1414 * tree-flow.h: Remove the corresponding prototype. Don't
1415 declare lower_data.
1416
392c64a0
KH
1417 * sched-deps.c (cache_size): Make it static.
1418
1bb11558
KH
1419 * stor-layout.c (lang_adjust_rli): Make it static.
1420
323f0b8f
JB
14212005-03-08 Julian Brown <julian@codesourcery.com>
1422
1423 * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
1424 from being used for symbols with vague linkage when
1425 HAVE_GAS_COMDAT_GROUP is true.
1426
77fb4cc1
R
14272005-03-08 J"orn Rennecke <joern.rennecke@st.com>
1428
1429 * jump.c (invert_jump_1): Don't call redirect_jump_1 with
1430 nlabel == JUMP_LABEL (jump).
1431
6c6cfbfd
KH
14322005-03-08 Kazu Hirata <kazu@cs.umass.edu>
1433
1434 * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
1435 gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
1436 tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
1437 tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
1438
6e9a3221
AN
14392005-03-08 Alexey Neyman <alex.neyman@auriga.ru>
1440
1441 PR c/14411
1442 * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
1443 * c-common.c (handle_returns_twice): New function.
1444 (c_common_attribute_table): Declare eturns_twice' attribute.
1445 * doc/extend.texi: Document eturns_twice' attribute.
1446 * tree.h (DECL_IS_RETURNS_TWICE): New macro.
1447 (struct tree_decl): Add returns_twice_flag.
1448
4b2bb87d
KH
14492005-03-08 Kazu Hirata <kazu@cs.umass.edu>
1450
1451 * tree-ssa-phiopt.c: Fix a comment typo.
1452
25d8d27d
KH
1453 * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
1454 loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
1455 config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
1456 copyright.
1457
36013987
RH
14582005-03-08 Richard Henderson <rth@redhat.com>
1459
1460 * config/alpha/alpha.c (code_for_builtin): Replace special-case
1461 builtin codes with ctzdi2, clzdi2, popcountdi2.
1462 (struct alpha_builtin_def): Add is_const.
1463 (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
1464 (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
1465 (alpha_init_builtins): Init them. Set nothrow and const attributes
1466 on builtins.
a1286ef5
ZW
1467 (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
1468 alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
1469 alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
36013987
RH
1470 alpha_fold_vector_minmax, alpha_fold_builtin_perr,
1471 alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
1472 alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
1473 alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
1474 alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
1475 (TARGET_FOLD_BUILTIN): New.
1476 * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
1477 (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
1478 (ffsdi2): Use ctz.
1479 (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
1480
6cd3dd5b
IR
14812005-03-08 Ira Rosen <irar@il.ibm.com>
1482
1483 PR tree-optimization/20122
1484 * tree-vect-analyze.c (vect_object_analysis): Analyze initial
1485 condition of access function instead of base.
1486
be477406 14872005-03-07 Jeff Law <law@redhat.com>
e7afe656 1488 Steven Bosscher <stevenb@suse.de>
be477406
JL
1489
1490 * tree-cfg.c (find_taken_edge_computed_goto): New function.
1491 (find_taken_edge): Call find_taken_edge_computed_goto as
1492 appropriate. Allow any gimple invariant rather than just
1493 INTEGER_CST for VAL.
1494 (cleanup_control_flow): Cleanup a computed goto which has turned
1495 into a simple goto.
1496 (tree_merge_blocks): If block B has any forced labels, move
1497 them to the start of block A.
1498 * tree-ssa-dom.c (thread_across_edge): Allow threading across
1499 computed gotos as well.
1500 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
1501 removal of unnecessary computed gotos too.
1502 (lookup_redirection_data): Fix type of INSERT argument. Callers
1503 updated.
1504
0385f644
KH
15052005-03-08 Kazu Hirata <kazu@cs.umass.edu>
1506
1507 * tree-ssa-phiopt.c: Update copyright. Fix indentations.
1508 Remove trailing spaces.
1509
c24b7de9
KH
1510 * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
1511 unshare_all_trees): Make them static.
1512 * tree-gimple.h: Remove the corresponding prototypes.
1513
2863ddd2
KH
1514 * diagnostic.h: Remove unused prototype
1515 debug_output_buffer.
1516 * modulo-sched.c: Remove unused prototype
1517 set_row_column_for_ps.
1518
58261bc2
KH
1519 * tree-ssa-phiopt.c (tree_ssa_phiopt,
1520 replace_phi_edge_with_variable): Remove unused variable i.
1521
685ae8c9
PB
15222005-03-07 Per Bothner <per@bothner.com>
1523
1524 * tree.h (DECL_IS_BUILTIN): Reverted my patch from earlier today.
1525
80c4ed35 15262005-03-06 Andrew Pinski <pinskia@physics.uc.edu>
a1286ef5 1527
80c4ed35
AP
1528 PR tree-opt/17671
1529 * tree-ssa-phiopt.c (tree_ssa_phiopt): Rewrite so we base the
1530 bbs on the COND_EXPR instead of the PHI_NODEs.
1531 (candidate_bb_for_phi_optimization): Remove.
1532 (replace_phi_with_stmt): Rename to ...
1533 (replace_phi_edge_with_variable): this and change so that we
1534 replace the phi argument instead of removing the PHI.
1535 (conditional_replacement): Change so we deal with PHI with more
1536 than two arguments.
1537 (value_replacement): Likewise.
1538 (abs_replacement): Likewise.
1539
64022b5d
AH
15402005-03-07 Aldy Hernandez <aldyh@redhat.com>
1541
1542 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_eq_bit to
1543 output_e500_flip_gt_bit.
1544
1545 * config/rs6000/rs6000.c (print_operand): case D: Print out bit 31
1546 as bit 31.
1547 (rs6000_generate_compare): Fix logic to look at the correct bits.
1548 (output_e500_flip_eq_bit): Rename to output_e500_flip_gt_bit.
1549 Look at GT bit.
1550 (rs6000_emit_sCOND): Rename gen_e500_flip_eq_bit to
1551 gen_e500_flip_gt_bit. Rename gen_move_from_CR_eq_bit to
1552 gen_move_from_CR_gt_bit.
1553
1554 * config/rs6000/rs6000.md ("move_from_CR_eq_bit"): Change bit
1555 ("move_from_CR_eq_bit"): Rename to move_from_CR_gt_bit.
1556 (UNSPEC_MV_CR_EQ): Rename to UNSPEC_MV_CR_GT.
1557
1558 * config/rs6000/spe.md ("e500_cr_ior_compare"): New.
1559 (E500_CR_IOR_COMPARE): New constant.
1560
5fa09df4
EC
15612005-03-08 Earl Chew <earl_chew@agilent.com>
1562 David Billinghurst <David.Billinghurst@riotinto.com>
1563
1564 * config/i386/host-cygwin.c: New file to support precompiled
1565 headers on cygwin
1566 * config/i386/x-cygwin: Use host-cygwin.c on cygwin host
1567 * config.host: Use above files for cygwin host.
1568
92db3ec9
DE
15692005-03-07 David Edelsohn <edelsohn@gnu.org>
1570
1571 * fold-const.c (fold_binary_op_with_conditional_arg): Fix typo
1572 ordering ops from earlier change.
1573
dbce1570
PB
15742005-03-07 Per Bothner <per@bothner.com>
1575
1576 Various fixes to allow us to again build if --enable-mapped-location:
1577 * c-decl.c (finish_function): Use SET_EXPR_LOCATION instead of
1578 unavailable annotate_with_file_line, if USE_MAPPED_LOCATION.
1579 * tree-cfg.c (remove_bb): If USE_MAPPED_LOCATION, change type of
1580 local variable loc. Change logic appropriately.
1581 * tree-vect-transform.c (vect_finish_stmt_generation): Use
a1286ef5 1582 EXPR_LOCATION rather than EXPR_LOCUS if USE_MAPPED_LOCATION.
dbce1570
PB
1583 * c-parser.c (c_parser_for_statement): Initialize loc variable.
1584 * tree.h (DECL_IS_BUILTIN): Temporarily revert definition of
1585 DECL_IS_BUILTIN in the USE_MAPPED_LOCATION because of jc1 issues.
1586
1de80b0e
RS
15872005-03-07 Richard Sandiford <rsandifo@redhat.com>
1588
1589 PR rtl-optimization/19683
1590 * reload1.c (choose_reload_regs): Pass the number of bits, not the
1591 number of bytes, to smallest_int_for_mode. Fix arguments to
1592 REG_CANNOT_CHANGE_MODE_P.
1593
4cdc2a35
EB
15942005-03-07 Eric Botcazou <ebotcazou@libertysurf.fr>
1595
1596 * reorg.c (relax_delay_slots): Check that the jump is
1597 conditional before trying to invert it.
1598
cd735ab8
KH
15992005-03-07 Kazu Hirata <kazu@cs.umass.edu>
1600
1601 * bb-reorder.c (max_entry_frequency, max_entry_frequency):
1602 Make them static.
1603
0405cc0e
KH
1604 * calls (stack_arg_under_construction): Make it static.
1605
fa8718d7
KH
1606 * flow.c (regs_live_at_setjmp): Make it static.
1607 * flow.h: Remove the corresponding prototype.
1608
cf0fa607
KH
1609 * reload1.c (reload_startobj, reload_firstobj,
1610 something_needs_operands_changed, reload_inherited,
1611 reload_inheritance_insn, reload_override_in,
1612 reload_spill_index): Make them static.
1613
6db31844
KH
1614 * recog.c (verify_changes): Make it static.
1615 * recog.h: Remove the corresponding prototype.
1616
12eff7b7
KH
1617 * cfgbuild.c (find_sub_basic_blocks): Remove.
1618 * basic-block.h: Remove the corresponding prototype.
1619 * cfgexpand.c, cfgrtl.c: Don't mention find_sub_basic_blocks
1620 in comments.
1621 * doc/cfg.texi: Don't mention find_sub_basic_blocks.
1622
249e538f
KH
1623 * tree-ssa-operands.c (check_build_stmt): Remove.
1624
2e56d969
KH
1625 * stor-layout.c (set_alignment): Remove.
1626 * tree.h: Remove the corresponding prototype.
1627
d4222d43
KH
1628 * tree-ssa-pre.c (has_abnormal_preds): Make it static.
1629
8c80c4aa
KH
1630 * tree-ssa-dce.c (control_dependence_map,
1631 visited_control_parents): Make them static.
1632
50f63b1a
KH
1633 * cfghooks.c (verify_flow_info): Remove local variable
1634 num_bb_notes.
1635
94eb5ddb
KH
1636 * cfgrtl.c (rtl_verify_flow_info_1): Remove local variable
1637 last_bb_seen.
1638
0d48fcd1
KH
1639 * loop-unswitch.c (unswitch_loop): Remove local variable src.
1640
01c65e8a
DB
16412005-03-07 David Billinghurst <David.Billinghurst@riotinto.com>
1642
1643 * config/i386/cygwin1.c(mingw_scan): Use xstrdup in calls to putenv.
1644
543144ed
JM
16452005-03-07 Joseph S. Myers <joseph@codesourcery.com>
1646
1647 * config/ia64/hpux.h (LINK_SPEC): Add -z.
1648 * config/ia64/ia64.c (ia64_function_value): Return a REG not a
1649 PARALLEL for an empty structure.
1650
209eaaff
KH
16512005-03-07 Kazu Hirata <kazu@cs.umass.edu>
1652
1653 * fold-const.c (fold_binary): Remove handling of RANGE_EXPR.
1654
1eaea409
KH
1655 * fold-const.c (fold_binary): Unroll the very first "for"
1656 loop.
1657
ede62875
DE
16582005-03-06 David Edelsohn <edelsohn@gnu.org>
1659
1660 * config/rs6000/predicates.md (branch_comparison_operator): Remove
1661 redundant match_code test.
1662 (scc_comparison_operator): Swap match_operand and match_code
1663 tests.
1664 (branch_positive_comparison_operator): Same.
1665 (trap_comparison_operator): Use comparison_operator and swap with
1666 match_code test.
1667
a6990185
MM
16682005-03-06 Marek Michalkiewicz <marekm@amelek.gda.pl>
1669
1670 PR target/20288
1671 * config/avr/avr.c (print_operand): Add 'p' and 'r'.
1672 (out_movhi_r_mr): Read low byte of volatile MEM first.
1673 (out_movhi_mr_r): Write high byte of volatile MEM first.
1674
5211d65a
KH
16752005-03-05 Kazu Hirata <kazu@cs.umass.edu>
1676
1677 * cselib.c (reg_values, reg_values_size): Make them static.
f00822b2
KH
1678
1679 * cse.c (cse_reg_info_table): Make it static.
5211d65a 1680
c1a408fd
KH
1681 * fold-const.c (fold_unary): Use build1 instead of copy_node.
1682
21cf294f
ZD
16832005-03-06 Zdenek Dvorak <dvorakz@suse.cz>
1684
1685 * cse.c (find_best_addr): Use canon_for_address.
1686
25910ca4
KH
16872005-03-06 Kazu Hirata <kazu@cs.umass.edu>
1688
1689 * cse.c (fold_rtx_subreg, fold_rtx_mem): New.
1690 (fold_rtx): Call fold_rtx_subreg and fold_rtx_mem to handle
1691 SUBREG and MEM, respectively.
1692
c933f71e
KH
1693 * fold-const.c (fold_binary): Use code instead of t.
1694
d7e5b287
KH
1695 * fold-const.c (optimize_minmax_comparison): Take decomposed
1696 arguments code, type, op0, and op1 instead of t.
1697 (fold_binary): Update a call to optimize_minmax_comparison.
1698
e1f04615
KH
1699 * fold-const.c (fold_range_test): Take decomposed arguments
1700 code, type, op0, and op1 instead of t.
1701 (fold_binary): Update a call to fold_range_test.
1702
e9da788c
KH
1703 * fold-const.c (fold_binary_op_with_conditional_arg): Take
1704 decomposed arguments code, type, op0, and op1 instead of t.
1705 (fold_binary): Update a call to fold_range_test.
1706
71047303
KH
17072005-03-06 Kazu Hirata <kazu@cs.umass.edu>
1708
1709 * fold-const.c (fold_binary): Avoid directly using the original
1710 expression t as much as possible.
1711
3f724eb8
KH
17122005-03-05 Kazu Hirata <kazu@cs.umass.edu>
1713
1714 * c-semantics.c (build_stmt): Use TYPE_P instead of
1715 IS_NON_TYPE_CODE_CLASS.
1716 * tree.h (IS_NON_TYPE_CODE_CLASS): Remove.
1717 (NON_TYPE_CHECK): Use TYPE_P instead of
1718 IS_NON_TYPE_CODE_CLASS.
1719
75505450
KH
1720 * fold-const.c (fold): Remove handling of binary expressions.
1721
12bcfaa1
JM
17222005-03-05 James A. Morrison <phython@gcc.gnu.org>
1723
1724 * doc/c-tree.texi: Wrap comments in @r{}.
1725 * doc/cpp.texi: Likewise.
1726 * doc/cppinternals.texi: Likewise.
1727 * doc/extend.texi: Likewise.
1728 * doc/md.texi: Likewise.
1729 * doc/objc.texi: Likewise.
1730 * doc/sourcebuild.texi: Likewise.
1731 * doc/tm.texi: Likewise.
1732 * doc/tree-ssa.texi
1733
52c3e649
KH
17342005-03-05 Kazu Hirata <kazu@cs.umass.edu>
1735
1736 * predict.c (apply_return_prediction): Standardize PHI chain
1737 walking.
1738 * tree-ssa.c (ssa_redirect_edge): Likewise.
1739
25f99665
KH
1740 * genattrtab.c, genemit.c, genoutput.c, genrecog.c,
1741 gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
1742 Update copyright.
1743
d19e3ef6
KH
1744 * tree-phinodes.c (remove_phi_node): Drop the last argument.
1745 * tree-flow.h: Adjust the prototype for remove_phi_node.
1746 * lambda-code.c (perfect_nestify): Adjust a call to
1747 remove_phi_node.
1748 * tree-cfg.c
1749 (remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
1750 * tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
1751 Likewise.
1752 * tree-ssa-dce.c (remove_dead_phis): Likewise.
1753 * tree-ssa-loop-ivopts.c (remove_statement): Likewise.
1754 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
1755 * tree-ssa.c (kill_redundant_phi_nodes): Likewise.
1756
bb80db7b
KH
1757 * combine.c (simplify_and_const_int): Use gen_int_mode instead
1758 of GEN_INT (trunc_int_for_mode (...)).
1759 * loop-iv.c (iv_number_of_iterations): Likewise.
1760 * postreload.c (reload_cse_move2add): Likewise.
1761 * simplify-rtx.c (simplify_const_unary_operation,
1762 simplify_const_binary_operation): Likewise.
1763 * stor-layout.c (get_mode_bounds): Likewise.
1764
0aee4751
KH
1765 * fold-const.c (fold_binary): New.
1766 (fold): Call fold_binary on binary expressions.
1767
acda0e26
RS
17682005-03-05 Richard Sandiford <rsandifo@redhat.com>
1769
1770 * doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
1771 * config/mips/mips.h (MASK_SYM32, TARGET_SYM32): New macros.
1772 (TARGET_SWITCHES): Add -msym32 and -mno-sym32.
1773 (ABI_HAS_64BIT_SYMBOLS): Set to false if TARGET_SYM32.
1774 (ASM_SPEC): Pass down -msym32 and -mno-sym32.
1775
537a2904 17762005-03-04 Devang Patel <dpatel@apple.com>
a1286ef5 1777
537a2904
DP
1778 PR tree-optimization/18815
1779 * tree-if-conv.c (combine_blocks): Adjust loop header edges for
1780 loops with zero exit edges.
1781
c533f56b
DP
17822005-03-04 Devang Patel <dpatel@apple.com>
1783
1784 * doc/invoke.texi: Remove reference to webpage that does not exist.
a1286ef5 1785
744b2d61
JDA
17862005-03-04 John David Anglin <dave.danglin@nrc-cnrc.gc.ca>
1787 Joseph S. Myers <joseph@codesourcery.com>
1788
1789 PR c++/19797
0022eee3 1790 * pa/elf.h, pa64-hpux.h, som.h (ASM_OUTPUT_EXTERNAL_REAL): Define.
744b2d61
JDA
1791 (ASM_OUTPUT_EXTERNAL): Call pa_hpux_asm_output_external.
1792 * pa-protos.h (pa_hpux_asm_output_external): Add prototype.
1793 * pa.c (get_plabel): Change argument to symbol_ref. Call
1794 maybe_get_identifier instead of get_identifier.
1795 (pa_hpux_asm_output_external, pa_hpux_file_end): New functions.
1796 (struct deferred_plabel): Replace name field with symbol field.
1797 (TARGET_ASM_FILE_END): Define as pa_hpux_file_end if
1798 ASM_OUTPUT_EXTERNAL_REAL is defined.
1799 (output_global_address): Use output_addr_const for output of all
1800 symbol_refs.
1801 (output_deferred_plabels): Use symbol_ref instead of name for address
1802 output.
1803 * pa.h (SYMBOL_FLAG_REFERENCED, SYMBOL_REF_REFERENCED_P,
1804 ASM_OUTPUT_SYMBOL_REF): New macros.
1805 * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use assemble_name_raw. Update
1806 comment.
1807 (ASM_WEAKEN_LABEL): Use targetm.asm_out.globalize_label to globalize
1808 label.
1809
1fb641a1
JM
18102005-03-05 Joseph S. Myers <joseph@codesourcery.com>
1811
1812 * config.gcc (hppa*64*-*-hpux11*): Use pa/pa-hpux1111.h for
1813 *-*-hpux11.[1-9]*, not just for *-*-hpux11.11.
1814
d38ffc55
JL
18152005-03-04 Jeff Law <law@redhat.com>
1816
1817 * basic-block.h (rediscover_loops_after_threading): Declare.
1818 * tree-ssa-dom.c: Include cfgloop.h.
1819 (tree_ssa_dominator_optimize): Discover loops and some basic
1820 properties. Remove forwarder blocks recreated by loop header
1821 canonicalization. Also mark backedges in the CFG.
1822 * tree-ssa-threadupdate.c: Include cfgloop.h
1823 (rediscover_loops_after_threading): Define.
1824 (struct local_info): New field, JUMP_THREADED.
1825 (prune_undesirable_thread_requests): New function.
1826 (redirect_edges): Clear EDGE_ABNORMAL. If edges were threaded
1827 then record that fact for the callers of redirct_edges.
1828 (thread_block): If BB has incoming backedges, then call
1829 prune_undesirable_thraed_requests. Note when we are
1830 going to have to rediscover loop information. Return a
1831 boolean indicating if any jumps were threaded.
1832 (thread_through_all_blocks): Bubble up boolean indicating
1833 if any jumps were threaded.
1834 * Makefile.in (tree-ssa-dom.o): Depend on cfgloop.h
1835 (tree-ssa-threadupdate.o): Similarly.
1836
3ea2c264
KH
18372005-03-04 Kazu Hirata <kazu@cs.umass.edu>
1838
1839 * fold-const.c (fold_ternary): Unroll the "for" loop to
a1286ef5 1840 extract operands.
3ea2c264 1841
b120f3b7
AH
18422005-03-04 Andrew Haley <aph@redhat.com>
1843
1844 * unwind-dw2-fde-glibc.c (struct
1845 unw_eh_callback_data.check_cache): New field.
1846 (frame_hdr_cache): New.
1847 (_Unwind_IteratePhdrCallback): Add ext_dl_phdr_info.
1848 Cache frame header info.
1849
7445392c
RS
18502005-03-04 Richard Sandiford <rsandifo@redhat.com>
1851
1852 * rtl.h (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
1853 (print_c_condition): Declare.
1854 * read-rtl.c (ptr_loc): New structure.
1855 (ptr_locs, ptr_loc_obstack, joined_conditions)
1856 (joined_conditions_obstack): New variables.
1857 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc)
1858 (get_rtx_ptr_loc, copy_rtx_ptr_loc, print_rtx_ptr_loc)
1859 (join_c_conditions, print_c_condition): New functions.
1860 (apply_macro_to_string): Associate the new string with the same
1861 source location as the old one.
1862 (add_condition_to_string): Use join_c_conditions.
1863 (read_string): Use set_rtx_ptr_loc to record a filename and line
1864 number for the string.
1865 (read_rtx): Initialize the new variables above.
1866 * genattrtab.c (write_test_expr, write_attr_value): Use
1867 print_c_condition.
1868 * genconditions.c (write_header): Don't define MAYBE_EVAL. Move its
1869 comment above the GCC_VERSION check.
1870 (write_one_condition): Use print_rtx_ptr_loc and print_c_condition.
1871 Inline the definition of MAYBE_EVAL.
1872 * genemit.c (gen_expand, gen_split): Use print_rtx_ptr_loc.
1873 * genoutput.c (process_template): Likewise.
1874 * genpreds.c (write_predicate_subfunction): Likewise.
1875 (write_predicate_expr): Use print_c_condition.
1876 * genrecog.c (write_cond): Likewise.
1877 * gensupport.c (process_rtx): Use join_c_conditions to join the
1878 conditions of a define_insn_and_split. Record a source location
1879 for the string after the "&&".
1880 (alter_test_for_insn): Use join_c_conditions.
1881
93516733
AP
18822005-03-04 Andrew Pinski <pinskia@physics.uc.edu>
1883
1884 Revert for now:
1885 2005-03-03 James A. Morrison <phython@gcc.gnu.org>
1886 PR tree-optimization/15784
cbefb99c 1887 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
93516733
AP
1888 and -1 - A to ~A.
1889
ee4c708e
BE
18902005-03-04 Ben Elliston <bje@au.ibm.com>
1891
1892 * gcc.c (option_map): Add --coverage.
1893 (LINK_COMMAND_SPEC): Pass -lgcov for `coverage'.
1894 (cc1_options): Pass -fprofile-arcs -ftest-coverage for `coverage'.
1895 * config/darwin.h: Pass -lgcov for `coverage'.
1896 * doc/invoke.texi (Debugging Options): Document --coverage.
1897
c7d1b449
KH
18982005-03-04 Kazu Hirata <kazu@cs.umass.edu>
1899
1900 * gcse.c (bypass_block): Use find_edge wherever possible.
1901
3c0d1020
DB
19022005-03-03 Daniel Berlin <dberlin@dbrelin.org>
1903
1904 Fix PR debug/20253
a1286ef5 1905
3c0d1020
DB
1906 * c-opts.c (c_common_parse_file): Call start_source_file
1907 and end_source_file at the approriate times.
1908
1909 * dwarf2out.c (dwarf2out_finish): Don't auto-end
1910 the main file, it will be done for us now.
a1286ef5 1911
9bdae6af
KH
19122005-03-04 Kazu Hirata <kazu@cs.umass.edu>
1913
1914 * fold-const.c (fold_ternary): New.
1915 (fold): Call fold_ternary on ternary expressions. Remove
1916 handling of ternary expressions.
1917
8d06c809
JM
19182005-03-03 James A. Morrison <phython@gcc.gnu.org>
1919
1920 PR tree-optimization/15784
cbefb99c 1921 * fold-const.c (fold): Fold ~A + 1 to -A. Fold -A - 1
8d06c809
JM
1922 and -1 - A to ~A.
1923
57a71826
DE
19242005-03-03 David Edelsohn <edelsohn@gnu.org>
1925
1926 * config/rs6000/predicates.md (branch_comparison_operator):
1927 Convert from C block to conditional format.
1928
59c982fe
JH
19292005-03-03 Jan Hubicka <jh@suse.cz>
1930
1931 * tree-dfa.c (add_referenced_var): Don't walk initializer of external
1932 and non-constant public variables.
1933
229cc11f
KH
19342005-03-03 Kazu Hirata <kazu@cs.umass.edu>
1935
1936 * tree-cfg.c (stmt_starts_bb_p): Clean up by replacing code
1937 with LABEL_EXPR.
1938
8fb790fd
KH
1939 * cfgexpand.c (construct_exit_block): Use EDGE_PRED instead of
1940 EDGE_I.
1941
4430da7f
KH
1942 * tree-phinodes.c (remove_phi_node): Clean up by factoring out
1943 calls to release_ssa_name and release_phi_node.
1944
af85b8e4
KH
1945 * fold-const.c (fold): Remove handling of unary expressions.
1946
4b58fc4d
KH
1947 * fold-const.c (fold_unary): Avoid directly using the original
1948 expression t as much as possible.
1949
9550206b
RS
19502005-03-03 Roger Sayle <roger@eyesopen.com>
1951 Andrew Pinski <pinskia@physics.uc.edu>
1952
1953 * jump.c (redirect_exp_1): If nlabel is a NULL pointer create a
1954 RETURN rtx, and not a LABEL_REF containing a NULL pointer.
1955
f60c7155
HPN
19562005-03-03 Hans-Peter Nilsson <hp@axis.com>
1957
1958 Describe special registers SRP and MOF as allocatable registers.
1959 * config/cris/cris.c (cris_md_asm_clobbers): New function.
1960 (TARGET_MD_ASM_CLOBBERS): Define to cris_md_asm_clobbers.
1961 (cris_conditional_register_usage): Enable CRIS_MOF_REGNUM if
1962 TARGET_HAS_MUL_INSNS.
1963 (cris_print_operand) <case 'd'>: New case.
1964 <case REG>: Allow CRIS_MOF_REGNUM and CRIS_SRP_REGNUM.
1965 * config/cris/cris.h (CRIS_PC_REGNUM, CRIS_SRP_REGNUM): Don't
1966 define.
1967 (FIRST_PSEUDO_REGISTER, FIXED_REGISTERS, CALL_USED_REGISTERS)
1968 (REG_ALLOC_ORDER): Update for MOF.
1969 (enum reg_class): New members MOF_REGS, GENERAL_REGS and
1970 SPECIAL_REGS.
1971 (GENERAL_REGS): No longer a define of ALL_REGS.
1972 (REGNO_REG_CLASS, REG_CLASS_CONTENTS, REG_CLASS_NAMES)
1973 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
1974 Adjust accordingly.
1975 (CRIS_SPECIAL_REGS_CONTENTS): New macro.
1976 (REG_CLASS_FROM_LETTER): Allocate 'h' and 'x'.
1977 (SECONDARY_RELOAD_CLASS): Define.
1978 (STACK_POINTER_REGNUM): Define as CRIS_SP_REGNUM.
1979 (FRAME_POINTER_REGNUM): Define as CRIS_FP_REGNUM.
1980 (ARG_POINTER_REGNUM): Define as CRIS_AP_REGNUM.
1981 (STATIC_CHAIN_REGNUM): Define as CRIS_STATIC_CHAIN_REGNUM.
1982 (REGISTER_MOVE_COST): Define.
1983 (PIC_OFFSET_TABLE_REGNUM): Define in terms of CRIS_GOT_REGNUM.
1984 * config/cris/cris.md (CRIS_GOT_REGNUM, CRIS_STATIC_CHAIN_REGNUM)
1985 (CRIS_FP_REGNUM, CRIS_SP_REGNUM, CRIS_SRP_REGNUM, CRIS_AP_REGNUM)
1986 (CRIS_MOF_REGNUM): New define_constants.
1987 ("*movsi_internal", "movhi", "movqi", "movsf"): Add alternatives for
1988 special registers.
2a60a1b1
HPN
1989 ("reload_inhi", "reload_outhi", "reload_inqi", "reload_outqi"):
1990 New patterns.
f60c7155
HPN
1991 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3")
1992 ("mulsidi3", "umulsidi3", "smulsi3_highpart", "umulsi3_highpart"):
1993 Adjust for MOF being properly described as a register.
1994 (indir_to_reg_split): Name this split. Conditionalize on the
1995 destination register being a general register.
1996 (movei): Conditionalize on on operands 0 and 1 having the same
1997 register class.
1998
768875a8
AM
19992005-03-03 Alan Modra <amodra@bigpond.net.au>
2000
2001 PR target/20277
2002 * config/rs6000/rs6000.c (rs6000_override_options): Don't allow
2003 -mcpu to override any other explicitly given flags.
2004
0a634832
R
20052005-03-02 J"orn Rennecke <joern.rennecke@st.com>
2006
2007 * recog.c (verify_changes, confirm_change_group): New functions,
2008 broken out of apply_change_group.
2009 (apply_change_group): Use them.
2010 * recog.h (verify_change, confirm_change_group): Declare.
2011 * rtl.h (redirect_jump_2): Declare.
2012 * jump.c (redirect_exp, invert_exp): Delete.
2013 (invert_exp_1): Take second parameter. Return value. Changed caller.
2014 (redirect_jump_2): New function, broken out of redirect_jump.
2015 (redirect_jump): Use redirect_jump_1 and redirect_jump_2.
2016 (invert_jump): Use invert_jump_1 and redirect_jump_2.
2017 * ifcvt.c (dead_or_predicable): Use redirect_jump_2.
2018
0aca3a61
GK
20192005-03-02 Geoffrey Keating <geoffk@apple.com>
2020
7df74013
GK
2021 * varasm.c (named_section): Use xstrdup rather than doing it by
2022 hand.
2023
0aca3a61
GK
2024 * config/darwin8.h (LIB_SPEC): Switch -lmx and -lSystem.
2025
2af51b88 20262005-03-02 Devang Patel <dpatel@apple.com>
a1286ef5 2027
2af51b88 2028 Undo PR tree-optimization/18815 fix.
a1286ef5 2029
ac0bd801
DP
20302005-03-02 Devang Patel <dpatel@apple.com>
2031
2032 PR tree-optimization/18815
2033 * tree-if-conv.c (combine_blocks): Adjust loop header edges for
2034 loops with zero exit edges.
a1286ef5 2035
adf4a335
KH
20362005-03-02 Kazu Hirata <kazu@cs.umass.edu>
2037
2038 * cfg.c (connect_src, connect_dest, disconnect_src,
2039 disconnct_dest): New.
2040 (unchecked_make_edge, remove_edge, redirect_edge_succ,
2041 redirect_edge_pred): Use the new functions.
2042
13396b14
KH
2043 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Call
2044 free_dominance_info only when needed.
2045
94dcded2
DE
20462005-03-02 David Edelsohn <edelsohn@gnu.org>
2047
2048 PR target/20276
2049 * config/rs6000/predicates.md (reg_or_cint64_operand): Fix typo.
2050 (reg_or_sub_cint64_operand): Same.
2051
68023570
JL
20522005-03-02 Jeff Law <law@redhat.com>
2053
2054 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Fix setting of
2055 CFG_ALTERED in the main DOM iteration loop.
2056
9560cbde
MM
20572005-03-02 Mark Mitchell <mark@codesourcery.com>
2058
2059 PR c++/19916
2060 * varasm.c (initializer_constant_valid_p): Allow conversions
2061 between OFFSET_TYPEs. Tidy.
2062
bf95bc65
HPN
20632005-03-02 Hans-Peter Nilsson <hp@axis.com>
2064
2065 * config/cris/cris.md ("return"): Remove epilogue delay list
2066 sanity check.
2067
f92ba6d1
DJ
20682005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2069
2070 * config/arm/linux-elf.h (ARM_FUNCTION_PROFILER): Do not use (PLT)
2071 for Thumb.
2072 * config/arm/netbsd-elf.h (ARM_FUNCTION_PROFILER): Likewise.
2073
613c5cd0
KH
20742005-03-02 Kazu Hirata <kazu@cs.umass.edu>
2075
2076 * cfgloop.h, cfgloopanal.c, cfgloopmanip.c, conflict.c,
2077 loop-init.c, loop-unroll.c, print-tree.c, reg-notes.def,
2078 config/m68k/m68k.c, config/mips/mips.h,
2079 config/rs6000/rs6000-protos.h, doc/contrib.texi,
2080 doc/include/gcc-common.texi: Update copyright.
2081
92fb2d32
KH
2082 PR middle-end/18029 and PR middle-end/18030
2083 * expr.c (optimize_bitfield_assignment_op): Add a special case
2084 to handle BIT_IOR_EXPR and BIT_XOR_EXPR.
2085
659d8efa
KH
2086 * fold-const.c (fold_unary): New.
2087 (fold): Call fold_unary on unary expressions.
2088
2563c224
RG
20892005-03-02 Richard Guenther <rguenth@gcc.gnu.org>
2090
2091 * cgraph.h (struct cgraph_edge): Add prev_caller and
2092 prev_callee fields.
2093 (cgraph_node_remove_callees): Export.
2094 * cgraph.c (cgraph_create_edge): Initialize prev_caller
2095 and prev_callee.
2096 (cgraph_edge_remove_callee): New function.
2097 (cgraph_edge_remove_caller): Likewise.
2098 (cgraph_remove_edge): Use.
2099 (cgraph_redirect_edge_callee): Likewise.
2100 (cgraph_node_remove_callees): New function.
2101 (cgraph_node_remove_callers): Likewise.
2102 (cgraph_remove_node): Use.
2103 * tree-optimize.c (tree_rest_of_compilation): Use
2104 cgraph_node_remove_callees instead of manual loop.
2105 * cgraphunit.c (cgraph_finalize_function): Likewise.
2106 (cgraph_expand_function): Likewise.
2107 (cgraph_remove_unreachable_nodes): Likewise.
2108
766beb40
JM
21092005-03-02 Joseph S. Myers <joseph@codesourcery.com>
2110
2111 PR c/8927
2112 * c-tree.h (undeclared_variable, build_external_ref): Add extra
2113 argument.
2114 * c-decl.c (undeclared_variable): Take location as argument.
2115 * c-typeck.c (build_external_ref): Likewise.
2116 * c-parser.c (c_parser_postfix_expression): Pass location of
2117 identifier to build_external_ref.
2118
364849ee
DE
21192005-03-01 David Edelsohn <edelsohn@gnu.org>
2120
2121 * config/rs6000/rs6000.md (cceq splitter): Use operand mode, not
2122 CCEQ mode for branch_positive_comparison_operator test.
2123 * config/rs6000/predicates (branch_comparison_operator): Revert to
2124 define_predicate.
2125 (scc_comparison_operator): Same.
2126 (branch_positive_comparison_operator): Same.
2127
b6c8b412
HPN
21282005-03-01 Hans-Peter Nilsson <hp@axis.com>
2129
2130 * config/cris/cris.c (cris_eligible_for_epilogue_delay)
2131 (cris_delay_slots_for_epilogue): Remove.
2132 (save_last): Move into cris_target_asm_function_epilogue.
2133 (cris_target_asm_function_epilogue): Remove tests for file being
2134 NULL.
2135 * config/cris/cris-protos.h (cris_eligible_for_epilogue_delay)
2136 (cris_delay_slots_for_epilogue): Remove prototypes.
2137 * config/cris/cris.h (DELAY_SLOTS_FOR_EPILOGUE)
2138 (ELIGIBLE_FOR_EPILOGUE_DELAY): Do not define.
2139
4a80dc82
DE
21402005-03-01 David Edelsohn <edelsohn@gnu.org>
2141
2142 * config/rs6000/predicates.md (branch_comparison_operator): Change
2143 to define_special_predicate.
2144 (scc_comparison_operator): Same.
2145 (branch_positive_comparison_operator): Same.
2146
fa555252
DB
21472005-03-01 Daniel Berlin <dberlin@dberlin.org>
2148
2149 * Makefile.in (tree-ssa-sink.o): New.
2150 (OBJS-common): Add tree-ssa-sink.o.
2151 * common.opt: Add -ftree-sink
2152 * opts.c (decode_options): flag_tree_sink is set at O1 or higher.
2153 * timevar.def (TV_TREE_SINK): new timevar.
2154 * tree-flow.h (is_hidden_global_store): Prototype.
2155 * tree-optimize.c (init_tree_optimization_passes): Add
2156 pass_sink_code.
2157 * tree-pass.h (pass_sink_code): New.
2158 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Move checking
2159 for non-obvious global store store to is_hidden_global_store, and
2160 call that new function.
2161 * tree-ssa-sink.c: New file.
2162 * doc/invoke.texi: Document -fdump-tree-sink and -ftree-sink.
2163 * doc/passes.texi: Document forward store motion.
2164 * testsuite/gcc.dg/tree-ssa/ssa-sink-1.c: New test
2165 * testsuite/gcc.dg/tree-ssa/ssa-sink-2.c: New test
2166 * testsuite/gcc.dg/tree-ssa/ssa-sink-3.c: New test
2167 * testsuite/gcc.dg/tree-ssa/ssa-sink-4.c: New test
2168
255508dd
PB
21692005-03-01 Per Bothner <per@bothner.com>
2170
2171 * diagnostic.c (diagnostic_build_prefix): If USE_MAPPED_LOCATION
2172 and we have a non-zero column-number, add it to the message.
2173 Also factor out the diagnostic_kind_text.
2174
70388d94
ZD
21752005-03-01 Zdenek Dvorak <dvorakz@suse.cz>
2176
2177 * cfgloop.c (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2178 flow_loop_pre_header_scan, flow_loop_pre_header_find,
2179 flow_loop_scan): Removed.
2180 (flow_loop_dump): Do not dump removed fields.
2181 (flow_loop_free): Do not free removed fields.
2182 (flow_loops_find): Flags argument removed. Do not call flow_loop_scan.
2183 (loop_exit_edge_p): New function.
2184 * cfgloop.h (struct loop): Removed fields pre_header, pre_header_edges,
2185 num_pre_header_edges, entry_edges, num_entries, exit_edges,
2186 num_exits, exits_doms.
2187 (LOOP_TREE, LOOP_PRE_HEADER, LOOP_ENTRY_EDGES, LOOP_EXIT_EDGES,
2188 LOOP_EDGES, LOOP_ALL): Removed.
2189 (flow_loop_scan): Declaration removed.
2190 (loop_exit_edge_p, mark_loop_exit_edges): Declare.
2191 * cfgloopmanip.c (create_loop_notes): Do not pass flags to
2192 flow_loops_find.
2193 * ifcvt.c (mark_loop_exit_edges): Moved to cfgloopanal.c.
2194 (if_convert): Call flow_loops_find and flow_loops_free
2195 when calling mark_loop_exit_edges.
2196 * cfgloopanal.c (mark_loop_exit_edges): Moved from
2197 ifcvt.c. Removed the flow_loops_find, flow_loops_free and
2198 free_dominance_info calls.
2199 * loop-init.c (flow_loops_find): Ditto.
2200 * passes.c (rest_of_handle_branch_prob): Ditto.
2201 * lambda-code.c (perfect_nestify): Do not call flow_loops_find.
2202 * loop-unroll.c (analyze_insns_in_loop): Do not use
2203 EDGE_LOOP_EXIT.
2204 * predict.c (predict_loops): Do not call flow_loop_scan.
2205 Use get_loop_exit_edges.
2206 (tree_estimate_probability): Do not pass flags to flow_loops_find.
2207 * tree-if-conv.c (bb_with_exit_edge_p): Take loop as argument.
2208 Do not use EDGE_LOOP_EXIT.
2209 (tree_if_convert_cond_expr, if_convertible_modify_expr_p): Pass loop
2210 to bb_with_exit_edge_p.
2211 (if_convertible_loop_p): Do not call flow_loop_scan. Use
2212 loop->single_exit. Do not use EDGE_LOOP_EXIT. Pass loop
2213 to bb_with_exit_edge_p.
2214 (combine_blocks): Pass loop to bb_with_exit_edge_p. Do not use
2215 EDGE_LOOP_EXIT.
2216 * tree-loop-linear.c (linear_transform_loops): Do not call
2217 flow_loop_scan. Use loop->single_exit.
2218 * tree-vect-analyze.c (vect_analyze_operations): Use loop->single_exit.
2219 (vect_analyze_loop_form): Do not call flow_loop_scan.
2220 * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Use
2221 loop->single_exit.
2222 (vect_do_peeling_for_loop_bound): Use loop_preheader_edge and
2223 loop->single_exit.
2224 * tree-vectorizer.c (slpeel_update_phis_for_duplicate_loop,
2225 slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
2226 slpeel_tree_duplicate_loop_to_edge_cfg,
2227 slpeel_verify_cfg_after_peeling, slpeel_tree_peel_loop_to_edge):
2228 Use loop_preheader_edge and loop->single_exit. Do not call
2229 flow_loop_scan.
2230
b279b20a
NC
22312005-03-01 Nick Clifton <nickc@redhat.com>
2232
2233 * config/arm/arm.c (thumb_find_work_register): Check all of the
2234 argument registers to see if they are free, and a couple of
2235 special cases where the last argument register but can be proved
2236 to be available during the function's prologue.
2237 (print_multi_reg, arm_compute_save_reg0_reg12_mask,
2238 output_return_instruction, emit_multi_reg_push, thumb_pushpop,
2239 thumb_unexpanded_epilogue): Use unsigned long as the type for the
2240 register bit-mask.
2241 (thumb_compute_save_reg_mask): Likewise. Also use
2242 thumb_find_work_register() to ensure that there is agreement about
2243 which work register is going to be used in the prologue.
2244 (thumb_output_function_prologue): Use unsigned long as the type
2245 for the register bit-mask. Also delay pushing the link register if
2246 other high registers are going to be pushed.
2247 (thumb_compute_save_reg_mask, emit_multi_reg_push,
2248 print_multi-reg, number_of_first_bit_set, thumb_pushpop): Remove
2249 redundant prototypes.
2250
d7459fa8
JDA
22512005-02-28 John David Anglin <dave.anglin#nrc-cnrc.gc.ca>
2252
2253 PR target/19819
2254 * pa.h (GO_IF_LEGITIMATE_ADDRESS): Allow allow hard registers during
2255 and after reload in REG+REG indexed addresses without REG_POINTER
2256 set in the base and not set in the index.
2257
65f527e0
KK
22582005-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
2259
2260 * config/sh/linux.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX):
2261 Don't undefine here.
2262 (HANDLE_PRAGMA_PACK_PUSH_POP): Delete.
2263 (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC): Likewise.
2264 (TARGET_OS_CPP_BUILTINS): Use LINUX_TARGET_OS_CPP_BUILTINS.
2265 (LIB_SPEC, LINK_EH_SPEC, STARTFILE_SPEC, ENDFILE_SPEC,
2266 LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED, TARGET_C99_FUNCTIONS):
2267 Delete.
2268 * config.gcc (sh*-*-linux*): Use config/linux.h.
2269
0b5383eb
DJ
22702005-02-28 Dale Johannesen <dalej@apple.com>
2271 Stan Shebs <shebs@apple.com>
2272
2273 Rewrite of 64-bit Darwin structure-by-value pass/return.
2274 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): New fields
2275 intoffset, use_stack, named.
2276 * config/rs6000/rs6000.c (rs6000_darwin64_function_arg): Remove.
2277 (rs6000_darwin64_record_arg_advance_flush): New.
2278 (rs6000_darwin64_record_arg_advance_recurse): New.
2279 (rs6000_darwin64_record_arg_flush): New.
2280 (rs6000_darwin64_record_arg_recurse): New.
2281 (rs6000_darwin64_record_arg): New.
2282 (rs6000_return_in_memory): Remove AGGREGATE_TYPE_P check.
2283 (function_arg_boundary): Handle 128-bit aligned structs.
2284 (function_arg_advance): Rewrite darwin64 struct handling.
2285 (function_arg): Call rs6000_darwin64_record_arg.
2286 (function_arg_partial_nregs): Handle darwin64 structs.
2287 (rs6000_darwin64_function_value): Remove.
2288 (rs6000_function_value): Call rs6000_darwin64_record_arg.
2289
1a9dddad
RS
22902005-02-28 Roger Sayle <roger@eyesopen.com>
2291
2292 PR tree-optimization/20216
2293 * tree-chrec.c (tree_fold_factorial): Delete.
2294 (tree_fold_binomial): Change argument list to take a return type
2295 and change the type of K to unsigned int. Rewrite to avoid explicit
2296 evaluation of factorials, and (recursively) calling fold to perform
2297 compile-time arithmetic. Return NULL on (internal) overflow.
2298 (chrec_evaluate): Change type of K to an unsigned int. Avoid
2299 calling tree_fold_binomial unnecessarily. Return chrec_dont_know
2300 if any intermediate calculation overflows.
2301 (chrec_apply): Update call to chrec_evaluate.
2302
f50c57ba
JW
23032005-02-28 James E Wilson <wilson@specifixinc.com>
2304
2305 * config/mips/mips.h (NO_PROFILE_COUNTERS): Define.
2306
4e3d9146
JM
23072005-02-28 Joseph S. Myers <joseph@codesourcery.com>
2308
2309 PR c/20245
2310 * c-parser.c (c_parser_compound_statement): Return error_mark_node
2311 instead of NULL_TREE on error.
2312
48d72335
DE
23132005-02-28 David Edelsohn <edelsohn@gnu.org>
2314
2315 * config/rs6000/rs6000.c (EASY_VECTOR_15): Remove.
2316 (EASY_VECTOR_15_ADD_SELF): Remove.
2317 (num_insns_constant_wide): Not static.
2318 (validate_condition_mode): Not static.
2319 (toc_relative_expr_p): Not static.
2320 (legitimate_indirect_address_p): Not static.
2321 (macho_lo_sum_memory_operand): Not static.
2322 (invalid_e500_subreg): Not static.
2323 (easy_vector_same): Not static.
2324 (easy_vector_splat_const): Not static.
2325 (RS6000_SYMBOL_REF_TLS_P): Remove.
2326 (any_operand): Delete.
2327 (any_parallel_operand): Delete.
2328 (count_register_operand): Delete.
2329 (altivec_register_operand): Delete.
2330 (xer_operand): Delete.
2331 (s8bit_cint_operand): Delete.
2332 (short_cint_operand): Delete.
2333 (u_short_cint_operand): Delete.
2334 (non_short_cint_operand): Delete.
2335 (exact_log2_cint_operand): Delete.
2336 (gpc_reg_operand): Delete.
2337 (cc_reg_operand): Delete.
2338 (cc_reg_not_cr0_operand): Delete.
2339 (reg_or_short_operand): Delete.
2340 (reg_or_neg_short_operand): Delete.
2341 (reg_or_aligned_short_operand): Delete.
2342 (reg_or_u_short_operand): Delete.
2343 (reg_or_cint_operand): Delete.
2344 (reg_or_arith_cint_operand): Delete.
2345 (reg_or_add_cint64_operand): Delete.
2346 (reg_or_sub_cint64_operand): Delete.
2347 (reg_or_logical_cint_operand): Delete.
2348 (got_operand): Delete.
2349 (got_no_const_operand): Delete.
2350 (easy_fp_constant): Delete.
2351 (easy_vector_constant): Delete.
2352 (easy_vector_constant_add_self): Delete.
2353 (zero_constant): Delete.
2354 (zero_fp_constant): Delete.
2355 (volatile_mem_operand): Delete.
2356 (offsettable_mem_operand): Delete.
2357 (mem_or_easy_const_operand): Delete.
2358 (add_operand): Delete.
2359 (non_add_cint_operand): Delete.
2360 (logical_operand): Delete.
2361 (non_logical_cint_operand): Delete.
2362 (mask_operand): Delete.
2363 (mask_operand_wrap): Delete.
2364 (mask64_operand): Delete.
2365 (mask64_2_operand): Delete.
2366 (and64_operand): Delete.
2367 (and64_2_operand): Delete.
2368 (and_operand): Delete.
2369 (reg_or_mem_operand): Delete.
2370 (lwa_operand): Delete.
2371 (symbol_ref_operand): Delete.
2372 (call_operand): Delete.
2373 (current_file_function_operand): Delete.
2374 (input_operand): Delete.
2375 (rs6000_nonimmediate_operand): Delete.
2376 (rs6000_tls_symbol_ref): Delete.
2377 (save_world_operation): Delete.
2378 (restore_world_operation): Delete.
2379 (load_multiple_operation): Delete.
2380 (store_multiple_operation): Delete.
2381 (vrsave_operation): Delete.
2382 (mfcr_operation): Delete.
2383 (mtcrf_operation): Delete.
2384 (lmw_operation): Delete.
2385 (stmw_operation): Delete.
2386 (branch_comparison_operator): Delete.
2387 (branch_positive_comparison_operator): Delete.
2388 (scc_comparison_operator): Delete.
2389 (trap_comparison_operator): Delete.
2390 (boolean_operator): Delete.
2391 (boolean_or_operator): Delete.
2392 (min_max_operator): Delete.
2393 * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Move to here.
2394 (EASY_VECTOR_15): Moved to here.
2395 (EASY_VECTOR_15_ADD_SELF): Move to here.
2396 (PREDICATE_CODES): Delete.
2397 * config/rs6000/rs6000-protos.h: Delete predicate functions.
2398 Declare functions no longer static.
2399 * config/rs6000/predicates.md: New.
2400 * config/rs6000/rs6000.md: Include predicates.md
2401
321cf1f2
KH
24022005-02-28 Kazu Hirata <kazu@cs.umass.edu>
2403
2404 * calls.c (emit_call_1): Don't use REG_ALWAYS_RETURN.
2405 (emit_library_call_value_1): Don't use LCT_ALWAYS_RETURN and
2406 REG_ALWAYS_RETURN.
2407 * cfgrtl.c (need_fake_edge_p): Likewise.
2408 * combine.c (distribute_notes): Likewise.
2409 * emit-rtl.c (try_split): Likewise.
2410 * recog.c (peephole2_opimize): Likewise.
2411 * reg-notes.def (ALWAYS_RETURN): Remove.
2412 * rtl.h (LCT_ALWAYS_RETURN): Remove.
2413 * tree-cfg.c (need_fake_edge_p): Don't use ECF_ALWAYS_RETURN.
2414 * tree.h (ECF_ALWAYS_RETURN): Remove.
2415
4f380bf8
RS
24162005-02-28 Roger Sayle <roger@eyesopen.com>
2417
2418 PR middle-end/19874
2419 * tree-ssa.c (tree_ssa_useless_type_conversion_1): A conversion
2420 between different machine modes is never a "useless" conversion.
2421
24222005-02-28 Geert Bosch <bosch@gnat.com>
dd1f53fb
GB
2423
2424 PR ada/15977
2425 * doc/contrib.texi: List contributors for Ada front end
2426
0a67e02c
PB
24272005-02-28 Paolo Bonzini <bonzini@gnu.org>
2428
2429 * simplify-rtx.c (simplify_unary_operation_1,
2430 simplify_const_unary_operation): New, extracted from...
2431 (simplify_unary_operation): ... this one.
2432 (simplify_binary_operation_1,
2433 simplify_const_binary_operation): New, extracted from...
2434 (simplify_binary_operation): ... this one.
2435 * rtl.h (simplify_const_unary_operation,
2436 simplify_const_binary_operation): Add prototypes.
2437
920b9c8d
JB
24382005-02-28 Julian Brown <julian@codesourcery.com>
2439
2440 * config/elfos.h: Revert my patch from 2005-02-25 since it broke
2441 building libjava and caused PR regression/20228.
2442
215c351a
PB
24432005-02-28 Paolo Bonzini <bonzini@gnu.org>
2444
2445 PR bootstrap/17383
2446 * Makefile.in (host_subdir): New.
2447 (build_objdir): New. Replace ../$(build_subdir) with it throughout.
2448 * configure: Regenerate.
2449
f51d6cb4
ZW
24502005-02-27 Zack Weinberg <zack@codesourcery.com>
2451
2452 * config/alpha/t-osf4, config/arm/t-netbsd, config/ia64/t-hpux
2453 * config/pa/t-hpux-shlib (SHLIB_INSTALL): Create the
2454 installation directory first.
2455
23369bef
HPN
24562005-02-28 Hans-Peter Nilsson <hp@axis.com>
2457
2458 PR target/19065.
2459 * config/cris/cris.h (EXTRA_CONSTRAINT_Q): Accept only (mem (reg)),
2460 not including (reg). Do not check for reg being CRIS_PC_REGNUM.
2461 (EXTRA_MEMORY_CONSTRAINT): Define as 'Q'.
2462 * config/cris/cris.md: Tweak comments referring to Q.
2463 ("cmpsi", "cmphi", "cmpqi", "*movsi_internal", "movhi")
2464 ("movstricthi", "movqi", "movstrictqi", "movsf", "addsi3")
2465 ("addhi3", "addqi3", "subsi3", "subhi3", "subqi3")
2466 ("*expanded_andsi", "*expanded_andhi", "*andhi_lowpart", "andqi3")
2467 ("*andqi_lowpart", "iorsi3", "iorhi3", "iorqi3", "uminsi3"):
2468 Insert spaces in constraints to align alternatives vertically for
2469 readability.
17c1e037 2470 ("cmphi"): Ditto. Add separate alternative for operand 0 "r",
23369bef
HPN
2471 operand 1: "M".
2472
c0d12712
JDA
24732005-02-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2474
2475 PR rtl-optimization/17728
2476 * pa.md (mulsi3, divsi3, udivsi3, modsi3): Change predicate for
2477 operand 0 from general_operand to move_dest_operand.
2478
478a1f5e
JDA
24792005-02-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2480
2481 * pa/elf.h, pa/som.h (ASM_OUTPUT_EXTERNAL): Use assemble_name_raw
2482 instead of trying to save and restore TREE_SYMBOL_REFERENCED.
2483 * pa/pa64-hpux.h (ASM_OUTPUT_TYPE_DIRECTIVE): Define.
2484 (ASM_OUTPUT_EXTERNAL): Don't save and restore TREE_SYMBOL_REFERENCED.
2485
5395b47b
NN
24862005-02-26 Nathanael Nerode <neroden@gcc.gnu.org>
2487
2488 * configure.ac: Rename cc_for_cross_gnattools to host_cc_for_libada.
2489 * configure: Regenerate.
f51d6cb4 2490 * libada-mk.in: Remove CC; rename
5395b47b
NN
2491 cc_for_cross_gnattools / cc_set_by_configure to host_cc_for_libada.
2492
c529e0fe
AP
24932005-02-26 Andrew Pinski <pinskia@physics.uc.edu>
2494
2495 PR tree-opt/20188
2496 * tree-ssa-alias.c (count_uses_and_derefs): If we have TREE_LIST
2497 for the lhs, also walk over the tree. Likewise for rhs.
2498
f67e783f
ZD
24992005-02-26 Zdenek Dvorak <dvorakz@suse.cz>
2500
2501 * tree-ssa-dom.c (simple_iv_increment_p): New function.
2502 (simplify_rhs_and_lookup_avail_expr, eliminate_redundant_computations):
2503 Do not propagate value of iv before increment over the increment.
2504
27bf414c
JM
25052005-02-25 Joseph S. Myers <joseph@codesourcery.com>
2506
2507 * c-parser.c: New file.
2508 * c-parse.in: Remove.
2509 * Makefile.in (c-parse.o-warn, c-parse.o, c-parse.c, c-parse.y):
2510 Remove.
2511 (c-parser.o): Add dependencies.
2512 (C_AND_OBJC_OBJC, C_OBJS, gcc.srcextra, GTFILES, distclean,
2513 maintainer-clean, TAGS): Update.
2514 * c-config-lang.in (gtfiles): Update.
2515 * gengtype-lex.l: Don't handle "@@".
2516 * stub-objc.c (objc_get_class_ivars, objc_build_throw_stmt,
2517 objc_build_synchronized, objc_begin_try_stmt,
2518 objc_begin_catch_clause, objc_finish_catch_clause,
2519 objc_build_finally_clause, objc_finish_try_stmt): New.
2520 * c-tree.h (struct c_declspecs): Add declspecs_seen_p and
2521 type_seen_p.
2522 (c_parse_init): Update comment.
2523 * c-decl.c (c_init_decl_processing): Update comment.
2524 (build_null_declspecs, declspecs_add_qual, declspecs_add_type,
2525 declspecs_add_scspec, declspecs_add_attrs): Initialize and update
2526 new c_declspecs members.
2527
d8652772
JB
25282005-02-25 Julian Brown <julian@codesourcery.com>
2529
2530 * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
2531 from being used for symbols with vague linkage when
2532 HAVE_GAS_COMDAT_GROUP is true.
2533
04270aa4
MM
25342005-02-25 Mark Mitchell <mark@codesourcery.com>
2535
2536 * doc/include/gcc-common.texi (version-GCC): Update to 4.1.
2537
4e9db8b2
SE
25382005-02-25 Steve Ellcey <sje@cup.hp.com>
2539
2540 PR target/19930
2541 * doc/tm.texi (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Document.
2542 (LIBGCC2_HAS_DF_MODE): New.
2543 (LIBGCC2_HAS_XF_MODE): New.
2544 (LIBGCC2_HAS_TF_MODE): New.
2545 * libgcc2.h (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
2546 (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
2547 * libgcc2.c (LIBGCC2_HAS_XF_MODE): New name for HAVE_XFMODE.
2548 (LIBGCC2_HAS_TF_MODE): New name for HAVE_TFMODE.
2549 (LIBGCC2_HAS_DF_MODE): New name for HAVE_DFMODE.
2550 * config/ia64/t-ia64 (LIB1ASMFUNCS): Remove __compat
2551 and add _fixtfdi, _fixunstfdi, _floatditf
2552 * lib1funcs.asm: Remove L__compat. Add L_fixtfdi,
2553 L_fixunstfdi, L_floatditf.
2554 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE): Define.
2555 (LIBGCC2_HAS_TF_MODE): Define.
2556
736c86ad
DN
25572005-02-25 Diego Novillo <dnovillo@redhat.com>
2558
2559 PR tree-optimization/20204
2560 * tree-into-ssa.c (insert_phi_nodes_for): Do not use
2561 REWRITE_THIS_STMT markers on PHI nodes.
2562 (rewrite_initialize_block): Likewise.
2563
3bf4da72
MM
25642005-02-25 Mark Mitchell <mark@codesourcery.com>
2565
2566 * version.c (version_string): Update to 4.1.
2567
a1e73046
PC
25682005-02-25 Paolo Carlini <pcarlini@suse.de>
2569
2570 * doc/extend.texi (5.24 Declaring Attributes of Functions)<noreturn>:
2571 Clarify that the alternative way doesn't work in GNU C++.
2572
9e7376e5
ZD
25732005-02-25 Zdenek Dvorak <dvorakz@suse.cz>
2574
2575 PR tree-optimization/19937
2576 * tree-ssa-loop-ivopts.c (rewrite_use_compare): Cast the final value
2577 to the type of the induction variable.
2578
bd182be8
KK
25792005-02-25 Kaz Kojima <kkojima@gcc.gnu.org>
2580
2581 PR rtl-optimization/20117
2582 * bb-reorder.c (duplicate_computed_gotos): Don't duplicate
2583 the block including noncopyable insn.
2584
2b5936fd
KH
25852005-02-24 Kazu Hirata <kazu@cs.umass.edu>
2586
2587 * cse.c (delete_trivially_dead_insns): Speed up by minimizing
2588 calls to find_reg_note.
2589
964a9831
RH
25902005-02-24 Richard Henderson <rth@redhat.com>
2591
2592 PR tree-opt/20127
2593 * tree-sra.c (instantiate_element): Copy TREE_THIS_VOLATILE from
2594 the type.
2595
78796ad5
FJ
25962005-02-24 Fariborz Jahanian <fjahanian@apple.com>
2597
2598 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Check for
2599 vector types if to use base reg for misaligned non-word ld/std.
2600
b2142ad8
HPN
26012005-02-24 Hans-Peter Nilsson <hp@axis.com>
2602
2603 PR target/14619
2604 * config/cris/cris.c (cris_target_asm_function_prologue): Create
2605 dwarf2 label manually and put it after, not before the prologue.
2606
b436d712
DE
26072005-02-24 David Edelsohn <edelsohn@gnu.org>
2608
2609 PR target/19019
2610 * reload.c (operands_match_p): Only increment register number for
2611 SCALAR_INT_MODE_P modes in multiple hard registers.
2612
589b3fda
DE
2613 * config/rs6000/rs6000.md (trunctfdf2): Remove register constraints.
2614 Fix formatting.
2615
3f117656
VR
26162005-02-24 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2617
2618 * ChangeLog.5: Fix log message typo(s).
2619 * ChangeLog.7: Likewise.
2620 * ChangeLog.tree-ssa: Likewise.
2621 * cfgexpand.c: Fix comment typo(s).
2622 * conflict.c: Likewise.
2623 * defaults.h: Likewise.
2624 * dwarf2out.c: Likewise.
2625 * gcse.c: Likewise.
2626 * ggc-page.c: Likewise.
2627 * tree-eh.c: Likewise.
2628 * tree-ssa-dom.c: Likewise.
2629
04fa46cf
JJ
26302005-02-24 Jakub Jelinek <jakub@redhat.com>
2631
df8a7c49
JJ
2632 PR target/19019
2633 * mklibgcc.in: Pass -DSHARED when compiling all *_s${objext} objects.
2634 * config/rs6000/darwin-ldouble.c: Only use the .symver directives
2635 if SHARED is defined.
2636
04fa46cf
JJ
2637 PR target/20196
2638 * config/rs6000/rs6000.md (LTU, GTU sCC splitters): Add earlyclobber,
2639 allow splitting only if operands 0 and 3 don't overlap.
2640
a0d2281e
RH
26412005-02-24 Richard Henderson <rth@redhat.com>
2642
2643 PR middle-end/19953
2644 * builtins.c (fold_builtin_complex_mul, fold_builtin_complex_div): New.
2645 (fold_builtin_1): Call them.
2646 * fold-const.c (fold_complex_mult_parts): Split out from ...
2647 (fold_complex_mult): ... here. Fix typo in both imaginary case.
2648 (fold_complex_div_parts, fold_complex_div): New.
2649 (fold): Use them.
2650 * tree.h (fold_complex_mult_parts, fold_complex_div_parts): Declare.
2651
4961152d
RK
26522005-02-24 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2653
ae95537a
RK
2654 * tree-ssa-ccp.c (visit_assignment): Verify that result of
2655 VIEW_CONVERT_EXPR is_gimple_min_invariant.
2656
4961152d
RK
2657 * print-tree.c (print_node_brief): Print LABEL_DECL_UID.
2658 (print_node): Likewise.
2659 Print TYPE_SIZES_GIMPLIFIED.
2660
ef6201a6
HPN
26612005-02-24 Hans-Peter Nilsson <hp@axis.com>
2662
2663 * config/cris/cris.md ("umulhisi3", "umulqihi3", "mulsi3")
2664 ("mulqihi3", "mulhisi3", "mulsidi3", "umulsidi3"): Mark input
2665 operands as commutative in constraints.
2666
7256233c
DN
26672005-02-24 Diego Novillo <dnovillo@redhat.com>
2668
2669 * tree-into-ssa.c: Re-organize internal functions.
2670
c7463669
RH
26712005-02-24 Richard Henderson <rth@redhat.com>
2672
2673 PR middle-end/18902
2674 * c-opts.c (c_common_post_options): Set flag_complex_method to 2
2675 for c99.
2676 * common.opt (fcx-limited-range): New.
2677 * opts.c (set_fast_math_flags): Set flag_cx_limited_range.
2678 * toplev.c (flag_complex_method): Initialize to 1.
2679 (process_options): Set flag_complex_method to 0 if
2680 flag_cx_limited_range.
2681 * doc/invoke.texi (-fcx-limited-range): New.
2682
03ce14db
KH
26832005-02-24 Kazu Hirata <kazu@cs.umass.edu>
2684
2685 * cse.c (delete_trivially_dead_insns): Speed up by using
2686 NEXT_INSN and PREV_INSN directly instead of next_real_insn and
2687 prev_real_insn.
2688
b86ba8a3
AT
26892005-02-24 Andrea Tarani <andrea.tarani@gilbarco.com>
2690
2691 * config/m68k/m68k.c (m68k_save_reg): Also save A5 for non-leaf
2692 functions when -mid-shared-library is being used.
2693
57642751
DJ
26942005-02-23 Daniel Jacobowitz <dan@codesourcery.com>
2695
2696 * doc/tm.texi (LINK_LIBGCC_SPECIAL): Remove.
2697 (LINK_LIBGCC_SPECIAL_1): Don't mention it.
2698 * gcc.c: Don't check for LINK_LIBGCC_SPECIAL.
2699 * system.h: Poison LINK_LIBGCC_SPECIAL.
2700
79e4e6a6
JW
27012005-02-23 James E Wilson <wilson@specifixinc.com>
2702
2703 * gengtype.c (note_insn_name): Make 1 element larger.
2704
61961eff
RS
27052005-02-23 Roger Sayle <roger@eyesopen.com>
2706
2707 PR target/20018
2708 PR rtl-optimization/20097
2709 * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
2710 BImode SUBREGs of SImode registers which confuse the ia64 backend.
2711
1628a835
DE
27122005-02-23 David Edelsohn <edelsohn@gnu.org>
2713
2714 * t-aix43 (SHLIB_INSTALL): Create directory for shared library.
2715 * t-aix52 (SHLIB_INSTALL): Same.
2716
f439764f
KH
27172005-02-23 Kazu Hirata <kazu@cs.umass.edu>
2718
2719 * genpreds.c: Update copyright.
2720
3f9f087b
MB
27212005-02-23 Michael Beach <michaelb@ieee.org>
2722
2723 PR target/20159
2724 * config/sparc/t-elf (startup files): Assemble with CPP.
2725
bb56fc39
PB
27262005-02-23 Paolo Bonzini <bonzini@gnu.org>
2727
2728 * genpreds.c (mark_mode_tests): Handle non-VOIDmode match_operands.
2729 (write_predicate_expr): Likewise.
2730
90c1d75a
DN
27312005-02-22 Diego Novillo <dnovillo@redhat.com>
2732
2733 PR tree-optimization/20100
2734 PR tree-optimization/20115
2735 * tree-optimize.c (init_tree_optimization_passes): Remove
2736 pass_maybe_create_global_var.
2737 * tree-pass.h (pass_maybe_create_global_var): Remove.
2738 * tree-ssa-alias.c (aliases_computed_p): Declare.
2739 (struct alias_info): Add field NUM_PURE_CONST_CALLS_FOUND.
2740 (count_calls_and_maybe_create_global_var): Remove.
2741 (pass_maybe_create_global_var): Remove.
2742 (init_alias_info): Do not declare aliases_computed_p.
2743 (maybe_create_global_var): If the function contains no
2744 call-clobbered variables and a mix of pure/const and regular
2745 function calls, create .GLOBAL_VAR.
2746 Mark all call-clobbered variables for renaming.
2747 (merge_pointed_to_info): Update comment.
2748 (add_pointed_to_var): Likewise.
2749 (is_escape_site): Likewise.
2750 Accept struct alias_info * instead of size_t *.
2751 Update all users.
2752 Update AI->NUM_CALLS_FOUND and AI->NUM_PURE_CONST_CALLS_FOUND
2753 as necessary.
2754 * tree-ssa-operands.c (get_call_expr_operands): If
2755 ALIASES_COMPUTED_P is false, do not add call-clobbering
2756 operands.
2757 * tree-ssa.c (init_tree_ssa): Set ALIASES_COMPUTED_P to false.
2758 (delete_tree_ssa): Likewise.
2759
e59ba1bc
JW
27602005-02-22 James E Wilson <wilson@specifixinc.com>
2761
2762 * toplev.c (backend_init): Don't call init_adjust_machine_modes here.
2763 (do_compile): Do call it here.
2764
78d5a34b
KH
27652005-02-22 Kazu Hirata <kazu@cs.umass.edu>
2766
2767 PR rtl-optimization/20017.
2768 * passes.c (rest_of_handle_combine, rest_of_handle_cse,
2769 rest_of_handle_cse2, rest_of_handle_gcse): Call
2770 delete_dead_jumptables immediately before calling cleanup_cfg.
2771
263fb23d
DP
27722005-02-22 Devang Patel <dpatel@apple.com>
2773
2774 PR 19952
f51d6cb4 2775 * tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
263fb23d 2776 all labels
f51d6cb4 2777
466db3c1
DE
27782005-02-22 David Edelsohn <edelsohn@gnu.org>
2779
2780 * config/rs6000/aix.h (WINT_TYPE): Define.
2781
d9168963
SS
27822005-02-22 Stan Shebs <shebs@apple.com>
2783
2784 * config/rs6000/rs6000.c (rs6000_override_options): Default to
2785 natural alignment for 64-bit Darwin.
2786 (rs6000_parse_alignment_option): Warn about uses of -malign-power
2787 on 64-bit Darwin.
2788 * doc/invoke.texi: Document this.
2789
19b3ffbc
DD
27902005-02-22 DJ Delorie <dj@redhat.com>
2791
2792 * c-common.c (c_common_type_for_mode): Pass the mode's precision
2793 to make_[un]signed_type, not the mode itself.
2794
e2c879a1
KH
27952005-02-22 Kazu Hirata <kazu@cs.umass.edu>
2796
2797 * cfg.c (cached_make_edge): Call make_edge if edge cache is
2798 not available. Use tail calls wherever possible.
2799 (make_edge): Call unchecked_make_edge to create an edge.
2800
35bea171
KH
2801 * tree-outof-ssa.c (SSANORM_USE_COALESCE_LIST): Remove.
2802 (coalesce_ssa_name): Don't check for
2803 SSANORM_USE_COALESCE_LIST.
2804 (rewrite_out_of_ssa): Don't use SSANORM_USE_COALESCE_LIST.
2805
554beb3a
DN
28062005-02-22 Diego Novillo <dnovillo@redhat.com>
2807
2808 * tree-into-ssa.c (rewrite_blocks): Move debug dumps from ...
2809 (rewrite_into_ssa): ... here.
2810
bb2e1640
AO
28112005-02-21 Alexandre Oliva <aoliva@redhat.com>
2812
2813 PR tree-optimization/19786
2814 * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Add one
2815 tag to another's may-alias bitmap when adding to the other's list.
2816
1d27fed4
DD
28172005-02-21 DJ Delorie <dj@redhat.com>
2818
2819 * tree-ssa-loop-ivopts.c (computation_cost): Start register
2820 numbering at LAST_VIRTUAL_REGISTER+1 to avoid possibly using hard
2821 registers in unsupported ways.
2822 * expmed.c (init_expmed): Likewise.
f51d6cb4 2823
10e70392
SC
28242005-02-21 Stan Cox <scox@redhat.com>
2825
2826 * config/iq2000/iq2000.h (DWARF_FRAME_RETURN_COLUMN): Change to 31.
2827
fca01525
KH
28282005-02-21 Kazu Hirata <kazu@cs.umass.edu>
2829
2830 * tree-cfg.c (fold_cond_expr_cond): New.
2831 (make_edges): Call fold_cond_expr_cond.
2832 (find_taken_edge): Accept nothing but INTEGER_CST.
2833 (find_taken_edge_cond_expr): Reject INTEGER_CST other than 0
2834 and 1.
2835 (find_taken_edge_switch_expr): Remove a check for INTEGER_CST.
2836
88312d26
KH
2837 * flow.c (delete_dead_jumptables): Speed up by scanning insns
2838 that do not belong to any basic block.
2839
0b612e0b
JL
28402005-02-21 Jeff Law <law@redhat.com>
2841
2842 * cfganal.c (find_unreachable_blocks): Manually CSE load of
2843 e->dest.
2844
dfd9f74c
KH
28452005-02-21 Kazu Hirata <kazu@cs.umass.edu>
2846
2847 * tree-outof-ssa.c (SSANORM_REMOVE_ALL_PHIS): Remove.
2848 (SSANORM_COALESCE_PARTITIONS, SSANORM_USE_COALESCE_LIST):
2849 Adjust their definitions.
2850 (remove_ssa_form): Don't check for SSANORM_REMOVE_ALL_PHIS.
2851 (rewrite_out_of_ssa): Don't use SSANORM_REMOVE_ALL_PHIS.
2852
a4de48bc
KH
2853 * c-objc-common.h, c-pretty-print.c, cgraphunit.c, except.c,
2854 genautomata.c, langhooks.c, langhooks.h, system.h,
2855 config/arm/lib1funcs.asm: Update copyright.
2856
4a22dcdd
UW
28572005-02-21 Ulrich Weigand <uweigand@de.ibm.com>
2858
2859 * dbxout.c (dbxout_function_end): Emit Lscope label always.
2860
5dd90688
RG
28612005-02-21 Richard Guenther <rguenth@gcc.gnu.org>
2862
2863 PR bootstrap/13770
2864 * doc/install.texi: Document --with-gc.
2865
35ef372d
PB
28662005-02-21 Paolo Bonzini <bonzini@gnu.org>
2867
2868 * simplify-rtx.c (simplify_unary_operation): Add a missing
2869 "break" statement.
2870
ee167207
EB
28712005-02-21 Eric Botcazou <ebotcazou@libertysurf.fr>
2872
2873 PR tree-optimization/18663
2874 * tree-ssa-dom.c (extract_range_from_cond): Return 0
2875 if the type has variable bounds.
2876
a3c28ba2
KH
28772005-02-20 Kazu Hirata <kazu@cs.umass.edu>
2878
2879 * gcse.c: Remove an obsolete comment.
2880
a811c672
KH
2881 * cse.c (init_cse_reg_info): Use xmalloc instead of xrealloc.
2882
50c177f7
HPN
28832005-02-20 Hans-Peter Nilsson <hp@axis.com>
2884
2885 * doc/extend.texi (Function Attributes) <Attribute const>: The
2886 attribute "pure" is below this text, not above.
2887
cdcb88d7
JDA
28882005-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2889
2890 * pa.c (pa_assemble_integer, get_plabel): Small cleanups.
2891 (pa_asm_output_mi_thunk): Use asm_output_insn instead of fprintf.
2892 * som.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Small cleanup.
2893
c5ff069d
ZW
28942005-02-20 Zack Weinberg <zack@codesourcery.com>
2895
2896 PR 18785
2897 * langhooks.h (struct lang_hooks): Add to_target_charset.
2898 * langhooks.c (lhd_to_target_charset): New function.
2899 * langhooks-def.h: Declare lhd_to_target_charset.
2900 (LANG_HOOKS_TO_TARGET_CHARSET): New macro.
2901 (LANG_HOOKS_INITIALIZER): Update.
2902 * c-common.c (c_common_to_target_charset): New function.
2903 * c-common.h: Declare it.
2904 * c-objc-common.h (LANG_HOOKS_TO_TARGET_CHARSET): Set to
2905 c_common_to_target_charset.
2906
2907 * defaults.c (TARGET_BELL, TARGET_BS, TARGET_CR, TARGET_DIGIT0)
2908 (TARGET_ESC, TARGET_FF, TARGET_NEWLINE, TARGET_TAB, TARGET_VT):
2909 Delete definitions.
2910 * system.h: Poison them.
2911 * doc/tm.texi: Don't discuss them.
2912 * builtins.c (fold_builtin_isdigit): Use lang_hooks.to_target_charset.
2913 * c-pretty-print.c (pp_c_integer_constant): Don't use pp_c_char.
2914 (pp_c_char): Do not attempt to generate letter escapes for
2915 newline, tab, etc.
2916 * config/arm/arm.c (output_ascii_pseudo_op): Likewise.
2917 * config/mips/mips.c (mips_output_ascii): Likewise.
2918
ac59a959
DN
29192005-02-20 Dorit Naishlos <dorit@il.ibm.com>
2920
2921 PR tree-optimization/19951
2922 * tree-vect-analyze.c (vect_analyze_loop_form): Check if loop exit edge
2923 is abnormal.
c5ff069d 2924
a310245f
SB
29252005-02-19 Steven Bosscher <stevenb@suse.de>
2926
c5ff069d 2927 PR middle-end/19698
a310245f
SB
2928 * function.h (struct function): New field `max_loop_depth'.
2929 * cfgloop.c (establish_preds): Update maximum loop depth seen so far.
2930 (flow_loops_find): Reset the max loop depth count before finding loops.
2931 * flow.c (MAX_LIVENESS_ROUNDS): New constant.
2932 (update_life_info_in_dirty_blocks): Remove 2002-05-28 workaround.
2933 (calculate_global_regs_live): Make sure the loop will terminate
2934 when the initial sets are not empty.
2935
2cdc2073
ZW
29362005-02-19 Zack Weinberg <zack@codesourcery.com>
2937
2938 * mklibgcc.in: If libgcc_eh.a would be empty, put a dummy
2939 object inside.
2940 * config/ia64/hpux.h: Don't define LIBGCC_SPEC.
2941
4e8d0554
RS
29422005-02-19 Richard Sandiford <rsandifo@redhat.com>
2943
2944 PR other/19525
2945 * doc/invoke.texi: Remove documentation of %M spec.
2946 * gcc.c: Likewise.
2947 (init_spec): Remove %M suffix from -lgcc_s.
2948 (do_spec_1): Remove 'M' case.
2949 * mklibgcc.in: Remove SHLIB_MULTILIB handling. Expect SHLIB_LINK
2950 to put shared libraries in the multilib directory. Remove the
2951 shlib_so_soname substitution variable. Don't add a multilib encoding
2952 to shlib_base_name. Set shlib_slibdir_qual to the full pathname
2953 reported by -print-multi-os-directory. Pass @multilib_dir@ to
2954 SHLIB_INSTALL as well as SHLIB_LINK.
2955 * config/t-slibgcc-elf-ver (SHLIB_SONAME): Use @shlib_base_name@.
2956 (SHLIB_NAME): Delete.
2957 (SHLIB_DIR): New macro.
2958 (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_SOLINK) in $(SHLIB_DIR).
2959 (SHLIB_INSTALL): Adjust accordingly.
2960 * config/t-slibgcc-darwin: As for t-slibgcc-elf-ver.
2961 * config/t-slibgcc-sld: Likewise.
2962 * config/t-libunwind-elf (SHLIBUNWIND_NAME): Delete.
2963 (SHLIBUNWIND_SONAME): Use @shlib_base_name@.
2964 (SHLIBUNWIND_LINK): Put $(SHLIBUNWIND_SONAME) and $(SHLIB_SOLINK)
2965 in $(SHLIB_DIR).
2966 (SHLIBUNWIND_INSTALL): Adjust accordingly.
2967 * config/i386/t-nwld (SHLIB_SONAME): Delete.
2968 (SHLIB_LINK, SHLIB_INSTALL): Use SHLIB_NAME instead of SHLIB_SONAME.
2969 Use @shlib_base_name@ instead of @shlib_so_name@.
2970 * config/ia64/t-hpux (SHLIB_LINK): Put @shlib_base_name@.so.0
2971 and @shlib_base_name@.so in @multilib_dir@.
2972 (SHLIB_INSTALL): Adjust accordingly. Add @shlib_slibdir_qual@
2973 to the install path.
2974 * config/mips/t-slibgcc-irix: As for t-slibgcc-elf-ver.
2975 (SHLIB_LINK): Remove previous workaround.
2976 * config/pa/t-hpux-shlib (SHLIB_DIR, SHLIB_SLIBDIR_QUAL): New macros.
2977 (SHLIB_LINK): Put $(SHLIB_SONAME) and $(SHLIB_NAME) in $(SHLIB_DIR).
2978 (SHLIB_INSTALL): Adjust accordingly. Add $(SHLIB_SLIBDIR_QUAL) to
2979 the install path.
2980 * config/rs6000/t-aix43 (SHLIB_LINK): Put @shlib_base_name@.a in
2981 @multilib_dir@. Use @multilib_dir@ to check for threading libraries.
2982 (SHLIB_INSTALL): Adjust accordingly.
2983 (SHLIB_LIBS): Use @multilib_dir@ to check for threading libraries.
2984 * config/rs6000/t-aix52: As for config/rs6000/t-aix43.
2985 * config/sh/t-linux (SHLIB_LINK, SHLIB_INSTALL): As for
2986 config/t-slibgcc-elf-ver.
2987
f10a6654
ZD
29882005-02-19 Zdenek Dvorak <dvorakz@suse.cz>
2989 Jakub Jelinek <jakub@redhat.com>
2990
2991 PR tree-optimization/19828
2992 * tree-ssa-loop-im.c: Add a TODO comment.
2993 (movement_possibility): Return MOVE_PRESERVE_EXECUTION for calls
2994 without side-effects.
2995
5ff489f1
JM
29962005-02-18 James A. Morrison <phython@gcc.gnu.org>
2997
2998 * tree-ssa-ccp.c (widen_bitfield): Pass type to build_int_cst and don't
2999 call fold_convert.
3000
4c334b37
JW
30012005-02-18 James E. Wilson <wilson@specifixinc.com>
3002
3003 * doc/invoke.texi (IA-64 Options): Delete -mb-step.
3004 * config/ia64/ia64.c (last_group, group_idx): Delete variables.
3005 (errata_find_address_regs, errata_emit_nops, fixup_errata): Delete
3006 functions.
3007 (ia64_reorg): Delete fixup_errata call.
3008 * config/ia64/ia64.h (MASK_B_STEP, TARGET_B_STEP): Delete.
3009 (TARGET_SWITCHES): Delete -mb-step entry.
3010
58cb41e6
JJ
30112005-02-19 Jakub Jelinek <jakub@redhat.com>
3012
3013 PR c/20043
3014 * c-typeck.c (composite_type): Handle quals in transparent unions.
3015 (type_lists_compatible_p): Likewise.
3016
b79d4265
SS
30172005-02-18 Stan Shebs <shebs@apple.com>
3018
3019 * config/darwin.c (machopic_select_rtx_section): Don't put relocatable
3020 expressions in the .literal8 section.
3021
a7138657
GK
30222005-02-18 Geoffrey Keating <geoffk@apple.com>
3023
3024 * config/rs6000/darwin-tramp.asm: Remove stray 'APPLE LOCAL' marker.
3025
0a9c6fdf
RS
30262005-02-18 Roger Sayle <roger@eyesopen.com>
3027
3028 * fold-const.c (constant_boolean_node): Always create values of the
3029 specified type, don't bother calling truthvalue_conversion.
3030
f6775e78
JM
30312005-02-18 Joseph S. Myers <joseph@codesourcery.com>
3032
3033 * except.c (output_function_exception_table): Call
3034 assemble_external_libcall (eh_personality_libfunc).
3035
5b4275db
JM
30362005-02-18 Joseph S. Myers <joseph@codesourcery.com>
3037
3038 PR target/19886
3039 * config/ia64/ia64.h (struct machine_function): Add state_num.
3040 * config/ia64/ia64.c (process_epilogue,
3041 process_for_unwind_directive): Use new unwind state numbers each
3042 time rather than state 1.
3043
d6083c7d
UW
30442005-02-18 Ulrich Weigand <uweigand@de.ibm.com>
3045
3046 PR target/20054
3047 * config/s390/s390.md ("*llgt_sidi", "*llgt_sidi_split"): Move to
3048 before the "*llgt_didi" pattern.
3049
258dba8f
JM
30502005-02-18 Jason Merrill <jason@redhat.com>
3051
3052 * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Revert again.
3053
2155b886
RE
30542005-02-18 Richard Earnshaw <rearnsha@arm.com>
3055
3056 * arm/lib1funcs.asm (FUNC_ALIAS): New macro.
3057 (div0): Use it in place of ARM_FUNC_ALIAS.
3058 (lshrdi3, ashrdi3, ashlrdi3): Likewise.
3059
0d56ab33
AP
30602005-02-18 Andrew Pinski <pinskia@physics.uc.edu>
3061
3062 PR middle-end/20030
a310245f
SB
3063 * fold-const.c (fold_indirect_ref_1): Use the correct index for zero
3064 access, the lower bound of the array type if it exists.
0d56ab33 3065
2aabee29
AO
30662005-02-18 Alexandre Oliva <aoliva@redhat.com>
3067
3068 PR c++/20008
3069 * stmt.c (expand_case): Don't assume cleanup_tree_cfg will remove
3070 cases that are out-of-range for the index type.
3071
aeba6c28
JM
30722005-02-18 James A. Morrison <phython@gcc.gnu.org>
3073
3074 * stmt.c (emit_case_bit_tests): Call fold_convert instead of convert.
3075 (estimate_case_costs): Don't call convert.
3076 * expmed.c (expand_shift): Likewise.
2cdc2073 3077 (make_tree): Call fold_convert instead of convert.
aeba6c28 3078
3a96c3b9
JJ
30792005-02-18 Jakub Jelinek <jakub@redhat.com>
3080
3081 PR c++/19813
3082 * emit-rtl.c (set_mem_attributes_minus_bitpos): Add assertion
3083 that ref to be marked MEM_READONLY_P doesn't have base that needs
3084 constructing.
3085
9fd64c63
JM
30862005-02-18 Joseph S. Myers <joseph@codesourcery.com>
3087
3088 * genautomata.c (output_get_cpu_unit_code_func,
3089 output_cpu_unit_reservation_p): Don't generate old-style function
3090 definitions.
3091
58203599
JJ
30922005-02-18 Jakub Jelinek <jakub@redhat.com>
3093
0948e392
JJ
3094 PR c++/20023
3095 PR tree-optimization/20009
3096 * convert.c (convert_to_integer): Revert 2005-02-16 change.
3097
58203599
JJ
3098 PR tree-optimization/18947
3099 * cgraphunit.c (cgraph_finalize_function): When redefining an extern
3100 inline, remove all nodes that are inlined into the extern inline
3101 being redefined.
3102
c8d3e15a
KH
31032005-02-17 Kazu Hirata <kazu@cs.umass.edu>
3104
3105 * bt-load.c, cfgloop.c, convert.c, dominance.c, global.c,
3106 loop-invariant.c, stmt.c, tree-ssa-forwprop.c,
3107 tree-ssa-live.c, tree-ssanames.c, tree-vn.c,
3108 config/host-linux.c, config/arm/fpa.md, config/avr/avr.h:
3109 Update copyright.
3110
9b396d7c
RS
31112005-02-17 Roger Sayle <roger@eyesopen.com>
3112
3113 PR tree-optimization/19917
3114 * tree-eh.c (tree_could_trap_p): Consider calls to weak functions
3115 to be potentially trapping.
3116
2e681715
KH
31172005-02-17 Kazu Hirata <kazu@cs.umass.edu>
3118
3119 * libgcc2.c, tree-vect-analyze.c: Fix comment typos.
3120
c6d01079
AK
31212005-02-17 Andreas Krebbel <krebbel1@de.ibm.com>
3122
3123 * builtins.c (expand_builtin_return_addr): Remove tem parameter.
2cdc2073 3124 tem becomes a local variable which is set to the value of the
c6d01079 3125 back end defined INITIAL_FRAME_ADDRESS macro.
2cdc2073 3126 (expand_builtin_frame_address): Omit the base parameter to
c6d01079
AK
3127 expand_builtin_return_addr.
3128 (expand_builtin_profile_func): Likewise.
3129 * config/s390/s390.h (INITIAL_FRAME_ADDRESS_RTX): Define new macro.
3130 (DYNAMIC_CHAIN_ADDRESS): Remove the case for the initial frame.
3131 * doc/tm.texi: Documentation for INITIAL_FRAME_ADDRESS_RTX added.
3132
7b210806
JJ
31332005-02-17 Jakub Jelinek <jakub@redhat.com>
3134
3135 * config/s390/s390.c (s390_alloc_pool, s390_free_pool,
3136 s390_chunkify_start): Use BITMAP_ALLOC and BITMAP_FREE.
3137 * config/frv/frv.c (frv_function_epilogue): Likewise.
3138
eae600b9
DB
31392005-02-17 Daniel Berlin <dberlin@dberlin.org>
3140
3141 * lambda-code (perfect_nestify): Remove mark/unmark
3142 for rewriting hack.
3143 * tree-loop-linear.c (linear_transform_loops): Add
3144 rewrite_into_ssa call so that ssa is correct for
3145 rewriting into loop closed.
3146
8bdbfff5
NS
31472005-02-17 Nathan Sidwell <nathan@codesourcery.com>
3148
3149 * bitmap.h (BITMAP_XMALLOC, BITMAP_XFREE): Remove.
3150 * bb-reorder.c (duplicate_computed_gotos): Use BITMAP_ALLOC and
3151 BITMAP_FREE.
3152 * bt-load.c (btr_def_live_range, combine_btr_defs,
3153 migrate_btr_def, migrate_btr_defs): Likewise.
3154 * cfgcleanup.c (thread_jump): Likewise.
3155 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
3156 * df.c (df_insn_table_realloc, df_bitmaps_alloc, df_bitmaps_free,
3157 df_alloc, df_free, df_du_chain_create, df_bb_rd_local_compute,
3158 df_rd_local_compute, df_reg_info_compute): Likewise.
3159 * dominance.c (init_dom_info, free_dom_info): Likewise.
3160 * flow.c (init_propagate_block_info,
3161 free_propagate_block_info): Likewise.
3162 * gcse.c (alloc_gcse_mem, free_gcse_mem): Likewise.
3163 * global.c (allocate_bb_info, free_bb_info, calculate_reg_pav,
3164 modify_reg_pav): Likewise.
3165 * loop-invariant.c (find_defs, find_invariant_insn,
3166 find_invariants, free_inv_motion_data): Likewise.
3167 * predict.c (tree_predict_by_opcode,
3168 estimate_bb_frequencies): Likewise.
3169 * stmt.c (expand_case): Likewise.
3170 * tree-cfg.c (tree_duplicate_sese_region): Likewise.
3171 * tree-dfa.c (mark_new_vars_to_rename): Likewise.
3172 * tree-if-conv.c (get_loop_body_in_if_conv_order): Likewise.
3173 * tree-into-ssa.c (insert_phi_nodes_for, def_blocks_free,
3174 get_def_blocks_for, mark_def_site_blocks, rewrite_into_ssa,
3175 rewrite_ssa_into_ssa): Likewise.
3176 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3177 * tree-outof-ssa.c (new_temp_expr_table, free_temp_expr_table,
3178 analyze_edges_for_bb, perform_edge_inserts): Likewise.
3179 * tree-scalar-evolution.c (scev_initialize, scev_finalize): Likewise.
3180 * tree-sra.c (tree_sra): Likewise.
3181 * tree-ssa-alias.c (init_alias_info, delete_alias_info): Likewise.
3182 * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
3183 * tree-ssa-dce.c (tree_dce_init, tree_dce_done): Likewise.
3184 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
3185 * tree-ssa-dse.c (tree_ssa_dse): Likewise.
3186 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_var):
3187 Likewise.
3188 * tree-ssa-live.c (new_tree_live_info, delete_tree_live_info,
3189 calculate_live_on_entry, calculate_live_on_exit,
3190 build_tree_conflict_graph): Likewise.
3191 * tree-ssa-loop-ivopts.c (tree_ssa_iv_optimize_init, record_use,
3192 record_important_candidates, set_use_iv_cost, find_depends,
3193 determine_use_iv_costs, iv_ca_new, iv_ca_free, free_loop_data,
3194 tree_ssa_iv_optimize_finalize): Likewise.
3195 * tree-ssa-loop-manip.c (add_exit_phis_var, get_loops_exit,
3196 find_uses_to_rename_use, rewrite_into_loop_closed_ssa,
3197 tree_duplicate_loop_to_header_edge): Likewise.
3198 * tree-ssa-pre.c (init_pre, fini_pre): Likewise.
3199 * tree-ssa.c (verify_flow_insensitive_alias_info,
3200 verify_name_tags, verify_ssa, init_tree_ssa,
3201 delete_tree_ssa): Likewise.
3202 * tree-ssanames.c (marked_ssa_names, init_ssanames,
3203 fini_ssanames): Likewise.
3204 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Likewise.
3205
3abbb738
RC
32062005-02-17 Ralf Corsepius <ralf.corsepius@rtems.org>
3207
2cdc2073 3208 * config/rs6000/t-rtems: Completely reworked.
3abbb738 3209
9d182aa5
IR
32102005-02-17 Ira Rosen <irar@il.ibm.com>
3211
2cdc2073 3212 * tree-data-ref.c (array_base_name_differ_p): Remove gcc_assert.
9d182aa5 3213
2427fa80
IR
32142005-02-17 Ira Rosen <irar@il.ibm.com>
3215
3216 * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Use
3217 POINTER_TYPE_P when checking that type is a pointer.
3218 (vect_get_memtag): Remove.
3219 (vect_address_analysis): Use POINTER_TYPE_P. Call
3220 vect_object_analysis with dummy parameter for memtag.
3221 (vect_object_analysis): Extract memtag (functionality that
3222 used to be in vect_get_memtag and moved here). Fix printings.
3223 (vect_analyze_data_refs): Fix comment. Call vect_object_analysis
3224 with correct parameters. Remove call to vect_get_memtag.
3225
f7064d11
DN
32262005-02-17 Dorit Naishlos <dorit@il.ibm.com>
3227
3228 * Makefile.in (tree-vect-analyze.o, tree-vect-transform.o): New.
3229 (tree-vectorizer.o): Added missing dependencies.
3230
3231 * tree-vectorizer.h (vect_dump, vect_verbosity_level): Added extern
3232 decleration.
3233 (slpeel_tree_peel_loop_to_edge): Function externalized (had a static
3234 declaration in tree-vectorizer.c, now has an extern declaration in
3235 tree-vectorizer.h).
3236 (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
2cdc2073
ZW
3237 slpeel_verify_cfg_after_peeling, vect_strip_conversion,
3238 get_vectype_for_scalar_type, vect_is_simple_use,
f7064d11
DN
3239 vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
3240 vect_supportable_dr_alignment, new_loop_vec_info, destroy_loop_vec_info,
2cdc2073 3241 new_stmt_vec_info, vect_analyze_loop, vectorizable_load,
f7064d11
DN
3242 vectorizable_store, vectorizable_operation, vectorizable_assignment,
3243 vect_transform_loop, vect_print_dump_info, vect_set_verbosity_level,
3244 find_loop_location): Likewise.
3245
3246 * tree-vectorizer.c (langhooks.h): #include removed.
3247 (slpeel_tree_peel_loop_to_edge): Function externalized. Declaration
3248 moved to tree-vectorized.h.
3249 (slpeel_make_loop_iterate_ntimes, slpeel_can_duplicate_loop_p,
3250 slpeel_verify_cfg_after_peeling, vect_strip_conversion,
3251 get_vectype_for_scalar_type, vect_is_simple_use,
3252 vect_is_simple_iv_evolution, vect_can_force_dr_alignment_p,
3253 vect_supportable_dr_alignment, new_loop_vec_info,
3254 destroy_loop_vec_info, new_stmt_vec_info, vect_print_dump_info,
3255 vect_set_verbosity_level, find_loop_location): Likewise.
3256
2cdc2073 3257 (vect_analyze_loop): Function externalized. Declaration moved to
f7064d11
DN
3258 tree-vectorized.h. Function definition moved to tree-vect-analyze.c.
3259 (vect_analyze_loop_form): Moved to tree-vect-analyze.c.
3260 (vect_mark_stmts_to_be_vectorized, vect_analyze_scalar_cycles,
3261 vect_analyze_data_ref_accesses, vect_analyze_data_ref_dependences,
3262 vect_analyze_data_refs_alignment, vect_compute_data_refs_alignment,
3263 vect_enhance_data_refs_alignment, vect_analyze_operations,
3264 exist_non_indexing_operands_for_use_p, vect_mark_relevant,
3265 vect_stmt_relevant_p, vect_get_loop_niters,
3266 vect_analyze_data_ref_dependence, vect_compute_data_ref_alignment,
3267 vect_analyze_data_ref_access, vect_analyze_pointer_ref_access,
3268 vect_can_advance_ivs_p, vect_get_ptr_offset, vect_analyze_offset_expr,
3269 vect_base_addr_differ_p, vect_object_analysis, vect_address_analysis,
3270 vect_get_memtag): Likewise.
3271
2cdc2073 3272 (vectorizable_load): Function externalized. Declaration moved to
f7064d11
DN
3273 tree-vectorized.h. Function definition moved to tree-vect-transform.c.
3274 (vectorizable_store, vectorizable_operation, vectorizable_assignment,
3275 vect_transform_loop): Likewise.
3276 (vect_transform_stmt): Moved to tree-vect-transform.c.
2cdc2073 3277 (vect_align_data_ref, vect_create_destination_var,
f7064d11
DN
3278 vect_create_data_ref_ptr, vect_create_index_for_vector_ref,
3279 vect_create_addr_base_for_vector_ref, vect_get_new_vect_var,
3280 vect_get_vec_def_for_operand, vect_init_vector,
3281 vect_finish_stmt_generation, vect_generate_tmps_on_preheader,
3282 vect_build_loop_niters, vect_update_ivs_after_vectorizer,
3283 vect_gen_niters_for_prolog_loop, vect_update_inits_of_dr,
3284 vect_update_inits_of_drs, vect_do_peeling_for_alignment,
3285 vect_do_peeling_for_loop_bound): Likewise.
2cdc2073 3286
f7064d11
DN
3287 * tree-vect-analyze.c: New file.
3288 * tree-vect-transform.c: New file.
3289
eff9a5d0
JM
32902005-02-17 Jason Merrill <jason@redhat.com>
3291
3292 PR mudflap/19319, c++/19317
3293 * gimplify.c (gimplify_modify_expr_rhs) [CALL_EXPR]: Make return
3294 slot explicit.
3295
beb5f807
GP
32962005-02-17 Gerald Pfeifer <gerald@pfeifer.com>
3297
3298 * doc/install.texi (Specific): Update link for Darwin-specific
3299 tool binary site.
2cdc2073 3300
9ace7f9e
JM
33012005-02-16 James A. Morrison <phython@gcc.gnu.org>
3302
3303 * fold-const.c (invert_truthvalue): <INTEGER_CST>: Call
3304 constant_boolean_node.
3305
ee01c339 33062005-02-16 David Edelsohn <edelsohn@gnu.org>
53de343a
DE
3307
3308 PR target/19019
3309 * config/rs6000/t-aix43 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
3310 * config/rs6000/t-aix52 (SHLIB_MAPFILES): Same.
3311
4f2e0d5e
RH
33122005-02-16 Richard Henderson <rth@redhat.com>
3313
3314 PR 19920
3315 * libgcc2.c (WORD_SIZE): Remove all definitions; replace uses
3316 with W_TYPE_SIZE.
3317 (HIGH_WORD_COEFF, HIGH_HALFWORD_COEFF): Remove all definitions;
3318 replace uses with Wtype_MAXp1_F.
3319 (L_fixunstfdi, L_fixtfdi, L_floatditf, L_fixunsxfdi, L_fixxfdi,
3320 L_floatdixf, L_fixunsxfsi, L_fixunsdfdi, L_floatdidf, L_fixunsdfsi,
3321 L_powidf2, L_powixf2, L_powitf2, L_muldc3, L_divdc3, L_mulxc3,
3322 L_divxc3, L_multc3, L_divtc3): Protect with HAVE_DFMODE, HAVE_XFMODE,
3323 and HAVE_TFMODE as appropriate.
3324 (__fixunssfDI): Provide an implementation that doesn't need DFmode.
3325 (__floatdisf): Likewise.
3326 * libgcc2.h (LIBGCC2_DOUBLE_TYPE_SIZE): New.
3327 (HAVE_DFMODE, HAVE_XFMODE, HAVE_TFMODE): New.
3328 (Wtype_MAXp1_F): New.
3329 (DFtype, DCtype, __fixdfdi, __floatdidf, __fixunsdfSI, __fixunsdfDI,
3330 __powidf2, __divdc3, __muldc3): Protect with HAVE_DFMODE.
3331
9f7bf991
RE
33322005-02-16 Richard Earnshaw <rearnsha@arm.com>
3333
3334 * PR target/19162
3335 * arm.c (arm_apply_result_size): New function.
3336 * arm.h (APPLY_RESULT_SIZE): Define.
3337 * arm-protos.h (arm_apply_result_size): Add prototype.
3338 * arm.md (RO_REGNUM, FPA_F0_REGNUM, FPA_F7_REGNUM): New constants.
3339 (movxf): New expand.
3340 (ldmsi_postinc4_thumb, stmsi_postinc4_thumb): New patterns for Thumb.
3341 (call_value_symbol): Remove predicate for operand 0.
3342 (call_value_insn, sibcall_value, sibcall_value_insn): Likewise.
3343 (untyped_call): Rework to correclty return values for any type.
3344 (untyped_return): New expand.
3345 * fpa.md (movxf_fpa): Simplify and use sfm/lfm when appropriate.
3346
f0b81cbc
SS
33472005-02-16 Stan Shebs <shebs@apple.com>
3348
3349 * config.gcc (powerpc-*-darwin*): Use fragment for Darwin 8 or later.
3350 * config/rs6000/t-darwin8: New, for 64-bit multilib.
3351
25c62e24
EB
33522005-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
3353
927c8259 3354 * doc/install.texi (sparc-sun-solaris2*): Document required GMP
25c62e24
EB
3355 configure settings on Solaris 7 and later.
3356
3bd09563
DN
33572005-02-16 Diego Novillo <dnovillo@redhat.com>
3358
3359 PR tree-optimization/19865
3360 * tree-optimize.c (init_tree_optimization_passes): Run
3361 pass_may_alias after pass_sra.
3362
847d0c08
RH
33632005-02-16 Richard Henderson <rth@redhat.com>
3364 Stuart Hastings <stuart@apple.com>
3365
3366 PR debug/19521
3367 * dbxout.c (dbxout_function_end): Take decl parameter; update callers.
3368 Do nothing if debug info suppressed for this function.
3369 (dbxout_begin_function): Early exit if debug info suppressed for
3370 this function.
3371
de332a85
KH
33722005-02-16 Kazu Hirata <kazu@cs.umass.edu>
3373
3374 PR target/20007
3375 * config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
3376 find_basic_blocks.
3377 * config/sh/sh.c (sh_output_mi_thunk): Likewise.
3378
5fcfe0b2
KH
3379 PR tree-optimization/19967
3380 * builtins.c (expand_builtin_strstr, expand_builtin_strpbrk,
3381 expand_builtin_strchr, expand_builtin_strrchr): Take a new
3382 argument TYPE. Adjust calls to fold_builtin_XXX.
3383 (expand_builtin, fold_builtin_1): Adjust calls to
3384 expand_builtin_XXX.
3385 (fold_builtin_strchr, fold_builtin_strpbrk,
3386 fold_builtin_strstr, fold_builtin_strrchr): Convert the folded
3387 result to a requested type TYPE.
3388
8940b3b2
JJ
33892005-02-16 Jakub Jelinek <jakub@redhat.com>
3390
3391 PR middle-end/19857
3392 * fold-const.c (fold): Don't optimize (T)(x & cst) to
3393 (T)x & (T)cst if (T)cst overflows.
3394 * convert.c (convert_to_integer) <case POINTER_TYPE>: Pass
3395 TYPE_UNSIGNED (type) as type_for_size's UNSIGNEDP argument.
3396
aa47fcfa
JL
33972005-02-15 Jeff Law <law@redhat.com>
3398
3399 * gcse.c (blocks_with_calls): New bitmap.
3400 (alloc_gcse_mem): Allocate it.
3401 (free_gcse_mem): Free it.
3402 (clear_modifY_mem_tables): Clear it.
3403 (record_last_mem_set_info): Set the proper bit in BLOCK_WITH_CALLS
3404 when we encounter CALL_INSNs.
3405 (compute_transp, case MEM): Handle blocks with calls separate
3406 from blocks without calls. Use bitmap iterators rather than
3407 FOR_EACH_BB.
3408
489ce9e7
PG
34092005-02-15 Peter O'Gorman <peter@pogma.com>
3410
3411 PR bootstrap/18810
3412 * mklibgcc.in (vis_hide): Use a temporary object file, not
3413 -o /dev/null.
3414
1dd8ce20
AH
34152005-02-15 Andy Hutchinson <HutchinsonAndy@netscape.net>
3416
3417 PR target/19924
3418 * config/avr/avr.h (MODES_TIEABLE_P): Define to 1 to allow subreg
3419 access optimization.
3420
6f85d0c4 34212005-02-15 David Edelsohn <edelsohn@gnu.org>
fd9850d5 3422 Alan Modra <amodra@bigpond.net.au>
6f85d0c4
DE
3423
3424 PR target/19019
3425 * config/rs6000/darwin-ldouble.c (_xlqadd): Rename to __gcc_qadd.
3426 (_xlqsub): Rename to __gcc_qsub.
3427 (_xlqmul): Rename to __gcc_qmul.
3428 (_xlqdiv): Rename to __gcc_qdiv.
3429 Provide versioned symbol aliases with old names.
3430 * config/rs6000/libgcc-ppc64.ver: Rename symbols.
3431 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Rename symbols.
3432 * config/rs6000/t-aix43 (LIB2FUNCS_EXTRA): New.
3433 * config/rs6000/t-aix52 (LIB2FUNCS_EXTRA): New.
3434 * config/rs6000/t-newas (LIB2FUNCS_EXTRA): New.
3435
40f84775
JM
34362005-02-15 James A. Morrison <phython@gcc.gnu.org>
3437
3438 * fold-const.c (fold): Fold -(~A) to A + 1. Fold ~(-A) to A - 1.
3439 Fold ~(A - 1) and ~(A + -1) to -A.
3440
14be52a2
JM
34412005-02-15 James A. Morrison <phython@gcc.gnu.org>
3442
3443 PR pch/14940
3444 PR target/19300
3445 * config/host-linux.c (linux_gt_pch_use_address): Copy from
3446 config/pa/pa-host.c:pa_gt_pch_use_address.
3447
eace8c18
DB
34482005-02-15 Daniel Berlin <dberlin@dberlin.org>
3449
3450 * tree-vn.c (get_value_handle): Make sure that given an
3451 is_gimple_min_invariant expression, we always return it.
3452
83cc36c8
KH
34532005-02-15 Kazu Hirata <kazu@cs.umass.edu>
3454
3455 * passes.c (rest_of_handle_gcse): Fix a comment.
3456
9a6cf911
JL
34572005-02-15 Jeff Law <law@redhat.com>
3458
3459 * gcse.c (canon_modify_mem_set_list_set): Kill unnecessary
3460 bitmap.
3461 (alloc_gcse_mem, free_gcse_mem): Corresponding changes.
3462 (canon_list_insert, record_last_mem_set_info): Similarly.
3463 (clear_modify_mem_tables): Similarly.
3464
6a6305e4
KH
34652005-02-15 Kazu Hirata <kazu@cs.umass.edu>
3466
3467 * bitmap.c, bitmap.h, lambda-code.c, tree-dfa.c, tree-dump.c,
3468 tree-dump.h, tree-ssa-loop-manip.c, value-prof.c,
3469 config/mips/mips.md, config/rs6000/aix.h,
3470 config/rs6000/beos.h, config/rs6000/sysv4.h: Update copyright.
3471
934677f9
RH
34722005-02-15 Richard Henderson <rth@redhat.com>
3473
2cdc2073 3474 * bb-reorder.c (find_traces_1_round): Force fallthru edge from a
934677f9
RH
3475 call to be best_edge.
3476
2e09ee33
KH
34772005-02-14 Kazu Hirata <kazu@cs.umass.edu>
3478
3479 * basic-block.h: Adjust the prototype for find_basic_blocks.
3480 * cfgbuild.c (find_basic_blocks): Remove unused arguments.
3481 * passes.c (rest_of_handle_loop_optimize): Adjust the call to
3482 find_basic_blocks.
3483
e22857eb
KH
3484 * flow.c (recompute_reg_usage): Remove all arguments.
3485 * passes.c (rest_of_compilation): Adjust the call to
3486 recompute_reg_usage.
3487 * rtl.h: Adjust the prototype for recompute_reg_usage.
3488
f46fe224 34892005-02-14 Daniel Berlin <dberlin@dberlin.org>
2cdc2073 3490
f46fe224
DB
3491 * tree-dump.c (dump_files): Update to reflect new member
3492 of dump_file_info.
3493 (dump_register): Add new argument.
3494 Set glob name.
3495 (dump_switch_p_1): Check against glob name if doglob was passed.
3496 (dump_switch_p): Check against regular first, then glob if
3497 we didn't have any hits on the dump name.
3498 * tree-optimize.c (register_one_dump_file):
3499 Pass in glob name as well.
3500 * tree-pass.h (struct dump_file_info): Add glob
3501 member.
3502
90689ae1
JM
35032005-02-14 Joseph S. Myers <joseph@codesourcery.com>
3504
3505 PR preprocessor/16323
3506 * doc/invoke.texi: Document that -Wendif-labels is on by default.
3507
8cb320b8
DE
35082005-02-14 David Edelsohn <edelsohn@gnu.org>
3509
3510 PR target/19019
2fe433c2 3511 * config/rs6000/rs6000.md (trunctfdf2): Change to define_expand.
8cb320b8 3512 (trunctfdf2_internal1): New.
2fe433c2 3513 (trunctfdf2_internal2): Renamed from trunctfdf2.
8cb320b8 3514
9a06c1cb
DN
35152005-02-14 Diego Novillo <dnovillo@redhat.com>
3516
3517 PR tree-optimization/19853
3518 * tree-dfa.c (add_referenced_var): Always examine DECL_INITIAL.
3519
0c86d709
KH
35202005-02-14 Kazu Hirata <kazu@cs.umass.edu>
3521
3522 * passes.c (rest_of_handle_loop_optimize): Remove calls to
3523 delete_dead_jumptables and cleanup_cfg.
3524
e88d55cd
UW
35252005-02-14 Ulrich Weigand <uweigand@de.ibm.com>
3526
3527 * reload.c (find_reloads): Swap address_reloaded flags when
3528 swapping commutative operands.
3529
92d2b330 35302005-02-14 Sebastian Pop <pop@cri.ensmp.fr>
9a06c1cb 3531
92d2b330
SP
3532 * lambda-code.c (lambda_loopnest_to_gcc_loopnest, perfect_nestify):
3533 Use standard_iv_increment_position for computing the bsi position
3534 for create_iv.
3535 * tree-ssa-loop-manip.c (create_iv): Add a comment on how to compute
3536 the bsi position.
3537
af9ecd0c
ZD
35382005-02-13 Zdenek Dvorak <dvorakz@suse.cz>
3539
3540 PR target/17428
9a06c1cb
DN
3541 * cfgrtl.c (safe_insert_insn_on_edge): Avoid extending
3542 life range of hard registers.
3543 * value-prof.c (insn_prefetch_values_to_profile): Only
3544 scan normal insns.
af9ecd0c
ZD
3545
3546 * value-prof.c (rtl_find_values_to_profile): Do not look for values to
3547 profile in libcalls.
3548
90bb1c1f
NS
35492005-02-13 Nathan Sidwell <nathan@codesourcery.com>
3550
3551 * bitmap.h (bitmap_and_compl_into): Return bool.
3552 * bitmap.c (bitmap_and_compl_into): Return changed flag.
3553
623049aa
JM
35542005-02-13 James A. Morrison <phython@gcc.gnu.org>
3555
3556 PR tree-optimization/19944
3557 * fold-const.c (fold): Re-add ABS_EXPR folding.
3558
de17c25f
DE
35592005-02-13 David Edelsohn <edelsohn@gnu.org>
3560
3561 PR target/19019
3562 * config/rs6000/aix.h ({TARGET,MASK}_XL_CALL): Rename to
3563 {TARGET,MASK}_XL_COMPAT.
3564 (SUBTARGET_SWITCHES): Rename xl-call to xl-compat. Use
3565 MASK_XL_COMPAT.
3566 * config/rs6000/beos.h ({TARGET,MASK}_XL_CALL): Remove.
3567 * config/rs6000/rs6000.c (function_arg): Change TARGET_XL_CALL to
3568 TARGET_XL_COMPAT.
3569 (rs6000_arg_partial_bytes): Same.
3570 (rs6000_generate_compare): Generate PARALLEL for compare if TFmode
3571 and XL compatibility enabled.
3572 * config/rs6000/rs6000.h (TARGET_XL_CALL): Rename to TARGET_XL_COMPAT.
3573 * config/rs6000/rs6000.md (cmptf_internal1): Add !TARGET_XL_COMPAT
3574 test to final condition.
3575 (cmptf_internal2): New.
3576 * doc/invoke.texi (RS/6000 Subtarget Options): Change xl-call to
3577 xl-compat. Add TFmode information to description.
3578
e04369ac
KH
35792005-02-13 Kazu Hirata <kazu@cs.umass.edu>
3580
3581 * flags.h, read-rtl.c, tree-ssa-live.h: Update copyright.
3582
38116e3d
JM
35832005-02-13 Jason Merrill <jason@redhat.com>
3584
38116e3d
JM
3585 PR c++/16405
3586 * fold-const.c (fold_indirect_ref_1): Split out from...
3587 (build_fold_indirect_ref): Here.
3588 (fold_indirect_ref): New fn.
3589 * tree.h: Declare it.
3590 * gimplify.c (gimplify_compound_lval): Call fold_indirect_ref.
3591 (gimplify_modify_expr_rhs): Likewise.
3592 (gimplify_expr): Likewise.
3593
60a8fb5e
JM
35942005-02-13 James A. Morrison <phython@gcc.gnu.org>
3595
3596 PR tree-optimization/14303
3597 PR tree-optimization/15784
3598 * fold-const.c (fold): Fold ABS_EXPR<x> >= 0 to true, when possible.
3599 Fold ABS_EXPR<x> < 0 to false. Fold ABS_EXPR<x> == 0 to x == 0 and
3600 ABS_EXPR<x> != 0 to x != 0.
3601
647eea9d
KH
36022005-02-12 Kazu Hirata <kazu@cs.umass.edu>
3603
3604 * c-tree.h, combine.c, expmed.c, flow.c, libgcc2.c,
3605 simplify-rtx.c, tree-ssa-live.h: Fix comment typos. Follow
3606 spelling conventions.
3607
6f9087d7
KH
3608 * passes.c (rest_of_handle_gcse): Don't run cse_main and
3609 delete_trivially_dead_insns too many times.
3610
ea24f64b
KH
3611 * passes.c (rest_of_handle_gcse): Remove dead assignments to
3612 tem and tem2.
3613
8ad833ac
IR
36142005-02-12 Ira Rosen <irar@il.ibm.com>
3615
3616 * tree-vectorizer.c (vect_get_base_and_offset): Remove.
3617 (vect_is_simple_iv_evolution): Remove redundant parameter
3618 and step check.
3619 (vect_analyze_scalar_cycles): Call vect_is_simple_iv_evolution
3620 without last parameter.
3621 (vect_analyze_pointer_ref_access): Get access_fn as parameter.
3622 Return pointer step. Call vect_is_simple_iv_evolution without
3623 last parameter. Check only that the step is multiple of size
3624 type. Remove stmt_vinfo updates.
3625 (vect_get_memtag_and_dr): Remove.
3626 (vect_get_memtag): New function.
3627 (vect_address_analysis): New function.
3628 (vect_object_analysis): New function.
3629 (vect_analyze_data_refs): Call vect_object_analysis and
3630 vect_get_memtag. Update stmt_vinfo fields.
3631
e3a8a4ed
IR
36322005-02-12 Ira Rosen <irar@il.ibm.com>
3633
3634 * tree-data-ref.c (array_base_name_differ_p): Check that the bases
3635 exist and are objects. Remove checks for pointer.
3636 * tree-vectorizer.c (vect_create_addr_base_for_vector_ref): Use
3637 STMT_VINFO_VECT_DR_BASE_ADDRESS instead of DR_BASE_NAME.
3638 (vect_create_data_ref_ptr): Likewise.
3639 (vect_base_addr_differ_p): New function.
3640 (vect_analyze_data_ref_dependence): Call vect_base_addr_differ_p.
3641 (vect_analyze_pointer_ref_access): Add output parameter - ptr_init.
3642 Don't set the DR_BASE_NAME field of data-ref.
3643 (vect_get_memtag_and_dr): Use ptr_init instead of DR_BASE_NAME.
3644
c94a75af
UB
36452005-02-12 Uros Bizjak <uros@kss-loka.si>
3646
3647 * optabs.h (enum optab_index): Add new OTI_ldexp.
3648 (ldexp_optab): Define corresponding macro.
3649 * optabs.c (init_optabs): Initialize ldexp_optab.
3650 * genopinit.c (optabs): Implement ldexp_optab using ldexp?f3
3651 patterns.
3652 * builtins.c (expand_builtin_mathfn_2): Handle BUILT_IN_LDEXP{,F,L}
3653 using ldexp_optab.
3654 (expand_builtin): Expand BUILT_IN_LDEXP{,F,L} using
3655 expand_builtin_mathfn_2 if flag_unsafe_math_optimizations is set.
3656
3657 * config/i386/i386.md (ldexpsf3, ldexpdf3, ldexpxf3): New expanders
3658 to implement ldexpf, ldexp and ldexpl built-ins as inline x87
3659 intrinsics.
3660
e3a8a4ed 36612005-02-12 Ira Rosen <irar@il.ibm.com>
a5ae3ad6
IR
3662
3663 * tree-vectorizer.h (struct _stmt_vec_info): Rename a field: base
3664 to base_address.
3665 * tree-vectorizer.c (new_stmt_vec_info): Rename the above field of
3666 stmt_vec_info.
3667 (vect_get_base_and_offset): Always return an address.
3668 (vect_create_addr_base_for_vector_ref): Remove treatment for
3669 different data reference types.
3670 (vect_compute_data_ref_alignment): Rename base to base_address in
3671 stmt_vec_info. Get the object in order to force its alignment.
3672 (vect_get_memtag_and_dr): Rename base to base_address in
3673 stmt_vec_info. Extract the object for memtag analysis.
3674
f4ddaddd
HPN
36752005-02-12 Hans-Peter Nilsson <hp@axis.com>
3676
3677 PR regression/19898.
3678 * config/cris/cris.c (cris_notice_update_cc): When testing if insn
3679 changes cc_status, use apply modified_in_p to part of cc_status
3680 and insn, not cris_reg_overlap_mentioned_p on SET_DEST of insn
3681 body.
3682
7e7e470f
RH
36832005-02-11 Richard Henderson <rth@redhat.com>
3684
3685 * tree-complex.c (expand_complex_libcall): New.
3686 (expand_complex_multiplication): Use it for c99 compliance.
3687 (expand_complex_division): Likewise.
3688 * fold-const.c (fold_complex_add, fold_complex_mult): New.
3689 (fold): Call them.
3690 * builtins.c (built_in_names): Remove const.
3691 * tree.c (build_common_builtin_nodes): Build complex arithmetic
3692 builtins.
3693 * tree.h (BUILT_IN_COMPLEX_MUL_MIN, BUILT_IN_COMPLEX_MUL_MAX): New.
3694 (BUILT_IN_COMPLEX_DIV_MIN, BUILT_IN_COMPLEX_DIV_MAX): New.
3695 (built_in_names): Remove const.
3696 * c-common.c (c_common_type_for_mode): Handle complex modes.
3697 * flags.h, toplev.c (flag_complex_method): Rename from
3698 flag_complex_divide_method.
3699 * libgcc2.c (__divsc3, __divdc3, __divxc3, __divtc3,
3700 __mulsc3, __muldc3, __mulxc3, __multc3): New.
3701 * libgcc2.h: Declare them.
a310245f 3702 * libgcc-std.ver: Export them.
7e7e470f
RH
3703 * mklibgcc.in (lib2funcs): Build them.
3704
c33bae88
SB
37052005-02-11 Steven Bosscher <stevenb@suse.de>
3706
3707 PR tree-optimization/19876
3708 Partially revert my change from 2005-01-14
3709 * tree-ssa-pre.c (compute_antic_aux): Make recursive once again...
3710 (compute_antic): ...and remove the loop here.
3711
28f8ecf9
JJ
37122005-02-11 Jakub Jelinek <jakub@redhat.com>
3713
97e9692b
JJ
3714 PR middle-end/19858
3715 * fold-const.c (make_bit_field_ref): If bitpos == 0 and bitsize
3716 is number of inner's bits, avoid creating a BIT_FIELD_REF.
3717
28f8ecf9
JJ
3718 * config/rs6000/sysv4.h (ENDFILE_LINUX_SPEC): Use crtendS.o instead of
3719 crtend.o if -pie. Use %{x:a;:b} spec syntax.
3720
d04b77ac
DJ
37212005-02-11 Daniel Jacobowitz <dan@codesourcery.com>
3722
3723 * config/mips/linux-unwind.h (mips_fallback_frame_state): Adjust
3724 offsets for the big-endian 32-bit case.
3725
70406574
JM
37262005-02-11 Joseph S. Myers <joseph@codesourcery.com>
3727
3728 * config/ia64/hpux.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Define.
3729
7e42db17
DJ
37302005-02-11 Dale Johannesen <dalej@apple.com>
3731
3732 * cselib.c (cselib_process_insn): Clear out regs where
3733 HARD_REGNO_CALL_PART_CLOBBERED is true at a call.
3734 * reload.c (find_equiv_reg): Ditto.
3735
f6254da4
ILT
37362005-02-11 Ian Lance Taylor <ian@airs.com>
3737
c5d97f6e
ILT
3738 * read-rtl.c (read_rtx_1): Give fatal error if we see a vector
3739 with no elements.
3740
f6254da4
ILT
3741 * tree.c (build_function_type_list): Work correctly if there are
3742 no arguments.
3743
f4f41b4e
UW
37442005-02-11 Ulrich Weigand <uweigand@de.ibm.com>
3745
3746 * config/s390/s390.md ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs",
3747 "*cmpsi_ccs"): Use %h instead of %c to print immediate operand.
3748 ("*zero_extendhisi2_64", "*zero_extendhisi2_31"): Choose based on
3749 TARGET_ZARCH instead of TARGET_64BIT.
3750
f203217e
RC
37512005-02-11 Ralf Corsepius <ralf.corsepius@rtems.org>
3752
3753 * config/rs6000/t-rtems:
3754 (MULTILIB_OPTIONS): Remove mcpu=602.
3755 (MUTLILIB_DIRNAMES): Remove m602.
2cdc2073 3756 (MULTILIB_MATCHES): Add ${MULTILIB_MATCHES_FLOAT}.
f203217e
RC
3757 Let mcpu=602 match mcpu=603.
3758 (MULTILIB_NEW_EXCEPTIONS_ONLY): Add mcpu=601, mcpu=602, mcpu=m603.
3759
9dcab61e
JDA
37602005-02-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3761
3762 * pa/linux-unwind.h (pa32_fallback_frame_state): Handle misaligned
3763 signal trampolines.
3764
70ad1f9f
DD
37652005-02-10 David Daney <ddaney@avtrex.com>
3766
3767 * config/alpha/linux-unwind.h: Add exception clause to copyright.
3768 * config/i386/linux-unwind.h: Likewise.
3769 * config/ia64/linux-unwind.h: Likewise.
3770 * config/mips/linux-unwind.h: Likewise.
3771 * config/pa/linux-unwind.h: Likewise.
3772 * config/rs6000/linux-unwind.h: Likewise.
3773 * config/s390/linux-unwind.h: Likewise.
3774 * config/sh/linux-unwind.h: Likewise.
3775 * config/sparc/linux-unwind.h: Likewise.
3776
3b6616dd
SB
37772005-02-10 Steven Bosscher <stevenb@suse.de>
3778
3779 PR tree-optimization/17549
3780 * tree-outof-ssa.c (find_replaceable_in_bb): Do not allow
3781 TER to replace a DEF with its expression if the DEF and the
3782 rhs of the expression we replace into have the same root
3783 variable.
3784
a0c5992a
RS
37852005-02-10 Richard Sandiford <rsandifo@redhat.com>
3786
3787 * config/mips/mips.md: Fix the placement of the match_scratch in the
3788 lea64 peephole2.
3789
0388d40a
KH
37902005-02-10 Kazu Hirata <kazu@cs.umass.edu>
3791
3792 * cse.c, tree-ssa-loop-ivopts.c, config/rs6000/linux-unwind.h:
3793 Fix comment typos.
3794
f5e2738c
ZD
37952005-02-10 Zdenek Dvorak <dvorakz@suse.cz>
3796
3797 * tree-ssa-loop-ivopts.c (determine_base_object): Ignore casts.
3798 (strip_offset): Handle addresses.
3799 (add_address_candidates): Use strip_offset.
3800 (difference_cost): Reflect strip_offset change.
3801 (force_var_cost, difference_cost): Strip nops.
3802
33d6a74c
KH
38032005-02-10 Kazu Hirata <kazu@cs.umass.edu>
3804
3805 * df.h (DF_REF_MODE_CHANGE, DF_REF_MEM_OK): Remove.
3806
c486021d
KH
3807 * builtins.def, haifa-sched.c, libgcc2.c, libgcc2.h,
3808 tree-ssa-loop-ivcanon.c, tree-ssa-loop-niter.c,
3809 config/cris/cris-protos.h, config/cris/cris.c: Update
3810 copyright.
3811
8d6f7195
JL
38122005-02-10 Jeff Law <law@redhat.com>
3813
3814 * tree-ssa-dom.c (thread_across_edge): Use xmalloc, not xcalloc.
3815 (lookup_avail_expr): Similarly.
3816
ba78d452
RG
38172005-02-10 Richard Guenther <rguenth@gcc.gnu.org>
3818
3819 * builtins.c (fold_builtin_powi): New function.
3820 (fold_builtin_1): Call it.
3821
0d3e9f35
SB
38222005-02-10 Steven Bosscher <stevenb@suse.de>
3823
3824 PR documentation/19309
3825 * doc/cpp.texi: The __GNUC__ and related predefined macros
3826 are also defined for the "standalone" cpp.
3827 Some non-GCC compilers may also define __GNUC__.
3828
ccf7f880
JJ
38292005-02-10 Jakub Jelinek <jakub@redhat.com>
3830
3831 PR c/19342
3832 * c-typeck.c (common_type): New routine. Old common_type renamed
3833 to...
3834 (c_common_type): ...this.
3835 (build_conditional_expr, build_binary_op): Use c_common_type instead
3836 of common_type.
3837
b49900cc
SB
38382005-02-10 Steven Bosscher <stevenb@suse.de>
3839
3840 * doc/md.texi: Replace @samp{length} with @code{length}.
3841
ca4c3169
ZD
38422005-02-09 Zdenek Dvorak <dvorakz@suse.cz>
3843
3844 PR tree-optimization/18687
3845 * tree-flow.h (find_loop_niter): Declare.
3846 * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables):
3847 Try using scev even for loops with more than one exit.
3848 * tree-ssa-loop-ivopts.c (struct loop_data): Removed niter field.
3849 (struct ivopts_data): Added niters field.
3850 (struct nfe_cache_elt): New.
3851 (nfe_hash, nfe_eq, niter_for_exit, niter_for_single_dom_exit): New
3852 functions.
3853 (tree_ssa_iv_optimize_init): Initialize niters cache.
3854 (determine_number_of_iterations): Removed.
3855 (find_induction_variables): Do not call determine_number_of_iterations.
3856 Access niters for single exit through niter_for_single_dom_exit.
3857 (add_iv_outer_candidates): Access niters for single exit through
3858 niter_for_single_dom_exit.
3859 (may_eliminate_iv): Take data argument. Use niter_for_exit. Do not use
3860 number_of_iterations_cond.
3861 (iv_period): New function.
3862 (determine_use_iv_cost_condition): Pass data to may_eliminate_iv.
3863 (may_replace_final_value): Take data argument. Use
3864 niter_for_single_dom_exit.
3865 (determine_use_iv_cost_outer): Pass data to may_replace_final_value.
3866 (rewrite_use_compare): Pass data to may_eliminate_iv.
3867 (rewrite_use_outer): Pass data to may_replace_final_value.
3868 (free_loop_data): Clean up the niters cache.
3869 (tree_ssa_iv_optimize_finalize): Free the niters cache.
3870 (tree_ssa_iv_optimize_loop): Do not call loop_commit_inserts.
3871 * tree-ssa-loop-niter.c (find_loop_niter): New function.
3872 (find_loop_niter_by_eval): Use tree_int_cst_lt.
3873 (num_ending_zeros): Moved to tree.c.
3874 * tree.h (num_ending_zeros): Declare.
3875 * tree.c (num_ending_zeros): Moved from tree.c.
3876
c6a912da
RH
38772005-02-09 Richard Henderson <rth@redhat.com>
3878
3879 * builtins.c (DEF_BUILTIN): Add COND argument.
3880 * tree.h (DEF_BUILTIN): Likewise.
3881 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN, DEF_EXT_LIB_BUILTIN,
3882 DEF_C94_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN): Update to
3883 match.
3884 (DEF_BUILTIN_STUB): New.
3885 (BUILT_IN_STACK_SAVE, BUILT_IN_STACK_RESTORE, BUILT_IN_INIT_TRAMPOLINE,
3886 BUILT_IN_ADJUST_TRAMPOLINE, BUILT_IN_NONLOCAL_GOTO,
3887 BUILT_IN_PROFILE_FUNC_ENTER, BUILT_IN_PROFILE_FUNC_EXIT): Use it.
3888 * c-common.c (DEF_BUILTIN): Add COND argument.
3889 * tree.c (local_define_builtin): New.
3890 (build_common_builtin_nodes): New.
3891
e3bb43c0
RS
38922005-02-09 Roger Sayle <roger@eyesopen.com>
3893
3894 * fold-const.c (fold_strip_sign_ops): New function to simplify a
3895 floating point expression ignoring the sign of the result.
3896 (fold) <ABS_EXPR>: Use it to simplify fabs(x).
3897 (fold) <MULT_EXPR>: Use it to simplify x*x.
3898 * tree.h (fold_strip_sign_ops): Prototype here.
3899 * builtins.c (fold_builtin_copysign): Take an additional FNDECL
3900 argument. Use fold_strip_sign_ops to simplify the first argument.
3901 (fold_builtin_pow): Use fold_strip_sign_ops to simplify the
3902 first argument when the second argument is an even integer
3903 constant, but only with -funsafe_math_optimizations.
3904 (fold_builtin_1): Update call to fold_builtin_copysign.
3905
5eefcf2f
ILT
39062005-02-09 Ian Lance Taylor <ian@airs.com>
3907
3908 PR middle-end/19583
3909 * gimple-low.c (try_catch_may_fallthru): In EH_FILTER_EXPR case,
3910 just check whether EH_FILTER_FAILURE falls through.
3911
dab80c81
AK
39122005-02-09 Andreas Krebbel <krebbel1@de.ibm.com>
3913
3914 * gcc/haifa-sched.c (schedule_block): Make queued sched group
3915 insns return to ready list in the next turn.
3916
17684d46
RG
39172005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
3918
3919 PR middle-end/19402
3920 * builtins.def: New __builtin_powi[lf].
3921 * builtins.c (mathfn_built_in): Handle BUILT_IN_POWI.
3922 (expand_builtin_powi): New function.
3923 (expand_builtin): Dispatch to expand_builtin_powi.
3924 * libgcc2.h: Add prototypes for __builtin_powi[lf].
3925 * libgcc2.c: Add __builtin_powi[lf] implementation.
3926 * mklibgcc.in: Add __builtin_powi[lf] to lib2funcs.
3927 * optabs.h: Add powi_optab.
3928 * optabs.c (init_optabs): Initialize powi_optab.
3929 * doc/extend.texi: Document __builtin_powi[lf].
3930
8ca3515f
DN
39312005-02-09 Dorit Naishlos <dorit@il.ibm.com>
3932
2cdc2073 3933 * tree-vectorizer.c (vect_set_dump_settings): Check that dump_file
8ca3515f
DN
3934 exists.
3935
0c6c135b
RG
39362005-02-09 Richard Guenther <rguenth@gcc.gnu.org>
3937
3938 PR middle-end/19854
3939 * fold-const.c (try_move_mult_to_index): Remove redundant
3940 type argument. Create ADDR_EXPR with correct type.
3941 (fold): Update callers of try_move_mult_to_index. Convert
3942 result to the appropriate type.
3943
8f2bf9f1
RS
39442005-02-09 Roger Sayle <roger@eyesopen.com>
3945
3946 PR target/19597
3947 * config/avr/avr.c (default_rtx_costs): Delete.
3948 (avr_operand_rtx_cost): New function.
3949 (avr_rtx_costs): Completely rewrite.
3950
453bd0f5
HPN
39512005-02-08 Hans-Peter Nilsson <hp@axis.com>
3952
3953 PR target/19806
3954 * config/cris/cris.c (in_code): New variable.
3955 (cris_output_addr_const): Now a static function, a wrapper for
3956 output_addr_const.
3957 (cris_asm_output_symbol_ref): New function, broken out SYMBOL_REF
3958 case from old cris_output_addr_const.
3959 (cris_asm_output_label_ref): Similar for LABEL_REF.
3960 (cris_output_addr_const_extra): Similar for UNSPEC.
3961 * config/cris/cris.h (OUTPUT_ADDR_CONST_EXTRA)
3962 (ASM_OUTPUT_SYMBOL_REF, ASM_OUTPUT_LABEL_REF): Define.
3963 * config/cris/cris-protos.h (cris_output_addr_const): Remove
3964 declaration.
3965 (cris_asm_output_symbol_ref, cris_output_addr_const_extra)
3966 (cris_asm_output_label_ref): Declare.
3967
749c6ef9
PB
39682005-02-08 Paolo Bonzini <bonzini@gnu.org>
3969
3970 PR preprocessor/19801
3971 * doc/cppinternals.texi (Conventions, Lexer, Files): Adjust
3972 filenames that changed when libcpp was moved to the toplevel.
3973
f8eacd97
RS
39742005-02-07 Roger Sayle <roger@eyesopen.com>
3975
3976 * simplify-rtx.c (simplify_relational_operation_1): Avoid creating
3977 zero extensions of BImode operands. Call lowpart_subreg instead
3978 of gen_lowpart_common and gen_lowpart_SUBREG.
3979
1e3fad21
NN
39802005-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
3981
3982 PR ada/19489
3983 * libada-mk.in: Use cc_for_cross_gnattools, not cc_set_by_configure.
3984 * configure.ac: Set cc_for_cross_gnattools.
3985 * configure: Regenerate.
3986
b0ad2de2
AM
39872005-02-08 Alan Modra <amodra@bigpond.net.au>
3988
3989 PR target/19803
3990 * predict.c (PROB_VERY_UNLIKELY): Use 1% instead of 10%.
3991
b950a32e
EB
39922005-02-07 Eric Botcazou <ebotcazou@libertysurf.fr>
3993
3994 PR debug/19327
3995 * dbxout.c (dbxout_symbol) <FUNCTION_DECL>: Skip inline instance
3996 of nested functions.
3997
6871294a
JW
39982005-02-07 Jonathan Wakely <redi@gcc.gnu.org>
3999
4000 * doc/extend.texi: Document deprecated extensions allowing
4001 static floating-point members to have initializers and allowing
4002 floating-point literals in integral constant expressions.
4003
17385e0d
KH
40042005-02-07 Kazu Hirata <kazu@cs.umass.edu>
4005
4006 * cfgcleanup.c, df.h, diagnostic.c, rtl.c, tree-vectorizer.h,
4007 config/darwin7.h, config/mips/mips.c,
4008 config/rs6000/altivec.md, config/rs6000/darwin-tramp.asm:
4009 Update copyright.
4010
459281be
KH
4011 * cse.c: Update comments.
4012
6a96f5c1
RG
40132005-02-07 Richard Guenther <rguenth@gcc.gnu.org>
4014
4015 PR middle-end/19775
4016 * builtins.c (fold_builtin_sqrt): Transform
4017 sqrt(pow(x,y)) to pow(fabs(x),y*0.5), not
4018 pow(x,y*0.5).
4019
c866976a
LB
40202005-02-07 Leehod Baruch <leehod@il.ibm.com>
4021 Dorit Naishlos <dorit@il.ibm.com>
4022
4023 * doc/invoke.texi (ftree-vectorizer-verbose): New.
4024 * opts.c (OPT_ftree_vectorizer_verbose_): New case for switch.
4025 * common.opt (ftree-vectorizer-verbose): New Flag for the vectorizer
4026 was added.
4027 * tree.h (vect_set_verbosity_level): New extern function declaration
4028 added.
4029 * tree-vectorizer.h (verbosity_levels): New enum type.
4030 * tree-vectorizer.c (vect_debug_stats): Function removed.
4031 (vect_debug_details): Likewise.
4032 (vect_verbosity_level): Global variable was defined and initialized.
4033 (vect_dump): Global variable definition.
4034 (vect_print_dump_info): New function.
4035 (vect_set_dump_settings): New function.
4036 (vect_set_verbosity_level): New function.
4037 (vectorize_loops): Add call to vect_set_dump_settings.
4038
4039 (slpeel_make_loop_iterate_ntimes): Dump condition was changed.
4040 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4041 (slpeel_tree_peel_loop_to_edge): Likewise.
4042
4043 (vect_analyze_offset_expr): Call to vect_print_dump_info with
2cdc2073
ZW
4044 appropriate verbosity level instead of call to vect_debug_details
4045 or vect_debug_stats.
c866976a
LB
4046 (vect_get_base_and_offset):
4047 (vect_create_addr_base_for_vector_ref):
4048 (get_vectype_for_scalar_type):
4049 (vect_create_data_ref_ptr):
4050 (vect_init_vector):
4051 (vect_get_vec_def_for_operand):
4052 (vect_finish_stmt_generation):
4053 (vectorizable_assignment):
4054 (vectorizable_operation):
4055 (vectorizable_store):
4056 (vectorizable_load):
4057 (vect_transform_stmt):
4058 (vect_update_ivs_after_vectorizer):
4059 (vect_do_peeling_for_loop_bound):
4060 (vect_update_inits_of_drs):
4061 (vect_do_peeling_for_alignment):
4062 (vect_transform_loop):
4063 (vect_is_simple_use):
4064 (vect_analyze_operations):
4065 (vect_is_simple_iv_evolution):
4066 (vect_analyze_scalar_cycles):
4067 (vect_analyze_data_ref_dependence):
4068 (vect_analyze_data_ref_dependences):
4069 (vect_compute_data_ref_alignment):
4070 (vect_enhance_data_refs_alignment):
4071 (vect_analyze_data_refs_alignment):
4072 (vect_analyze_data_ref_access):
4073 (vect_analyze_data_ref_accesses):
4074 (vect_analyze_pointer_ref_access):
4075 (vect_get_memtag_and_dr):
4076 (vect_analyze_data_refs):
4077 (vect_mark_relevant):
4078 (vect_stmt_relevant_p):
4079 (vect_mark_stmts_to_be_vectorized):
4080 (vect_can_advance_ivs_p):
4081 (vect_get_loop_niters):
4082 (vect_analyze_loop_form):
4083 (vect_analyze_loop):
4084 (vectorize_loops): Likewise.
4085
4086 (vect_do_peeling_for_loop_bound): Dump format slightly changed.
4087 (vect_update_inits_of_drs):
4088 (vect_do_peeling_for_alignment):
4089 (vect_transform_loop):
4090 (vect_analyze_operations):
4091 (vect_analyze_scalar_cycles):
4092 (vect_analyze_data_ref_dependences):
4093 (vect_analyze_data_refs_alignment):
4094 (vect_analyze_data_ref_accesses):
4095 (vect_analyze_data_refs):
4096 (vect_mark_stmts_to_be_vectorized):
4097 (vect_get_loop_niters):
4098 (vect_analyze_loop_form):
2cdc2073 4099 (vect_analyze_loop): Likewise.
c866976a
LB
4100 (vect_mark_stmts_to_be_vectorized): Add call to print_generic_expr.
4101
88ab13d6
RS
41022005-02-07 Richard Sandiford <rsandifo@redhat.com>
4103
4104 PR bootstrap/19796
4105 Revert:
4106 2005-01-26 Richard Sandiford <rsandifo@redhat.com>
4107 * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
4108 either -ffast-math or -funsafe-math-optimizations is in use.
4109
4110 2005-01-24 Richard Sandiford <rsandifo@redhat.com>
4111 * config/mips/irix-csr.c: New file.
4112 * config/mips/t-iris6 (irix-csr.o): New rule to build it.
4113 (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
4114 * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
4115 executables.
4116
a701780f
AO
41172005-02-07 Alexandre Oliva <aoliva@redhat.com>
4118
dcb15c6c
AO
4119 * config/mn10300/linux.h (LIB_SPEC, STARTFILE_SPEC): Remove
4120 redundant, incorrect definitions.
4121
a701780f
AO
4122 * config/frv/frv.md ("tls_indirect_call"): Turn into libcall-like
4123 expand.
4124 ("*tls_indirect_call"): New, reference hard regs directly.
4125 * config/frv/frv.c (gen_inlined_tls_plt): Adjust.
4126
888b0310
RC
41272005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
4128
2cdc2073 4129 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC):
888b0310
RC
4130 Let !-mhard-float !-msoft-float imply -mfpu=softfpa.
4131
b1a22407
RS
41322005-02-06 Roger Sayle <roger@eyesopen.com>
4133
4134 PR rtl-optimization/19800
7f5c93ac 4135 * simplify_rtx.c (simplify_relational_operation_1): Explicitly
b1a22407
RS
4136 call gen_lowpart_common and gen_lowpart_SUBREG instead of calling
4137 gen_lowpart.
4138
149056b0
RC
41392005-02-07 Ralf Corsepius <ralf.corsepius@rtems.org>
4140
4141 * config/m68k/t-rtems (MULTILIB_MATCHES): Let m528x match m5200.
4142
3e8cb558
JM
41432005-02-07 Joseph S. Myers <joseph@codesourcery.com>
4144
4145 PR other/17135
4146 * doc/invoke.texi: Correct documentation of -freorder-functions.
4147
ee86feaf
JM
41482005-02-06 Joseph S. Myers <joseph@codesourcery.com>
4149
4150 PR other/14402
4151 * doc/invoke.texi: Don't mention gccbug.
4152
1419a885
RS
41532005-02-06 Roger Sayle <roger@eyesopen.com>
4154 Andrew Pinski <pinskia@physics.uc.edu>
4155 Paolo Bonzini <paolo.bonzini@lu.unisi.ch>
4156
4157 * simplify-rtx.c (simplify_relational_operation_1): Simplify
4158 (ne:SI (zero_extract:SI FOO (const_int 1) BAR) (const_int 0))
4159 into just (zero_extract:SI FOO (const_int 1) BAR).
4160
706bb773
JM
41612005-02-06 Joseph S. Myers <joseph@codesourcery.com>
4162
4163 * doc/cpp.texi: Include gcc-common.texi. Don't define gcctabopt
4164 macro locally. Don't give last revision date. Use GCC version
4165 number from gcc-common.texi.
4166 * doc/cppinternals.texi: Include gcc-common.texi. Don't give last
4167 revision date. Use GCC version number from gcc-common.texi.
4168 Describe being a library as current state rather than as 3.x
4169 history.
4170 * doc/gcc.texi: Remove last update date.
4171 * doc/gccint.texi: Likewise. Update copyright dates.
4172 * doc/install.texi: Update copyright dates.
4173
69cdf050
JM
41742005-02-06 Joseph S. Myers <joseph@codesourcery.com>
4175
4176 PR other/7549
4177 * doc/invoke.texi: Mention for each option included in -Wall that
4178 it is included in -Wall.
4179 * doc/gcc.texi: Update copyright and last modification date.
4180
3520b745
ZD
41812005-02-06 Zdenek Dvorak <dvorakz@suse.cz>
4182
4183 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Do not add
4184 unnecessary cast to original induction variable increments.
4185
b0a168b6
ZD
41862005-02-06 Zdenek Dvorak <dvorakz@suse.cz>
4187
4188 PR tree-optimization/18219
4189 * tree-ssa-loop-ivopts.c (get_computation_at): Produce computations
4190 in distributed form.
4191
2c58f7dd
RS
41922005-02-06 Richard Sandiford <rsandifo@redhat.com>
4193
4194 * expmed.c (store_bit_field): Make the SUBREG code adjust bitnum.
4195 Set bitpos and offset later in the function. Do nothing if the
4196 target is a register and if the bitfield lies completely outside
4197 that register.
4198 (extract_bit_field): Make the same SUBREG, bitpos and offset changes
4199 here. Return an uninitialised register if the source value is stored
4200 in a register and the bitfield lies completely outside that register.
4201
55c4ae3f
SB
42022005-02-06 Steven Bosscher <stevenb@suse.de>
4203
4204 * df.c (df_insn_refs_record): Use XEXP to get the operand of a USE,
4205 not SET_DEST.
4206
cbd13f8a
MD
42072005-02-06 Marcin Dalecki <martin@dalecki.de>
4208
4209 * diagnostic.c (default_diagnostic_finalizer): Fix use of attribute.
4210
f1b4c8d8
GK
42112005-02-06 Geoffrey Keating <geoffk@apple.com>
4212
4213 * config.gcc (*-*-darwin*): Separate darwin7 and darwin8 configs.
4214 * config/darwin8.h: New.
4215 * config/darwin7.h: Update comment.
4216
773af5d0
LB
42172005-02-03 Leehod Baruch <leehod@il.ibm.com>
4218 Dorit Naishlos <dorit@il.ibm.com>
4219
4220 * tree-vectorizer.h (LOC): New type.
4221 (UNKNOWN_LOC, EXPR_LOC, LOC_FILE, LOC_LINE): New macros.
4222 (loop_line_number): New field in struct _loop_vec_info.
4223 (LOOP_VINFO_LOC, LOOP_LOC): New macros.
4224
4225 * tree-vectorizer.c (input.h): Included.
4226 (find_loop_location): New function.
4227 (vect_debug_stats): Argument changed from loop to LOC. Computation of
4228 loop line number removed.
4229 (vect_debug_details): Likewise.
4230 (new_loop_vec_info): Initialize new field LOOP_VINFO_LOC.
4231
4232 (slpeel_make_loop_iterate_ntimes): Call find_loop_location. Argument in
4233 call to vect_debug_details/stats changed from loop to loop_loc.
4234 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4235 (slpeel_tree_peel_loop_to_edge): Likewise.
4236
4237 (vect_analyze_offset_expr): Argument in call to vect_debug_details/stats
4238 changed from NULL to UNKNOWN_LOC.
4239 (vect_get_base_and_offset):
4240 (vect_create_addr_base_for_vector_ref):
4241 (get_vectype_for_scalar_type):
4242 (vect_create_data_ref_ptr):
4243 (vect_init_vector):
4244 (vect_get_vec_def_for_operand):
4245 (vect_finish_stmt_generation):
4246 (vectorizable_assignment):
4247 (vectorizable_operation):
4248 (vectorizable_store):
4249 (vectorizable_load):
4250 (vect_transform_stmt):
4251 (vect_update_ivs_after_vectorizer):
4252 (vect_do_peeling_for_loop_bound):
4253 (vect_do_peeling_for_alignment):
4254 (vect_transform_loop):
4255 (vect_is_simple_use):
4256 (vect_analyze_operations):
4257 (vect_is_simple_iv_evolution):
4258 (vect_analyze_scalar_cycles):
4259 (vect_analyze_data_ref_dependences):
4260 (vect_compute_data_ref_alignment):
4261 (vect_enhance_data_refs_alignment):
4262 (vect_analyze_data_ref_access):
4263 (vect_analyze_data_ref_accesses):
4264 (vect_analyze_pointer_ref_access):
4265 (vect_get_memtag_and_dr):
4266 (vect_analyze_data_refs):
4267 (vect_mark_relevant):
4268 (vect_stmt_relevant_p):
4269 (vect_mark_stmts_to_be_vectorized):
4270 (vect_can_advance_ivs_p):
4271 (vect_get_loop_niters):
4272 (vect_analyze_loop):
4273 (vectorize_loops): Likewise.
4274
4275 (vectorizable_load): Argument in call to vect_debug_details/stats
4276 changed from loop to LOOP_LOC (loop_vinfo).
4277 (vect_transform_loop):
4278 (vect_analyze_operations):
4279 (vect_analyze_scalar_cycles):
4280 (vect_analyze_data_ref_dependence):
4281 (vect_enhance_data_refs_alignment):
4282 (vect_analyze_data_ref_accesses):
4283 (vect_analyze_pointer_ref_access):
4284 (vect_analyze_data_refs):
4285 (vect_analyze_loop): Likewise.
4286
4287 (vect_analyze_loop_form): Argument in call to vect_debug_details/stats
4288 changed from loop to loop_loc.
4289
2cdc2073 4290 (vect_enhance_data_refs_alignment): Removed unused variable loop.
773af5d0 4291
ef302293
LB
42922005-02-03 Leehod Baruch <leehod@il.ibm.com>
4293 Dorit Naishlos <dorit@il.ibm.com>
4294
4295 * tree-vectorizer.c (vect_analyze_data_ref_dependence): Function
4296 declaration added.
4297 (vect_analyze_data_ref_dependences): Likewise.
4298
4299 (vect_is_simple_use): Argument changed from loop structure to
4300 loop_vect_info structure.
4301 (vect_can_advance_ivs_p): Likewise.
4302 (vect_create_index_for_vector_ref): Likewise.
4303 (vect_update_ivs_after_vectorizer): Likewise.
4304 (new_stmt_vec_info): Likewise.
2cdc2073 4305
ef302293
LB
4306 (new_loop_vec_info): Second argument in call to new_stmt_vec_info was
4307 changed from loop to loop_vinfo.
4308 (vect_create_data_ref_ptr): First argument in call to
4309 vect_create_index_for_vector_ref was changed from loop to loop_vinfo.
4310 (vectorizable_assignment): Second argument in call to vect_is_simple_use
4311 was changed from loop to loop_vinfo.
4312 (vectorizable_operation): Likewise.
4313 (vectorizable_store): Likewise.
4314 (vect_mark_stmts_to_be_vectorized): Likewise.
4315 (vect_do_peeling_for_loop_bound): First argument in call to
4316 vect_update_ivs_after_vectorizer was changed from loop to loop_vinfo.
4317 (vect_analyze_operations): Argument in call to vect_can_advance_ivs_p
4318 was changed from loop to loop_vinfo.
4319 (vect_analyze_data_ref_dependences): Third argument in call to
4320 vect_analyze_data_ref_dependence was changed from loop to loop_vinfo.
2cdc2073 4321
ef302293
LB
4322 (vect_create_index_for_vector_ref): Get the loop from loop_vinfo.
4323 (vect_create_data_ref_ptr): Likewise.
4324 (vect_init_vector): Likewise.
4325 (vect_get_vec_def_for_operand): Likewise.
4326 (vectorizable_assignment): Likewise.
4327 (vectorizable_operation): Likewise.
4328 (vectorizable_store): Likewise.
4329 (vectorizable_load): Likewise.
4330 (vect_update_ivs_after_vectorizer): Likewise.
4331 (vect_is_simple_use): Likewise.
4332 (vect_analyze_data_ref_dependence): Likewise.
4333 (vect_analyze_pointer_ref_access): Likewise.
4334 (vect_can_advance_ivs_p): Likewise.
4335
4336 * tree-vectorizer.h: (_loop_vec_info): Definition and macros moved
4337 before _stmt_vec_info.
4338 (_stmt_vec_info): Loop field replaced by loop_vec_info.
4339 (STMT_VINFO_LOOP): Replaced with STMT_VINFO_LOOP_VINFO.
4340 (new_stmt_vec_info): Argument changed from loop structure to
4341 loop_vect_info structure
4342
4343 (vect_analyze_data_ref_dependences): Unnecessary line was removed.
4344 (vect_analyze_offset_expr): Avoid 80 columns overflow.
4345 (vect_create_addr_base_for_vector_ref): Likewise.
4346 (vect_analyze_pointer_ref_access): Likewise.
4347
9df935d8
AP
43482005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
4349
4350 PR tree-opt/19768
4351 * tree-ssa-dse.c (fix_phi_uses): Update the occurs in abnormal
4352 phi flag if the phi is abnormal.
4353
50d4a707
AP
43542005-02-03 Andrew Pinski <pinskia@physics.uc.edu>
4355
4356 PR tree-opt/19736
4357 * tree-ssa.c (replace_immediate_uses): Update the immediate_uses
4358 information for the new statement.
4359
cd21f044
JM
43602005-02-03 Joseph S. Myers <joseph@codesourcery.com>
4361
4362 PR driver/19117
4363 * gcc.c (main): Include the target in -v output.
4364
aa2d0bc3
AO
43652005-02-03 Alexandre Oliva <aoliva@redhat.com>
4366
4367 * combine.c (simplify_comparison, case SIGN_EXTEND, ZERO_EXTEND):
4368 Do not drop the extend if we'd have to add a paradoxical subreg
4369 later. Include optabs.h and insn-codes.h.
4370 * Makefile.in (combine.o): Depend on $(OPTABS_H).
4371
762297d9
RS
43722005-02-02 Roger Sayle <roger@eyesopen.com>
4373
4374 PR middle-end/19405
4375 * real.h (REAL_MODE_FORMAT_COMPOSITE_P): New macro.
4376 * fold-const.c (const_binop): Avoid constant folding floating
4377 point operations in modes that use composite representations.
4378 * simplify-rtx.c (simplify_binary_operation): Likewise.
4379
666158b9
GK
43802005-02-02 Geoffrey Keating <geoffk@apple.com>
4381
4382 * config/rs6000/altivec.md (altivec_dst): Make the first operand
4383 a REG, not a MEM.
4384 (altivec_dstt): Likewise.
4385 (altivec_dstst): Likewise.
4386 (altivec_dststt): Likewise.
4387 * config/rs6000/rs6000.c (altivec_expand_dst_builtin): Adjust creation
4388 of first operand.
4389
cce4ca55
DN
43902005-02-03 Dorit Naishlos <dorit@il.ibm.com>
4391
4392 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Copy
4393 EXPR_LOCUS from orig_cond to the new cond_stmt.
4394 (vect_finish_stmt_generation): Copy EXPR_LOCUS from stmt to
4395 the new vec_stmt.
4396
43972005-02-03 Dorit Naishlos <dorit@il.ibm.com>
4398
4399 * tree-vectorizer.c (slpeel_make_loop_iterate_ntimes): Call
2cdc2073 4400 standard_iv_increment_position. Remove call to bsi_next
cce4ca55
DN
4401 (no need to bump the iterator anymore).
4402 (vect_create_index_for_vector_ref): Call
4403 standard_iv_increment_position. Remove second function argument.
2cdc2073 4404 (vect_finish_stmt_generation): Remove call to bsi_next
cce4ca55
DN
4405 (no need to bump the iterator anymore).
4406 (vect_create_data_ref_ptr): Remove second argument (bsi) in call
4407 to vect_create_index_for_vector_ref.
4408
44092005-02-03 Dorit Naishlos <dorit@il.ibm.com>
4410
4411 * tree-vectorizer.c (vect_mark_stmts_to_be_vectorized): Check if
4412 phis are used out of the loop.
4413
73aea290
JM
44142005-02-03 Joseph S. Myers <joseph@codesourcery.com>
4415
4416 PR c/17807
4417 * c-decl.c (undef_nested_function): New variable.
4418 (pop_scope): Diagnose undefined nested functions.
4419 (finish_function): Don't attempt cgraph processing or genericizing
4420 if current top-level function contained an undefined nested
4421 function. Reset undef_nested_function at the end of a top-level
4422 function.
4423
89d12f5d
ZD
44242005-02-02 Zdenek Dvorak <dvorakz@suse.cz>
4425
4426 * tree.c (build_int_cst_type): Take sign of the value into account
4427 when deciding whether sign extend the value.
4428
740ca4b2
JM
44292005-02-02 Joseph S. Myers <joseph@codesourcery.com>
4430
4431 PR c/18502
4432 * gcc.c (cpp_unique_options): Remove %{trigraphs}.
4433 (cpp_options, cc1_options): Change %{std*&ansi} to
4434 %{std*&ansi&trigraphs}.
4435
a52aff23
KH
44362005-02-02 Kazu Hirata <kazu@cs.umass.edu>
4437
4438 * cse.c: Update comments.
4439
cf676baa
AH
44402005-02-02 Aldy Hernandez <aldyh@redhat.com>
4441
4442 * config/rs6000/rs6000.c (rs6000_spe_function_arg): Multi-reg
4443 arguments go on the stack. Do not put complex doubles in odd/even
4444 pairs.
4445
08711fdf
SB
44462005-02-02 Steven Bosscher <stevenb@suse.de>
4447
4448 * doc/invoke.texi: Update the options enabled at -O1, -O2,
4449 and -O3. Update the documentation for -fgcse-sm, -fgcse-las,
4450 -ftree-pre, and -fthread-jumps.
4451
7ded35b4
RS
44522005-02-02 Richard Sandiford <rsandifo@redhat.com>
4453
4454 PR tree-optimization/19578
4455 * tree-flow.h (modified_noreturn_calls): Declare.
4456 (noreturn_call_p): Declare.
4457 * tree-flow-inline.h (noreturn_call_p): New function.
4458 (modify_stmt): Add modified noreturn calls to modified_noreturn_calls.
4459 * tree-cfg.c (modified_noreturn_calls): New variable.
4460 (cleanup_control_flow): Use noreturn_call_p. Split basic blocks
4461 that contain a mid-block noreturn call.
4462 * tree-ssa.c (delete_tree_ssa): Clear modified_noreturn_calls.
4463
d01da8bd
KH
44642005-02-02 Kazu Hirata <kazu@cs.umass.edu>
4465
4466 * df.c (df_def_record_1, df_uses_record): Don't use
4467 DF_FOR_REGALLOC.
4468 * df.h (DF_FOR_REGALLOC): Remove.
4469
493179da
JM
44702005-02-02 Joseph S. Myers <joseph@codesourcery.com>
4471
4472 PR c/19435
4473 * c-typeck.c (really_start_incremental_init): Reset
4474 constructor_max_index for arrays of incomplete type.
4475
ed425871
JL
44762005-02-02 Jeff Law <law@redhat.com>
4477
4478 * gcse.c (struct reg_set): Store the block index where the register
4479 was set rather than the setting insn.
4480 (record_one_set, compute_transp): Corresponding changes.
4481 (pre_insert_copy_insn): Do not call replace_one_set.
4482 (replace_one_set): Remove.
4483
d02d7104
JM
44842005-02-02 Joseph S. Myers <joseph@codesourcery.com>
4485
4486 PR other/15514
4487 * doc/gcov.texi: Fix typo.
4488
c1c5b5e3
RH
44892005-02-01 Richard Henderson <rth@redhat.com
4490
4491 PR target/19680
4492 * config/i386/i386.h (MODES_TIEABLE_P): Use ix86_modes_tieable_p.
4493 * config/i386/i386.c (ix86_hard_regno_mode_ok): Change return
4494 type to bool.
4495 (ix86_tieable_integer_mode_p, ix86_modes_tieable_p): New.
4496 * config/i386/i386-protos.h: Update.
4497
7a442a1d
SB
44982005-02-01 Steven Bosscher <stevenb@suse.de>
4499
4500 PR tree-optimization/19217
4501 * tree-cfg.c (verify_expr): Use the data field to see if TP was
4502 seen inside a PHI node. Do not do the ADDR_EXPR check if it was.
4503 (verify_stmts): Pass (void*)1 as data to verify_expr to signal
4504 that it is walking a PHI node.
4505
475b6e22
JM
45062005-02-01 Joseph S. Myers <joseph@codesourcery.com>
4507
4508 * doc/extend.texi (Nested Functions): Update.
4509
ca58f2bc
RH
45102005-02-01 Richard Henderson <rth@redhat.com>
4511
4512 PR 19696
4513 * optabs.c (expand_copysign_absneg): Export.
4514 * optabs.h (expand_copysign_absneg): Declare.
4515 * config/rs6000/rs6000.md (copysigntf3): New.
4516
a1d13fa1
DN
45172005-02-01 Diego Novillo <dnovillo@redhat.com>
4518
4519 PR tree-optimization/19633
4520 * tree-flow.h (struct ptr_info_def): Add field 'pt_null'.
4521 * tree-ssa-alias.c (init_alias_info): Initialize.
4522 (merge_pointed_to_info): Set.
4523 (add_pointed_to_expr): Set pt_null if EXPR is a NULL pointer.
4524 (dump_points_to_info_for): Show value of pt_null.
4525 (struct count_ptr_d): Declare.
4526 (find_ptr_dereference): Remove.
4527 (ptr_is_dereferenced_by): Remove.
4528 (count_ptr_derefs): New local function.
4529 (count_uses_and_derefs): New local function.
4530 (compute_points_to_and_addr_escape): Call it. If the number
4531 of dereferences is greater than zero, mark the pointer as
4532 dereferenced. If there are fewer dereferences than uses of
4533 the pointer, the pointer's value escapes.
4534
28a3618f
DN
45352005-02-01 Diego Novillo <dnovillo@redhat.com>
4536
4537 PR tree-optimization/19670
4538 * tree-ssa.c (verify_ssa_name): Don't set TREE_VISITED
4539 here...
4540 (verify_use): ... set it here, instead.
4541
8d2d2ec6
JJ
45422005-02-01 Janis Johnson <janis187@us.ibm.com>
4543
cc95a845
JJ
4544 * doc/sourcebuild.texi (Test directives): Fix formatting.
4545
8d2d2ec6
JJ
4546 * doc/sourcebuild.texi (Test directives): Describe selector
4547 expressions.
4548
d1c8addb
SB
45492005-02-01 Segher Boessenkool <segher@kernel.crashing.org>
4550
4551 * config.gcc (powerpc64-*-linux*): Default to -m64 also for
4552 specific 64-bit CPUs.
4553
6555b6bd
RE
45542005-02-01 Richard Earnshaw <rearnsha@arm.com>
4555
4556 PR target/16201
4557 * arm.c (arm_eliminable_register): New function.
4558 (adjacent_mem_locations): Don't allow eliminable registers. Use
4559 HOST_WIDE_INT for address offsets.
4560 * arm-protos.h (arm_eliminable_register): Add prototype.
4561
bbcb0c05
SB
45622005-02-01 Steven Bosscher <stevenb@suse.de>
4563
4564 PR optimization/15242
4565 * params.def (PARAM_MAX_GOTO_DUPLICATION_INSNS): New param.
4566 * basic-block.h (duplicate_computed_gotos): Add prototype.
4567 * bb-reorder.c (duplicate_computed_gotos): New function to
4568 duplicate sufficiently small blocks ending in a computed jump.
4569 * passes.c (rest_of_compilation): Call duplicate_computed_gotos
4570 if not optimizing for size.
4571 * cfgcleanup.c (try_crossjump_bb): If not optimizing for size,
4572 never do tail merging for blocks ending in a computed jump.
4573 * doc/invoke.texi: Document the max-goto-duplication-insns param.
4574
9c0a30c3
EB
45752005-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
4576
4577 Patch from Richard Sandiford <rsandifo@redhat.com>
4578 * reload1.c (choose_reload_regs): Prevent the find_equiv_reg() code
4579 from inheriting a subreg equivalence with a non-spill register.
4580
4581 * tree.h (DECL_FUNCTION_CODE): Document that it is overloaded.
4582
7b150713
AO
45832005-02-01 Alexandre Oliva <aoliva@redhat.com>
4584
4585 * config/frv/frv.c (movcc_fp_destination_operand): New.
4586 (gpr_or_memory_operand): Fix typo in comment.
4587 (gpr_or_memory_operand_with_scratch): New.
4588 * config/frv/frv.h (PREDICATE_CODES): Add the two new predicates.
4589 * config/frv/frv.md (movcc_fp, movcc_fp_internal): Use
4590 movcc_fp_destination_operand.
4591 (reload_incc_fp): Use gpr_or_memory_operand_with_scratch.
4592 Legitimize memory addresses using a scratch register.
4593
dc5d4efb
JL
45942005-01-31 Jeff Law <law@redhat.com>
4595
7d793e36
JL
4596 * tree-into-ssa.c (mark_def_sites_global_data): Make KILLS
4597 bitmap a sparse bitmap instead of a simple bitmap.
4598 (mark_def_sites_initialize_block): Corresponding changes.
4599 (ssa_mark_def_sites_initialize_block): Likewise.
4600 (ssa_mark_phi_uses): Likewise.
4601 (mark_def_site, ssa_mark_def_sites): Likewise.
4602 (mark_def_site_blocks): Likewise.
4603 (rewrite_ssa_into_ssa): Likewise.
4604
5746637c
JL
4605 * tree-ssa-dom.c (record_cond): Pass correct variable type
4606 for last argument to htab_find_slot_with_hash.
4607
4608 * fold-const.c (fold, case CEIL_MOD_EXPR): Do not lose side
4609 effects when optimizing 0 % X. Do not try to optimize X % 0.
dc5d4efb 4610
3dcec1e9
JW
46112005-01-31 James E. Wilson <wilson@specifixinc.com>
4612
4613 * config/ia64/itanium1.md (1_scall bypass): Change 2_mmalua to
4614 1_mmalua.
4615
fc474307
EC
46162005-02-01 Eric Christopher <echristo@redhat.com>
4617
4618 * config/mips/mips.c (override_options): Warn if -mint64
4619 is used.
4620 * doc/invoke.texi (MIPS Options): Document that -mint64 is
4621 deprecated.
4622
bc5e3b54
KH
46232005-02-01 Kazu Hirata <kazu@cs.umass.edu>
4624
4625 * cse.c (cse_reg_info): Remove hash_next, next, regno. Add
4626 timestamp.
4627 (cse_reg_info_list, cse_reg_info_list_free, REGHASH_SHIFT,
4628 REGHASH_SIZE, REGHASH_MASK, reg_hash, REGHASH_FN,
4629 cached_cse_reg_info, GET_CSE_REG_INFO): Remove.
4630 (cached_regno): Initialize to INVALID_REGNUM.
4631 (cse_reg_info_table_size,
4632 cse_reg_info_table_first_uninitialized,
4633 cse_reg_info_timestamp): New.
4634 (REG_TICK, REG_IN_TABLE, SUBREG_TICKED, REG_QTY): Use
4635 get_cse_reg_info.
4636 (init_cse_reg_info, get_cse_reg_info_1): New.
4637 (get_cse_reg_info): Cache the last look-up.
4638 (new_basic_block): Update the code to clear mappings from
4639 registers to cse_reg_info entries.
4640 (cse_main): Call init_cse_reg_info.
4641
782c0a3e
KH
4642 * cse.c (get_cse_reg_info): Update a comment.
4643
b4519d39
SB
46442005-01-31 Steven Bosscher <stevenb@suse.de>
4645
4646 PR c/19333
4647 * c-decl.c (start_decl): Do not warn about arrays of elements with
4648 an incomplete type here.
4649 (grokdeclarator): Do it here by making a pedwarn an error.
4650 * c-typeck.c (push_init_level): If there were previous errors with
4651 the constructor type, do not warn about braces for initializers.
4652 (process_init_element): Likewise for excess initializer elements.
4653
65e9fa10
KH
46542005-01-31 Kazu Hirata <kazu@cs.umass.edu>
4655
4656 * cse.c (delete_trivially_dead_insn): Don't iterate.
4657
0530bc70
AP
46582005-01-31 Andrew Pinski <pinskia@physics.uc.edu>
4659
4660 * config/rs6000/rs6000.md (copysignsf3): New expand.
4661 (copysigndf3): Likewise.
4662
9ea88834
SB
46632005-01-31 Steven Bosscher <stevenb@suse.de>
4664
4665 * recog.c (constrain_operands): Only look for earlyclobber operand
4666 conflicts if an '&' constraint was seen.
4667
75a3bd9d
ME
46682005-01-31 Marc Espie <espie@openbsd.org>
4669
4670 * config.gcc: Don't include embedded systems fragment, switches default
4671 debugging format to ELF.
2cdc2073 4672 * config/i386/openbsdelf.h: Add DBX_REGISTER_NUMBER since we no
75a3bd9d
ME
4673 longer pick it up there.
4674
28697267 46752005-01-31 Dale Johannesen <dalej@apple.com>
2cdc2073 4676
28697267
DJ
4677 * doc/extend.texi (nested functions): Fix linkage description.
4678 Clarify that static is not allowed.
4679
e87d92f4 46802005-01-31 Dale Johannesen <dalej@apple.com>
2cdc2073 4681
e87d92f4
DJ
4682 * config/rs6000/darwin.md (movsf_low_di): Make work.
4683 (movdf_low_di): Make work.
4684
42d262fa
DJ
46852005-01-31 Dale Johannesen <dalej@apple.com>
4686
4687 * config/rs6000/darwin-tramp.asm (__trampoline_setup):
4688 Make work for 64 bit.
4689
3b70b82a
DJ
46902005-01-31 Roger Sayle <roger@eyesopen.com>
4691 Dale Johannesen <dalej@apple.com>
4692
4693 PR middle-end/19650
4694 * fold-const.c (fold_binary_op_with_conditional_arg):
4695 Make types match original operands, before STRIP_NOPS.
4696
a7a52913
AM
46972005-01-31 Alan Modra <amodra@bigpond.net.au>
4698
4699 * config/rs6000/linux-unwind.h (struct gcc_vregs): New.
4700 (struct gcc_regs): Rename from gcc_pt_regs. Add more regs.
4701 (struct gcc_sigcontext): Delete. Merge contents to..
4702 (struct gcc_ucontext): ..here.
4703 (get_sigcontext): Delete.
4704 (get_regs): New function, like get_sigcontext but return regs ptr.
4705 64-bit version finds regs from r1 to support vdso.
4706 (ppc_linux_aux_vector): New function.
4707 (ppc_fallback_frame_state): Modify for get_regs. Restore fprs
4708 and vector regs.
4709
261ba0c8
IR
47102005-01-31 Ira Rosen <irar@il.ibm.com>
4711
4712 * tree-vectorizer.c (vect_analyze_offset_expr): Use ssizetype instead
4713 sizetype.
4714 (vect_get_base_and_offset): Use ssizetype instead sizetype. Remove
4715 redundant fold. Fix misalignment for MINUS_EXPR.
4716 (vect_compute_data_ref_alignment): Use ssizetype instead sizetype.
4717 (vect_analyze_pointer_ref_access): Likewise.
4718 (vect_get_memtag_and_dr): Likewise.
4719
2ae1ac77
RH
47202005-01-31 Richard Henderson <rth@redhat.com>
4721
4722 * config/i386/i386.c (absnegsf2_mixed): Remove all of the # hackery.
4723 (absnegsf2_sse, absnegsf2_i387, absnegdf2_mixed, absnegdf2_sse,
4724 absnegdf2_i387, absnegxf2_i387): Likewise.
4725
ae394659
RH
47262005-01-31 Richard Henderson <rth@redhat.com>
4727
4728 PR 19696
4729 * optabs.c (expand_copysign_absneg): New.
4730 (expand_copysign_bit): Split out from ...
4731 (expand_copysign): ... here. Use expand_copysign_absneg.
4732
ebcaaa21
RS
47332005-01-30 Roger Sayle <roger@eyesopen.com>
4734
4735 PR middle-end/19697
4736 * config/pa/pa.md (anddi3, iordi3): On HPPA64, disallow an integer
4737 constant as the second operand and a register as the third.
4738
6cc37e7e
DS
47392005-01-31 Danny Smith <dannysmith@users.sourceforge.net>
4740
4741 PR target/19704
4742 * config/i386/i386.c (ix86_function_ok_for_sibcall): Also check
4743 that dllimport'd functions do not use all call-clobbered registers
4744 to pass parameters.
4745
8c55a142
RH
47462005-01-30 Richard Henderson <rth@redhat.com>
4747
4748 PR 19696
4749 * optabs.c (expand_absneg_bit): Split out from expand_unop and
4750 expand_abs_nojump and generalize. Use operand_subword and
4751 emit_no_conflict_block. Support large modes.
4752 (expand_abs_nojump): Use it. Use HONOR_SIGNED_ZEROS to fall
4753 back to maximum.
4754 (expand_unop): Likewise. Use HONOR_SIGNED_ZEROS to fall back
4755 negation to subtraction.
4756 (expand_copysign): Check that the format has signed zeros.
4757 Use operand_subword and emit_no_conflict_block. Support large modes.
4758
338bc65e
DB
47592005-01-30 Daniel Berlin <dberlin@dberlin.org>
4760
4761 Fix PR tree-optimization/19624
2cdc2073 4762
338bc65e
DB
4763 * Makefile.in (tree-ssa-pre.o): Add CFGLOOP_H.
4764 * tree-ssa-pre.c: Add cfgloop.h.
4765 Update comment.
4766 (pre_stats): New member, constified.
4767 (inserted_exprs): New static variable.
4768 (NECESSARY): New macro.
4769 (create_expression_by_pieces): Fold the expression, and
4770 mark it as defaulting to not necessary. Also put in
4771 inserted_exprs.
4772 (fully_constant_expression): New function.
4773 (insert_into_preds_of_block): Modify to not insert phis when we
4774 are playing with induction variables.
4775 Push phis onto the inserted_exprs vector, and mark them as not
4776 necessary by default.
4777 (insert_aux): Call fully_constant_expression on eprime.
4778 If all edges produce the same value, mark it constant.
4779 (mark_operand_necessary): New function.
4780 (remove_dead_inserted_code): New function.
4781 (init_pre): Init loop optimizer to get loop info.
4782 (fini_pre): Free loop_optimizer, and inserted_exprs vec.
4783 (execute_pre): Commit edge inserts, then remove dead code.
4784
237f420b
RH
47852005-01-30 Richard Henderson <rth@redhat.com>
4786
4787 * rtl.c (rtx_equal_p): No early exit for CONST_VECTOR.
4788 * varasm.c (const_rtx_hash_1): Handle CONST_VECTOR.
4789
b99d6d2b
RH
47902005-01-30 Richard Henderson <rth@redhat.com>
4791
4792 PR target/19700
4793 * config/i386/i386.c (ix86_expand_copysign): New.
4794 (ix86_split_copysign_const): New.
2cdc2073 4795 (ix86_split_copysign_var): Rename from ix86_split_copysign,
b99d6d2b
RH
4796 rearrange op1/nmask operands.
4797 * config/i386/i386-protos.h: Update.
4798 * config/i386/i386.md (copysignsf3): Use ix86_expand_copysign.
4799 (copysigndf3): Likewise.
4800 (copysignsf3_const, copysigndf3_const): New.
4801 (copysignsf3_var): Rename from copysignsf3, split out splitter
4802 and fix split predicate for X constraint.
4803 (copysigndf3_var): Similarly.
4804
c5c367ac
KH
48052005-01-30 Kazu Hirata <kazu@cs.umass.edu>
4806
4807 * optabs.c, doc/c-tree.texi, doc/install.texi, doc/md.texi,
4808 doc/passes.texi, doc/rtl.texi, doc/sourcebuild.texi,
4809 doc/tm.texi, doc/tree-ssa.texi: Update copyright.
4810
d6eabd43
RH
48112005-01-29 Richard Henderson <rth@redhat.com>
4812
4813 PR target/19690
4814 * config/i386/i386.md (movdf_nointeger, movdf_integer): Fix ordering
4815 of # and * in constraints.
4816
8d740330
RH
48172005-01-29 Richard Henderson <rth@redhat.com>
4818
4819 PR middle-end/19689
4820 * expr.c (store_field): Don't strip sub-mode cast when the input
4821 data is even smaller.
4822
486e4326
RH
48232005-01-29 Richard Henderson <rth@redhat.com>
4824
4825 PR middle-end/19687
4826 * expr.c (categorize_ctor_elements_1): Check for CONSTRUCTOR of a
4827 union being empty.
4828
eb2ab511
RH
48292005-01-29 Richard Henderson <rth@redhat.com>
4830
4831 * combine.c (make_field_assignment): Fix argument order
4832 to gen_int_mode.
4833
020d90ee
RG
48342005-01-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
4835
4836 PR tree-optimization/15791
4837 * fold-const.c (extract_array_ref): New function.
4838 (fold): Fold comparisons between &a[i] and &a[j] or
4839 semantically equivalent trees.
4840
b6e47ceb
JL
48412005-01-29 Jeff Law <law@redhat.com>
4842
4843 * gcse.c (insert_expr_in_table): Revamp handling of available
4844 and anticipatable occurrence lists to avoid unnecessary list
4845 walking.
4846 (insert_set_in_table): Similarly.
4847
46df2823
JM
48482005-01-29 Joseph S. Myers <joseph@codesourcery.com>
4849
4850 * c-common.c (fix_string_type): Just use c_build_qualified_type to
4851 build string type.
4852 (c_build_qualified_type): Build qualified array types with
4853 TYPE_MAIN_VARIANT pointing to corresponding unqualified type.
4854 * c-decl.c (c_make_fname_decl): Build unqualified array type
4855 before qualified type.
4856 (grokdeclarator): Use TYPE_MAIN_VARIANT of typedef type if element
4857 type is qualified, not just if type itself is. Don't apply
4858 qualifiers to array type when declarator is processed. Apply
4859 qualifiers to field type whether or not it is an array type.
4860 Don't handle array types specially for applying qualifiers to
4861 variables.
4862 * c-typeck.c (composite_type): Build unqualified element type and
4863 array type when forming composite of array types.
4864 (common_pointer_type, comptypes, comp_target_types,
4865 type_lists_compatible_p, build_indirect_ref, build_array_ref,
4866 convert_for_assignment): Don't apply TYPE_MAIN_VARIANT to array
4867 types.
4868 (type_lists_compatible_p): Cache TREE_VALUE (args1) and TREE_VALUE
4869 (args2) in variables a1 and a2.
4870
26af0046
KH
48712005-01-29 Kazu Hirata <kazu@cs.umass.edu>
4872
4873 * cse.c (n_elements_made, max_elements_made): Remove.
4874 (insert): Don't touch n_elements_made.
4875 (cse_main): Don't touch n_elements_made or max_elements_made.
4876
3a951664
SC
48772005-01-28 Stephane Carrez <stcarrez@nerim.fr>
4878
4879 PR target/15384
4880 * config/m68hc11/t-m68hc11-gas (dp-bit.c): Fix typo causing a
4881 configuration part of dp-bit.c to be lost.
4882
82dfb9a5
RS
48832005-01-28 Roger Sayle <roger@eyesopen.com>
4884
4885 * expmed.c (expand_mult_highpart_optab): When attempting to use
4886 a non-widening multiplication in a wider mode, the operands need
4887 to be converted (zero or sign extended) to that mode.
4888
09f8cf2d
ILT
48892005-01-28 Ian Lance Taylor <ian@airs.com>
4890
4891 PR middle-end/16558
4892 PR middle-end/19583
4893 * gimple-low.c (block_may_fallthru): TRY_FINALLY_EXPR only falls
4894 through if both operands fall through.
4895
01aa1d43
KH
48962005-01-28 Kazu Hirata <kazu@cs.umass.edu>
4897
4898 * cse.c (fold_rtx) <PC>: Don't optimize.
4899
139c978a
JL
49002005-01-28 Jeff Law <law@redhat.com>
4901
4902 * fold-const.c (fold, case CEIL_MOD_EXPR): Optimize 0 % X.
4903 (case FLOOR_MOD_EXPR, ROUND_MOD_EXPR, TRUNC_MOD_EXPR): Similarly.
4904
1590d0d4
KH
49052005-01-28 Kazu Hirata <kazu@cs.umass.edu>
4906
4907 * cse.c (cse_reg_info_free_list, cse_reg_info_used_list,
4908 cse_reg_info_used_list_end): Remove.
4909 (cse_reg_info_list, cse_reg_info_list_free): New.
4910 (get_cse_reg_info): When allocating an instance of
4911 cse_reg_info, add it to the beginning of the cse_reg_info_list
4912 list. Remove code to maintain cse_reg_info_used_list.
4913 (new_basic_block): Reset the free list to the beginning of
4914 cse_reg_info_list.
4915
a738d848
RS
49162005-01-28 Richard Sandiford <rsandifo@redhat.com>
4917
4918 * config/frv/frv.c (bdesc_2arg): Remove __MDPACKH.
4919 (frv_init_builtins): Change its prototype to take 4 uhalf arguments.
4920 (frv_expand_mdpackh_builtin): New function.
4921 (frv_expand_builtin): Use it to expand __MDPACKH.
a738d848
RS
4922 * doc/extend.texi (__MDPACKH): Update documentation.
4923
2aa3d033
UB
49242005-01-28 Uros Bizjak <uros@kss-loka.si>
4925
4926 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use
4927 SSE_FLOAT_MODE_P for use_sse computation.
4928
7d7f3b95
RC
49292005-01-28 Ralf Corsepius <ralf.corsepius@rtems.org>
4930
4931 PR target/19663
4932 * config/sparc/rtemself.h (LINK_GCC_C_SEQUENCE_SPEC): undefine.
4933
046625fa
RH
49342005-01-27 Richard Henderson <rth@redhat.com>
4935
4936 * builtins.c (expand_builtin_copysign): New.
4937 (expand_builtin): Call it.
4938 * genopinit.c (optabs): Add copysign_optab.
4939 * optabs.c (init_optabs): Initialize it.
4940 (expand_copysign): New.
4941 * optabs.h (OTI_copysign, copysign_optab): New.
4942 (expand_copysign): Declare.
4943
4944 * config/alpha/alpha.md (UNSPEC_COPYSIGN): New.
4945 (copysignsf3, ncopysignsf3, copysigndf3, ncopysigndf3): New.
4946
4947 * config/i386/i386.c (ix86_build_signbit_mask): Split from ...
4948 (ix86_expand_fp_absneg_operator): ... here.
4949 (ix86_split_copysign): New.
4950 * config/i386/i386-protos.h: Update.
4951 * config/i386/i386.md (UNSPEC_COPYSIGN): New.
4952 (copysignsf3, copysigndf3): New.
4953
4954 * config/ia64/ia64.md (UNSPEC_COPYSIGN): New.
4955 (copysignsf3, ncopysignsf3): New.
4956 (copysigndf3, ncopysigndf3): New.
4957 (copysignxf3, ncopysignxf3): New.
4958 * config/ia64/ia64.c (rtx_needs_barrier): Handle UNSPEC_COPYSIGN.
4959
6c667859
AB
49602005-01-27 Arend Bayer <arend.bayer@web.de>
4961 Kazu Hirata <kazu@cs.umass.edu>
4962
4963 * cse.c: (find_best_addr): Don't call copy_rtx before calling
4964 fold_rtx. Save cost recomputation if fold_rtx did nothing.
4965 (fold_rtx) <ASM_OPERANDS>: Don't do anything if INSN is
4966 NULL_RTX.
4967
88af764e
JL
49682005-01-27 Jeff Law <law@redhat.com>
4969
4970 * tree-into-ssa.c (ssa_rewrite_initialize_block): Do not register
4971 definitions of SSA_NAMEs which are not being rewritten.
4972 (rewrite_ssa_into_ssa): Only initialize the current definition
4973 of an SSA_NAME if that SSA_NAME has been marked for rewriting.
4974 If checking is enabled, assert that SSA_NAME_AUX is clear for all
4975 SSA_NAMEs before returning.
4976
f93089d2
KH
49772005-01-27 Kazu Hirata <kazu@cs.umass.edu>
4978
4979 * c-common.def, c-dump.c, c-gimplify.c, c-objc-common.c,
4980 cfgexpand.c, dbxout.c, function.h, opts.c, tree-flow-inline.h,
4981 tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-tailcall.c,
4982 config/avr/avr.md, config/cris/aout.h, config/cris/cris.h,
4983 config/mips/iris6.h, config/sh/sh.c: Update copyright.
4984
116cb604
SB
49852005-01-27 Steven Bosscher <stevenb@suse.de>
4986
4987 PR middle-end/17278
4988 * opts.c (decode_options): Move flag_thread_jumps from -O1 and
4989 higher to -O2 and higher. Likewise for tree PRE.
4990 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only iterate at -O2
4991 and better.
4992
09f8cf2d 49932005-01-27 Ian Lance Taylor <ian@airs.com>
6737ba67
ILT
4994
4995 PR middle-end/19583
4996 * gimple-low.c (try_catch_may_fallthru): New static function.
4997 (block_may_fallthru): Handle TRY_CATCH_EXPR.
4998 * tree-inline.c (expand_call_inline): Don't warn about reaching
4999 the end of a non-void function being inlined if the function uses
5000 a return slot.
5001
d8dd2f3a
JJ
50022005-01-27 Jakub Jelinek <jakub@redhat.com>
5003
9d72d996
JJ
5004 * config/i386/i386.h (CALL_USED_REGISTERS): Fix comment pastos.
5005
d8dd2f3a
JJ
5006 PR c/18946
5007 * c-decl.c (warn_if_shadowing): Handle old_decl error_mark_node.
5008 (pushdecl): Only use DECL_FILE_SCOPE_P if DECL_P.
5009 (implicitly_declare): Handle error_mark_node.
5010
dad2a933
RH
50112005-01-27 Richard Henderson <rth@redhat.com>
5012
5013 PR tree-opt/14329
5014 * tree.h (struct tree_decl): Add debug_expr_is_from.
5015 (DECL_DEBUG_EXPR_IS_FROM): New.
5016 (DECL_DEBUG_EXPR): Rename from DECL_DEBUG_ALIAS_OF.
5017 * dwarf2out.c (dwarf2out_var_location): Update to match.
5018 * tree-outof-ssa.c (create_temp): Likewise.
5019 * var-tracking.c (track_expr_p): Likewise.
5020 * tree-sra.c (instantiate_element): Set DECL_DEBUG_EXPR.
5021 * c-objc-common.c (c_tree_printer) <'D'>: Handle DECL_DEBUG_EXPR.
5022 * toplev.c (default_tree_printer): Likewise.
5023
17c21957
AO
50242005-01-27 Alexandre Oliva <aoliva@redhat.com>
5025
5026 * config/frv/frv.c (frv_class_likely_spilled_p): Add GR8_REGS,
5027 GR9_REGS, GR89_REGS, FDPIC_FPTR_REGS, FDPIC_REGS.
5028
ebaae582
SB
50292005-01-27 Steven Bosscher <stevenb@suse.de>
5030
5031 * tree.h (SWITCH_COND, SWITCH_BODY, SWITCH_LABELS, CASE_LOW,
5032 CASE_HIGH, CASE_LABEL, ASM_STRING, ASM_OUTPUTS, ASM_INPUTS,
5033 ASM_CLOBBERS): Add tree checks.
5034
5035 * c-common.h (SWITCH_TYPE): Rename to SWITCH_STMT_TYPE.
5036 (SWITCH_STMT_COND, SWITCH_STMT_BODY): New.
5037 * c-common.def (SWITCH_STMT): Update to match.
5038 * c-common.c (c_do_switch_warnings): Use SWITCH_STMT accessor
5039 macros instead of SWITCH_EXPR ones.
5040 * c-dump.c (c_dump_tree): Likewise.
5041 * c-gimplify.c (gimplify_switch_stmt): Likewise.
5042 * c-typeck.c (c_start_case, do_case, c_finish_case): Likewise.
5043
5044 * doc/c-tree.texi (SWITCH_STMT): Update accessor macro names.
5045
7a706738
AM
50462005-01-27 Alan Modra <amodra@bigpond.net.au>
5047
5048 * unwind-dw2.c (execute_stack_op): Add missing cases for
5049 DW_OP_shl, DW_OP_shr, DW_OP_shra, DW_OP_xor.
5050
fe15407d
EB
50512005-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
5052
5053 * config.gcc (Obsolete configurations): Remove 'dummy', add
5054 sparclite-*-coff*, sparclite-*-elf*, sparc86x-*-elf* and
5055 sparc-*-openbsd*.
5056
87637d21
DN
50572005-01-26 Diego Novillo <dnovillo@redhat.com>
5058
5059 PR tree-optimization/19633
5060 * tree-ssa-alias.c (ptr_is_dereferenced_by): Also handle
5061 CALL_EXPRs.
5062 (maybe_create_global_var): Do not create .GLOBAL_VAR if there
5063 are no call-clobbered variables.
5064 * tree-outof-ssa.c (check_replaceable): Return false for calls
5065 with side-effects.
5066
9ff93eb0
UW
50672005-01-26 Ulrich Weigand <uweigand@de.ibm.com>
5068
5069 * dbxout.c (dbxout_symbol_location): Resolve constant pool references
5070 even for variables with NULL DECL_INITIAL.
5071
4356a1bf
SH
50722005-01-26 Stuart Hastings <stuart@apple.com>
5073
00adda9f 5074 * gimplify.c (shortcut_cond_expr): Re-compute side-effects.
4356a1bf 5075
48cc8d3b
RH
50762005-01-26 Richard Henderson <rth@redhat.com>
5077
5078 PR middle-end/18008
5079 * c-decl.c (finish_struct): Set DECL_MODE after resetting a
5080 field's type.
5081 * expr.c (store_field): Strip conversions to odd-bit-sized types
5082 if the destination field width matches.
5083
eec6bb06
RH
50842005-01-26 Richard Henderson <rth@redhat.com>
5085
5086 * c-decl.c, expmed.c, expr.c: Revert last change.
5087
78ef1e3d
RH
50882005-01-26 Richard Henderson <rth@redhat.com>
5089
5090 PR middle-end/18008
5091 * c-decl.c (finish_struct): Set DECL_MODE after resetting a
5092 field's type.
5093 * expmed.c (store_fixed_bit_field): Create a paradoxical subreg
5094 if we don't need the bits above those present in the current mode.
5095 * expr.c (store_field): Strip conversions to odd-bit-sized types
5096 if the destination field width matches.
5097
5596990f
RS
50982005-01-26 Richard Sandiford <rsandifo@redhat.com>
5099
5100 * config/mips/iris6.h (ENDFILE_SPEC): Don't link in irix-csr.o if
5101 either -ffast-math or -funsafe-math-optimizations is in use.
5102
a3cf5992
MM
51032005-01-26 Marek Michalkiewicz <marekm@amelek.gda.pl>
5104
5105 PR target/19293
5106 PR target/19329
5107 * config/avr/avr.c (notice_update_cc): Only set condition code for
5108 ashrqi3 if shift count > 0.
5109 (out_shift_with_cnt): Handle shift count <= 0 as a no-op.
5110 (ashlqi3_out, ashlhi3_out, ashlsi3_out, ashrqi3_out, ashrhi3_out,
5111 ashrsi3_out, lshrqi3_out, lshrhi3_out, lshrsi3_out): Handle shift
5112 count <= 0 as a no-op, and shift count >= width by copying zero
5113 or sign bit to all bits of the result.
5114 * config/avr/avr.md (all shifts): Add alternatives for zero shift
5115 count, with attribute "length" set to 0 and "cc" set to "none".
5116
e4dd71de
AH
51172005-01-26 Aldy Hernandez <aldyh@redhat.com>
5118
5119 * doc/invoke.texi: Document -mTLS.
5120
5121 * testsuite/gcc.target/frv/all-tls-global-dynamic.c: New.
5122 * testsuite/gcc.target/frv/all-tls-initial-exec.c: New.
5123 * testsuite/gcc.target/frv/all-tls-initial-exec-pic.c: New.
5124 * testsuite/gcc.target/frv/all-tls-local-dynamic.c: New.
5125 * testsuite/gcc.target/frv/all-tls-local-dynamic-plt.c: New.
5126 * testsuite/gcc.target/frv/all-tls-local-dynamic-plt-pic.c: New.
5127 * testsuite/gcc.target/frv/all-tls-local-exec.c: New.
5128 * testsuite/gcc.target/frv/all-tls-local-exec-TLS.c: New.
5129
5130 * configure.ac: Check for a TLS capable gas.
5131
5132 * configure: Regenerate.
78ef1e3d 5133
55e79aef
RH
51342005-01-26 Richard Henderson <rth@redhat.com>
5135
5136 PR middle-end/18008
5137 * combine.c (make_field_assignment): Simplify store to zero_extract
5138 from a source with an overlapping mask.
5139
af30facd
AH
51402005-01-26 Aldy Hernandez <aldyh@redhat.com>
5141
5142 2004-11-11 Eric Christopher <echristo@redhat.com>
5143
ebaae582
SB
5144 * config/frv/frv.md: Add fr400_integer automaton. Don't
5145 allow TYPE_MUL, TYPE_MACC, or TYPE_CUT to issue in parallel
5146 to TYPE_MACC.
af30facd 5147
f7aa1423
SB
51482005-01-26 Steven Bosscher <stevenb@suse.de>
5149
5150 PR middle-end/16585
5151 * cfgbuild.c (make_edges): Do not clear or set
5152 current_function_has_computed_jump.
5153 * function.h (struct function): Remove the has_computed_jump field.
5154 (current_function_has_computed_jump): Do not define.
5155 * sched-rgn.c (is_cfg_nonregular): Return true if a basic block ends
5156 in a computed jump. Ignore current_function_has_computed_jump.
5157
6f642f98
RH
51582005-01-26 Richard Henderson <rth@redhat.com>
5159
5160 PR middle-end/19515
5161 * expr.c (categorize_ctor_elements): New argument p_must_clear.
5162 (categorize_ctor_elements_1): Likewise. Detect a union that isn't
5163 fully initialized.
5164 (mostly_zeros_p): Update for new categorize_ctor_elements argument.
5165 * gimplify.c (gimplify_init_constructor): Likewise. Only shove
5166 objects into static storage if they have more than one non-zero value.
5167 * tree.h (categorize_ctor_elements): Update decl.
5168
ead553a1
SB
51692005-01-26 Steven Bosscher <stevenb@suse.de>
5170
2cdc2073 5171 PR middle-end/19616
ead553a1
SB
5172 * tree.h (CALL_EXPR_TAILCALL): Add comment.
5173 * calls.c (check_sibcall_argument_overlap_1): Revert the change
5174 to this function from 2004-07-10.
5175 * tree-tailcall.c (suitable_for_tail_opt_p): Do not consider the
5176 the current function for tail call optimizations if the address
5177 of one of it its arguments is taken.
5178
75335440
KH
51792005-01-26 Kazu Hirata <kazu@cs.umass.edu>
5180
5181 * cse.c (fold_rtx): Call equiv_constant only when necessary.
5182
40184445
BS
51832005-01-26 Bernd Schmidt <bernd.schmidt@analog.com>
5184
5185 * function.c (expand_function_end): If current_function_calls_alloca,
5186 emit stack restore in a place that is reached when the function falls
5187 through at the end.
5188
144023ad
AO
51892005-01-26 Alexandre Oliva <aoliva@redhat.com>
5190
5191 * Makefile.in (../$(build_subdir)/fixincludes/fixincl): Add dummy
5192 rule to avoid matching inappropriate suffix rule.
5193
e4cf29ae
JH
51942005-01-26 Jan Hubicka <jh@suse.cz>
5195
97bd954f 5196 PR tree-optimization/19241
e4cf29ae
JH
5197 * tree-inline.c (copy_body_r): Do not walk subtrees after substituting.
5198
fe04ce06
HPN
51992005-01-26 Hans-Peter Nilsson <hp@axis.com>
5200
5201 * config/cris/cris.h (LIB_SPEC) <sim*>: Use -lsyslinux, not
5202 -lsyssim. Wrap -lc -lsyssim in --start-group --end-group instead
5203 of doubling.
5204 (STARTFILE_SPEC): Add crti.o, before crtbegin.o.
ead553a1 5205 <sim*>: Always use crt1.o, regardless of N in simN.
fe04ce06
HPN
5206 <!sim>: Drop support for -pg and -p variants; always use crt0.o.
5207 (ENDFILE_SPEC): Add crtn.o, after crtend.o.
5208 (CRT_CALL_STATIC_FUNCTION): Remove.
5209 * config/cris/aout.h (STARTFILE_SPEC): <!melinux && sim*>: Always
5210 use crt1.o, regardless of N in simN.
5211 <!sim>: Drop support for -pg and -p variants; always use crt0.o.
5212 (LIB_SPEC): Do not define; default to the one in config/cris/cris.h.
5213 (CRIS_CPP_SUBTARGET_SPEC) <melinux && !nostdinc>: Remove special
5214 case isystem setting.
5215 (MAX_OFILE_ALIGNMENT): Correct to 32, not 16.
5216
6a03afdf
ILT
52172005-01-25 Ian Lance Taylor <ian@airs.com>
5218
5219 * gimple-low.c (block_may_fallthru): Correct handling of
5220 SWITCH_EXPR--may fall through if SWITCH_LABELS is NULL.
5221
c555b47f
HPN
52222005-01-26 Hans-Peter Nilsson <hp@axis.com>
5223
5224 * config/cris/cris.h (CPP_SPEC): Adjust the various mtune=
5225 handlers to match indentation; nested under the mtune=* handler.
5226 Similar for mcpu= and march=.
5227
9841a1a7
DJ
52282005-01-25 Daniel Jacobowitz <dan@codesourcery.com>
5229
5230 * config/mips/linux.h (LIB_SPEC): Remove -rpath-link.
5231 * config/mips/linux64.h (LIB_SPEC): Likewise.
5232 * config/mn10300/linux.h (LIB_SPEC): Likewise.
5233 * config/sh/linux.h (LIB_SPEC): Likewise.
5234
bef8809e
AH
52352005-01-25 Aldy Hernandez <aldyh@redhat.com>
5236
5237 * config/frv/frv.c (frv_legitimize_tls_address): New.
5238 (TARGET_HAVE_TLS): Define.
5239 (FRV_SYMBOL_REF_TLS_P): Define.
5240 (frv_override_options): Handle new register classes.
5241 (frv_legitimate_address_p): Reject tls addresses.
5242 (frv_legitimize_address): Handle TLS addresses.
5243 (gen_inlined_tls_plt): New.
5244 (gen_tlsmoff): New.
5245 (frv_legitimize_tls_address): New.
5246 (unspec_got_name): Add TLS entries.
5247 (got12_operand): Add R_FRV_TLSMOFF12 case.
5248 (frv_emit_move): Fixup TLS addresses.
5249 (frv_emit_movsi): Legitimize TLS addresses.
5250
5251 * config/frv/frv.h (MASK_BIG_TLS): New.
5252 (TARGET_BIG_TLS): New.
5253 (HAVE_AS_TLS): Define.
5254 (TARGET_SWITCHES): Add -mTLS and -mtls options.
5255 (enum reg_class): Add GR8_REGS, GR9_REGS, GR89_REGS.
5256 (REG_CLASS_NAMES): Same.
5257 (REG_CLASS_CONTENTS): Same.
5258 (CONSTRAINT_LEN): New.
5259 (REG_CLASS_FROM_CONSTRAINT): New.
5260 (PREDICATE_CODES): Add symbolic_operand.
5261
5262 * config/frv/frv.md (define_constants): Add UNSPEC_GETTLSOFF,
5263 UNSPEC_TLS_LOAD_GOTTLSOFF12, UNSPEC_TLS_INDIRECT_CALL,
5264 UNSPEC_TLS_TLSDESC_LDD, UNSPEC_TLS_TLSDESC_LDD_AUX,
5265 UNSPEC_TLS_TLSOFF_LD, UNSPEC_TLS_LDDI, UNSPEC_TLSOFF_HILO,
5266 R_FRV_GOTTLSOFF_HI, R_FRV_GOTTLSOFF_LO, R_FRV_TLSMOFFHI,
5267 R_FRV_TLSMOFFLO, R_FRV_TLSMOFF12, R_FRV_TLSDESCHI,
5268 R_FRV_TLSDESCLO, R_FRV_GOTTLSDESCHI, R_FRV_GOTTLSDESCLO, GR8_REG,
5269 GR9_REG, GR14_REG, LRREG.
5270 (type): Add load_or_call attribute.
5271 ("load_or_call"): New reservation.
5272 ("call_gettlsoff"): New.
5273 ("tls_indirect_call"): New.
5274 ("tls_load_gottlsoff12"): New.
5275 ("tlsoff_hilo"): New.
5276 ("tls_tlsdesc_ldd"): New.
5277 ("tls_tlsoff_ld"): New.
5278 ("tls_lddi"): New.
5279
5280 * config/frv/frv-protos.h (symbolic_operand): Protoize.
5281
5282 2005-01-25 Alexandre Oliva <aoliva@redhat.com>
5283
ead553a1
SB
5284 * config/frv/frv.h (ASM_OUTPUT_DWARF_DTPREL): Define.
5285 * config/frv/frv-protos.h (frv_output_dwarf_dtprel): Declare.
5286 * config/frv/frv.c (TLS_BIAS): Define.
5287 (frv_output_dwarf_dtprel): New.
bef8809e 5288
b8e48b98
JJ
52892005-01-26 Jakub Jelinek <jakub@redhat.com>
5290
5291 PR rtl-optimization/19579
5292 * ifcvt.c (noce_try_cmove_arith): If emitting instructions to set up
5293 both A and B, see if they don't clobber registers the other expr uses.
5294
1c673473
R
52952005-01-25 J"orn Rennecke <joern.rennecke@st.com>
5296
5297 * real.c (do_add): Initialize signalling and canonical members.
5298
5299 * real.c (real_from_integer): Zero out destination.
5300
ed464869
JH
53012005-01-18 Jan Hubicka <jh@suse.cz>
5302
5303 PR tree-optimize/19337
5304 * tree-inline.c (initialize_inlined_parameters): Copy
5305 saved_static_chain_decl only.
5306
51df7179
RH
53072005-01-25 Richard Henderson <rth@redhat.com>
5308
5309 PR target/19556
5310 PR target/19584
5311 * config/i386/i386.c (x86_inter_unit_moves): Zero.
5312 (ix86_preferred_reload_class): Rewrite fp-constant section, with
5313 80387 enabled, to return a proper subclass. Return the subset that
5314 overlaps with GENERAL_REGS for PLUS.
5315 * config/i386/i386.md (movsi_1, movdi_2): Set type to "mmx" for pxor.
5316
c63f5a42
RH
53172005-01-25 Richard Henderson <rth@redhat.com>
5318
5319 PR middle-end/19609
5320 * tree-complex.c (expand_complex_div_wide): Use the correct formulae.
5321
e71c0aa7
RS
53222005-01-25 Roger Sayle <roger@eyesopen.com>
5323
5324 * expmed.c (choose_multiplier): Change interface to return the
5325 multiplier lowpart as an rtx instead of an unsigned HOST_WIDE_INT.
5326 (expand_divmod): Update calls to choose_multiplier.
5327
a6d2976a
JDA
53282005-01-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5329
5330 PR middle-end/19330
5331 * expmed.c (extract_bit_field): Use adjust_address instead of
5332 gen_lowpart when op0 is a MEM.
5333
7315a949
SB
53342005-01-24 Steven Bosscher <stevenb@suse.de>
5335
5336 * cfgexpand.c (expand_gimple_tailcall): Fix typo.
5337
c0fd73a9
RS
53382005-01-24 Richard Sandiford <rsandifo@redhat.com>
5339
5340 * config/mips/irix-csr.c: New file.
5341 * config/mips/t-iris6 (irix-csr.o): New rule to build it.
5342 (EXTRA_MULTILIB_PARTS): Add irix-csr.o.
5343 * config/mips/iris6.h (ENDFILE_SPEC): Include it in n32 and n64
5344 executables.
5345
81b47219
EB
53462005-01-24 Eric Botcazou <ebotcazou@libertysurf.fr>
5347
5348 PR bootstrap/19364
5349 * config.gcc (sparc-*-elf*): Remove sol2.h, sparc/sol2.h and
5350 sparc/elf.h, add sparc/sp-elf.h.
5351 (sparc-*-rtems*): Likewise.
5352 (sparclite-*-elf*): Remove sol2.h, sparc/sol2.h, sparc/elf.h and
5353 tm-dwarf2.h, add sparc/sp-elf.h.
5354 (sparc86x-*-elf): Likewise.
5355 (sparc64-*-elf*): Remove sol2.h, sparc/sol2.h and tm-dwarf2.h.
5356 * config/sparc/liteelf.h (TARGET_SUB_OS_CPP_BUILTINS): Rename into
5357 TARGET_OS_CPP_BUILTINS.
5358 * config/sparc/sp86x-elf (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
5359 * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
5360 Undefine it.
5361 * config/sparc/openbsd64.h (NO_IMPLICIT_EXTERN_C): Undefine.
5362 * config/sparc/sp64-elf.h (NO_IMPLICIT_EXTERN_C): New macro.
5363 (SWITCH_TAKES_ARG): Likewise.
5364 (LOCAL_LABEL_PREFIX): Likewise.
5365 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
5366 (TARGET_N_FORMAT_TYPES): Delete.
5367 (TARGET_FORMAT_TYPES): Likewise.
5368 (ASM_DECLARE_FUNCTION_SIZE): Likewise.
5369 * config/sparc/elf.h: Delete.
5370 * config/sparc/sp-elf.h: New file.
5371
3a2f1f06
KH
53722005-01-24 Kazu Hirata <kazu@cs.umass.edu>
5373
5374 * tree-flow-inline.h (phi_arg_from_edge): Remove.
5375 * tree-flow.h: Remove the corresponding prototype.
5376 * tree-ssa-operands.h, tree-ssa-threadupdate.c, tree-ssa.c,
5377 tree-vectorizer.c: Use dest_idx instead of phi_arg_from_edge.
5378
b723e82f
JJ
53792005-01-24 Jakub Jelinek <jakub@redhat.com>
5380
5381 PR target/17751
5382 * config/rs6000/rs6000.c (rs6000_file_start): Create toc section
5383 for AIX ABI or ELF -fPIC.
5384 (rs6000_emit_load_toc_table): Don't create toc_section here.
5385 (rs6000_xcoff_file_start): Nor here.
5386
1a9ce0b7
JR
53872005-01-24 J"orn Rennecke <joern.rennecke@st.com>
5388
5389 * sh.c (ra.h): Don't #include.
5390 (hard_regs_intersect_p): New function, resurrected from ra.c.
5391
5392 * sh.c: Fix 1996 Copyright.
5393
226c62c7 53942005-01-24 Richard Henderson <rth@redhat.com>
97bd954f 5395 Aldy Hernandez <aldyh@redhat.com>
226c62c7 5396
97bd954f 5397 * regrename.c (note_sets): Handle subregs.
226c62c7 5398
2429f3d4
JM
53992005-01-24 Joseph S. Myers <joseph@codesourcery.com>
5400
5401 PR bootstrap/18058
5402 * genconditions.c (write_header, write_conditions): Elide file if
5403 not GCC >= 3.0.1.
5404
deeec1d8
KH
54052005-01-24 Kazu Hirata <kazu@cs.umass.edu>
5406
5407 * c-opts.c, expmed.c, gengtype.c, tree-complex.c,
5408 config/arm/iwmmxt.md, config/avr/avr.c, config/s390/s390.h:
5409 Update copyright.
5410
7b922122
JJ
54112005-01-24 Jakub Jelinek <jakub@redhat.com>
5412
5413 * builtins.c (get_pointer_alignment, gimplify_va_arg_expr,
5414 expand_builtin_printf, expand_builtin_fprintf,
5415 expand_builtin_sprintf): Use POINTER_TYPE_P instead TREE_CODE
5416 checking against POINTER_TYPE.
5417 (validate_arglist): Handle POINTER_TYPE code by checking
5418 POINTER_TYPE_P.
5419
cf94b0fc
PB
54202005-01-24 Paolo Bonzini <bonzini@gnu.org>
5421
5422 * rtlanal.c (non_rtx_starting_operands, for_each_rtx_1,
5423 init_rtlanal): New.
5424 (for_each_rtx): Call for_each_rtx_1.
5425 * rtl.h (init_rtlanal): Declare.
5426 * toplev.c (backend_init): Call init_rtlanal.
5427
b77302be
JJ
54282005-01-24 Jakub Jelinek <jakub@redhat.com>
5429
5430 * flow.c (propagate_one_insn): Formatting.
5431
5432 PR middle-end/19551
5433 * flow.c (libcall_dead_p): Be more conservative if unsure.
5434 If there are any instructions between insn and call, see if they are
5435 all dead before saying the libcall is dead.
5436
11c56af5
UB
54372005-01-24 Uros Bizjak <uros@kss-loka.si>
5438
5439 * config/i386/i386.md (*extendsfdf2_sse): Use "nonimmediate_operand"
5440 operand constraint for operand 0.
5441
520f34fa
RH
54422005-01-23 Richard Henderson <rth@redhat.com>
5443
5444 PR 19486
5445 * tree-complex.c (expand_complex_div_wide): Set EDGE_FALLTHRU on
5446 edges leading to join block.
5447
0d282692
RS
54482005-01-23 Roger Sayle <roger@eyesopen.com>
5449
5450 * expmed.c (expand_mult_highpart): Make static. Change type of
5451 constant multiplier argument from unsigned HOST_WIDE_INT to rtx.
5452 (expand_divmod): Updates calls to expand_mult_highpart by using
5453 gen_int_mode to pass a CONST_INT rtx.
5454 * rtl.h (expand_mult_highpart): Remove prototype.
5455
edd517b1
KH
54562005-01-23 Kazu Hirata <kazu@cs.umass.edu>
5457
5458 * flow.c (regset_bytes, regset_size): Remove.
5459
708bde14
KH
5460 * cfganal.c: Fix a reference to Harvey's paper.
5461
85840349
SB
54622005-01-23 Steven Bosscher <stevenb@suse.de>
5463
5464 PR rtl-optimization/19464
5465 * tree-optimize.c (init_tree_optimization_passes): Add one more
5466 copyrename pass just before out-of-ssa.
5467
9fcdd891
JM
54682005-01-23 Joseph S. Myers <joseph@codesourcery.com>
5469
5470 PR bootstrap/18058
5471 * recog.c (recog_memoized): Don't define if GENERATOR_FILE.
5472 * ggc-none.c (ggc_free): Define.
5473
d0754bc6
KH
54742005-01-23 Kazu Hirata <kazu@cs.umass.edu>
5475
5476 * cse.c (max_reg, max_insn_uid): Remove.
5477 (cse_main): Don't access max_reg or max_insn_uid.
5478
f3b303fd
KH
5479 * c-common.c (explicit_flag_signed_bitfields,
5480 lang_statement_code_p, lang_expand_function_end): Remove.
5481 * c-common.h: Remove the corresponding declarations.
5482 * c-opts.c (c_common_handle_option): Remove all write access
5483 to explicit_flag_signed_bitfields.
5484
15f0d971
KH
5485 * cgraph.c (cgraph_varpool_n_nodes): Remove.
5486 (cgraph_varpool_node): Don't access cgraph_varpool_n_nodes.
5487 * cgraph.h: Remove the corresponding declaration.
5488
6d77cdc3
KH
5489 * gcse.c (null_pointer_info): Remove.
5490
b9750434
RS
54912005-01-23 Roger Sayle <roger@eyesopen.com>
5492 Eric Botcazou <ebotcazou@libertysurf.fr>
5493
5494 * combine.c (simplify_logical): Only simplify logical expressions
5495 of the form ior(and(x,y),z) by the inverse distributive law if the
5496 result is cheaper than the original.
5497
35fd3193
KH
54982005-01-23 Kazu Hirata <kazu@cs.umass.edu>
5499
5500 * alias.c, c-common.h, c-incpath.c, c-incpath.h, expr.c,
5501 fold-const.c, gimplify.c, params.h, tree-data-ref.c,
5502 tree-if-conv.c, tree-nested.c, tree-outof-ssa.c,
5503 tree-ssa-dom.c, tree-vectorizer.c, tree.def, config/darwin.c,
5504 config/freebsd-spec.h, config/arm/arm.h,
5505 config/h8300/h8300.md, config/i386/i386.md,
5506 config/i386/predicates.md, config/i386/sse.md,
5507 config/ia64/ia64.c, config/ip2k/ip2k.c, config/s390/s390.c,
5508 config/vax/vax.md: Fix comment typos. Follow spelling
5509 conventions.
5510
a62a0172
SB
55112005-01-23 Steven Bosscher <stevenb@suse.de>
5512
5513 * gengtype.c (walk_type): Produce `not equal to' compares for loop
5514 tests, instead of `less than'.
5515
a561d88b
RS
55162005-01-23 Richard Sandiford <rsandifo@redhat.com>
5517
5518 * function.c (assign_parm_setup_block): When creating a new stack slot
5519 for a parameter, get its alignment from the parameter's DECL_ALIGN
5520 rather than the type's TYPE_ALIGN. Make sure that the parameter
5521 is at least word aligned.
5522
d2ebe27c
RS
55232005-01-22 Roger Sayle <roger@eyesopen.com>
5524
5525 PR middle-end/19378
5526 * config/avr/avr.c (avr_hard_regno_mode_ok): Rewrite.
5527
a059cdb8
RH
55282005-01-22 Richard Henderson <rth@redhat.com>
5529
5530 PR target/19506
5531 * config/i386/i386.md (movsfcc_1_sse_max): Use nonimmediate_operand
5532 in both compare operands.
5533 (movdfcc_1_sse_max): Likewise.
5534 (movsfcc_1_sse): Likewise. Add earlyclobber for scratch.
5535 (movdfcc_1_sse): Likewise.
5536 * config/i386/i386.c (ix86_split_sse_movcc): Emit copies into the
5537 scratch register as needed.
5538
eabd294f
RH
55392005-01-22 Richard Henderson <rth@redhat.com>
5540
b8f06586
RH
5541 * config/i386/i386.md (smaxsf3): Fix mnemonic typo.
5542
eabd294f
RH
5543 * config/i386/i386.c (ix86_prepare_fp_compare_args): Fix is_sse test.
5544
5ccbd309
RH
55452005-01-22 Richard Henderson <rth@redhat.com>
5546
5547 * genopinit.c (optabs): Use smin/smax for floating point too.
5548 * doc/md.texi: Update to match. Clarify that floating point
5549 results are undefined for +0/-0 and NaN.
5550 * doc/rtl.texi: Likewise.
5551 * rtl.def (SMIN, SMAX): Likewise
5552 * tree.def (MIN_EXPR, MAX_EXPR): Likewise.
5553
5554 * config/alpha/alpha.md (smaxdf3, smindf3, smaxsf3, sminsf3): Add
5555 leading 's' to the name.
5556 * config/ia64/ia64.md (smaxsf3, sminsf3, smaxdf3, smindf3,
5557 smaxxf3, sminxf3): Likewise.
5558 * config/rs6000/rs6000.md (smaxdf3, smindf3, smaxsf3, sminsf3):
5559 Likewise.
5560
b4b2332c
PB
55612005-01-22 Paul Brook <paul@codesourcery.com>
5562
5563 * config/arm/arm.md: Use "Uy" constraint for wcgr load/stores.
5564
6fa5b390
MD
55652005-01-21 Mark Dettinger <dettinge@de.ibm.com>
5566
2cdc2073 5567 * config/s390/s390.c (struct processor_costs): New fields
6fa5b390
MD
5568 dlgr, dlr, dr, dsgfr, dsgr.
5569 (z900_cost, z990_cost): Values for new fields.
5570 (s390_rtx_costs): New cases MEM und COMPARE in switch
5571 statement. Modified handling of SIGN_EXTEND, ZERO_EXTEND,
5572 DIV, MOD, UDIV, UMOD.
5573
eb862a88
UW
55742005-01-21 Ulrich Weigand <uweigand@de.ibm.com>
5575
5576 * config/s390/s390.md ("doloop_si64"): Reload input value directly
5577 into the register being decremented.
5578 ("doloop_si31", "doloop_di"): Likewise.
5579 ("*doloop_si_long"): Adapt pattern.
5580
3776ada0
UW
55812005-01-21 Ulrich Weigand <uweigand@de.ibm.com>
5582
5583 * config/s390/s390.h (HARD_REGNO_NREGS): Fix computation for
5584 access registers.
5585 (CLASS_MAX_NREGS): Likewise.
5586
d7c71ee3
DB
55872005-01-21 Daniel Berlin <dberlin@dberlin.org>
5588
5589 * doc/tree-ssa.texi (Statement Operands): Add example for new
5590 must-def macro. Note deprecation of old operands interface.
5591
d7f3fc19
RS
55922005-01-22 Richard Sandiford <rsandifo@redhat.com>
5593
5594 PR tree-optimization/19484
5595 * tree-cfg.c (remove_fallthru_edge): New function.
5596 (cleanup_control_flow): Remove fallthru edges from calls that are
5597 now known not to return.
5598
111e0c9f
DB
55992005-01-20 Daniel Berlin <dberlin@dberlin.org>
5600
5601 Fix PR tree-optimization/19038
5602 * tree-ssa-dom.c (cprop_operand): Don't replace loop invaeriant
5603 copies with loop variant ones.
5604
1e052c19
KH
56052005-01-22 Kazu Hirata <kazu@cs.umass.edu>
5606
5607 * cfganal.c, real.h, reorg.c, timevar.def, tree-ssa-ccp.c,
5608 config/alpha/alpha-protos.h, config/alpha/alpha.h,
5609 config/alpha/alpha.md, config/alpha/predicates.md,
5610 config/sparc/freebsd.h, config/sparc/netbsd-elf.h,
5611 config/sparc/sol2.h: Update copyright.
5612
28773f15
KH
5613 * tree-cfg.c (remove_forwarder_block_with_phi): Look at the
5614 first label to see if it is a nonlocal label.
5615
1e052c19 56162005-01-22 David Edelsohn <edelsohn@gnu.org>
ead553a1 5617 Andrew Pinski <pinskia@physics.uc.edu>
987732e0
DE
5618
5619 PR target/19491
5620 * config/rs6000/rs6000.c (rs6000_va_start): Saturate n_gpr at
5621 maximum number of GPRs. Saturate n_fpr at maximum number of FPRs.
5622
80d15bce
RC
56232005-01-22 Ralf Corsepius <ralf.corsepius@rtems.org>
5624
5625 * config/rs6000/rtems.h: Update copyright.
5626
b9d13999
RC
56272005-01-22 Ralf Corsepius <ralf.corsepius@rtems.org>
5628
5629 PR target/19548
5630 * config/rs6000/rtems.h: Resurrect cpp_os_rtems_spec from gcc < 3.4.
5631 (CPP_OS_RTEMS_SPEC): New (From gcc-3.3's config/rs6000/sys4.h).
5632 (SUBSUBTARGET_EXTRA_SPECS): Use CPP_OS_RTEMS_SPEC.
5633
20913689
VR
56342005-01-22 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
5635
5636 PR c/18809
5637 * c-typeck.c (convert_arguments): Check for error_mark_node.
5638
1e052c19 56392005-01-21 Ian Lance Taylor <ian@airs.com>
089efaa4
ILT
5640
5641 PR tree-optimization/13000
5642 * tree-inline.c: Include "tree-flow.h".
5643 (expand_call_inline): If warn_return_type, warn if non-void inline
5644 function falls through.
5645 * tree-cfg.c (execute_warn_function_return): Don't warn about
5646 control reaching end if TREE_NO_WARNING is set. Set
5647 TREE_NO_WARNING.
5648 * gimple-low.c (block_may_fallthru): Don't assume that SWITCH_EXPR
5649 has been lowered.
5650 * gimplify.c (shortcut_cond_expr): Don't emit a jump over the else
5651 branch if we don't need one.
5652 * c-typeck.c: Include "tree-flow.h"
5653 (c_finish_bc_stmt): Don't add a goto if the current statement
5654 list doesn't fall through to the current point.
5655
d284eb28
RS
56562005-01-21 Roger Sayle <roger@eyesopen.com>
5657
5658 PR rtl-optimization/576
5659 * real.c (real_arithmetic): Change return type from void to bool
5660 to return an indication that the result may be inexact.
5661 * real.h (real_arithmeric): Update prototype.
5662 * fold-const.c (const_binop): Don't constant fold floating
5663 point expressions when the user specifies -frounding-math and
5664 the result may depend upon the run-time rounding mode.
5665 (fold_convert_const_real_from_real): Clean-up.
5666 (fold_initializer): Ignore flag_rounding_math for initializers.
5667 * simplify-rtx.c (simplify_binary_operation): Likewise, don't
5668 constant fold FP operations with flag_rounding_math if the
5669 result may depend upon the run-time rounding mode.
5670
a101957b
TT
56712005-01-21 Tom Tromey <tromey@redhat.com>
5672
5673 * c-cppbuiltin.c (define__GNUC__): Correct assertion.
5674
a85ba5a8
KH
56752005-01-21 Kazu Hirata <kazu@cs.umass.edu>
5676
5677 * tree-cfg.c: Fix comment typos.
5678
5b5e3a31
R
56792005-01-21 J"orn Rennecke <joern.rennecke@st.com>
5680
5681 * passes.c (rest_of_handle_flow2): Close / open the flow2 dump file
5682 around the call to rest_of_handle_branch_target_load_optimize.
5683
0b85af22
EB
56842005-01-21 Eric Botcazou <ebotcazou@libertysurf.fr>
5685
5686 * config.gcc (sparc-*-netbsdelf*): Include dbxelf.h
5687 (sparc64-*-openbsd*): Likewise.
5688 (sparclite-*-elf*): Include tm-dwarf2.h.
5689 (sparc86x-*-elf*): Likewise.
5690 (sparc64-*-elf*): Likewise.
5691 * config/sparc/linux64.h (DWARF2_DEBUGGING_INFO): Delete.
5692 (DBX_DEBUGGING_INFO): Likewise.
5693 * config/sparc/liteelf.h (DWARF2_DEBUGGING_INFO): Likewise.
5694 (PREFERRED_DEBUGGING_TYPE): Likewise.
5695 * config/sparc/netbsd-elf.h (PREFERRED_DEBUGGING_TYPE): Likewise.
5696 * config/sparc/sp64-elf.h (DBX_DEBUGGING_INFO): Likewise.
5697 (PREFERRED_DEBUGGING_TYPE): Likewise.
ac11d73b 5698 * config/sparc/sp86x-elf.h (DWARF2_DEBUGGING_INFO): Likewise.
0b85af22
EB
5699 (PREFERRED_DEBUGGING_TYPE): Likewise.
5700 * config/sparc/sparc.h (DBX_DEBUGGING_INFO): Likewise.
5701
3eacd71f
HPN
57022005-01-21 Hans-Peter Nilsson <hp@bitrange.com>
5703
5704 PR target/18701
5705 * combine.c (combine_simplify_rtx): Revert change of 2004-12-31.
5706
eacf8912
PB
57072005-01-20 Paul Brook <paul@codesourcery.com>
5708
5709 * doc/rtl.texi: Document value extension requirements for CONST_INT.
5710
548414c6
KH
57112005-01-20 Kazu Hirata <kazu@cs.umass.edu>
5712
5713 * tree-cfg.c (tree_verify_flow_info): Check that a nonlocal
5714 label is first in a sequence of labels.
5715
cde68236
KH
5716 * tree-cfg.c (tree_verify_flow_info): Fix a typo.
5717
35fdf04e
JJ
57182005-01-20 Janis Johnson <janis187@us.ibm.com>
5719 Giovanni Bajo <giovannibajo@gcc.gnu.org>
5720
5721 * doc/sourcebuild.texi (Test Directives): New.
5722
8ffeac67
RS
57232005-01-20 Roger Sayle <roger@eyesopen.com>
5724
5725 * real.c (real_floor): Don't leave the result uninitialized when
5726 mode is VOIDMode, but return the unrounded intermediate value.
5727 (real_ceil): Likewise.
5728
07ff6dac 57292005-01-20 Paul Brook <paul@codesourcery.com>
b65e6318
PB
5730
5731 * config/arm/arm.md (insv): Use gen_int_mode.
5732
62da8647
EB
57332005-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
5734
5735 * config/sparc/freebsd.h (ASM_OUTPUT_INTERNAL_LABELREF): Delete.
5736 * config/sparc/linux.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
5737 * config/sparc/linux64.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
5738 * config/sparc/netbsd-elf.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
5739 * config/sparc/sol2.h (ASM_OUTPUT_INTERNAL_LABELREF): Likewise.
5740
3c46c513
DB
57412005-01-20 Daniel Berlin <dberlin@dberlin.org>
5742
5743 Fix PR debug/19124
5744 * dwarf2out.c (concat_loc_descriptor): We don't know we can use
5745 fbreg, so we have to assume we can't.
5746 (loc_descriptor_from_tree_1): Ditto.
5747 (containing_function_has_frame_base): New function.
5748 (add_location_or_const_value_attribute): Use it.
5749 Also try to generate a frame_base from a single element location
5750 list.
2cdc2073 5751
23ab2e4e
KH
57522005-01-20 Kazu Hirata <kazu@cs.umass.edu>
5753
5754 PR tree-optimization/15349
5755 * timevar.def (TV_TREE_MERGE_PHI): New.
5756 * tree-cfg.c (tree_forwarder_block_p): Add a new argument
5757 PHI_WANTED.
5758 (remove_forwarder_block, cleanup_forwarder_blocks): Adjust the
5759 calls to tree_forwarder_block_p.
5760 (remove_forwarder_block_with_phi, merge_phi_nodes,
5761 gate_merge_phi, pass_merge_phi): New.
5762 * tree-optimize.c (init_tree_optimization_passes): Add
5763 pass_merge_phi.
5764 * tree-pass.h: Add an extern for pass_merge_phi;
5765
edd5b7da
RH
57662005-01-20 Richard Henderson <rth@redhat.com>
5767
5768 PR target/19418
5769 * config/i386/emmintrin.h (_mm_castpd_ps, _mm_castpd_si128): New.
5770 (_mm_castps_pd, _mm_castps_si128): New.
5771 (_mm_castsi128_ps, _mm_castsi128_pd): New.
5772
0f2698d0
RH
57732005-01-20 Richard Henderson <rth@redhat.com>
5774
5775 PR target/19530
5776 * config/i386/mmintrin.h (_mm_cvtsi32_si64): Use
5777 __builtin_ia32_vec_init_v2si.
5778 (_mm_cvtsi64_si32): Use __builtin_ia32_vec_ext_v2si.
5779 * config/i386/i386.c (IX86_BUILTIN_VEC_EXT_V2SI): New.
5780 (ix86_init_mmx_sse_builtins): Create it.
5781 (ix86_expand_builtin): Expand it.
5782 (ix86_expand_vector_set): Handle V2SFmode and V2SImode.
5783 * config/i386/mmx.md (vec_extractv2sf_0, vec_extractv2sf_1): New.
5784 (vec_extractv2si_0, vec_extractv2si_1): New.
5785
6b79c03c
RH
57862005-01-20 Richard Henderson <rth@redhat.com>
5787
58b03a2d 5788 PR target/16533
6b79c03c
RH
5789 * config/i386/i386.c (ix86_expand_push): New.
5790 * config/i386/mmx.md (push<MMXMODE>1): New.
5791 * config/i386/sse.md (push<SSEMODE>1): New.
5792 * config/i386/i386-protos.h: Update.
5793
e42febca
KH
57942005-01-20 Kazu Hirata <kazu@cs.umass.edu>
5795
5796 * params.def, params.h, predict.c, tree-ssa-loop-im.c: Update
5797 copyright.
5798
f4770271
RH
57992005-01-20 Richard Henderson <rth@redhat.com>
5800
5801 * rtl.def (CONST_VECTOR): Use RTX_CONST_OBJ.
5802 * rtl.h (CONSTANT_P): Don't special case CONST_VECTOR.
5803
b4bb3199
RH
58042005-01-19 Richard Henderson <rth@redhat.com>
5805
5806 PR target/19350
5807 * config/i386/i386.c (ix86_expand_vector_move_misalign): Convert
5808 to V4SFmode in SSE1 fallback load path.
5809
ceda96fc
RH
58102005-01-19 Richard Henderson <rth@redhat.com>
5811
5812 * config/i386/i386.c (ix86_expand_vector_init_one_var): Fix typo
5813 in QImode expansion to ix86_expand_vector_set.
5814 (ix86_expand_vector_init_general): Fix typo in V8HImode recursive call.
5815
f75959a6
RH
58162005-01-19 Richard Henderson <rth@redhat.com>
5817
5818 PR target/19511
5819 * config/i386/i386.c (ix86_preferred_reload_class): Return a proper
5820 subclass of the input class.
5821 (ix86_secondary_memory_needed): Always true for cross-MMX classes.
5822 Always true for cross-SSE1 classes. Rationalize conditionals.
5823 * config/i386/i386.h (SSE_CLASS_P, MMX_CLASS_P): Use straight equality.
5824 * config/i386/i386.md (movsi_1): Add MMX/SSE zeros. Fix alternatives
5825 for SSE1. Don't check TARGET_INTER_UNIT_MOVES.
5826 (movdi_2): Add MMX/SSE zeros.
5827 (movdi_1_rex64): Likewise. Don't check TARGET_INTER_UNIT_MOVES.
5828 (movsf_1): Don't check TARGET_INTER_UNIT_MOVES.
5829 (zero_extendsidi2_32, zero_extendsidi2_rex64): Likewise.
5830 (movsi_1_nointernunit, movdi_1_rex64_nointerunit): Remove.
5831 (movsf_1_nointerunit, zero_extendsidi2_32_1): Remove.
5832 (zero_extendsidi2_rex64_1): Remove.
5833 (MOV0 peephole): Check GENERAL_REG_P.
5834
b100079f
RH
58352005-01-19 Richard Henderson <rth@redhat.com>
5836
5837 PR target/19427
5838 * config/i386/i386.c (ix86_expand_vector_set): Fix third and fourth
5839 shufps elements.
5840 (ix86_expand_vector_extract): Likewise.
5841
539eaa3a
RH
58422005-01-19 Richard Henderson <rth@redhat.com>
5843
5844 PR middle-end/19304
5845 * expr.c (emit_move_change_mode): New argument force; use
5846 simplify_gen_subreg if true.
5847 (emit_move_via_alt_mode): Merge into ...
5848 (emit_move_via_integer): ... here.
5849 (emit_move_ccmode): Use emit_move_change_mode directly.
5850
72910a0b
RH
58512005-01-19 Richard Henderson <rth@redhat.com>
5852
5853 PR target/19518
5854 * config/alpha/alpha.c (alpha_rtx_costs): Handle HIGH.
5855 (alpha_preferred_reload_class): Handle CONST_VECTOR.
5856 (alpha_emit_set_const_1): Add no_output parameter; don't emit
5857 rtl if true.
5858 (alpha_emit_set_const): Likewise. Make static.
5859 (alpha_emit_set_long_const): Make static.
5860 (alpha_extract_integer): Split out from alpha_expand_mov.
5861 (alpha_split_const_mov): Likewise.
5862 (alpha_expand_mov): Use them. Handle CONST_VECTOR.
5863 (alpha_legitimate_constant_p): New.
5864 * config/alpha/alpha-protos.h: Update.
5865 * config/alpha/alpha.h (REGISTER_MOVE_COST): Correct fp<->gp cost.
5866 (LEGITIMATE_CONSTANT_P): Re-implement with a function.
5867 * config/alpha/alpha.md (movsi): Add n alternative.
5868 (movsi_nt_vms, movdi_er_nofix, movdi_er_fix, movdi_fix): Likewise.
5869 (mov<VEC>_fix, mov<VEC>_nofix): Add i alternative.
5870 (splitters for all of the above): Use alpha_split_const_mov.
5871 * config/alpha/predicates.md (non_add_const_operand): New.
5872 (non_zero_const_operand): New.
5873 (input_operand): Use alpha_legitimate_constant_p after reload.
5874
4366cf6d
ZD
58752005-01-19 Zdenek Dvorak <dvorakz@suse.cz>
5876
5877 PR tree-optimization/19038
5878 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): New function.
5879 (add_candidate): Add ivs with increment in latch only if
5880 allow_ip_end_pos_p is true.
5881 (determine_iv_cost): Use empty_block_p.
5882
4c7f5fea
DB
58832005-01-19 Daniel Berlin <dberlin@dberlin.org>
5884
5885 * cfganal.c (compute_dominance_frontiers_1): Replace with new algorithm
5886 (compute_dominance_frontiers): Ditto.
5887
be33b729
RC
58882005-01-19 Ralf Corsepius <ralf.corsepius@rtems.org>
5889
5890 PR target/19529
2cdc2073 5891 * config/sh/t-rtems: New.
be33b729
RC
5892 * config.gcc (sh-*-rtems*): Reflect having added config/sh/t-rtems.
5893
53dba802
ZD
58942005-01-19 Zdenek Dvorak <dvorakz@suse.cz>
5895
5896 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Always subtract
5897 the offset of the selected field.
5898
04d38c3b
KH
58992005-01-19 Kazu Hirata <kazu@cs.umass.edu>
5900
5901 * tree-cfg.c (remove_forwarder_block): Fix the check to
5902 prevent a nonlocal label from appearing in the middle of a
5903 basic block.
5904
09f9e288
HPN
59052005-01-19 Hans-Peter Nilsson <hp@axis.com>
5906
5907 PR rtl-optimization/19462
5908 * reorg.c (find_end_label): Create return insn only if
5909 current_function_epilogue_delay_list is empty.
5910
625d4524
PB
59112005-01-19 Paolo Bonzini <bonzini@gnu.org>
5912
5913 * doc/passes.texi: Remove paragraph mentioning new-ra.
5914
e89be13b
JJ
59152005-01-19 Jakub Jelinek <jakub@redhat.com>
5916
49c3b9a8
JJ
5917 PR rtl-optimization/15139
5918 * combine.c: Include params.h.
5919 (count_rtxs): New function.
5920 (record_value_for_reg): If replace_rtx would replace at least
5921 2 occurrences of REG in VALUE and TEM is really large, replace REG with
5922 (clobber (const_int 0)) instead of TEM.
5923 * params.def (PARAM_MAX_LAST_VALUE_RTL): New.
5924 * params.h (MAX_LAST_VALUE_RTL): New.
5925 * Makefile.in (combine.o): Depend on $(PARAMS_H).
5926 * doc/invoke.texi (--param max-last-value-rtl=N): Document.
5927
e89be13b
JJ
5928 PR c/17297
5929 * c-typeck.c (digest_init): Only call build_vector if all constructor
5930 elements are *_CST nodes.
5931 * gimplify.c (gimplify_init_constructor): Likewise.
5932
5933 PR middle-end/19164
5934 * c-typeck.c (digest_init): Only call build_vector if inside_init
5935 is a CONSTRUCTOR.
5936
d74e09c6
TS
59372005-01-18 Tobias Schl"uter <tobias.schlueter@physik.uni-muenchen.de>
5938
5939 * toplev.c (init_asm_output): Remove dead #ifdef.
5940
e35b30c7
KK
59412005-01-18 Kaz Kojima <kkojima@gcc.gnu.org>
5942
5943 * config/sh/linux.h (TARGET_C99_FUNCTIONS): Define.
5944
8c96cd51
EB
59452005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5946
5947 * calls.c (expand_call): Check DECL_BUILT_IN_CLASS before
5948 accessing DECL_FUNCTION_CODE.
5949 * dojump.c (do_jump): Likewise.
5950 * gimplify.c (gimplify_call_expr): Likewise.
5951 * predict.c (expr_expected_value): Likewise.
5952 (strip_builtin_expect): Likewise.
5953 * tree-inline.c (estimate_num_insns_1): Likewise.
5954 * tree-ssa-loop-im.c (stmt_cost): Likewise
5955 * fold-const.c (fold): Test for BUILT_IN_NORMAL.
5956 (tree_expr_nonnegative_p): Likewise.
5957
eb7a7903
EB
59582005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
5959
5960 * config/sparc/sparc.c (load_pic_register): Emit the appropriate
5961 variant of the load_pcrel_sym pattern.
5962 * config/sparc/sparc.md (P macro): Move to the top.
5963 (load_pcrel_sym): Macroize using P.
5964 (save_register_window): Likewise.
5965
7836a61f
AH
59662005-01-18 Aldy Hernandez <aldyh@redhat.com>
5967
5968 * config/rs6000/rs6000.md ("sunordered"): Disable for e500.
5969 ("sordered"): Same.
5970
b4c33883
AP
59712005-01-18 Andrew Pinski <pinskia@physics.uc.edu>
5972
5973 PR C/19472
5974 * c-typeck.c (build_asm_expr): Strip nops off
5975 input memory operands.
5976
56015cee
DE
59772005-01-18 David Edelsohn <edelsohn@gnu.org>
5978
5979 * config/rs6000/aix43.h (CPLUSPLUS_CPP_SPEC): Delete
5980 _XOPEN_SOURCE, _XOPEN_SOURCE_EXTENDED, _LARGE_FILE_API.
5981 * config/rs6000/aix51.h (CPLUSPLUS_CPP_SPEC): Same.
5982 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Same.
5983
de004e6d
JS
59842005-01-18 Joel Sherrill <joel.sherrill@oarcorp.com>
5985
5986 PR target/19379
5987 * config/i386/i386.c (override_options): If the 80387 is disabled,
5988 then do not return FP values using FP registers.
5989
ad616de1
KH
59902005-01-18 Kazu Hirata <kazu@cs.umass.edu>
5991
5992 * basic-block.h, c-common.c, c-cppbuiltin.c, c-lang.c,
5993 c-tree.h, cfgbuild.c, cgraph.c, cgraph.h, collect2.c,
5994 combine.c, config.gcc, coverage.h, cse.c, cselib.c,
5995 defaults.h, df.c, dwarf2asm.c, dwarf2out.c, explow.c, expr.c,
5996 flow.c, fold-const.c, gcse.c, ggc-page.c, gimple-low.c,
5997 gimplify.c, ifcvt.c, langhooks-def.h, lcm.c, optabs.h,
5998 output.h, postreload-gcse.c, postreload.c, recog.c,
5999 resource.c, rtl.def, rtlanal.c, sched-deps.c, sched-rgn.c,
6000 targhooks.h, toplev.c, tree-data-ref.c, tree-eh.c,
6001 tree-flow.h, tree-loop-linear.c, tree-mudflap.h, tree-nrv.c,
6002 tree-optimize.c, tree-outof-ssa.c, tree-pass.h,
6003 tree-scalar-evolution.c, tree-ssa-copy.c, tree-ssa-dce.c,
6004 tree-ssa-dse.c, tree-ssa-loop-ivopts.c, tree-ssa-operands.c,
6005 tree-ssa-pre.c, tree-ssa.c, tree-vectorizer.c, tree.def,
6006 unwind-dw2-fde-darwin.c, var-tracking.c: Update copyright.
6007
5b86a469
KH
6008 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
6009 config/alpha/alpha.c, config/arm/vfp.md,
6010 config/i386/emmintrin.h, config/i386/i386-modes.def,
6011 config/i386/i386-protos.h, config/i386/i386.h,
6012 config/i386/pmmintrin.h, config/i386/ppro.md,
6013 config/i386/predicates.md, config/i386/xmmintrin.h,
6014 config/i860/i860.c, config/ia64/ia64-modes.def,
6015 config/ia64/ia64-protos.h, config/ia64/ia64.h,
6016 config/ia64/ia64.md, config/ia64/itanium1.md,
6017 config/ia64/itanium2.md, config/ia64/predicates.md,
6018 config/iq2000/iq2000.h, config/mips/linux64.h,
6019 config/rs6000/aix41.h, config/rs6000/aix43.h,
6020 config/rs6000/aix52.h, config/rs6000/darwin-fallback.c,
6021 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
6022 config/rs6000/spe.md, config/sh/sh.md, config/sparc/linux.h,
6023 config/sparc/linux64.h, config/sparc/litecoff.h,
6024 config/sparc/sp64-elf.h, config/sparc/sparc.c,
6025 config/sparc/sparc.h, config/sparc/sparc.md,
6026 config/sparc/sysv4-only.h: Update copyright.
6027
51d7bae6
RH
60282005-01-18 Richard Henderson <rth@redhat.com>
6029
6030 PR target/19496
6031 * config/i386/i386.c (ix86_expand_fp_movcc): Fail for LTGT and UNEQ.
6032
f5975bd5
ME
60332005-01-18 Marc Espie <espie@openbsd.org>
6034 * config/i386/openbsdelf.h: Typo.
6035
9f61886e
RH
60362005-01-18 Richard Henderson <rth@redhat.com>
6037
6038 * config/i386/i386.c (ix86_expand_fp_movcc): Remove TARGET_IEEE_FP
6039 special case for sse.
6040 * config/i386/predicates.md (sse_comparison_operator): Likewise.
6041
16630a2c
DN
60422005-01-18 Dorit Naishlos <dorit@il.ibm.com>
6043
6044 * tree-inline.c (estimate_num_insns_1): Added cases for
6045 ALIGN_INDIRECT_REF, MISALIGNED_INDIRECT_REF, and REALIGN_LOAD_EXPR.
6046
f917ae96
EB
60472005-01-18 Eric Botcazou <ebotcazou@libertysurf.fr>
6048
6049 PR rtl-optimization/19296
6050 * combine.c (simplify_comparison): Rewrite the condition under
6051 which a non-paradoxical SUBREG of a PLUS can be lifted when
6052 compared against a constant.
6053
06da3c24
AK
60542005-01-18 Andi Kleen <ak@muc.de>
6055
6056 * c-typeck.c: (convert_for_assignment): Check warn_pointer_sign.
6057 * c.opt (-Wpointer-sign): Add.
6058 * doc/invoke.texi: (-Wpointer-sign): Add.
6059
ded1c605
UB
60602005-01-18 Uros Bizjak <uros@kss-loka.si>
6061
6062 * config/i386/i386.c (override_options): Revert 2004-11-24 change.
6063 * config/i386/i386.md (fmodsf3, dremsf3, *sinsf2, *cossf2, sincossf3,
6064 *tansf3_1, tansf2, atan2sf3_1, atan2sf3, atansf2, asinsf2, acossf2,
6065 logsf2, log10sf2, log2sf2, log1psf2, logbsf2, ilogbsf2, expsf2,
6066 exp10sf2, exp2sf2, expm1sf2, rintsf2, floorsf2, ceilsf2, btruncsf2,
6067 nearbyintsf2): Disable for TARGET_SSE_MATH. Leave patterns enabled
6068 for TARGET_MIX_SSE_I387.
6069 (fmoddf3, dremdf3, *sindf2, *sinextendsfdf2, *cosdf2, *cosextendsfdf2,
6070 sincosdf3, *sincosextendsfdf3, *tandf3_1, tandf2, atan2df3_1,
6071 atan2df3, atandf2, asindf2, acosdf2, logdf2, log10df2, log2df2,
6072 log1pdf2, logbdf2, expdf2, exp10df2, exp2df2, expm1df2, rintdf2,
6073 floordf2, ceildf2, btruncdf2, nearbyintdf2): Disable for
6074 (TARGET_SSE2 && TARGET_SSE_MATH). Leave patterns enabled for
6075 TARGET_MIX_SSE_I387.
6076 (atan2sf3, atan2df3, atan2xf3): Remove register constraints
6077 from expander.
6078
d0405259
UB
60792005-01-18 Uros Bizjak <uros@kss-loka.si>
6080
6081 PR target/19424
6082 * config/i386/mmx.md (*movv2sf_internal_rex64, *movv2sf_internal):
6083 Add movaps alternative for xmm reg->reg move.
6084
0bd65483
JL
60852005-01-17 Jeff Law <law@redhat.com>
6086
6087 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Clear SSA_NAME_VALUE
6088 at the end of the main DOM loop rather than just before DOM exits.
6089
e03a46f5
DN
60902005-01-17 Diego Novillo <dnovillo@redhat.com>
6091
6092 PR tree-optimization/19121
6093 * tree-ssa-alias.c (compute_flow_sensitive_aliasing): When
6094 adding aliases to a name tag, also add them to the pointer's
6095 type tag.
6096 * tree-ssa-copy.c (merge_alias_info): Do not merge flow
6097 sensitive alias info at all. Only check that the two pointers
6098 have compatible pointed-to sets.
6099 * tree-ssa.c (verify_name_tags): Verify that the alias set of
6100 a pointer's type tag is a superset of the alias set of the
6101 pointer's name tag.
6102
696a2ca1
JW
61032005-01-17 James E Wilson <wilson@specifixinc.com>
6104
6105 PR target/19357
6106 * config/ia64/ia64.md (movxf): Handle general register source. Adjust
6107 comment to document why.
6108
115a33c2
RH
61092005-01-17 Richard Henderson <rth@redhat.com>
6110
6111 * config/i386/sse.md (smaxv4sf3_finite, sse_vmsmaxv4sf3_finite,
6112 sminv4sf3_finite, sse_vmsminv4sf3_finite, smaxv2df3_finite,
6113 sse2_vmsmaxv2df3_finite, sminv2df3_finite,
6114 sse2_vmsminv2df3_finite): New.
6115 (smaxv4sf3, sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, smaxv2df3,
6116 sse2_vmsmaxv2df3, sminv2df3, sse2_vmsminv2df3): Remove commutative.
6117 Force op1 into register.
6118
ded73657
KC
61192005-01-17 Kelley Cook <kcook@gcc.gnu.org>
6120
6121 * Makefile.in (STAGEMOVESTUFF): Stage all the stamp files to prevent
6122 bubblestrap from always rebuilding build directory.
6123
d4f52f0e
UW
61242005-01-17 Ulrich Weigand <uweigand@de.ibm.com>
6125
6126 * config/s390/s390.md ("*clc"): Remove incorrect '='.
6127 ("*cmpmem_short"): Likewise.
6128
740ce53d
SB
61292005-01-17 Steven Bosscher <stevenb@suse.de>
6130
6131 * basic-block.h: Document BB_* flags.
6132 * regrename.c (copyprop_hardreg_forward): Don't use BB_VISITED,
6133 use an sbitmap instead.
6134 * sched-rgn.c (compute_trg_info): Likewise.
6135
2184a120
RS
61362005-01-17 Richard Sandiford <rsandifo@redhat.com>
6137
6138 * config.gcc (mips64*-*-linux*): Set the default abi to n32. Remove
6139 redundant target_cpu_default and extra_parts lines. Use the default
6140 "from-abi" ISA.
6141 * config/mips/linux64.h (DRIVER_DEFAULT_ABI_SELF_SPEC): Delete.
6142 (SUBTARGET_EXTRA_SPECS): Delete.
6143 (DRIVER_SELF_SPECS): Remove architecture lines. Set the ABI directly.
6144 (SUBTARGET_ASM_SPEC): Remove -mabi=n32 and -mabi=64 mappings.
6145 * config/mips/t-linux64 (MULTILIB_DIRNAMES): Use "32" for -mabi=32
6146 and "n32" for -mabi=n32.
6147
812ad338
ILT
61482005-01-17 Ian Lance Taylor <ian@airs.com>
6149
6150 PR c/5675
6151 * c-typeck.c (build_c_cast): Revert patch of 2003-02-16: don't
6152 fold constant variables into initial values.
6153
26e75214
KH
61542005-01-17 Kazu Hirata <kazu@cs.umass.edu>
6155
6156 * tree-cfg.c (tree_can_merge_blocks_p): Reorder two checks.
6157
f8ef82ea
KH
6158 * tree-cfg.c (tree_forwarder_block_p): Speed up by walking
6159 through the statements backward.
6160
81bafd36
ILT
61612005-01-17 Ian Lance Taylor <ian@airs.com>
6162
6163 PR middle-end/13127:
6164 * tree-inline.c (expand_call_inline): Set TREE_NO_WARNING on
6165 a variable set to the return value of the inlined function.
6166
edb81165
MD
61672005-01-17 Mark Dettinger <dettinge@de.ibm.com>
6168
6169 * rtlanal.c (rtx_cost): Assign cost of 0 to a SUBREG
6170 when modes are tieable.
6171
658acbb2
RM
61722005-01-17 Ranjit Mathew <rmathew@hotmail.com>
6173
6174 * gthr-posix.h (__gthread_active_p): Use pthread_cancel instead
6175 of pthread_create to find out if threads are enabled.
6176 * gthr-posix95.h (__gthread_active_p): Likewise.
6177
cd280abb
PB
61782005-01-17 Paolo Bonzini <bonzini@gnu.org>
6179
6180 * common.opt (-fnew-ra): Remove.
6181 * ra*.*: Remove.
6182 * toplev.h (flag_new_regalloc): Remove.
6183 * Makefile.in (ra*.*): Don't mention.
6184 * passes.c (rest_of_handle_new_regalloc): Remove.
6185 (rest_of_handle_combine, rest_of_compilation): Always consider
6186 flag_new_regalloc as false.
6187 * doc/invoke.texi: Don't document -fnew-ra.
6188
61892005-01-17 Paolo Bonzini <bonzini@gnu.org>
c80a0f26
PB
6190
6191 * bb-reorder.c (fix_edges_for_rarely_executed_code): Remove
6192 last parameter to reg_scan.
6193 * loop.c (loop_optimize): Likewise.
6194 * passes.c (rest_of_handle_tracer, rest_of_handle_if_conversion,
6195 rest_of_handle_web, rest_of_handle_cfg, rest_of_handle_jump_bypass,
6196 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
6197 rest_of_handle_gcse, rest_of_handle_loop_optimize,
6198 rest_of_handle_loop2, rest_of_handle_jump2): Likewise.
6199 * regclass.c (reg_scan): Likewise, for the declaration.
6200 * rtl.h (reg_scan): Likewise, for the prototype.
6201
724e4d44
KH
62022005-01-17 Kazu Hirata <kazu@cs.umass.edu>
6203
6204 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Don't call
6205 mark_dfs_back_edges.
6206
7f233d9f
DB
62072005-01-16 Daniel Berlin <dberlin@dberlin.org>
6208
6209 * tree-ssa-pre.c (add_to_sets): s1 may be NULL.
6210 (compute_avail): Uses don't go in tmp_gen.
6211
6f0947e4
SB
62122005-01-16 Steven Bosscher <stevenb@suse.de>
6213
6214 * ggc-page.c (ggc_alloc_stat): Use __builtin_ctzl instead of a
6215 loop to look for a free slot in a page entry.
6216
083b6717
JDA
62172005-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6218
6219 PR target/16304
6220 * defaults.h (TARGET_DEFERRED_OUTPUT_DEFS): Provide default.
6221 * toplev.c (compile_file): Call process_pending_assemble_output_defs
6222 just before targetm.asm_out.file_end.
6223 * tree.h (process_pending_assemble_output_defs): Declare.
6224 * varasm.c (assemble_output_def, process_pending_assemble_output_defs):
6225 New functions.
6226 (assemble_alias): Defer generation of assembly code for defines when
6227 TARGET_DEFERRED_OUTPUT_DEFS is true.
6228 * config/rs6000/aix41.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
6229 * config/rs6000/aix43.h (TARGET_DEFERRED_OUTPUT_DEFS): Define.
6230 * doc/tm.texi (TARGET_DEFERRED_OUTPUT_DEFS): document.
6231
2d5ca9a0
JDA
62322005-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6233
83c32f2e
JDA
6234 PR target/19336
6235 * pa.c (pa_scalar_mode_supported_p): New function.
6236 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
6237 * pa.h (MIN_UNITS_PER_WORD): Add comment.
6238
2d5ca9a0
JDA
6239 * pa-protos.h (prefetch_operand): Delete.
6240 (prefetch_cc_operand, prefetch_nocc_operand): New declations.
6241 * pa.c (prefetch_operand): Delete.
6242 (prefetch_cc_operand, prefetch_nocc_operand): New functions.
6243 * pa.h (EXTRA_CONSTRAINT): Add `W' constraint.
6244 (PREDICATE_CODES): Delete prefetch_operand. Add prefetch_cc_operand
6245 and prefetch_nocc_operand.
6246 * pa.md (prefetch): Rework to avoid reload problems handling short
6247 displacements when a cache control completer needs to be provided.
6248 (prefetch_32, prefetch_64): Delete.
6249 (prefetch_cc, prefetch_nocc): New patterns.
6250
6a9836b1
DE
62512005-01-15 David Edelsohn <edelsohn@gnu.org>
6252
6253 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Revert previous change.
6254
22f549fd
JDA
62552005-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6256
6257 PR ada/19388
6258 * pa.c (pa_asm_output_aligned_common): Warn if specified alignment
6259 exceeds maximum alignment for global common data.
6260 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): Define to 32768.
6261 * som.h (MAX_OFILE_ALIGNMENT): Likewise.
6262
19e1af6e
RS
62632004-01-15 Roger Sayle <roger@eyesopen.com>
6264
6265 * tree-ssa-dom.c (extract_range_from_cond): Correct condition.
6266
778f72f2
RS
62672004-01-15 Roger Sayle <roger@eyesopen.com>
6268
6269 * harg-reg-set.h (reg_class_names): Prototype global array.
6270 * regclass.c (reg_class_names): Declare here and initialize to
6271 REG_CLASS_NAMES.
6272 (dump_regclass): Remove local declaration of reg_class_names.
6273 (regclass): Likewise.
6274 * cfg.c (dump_flow_info): Likewise.
6275 * ra-debug.c (reg_class_names): Likewise.
6276 * regrename.c (reg_class_names): Likewise.
6277 * reload.c (reg_class_names): Likewise.
6278 * reload1.c (spill_failure): Likewise.
6279 * config/m68hc11/m68hc11.c (reg_class_names): Likewise.
6280
9c3c3dcc
UW
62812005-01-15 Ulrich Weigand <uweigand@de.ibm.com>
6282
6283 * config/s390/s390.md ("reload_outti"): Remove predicate for
6284 output operand. Abort if operand is not a MEM.
6285 ("reload_outdi", "reload_outdf"): Likewise.
6286
378b66d4
ME
62872005-01-15 Marc Espie <espie@openbsd.org>
6288
6289 * config.gcc (*-*-openbsd*): Set HAS_LIBC_R for OpenBSD <= 3.2.
6290 (i[34567]86-*-openbsd*): Switch to ELF for OpenBSD >= 3.4.
6291 * config/openbsd.h: Fix C++ includes for native configurations.
6292 Add proper OS_CPP_BUILTINS. Fix libspec for recent OpenBSD.
6293 Add trampoline support.
6294 * config/i386/openbsdelf.h: New.
6295
60828cbd
ME
62962005-01-15 Marc Espie <espie@openbsd.org>
6297
6298 * collect2.c (main): Explicitly parse -dynamic-linker option.
6299
75b9aa9f
JJ
63002005-01-15 Jakub Jelinek <jakub@redhat.com>
6301
6302 PR tree-optimization/19060
6303 * tree-ssa-dom.c (extract_range_from_cond) <case LT_EXPR, GT_EXPR>:
6304 Return 0 if op1 <= TYPE_MIN_VALUE () resp. op1 >= TYPE_MAX_VALUE ().
6305 (simplify_cond_and_lookup_avail_expr): Add assert for dummy == 0
6306 and handle extract_range_from_cond returning false.
6307 * fold-const.c (fold): Optimize comparisons with min/max even for
6308 width > HOST_BITS_PER_WIDE_INT.
6309
4ba9f2a1
RC
63102005-01-15 Ralf Corsepius <ralf.corsepius@rtems.org>
6311
6312 * config/mips/rtems.h (MIPS_DEFAULT_GVALUE): Set to 0.
2cdc2073 6313 * config/mips/t-rtems (MULTILIBS_DIRNAMES,MULTILIB_OPTIONS):
4ba9f2a1
RC
6314 Remove little endian multilib variants.
6315 Add mips32 multilib variant.
6316
bbc8fb00
KH
63172005-01-15 Kazu Hirata <kazu@cs.umass.edu>
6318
6319 * explow.c (copy_all_reg, stabilize): Remove.
6320 * expr.h: Remove the corresponding prototypes.
6321
6a29dc8b
KH
6322 * rtlanal.c (regs_set_between_p): Remove.
6323 * rtl.h: Remove the corresponding prototype.
6324
165a5bad
DE
63252005-01-14 David Edelsohn <edelsohn@gnu.org>
6326
6327 * config/rs6000/rs6000.c (rs6k_nonimmediate_operand): Rename
6328 to rs6000_nonimmediate_operand.
6329 * config/rs6000/rs6000.h (PREDICATE_CODES): Rename
6330 rs6k_nonimmediate_operand to rs6000_nonimmediate_operand.
6331 * config/rs6000/rs6000.md (movsi_internal1): Rename predicate to
6332 rs6000_nonimmediate_operand.
6333 * config/rs6000/spe.md (movdf_e500_double): Rename predicate to
6334 rs6000_nonimmediate_operand.
6335
7f9e6d2a
AP
63362005-01-14 Andrew Pinski <pinskia@physics.uc.edu>
6337
6338 * tree-ssa-alias.c (pass_may_alias): Add TODO_verify_stmts.
6339
54b695e7
AH
63402005-01-14 Aldy Hernandez <aldyh@redhat.com>
6341
6342 * config/rs6000/rs6000.h (CLASS_MAX_NREGS): DF goes in 1 register
6343 on e500v2.
6344 (CANNOT_CHANGE_MODE_CLASS): Restrict DI mode changes on e500v2.
6345 (PREDICATE_CODES): Add rs6k_nonimmediate_operand.
6346
6347 * config/rs6000/rs6000.c (invalid_e500_subreg): New.
6348 (rs6k_nonimmediate_operand): New.
6349 (rs6000_legitimate_offset_address_p): Handle DI modes on e500v2
6350 correctly.
6351 (legitimate_lo_sum_address_p): Same.
6352 (rs6000_legitimize_address): Same.
6353 (rs6000_legitimize_reload_address): Same.
6354 (rs6000_legitimate_address): Same.
6355 (spe_build_register_parallel): Pass DF and DC modes in a DI
6356 register.
6357
6358 * config/rs6000/rs6000.md ("*movsi_internal1"): Change predicate
6359 to rs6k_nonimmediate_operand.
6360
6361 * config/rs6000/spe.md ("*frob_df_di"): New.
6362 ("*frob_di_df"): New.
6363 ("*frob_di_df_2"): New.
6364 ("*mov_sidf_e500_subreg0"): New.
6365 ("*mov_sidf_e500_subreg4"): New.
6366 ("*movdf_e500_double"): Change predicate to
6367 rs6k_nonimmediate_operand.
6368
05075d4e
AH
63692005-01-14 Aldy Hernandez <aldyh@redhat.com>
6370
6371 * postreload.c (move2add_note_store): Only call
6372 trunc_int_for_mode on scalar integers.
6373
a28fee03
SB
63742005-01-14 Steven Bosscher <stevenb@suse.de>
6375
6376 * tree-ssa-dce.c (visited_control_parents): New sbitmap to
6377 replace BB_VISITED uses.
6378 (find_obviously_necessary_stmts): Don't clear BB_VISITED.
6379 (propagate_necessity): Check the bitmap instead of BB_VISITED.
6380 (tree_dce_done): Free visited_control_parents.
6381 (perform_tree_ssa_dce): Allocate and clear it.
6382 * tree-ssa-pre.c (compute_antic_aux): Make non-recursive.
6383 (compute_antic): Iterate from here using a DFS. Use an sbitmap
6384 instead of BB_VISITED.
6385
103a83e0
KH
63862005-01-14 Kazu Hirata <kazu@cs.umass.edu>
6387
6388 * c-tree.h, coverage.h, langhooks-def.h, optabs.h, output.h,
6389 rtl.h, targhooks.h, tree-flow.h, tree-mudflap.h, tree.h:
6390 Remove unused prototypes.
6391
b5a5beb9
AH
63922005-01-14 Aldy Hernandez <aldyh@redhat.com>
6393
6394 * config/rs6000/rs6000.c (rs6000_stack_info): Fix caching of SPE
6395 64-bit register usage.
6396 (spe_func_has_64bit_regs_p): Add FIXME note.
6397
5ca18999
AH
63982005-01-14 Aldy Hernandez <aldyh@redhat.com>
6399
6400 * config/rs6000/rs6000.c (rs6000_generate_compare): Replace
6401 flag_finite_math_only with flag_unsafe_math_optimizations.
6402
783d2650
J
64032005-01-14 J. D. Johnston <jjohnst@us.ibm.com>
6404
6405 * config/s390/tpf-unwind.h (s390_fallback_frame_state): Correct
6406 end-of-stack check.
6407 (__tpf_eh_return): Copy TPF private stack area from the module
6408 boundary stack frame. Add check for when module addresses are
6409 equal, but no stub address is found.
6410
b12a00f1
RE
64112005-01-14 Richard Earnshaw <rearnsha@arm.com>
6412
6413 PR target/7525
6414 * arm.h (struct machine_function): Add call_via field.
6415 (thumb_call_via_label): Declare.
6416 * arm.c (thumb_call_via_label): New variable.
6417 (thumb_call_reg_needed): New variable.
6418 (arm_output_function_epilogue): For Thumb code, output any per-function
6419 call-indirect trampolines.
6420 (thumb_call_via_reg): New function.
6421 (arm_file_end): New function.
6422 (TARGET_ASM_FILE_END): Call arm_file_end.
6423 (aof_file_end): Likewise.
6424 * arm-protos.h (thumb_call_via_reg): Declare.
2cdc2073 6425 * arm.md (call_reg_thumb, call_value_reg_thumb): Call
b12a00f1
RE
6426 thumb_call_via_reg in normal case.
6427
08a0c536
JJ
64282005-01-14 Jakub Jelinek <jakub@redhat.com>
6429
6430 PR middle-end/19084
6431 PR rtl-optimization/19348
6432 * recog.c (peephole2_optimize): Do global life update if some peephole
6433 decides it doesn't need at least one of its inputs and that change
6434 influences liveness at the start of the basic block.
6435
6436 * basic-block.h (EXECUTE_IF_AND_COMPL_IN_REG_SET): Needs 2 REGSET
6437 arguments instead of 1.
6438
eebeecac
EB
64392005-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
6440
6441 PR middle-end/18820
6442 * varasm.c (initializer_constant_valid_p) <ADDR_EXPR>: Return
6443 zero for nested functions needing a static chain or functions
6444 with a non-constant address.
6445
a0ee8b5f
RS
64462005-01-13 Roger Sayle <roger@eyesopen.com>
6447
6448 * simplify-rtx.c (simplify_binary_operation) <AND>: Optimize
6449 (and (sign_extend X) C) into (zero_extend (and X C)).
6450
92018897
DB
64512005-01-13 David O'Brien <obrien@FreeBSD.org>
6452
6453 * config/freebsd-spec.h: Make KSE pthread lib logic the default.
6454
eaa49b49
RH
64552005-01-13 Richard Henderson <rth@redhat.com>
6456
2d1d3cb2 6457 PR target/19009
eaa49b49
RH
6458 PR target/19250
6459 PR target/19252
6460 * config/i386/i386.md (cmpdf, cmpsf, bunordered, bordered, buneq,
6461 bunge, bungt, bunle, bunlt, bltgt): Enable for TARGET_SSE_MATH,
6462 not just TARGET_SSE.
6463 (cmpfp_i_387): Rename from cmpfp_i. Move after sse patterns.
6464 (cmpfp_i_mixed): Rename from cmpfp_i_sse; use for TARGET_MIX_SSE_I387.
6465 (cmpfp_i_sse): Rename from cmpfp_i_sse_only; use for TARGET_SSE_MATH.
6466 (cmpfp_iu_mixed, cmpfp_iu_sse, cmpfp_iu_387): Similarly.
6467 (fp_jcc_1_mixed, fp_jcc_1_sse, fp_jcc_1_387): Similarly.
6468 (fp_jcc_2_mixed, fp_jcc_2_sse, fp_jcc_2_387): Similarly.
6469 (fp_jcc_3_387, fp_jcc_4_387, fp_jcc_5_387, fp_jcc_6_387,
6470 fp_jcc_7_387, fp_jcc_8_387): Rename from fp_jcc_N.
6471 (movdicc_c_rex64): Rename with '*'.
6472 (movsfcc, movdfcc): Add checks for 387 and sse math to condition.
6473 (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): New.
6474 (movsfcc_1_387): Rename from movsfcc_1.
6475 (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): New.
6476 (movdfcc_1, movdfcc_1_rex64): Add check for 387.
6477 (sminsf3, smaxsf3, smindf3, smaxdf3): New.
6478 (minsf3, minsf, minsf_nonieee, minsf_sse, mindf3, mindf,
6479 mindf_nonieee, mindf_sse, maxsf3, maxsf, maxsf_nonieee, maxsf_sse,
6480 maxdf3, maxdf, maxdf_nonieee, maxdf_sse, sse_movsfcc, sse_movsfcc_eq,
6481 sse_movdfcc, sse_movdfcc_eq, sse_movsfcc_const0_1,
6482 sse_movsfcc_const0_2, sse_movsfcc_const0_3, sse_movsfcc_const0_4,
6483 sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
6484 sse_movdfcc_const0_4): Remove.
6485 * config/i386/i386.c (ix86_expand_fp_movcc): For TARGET_SSE_MATH,
6486 recognize min/max early. Update for changed sse cmove patterns.
6487 (ix86_split_sse_movcc): New.
6488 * config/i386/i386-protos.h: Update.
6489
1dff80c0
SB
64902005-01-13 Steven Bosscher <stevenb@suse.de>
6491
6492 * tree-ssa-dse.c (fix_phi_uses): Use SSA operand iterators.
6493 (fix_stmt_v_may_defs): Likewise.
6494
bb129a4f
RH
64952005-01-13 Richard Henderson <rth@redhat.com>
6496
6497 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Use elt_mode
6498 for converting the mask.
6499
2cba2c8b
DE
65002005-01-13 David Edelsohn <edelsohn@gnu.org>
6501
6502 * config/rs6000/aix52.h (CPLUSPLUS_CPP_SPEC): Change _XOPEN_SOURCE
6503 definition to 600.
6504
ed9b5396
RH
65052005-01-13 Richard Henderson <rth@redhat.com>
6506
6507 * config/i386/i386.c (IX86_BUILTIN_MOVQ, IX86_BUILTIN_LOADD,
6508 IX86_BUILTIN_STORED, IX86_BUILTIN_MOVQ2DQ,
6509 IX86_BUILTIN_MOVDQ2Q): Remove.
6510 (IX86_BUILTIN_VEC_EXT_V4SI): New.
6511 (ix86_init_mmx_sse_builtins, ix86_expand_builtin): Update to match.
2cdc2073 6512 (ix86_expand_vector_extract): For V4S[FI], extract element 0 after
ed9b5396
RH
6513 shuffling.
6514 * config/i386/sse.md (sse_concatv2sf): Accept zero operand 2.
6515 (sse2_pextrw): Fix immediate constraint.
6516 (sse2_loadq, sse2_loadq_rex64): Remove.
6517 * config/i386/emmintrin.h (_mm_cvtsi128_si32, _mm_cvtsi128_si64x):
6518 Use __builtin_ia32_vec_ext_<size>.
6519 (_mm_cvtsi32_si128, _mm_cvtsi64x_si128): Use _mm_set_epi<size>.
6520
17284759
AH
65212005-01-13 Aldy Hernandez <aldyh@redhat.com>
6522
6523 * function.c (assign_parm_setup_block): Look inside original
6524 entry_parm when inspecting PARALLEL.
6525
5d58d2f8
RC
65262005-01-13 Ralf Corsepius <ralf.corsepius@rtems.org>
6527 Joel Sherrill <joel@oarcorp.com>
6528
6529 PR target/19399
6530 * gthr-rtems.h (__gthread_recursive_mutex_t): New type.
6531 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Define to
6532 rtems_gxx_recursive_mutex_init.
6533 (__gthread_recursive_mutex_lock): New function.
6534 (__gthread_recursive_mutex_trylock): Likewise.
6535 (__gthread_recursive_mutex_unlock): Likewise.
6536
52786878
RC
65372005-01-13 Ralf Corsepius <ralf.corsepius@rtems.org>
6538
6539 * config/i386/t-rtems-i386: Multilib on -mtune instead of -mcpu.
6540
16d8386b
JB
65412005-01-13 Jan Beulich <jbeulich@novell.com>
6542
6543 * config/ia64/ia64.md (ashlti3, ashlti3_internal): New.
6544 (ashrti3_internal): Indicate output is early clobber. Generate result
6545 into output rather than first input. Use move for low word of output
6546 if shift count is exactly 64.
6547 (lshrti3_internal): Likewise.
6548
0149f412
HPN
65492005-01-13 Hans-Peter Nilsson <hp@bitrange.com>
6550
6551 PR target/18329
6552 PR target/18330
6553 * reload1.c (delete_output_reload): Don't delete an output reload
6554 if the pseudo lives longer than a single basic block. Adjust and
6555 improve wording of comment.
6556
e1e04267
AP
65572005-01-12 Andrew Pinski <pinskia@physics.uc.edu>
6558
6559 PR target/19334
6560 * config/darwin.c (machopic_select_section): Use TYPE_SIZE_UNIT instead
6561 of TYPE_SIZE where we mean the number of bytes.
6562
640019aa
AH
65632005-01-12 Aldy Hernandez <aldyh@redhat.com>
6564
6565 * function.c (assign_parm_setup_block): Relax condition on
6566 multi-register optimization.
6567
98e20ffd
NC
65682005-01-12 Nick Clifton <nickc@redhat.com>
6569
6570 * config/sh/sh.md (udivsi3_sh2a, divsi3_sh2a): Give these patterns
6571 an "in_delay_slot" attribute of "no" to prevent them being used in
6572 delay slots. This is forbidden because they might generate
6573 exceptions.
6574
409f61cd
AM
65752005-01-12 Alan Modra <amodra@bigpond.net.au>
6576
6577 PR target/19389
6578 * config/rs6000/rs6000.md (movtf_internal): Replace r->o and m->r
6579 with r->Y and Y->r.
6580
ef6f5655
NC
65812005-01-12 Nick Clifton <nickc@redhat.com>
6582
6583 * config/iq2000/iq2000.h (ASM_SPEC): Undefine (to stop -Qy being
6584 passed on to GAS) but do not define, as GAS no longer supports or
6585 needs the -m2000 option.
6586
157b3890
RS
65872005-01-11 Roger Sayle <roger@eyesopen.com>
6588
6589 * builtins.c (fold_builtin_fabs): Convert argument to the appropriate
6590 type as args of unprototyped builtins aren't automatically promoted.
6591 (fold_builtin_abs): Likewise.
6592
9a43b902
KG
65932005-01-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6594
6595 * Makefile.in: Set a `build-warn' variable.
6596
0a915e3d
ZD
65972005-01-11 Zdenek Dvorak <dvorakz@suse.cz>
6598
6599 PR tree-optimization/17949
6600 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): New function.
6601 (find_interesting_uses_address): Use it.
6602
f351bfed
AH
66032005-01-11 Aldy Hernandez <aldyh@redhat.com>
6604
6605 * regrename.c (kill_value): Handle subreg's that won't simplify.
6606
eb701deb
RH
66072005-01-11 Richard Henderson <rth@redhat.com>
6608
6609 PR target/13366
6610 * config/i386/i386.h (enum ix86_builtins): Move ...
6611 * config/i386/i386.c: ... here.
6612 (IX86_BUILTIN_MOVDDUP, IX86_BUILTIN_MMX_ZERO, IX86_BUILTIN_PEXTRW,
6613 IX86_BUILTIN_PINSRW, IX86_BUILTIN_LOADAPS, IX86_BUILTIN_LOADSS,
6614 IX86_BUILTIN_STORESS, IX86_BUILTIN_SSE_ZERO, IX86_BUILTIN_PEXTRW128,
6615 IX86_BUILTIN_PINSRW128, IX86_BUILTIN_LOADAPD, IX86_BUILTIN_LOADSD,
6616 IX86_BUILTIN_STOREAPD, IX86_BUILTIN_STORESD, IX86_BUILTIN_STOREHPD,
6617 IX86_BUILTIN_STORELPD, IX86_BUILTIN_SETPD1, IX86_BUILTIN_SETPD,
6618 IX86_BUILTIN_CLRPD, IX86_BUILTIN_LOADPD1, IX86_BUILTIN_LOADRPD,
6619 IX86_BUILTIN_STOREPD1, IX86_BUILTIN_STORERPD, IX86_BUILTIN_LOADDQA,
6620 IX86_BUILTIN_STOREDQA, IX86_BUILTIN_CLRTI,
6621 IX86_BUILTIN_LOADDDUP): Remove.
6622 (IX86_BUILTIN_VEC_INIT_V2SI, IX86_BUILTIN_VEC_INIT_V4HI,
6623 IX86_BUILTIN_VEC_INIT_V8QI, IX86_BUILTIN_VEC_EXT_V2DF,
6624 IX86_BUILTIN_VEC_EXT_V2DI, IX86_BUILTIN_VEC_EXT_V4SF,
6625 IX86_BUILTIN_VEC_EXT_V8HI, IX86_BUILTIN_VEC_EXT_V4HI,
6626 IX86_BUILTIN_VEC_SET_V8HI, IX86_BUILTIN_VEC_SET_V4HI): New.
6627 (ix86_init_builtins): Make static.
6628 (ix86_init_mmx_sse_builtins): Update for changed builtins.
6629 (ix86_expand_binop_builtin): Only use ix86_fixup_binary_operands
6630 if all the modes match. Otherwise, fake it.
6631 (get_element_number, ix86_expand_vec_init_builtin,
6632 ix86_expand_vec_ext_builtin, ix86_expand_vec_set_builtin): New.
6633 (ix86_expand_builtin): Make static. Update for changed builtins.
6634 (ix86_expand_vector_move_misalign): Use sse2_loadlpd with zero
6635 operand instead of sse2_loadsd. Cast sse1 fallback to V4SFmode.
6636 (ix86_expand_vector_init_duplicate): New.
6637 (ix86_expand_vector_init_low_nonzero): New.
6638 (ix86_expand_vector_init_one_var, ix86_expand_vector_init_general):
6639 Split out from ix86_expand_vector_init; handle integer modes.
6640 (ix86_expand_vector_init): Use them.
6641 (ix86_expand_vector_set, ix86_expand_vector_extract): New.
6642 * config/i386/i386-protos.h: Update.
6643 * config/i386/predicates.md (reg_or_0_operand): New.
6644 * config/i386/mmx.md (mov<MMXMODEI>_internal): Add 'r' variants.
6645 (movv2sf_internal): Likewise. And a splitter to match them all.
6646 (vec_dupv2sf, mmx_concatv2sf, vec_setv2sf, vec_extractv2sf,
6647 vec_initv2sf, vec_dupv4hi, vec_dupv2si, mmx_concatv2si, vec_setv2si,
6648 vec_extractv2si, vec_initv2si, vec_setv4hi, vec_extractv4hi,
6649 vec_initv4hi, vec_setv8qi, vec_extractv8qi, vec_initv8qi): New.
6650 (mmx_pinsrw): Fix operand ordering.
6651 * config/i386/sse.md (movv4sf splitter): Use direct pattern,
6652 rather than sse_loadss expander.
6653 (movv2df splitter): Similarly.
6654 (sse_loadss, sse_loadlss): Remove.
6655 (vec_dupv4sf, sse_concatv2sf, sse_concatv4sf, vec_extractv4sf_0): New.
6656 (vec_setv4sf, vec_setv2df): Use ix86_expand_vector_set.
6657 (vec_extractv4sf, vec_extractv2df): Use ix86_expand_vector_extract.
6658 (sse3_movddup): Rename with '*'.
6659 (sse3_movddup splitter): Use gen_rtx_REG instead of gen_lowpart.
6660 (sse2_loadsd): Remove.
6661 (vec_dupv2df_sse3): Rename from sse3_loadddup.
6662 (vec_dupv2df, vec_concatv2df_sse3, vec_concatv2df): New.
6663 (sse2_pinsrw): Fix argument ordering.
6664 (sse2_loadld, sse2_loadq): Add sse1 alternatives.
6665 (sse2_stored): Remove 'r' destination.
6666 (vec_dupv4si, vec_dupv2di, sse2_concatv2si, sse1_concatv2si,
6667 vec_concatv4si_1, vec_concatv2di, vec_setv2di, vec_extractv2di,
6668 vec_initv2di, vec_setv4si, vec_extractv4si, vec_initv4si,
6669 vec_setv8hi, vec_extractv8hi, vec_initv8hi, vec_setv16qi,
6670 vec_extractv16qi, vec_initv16qi): New.
6671
6672 * config/i386/emmintrin.h (__m128i, __m128d): Use typedef, not define.
2cdc2073 6673 (_mm_set_sd, _mm_set1_pd, _mm_setzero_pd, _mm_set_epi64x,
eb701deb
RH
6674 _mm_set_epi32, _mm_set_epi16, _mm_set_epi8, _mm_setzero_si128): Use
6675 constructor form.
6676 (_mm_load_pd, _mm_store_pd): Use plain dereference.
6677 (_mm_load_si128, _mm_store_si128): Likewise.
6678 (_mm_load1_pd): Use _mm_set1_pd.
6679 (_mm_load_sd): Use _mm_set_sd.
6680 (_mm_store_sd, _mm_storeh_pd): Use __builtin_ia32_vec_ext_v2df.
6681 (_mm_store1_pd, _mm_storer_pd): Use _mm_store_pd.
6682 (_mm_set_epi64): Use _mm_set_epi64x.
6683 (_mm_set1_epi64x, _mm_set1_epi64, _mm_set1_epi32, _mm_set_epi16,
6684 _mm_set1_epi8, _mm_setr_epi64, _mm_setr_epi32, _mm_setr_epi16,
6685 _mm_setr_epi8): Use _mm_set_foo form.
6686 (_mm_loadl_epi64, _mm_movpi64_epi64, _mm_move_epi64): Use _mm_set_epi64.
6687 (_mm_storel_epi64, _mm_movepi64_pi64): Use __builtin_ia32_vec_ext_v2di.
6688 (_mm_extract_epi16): Use __builtin_ia32_vec_ext_v8hi.
6689 (_mm_insert_epi16): Use __builtin_ia32_vec_set_v8hi.
6690 * config/i386/mmintrin.h (_mm_setzero_si64): Use plain cast.
6691 (_mm_set_pi32): Use __builtin_ia32_vec_init_v2si.
6692 (_mm_set_pi16): Use __builtin_ia32_vec_init_v4hi.
6693 (_mm_set_pi8): Use __builtin_ia32_vec_init_v8qi.
6694 (_mm_set1_pi16, _mm_set1_pi8): Use _mm_set_piN variant.
6695 * config/i386/pmmintrin.h (_mm_loaddup_pd): Use _mm_load1_pd.
6696 (_mm_movedup_pd): Use _mm_shuffle_pd.
6697 * config/i386/xmmintrin.h (_mm_setzero_ps, _mm_set_ss,
6698 _mm_set1_ps, _mm_set_ps, _mm_setr_ps): Use constructor form.
6699 (_mm_cvtpi16_ps, _mm_cvtpu16_ps, _mm_cvtpi8_ps, _mm_cvtpu8_ps,
6700 _mm_cvtps_pi8, _mm_cvtpi32x2_ps): Avoid __builtin_ia32_mmx_zero;
6701 Use _mm_setzero_ps.
6702 (_mm_load_ss, _mm_load1_ps): Use _mm_set* form.
6703 (_mm_load_ps, _mm_loadr_ps): Use raw dereference.
6704 (_mm_store_ss): Use __builtin_ia32_vec_ext_v4sf.
6705 (_mm_store_ps): Use raw dereference.
6706 (_mm_store1_ps): Use _mm_storeu_ps.
6707 (_mm_storer_ps): Use _mm_store_ps.
6708 (_mm_extract_pi16): Use __builtin_ia32_vec_ext_v4hi.
6709 (_mm_insert_pi16): Use __builtin_ia32_vec_set_v4hi.
6710
d9e4e4f5
SS
67112005-01-11 Stan Shebs <shebs@apple.com>
6712
6713 * config/rs6000/rs6000.c (machopic_output_stub): Issue
6714 ldu instead of lwzu if 64-bit -mdynamic-no-pic.
6715
85962ac8
AP
67162005-01-11 Andrew Pinski <pinskia@physics.uc.edu>
6717
6718 PR target/18761
6719 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
6720 Skip all DECLs except for FIELD_DECLs.
6721
6b78f6be
AK
67222005-01-11 Andreas Krebbel <krebbel1@de.ibm.com>
6723
6724 * config/s390/s390.c (override_options): Return error if
6725 -mbackchain, -mpacked-stack and -mhard-float are used together.
6726 (s390_va_start): Remove the backchain && packed-stack special case.
6727 (s390_gimplify_va_arg): Likewise.
6728 * doc/invoke.texi: Remove the ABI incompatibility note.
6729
66480e91
AK
67302005-01-11 Andreas Krebbel <krebbel1@de.ibm.com>
6731
fc474307 6732 * config/s390/s390.c (struct s390_frame_layout): Remove
66480e91
AK
6733 save_backchain_p.
6734 (s390_frame_info, s390_emit_prologue): Replace occurrences of
6735 save_backchain_p with TARGET_BACKCHAIN.
6736
bfc45551
AM
67372005-01-11 Alan Modra <amodra@bigpond.net.au>
6738
6739 PR target/18916
6740 * builtins.c (std_gimplify_va_arg_expr): Adjust alignment of *ap.
6741 * expr.h (struct locate_and_pad_arg_data): Add "boundary".
6742 * function.c (locate_and_pad_parm): Set new field.
6743 (assign_parm_find_stack_rtl): Use it instead of FUNCTION_ARG_BOUNDARY.
6744 Tweak where_pad test to include "none". Always set mem align for
6745 stack_parm.
6746 (assign_parm_adjust_stack_rtl): Discard stack_parm if alignment
6747 not sufficient for type.
6748 (assign_parm_setup_block): If stack_parm is zero on entry, always
6749 make a new stack local. Block move old stack parm if necessary
6750 to new aligned stack local.
6751 (assign_parm_setup_stack): Use a block move to handle
6752 potentially misaligned entry_parm.
6753 (assign_parms_unsplit_complex): Specify required alignment when
6754 creating stack local.
6755 * calls.c (compute_argument_addresses): Override alignment of stack
6756 arg calculated from its type with the alignment given by
6757 FUNCTION_ARG_BOUNDARY.
6758 (store_one_arg): Likewise.
6759
d3f6e07b 67602005-01-11 Jan Beulich <jbeulich@novell.com>
bfc45551 6761
d3f6e07b
JB
6762 * config/ia64/ia64.md (zero_extendsidi2): Replace zxt4 by addp4.
6763 Change respective itanium_class attribute to ialu.
6764 (shladdp4_internal): New.
6765 * config/ia64/predicates.md (shladd_log2_operand): New.
6766
201dd46b
RH
67672005-01-11 Richard Henderson <rth@redhat.com>
6768
6769 * expr.c (store_constructor): Use rtvec_alloc instead of
6770 alloca+gen_rtvec_v, and an incorrect number passed to alloca.
6771
35c0104b
KH
67722005-01-11 Kazu Hirata <kazu@cs.umass.edu>
6773
6774 * config/alpha/alpha.c, config/i386/mmx.md: Fix comment typos.
6775
abb8b19a
AM
67762005-01-11 Alan Modra <amodra@bigpond.net.au>
6777
6778 * varasm.c (default_section_type_flags_1): Don't set SECTION_SMALL.
6779 * config/ia64/ia64.c (TARGET_SECTION_TYPE_FLAGS): Define.
6780 (TARGET_RWRELOC): Define.
6781 (ia64_rwreloc_section_type_flags): Delete.
6782 (ia64_section_type_flags): New function.
6783 * config/ia64/hpux.h (TARGET_SECTION_TYPE_FLAGS): Don't define.
6784 (TARGET_RWRELOC): Define.
6785
b1eae416
DM
67862005-01-10 David Mosberger <davidm@hpl.hp.com>
6787
6788 PR target/18987
6789 * config/ia64/ia64.c (process_set): For alloc insn, only call
6790 process_epilogue is !frame_pointer_needed.
6791
18d00205
RS
67922005-01-10 Roger Sayle <roger@eyesopen.com>
6793
6794 PR c++/19355
6795 * c-common.c (c_common_truthvalue_conversion): TRUTH_NOT_EXPR is a
6796 unary operator and can't be treated as a binary/comparison operator.
6797
b3a1ca49
RH
67982005-01-10 Richard Henderson <rth@redhat.com>
6799
6800 * config/i386/i386.c (ix86_function_value): Use type_natural_mode.
6801 (ix86_return_in_memory): Likewise.
6802 (function_arg_advance): Likewise. Mirror structure in function_arg
6803 for choosing register to advance.
6804
1618f948
KH
68052005-01-10 Kazu Hirata <kazu@cs.umass.edu>
6806
6807 * tree-vectorizer.c, tree.def: Fix comment typos.
6808
98fd0d70
MD
68092005-01-10 Mark Dettinger <dettinge@de.ibm.com>
6810
6811 * config/s390/s390.c (struct processor_costs): 4 new fields:
6812 ddbr, ddr, debr, der.
6813 (s390_rtx_costs): More precise handling of divide instructions.
6814
99757961
DE
68152005-01-10 David Edelsohn <edelsohn@gnu.org>
6816
6817 * config/rs6000/t-aix43 (BOOT_LDFLAGS): Define.
6818
826eb7ed
JB
68192005-01-10 Jan Beulich <jbeulich@novell.com>
6820
6821 * config/ia64/ia64.c (ia64_in_small_data_p): Also handle the section
6822 names resulting from -ffunction-sections/-fdata-sections and linkonce
6823 ones.
6824 * varasm.c (default_section_type_flags_1): Also set SECTION_SMALL
6825 based on the section name. Rearrange the section name comparison logic
6826 slightly so that each section name is compared against at most once.
6827
068d4f38
BE
68282005-01-10 Ben Elliston <bje@au.ibm.com>
6829
6830 * doc/invoke.texi (Code Gen Options): Add PowerPC to the list of
6831 targets for which -fPIC reduces limitations on the GOT size.
6832
351bae3d
FH
68332005-01-09 Falk Hueffner <falk@debian.org>
6834
6835 * fold-const.c (fold): Also handle EXACT_DIV_EXPR when folding
6836 X/C1 cmpop C2.
6837
7142ae77
DE
68382005-01-09 David Edelsohn <edelsohn@gnu.org>
6839
6840 PR target/18720
6841 * collect2.c (main): Set aixrtl_flag for -brtl option.
6842 (resolve_lib_name): Search for .so file extension before .a
6843 if aixrtl_flag set.
6844
5a3ed97a
DN
68452005-01-09 Dorit Naishlos <dorit@il.ibm.com>
6846
6847 * tree-vectorizer.c (vect_enhance_data_refs_alignment): Add dump prints.
6848 (vect_analyze_data_refs_alignment): Add dump prints.
6849
db5dc63d
IR
68502005-01-09 Ira Rosen <irar@il.ibm.com>
6851
fc474307 6852 * tree-vectorizer.c (vect_analyze_offset_expr): Use
db5dc63d
IR
6853 expr_invariant_in_loop_p.
6854 Initialize outputs first thing in the function.
6855 (vect_update_ivs_after_vectorizer): Call initial_condition_in_loop_num.
6856 (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num.
fc474307 6857 (vect_analyze_pointer_ref_access): Check that the initial condition of
db5dc63d
IR
6858 the access function is loop invariant.
6859
80e8bb90
RH
68602005-01-09 Richard Henderson <rth@redhat.com>
6861
6862 * config/i386/i386.c (bdesc_2arg): Update names for mmx_ prefixes.
6863 (ix86_expand_builtin): Likewise. Frob MASKMOVQ wrt the input mem
6864 just like MASKMOVDQU. Return plain zero for MMX_ZERO.
6865 * config/i386/i386.md (MMXMODEI, mov<MMXMODEI>,
6866 mov<MMXMODEI>_internal_rex64, mov<MMXMODEI>_internal, movv2sf,
6867 movv2sf_internal_rex64, movv2sf_internal, MMXMODE,
6868 movmisalign<MMXMODE>, mmx_pmovmskb, mmx_maskmovq, mmx_maskmovq_rex,
6869 sse_movntdi, addv8qi3, addv4hi3, addv2si3, mmx_adddi3, ssaddv8qi3,
6870 ssaddv4hi3, usaddv8qi3, usaddv4hi3, subv8qi3, subv4hi3, subv2si3,
6871 mmx_subdi3, sssubv8qi3, sssubv4hi3, ussubv8qi3, ussubv4hi3,
6872 mulv4hi3, smulv4hi3_highpart, umulv4hi3_highpart, mmx_pmaddwd,
6873 sse2_umulsidi3, mmx_iordi3, mmx_xordi3, mmx_anddi3, mmx_nanddi3,
6874 mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pinsrw,
6875 mmx_pextrw, mmx_pshufw, eqv8qi3, eqv4hi3, eqv2si3, gtv8qi3, gtv4hi3,
6876 gtv2si3, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, ashrv4hi3,
6877 ashrv2si3, lshrv4hi3, lshrv2si3, mmx_lshrdi3, ashlv4hi3, ashlv2si3,
6878 mmx_ashldi3, mmx_packsswb, mmx_packssdw, mmx_packuswb, mmx_punpckhbw,
fc474307 6879 mmx_punpckhwd, mmx_punpckhdq, mmx_punpcklbw, mmx_punpcklwd,
80e8bb90
RH
6880 mmx_punpckldq, emms, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3,
6881 eqv2sf3, pfmaxv2sf3, pfminv2sf3, mulv2sf3, femms, pf2id, pf2iw,
6882 pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pfrcpv2sf2, pfrcpit1v2sf3,
6883 pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3, pmulhrwv4hi3, pswapdv2si2,
6884 pswapdv2sf2): Move to mmx.md; rename as necessary with leading
6885 mmx_ prefix.
6886 (mmx_clrdi, pavgusb): Remove.
fc474307 6887 (ldmxcsr, stmxcsr, sfence, sfence_insn): Move to sse.md; rename
80e8bb90
RH
6888 with leading sse_ prefix.
6889 * config/i386/sse.md: Receive them.
6890 * config/i386/mmx.md: New file.
6891 (MMXMODE12, MMXMODE24, mmxvecsize): New.
6892 (subrv2sf3): Turn into expander for normal subtraction.
6893 (mmx_addv2sf3, mmx_mulv2sf3, mmx_smaxv2sf3, mmx_sminv2sf3,
6894 mmx_eqv2sf3, mmx_mulv4hi3, mmx_smulv4hi3_highpart,
6895 mmx_umulv4hi3_highpart, mmx_pmaddwd, mmx_pmulhrwv4hi3, sse2_umulsidi3,
6896 mmx_umaxv8qi3, mmx_smaxv4hi3, mmx_uminv8qi3, mmx_sminv4hi3): Mark
6897 commutative; use ix86_binary_operator_ok.
6898 (mmx_add<MMXMODEI>3, mmx_ssadd<MMXMODE12>3, mmx_usadd<MMXMODE12>3,
6899 mmx_sub<MMXMODEI>3, mmx_sssub<MMXMODE12>3, mmx_ussub<MMXMODE12>3
6900 mmx_ashr<MMXMODE24>3, mmx_lshr<MMXMODE23>3, mmx_ashl<MMXMODE24>3
fc474307 6901 mmx_eq<MMXMODEI>3, mmx_gt<MMXMODEI>3, mmx_and<MMXMODEI>3,
80e8bb90
RH
6902 mmx_nand<MMXMODEI>3, mmx_ior<MMXMODEI>3, mmx_xor<MMXMODEI>3):
6903 Macroize from existing patterns; use ix86_binary_operator_ok.
6904 (mmx_packsswb, mmx_packssdw, mmx_packuswb): Add memory alternative.
6905 (mmx_punpckhbw, mmx_punpcklbw, mmx_punpckhwd, mmx_punpcklwd,
6906 mmx_punpckhdq, mmx_punpckhdq, mmx_punpckldq): Likewise. Model
6907 with vec_select+vec_concat.
6908 (mmx_pshufw, mmx_pshufw_1): Likewise.
6909 (mmx_uavgv8qi3): Merge pavgusb. Model correcty.
6910 (mmx_uavgv4hi3): Model correctly.
6911 * config/i386/mmintrin.h (_mm_and_si64, _mm_andnot_si64, _mm_or_si64,
6912 _mm_xor_si64): Remove casts.
6913
eb0bc7af
ZD
69142005-01-09 Zdenek Dvorak <dvorakz@suse.cz>
6915
6916 PR tree-optimization/19224
6917 * tree-scalar-evolution.c (get_instantiated_value,
6918 set_instantiated_value): New functions.
6919 (instantiate_parameters_1): Cache the results.
6920 (instantiate_parameters, resolve_mixers): Initialize and free
6921 the cache.
6922
d1c9ce9f
DE
69232005-01-08 David Edelsohn <edelsohn@gnu.org>
6924
6925 * config/i386/i386.md (addhi_4): Correct reference in comment.
6926 (addqi_4): Same.
6927
ef719a44
RH
69282005-01-08 Richard Henderson <rth@redhat.com>
6929
6930 * config/i386/emmintrin.h (_mm_cvtsi128_si32): Move earlier.
6931 (_mm_cvtsi128_si64x): Likewise.
6932 (_mm_srl_epi64, _mm_srl_epi32, _mm_srl_epi16, _mm_sra_epi32,
6933 _mm_sra_epi16, _mm_sll_epi64, _mm_sll_epi32, _mm_sll_epi16): Use
6934 the _mm_{srl,sll}i_foo counterpart, and _mm_cvtsi128_si32.
6935 * config/i386/i386-modes.def: Add V16HI, V32QI, V4DF, V8SF.
6936 * config/i386/i386-protos.h: Update.
6937 * config/i386/i386.c (print_operand): Add 'H'.
6938 (ix86_fixup_binary_operands): Split out from ...
6939 (ix86_expand_binary_operator): ... here.
6940 (ix86_fixup_binary_operands_no_copy): New.
6941 (ix86_expand_fp_absneg_operator): Handle vector mode results.
6942 (bdesc_2arg): Update names for sse{,2,3}_ prefixes.
6943 (ix86_init_mmx_sse_builtins): Remove *maskncmp* special cases.
6944 (safe_vector_operand): Use CONST0_RTX.
6945 (ix86_expand_binop_builtin): Use ix86_fixup_binary_operands.
6946 (ix86_expand_builtin): Merge CODE_FOR_sse2_maskmovdqu_rex64 and
6947 CODE_FOR_sse2_maskmovdqu. Special case SSE version of MASKMOVDQU
6948 expansion. Update names for sse{,2,3}_ prefixes. Remove *maskncmp*
6949 special cases.
6950 * config/i386/i386.h (IX86_BUILTIN_CMPNGTSS): New.
6951 (IX86_BUILTIN_CMPNGESS): New.
6952 * config/i386/i386.md (UNSPEC_FIX_NOTRUNC): New.
6953 (attr type): Add sselog1.
6954 (attr unit, attr memory): Handle it.
6955 (movti, movti_internal, movti_rex64): Move near other integer moves.
6956 (movtf, movtf_internal): Move near other fp moves.
6957 (SSEMODE, SSEMODEI, vec_setv2df, vec_extractv2df, vec_initv2df,
6958 vec_setv4sf, vec_extractv4sf, vec_initv4sf, movv4sf, movv4sf_internal,
fc474307 6959 movv2df, movv2df_internal, mov<SSEMODEI>, mov<SSEMODEI>_internal,
ef719a44
RH
6960 movmisalign<SSEMODE>, sse_movups_1, sse_movmskps, sse_movntv4sf,
6961 sse_movhlps, sse_movlhps, sse_storehps, sse_loadhps, sse_storelps,
6962 sse_loadlps, sse_loadss, sse_loadss_1, sse_movss, sse_storess,
6963 sse_shufps, addv4sf3, vmaddv4sf3, subv4sf3, vmsubv4sf3, negv4sf2,
6964 mulv4sf3, vmmulv4sf3, divv4sf3, vmdivv4sf3, rcpv4sf2, vmrcpv4sf2,
6965 rsqrtv4sf2, vmrsqrtv4sf2, sqrtv4sf2, vmsqrtv4sf2, sse_andv4sf3,
fc474307
EC
6966 sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3, sse2_andv2df3,
6967 sse2_nandv2df3, sse2_iorv2df3, sse2_xorv2df3, sse2_andv2di3,
6968 sse2_nandv2di3, sse2_iorv2di3, sse2_xorv2di3, maskcmpv4sf3,
ef719a44
RH
6969 vmmaskcmpv4sf3, sse_comi, sse_ucomi, sse_unpckhps, sse_unpcklps,
6970 smaxv4sf3, vmsmaxv4sf3, sminv4sf3, vmsminv4sf3, cvtpi2ps, cvtps2pi,
6971 cvttps2pi, cvtsi2ss, cvtsi2ssq, cvtss2si, cvtss2siq, cvttss2si,
6972 cvttss2siq, addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3,
6973 vmmulv2df3, divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3,
6974 vmsminv2df3, sqrtv2df2, vmsqrtv2df2, maskcmpv2df3, vmmaskcmpv2df3,
6975 sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb, sse2_maskmovdqu,
6976 sse2_maskmovdqu_rex64, sse2_movntv2df, sse2_movntv2di, sse2_movntsi,
6977 cvtdq2ps, cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq,
6978 cvtpd2pi, cvttpd2pi, cvtpi2pd, cvtsd2si, cvtsd2siq, cvttsd2si,
6979 cvttsd2siq, cvtsi2sd, cvtsi2sdq, cvtsd2ss, cvtss2sd, cvtpd2ps,
6980 cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3, ssaddv16qi3,
6981 ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3, subv4si3,
6982 subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3, mulv8hi3,
6983 smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
6984 sse2_umulv2siv2di3, sse2_pmaddwd, sse2_uavgv16qi3, sse2_uavgv8hi3,
6985 sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd, sse2_pshuflw,
fc474307 6986 sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3, gtv8hi3,
ef719a44
RH
6987 gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3, ashrv8hi3,
6988 ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3, ashlv4si3,
6989 ashlv2di3, sse2_ashlti3, sse2_lshrti3, sse2_unpckhpd, sse2_unpcklpd,
fc474307 6990 sse2_packsswb, sse2_packssdw, sse2_packuswb, sse2_punpckhbw,
ef719a44
RH
6991 sse2_punpckhwd, sse2_punpckhdq, sse2_punpcklbw, sse2_punpcklwd,
6992 sse2_punpckldq, sse2_punpcklqdq, sse2_punpckhqdq, sse2_movupd,
fc474307 6993 sse2_movdqu, sse2_movdq2q, sse2_movdq2q_rex64, sse2_movq2dq,
ef719a44
RH
6994 sse2_movq2dq_rex64, sse2_loadd, sse2_stored, sse2_storehpd,
6995 sse2_loadhpd, sse2_storelpd, sse2_loadlpd, sse2_movsd, sse2_loadsd,
6996 sse2_loadsd_1, sse2_storesd, sse2_shufpd, sse2_clflush, sse2_mfence,
6997 mfence_insn, sse2_lfence, lfence_insn, mwait, monitor, addsubv4sf3,
6998 addsubv2df3, haddv4sf3, haddv2df3, hsubv4sf3, hsubv2df3, movshdup,
6999 movsldup, lddqu, loadddup, movddup): Move to sse.md. Any with
7000 non-optabs meanings renamed with an "sse{,2,3}_" prefix at the
7001 same time.
7002 (SSEPUSH, push<SSEPUSH>): Remove.
7003 (MMXPUSH, push<MMXPUSH>): Remove.
7004 (sse_movaps, sse_movaps_1, sse_movups): Remove.
7005 (sse2_movapd, sse2_movdqa, sse2_movq): Remove.
7006 (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Remove.
7007 (sse_clrv4sf, sse_clrv2df, sse2_clrti): Remove.
7008 (maskncmpv4sf3, vmmaskncmpv4sf3): Remove.
7009 (maskncmpv2df3, vmmaskncmpv2df3): Remove.
7010 (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti): Remove.
7011 (lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti): Remove.
7012 * config/i386/athlon.md (athlon_sselog_load): Handle sselog1.
7013 (athlon_sselog_load_k8, athlon_sselog, athlon_sselog_k8): Likewise.
7014 * config/i386/ppro.md (ppro_sse_div_V4SF_load): Fix memory attr.
7015 (ppro_sse_log_V4SF_load): Similarly. Handle sselog1.
7016 (ppro_sse_log_V4SF): Handle sselog1.
7017 * config/i386/predicates.md (const_0_to_1_operand): New.
7018 (const_0_to_255_mul_8_operand): New.
7019 (const_1_to_31_operand): Rename from const_int_1_31_operand.
7020 (const_2_to_3_operand, const_4_to_7_operand): New.
7021 * config/i386/sse.md: New file.
7022 (SSEMODE12, SSEMODE24, SSEMODE124, SSEMODE248, ssevecsize): New.
7023 (sse_movups): Rename from sse_movups_1.
7024 (sse_loadlss): Rename from sse_loadss_1.
7025 (andv4sf3, iorv4sf3, xorv4sf3, andv2df3): Remove the sse prefix
7026 from the name.
7027 (negv4sf2): Use ix86_expand_fp_absneg_operator.
7028 (absv4sf2, negv2df, absv2df): New.
7029 (addv4sf3): Add expander to call ix86_fixup_binary_operands_no_copy.
7030 (subv4sf3, mulv4sf3, divv4sf3, smaxv4sf3, sminv4sf3, andv4sf3,
7031 iorv4sf3, xorv4sf3, addv2df3, subv2df3, mulv2df3, divv2df3,
7032 smaxv2df3, sminv2df3, andv2df3, iorv2df3, xorv2df3, mulv8hi3,
7033 umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3): Likewise.
7034 (sse3_addsubv4sf3): Model correctly.
7035 sse3_haddv4sf3, sse3_hsubv4sf3, sse3_addsubv2df3, sse3_haddv2df3,
7036 sse3_hsubv2df3, sse2_ashlti3, sse2_lshrti3): Likewise.
7037 (sse_movhlps): Model with vec_select+vec_concat.
fc474307 7038 (sse_movlhps, sse_unpckhps, sse_unpcklps, sse3_movshdup,
ef719a44
RH
7039 sse3_movsldup, sse_shufps, sse_shufps_1, sse2_unpckhpd, sse3_movddup,
7040 sse2_unpcklpd, sse2_shufpd, sse2_shufpd_1, sse2_punpckhbw,
7041 sse2_punpcklbw, sse2_punpckhwd, sse2_punpcklwd, sse2_punpckhdq,
7042 sse2_punpckldq, sse2_punpckhqdq, sse2_punpcklqdq, sse2_pshufd,
fc474307 7043 sse2_pshufd_1, sse2_pshuflw, sse2_pshuflw_1, sse2_pshufhw,
ef719a44
RH
7044 sse2_pshufhw_1): Likewise.
7045 (neg<SSEMODEI>2, one_cmpl<SSEMODEI>2): New.
7046 (add<SSEMODEI>3, sse2_ssadd<SSEMODE12>3, sse2_usadd<SSEMODE12>3,
7047 sub<SSEMODEI>3, sse2_sssub<SSEMODE12>3, sse2_ussub<SSEMODE12>3,
7048 ashr<SSEMODE24>3, lshr<SSEMODE248>3, sse2_eq<SSEMODE124>3,
7049 sse2_gt<SSEMODDE124>3, and<SSEMODEI>3, sse_nand<SSEMODEI>3,
fc474307 7050 ior<SSEMODEI>3, xor<SSEMODEI>3): Macroize from existing patterns.
ef719a44
RH
7051 (addv4sf3, sse_vmaddv4sf3, mulv4sf3, sse_vmmulv4sf3, smaxv4sf3,
7052 sse_vmsmaxv4sf3, sminv4sf3, sse_vmsminv4sf3, addv2df3, sse2_vmaddv2df3,
7053 mulv2df3, sse2_vmmulv2df3, smaxv2df3, sse2_vmsmaxv2df3, sminv2df3,
7054 sse2_vmsminv2df3, umaxv16qi3, smaxv8hi3, uminv16qi3
7055 sminv8hi3): Mark commutative
7056 operands. Use ix86_binary_operator_ok.
7057 (sse_unpckhps, sse_unpcklps, sse2_packsswb, sse2_packssdw,
7058 sse2_packuswb, sse2_punpckhbw, sse2_punpcklbw, sse2_punpckhwd,
7059 sse2_punpcklwd, sse2_punpckhdq, sse2_punpckldq, sse2_punpckhqdq,
7060 sse2_punpcklqdq): Allow operand2 in memory.
7061 (sse_movhlps, sse_movlhps, sse2_unpckhpd, sse2_unpcklpd
7062 sse2_movsd): Add memory alternatives.
7063 (sse_storelps): Turn expander into an insn; split after reload.
7064 (sse_storess, sse2_loadhpd, sse2_loadlpd): Add non-xmm inputs.
7065 (sse2_storehpd, sse2_storelpd): Add non-xmm outputs.
7066
080a5bb0
EB
70672005-01-08 Eric Botcazou <ebotcazou@libertysurf.fr>
7068
7069 * configure.ac (DWARF-2 debug_line): Use objdump.
7070 * configure: Regenerate.
7071
e79b60a7
DN
70722005-01-08 Jeff Law <law@redhat.com>
7073 Diego Novillo <dnovillo@redhat.com>
7074
a6331d85 7075 PR tree-optimization/18241
e79b60a7
DN
7076 * tree-nrv.c (tree_nrv): Ignore volatile return values.
7077 * tree-ssa-dse.c (dse_optimize_stmt): Do not optimize
7078 statements with volatile operands.
7079 * tree-ssa-operands.c (add_stmt_operand): Do add volatile
7080 operands after marking a statement with has_volatile_ops.
7081
4634cf7e
RS
70822005-01-08 Roger Sayle <roger@eyesopen.com>
7083
7084 * tree.c (int_fits_type_p): Always honor integer constant
7085 TYPE_MIN_VALUE and TYPE_MAX_VALUE if they exist.
7086
88c0f1c6
RS
70872005-01-08 Roger Sayle <roger@eyesopen.com>
7088
7089 * ifcvt.c (find_if_case_1): Reinstate 2005-01-04 change, now that
7090 the latent bug in rtl_delete_block has been resolved.
7091
37e30acc
RS
70922005-01-08 Richard Sandiford <rsandifo@redhat.com>
7093
7094 * config/mips/t-iris6 (MULTILIB_DIRNAMES): Use -mabi argument values.
7095 (MULTILIB_OSDIRNAMES): Use the standard lib, lib32 and lib64.
7096
943cb1d0
RS
70972005-01-08 Richard Sandiford <rsandifo@redhat.com>
7098
7099 * config/mips/t-slibgcc-irix (SHLIB_LINK): Install a copy of the
7100 library as @multilib_dir@/$(SHLIB_SONAME).
7101
1b5c0152
EB
71022005-01-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7103
7104 * configure.ac (HAVE_AS_OFFSETABLE_LO10): Fix typo.
7105 * configure: Regenerate.
7106
b827788f
JJ
71072005-01-07 Jakub Jelinek <jakub@redhat.com>
7108
7109 * c-common.c (handle_mode_attribute): For ENUMERAL_TYPE, also copy
7110 TYPE_MODE.
7111
4937d02d
DE
71122005-01-07 David Edelsohn <edelsohn@gnu.org>
7113
7114 PR target/13674
7115 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
7116 Convert non-word aligned offset address using ld/std into
7117 indirect address.
7118
db396999
RH
71192005-01-07 Richard Henderson <rth@redhat.com>
7120
7121 * config/i386/i386.md (sse_loadhps splitter): Fix operand number typo.
7122
4600cc14
RS
71232005-01-07 Richard SAndiford <rsandifo@redhat.com>
7124
7125 * tree.h (IS_EXPR_CODE_CLASS): Use a straight-forward range check.
7126
8870e212
JJ
71272005-01-07 Jakub Jelinek <jakub@redhat.com>
7128
2a0958c5
JJ
7129 PR tree-optimization/19283
7130 * fold-const.c (fold_widened_comparison): Return NULL if shorter_type
7131 is not shorter than the original type.
7132
ebc0c8bb
JJ
7133 PR rtl-optimization/19012
7134 * config/i386/i386.md (addqi_1_slp): Set memory attribute.
7135
0210ae14
JJ
7136 PR rtl-optimization/18861
7137 * cfgbuild.c (BLOCK_USED_BY_TABLEJUMP): Define.
7138 (FULL_STATE): Define.
7139 (mark_tablejump_edge): New function.
7140 (purge_dead_tablejump_edges): New function.
7141 (find_bb_boundaries): Use it.
7142
8870e212
JJ
7143 PR tree-optimization/18828
7144 * builtins.c (expand_builtin_next_arg): Remove argument and all
7145 the argument checking.
7146 (expand_builtin): Adjust caller.
7147 (expand_builtin_va_start): Likewise. Remove error for too many
7148 arguments.
7149 (fold_builtin_next_arg): Issue error for too many arguments.
7150 After checking arguments, replace them with magic arguments that
7151 prevent further checking of the args.
7152
9fb29c46
JDA
71532005-01-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7154
7155 * pa64-hpux.h (STARTFILE_SPEC): Fix typo in spec.
7156
9a3bf943
RS
71572005-01-06 Roger Sayle <roger@eyesopen.com>
7158
7159 PR target/6077
7160 * gcc.c (input_suffix_matches): Tweak the semantics of %{.s:...}
7161 and %{.S:...} (and their negative variants) to test whether the
7162 input file is assembler or pre-processed-assembler independent of
7163 the actual filename extension.
7164
c79fc296
RS
71652005-01-06 Roger Sayle <roger@eyesopen.com>
7166
7167 * simplify-rtx.c (simplify_subreg): Simplify truncations of shifts
7168 of sign or zero extended values.
7169
59d7d767
GK
71702005-01-06 Geoffrey Keating <geoffk@apple.com>
7171
7172 * c-cppbuiltin.c (builtin_define_float_constants): Set __*_EPSILON__
7173 for IBM long double format correctly.
7174
1f24dd47 71752005-01-06 Daniel Berlin <dberlin@dberlin.org>
fc474307 7176
1f24dd47
DB
7177 Fix PR tree-optimization/18792
7178
7179 * tree-data-ref.c (build_classic_dist_vector): Change first_loop
7180 to first_loop_depth, and use loop depth instead of loop number.
7181 (build_classic_dir_vector): Ditto.
7182 (compute_data_dependences_for_loop): Use depth, not loop number.
fc474307 7183 * tree-loop-linear.c (try_interchange_loops): Use loop depth, not loop
1f24dd47
DB
7184 number. Pass in loops, instead of loop numbers.
7185 (gather_interchange_stats): Ditto.
7186 (linear_transform_loops): Ditto.
7187
27916b83
RS
71882005-01-06 Richard Sandiford <rsandifo@redhat.com>
7189
7190 PR rtl-opt/13299
7191 * loop.c (get_monotonic_increment, biased_biv_fits_mode_p,
7192 biv_fits_mode_p, extension_within_bounds_p): New functions.
7193 (check_ext_dependent_givs): Use them.
7194
4ab80063
RS
71952005-01-06 Roger Sayle <roger@eyesopen.com>
7196
7197 * cfgrtl.c (rtl_delete_block): A basic block may be followed by
7198 more than one barrier, in which case we should delete them all.
7199
12d3e34b
TS
72002005-01-06 Tobias Schlueter <tobias.schlueter@physik.uni-muenchen.de>
7201
7202 * gcc.c (process_command): Change year in 'gcc --version' to 2005.
7203
9acf766f 72042005-01-05 Daniel Berlin <dberlin@dberlin.org>
fc474307 7205
9acf766f
DB
7206 Fix PR middle-end/19286
7207 Fix PR debug/19267
7208 * dwarf2out.c (gen_subprogram_die): If we've already tried to
7209 output this subprogram, simply ignore this attempt to do it again.
7210 (add_abstract_origin_attribute): Don't abort trying to add the abstract
7211 origin attribute if it's not possible.
7212 (gen_block_die): Don't ignore subblocks of "unused" blocks.
7213 (decls_for_scope): Ditto.
7214 * gimple-low.c (mark_blocks_with_used_subblocks): Remove.
7215 (mark_used_blocks): Don't call mark_blocks_with_used_subblocks.
fc474307 7216
e358acde
RH
72172005-01-05 Richard Henderson <rth@redhat.com>
7218
7219 PR target/11327
7220 * config/i386/i386.c (BUILTIN_DESC_SWAP_OPERANDS): New.
7221 (bdesc_2arg): Use it.
7222 (ix86_expand_binop_builtin): Force operands into registers
7223 when optimizing.
7224 (ix86_expand_unop_builtin, ix86_expand_unop1_builtin,
fc474307 7225 ix86_expand_sse_compare, ix86_expand_sse_comi,
e358acde
RH
7226 ix86_expand_builtin): Likewise.
7227
051d8245
RH
72282005-01-05 Richard Henderson <rth@redhat.com>
7229
7230 * config/ia64/ia64.c (rtx_needs_barrier): Handle CONST_VECTOR
7231 and VEC_SELECT.
7232 * config/ia64/vect.md (mulv8qi3): Re-implement with mix_[rl].
7233 (mulv4hi3): Set itanium_class mmmul.
7234 (fpack_sfxf, fpack_xfsf, fpack_xfxf): Remove.
7235 (fpack): Rename from fpack_sfsf.
7236
19f17bb9
RH
72372005-01-05 Richard Henderson <rth@redhat.com>
7238
7239 PR rtl-opt/10692
7240 * reload1.c (do_input_reload): Restrict the optimization deleteing
7241 a previous output reload to RELOAD_FOR_INPUT.
7242
46d096a3
SB
72432005-01-05 Steven Bosscher <stevenb@suse.de>
7244
7245 * combine.c (expand_compound_operation) <ZERO_EXTRACT>: Add
7246 comment that we fall through after case.
7247 (mark_used_regs_combine): Don't expect a SIGN_EXTRACT in a SET_DEST.
7248 (distribute_links): Likewise.
7249 * cse.c (cse_insn): Likewise.
7250 * cselib.c (cselib_invalidate_mem): Likewise.
7251 * df.c: Update comments at the top of the file.
7252 (read_modify_subreg_p): Update comments here too.
7253 (df_def_record_1): Don't expect a SIGN_EXTRACT in a SET_DEST.
7254 * flow.c (mark_set_1): Likewise.
7255 (mark_used_regs): Likewise.
7256 * gcse.c (mems_conflict_for_gcse_p): Likewise.
7257 (canon_list_insert): Likewise.
7258 (mark_set): Likewise.
7259 (try_replace_reg): Likewise.
7260 (store_killed_in_insn): Likewise.
7261 * loop.c (count_one_set): Likewise.
7262 (basic_induction_var): Likewise.
7263 * postreload-gcse.c (find_mem_conflicts): Likewise.
7264 * postreload.c (reload_combine_note_store): Likewise.
7265 (move2add_note_store): Likewise.
7266 * reload.c (find_equiv_reg): Likewise.
7267 (mark_referenced_resources): Likewise.
7268 * rtlanal.c (set_noop_p): Likewise.
7269 (note_stores): Likewise.
7270 (note_uses): Likewise.
7271 * sched-deps.c (sched_analyze_1): Likewise.
7272 * sched-rgn.c (check_live_1): Likewise.
7273 (update_live_1): Likewise.
7274 * config/i860/i860.c: Likewise.
7275
7276 * rtl.dec (SIGN_EXTRACT): Document that this cannot appear as
7277 an lvalue.
7278 (ZERO_EXTRACT): Mention that this one can be an lvalue.
7279
7280 * doc/rtl.texi: Update documentation for bit-fields and SET.
7281
65a878f5
RS
72822005-01-05 Roger Sayle <roger@eyesopen.com>
7283
7284 * ifcvt.c (find_if_case_1): Revert 2005-01-04 change.
7285
d2ad2c8a
JH
72862005-01-05 Jan Hubicka <jh@suse.cz>
7287 Richard Henderson <rth@redhat.com>
7288
7289 PR target/18910
fc474307 7290 * config/i386/i386.c (ix86_expand_move): Handle tls symbols
d2ad2c8a
JH
7291 with an offset.
7292
2cdb3148
RH
72932005-01-05 Richard Henderson <rth@redhat.com>
7294
7295 PR target/12902
7296 * config/i386/i386.md (sse_movhps, sse_movlps): Remove.
7297 (sse_shufps): Change operand 3 to const_int_operand.
7298 (sse2_storelps): Fix typo in template.
7299 (sse_storehps, sse_loadhps, sse_storelps, sse_loadlps): New.
7300 * config/i386/i386.c (ix86_expand_vector_move_misalign): Use them.
7301 (ix86_expand_builtin): Likewise.
7302
73032005-01-05 Julian Brown <julian@codesourcery.com>
3dd7ab65
JB
7304
7305 * config/arm/arm.c (arm_return_in_memory): Treat complex types
7306 as aggregates for AAPCS ABIs.
7307
59d8fe27
SS
73082005-01-05 Stan Shebs <shebs@apple.com>
7309
7310 * unwind-dw2-fde-darwin.c (examine_objects): Use 64-bit
7311 Mach-O getters if ppc64.
7312 * config/darwin.c (darwin_asm_output_dwarf_delta): Obey
7313 size argument.
7314 * config/darwin.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7315 signed four-byte field for global code case.
7316 (STARTFILE_SPEC): Avoid crt2.o for 64-bit compilation.
7317
010c4d9c
RS
73182005-01-05 Roger Sayle <roger@eyesopen.com>
7319
7320 PR middle-end/19100
7321 * c-common.c: Include real.h.
7322 (c_common_truthvalue_conversion): Avoid destructively modifying expr.
7323 Correctly handle TREE_CONSTANT_OVERFLOW for INTEGER_CST.
7324 Correctly handle TREE_CONSTANT_OVERFLOW and NaNs for REAL_CST.
7325 * Makefile.in (c-common.o): Update dependencies.
7326
9368fb8f
JM
73272005-01-05 Joseph S. Myers <joseph@codesourcery.com>
7328
7329 * c-parse.in (asm_string): Add trailing semicolon.
7330
9143de5c
JM
73312005-01-05 Joseph S. Myers <joseph@codesourcery.com>
7332
7333 * c-parse.in (asm_string): New. Don't allow wide strings in
7334 'asm'.
7335 (simple_asm_expr, asm_argument, asm_operand, asm_clobbers): Use
7336 asm_string instead of STRING.
7337
0953878d
JM
73382005-01-05 Joseph S. Myers <joseph@codesourcery.com>
7339
7340 * c-typeck.c (constructor_no_implicit): Remove.
7341 (set_designator, process_init_element): Don't check
7342 constructor_no_implicit.
7343
cf99f196
R
73442005-01-05 J"orn Rennecke <joern.rennecke@st.com>
7345 Kaz Kojima <kkojima@gcc.gnu.org>
7346
7347 PR target/16482
7348 * lcm.c (create_pre_exit): New.
7349 (optimize_mode_switching): In MODE_ENTRY / MODE_EXIT case, set
7350 ENTRY_EXIT_EXTRA to 3. Use create_pre_exit.
7351
712ecf4d
RE
73522004-01-05 Richard Earnshaw <rearnsha@arm.com>
7353
7354 * arm.h (TARGET_OPTIONS): Correctly record -mhard-float and
7355 -msoft-float in target_float_switch.
7356 * arm.c (arm_override_options): Fix processing of target_float_switch.
7357
082cca25
RE
73582004-01-05 Richard Earnshaw <rearnsha@arm.com>
7359
7360 * arm/vfp.md (arm_movsi_vfp): Hide VFP register classes from register
7361 preferencing.
7362
c2b43d7a
UB
73632004-01-05 Uros Bizjak <uros@kss-loka.si>
7364
7365 * doc/invoke.texi (Intel 386 and AMD x86-64 Options):
ead553a1 7366 Replace i387 with 'i386 compiler' in -mfpmath=sse option.
c2b43d7a 7367
e82f5749
RS
73682005-01-04 Roger Sayle <roger@eyesopen.com>
7369
7370 * ifcvt.c (find_if_case_1): Avoid creating an empty forwarder block,
7371 if deleting the then-block allows the test-block to fallthru to the
7372 else-block.
7373
f8f5c4b3
AP
73742005-01-04 Andrew Pinski <pinskia@physics.uc.edu>
7375
7376 PR c/19152
7377 * c-decl.c (diagnose_mismatched_decls): Accept "extern inline" declared
7378 after the full declaration if the are in two different TUs.
7379
73802005-01-04 Richard Henderson <rth@redhat.com>
fa588429
RH
7381
7382 PR tree-opt/19158
7383 * tree-sra.c (generate_one_element_init): Just
7384 call gimplify_and_add.
7385 (generate_element_init): Record the
7386 new referenced variables and mark them for renaming
7387 and split out to ...
7388 (generate_element_init_1): This.
7389 (scalarize_init): Don't call push_gimplify_context/
7390 pop_gimplify_context.
7391
5f0c48ed
GK
73922005-01-04 Geoffrey Keating <geoffk@apple.com>
7393
7394 * toplev.c (get_src_pwd): Handle failure of getpwd().
7395
e3523f56
RS
73962005-01-04 Roger Sayle <roger@eyesopen.com>
7397
7398 * fold-const.c (fold_single_bit_test): Delete unreachable handling
7399 of TRUTH_NOT_EXPR.
7400 (fold): Don't call fold_single_bit_test with a TRUTH_NOT_EXPR, as
7401 all the cases handled by it are inverted by invert_truthvalue.
7402
9746bb27
EB
74032005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7404
7405 * config/sparc/sparc.md (save_register_windowdi): Add missing mode.
7406 (save_register_windowsi): Likewise.
7407
bfee926b
RH
74082005-01-04 Richard Henderson <rth@redhat.com>
7409
7410 * tree-mudflap.c (mf_varname_tree): Fix thinko setting declname.
7411
21e5076a
UB
74122005-01-04 Uros Bizjak <uros@kss-loka.si>
7413
7414 PR middle-end/17767
7415 * cse.c (fold_rtx) [RTX_COMPARE, RTX_COMM_COMPARE]: Don't attempt
7416 any simplifications of vector mode comparison operators.
7417 * simplify-rtx.c (simplify_relational_operation): Fix variable name.
7418
8ea9d0c7
PB
74192005-01-04 Paolo Bonzini <bonzini@gnu.org>
7420 Devang Patel <dpatel@apple.com>
7421
7422 PR tree-optimization/18308
8ea9d0c7
PB
7423 * tree-if-conv.c (add_to_dst_predicate_list): Gimplify
7424 the operands before creating a new expression.
7425 * dojump.c (do_jump): Make drop_through_label available
7426 for all cases. Add expansion of COND_EXPR.
7427
8c427b58
IR
74282005-01-04 Ira Rosen <irar@il.ibm.com>
7429
7430 * tree-vectorizer.c (vect_analyze_offset_expr): Test for
7431 INTEGER_CST instead of TREE_CONSTANT.
7432 (vect_gen_niters_for_prolog_loop): Test for INTEGER_CST
7433 instead of TREE_CONSTANT.
7434 (vect_analyze_pointer_ref_access): Test for INTEGER_CST
7435 instead of TREE_CONSTANT.
7436
8287d24a
EB
74372005-01-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7438
7439 * tree-eh.c (replace_goto_queue): Return early if the queue is empty.
7440
9e4ae64b
UB
74412005-01-04 Uros Bizjak <uros@kss-loka.si>
7442
7443 PR target/19240
7444 * config/i386/i386.md (*fop_df_1_i387): Disable for TARGET_SSE_MATH.
7445 (*fop_df_1_i387): Disable for (TARGET_SSE2 && TARGET_SSE_MATH).
7446
c756af79
RH
74472005-01-03 Richard Henderson <rth@redhat.com>
7448
7449 * fold-const.c (force_fit_type): Cope with types larger than 2 HWI.
7450 (fold_convert_const_int_from_int, fold_convert_const_int_from_real,
7451 fold_convert_const_real_from_real): Split out from ...
7452 (fold_convert_const): ... here.
7453
d30c9461
RH
74542005-01-03 Richard Henderson <rth@redhat.com>
7455
7456 PR target/19235
7457 * config/i386/i386.md (movdi_2): Separate SSE1 and SSE2 alternatives.
7458 (mov<MMXMODEI>_internal): Likewise.
7459 (movdf_nointeger): Prefer Y while not preferring, but allowing, x.
7460 Add V2SF case; use it for SSE1; don't use TI.
7461 (movdf_integer): Likewise.
7462 (mov<SSEMODEI>_internal, movti_internal): Force V4SF for SSE1.
7463
7d23434b
IR
74642005-01-03 Ira Rosen <irar@il.ibm.com>
7465
7466 * tree-vectorizer.c (vect_strip_conversions): New function.
7467 (vect_analyze_offset_expr): Call vect_strip_conversions. Add
fc474307 7468 check for binary class.
7d23434b 7469
1eb3331e
DB
74702005-01-03 Daniel Berlin <dberlin@dberlin.org>
7471
7472 Fix PR debug/17924
7473 Fix PR debug/19191
7474 * dwarf2out.c (block_ultimate_origin): Follow decl origin if origin
7475 is a decl.
7476 * gimple-low.c (mark_blocks_with_used_vars): New function.
7477 (mark_blocks_with_used_subblocks): Ditto.
7478 (mark_used_blocks): Ditto.
7479 (pass_mark_used_blocks): New pass.
7480 * tree-inline.c: Include debug.h.
7481 (expand_call_inline): Call outlining_inline_function here.
7482 * tree-optimize.c (init_tree_optimization_passes): Add
fc474307 7483 pass_mark_used_blocks.
1eb3331e
DB
7484 * tree-pass.h (pass_mark_used_blocks): New.
7485 * Makefile.in (tree-inline.o): Add debug.h dependency.
7486
a035080c
GK
74872005-01-03 Geoffrey Keating <geoffk@apple.com>
7488
d7001ae5
GK
7489 * config/darwin.c (darwin_handle_weak_import_attribute): Permit
7490 VAR_DECLs to have weak_import attribute.
7491
a035080c
GK
7492 * config/rs6000/darwin-fallback.c: Use 'ucontext_t' rather than
7493 'struct ucontext'.
7494
1ab219d3
SB
74952004-01-03 Steven Bosscher <stevenb@suse.de>
7496
7497 * passes.c (rest_of_compilation): Don't run regmove if only
7498 flag_expensive_optimizations, require flag_regmove instead.
7499
e6abef61
EB
75002005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7501
7502 * config/sparc/litecoff.h (TARGET_OS_CPP_BUILTINS): Do not
7503 register "sparc".
7504 * config/sparc/sysv4-only.h (TARGET_OS_CPP_BUILTINS): Likewise.
7505 * config/sparc/rtemself.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
7506 * config/sparc/sol2-64.h (TARGET_SUB_OS_CPP_BUILTINS): Delete.
7507 * config/sparc/sp64-elf.h (TARGET_SUB_OS_CPP_BUILTINS): Likewise.
7508
f61134e8
RH
75092005-01-03 Richard Henderson <rth@redhat.com>
7510
7511 * config/ia64/ia64.c (TARGET_VECTOR_MODE_SUPPORTED_P): New.
7512 (ia64_const_ok_for_letter_p): New.
7513 (ia64_const_double_ok_for_letter_p): New.
7514 (ia64_extra_constraint): New.
7515 (ia64_expand_vecint_compare): New.
7516 (ia64_expand_vcondu_v2si): New.
7517 (ia64_expand_vecint_cmov): New.
7518 (ia64_expand_vecint_minmax): New.
7519 (ia64_print_operand): Add 'v'.
7520 (ia64_preferred_reload_class): New.
7521 (ia64_vector_mode_supported_p): New.
7522 * config/ia64/ia64.h (UNITS_PER_SIMD_WORD): New.
7523 (PREFERRED_RELOAD_CLASS): Move to function.
7524 (CONST_OK_FOR_LETTER_P): Move to function.
7525 (CONST_DOUBLE_OK_FOR_LETTER_P): Move to function.
7526 (CONSTRAINT_OK_FOR_Q, CONSTRAINT_OK_FOR_R): Remove.
7527 (CONSTRAINT_OK_FOR_S, CONSTRAINT_OK_FOR_T): Remove.
7528 (EXTRA_CONSTRAINT): Move to function.
7529 * config/ia64/ia64.md: Include vect.md.
7530 (itanium_class): Add mmalua.
7531 (type): Handle it.
7532 * config/ia64/itanium1.md (1_mmalua): New. Add it to bypasses.
7533 (1b_mmalua): New.
7534 * config/ia64/itanium2.md (2_mmalua, 2b_mmalua): Similarly.
7535 * config/ia64/predicates.md (gr_reg_or_0_operand): Accept any
7536 CONST0_RTX.
7537 (const_int_2bit_operand): New.
7538 (fr_reg_or_0_operand): New.
7539 * config/ia64/ia64-modes.def: Add vector modes.
7540 * config/ia64/ia64-protos.h: Update.
7541 * config/ia64/vect.md: New file.
7542
3198b947
RH
75432005-01-03 Richard Henderson <rth@redhat.com>
7544
7545 * simplify-rtx.c (simplify_binary_operation): Handle VEC_CONCAT.
7546
088df4c2
UB
75472005-01-03 Uros Bizjak <uros@kss-loka.si>
7548
7549 PR target/19236
7550 * config/i386/i386.c (log1psf2): Change mode of operands[0,1]
7551 to SFmode.
7552 (log1pdf2): Change mode of operands[0,1] to DFmode.
7553
548a6c4f
EB
75542005-01-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7555
7556 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Define to false.
7557 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Define to true.
7558 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
7559 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Define to
7560 SPARC_RELAXED_ORDERING.
7561
0703dceb
RH
75622005-01-03 Richard Henderson <rth@redhat.com>
7563 Uros Bizjak <uros@kss-loka.si>
7564
7565 PR target/14631
7566 * config/i386/i386.c (ix86_expand_builtin): [IX86_BUILTIN_PINSRW,
7567 IX86_BUILTIN_PINSRW128]: Fix wrong selector range in error message.
7568 * config/i386/i386.md (mmx_pinsrw, sse2_pinsrw): Fix selector
7569 handling.
7570 (*mmx_pinsrw, *sse2_pinsrw): New patterns.
7571 * config/i386/i386/predicates.md (const_pow2_1_to_8_operand,
7572 const_pow2_1_to_128_operand): New predicates.
7573
97236777
GM
75742005-01-02 Greg McGary <greg@mcgary.org>
7575
7576 * tree-mudflap.c (mf_varname_tree): decl_printable_name handles
7577 anonymous decls.
7578 (mf_xform_derefs_1) [RESULT_DECL, STRING_CST]: Handle as innermost
7579 object. [ptr_type]: Remove unused variable.
7580 Remember nearest addressable array-element or record-component
7581 when checking bitfield components. Tolerate empty BIND_EXPR.
7582
155a8213
RH
75832005-01-01 Richard Henderson <rth@redhat.com>
7584
7585 * tree-vectorizer.c (vect_analyze_offset_expr): Strip conversions
7586 that don't narrow the value. Fail for other conversions.
7587
bedb9fc0
RH
75882005-01-01 Richard Henderson <rth@redhat.com>
7589
7590 PR c/19031
7591 * c-decl.c (pop_file_scope): Call maybe_apply_pending_pragma_weaks.
7592 * c-lang.c (finish_file): Don't do it here.
7593 * objc/objc-act.c (objc_finish_file): Likewise.
7594
7595 * cgraph.c (decl_assembler_name_equal): New.
7596 (cgraph_node_for_asm, cgraph_varpool_node_for_asm): New.
7597 (cgraph_varpool_node): Actually link up cgraph_varpool_nodes.
7598 * cgraph.h (struct cgraph_varpool_node): Add next.
7599 (cgraph_node_for_asm, cgraph_varpool_node_for_asm): Declare.
7600 * varasm.c (assemble_alias): Mark the target as needed.
7601
1cb2fc7b
AP
76022005-01-01 Andrew Pinski <pinskia@physics.uc.edu>
7603
7604 PR middle-end/19221
7605 * function.c (get_arg_pointer_save_area): Use entry_of_function
7606 instead of get_insns.
7607
0ca5fbc0
RS
76082005-01-01 Roger Sayle <roger@eyesopen.com>
7609 Andrew Pinski <pinskia@physics.uc.edu>
7610 James E. Wilson <wilson@specifixinc.com>
7611
7612 PR rtl-optimization/12092
7613 * loop.c (emit_prefetch_instructions): Do nothing if PREFETCH_BLOCK
7614 is zero.
7615
91c537b7
RS
76162005-01-01 Roger Sayle <roger@eyesopen.com>
7617 Olivier Hainque <hainque@act-europe.fr>
7618
7619 * tree.c (int_fits_type_p): A narrower type always fits in a
7620 wider one, except for negative values into unsigned types.
7621
69618c49
RS
76222005-01-01 Roger Sayle <roger@eyesopen.com>
7623
7624 * tree.c (int_fits_type_p): Compare the result of force_fit_type
7625 with the original constant rather than require TREE_OVERFLOW.
7626
43e05e45
SB
76272005-01-01 Steven Bosscher <stevenb@suse.de>
7628
7629 PR middle-end/17544
7630 * c-decl.c (finish_function): If compiling C99, annotate the
7631 compiler generated return with the current file name and line 0.
7632 * tree-cfg.c (remove_useless_stmts_warn_notreached): Only warn if
7633 the source line is greater than 0.
7634 (remove_bb): Likewise.
7635
7a4515d7 7636See ChangeLog.12 for earlier changes.
This page took 0.932317 seconds and 5 git commands to generate.