]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR middle-end/45098 (Missed induction variable optimization)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
29cedf8e
RS
12011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
2
3 * config/mips/mips.h (SUBTARGET_ASM_OPTIMIZING_SPEC): Delete.
4 (ASM_SPEC): Add a -O* option here. Pass -O0 for -noasmopt,
5 -O1 for -fno-delayed-branch, -O2 if optimization is enabled,
6 and -O0 otherwise.
7 (EXTRA_SPECS): Remove subtarget_asm_optimizing_spec.
8
afe8b6ec
EB
92011-05-22 Eric Botcazou <ebotcazou@adacore.com>
10
11 * cfgcleanup.c (try_forward_edges): Do not update BB_FORWARDER_BLOCK.
12 (try_optimize_cfg): Update BB_FORWARDER_BLOCK if try_forward_edges
13 returns true.
14
872dab53
RS
152011-05-22 Richard Sandiford <rdsandiford@googlemail.com>
16
17 * config/mips/mips.c (mips_default_arch): Honor MIPS_ISA_DEFAULT.
18
145f6c5b
EB
192011-05-22 Eric Botcazou <ebotcazou@adacore.com>
20
21 * config/sparc/sparc.c (sparc_delegitimize_address): Handle
22 UNSPEC_MOVE_PIC pattern.
23
8ac79835
EB
242011-05-22 Eric Botcazou <ebotcazou@adacore.com>
25
26 * config.gcc (sparc-*-elf*): Add sparc/t-crtin.
27 (sparc-*-rtems*): Likewise.
28 (sparc64-*-elf*): Likewise.
29 (sparc64-*-rtems*): Likewise.
30 (sparc*-*-solaris2*): Likewise. Remove crti.o crtn.o extra parts.
31 * config/sparc/t-crtin: New file.
32 * config/sparc/t-sol2 (crti.o): Delete rule.
33 (crtn.o): Likewise.
34 * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Delete.
35 * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Likewise.
36 * config/sparc/sp64-elf.h (STARTFILE_SPEC): Tidy and add crti.o.
37 (ENDFILE_SPEC): Add crtn.o.
38
5fb43dd8
TV
392011-05-22 Tom de Vries <tom@codesourcery.com>
40
41 PR middle-end/48689
42 * fold-const.c (fold_checksum_tree): Guard TREE_CHAIN use with
43 CODE_CONTAINS_STRUCT (TS_COMMON).
44
ccb1b17b
JJ
452011-05-22 Jakub Jelinek <jakub@redhat.com>
46
47 PR middle-end/49029
48 * expmed.c (extract_fixed_bit_field): Test whether target can be used
49 only after deciding which mode to use.
50
50ad7db2
TV
512011-05-22 Tom de Vries <tom@codesourcery.com>
52
53 PR target/45098
dc0a3366 54 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Fix const test
50ad7db2
TV
55 for call to get_shiftadd_cost.
56
ef230b38
UB
572011-05-22 Uros Bizjak <ubizjak@gmail.com>
58
59 PR target/49104
60 * config/i386/cpuid.h (bit_MMXEXT): New define.
61
15f072f9
NC
622011-05-22 Nick Clifton <nickc@redhat.com>
63
64 * config/stormy16/stormy16.c (xstormy16_init_builtins): prevent
65 initialisation of non-existant args[2] element. Use args[] array
66 not arg[] array to pass arguments to build_function_type_list.
67
e38fdc94
IR
682011-05-22 Ira Rosen <ira.rosen@linaro.org>
69
70 PR tree-optimization/49087
ef230b38 71 * tree-vect-loop.c (vect_is_slp_reduction): Fail if LHS has no uses.
e38fdc94 72
5b018c65
JM
732011-05-21 Jason Merrill <jason@redhat.com>
74
75 PR c++/49092
76 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Check for
77 static storage duration.
78
abd9a770
EB
792011-05-21 Eric Botcazou <ebotcazou@adacore.com>
80
81 * config/sparc/sparc.md (setjmp): Handle PIC mode and use the hard
82 frame pointer.
83
bd9a3248
EB
842011-05-21 Eric Botcazou <ebotcazou@adacore.com>
85
86 * config/sparc/sparc.c (eligible_for_return_delay): Do not return
87 false if there are call-saved registers here...
88 (sparc_can_use_return_insn_p): ...but here instead.
89 (save_or_restore_regs): Fix thinko.
90 (sparc_expand_prologue): Use current_function_is_leaf.
91 (sparc_frame_pointer_required): Likewise.
92
a5dfec9a
NC
932011-05-21 Nick Clifton <nickc@redhat.com>
94
95 PR target/49098
96 * config/rx/rx.c (rx_memory_move_cost): Note unused parameters.
97
555c3771
NP
982011-05-21 Nicola Pero <nicola.pero@meta-innovation.com>
99
100 * gengtype.c (walk_type): Implemented "atomic" GTY option.
101 * doc/gty.texi (GTY Options): Document "atomic" GTY option.
102
86fa5de4
JM
1032011-05-21 Joseph Myers <joseph@codesourcery.com>
104
105 * opt-read.awk: New. Split out of optc-gen.awk and opth-gen.awk.
106 * optc-gen.awk: Move common code to opt-read.awk.
107 * opth-gen.awk: Likewise.
ef230b38 108 * Makefile.in (options.c, s-options-h): Update to use opt-read.awk.
86fa5de4 109
bce33ab2
NF
1102011-05-20 Nathan Froyd <froydnj@codesourcery.com>
111
112 * godump.c (go_format_type): Don't use TYPE_ARG_TYPES.
113
e6450c11
TV
1142011-05-20 Tom de Vries <tom@codesourcery.com>
115
116 PR target/45098
117 * tree-ssa-loop-ivopts.c: Include expmed.h.
118 (get_shiftadd_cost): New function.
119 (force_expr_to_var_cost): Declare forward. Use get_shiftadd_cost.
120
0e8b84ec
JJ
1212011-05-20 Jakub Jelinek <jakub@redhat.com>
122
123 PR bootstrap/49086
124 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL
125 for PHI args that are SSA_NAME_IS_DEFAULT_DEF.
126
946bdf67
JM
1272011-05-20 Joseph Myers <joseph@codesourcery.com>
128
129 * Makefile.in: Update comment referring to $(OBJS-common).
130
c53aafdf
ILT
1312011-05-20 Ian Lance Taylor <iant@google.com>
132
133 * godump.c (go_output_typedef): Put enum constants in the macro
134 hash table to avoid duplicate Go const definitions.
135
2691e6d7
JM
1362011-05-20 Joseph Myers <joseph@codesourcery.com>
137
138 * Makefile.in (LIBDEPS): Add libcommon.a.
139 (LIBS): Likewise.
140 (GCC_OBJS): Remove diagnostic.o, pretty-print.o and input.o.
141 (OBJS-common): Remove diagnostic.o, input.o, intl.o,
142 pretty-print.o and version.o.
143 (OBJS-libcommon): New.
144 (ALL_HOST_BACKEND_OBJS): Add $(OBJS-libcommon).
145 (BACKEND): Add libcommon.a.
146 (MOSTLYCLEANFILES): Likewise.
147 (libcommon.a): New.
148 (xgcc$(exeext)): Don't explicitly use version.o and intl.o.
149 (cpp$(exeext)): Likewise.
150 (COLLECT2_OBJS): Remove intl.o, version.o, diagnostic.o,
151 pretty-print.o and input.o.
152 (lto-wrapper$(exeext)): Don't explicitly use intl.o.
153 (lto-wrapper.o): Depend on $(DIAGNOSTIC_H).
154 (errors.o): Remove.
155 (mips-tfile): Don't explicitly use version.o.
156 (mips-tdump): Likewise.
157 (gcov.o): Depend on $(DIAGNOSTIC_H).
158 (gcov-dump.o): Depend on intl.h and $(DIAGNOSTIC_H).
159 (GCOV_OBJS): Remove intl.o, version.o and errors.o.
160 (GCOV_DUMP_OBJS): Remove version.o and errors.o.
161 * gcov-dump.c: Include intl.h and diagnostic.h.
162 (main): Initialize diagnostics.
163 * gcov.c: Include diagnostic.h.
164 (fnotice): Remove.
165 (main): Initialize diagnostics.
166 * lto-wrapper.c: Include diagnostic.h.
167 (main): Initialize diagnostics.
168
252b3e8c
MM
1692011-05-20 Michael Matz <matz@suse.de>
170
171 * Makefile.in (OBJS-common, OBJS-md, OBJS-archive): Merge into OBJS.
172
2ee36ba6
MM
1732011-05-20 Michael Matz <matz@suse.de>
174 Richard Guenther <rguenther@suse.de>
175
176 * lto-streamer.c (lto_record_common_node): Don't track seen nodes,
177 use lto_streamer_cache_append directly instead of returning a VEC.
178 (preload_common_node): Remove.
179 (lto_get_common_nodes): Rename to lto_preload_common_nodes, don't
180 track seen nodes.
181 (lto_streamer_cache_create): Call lto_preload_common_nodes.
182
90ff582f
RG
1832011-05-20 Richard Guenther <rguenther@suse.de>
184
185 PR tree-optimization/49079
186 * tree-dfa.c (get_ref_base_and_extent): Handle view-converting
187 MEM_REFs correctly for the trailing array access detection.
188 Special case constants the same way as decls for overall size
189 constraining.
190
3cda91d8
UB
1912011-05-20 Uros Bizjak <ubizjak@gmail.com>
192
193 * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Fix macro
194 argument expansion.
195
6c66f733
JJ
1962011-05-20 Jakub Jelinek <jakub@redhat.com>
197
198 PR tree-optimization/49073
3cda91d8
UB
199 * gimple-fold.c (and_comparisons_1, or_comparisons_1): Return NULL if
200 PHI argument is SSA_NAME, whose def_stmt is dominated by the PHI.
6c66f733
JJ
201 * tree-ssa-ifcombine.c (tree_ssa_ifcombine): Calculate dominators.
202
0ea80a16
RG
2032011-05-20 Richard Guenther <rguenther@suse.de>
204
205 PR middle-end/48849
206 * gimple.c (gimple_register_canonical_type): Compute TYPE_CANONICAL
207 of pointer types the same way the middle-end does.
208
fb291a1e
RG
2092011-05-20 Richard Guenther <rguenther@suse.de>
210
3cda91d8
UB
211 * gimple.c (gimple_register_type_1): Do not fiddle with main-variant
212 or pointer-to chains. Delay all fixup to uniquify_nodes.
fb291a1e 213
37cb25ed
QN
2142011-05-19 Quentin Neill <quentin.neill@amd.com>
215
216 * config/i386/sse.md (fma4_fmsubadd): Use <ssemodesuffix>.
217 (fma4_fmaddsub): Likewise
218
a30726a4
JH
2192011-05-19 Jan Hubicka <jh@suse.cz>
220
221 * gimple.c (gtc_visited, gtc_ob, type_pair_hash, type_pair_eq): Remove.
222 (GIMPLE_TYPE_PAIR_SIZE): New macro.
223 (type_pair_cache): New static var.
224 (lookup_type_pair): Use fixed sized custom hash; make inline.
225 (gtc_visit, gimple_types_compatible_p, gimple_register_type_1): Update
226 calls of lookup_type_pair.
227 (print_gimple_types_stats): Remove cache stats.
228 (free_gimple_type_tables): Free type_pair_cache instead of gtc_visited
229 and gtc_ob.
230
0955cf61
UB
2312011-05-19 Uros Bizjak <ubizjak@gmail.com>
232
233 * config/i386/i386.c (option_override_internal): Enable TARGET_CMOVE
234 when TARGET_RDRND is active.
235 (ix86_expand_builtin) <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>:
236 Generate dummy SImode target register when target is NULL.
237
12d844c8
JM
2382011-05-19 Joseph Myers <joseph@codesourcery.com>
239
240 * config/arm/arm-fpus.def: New.
241 * config/arm/genopt.sh: Generate Enum and EnumValue entries from
242 arm-fpus.def.
243 * config/arm/arm-tables.opt: Regenerate.
244 * config/arm/arm.c (all_fpus): Move contents to arm-fpus.def.
245 (arm_option_override): Don't decode FPU name to string here.
246 * config/arm/arm.opt (mfpu=): Use Enum.
247 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt, arm.o):
248 Update dependencies.
249
9e350e99
JM
2502011-05-19 Joseph Myers <joseph@codesourcery.com>
251
252 * collect2.c: Include diagnostic.h.
253 (fatal_perror, fatal, error, fancy_abort): Remove.
254 (main): Set progname. Call xmalloc_set_program_name and
255 diagnostic_initialize.
256 (maybe_run_lto_and_relink, main, collect_execute, scan_prog_file,
257 scan_libraries, resolve_lib_name): Call fatal_error instead of
258 fatal and fatal_perror.
259 * collect2.h (error, fatal, fatal_perror): Don't declare.
260 * tlink.c: Include diagnostic-core.h.
261 (recompile_files): Call fatal_error instead of fatal_perror.
262 * Makefile.in (COLLECT2_OBJS): Include diagnostic.o,
263 pretty-print.o and input.o.
264 (collect2.o, tlink.o): Update dependencies.
265
86ff4081
RO
2662011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
267
268 * config/i386/i386.md (tls_initial_exec_64_sun): Add semicolon.
269
2ca48caa
RO
2702011-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
271
272 PR target/40483
273 * configure.ac (gcc_cv_as_comdat_group_group): Check for Sun as
274 COMDAT group syntax, both SPARC and x86 variants.
275 (HAVE_COMDAT_GROUP): Also define if gcc_cv_as_comdat_group_group.
276 * configure: Regenerate.
277 * config/sol2.h (TARGET_SOLARIS): Define.
278 (PUSHSECTION_FORMAT): Remove.
279 (SECTION_NAME_FORMAT): Define.
280 * config/sol2.c: Include hashtab.h.
281 (solaris_output_init_fini): Replace PUSHSECTION_FORMAT by its
282 expansion, using SECTION_NAME_FORMAT.
283 (solaris_comdat_htab): New variable.
284 (struct comdat_entry): Define.
285 (comdat_hash): New function.
286 (comdat_eq): New function.
287 (solaris_elf_asm_comdat_section): New function.
288 (solaris_define_comdat_signature): New function.
289 (solaris_code_end): New function.
290 * config/sol2-protos.h (solaris_elf_asm_comdat_section): Declare.
291 (solaris_code_end): Declare.
292 * config/t-sol2 (sol2.o): Add $HASHTAB_H dependency.
293 * config/i386/i386.c (ix86_code_end) [TARGET_SOLARIS]: Call
294 solaris_code_end.
295 (i386_solaris_elf_named_section): Wrap in TARGET_SOLARIS.
296 Remove ATTRIBUTE_UNUSED.
297 [!USE_GAS]: Call solaris_elf_asm_comdat_section for
298 SECTION_LINKONCE sections if HAVE_COMDAT_GROUP.
0955cf61 299 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Likewise.
2ca48caa
RO
300 * config/i386/sol2-10.h (TARGET_ASM_NAMED_SECTION): Moved ...
301 * config/i386/sol2.h (TARGET_ASM_NAMED_SECTION): ... here.
302 * config/sparc/sol2.h (TARGET_ASM_CODE_END): Redefine.
303 (PUSHSECTION_FORMAT): Remove.
304 (SECTION_NAME_FORMAT): Redefine.
305
da5fb469
KT
3062011-05-19 Kai Tietz <ktietz@redhat.com>
307
308 * tree-cfg.c (verify_gimple_assign_binary): Barf on
309 TRUTH_AND_EXPR, TRUTH_OR_EXPR, and TRUTH_XOR_EXPR.
310 (gimplify_expr): Move TRUTH_AND|OR|XOR_EXPR to its binary form.
311
0967b228
AS
3122011-05-19 Anatoly Sokolov <aesok@post.ru>
313 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
314
315 * config/t-sol2 (sol2.o): Add $(TARGET_H) dependency.
316
e497b9bd
RG
3172011-05-19 Richard Guenther <rguenther@suse.de>
318
319 PR middle-end/48985
320 * tree-object-size.c (addr_object_size): If the pointed-to
321 variable is a decl use DECL_SIZE_UNIT instead of TYPE_SIZE_UNIT.
322
31b3ca64
RG
3232011-05-19 Richard Guenther <rguenther@suse.de>
324
325 * gimple.c (gimple_types_compatible_p_1): Compare names of
326 the types themselves.
327 (iterative_hash_gimple_type): And hash them that way.
328 (gimple_register_type_1): If we register a main variant properly
329 initialize the leader to ourselves.
330
bb8d292d
TV
3312011-05-19 Tom de Vries <tom@codesourcery.com>
332
333 PR target/45098
334 * tree-ssa-loop-ivopts.c (get_expr_id): Factored new function out of
335 get_loop_invariant_expr_id.
336 (get_loop_invariant_expr_id): Use get_expr_id.
337 (parm_decl_cost): New function.
338 (determine_use_iv_cost_condition): Use get_expr_id and parm_decl_cost.
339 Improve bound cost estimation. Use different inv_expr_id for elim and
340 express cases.
341
a53c5024
TV
3422011-05-19 Tom de Vries <tom@codesourcery.com>
343
344 PR target/45098
345 * tree-ssa-loop-ivopts.c (determine_iv_cost): Prevent
346 cost_base.cost == 0.
347
31f9eb59
L
3482011-05-18 H.J. Lu <hongjiu.lu@intel.com>
349
350 PR target/49002
351 * config/i386/sse.md (avx_<ssemodesuffix><avxsizesuffix>_<ssemodesuffix>):
352 Properly handle load cast.
353
681056ae
JJ
3542011-05-18 Jakub Jelinek <jakub@redhat.com>
355
356 PR tree-optimization/49039
357 * tree-vrp.c (extract_range_from_binary_expr): For
358 MIN_EXPR <~[a, b], ~[c, d]> and MAX_EXPR <~[a, b], ~[c, d]>
359 return ~[MAX_EXPR <a, c>, MIN_EXPR <b, d>].
360
b5ee6752
TV
3612011-05-18 Tom de Vries <tom@codesourcery.com>
362
363 PR target/45098
364 * tree-ssa-loop-ivopts.c (computation_cost): Prevent cost of 0.
365
0bda47a3
UB
3662011-05-18 Uros Bizjak <ubizjak@gmail.com>
367
368 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Split asm template.
369 (*tls_global_dynamic_64): Ditto.
370 (*tls_local_dynamic_base_32_gnu): Ditto.
371 (*tls_local_dynamic_base_64): Ditto.
372 (tls_initial_exec_64_sun): Ditto.
373
033b0805
SH
3742011-05-18 Stuart Henderson <shenders@gcc.gnu.org>
375
376 * doc/invoke.texi (Blackfin Options): -mcpu accepts bf592.
377 * config/bfin/t-bfin-elf (MULTILIB_MATCHES): Select bf532-none for
378 bf592-none.
379 * config/bfin/t-bfin-linux (MULTILIB_MATCHES): Likewise.
380 * config/bfin/t-bfin-uclinux (MULTILIB_MATCHES): Likewise.
381 * config/bfin/bfin.c (bfin_cpus): Add bf592.
382 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
0bda47a3 383 __ADSPBF592__ and __ADSPBF59x__ for BFIN_CPU_BF592.
033b0805
SH
384 * config/bfin/bfin-opts.h (bfin_cpu_type): Add BFIN_CPU_BF592.
385 * config/bfin/elf.h (LIB_SPEC): Add bf592.
386
ba163417
JM
3872011-05-18 Joseph Myers <joseph@codesourcery.com>
388
389 * config/arm/arm-opts.h (enum arm_fp16_format_type, enum
0bda47a3 390 arm_abi_type, enum float_abi_type, enum arm_tp_type): Move from arm.h.
ba163417
JM
391 * config/arm/arm.c (arm_float_abi, arm_fp16_format, arm_abi,
392 target_thread_pointer, arm_structure_size_boundary, struct
393 float_abi, all_float_abis, struct fp16_format, all_fp16_formats,
394 struct abi_name, arm_all_abis): Remove.
0bda47a3
UB
395 (arm_option_override) Don't process most enumerated option values here.
396 Don't process target_fpe_name here. Work with integer not string for
397 structure size boundary; use separate diagnostics for each case.
ba163417
JM
398 * config/arm/arm.h (enum float_abi_type, enum
399 arm_fp16_format_type, enum arm_abi_type, enum arm_tp_type): Move
400 to arm-opts.h.
401 (arm_float_abi, arm_fp16_format, arm_abi, target_thread_pointer,
402 arm_structure_size_boundary): Remove.
403 * config/arm/arm.opt (mabi=): Use Enum and Init.
404 (arm_abi_type): New Enum and EnumValue entries.
405 (mfloat-abi=): Use Enum and Init.
406 (float_abi_type): New Enum and EnumValue entries.
0bda47a3 407 (mfp=, mfpe=): Replace by separate Alias entries for each argument.
ba163417
JM
408 (mfp16-format=): Use Enum and Init.
409 (arm_fp16_format_type): New Enum and EnumValue entries.
410 (mstructure-size-boundary=): Use UInteger and Init.
411 (mtp=): Use Enum and Init.
412 (arm_tp_type): New Enum and EnumValue entries.
413
179184e3
RG
4142011-05-18 Richard Guenther <rguenther@suse.de>
415
416 PR tree-optimization/49018
417 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects.
418 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use
419 gimple_has_side_effects.
420
93b2a207
RG
4212011-05-18 Richard Guenther <rguenther@suse.de>
422
423 * gimple.c (gimple_register_type_1): New function, split out from ...
424 (gimple_register_type): ... here. Avoid infinite recursion.
425
b010117a
IR
4262011-05-18 Ira Rosen <ira.rosen@linaro.org>
427
428 PR tree-optimization/41881
429 * tree-vectorizer.h (struct _loop_vec_info): Add new field
430 reduction_chains along with a macro for its access.
431 * tree-vect-loop.c (new_loop_vec_info): Initialize reduction chains.
432 (destroy_loop_vec_info): Free reduction chains.
433 (vect_analyze_loop_2): Return false if vect_analyze_slp() returns false.
434 (vect_is_slp_reduction): New function.
435 (vect_is_simple_reduction_1): Call vect_is_slp_reduction.
436 (vect_create_epilog_for_reduction): Support SLP reduction chains.
437 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow different
438 definition types for reduction chains.
439 (vect_supported_load_permutation_p): Don't allow permutations for
440 reduction chains.
441 (vect_analyze_slp_instance): Support reduction chains.
442 (vect_analyze_slp): Try to build SLP instance from reduction chains.
443 (vect_get_constant_vectors): Handle reduction chains.
444 (vect_schedule_slp_instance): Mark the first statement of the
445 reduction chain as reduction.
446
e14c1050
IR
4472011-05-18 Ira Rosen <ira.rosen@linaro.org>
448
449 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Use new
450 names for group elements access.
451 * tree-vectorizer.h (struct _stmt_vec_info): Use interleaving info for
452 reduction chains as well. Remove data reference and interleaving
453 related words from the fields names.
454 * tree-vect-loop.c (vect_transform_loop): Use new names for group
455 elements access.
456 * tree-vect-data-refs.c (vect_get_place_in_interleaving_chain,
457 vect_insert_into_interleaving_chain, vect_update_interleaving_chain,
458 vect_update_interleaving_chain, vect_same_range_drs,
459 vect_analyze_data_ref_dependence, vect_update_misalignment_for_peel,
460 vect_verify_datarefs_alignment, vector_alignment_reachable_p,
461 vect_peeling_hash_get_lowest_cost, vect_enhance_data_refs_alignment,
462 vect_analyze_group_access, vect_analyze_data_ref_access,
463 vect_create_data_ref_ptr, vect_transform_strided_load,
464 vect_record_strided_load_vectors): Likewise.
465 * tree-vect-stmts.c (vect_model_simple_cost, vect_model_store_cost,
466 vect_model_load_cost, vectorizable_store, vectorizable_load,
467 vect_remove_stores, new_stmt_vec_info): Likewise.
468 * tree-vect-slp.c (vect_build_slp_tree,
469 vect_supported_slp_permutation_p, vect_analyze_slp_instance): Likewise.
470
51c213f7
RG
4712011-05-18 Richard Guenther <rguenther@suse.de>
472
473 PR middle-end/48989
474 * tree-cfg.c (verify_gimple_assign_unary): Adjust TRUTH op
475 operand verification.
476 (verify_gimple_assign_binary): Likewise.
477 * tree-ssa.c (useless_type_conversion_p): Preserve conversions
478 to non-1-precision BOOLEAN_TYPEs.
479
8f5e5434
TV
4802011-05-18 Tom de Vries <tom@codesourcery.com>
481
482 PR target/45098
483 * tree-ssa-loop-ivopts.c (seq_cost): Fix call to rtx_cost.
484
116bc3a4
JJ
4852011-05-18 Jakub Jelinek <jakub@redhat.com>
486
487 PR tree-optimization/49000
488 * tree-ssa.c (execute_update_addresses_taken): Call
489 maybe_rewrite_mem_ref_base on debug stmt value. If it couldn't
490 be rewritten and decl has been marked for renaming, reset
491 the debug stmt.
492
26a8964c
JM
4932011-05-17 Joseph Myers <joseph@codesourcery.com>
494
495 * config/i386/i386.c (ix86_valid_target_attribute_tree): Use
496 enum_opts_set when testing if attributes have set -mfpmath=.
497
82bd45d7
RS
4982011-05-17 Richard Sandiford <rdsandiford@googlemail.com>
499
500 * config/mips/mips.c (mips_handle_option): Remove unused variable.
501
267ffce3
UB
5022011-05-17 Uros Bizjak <ubizjak@gmail.com>
503
504 * ipa-inline-analysis.c (inline_node_duplication_hook): Initialize
505 info->entry with 0
506 * tree-inline.c (maybe_inline_call_in_expr): Initialize
507 id.transform_lang_insert_block with NULL.
508
5092011-05-17 Uros Bizjak <ubizjak@gmail.com>
d9403b0d
UB
510
511 * config/i386/i386-protos.h (output_fix_trunc): Change arg 3 to bool.
512 (output_fp_compare): Change args 3 and 4 to bool.
513 (ix86_expand_call): Change arg 6 to bool.
514 (ix86_attr_length_immediate_default): Change arg 2 to bool.
515 (ix86_attr_length_vex_default): Change arg 3 to bool.
516 * config/i386/i386.md: Update all uses.
517 * config/i386/i386.c: Ditto.
518 (ix86_flags_dependent): Change return type to bool.
519
5beaf664
RG
5202011-05-17 Richard Guenther <rguenther@suse.de>
521
522 * gimple.c (type_hash_pair_compare): Fix comparison.
523
008bad7a
RG
5242011-05-17 Richard Guenther <rguenther@suse.de>
525
526 * gimple.c (iterative_hash_gimple_type): Simplify singleton
527 case some more, fix final hash value of the non-singleton case.
528
36461340
RG
5292011-05-17 Richard Guenther <rguenther@suse.de>
530
531 PR bootstrap/49013
532 Revert
533 2011-05-16 Richard Guenther <rguenther@suse.de>
534
535 * gimple.c (gimple_types_compatible_p_1): Use names of the
536 type itself, not its main variant.
537 (iterative_hash_gimple_type): Likewise.
538
6b6a59f3
RG
5392011-05-17 Richard Guenther <rguenther@suse.de>
540
541 * gimple.c (gimple_register_canonical_type): Use the main-variant
542 leader for computing the canonical type.
543
4ffc4134
NC
5442011-05-17 Nick Clifton <nickc@redhat.com>
545
a1d8754e
NC
546 * config/rx/rx.c (rx_memory_move_cost): Include cost of register
547 moves.
548
4ffc4134
NC
549 * config/rx/rx.md: Add peephole to remove redundant extensions
550 after loads.
39960f7a
NC
551 (bitset_in_memory): Use rx_restricted_mem_operand.
552 (bitinvert_in_memory): Likewise.
553 (bitclr_in_memory): Likewise.
4ffc4134 554
b3db92ac
KI
5552011-05-17 Kazuhio Inaoka <kazuhiro.inaoka.ud@renesas.com>
556 Nick Clifton <nickc@redhat.com>
557
558 * config/rx/rx.md: Add peepholes to match a register move followed
559 by a comparison of the moved register. Replace these with an
560 addition of zero that does both actions in one instruction.
561
8637e32a
JJ
5622011-05-17 Jakub Jelinek <jakub@redhat.com>
563
564 PR target/48986
565 * config/i386/sync.md (sync_old_add<mode>): Relax operand 2
566 predicate to allow CONST_INT.
567 (*sync_old_add_cmp<mode>): New insn and peephole2 for it.
568
8023568e
JM
5692011-05-16 Joseph Myers <joseph@codesourcery.com>
570
571 * opts-common.c (opt_enum_arg_to_value): New.
572 * opts.h (opt_enum_arg_to_value): Declare.
573 * config/i386/i386.opt (fpmath): Remove.
574 (mfpmath=): Use Enum, Init and Save.
575 (fpmath_unit): New Enum and EnumValue entries.
576 * config/i386/i386-c.c (ix86_pragma_target_parse): Update field
577 name for function fpmath state.
578 * config/i386/i386-opts.h (enum fpmath_unit): Move from i386.h.
579 * config/i386/i386.c: Include diagnostic.h.
580 (ix86_fpmath, IX86_FUNCTION_SPECIFIC_FPMATH): Remove.
d9403b0d 581 (ix86_target_string): Take enum fpmath_unit value instead of string.
8023568e 582 (ix86_debug_options): Update call to ix86_target_string.
d9403b0d 583 (ix86_option_override_internal): Don't process fpmath strings here.
8023568e
JM
584 (x86_function_specific_save, ix86_function_specific_restore):
585 Don't handle fpmath state specially.
586 (ix86_function_specific_print): Pass fpmath state to
587 ix86_target_string instead of printing in this function.
588 (ix86_valid_target_attribute_inner_p): Take gcc_options pointer.
589 Handle enum attributes.
590 (IX86_ATTR_ENUM, ix86_opt_enum): New.
591 (ix86_valid_target_attribute_tree): Update option_strings
592 handling. Handle fpmath as enum option.
593 (ix86_can_inline_p): Update field names for function fpmath state.
594 (ix86_expand_builtin): Update call to ix86_target_string.
595 * config/i386/i386.h (enum fpmath_unit): Move to i386-opts.h.
596 (ix86_fpmath): Remove.
597 * config/i386/t-i386 (i386.o): Update dependencies.
598
9e8d926e
JM
5992011-05-16 Joseph Myers <joseph@codesourcery.com>
600
601 PR preprocessor/48677
602 * cppspec.c (lang_specific_driver): Set new_decoded_options[0]
603 from decoded_options[0], not from itself.
604
f6449011
UB
6052011-05-16 Uros Bizjak <ubizjak@gmail.com>
606
607 * config/i386/constraints.md (z): New constraint.
608 * config/i386/i386.c (c): New mode attribute.
609 (*call): Merge insn pattern from *call_0, *call_1, *call_1_rex64 and
610 *call_1_rex64_large patterns using "P" mode iterator. Use "<c>zm"
611 constraint for operand 0.
612 (*call_vzeroupper): Ditto.
613 (*call_rex64_ms_sysv): Ditto. Use "rzm" constraint for operand 0.
614 (*call_rex64_ms_sysv_vzeroupper): Ditto.
615 (*call_pop): Merge insn pattern from *call_pop_0 and *call_pop_1.
616 Use "lzm" constraint for operand 0.
617 (*call_pop_vzeroupper): Ditto.
618 (*sibcall): Merge insn pattern from *sibcall_0, *sibcall_1 and
619 *sibcall_1_rex64 patterns using "P" mode iterator. Use "Uz"
620 constraint for operand 0.
621 (*sibcall_vzeroupper): Ditto.
622 (*sibcall_rex64_ms_sysv): Ditto.
623 (*sibcall_rex64_ms_sysv_vzeroupper): Ditto.
624 (*sibcall_pop): Merge insn pattern from *sibcall_pop_0 and
625 *sibcall_pop_1. Use "Uz" constraint for operand 0.
626 (*sibcall_pop_vzeroupper): Ditto.
627 (*call_value): Merge insn pattern from *call_value_0, *call_value_1,
628 *call_value_1_rex64 and *call_value_1_rex64_large patterns using "P"
629 mode iterator. Use "<c>zm" constraint for operand 1.
630 (*call_value_vzeroupper): Ditto.
631 (*call_value_rex64_ms_sysv): Ditto. Use "rzm" constraint
d9403b0d 632 for operand 1.
f6449011
UB
633 (*call_value_rex64_ms_sysv_vzeroupper): Ditto.
634 (*call_value_pop): Merge insn pattern from *call_value_pop_0 and
635 *call_value_pop_1. Use "lzm" constraint for operand 1.
636 (*call_value_pop_vzeroupper): Ditto.
637 (*sibcall_value): Merge insn pattern from *sibcall_value_0,
638 *sibcall_value_1 and *sibcall_value_1_rex64 patterns using "P"
639 mode iterator. Use "Uz" constraint for operand 1.
640 (*sibcall_value_vzeroupper): Ditto.
641 (*sibcall_value_rex64_ms_sysv): Ditto.
642 (*sibcall_value_rex64_ms_sysv_vzeroupper): Ditto.
643 (*sibcall_value_pop): Rename from *sibcall_pop_1. Use "Uz"
644 constraint for operand 1.
645 (*sibcall_value_pop_vzeroupper): Ditto.
646 (*tls_global_dynamic_64): Use constant_call_address_operand predicate
647 and "z" constraint for operand 2.
648 (*tls_global_dynamic_32_gnu): Ditto.
649 (*tls_local_dynamic_base_32_gnu): Ditto.
650 (*tls_local_dynamic_base_64): Ditto.
651 (*tls_local_dynamic_32_once): Ditto.
652 * config/i386/i386.c (ix86_output_call_insn): Remove int_addr argument.
653 Update all callers.
654 * config/i386/i386-protos.h (ix86_output_call_insn): Update prototype.
655
c11b6902
RG
6562011-05-16 Richard Guenther <rguenther@suse.de>
657
658 * gimple.c (gimple_types_compatible_p_1): Use names of the
659 type itself, not its main variant.
660 (iterative_hash_gimple_type): Likewise.
661
1e83b5f1
RG
6622011-05-16 Richard Guenther <rguenther@suse.de>
663
f6449011
UB
664 * gimple.c (iterative_hash_gimple_type): Re-instantiate change to
665 always visit pointer target and function result and argument types.
1e83b5f1 666
62e36382
JM
6672011-05-16 Jason Merrill <jason@redhat.com>
668
669 PR c++/48999
670 * tree-inline.c (copy_statement_list): Put back recursion.
671
687027a4
GJL
6722011-05-16 Georg-Johann Lay <avr@gjlay.de>
673
674 PR target/27663
675 PR target/41076
676 * config/avr/predicates.md (const_8_16_24_operand): New predicate.
677 * config/avr/avr.md ("*ior<mode>qi.byte0",
678 "*ior<mode>qi.byte1-3"): New define_insn_and_split patterns.
679
f24a5190
GJL
6802011-05-16 Georg-Johann Lay <avr@gjlay.de>
681
682 PR target/45099
683 * config/avr/avr.c (avr_function_arg_advance): Error if a fixed
684 register is needed for a function argument.
685
3066f593
RG
6862011-05-16 Richard Guenther <rguenther@suse.de>
687
688 * gimple.c (struct type_hash_pair): New type.
689 (type_hash_pair_compare): New function.
f6449011 690 (iterative_hash_gimple_type): Mix in SCC member hashes in hash-order.
3066f593 691
b2ab2cf4
RE
6922011-05-16 Revital Eres <revital.eres@linaro.org>
693
f6449011 694 * modulo-sched.c (doloop_register_get): Check !DEBUG_INSN_P first.
b2ab2cf4 695
dfb737fc
UB
6962011-05-15 Uros Bizjak <ubizjak@gmail.com>
697
698 * config/i386/i386.md (floating point move splitters): Fix
699 usage of standard_80387_constant_p.
f6449011 700 * config/i386/i386.c (ix86_preferred_reload_class): Ditto.
dfb737fc 701
8caa1de0
UB
7022011-05-15 Uros Bizjak <ubizjak@gmail.com>
703
704 * config/i386/i386.md (*movdf_internal): Simplify insn condition.
705
8a519095
EB
7062011-05-14 Eric Botcazou <ebotcazou@adacore.com>
707
708 * tree-ssa-loop-im.c (SET_ALWAYS_EXECUTED_IN): New macro.
709 (fill_always_executed_in): Use [SET_]ALWAYS_EXECUTED_IN.
710 (tree_ssa_lim_finalize): Likewise.
711
479fecd3
UB
7122011-05-14 Uros Bizjak <ubizjak@gmail.com>
713
714 * config/i386/constraint.md (Yd, Yx): New register constraints.
715 * config/i386/i386.md (*pushdf): Merge with *pushdf_nointeger. Use
716 Yd conditional register constraint.
717 (*movtf_internal): Use standard_sse_constant_opcode.
718 (*movxf_internal): Merge with *movxf_internal_nointeger. Use
719 Yx conditional register constraint.
720 (*movdf_internal): Merge with *movdf_internal_nointeger. Use
721 Yd conditional register constraint. Use standard_sse_constant_p to
722 check for valid SSE constants and call standard_sse_constant_opcode to
723 output SSE insn.
724 (*movsf_internal): Use standard_sse_constant_p to check for valid SSE
725 constants and call standard_sse_constant_opcode to output SSE insn.
726 * config/i386/i386.c (ix86_option_ovverride_internal): Set
727 TARGET_INTEGER_DFMODE_MOVES for 64bit targets. Clear it when
728 optimize_size is set.
729 (standard_sse_constant_opcode): Output conditional AVX insn templates.
730
2d8c9ad5
TB
7312011-05-14 Tobias Burnus <burnus@net-b.de>
732
733 * doc/invoke.texi (-Ofast): Also enables -fstack-arrays.
734
411a20d6
MJ
7352011-05-13 Martin Jambor <mjambor@suse.cz>
736
737 * ipa-prop.c (ipa_cst_from_jfunc): New function.
738 * ipa-prop.h (ipa_cst_from_jfunc): Declare.
739 * ipa-inline-analysis.c (evaluate_conditions_for_edge): Use it.
740 (evaluate_conditions_for_ipcp_clone): Removed.
741 (estimate_ipcp_clone_size_and_time): Accept vector of known constants.
742 * ipa-cp.c (ipcp_estimate_growth): Build vector of known constants.
743 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update.
744
dc764d10
EB
7452011-05-13 Eric Botcazou <ebotcazou@adacore.com>
746
747 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Adjust dump message.
748 * regcprop.c (copyprop_hardreg_forward): Test MAY_HAVE_DEBUG_INSNS in
749 lieu of MAY_HAVE_DEBUG_STMTS.
750 * tree-cfgcleanup.c (remove_forwarder_block): Do not attempt to move
751 debug statements if !MAY_HAVE_DEBUG_STMTS.
752
9f47a24e
MT
7532011-05-13 Martin Thuresson <martint@google.com>
754
755 PR gcov-profile/47793
756 * libgcov.c (gcov_exit): Support relative profile paths.
757 * doc/invoke.texi (-fprofile-dir): Update for above change.
758
b8a71aed
RG
7592011-05-13 Richard Guenther <rguenther@suse.de>
760
761 * gimple.c (gimple_canonical_types_compatible_p): Do not use
762 type-pair caching, do not compare hashes.
763
eb9f9259
NF
7642011-05-13 Nathan Froyd <froydnj@codesourcery.com>
765
766 PR middle-end/48965
767 * tree-cfg.c (edge_to_cases_cleanup): Return true.
768 (verify_expr) [CASE_LABEL_EXPR]: Add checking.
769
3c6cbf7a
KT
7702011-05-13 Kai Tietz <ktietz@redhat.com>
771
772 * gimplify.c (gimplify_expr): Make sure operand is boolified.
773 * tree-cfg.c (verify_gimple_assign_unary): Check for boolean
774 compatible type for TRUTH_NOT_EXPR.
775
2e7f5dc0
L
7762011-05-13 H.J. Lu <hongjiu.lu@intel.com>
777
dc764d10 778 * config/i386/i386.c (ix86_save_reg): Change return type to bool.
2e7f5dc0
L
779 (ix86_hard_regno_mode_ok): Change return value to bool. Use
780 can_create_pseudo_p ().
781
e834e95c
RG
7822011-05-13 Richard Guenther <rguenther@suse.de>
783
784 PR lto/48978
785 * gimple.c (iterative_hash_gimple_type): Revert change in
786 pointer target and function result and argument hashing.
787
34203483
UB
7882011-05-13 Uros Bizjak <ubizjak@gmail.com>
789
790 * config/i386/i386.md (*movxf_internal): Use !can_create_pseudo ().
791 (*movxf_internal_nointeger): Ditto.
792 (*movdf_internal_rex64): Ditto.
793 (*movdf_internal): Ditto.
794 (*movdf_internal_nointeger): Ditto.
795 (*movsf_internal): Ditto.
796 (sincos splitters): Use can_create_pseudo ().
797
7eb68c06
JM
7982011-05-13 Joseph Myers <joseph@codesourcery.com>
799
800 * config/i386/i386-opts.h: New.
801 * gcc/config/i386/i386.c (stringop_alg, ix86_cmodel,
802 ix86_asm_dialect, ix86_regparm, ix86_abi, ix86_branch_cost,
803 ix86_section_threshold): Remove.
804 (ix86_handle_option): Move MAX_CODE_ALIGN define here. Handle
805 OPT_malign_loops_, OPT_malign_jumps_, OPT_malign_functions_ and
806 OPT_mbranch_cost_.
807 (ix86_option_override_internal): Don't decode strings for options
808 other than -march=, -mtune= and -mfpmath=. Don't allow for
809 __attribute__ uses in remaining diagnostics for options with
34203483 810 string arguments. Don't check for integer arguments being negative.
7eb68c06 811 * gcc/config/i386/i386.h (enum stringop_alg, enum calling_abi,
34203483 812 enum tls_dialect, enum cmodel, enum asm_dialect): Move to i386-opts.h.
7eb68c06
JM
813 (ix86_abi, ix86_tls_dialect, ix86_cmodel, ix86_asm_dialect,
814 ix86_branch_cost, ix86_section_threshold): Remove.
815 * gcc/config/i386/i386.opt (config/i386/i386-opts.h): New
816 HeaderInclude.
817 (malign-functions=, malign-jumps=, malign-loops=): Use UInteger
818 but not Var.
819 (masm=): Use Enum and Init.
820 (asm_dialect): New Enum and EnumValue entries.
821 (mbranch-cost=): Use UInteger.
822 (mlarge-data-threshold=): Use UInteger and Init.
823 (mcmodel=): Use Enum and Init.
824 (cmodel): New Enum and EnumValue entries.
825 (mpc): Replace with separate mpc32, mpc64 and mpc80 entries.
826 (mpreferred-stack-boundary=, mincoming-stack-boundary=,
827 mregparm=): Use UInteger.
828 (mstringop-strategy=): Use Enum and Init.
829 (stringop_alg): New Enum and EnumValue entries.
830 (mtls-dialect=): Use Enum and Init.
831 (tls_dialect): New Enum and EnumValue entries.
832 (mabi=): Use Enum and Init.
833 (calling_abi): New Enum and EnumValue entries.
834 (mveclibabi=): Use Enum and Init.
835 (ix86_veclibabi): New Enum and EnumValue entries.
836
f67e203c
NC
8372011-05-13 Nick Clifton <nickc@redhat.com>
838
34203483
UB
839 * config/rx/rx.md (mov expander): Fix use of rx_legitimate_constant_p.
840 * config/rx/rx-protos.h (rx_legitimate_constant_p): Rename prototype.
f67e203c 841
221df0b6
KT
8422011-05-13 Kai Tietz <ktietz@redhat.com>
843
844 PR middle-end/48984
845 * gimplify.c (gimplify_expr): Check for boolean_type_node instead
846 for BOOLEAN_TYPE for TRUTH-NOT/AND/OR/XOR.
847 (gimple_boolify): Check for cast for boolean_type_node instead for
848 BOOLEAN_TYPE.
849
208cb8cb
RG
8502011-05-13 Richard Guenther <rguenther@suse.de>
851
852 PR tree-optimization/48172
853 * tree-vect-loop-manip.c (vect_vfa_segment_size): Avoid
854 multiplying by number of iterations for equal step.
855 (vect_create_cond_for_alias_checks): Likewise.
856
b88ecf55
AS
8572011-05-13 Andreas Schwab <schwab@redhat.com>
858
859 * configure.ac: Use AS_HELP_STRING throughout.
860 * configure: Regenerate.
861
569b527e
L
8622011-05-12 H.J. Lu <hongjiu.lu@intel.com>
863
34203483 864 * config/i386/i386.c (ix86_save_reg): Change maybe_eh_return to bool.
569b527e
L
865 (ix86_emit_restore_regs_using_mov): Likewise.
866 (ix86_emit_restore_sse_regs_using_mov): Likewise.
867
8b9a1428
AS
8682011-05-12 Anatoly Sokolov <aesok@post.ru>
869
870 * config/sparc/sparc.h (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P,
871 SYMBOLIC_CONST, RTX_OK_FOR_BASE_P, RTX_OK_FOR_INDEX_P): Remove.
872 (RTX_OK_FOR_OFFSET_P, RTX_OK_FOR_OLO10_P): Move to...
873 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P,
874 RTX_OK_FOR_OLO10_P): ...here.
875 (sparc_mode_dependent_address_p): Use symbolic_operand instead of
876 SYMBOLIC_CONST.
877
1d15f620
KT
8782011-05-12 Kai Tietz <ktietz@redhat.com>
879
880 * gimplify.c (gimple_boolify): Re-boolify expression
881 arguments even if expression type is of kind BOOLEAN_TYPE.
882 (gimplify_boolean_expr): Removed.
883 (gimplify_expr): Boolify truth opcodes AND, ANDIF, OR, ORIF,
884 and XOR. Additional take care that we keep expression's type.
885 * tree-cfg.c (verify_gimple_assign_binary): Adjust check for type
886 of TRUTH_AND|OR|XOR_EXPR.
887
c2b5fc8d
JJ
8882011-05-12 Jakub Jelinek <jakub@redhat.com>
889
890 PR tree-optimization/48975
891 * tree-if-conv.c (combine_blocks): Call free_bb_predicate
892 on all bbs here and free and clear ifc_bbs at the end.
893
61332f77
RG
8942011-05-12 Richard Guenther <rguenther@suse.de>
895
896 * gimple.c (gtc_visit): Compare TREE_ADDRESSABLE, handle
897 NULLPTR_TYPE similar to VOID_TYPE. Defer type-leader lookup
898 until after simple checks.
899 (gimple_types_compatible_p): Likewise.
900 (iterative_hash_gimple_type): Always hash pointer targets
901 and function return and argument types.
902 (iterative_hash_canonical_type): Do not hash TYPE_QUALS,
903 hash TYPE_ALIGN. Do not hash TYPE_MIN/MAX_VALUE.
904 (gimple_canonical_types_compatible_p): Compare TREE_ADDRESSABLE,
905 handle NULLPTR_TYPE similar to VOID_TYPE. Handle non-aggregates
906 completely in the simple compare section.
907 (gimple_register_canonical_type): Query the cache again after
908 registering.
909
e2a3a5f1
RG
9102011-05-12 Richard Guenther <rguenther@suse.de>
911
912 PR tree-optimization/48172
913 * tree-vect-loop-manip.c (vect_vfa_segment_size): Do not exclude
914 the number of iterations from the segment size calculation.
915 (vect_create_cond_for_alias_checks): Adjust.
916
2c703f3a
JJ
9172011-05-12 Jakub Jelinek <jakub@redhat.com>
918
919 PR debug/48967
920 * var-tracking.c (use_narrower_mode_test) <case REG>: Return 1
921 if validate_subreg fails.
922
9232011-05-12 Hariharan Sandanagobalane <hariharan@picochip.com>
b27981e0
HS
924
925 * ira.c (clarify_prohibited_class_mode_regs): Prevent the function from
926 accessing beyond the end of REGNO_REG_CLASS array by stopping the loop
927 early.
928
87e91fca
DD
9292011-05-12 DJ Delorie <dj@redhat.com>
930
d53903d6 931 * config/rx/rx.c (rx_builtins): New arrays - holds builtin functions.
87e91fca
DD
932 (ADD_RX_BUILTIN1, ADD_RX_BUILTIN2, ADD_RX_BUILTIN3): Install
933 created builtin into rx_builtins array.
934 (rx_builtin_decl): New function.
34203483 935 (TARGET_BUITLIN_DECL): Define. Include gt-rx.h.
87e91fca 936
5f2f13fd
DD
9372011-05-12 DJ Delorie <dj@redhat.com>
938 Nick Clifton <nickc@redhat.com>
939
940 * config/rx/rx.h (HAVE_PRE_DECREMENT): Fix typo.
941 * config/rx/rx.c (CC_FLAG_FP): Fix comment.
942 (rx_is_legitimate_address): Add pre-decrement and post-increment
943 addressing in HImode and QImode. Fix test for out of range
944 REG+INT addressing.
87e91fca 945 (rx_legitimate_constant_p): Rename to rx_is_legitimate_constant.
34203483 946 (rx_align_for_label): Test label before extracting its usage count.
5f2f13fd 947 (rx_adjust_insn_lengths): Fix selection of insn codes.
87e91fca 948 (TARGET_LEGITIMATE_CONSTANT_P): Use renamed function.
5f2f13fd 949
57421f45
JM
9502011-05-11 Jason Merrill <jason@redhat.com>
951
952 * tree.c (type_hash_canon): Use struct tree_type_non_common.
953
898c90c0
EB
9542011-05-11 Eric Botcazou <ebotcazou@adacore.com>
955
956 * cfgrtl.c (commit_one_edge_insertion): Remove always-true test and
957 reindent the subsequent block.
958
79bec923
ST
9592011-05-11 Satoru Takabayashi <satorux@google.com>
960 Paul Pluzhnikov <ppluzhnikov@google.com>
961
34203483 962 * doc/install.texi (Configuration): Document --with-linker-hash-style.
e77e2cbb
PP
963 * gcc.c (init_spec): Handle LINKER_HASH_STYLE.
964 * config.in: Add LINKER_HASH_STYLE.
965 * configure.ac: Add --with-linker-hash-style.
966 * configure: Regenerate.
79bec923 967
d0340959
RG
9682011-05-11 Richard Guenther <rguenther@suse.de>
969
970 PR middle-end/48964
971 * gimple.c (iterative_hash_canonical_type): Fix typo.
972
cb032fee
UB
9732011-05-11 Uros Bizjak <ubizjak@gmail.com>
974
975 * config/i386/i386.c (legitimize_tls_address)
479fecd3 976 <case TLS_MODEL_GLOBAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
977 expanders directly for TARGET_GNU2_TLS. Determine pic and
978 __tls_get_addr symbol reference here. Update call to
979 gen_tls_global_dynamic_{32,64} for added arguments.
479fecd3 980 <case TLS_MODEL_LOCAL_DYNAMIC>: Call gen_tls_dynamic_gnu2_{32,64}
cb032fee
UB
981 expanders directly for TARGET_GNU2_TLS. Determine
982 __tls_get_addr symbol reference here. Update call to
983 gen_tls_local_dynamic_base_{32,64} for added arguments. Attach
984 unique UNSPEC REG_EQUIV to libcall block.
985 (ix86_tls_get_addr): Declare static.
986 * config/i386/i386-protos.h (ix86_tls_get_addr): Remove declaration.
987 * config/i386/i386.md (tls_global_dynamic_32): Add operand 2 and 3.
988 Do not determine pic and __tls_get_addr symbol reference here. Do not
989 call gen_tls_dynamic_gnu2_32 for TARGET_GNU2_TLS.
990 (tls_local_dynamic_base_32): Ditto for operands 1 and 2.
991 (tls_global_dynamic_64): Add operand 2. Do not determine
992 __tls_get_addr symbol reference here. Do not call
993 gen_tls_dynamic_gnu2_64 for TARGET_GNU2_TLS here.
994 (tls_local_dynamic_base64): Ditto for operand 1.
995
6d3cc8f0
EB
9962011-05-11 Eric Botcazou <ebotcazou@adacore.com>
997
998 * function.c (expand_function_start): Initialize stack_check_probe_note
999 only if the generic stack checking mechanism is used.
1000
51e020fc
RG
10012011-05-11 Richard Guenther <rguenther@suse.de>
1002
1003 PR tree-optimization/15256
1004 * tree-ssa-forwprop.c (simplify_bitwise_binary): Canonicalize
1005 (A & B) | C, combine (A op CST1) op CST2.
1006 (tree_ssa_forward_propagate_single_use_vars): Only bother to
1007 visit assigns that have uses.
1008
51545682
NF
10092011-05-11 Nathan Froyd <froydnj@codesourcery.com>
1010
cb032fee 1011 * ggc-page.c (extra_order_size_table): Use struct tree_type_non_common.
51545682
NF
1012 * lto-streamer-in.c (unpack_ts_type_value_fields): Rename to...
1013 (unpack_ts_type_common_value_fields): ...this. Update comment.
1014 (unpack_value_fields): Adjust for renaming.
1015 (lto_input_ts_type_tree_pointers): Split into...
1016 (lto_input_ts_type_common_tree_pointer): ...this and...
1017 (lto_input_ts_type_non_common_tree_pointers): ...this.
1018 (lto_input_tree_pointers): Adjust for above split.
1019 * lto-streamer-out.c (pack_ts_type_value_fields): Rename to...
1020 (pack_ts_type_common_value_fields): ...this. Update comment.
1021 (lto_output_ts_type_tree_pointers): Split into...
1022 (lto_output_ts_type_common_tree_pointers): ...this and...
1023 (lto_output_ts_type_non_common_tree_pointers): ...this.
1024 (lto_output_tree_pointers): Adjust for above split.
1025 * lto-streamer.c (check_handled_ts_structures): Mark TS_TYPE_COMMON,
1026 TS_TYPE_WITH_LANG_SPECIFIC, and TS_TYPE_NON_COMMON as handled.
1027 * stor-layout.c (vector_type_mode): Adjust location of mode field.
1028 * tree.h (MARK_TS_TYPE_COMMON, MARK_TS_TYPE_WITH_LANG_SPECIFIC):
1029 Define.
1030 (struct tree_type): Split into...
1031 (struct tree_type_common: ...this and...
1032 (struct tree_type_with_lang_specific): ...this and...
1033 (struct tree_type_non_common): ...this. Adjust accessor macros
1034 accordingly.
1035 (TYPE_VALUES_RAW): Define.
1036 (union tree_node): Update for above changes.
1037 * tree.c (tree_node_structure_for_code) [tcc_type]: Return
1038 TS_TYPE_NON_COMMON.
1039 (initialize_tree_contains_struct) [TS_TYPE]: Use TS_TYPE_COMMON.
1040 Add TS_TYPE_WITH_LANG_SPECIFIC and TS_TYPE_NON_COMMON.
1041 (tree_code_size) [tcc_type]: Use struct tree_type_non_common.
1042 * treestructu.def (TS_TYPE): Remove.
1043 (TS_TYPE_COMMON, TS_TYPE_WITH_LANG_SPECIFIC, TS_TYPE_NON_COMMON):
1044 Define.
1045
b03c3082
JJ
10462011-05-11 Jakub Jelinek <jakub@redhat.com>
1047
1048 PR debug/48159
1049 * tree-ssa.c (reset_debug_uses): New function.
1050 * tree-flow.h (reset_debug_uses): New prototype.
1051 * tree-data-ref.c (stmts_from_loop): Ignore debug stmts.
1052 * tree-loop-distribution.c (generate_loops_for_partition): Call
1053 reset_debug_uses on the stmts that will be removed. Keep around
1054 all debug stmts, don't count them as bits in partition bitmap.
1055 (generate_builtin): Don't count debug stmts or labels as bits in
1056 partition bitmap.
1057
b5e04de5
RG
10582011-05-11 Richard Guenther <rguenther@suse.de>
1059
1060 * gimple.c (gimple_type_hash_1): Merge with ...
1061 (gimple_type_hash): ... this.
1062 (gtc_visit): Remove mode parameter and simplify accordingly.
1063 (gimple_types_compatible_p_1): Likewise.
1064 (gimple_types_compatible_p): Likewise.
1065 (iterative_hash_gimple_type): Likewise.
1066 (visit): Likewise.
1067 (gimple_type_eq): Adjust.
1068
fc6970e4
RE
10692011-05-11 Revital Eres <revital.eres@linaro.org>
1070
1071 * ddg.c (create_ddg_dep_from_intra_loop_link): If a true dep edge
1072 enters the branch create an anti edge in the opposite direction
1073 to prevent the creation of reg-moves.
1074 * modulo-sched.c: Adjust comment to reflect the fact we are
1075 scheduling closing branch.
1076 (PS_STAGE_COUNT): Rename to CALC_STAGE_COUNT and redefine.
1077 (stage_count): New field in struct partial_schedule.
1078 (calculate_stage_count): New function.
1079 (normalize_sched_times): Rename to reset_sched_times and handle
1080 incrementing the sched time of the nodes by a constant value
1081 passed as parameter.
1082 (duplicate_insns_of_cycles): Skip closing branch.
1083 (sms_schedule_by_order): Schedule closing branch.
1084 (ps_insn_find_column): Handle closing branch.
1085 (sms_schedule): Call reset_sched_times and adjust the code to
1086 support scheduling of the closing branch.
1087 (ps_insert_empty_row): Update calls to normalize_sched_times
1088 and rotate_partial_schedule functions.
1089
41a58a92
RG
10902011-05-11 Richard Guenther <rguenther@suse.de>
1091
1092 PR middle-end/48953
1093 * tree-inline.c (remap_gimple_op_r): Also remap types of MEM_REFs.
1094
e9f8dcf9
JM
10952011-05-11 Joseph Myers <joseph@codesourcery.com>
1096
cb032fee
UB
1097 * opts.c (finish_options): Move warning settings from process_options.
1098 * toplev.c (process_options): Move warning settings to finish_options.
e9f8dcf9 1099
10c224a9
RG
11002011-05-11 Richard Guenther <rguenther@suse.de>
1101
1102 PR tree-optimization/18041
1103 * tree-ssa-forwprop.c (simplify_bitwise_and): Rename to ...
1104 (simplify_bitwise_binary): ... this. Handle operand conversions
1105 by applying them to the result instead.
1106 (tree_ssa_forward_propagate_single_use_vars): Adjust. CSE tree code.
1107
825b27de
RG
11082011-05-11 Richard Guenther <rguenther@suse.de>
1109
1110 * gimple.c (gimple_canonical_types_compatible_p): Split out
1111 from gimple_types_compatible_p and friends. Do not recurse
1112 to pointed-to types.
1113 (gimple_canonical_type_eq): Use it.
1114 (iterative_hash_canonical_type): Split out from
1115 iterative_hash_gimple_type and friends. Do not recurse
1116 to pointed-to types.
1117 (gimple_canonical_type_hash): Use it, allocate the hash here.
1118
ca756625
RE
11192011-05-11 Revital Eres <revital.eres@linaro.org>
1120
1121 * modulo-sched.c (doloop_register_get): Ignore DEBUG_INSNs while
1122 recognizing doloop.
1123
b8abece3
RE
11242011-05-11 Revital Eres <revital.eres@linaro.org>
1125
1126 * loop-doloop.c (doloop_condition_get): Use prev_nondebug_insn
1127 instead of PREV_INSN.
1128
ce7b3761
RE
11292011-05-11 Revital Eres <revital.eres@linaro.org>
1130
1131 * modulo-sched.c (sms_schedule): Support new form of doloop pattern
1132 * loop-doloop.c (doloop_condition_get): Likewise.
1133 * config/arm/thumb2.md (*thumb2_addsi3_compare0): Remove "*".
1134 (doloop_end): New.
1135 * config/arm/arm.md (*addsi3_compare0): Remove "*".
1136
a9dc9d37
NF
11372011-05-10 Nathan Froyd <froydnj@codesourcery.com>
1138
1139 * tree.def (CASE_LABEL_EXPR): Add an operand.
1140 * tree.h (CASE_CHAIN): Use TREE_OPERAND instead of TREE_CHAIN.
1141
96703596
JM
11422011-05-10 Joseph Myers <joseph@codesourcery.com>
1143
1144 * c-decl.c (c_override_global_bindings_to_false): Remove.
1145 (global_bindings_p): Don't check
1146 c_override_global_bindings_to_false.
1147 * c-tree.h (c_override_global_bindings_to_false): Remove.
1148 * c-typeck.c (composite_type): Don't set
1149 c_override_global_bindings_to_false.
1150
dbcc9f08
MM
11512011-05-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1152
1153 PR target/48857, 48495
1154 * config/rs6000/rs6000.h (VSX_SCALAR_MODE): Delete.
1155 (VSX_MODE): Ditto.
1156 (VSX_MOVE_MODE): Ditto.
1157 (ALTIVEC_OR_VSX_VECTOR_MODE): New macro, combine all Altivec and
1158 VSX vector types. Add V2DImode.
1159 (HARD_REGNO_CALLER_SAVE_MODE): Use it instead of
1160 ALTIVEC_VECTOR_MODE and VSX_VECTOR_MODE calls.
1161 (MODES_TIEABLE_P): Ditto.
1162
1163 * config/rs6000/rs6000.c (rs6000_emit_move): Use
1164 ALTIVEC_OR_VSX_MODE instead of ALTIVEC_VECTOR_MODE and
1165 VSX_VECTOR_MODE.
1166 (init_cumulative_args): Ditto.
1167 (rs6000_function_arg_boundary): Ditto.
1168 (rs6000_function_arg_advance_1): Ditto.
1169 (rs6000_function_arg): Ditto.
1170 (rs6000_function_ok_for_sibcall): Ditto.
1171 (emit_frame_save): Ditto.
1172 (rs6000_function_value): Ditto.
1173 (rs6000_libcall_value): Ditto.
1174
4a68b4ca
JM
11752011-05-10 Joseph Myers <joseph@codesourcery.com>
1176
1177 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
1178 i386/darwin-lib.h to $libgcc_tm_file.
1179 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Remove.
1180
bcb521e9
JM
11812011-05-10 Joseph Myers <joseph@codesourcery.com>
1182
1183 * doc/sourcebuild.texi (Back End): Mention contrib/config-list.mk.
1184
f10d3ac9
JM
11852011-05-10 Joseph Myers <joseph@codesourcery.com>
1186
cb032fee 1187 * config/rs6000/genopt.sh, config/rs6000/rs6000-cpus.def: New files.
f10d3ac9
JM
1188 * config/rs6000/rs6000-tables.opt: New file (generated).
1189 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add
1190 rs6000/rs6000-tables.opt to extra_options.
1191 * config/rs6000/rs6000-opts.h (RS6000_CPU_OPTION_NATIVE): Define.
1192 * config/rs6000/rs6000.c (rs6000_select): Remove.
1193 (processor_target_table): Move contents to rs6000-cpus.def.
1194 (darwin_rs6000_override_options): Check
1195 global_options_set.x_rs6000_cpu_index instead of
1196 rs6000_select[1].string.
1197 (rs6000_option_override_internal): Likewise.
1198 (rs6000_handle_option): Don't assert that global structures are in
1199 use. Don't handle OPT_mcpu_ and OPT_mtune_ here.
1200 (rs6000_default_cpu): New variable.
1201 (rs6000_file_start): Set it instead of local default_cpu. Check
1202 rs6000_default_cpu, global_options_set.x_rs6000_cpu_index and
1203 global_options_set.x_rs6000_tune_index instead of rs6000_select.
1204 (rs6000_darwin_file_start): Check rs6000_default_cpu and
1205 global_options_set.x_rs6000_cpu_index instead of rs6000_select.
1206 * config/rs6000/rs6000.h (struct rs6000_cpu_select,
1207 rs6000_select): Remove.
1208 * config/rs6000/rs6000.opt (rs6000_cpu_index, rs6000_tune_index):
1209 Remove.
1210 (mcpu=, mtune=): Use Var, Init, Enum and Save.
1211 * config/rs6000/t-rs6000
1212 ($(srcdir)/config/rs6000/rs6000-tables.opt): New.
1213 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1214 global_options_set.x_rs6000_cpu_index instead of
1215 rs6000_select[1].string.
1216 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
1217 global_options_set.x_rs6000_cpu_index instead of
1218 rs6000_select[1].string.
1219
80cf2e08
JM
12202011-05-10 Joseph Myers <joseph@codesourcery.com>
1221
1222 * config.gcc (libgcc_tm_file): Define instead of including files
1223 from ../../libgcc/config/ in tm_file.
cb032fee 1224 * configure.ac (libgcc_tm_file_list, libgcc_tm_include_list): Define.
80cf2e08
JM
1225 * configure: Regenerate.
1226 * Makefile.in (libgcc_tm_file_list, libgcc_tm_include_list,
1227 libgcc_tm.h, cs-libgcc_tm.h): New.
1228 (TM_H): Include libgcc_tm.h and $(libgcc_tm_file_list).
1229 (clean): Remove libgcc_tm.h.
1230 * config/arm/symbian.h (RENAME_LIBRARY): Remove.
1231 * mkconfig.sh: Include libgcc_tm.h in tm.h if USED_FOR_TARGET.
1232 * system.h (DECLARE_LIBRARY_RENAMES): Poison.
1233
fd01a351
GJL
12342011-05-10 Georg-Johann Lay <avr@gjlay.de>
1235
1236 PR target/48896
1237 * config/avr/avr.c (avr_ret_register): Return unsigned int
1238 instead of int.
1239 (avr_function_value): Mark fn_decl_or_type as unused, don't pass
1240 it to avr_libcall_value.
1241 avr_expand_builtin): Use EXPAND_NORMAL as arg 4 in calls to
1242 expand_expr.
1243 (avr_expand_binop_builtin): Ditto.
1244 (avr_expand_unop_builtin): Ditto.
1245
34cc3c86
DD
12462011-05-10 DJ Delorie <dj@redhat.com>
1247
1248 * config/rx/rx.h (JUMP_ALIGN, LABEL_ALIGN, LOOP_ALIGN): Define.
1249 (LABEL_ALIGN_AFTER_BARRIER): Pass label to rx_align_for_label
1250 * config/rx/rx.c (rx_align_for_label): Add label and
1251 uses_threshold parameters. Do not align when the label is not
1252 used enough.
1253 * config/rx/rx-protos.h (rx_align_for_label): Update prototype.
1254
be173289
RG
12552011-05-10 Richard Guenther <rguenther@suse.de>
1256
1257 * tree-ssa-forwprop.c (combine_conversions): Pattern-match
1258 a series of conversions and apply foldings similar to what
1259 fold-const does.
1260 (tree_ssa_forward_propagate_single_use_vars): Call it.
1261
e7f78021
JJ
12622011-05-10 Jakub Jelinek <jakub@redhat.com>
1263
6ae70ea2
JJ
1264 PR tree-optimization/48611
1265 PR tree-optimization/48794
1266 * tree-eh.c (remove_unreachable_handlers): Don't remove regions
1267 referenced from RESX or EH_DISPATCH arguments.
1268
e7f78021
JJ
1269 PR debug/48928
1270 * dfp.c (decimal_to_decnumber): Handle conversion from
1271 dconst{1,2,m1,half}.
1272
fca132b9
UB
12732011-05-09 Uros Bizjak <ubizjak@gmail.com>
1274
1275 * config/i386/i386.c (ix86_autovectorize_vector_sizes): Return 0
1276 for !flag_prefer_avx128.
1277 (ix86_preferred_simd_mode): Return word_mode for DFmode without SSE2.
1278
e4c03378
EB
12792011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1280
1281 * fold-const.c (fold_range_test): Pass LOC to build_range_check.
1282 (fold_ternary_loc): Use expr_location_or.
1283
805d6a75
L
12842011-05-09 H.J. Lu <hongjiu.lu@intel.com>
1285
1286 PR debug/48853
1287 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: If
1288 POINTERS_EXTEND_UNSIGNED is defined, don't give up if mode is
1289 Pmode and mem_mode is not VOIDmode.
1290
e4c03378 12912011-05-09 Ville Voutilainen <ville.voutilainen@gmail.com>
b5da71d4 1292
e4c03378
EB
1293 * tree.h (TYPE_UNQUALIFIED, TYPE_QUAL_CONST, TYPE_QUAL_VOLATILE,
1294 TYPE_QUAL_RESTRICT): Convert to enum.
b5da71d4 1295
51e7f377
UB
12962011-05-09 Uros Bizjak <ubizjak@gmail.com>
1297
1298 * config/i386/predicates.md (const_pow2_1_to_2_operand): Remove.
1299 (const_pow2_1_to_8_operand): Ditto.
1300 (const_pow2_1_to_128_operand): Ditto.
1301 (const_pow2_1_to_32768_operand): Ditto.
1302 * config/i386/mmx.md (*mmx_pinsrw): Use const_int_operand instead of
1303 const_pow2_1_to_8_operand for operand 3 predicate. Use exact_log2
1304 in insn constraint to check integer value of operand 3.
1305 * config/i386/sse.md (*vec_setv4sf_sse4_1): Ditto.
1306
1307 (PINSR_MODE): New mode iterator.
1308 (sse2p4_1): New mode attribute.
1309 (<sse2p4_1>_pinsr<ssemodesuffix>): Merge insn from sse4_1_pinsrb,
1310 sse2_pinsrw, sse4_1_pinsrd and sse4_1_pinsrq using PINSR_MODE mode
1311 iterator. Use const_int_operand instead of
1312 const_pow2_1_to_{2,8,128,32768}_operand for operand 3 predicate. Use
1313 exact_log2 in insn constraint to check integer value of operand 3.
1314
13152011-05-09 Uros Bizjak <ubizjak@gmail.com>
1316
1317 * config/i386/sse.md (blendbits): Remove mode attribute.
1318 (<sse4_1>_blend<ssemodesuffix><avxsizesuffix>): Use const_int_operand
1319 instead of const_0_to_<blendbits>_operand for operand 3 predicate.
1320 Check integer value of operand 3 in insn constraint.
1321
0ca8de87
RG
13222011-05-09 Richard Guenther <rguenther@suse.de>
1323
1324 * lto-symtab.c (lto_cgraph_replace_node): Use types_compatible_p
1325 for diagnostics.
1326 (lto_symtab_merge): Likewise. Do not register types here.
1327 (lto_symtab_merge_decls_2): Likewise.
1328 (lto_symtab_merge_decls_1): Likewise.
1329 * gimple.h (enum gtc_mode, gimple_types_compatible_p): Do not declare.
1330 * gimple.c (enum gtc_mode): Declare.
1331 (gimple_types_compatible_p): Make static.
1332
a9e6994a
AK
13332011-05-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1334
1335 * config/s390/s390.md (TD/TF mem to reg move splitter): Make the
1336 temporary register to match Pmode.
1337
fb55d62e
UB
13382011-05-09 Uros Bizjak <ubizjak@gmail.com>
1339
1340 * config/i386/sse.md (*vec_concatv4si): Merge from *vec_concatv4si_1
1341 and *vec_concatv4si_1_avx.
1342
eb1485a6
UB
13432011-05-09 Uros Bizjak <ubizjak@gmail.com>
1344
1345 PR rtl-optimization/48927
1346 * ira-conflicts.c (commutative_constraint_p): Use
1347 recog_data.alternative_enabled_p to disable alternatives where
1348 "enabled" attribute is false.
1349 (get_dup_num): Ditto.
1350 * ira-lives.c (single_reg_class): Ditto.
1351 (ira_implicitly_set_insn_hard_regs): Ditto.
1352
c46d001a
EB
13532011-05-09 Eric Botcazou <ebotcazou@adacore.com>
1354
1355 * var-tracking.c (find_mem_expr_in_1pdv): Fix thinko.
1356 (dataflow_set_preserve_mem_locs): Likewise.
1357
13582011-05-09 Philipp Thomas <pth@suse.de>
1359
6d9e7c41
PT
1360 * config/mep/mep.c (mep_validate_vliw): Syntax description
1361 should not be translated.
1362
d371df6f
JM
13632011-05-09 Joseph Myers <joseph@codesourcery.com>
1364
1365 * config/mips/genopt.sh, config/mips/mips-cpus.def: New files.
1366 * config/mips/mips-tables.opt: New file (generated).
eb1485a6 1367 * config.gcc (mips*-*-*): Add mips/mips-tables.opt to extra_options.
d371df6f
JM
1368 * config/mips/mips-opts.h (MIPS_ARCH_OPTION_FROM_ABI,
1369 MIPS_ARCH_OPTION_NATIVE): Define.
1370 * config/mips/mips.c (mips_cpu_info_table): Move contents to
1371 mips-cpus.def.
1372 (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p,
1373 mips_parse_cpu): Remove.
1374 (mips_cpu_info_from_opt, mips_default_arch): New.
1375 (mips_handle_option): Don't assert that global structures are in
1376 use. Don't handle OPT_march_, OPT_mtune_ and OPT_mips here.
1377 (mips_option_override): Use new variables and functions to set
eb1485a6 1378 state of these options. Use strcmp to check for individual CPU names.
d371df6f
JM
1379 * config/mips/mips.h (MIPS_CPU_STRING_DEFAULT): Remove default
1380 definition.
1381 * config/mips/mips.opt (march=): Use ToLower and Enum.
1382 (mips): Use ToLower, Enum and Var.
1383 (mtune=): Use ToLower and Enum.
1384 * config/mips/t-mips ($(srcdir)/config/mips/mips-tables.opt): New.
1385
4fc07af9
JH
13862011-05-08 Jan Hubicka <jh@suse.cz>
1387
1388 * gimple.c (type_pair_hash, type_pair_eq, lookup_type_pair):
1389 Arrange type pairs to be UID ordered.
1390 (gimple_lookup_type_leader): Make inline.
1391
2cf320a8
NC
13922011-05-09 Nick Clifton <nickc@redhat.com>
1393
61d6def5
NC
1394 PR target/48899
1395 * config/iq2000/iq2000.opt (iq2000_tune): Initialise to
1396 PROCESSOR_DEFAULT.
1397
2cf320a8
NC
1398 PR target/48897
1399 * config/mn10300/mn10300.c (extract_bundle): Remove spurious local
1400 variable 's'.
1401
4f82319d
CLT
14022011-05-08 Chung-Lin Tang <cltang@codesourcery.com>
1403
1404 * combine.c (simplify_comparison): Abstract out parts into...
1405 (simplify_compare_const): ... new function.
1406 (try_combine): Generalize parallel arithmetic/compare combining
1407 to call simplify_compare_const() and CANONICALIZE_COMPARE().
1408
74605a11
JH
14092011-05-08 Jan Hubicka <jh@suse.cz>
1410
1411 * cgraph.c (cgraph_clone_node): Add call_duplication_hook parameter.
eb1485a6
UB
1412 (cgraph_create_virtual_clone): Call hooks once virtual clone
1413 is finished.
74605a11 1414 * cgraph.h (cgraph_clone_node): Update prototype.
eb1485a6
UB
1415 * ipa-cp.c (ipcp_estimate_growth): Use
1416 estimate_ipcp_clone_size_and_time.
74605a11
JH
1417 * ipa-inline-transform.c (clone_inlined_nodes): Update.
1418 * lto-cgraph.c (input_node): Update.
1419 * ipa-inline.c (recursive_inlining): Update.
1420 * ipa-inline.h (estimate_ipcp_clone_size_and_time): New function.
1421 (evaluate_conditions_for_known_args): Break out from ...
1422 (evaluate_conditions_for_edge): ... here.
1423 (evaluate_conditions_for_ipcp_clone): New function.
1424 (inline_node_duplication_hook): Update clone summary based
1425 on parameter map.
1426 (estimate_callee_size_and_time): Rename to ...
1427 (estimate_node_size_and_time): take NODE instead of EDGE;
1428 take POSSIBLE_TRUTHS as argument.
1429 (estimate_callee_size_and_time): Update.
1430 (estimate_ipcp_clone_size_and_time): New function.
1431 (do_estimate_edge_time): Update.
1432
5c049507
RG
14332011-05-08 Richard Guenther <rguenther@suse.de>
1434
1435 PR middle-end/48908
1436 PR middle-end/48905
1437 * expmed.c (expand_shift_1): Compute adjusted constant shift
1438 amount manually.
1439
f64c36ba
EB
14402011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1441
1442 * config/avr/avr.c (print_operand_address): Fix invalid RTL access.
1443
c461a957
EB
14442011-05-08 Eric Botcazou <ebotcazou@adacore.com>
1445
1446 * config/rs6000/rs6000.c (output_profile_hook): Fix thinko.
1447
7c74e556
JW
14482011-05-08 Jonathan Wakely <jwakely.gcc@gmail.com>
1449
1450 * doc/invoke.texi (-fuse-linker-plugin): Improve grammar.
1451
b4c0a884
JH
14522011-05-07 Jan Hubicka <jh@suse.cz>
1453
a9bcb3f0
EB
1454 * ipa-inline-transform.c (inline_call): Account when program size
1455 decreases.
b4c0a884 1456 * ipa-inline.c (relative_time_benefit): New function.
a9bcb3f0
EB
1457 (edge_badness): Reorganize to be power 2 based; fix thinko when
1458 computing badness for negative growth; update comments to match
1459 reality; better dumps.
b4c0a884 1460
c99c0026
EB
14612011-05-07 Eric Botcazou <ebotcazou@adacore.com>
1462
1463 * langhooks.h (lang_hooks_for_types): Change global_bindings_p's return
1464 type to bool and adjust comment.
1465 * fold-const.c (fold_range_test): Adjust call to global_bindings_p.
1466 (fold_mathfn_compare): Remove calls to global_bindings_p.
1467 (fold_inf_compare): Likewise.
1468 * stor-layout.c (variable_size): Adjust call to global_bindings_p.
1469 * c-tree.h (global_bindings_p): Adjust prototype.
1470 * c-decl.c (global_bindings_p): Return bool and simplify.
1471
1400c8e5
ZD
14722011-05-07 Zdenek Dvorak <ook@ucw.cz>
1473
1474 PR tree-optimization/48837
1475 * tree-tailcall.c (tree_optimize_tail_calls_1): Do not mark tailcalls
1476 when accumulator transformation is performed.
1477
5d0878e7
JH
14782011-05-06 Jan Hubicka <jh@suse.cz>
1479
a9bcb3f0
EB
1480 * i386.h (ix86_tune_indices): Add
1481 X86_TUNE_SOFTWARE_PREFETCHING_BENEFICIAL.
eb1485a6 1482 (TARGET_SOFTWARE_PREFETCHING_BENEFICIAL): New macro.
a9bcb3f0
EB
1483 * i386.c (initial_ix86_tune_features): Add
1484 X86_SOFTARE_PREFETCHING_BENEFICIAL.
5d0878e7
JH
1485 (software_prefetching_beneficial_p): Remove predicate.
1486 (ix86_option_override_internal): Use new macro.
1487
58696ce5
JH
14882011-05-06 Jan Hubicka <jh@suse.cz>
1489
1490 * ipa-inline.c (update_callee_keys): Don't reset node growth cache.
1491
c47d0034
JH
14922011-05-06 Jan Hubicka <jh@suse.cz>
1493
1494 * cgraph.c (cgraph_add_thunk): Create real function node instead
1495 of alias node; finalize it and mark needed/reachale; arrange visibility
1496 to be right and add it into the corresponding same comdat group list.
1497 (dump_cgraph_node): Dump thunks.
1498 * cgraph.h (cgraph_first_defined_function, cgraph_next_defined_function,
a9bcb3f0
EB
1499 cgraph_function_with_gimple_body_p,
1500 cgraph_first_function_with_gimple_body,
c47d0034
JH
1501 cgraph_next_function_with_gimple_body): New functions.
1502 (FOR_EACH_FUNCTION_WITH_GIMPLE_BODY, FOR_EACH_DEFINED_FUNCTION):
1503 New macros.
1504 * ipa-cp.c (ipcp_need_redirect_p): Thunks can't be redirected.
1505 (ipcp_generate_summary): Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1506 * cgraphunit.c (cgraph_finalize_function): Only look into possible
1507 devirtualization when optimizing.
1508 (verify_cgraph_node): Verify thunks.
1509 (cgraph_analyze_function): Analyze thunks.
1510 (cgraph_mark_functions_to_output): Output thunks only in combination
1511 with function they are assigned to.
1512 (assemble_thunk): Turn thunk into non-thunk; don't try to turn
1513 alias into normal node.
1514 (assemble_thunks): New functoin.
1515 (cgraph_expand_function): Use it.
1516 * lto-cgraph.c (lto_output_node): Stream thunks.
1517 (input_overwrite_node): Stream in thunks.
1518 * ipa-pure-const.c (analyze_function): Thunks do nothing interesting.
1519 * lto-streamer-out.c (lto_output): Do not try to output thunk's body.
1520 * ipa-inline.c (inline_small_functions): Use FOR_EACH_DEFINED_FUNCTION.
1521 * ipa-inline-analysis.c (compute_inline_parameters): "Analyze" thunks.
1522 (inline_analyze_function): Do not care about thunk jump functions.
1523 (inline_generate_summary):Use FOR_EACH_DEFINED_FUNCTION.
a9bcb3f0
EB
1524 * ipa-prop.c (ipa_prop_write_jump_functions): Use
1525 cgraph_function_with_gimple_body_p.
1526 * passes.c (do_per_function_toporder): Use
1527 cgraph_function_with_gimple_body_p.
c47d0034
JH
1528 (execute_one_pass);Use FOR_EACH_FUNCTION_WITH_GIMPLE_BODY.
1529 (ipa_write_summaries): Use cgraph_function_with_gimple_body_p.
1530 (function_called_by_processed_nodes_p): Likewise.
1531
d8f426ec
JM
15322011-05-06 Joseph Myers <joseph@codesourcery.com>
1533
1534 * config/rs6000/rs6000.opt (rs6000_ieeequad, rs6000_altivec_abi,
1535 rs6000_spe_abi, rs6000_darwin64_abi): Remove TargetVariable
1536 entries.
1537 (mabi=): Replace with separate entries for mabi=altivec,
1538 mabi=no-altivec, mabi=spe, mabi=no-spe, mabi=d64, mabi=d32,
1539 mabi=ieeelongdouble and mabi=ibmlongdouble.
1540 * config/rs6000/rs6000.c (rs6000_option_override_internal): Move
1541 check for -mabi=spe without SPE ABI support here.
1542 (rs6000_handle_option): Replace OPT_mabi_ handling with
1543 OPT_mabi_altivec and OPT_mabi_spe handling.
1544
80bde45b
CC
15452011-05-06 Cary Coutant <ccoutant@google.com>
1546
1547 * dwarf2out.c (contains_subprogram_definition): New function.
1548 (should_move_die_to_comdat): Call it.
1549
a91926b9
JL
15502011-05-06 Jeff Law <law@redhat.com>
1551
1552 * tree-ssa-threadupdate.c (create_block_for_threading): Do not call
1553 remove_ctrl_stmt_and_useless_edges.
1554 (create_duplicates): Call remove_ctrl_stmt_and_useless_edges.
1555 (fixup_template_block, thread_single_edge): Likewise.
1556 (mark_threaded_blocks): Use THREAD_TARGET.
1557
1fc1b66d
AM
15582011-05-06 Alan Modra <amodra@gmail.com>
1559
1560 PR target/48900
1561 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
1562 const0_rtx as the arg to the dummy __tls_get_addr libcall.
1563
e194de64
UB
15642011-05-06 Uros Bizjak <ubizjak@gmail.com>
1565
1566 * config/i386/i386.md (*movdf_internal_nointeger): Apply "*"
1567 constraint modifier to "r".
1568
d740dc9e
JM
15692011-05-06 Joseph Myers <joseph@codesourcery.com>
1570
1571 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle and
1572 fall through for OPT_mcmodel_.
1573
cab78b15
AK
15742011-05-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1575
1576 * config/s390/s390.c (s390_asm_trampoline_template): Comment
1577 instruction sizes.
e194de64 1578 (s390_trampoline_init): Replace UNITS_PER_WORD with UNITS_PER_LONG.
cab78b15 1579
ee6824ae
RR
15802011-05-06 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1581
eb1485a6
UB
1582 PR target/47930
1583 * config/arm/arm.opt (marm): Document it.
1584 (mthumb): Reject negative variant.
ee6824ae 1585
9ef58464
UB
15862011-05-06 Uros Bizjak <ubizjak@gmail.com>
1587
1588 PR target/48898
1589 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
1590 Fix typo in "ccvt" variable name.
1591
155b6176
TG
15922011-05-06 Tristan Gingold <gingold@adacore.com>
1593
1594 PR target/48895
1595 * config/vms/vms-ar.c (main): Remove cwd variable.
1596
3becc47b
JJ
15972011-05-06 Jakub Jelinek <jakub@redhat.com>
1598
1599 PR debug/48902
1600 * var-tracking.c (prepare_call_arguments): Move else before #endif.
1601
3d528853
NF
16022011-05-05 Nathan Froyd <froydnj@codesourcery.com>
1603
1604 * except.c (sjlj_emit_dispatch_table): Call build_case_label.
1605 * gimplify.c (gimplify_switch_expr): Likewise.
1606 * omp-low.c (expand_omp_sections): Likewise.
1607 * tree-eh.c (lower_try_finally_switch): Likewise.
1608 (lower_eh_dispatch): Likewise.
1609 * tree.h (build_case_label): Declare.
1610 * tree.c (build_case_label): Define.
1611
deb5046b
JM
16122011-05-05 Jason Merrill <jason@redhat.com>
1613
1614 PR c++/40975
1615 * tree-inline.c (copy_tree_r): Use copy_statement_list.
1616 (copy_statement_list): Don't recurse.
1617 * stor-layout.c (copy_self_referential_tree_r): Don't allow
1618 STATEMENT_LIST.
1619
013c0411
JM
16202011-05-05 Joseph Myers <joseph@codesourcery.com>
1621
1622 * config/rs6000/rs6000.c (rs6000_handle_option): Don't fall
1623 through from -mfpu= handling.
1624 * config/rs6000/rs6000.opt (mfpu=): Use Var and Init.
1625
a0905f8b
BS
16262011-05-05 Bernd Schmidt <bernds@codesourcery.com>
1627
1628 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 10]: Handle
1629 POST_MODIFY.
1630
fc4538e4
SE
16312011-05-05 Steve Ellcey <sje@cup.hp.com>
1632
1633 * config.gcc (hppa*64*-*-hpux11*): Modify tm_file and extra_options
1634 for 11.31.
1635 (hppa[12]*-*-hpux11*): Ditto.
1636 (ia64*-*-hpux*): Add ia64/hpux-unix2003.h to tm_file.
1637 * config/ia64/hpux-unix2003.h: New.
1638 * config/pa/pa-hpux1131.opt: New.
1639 * config/pa/pa-hpux1131.h: New.
1640 * config/pa/pa64-hpux.h (STARTFILE_SPEC): Use unix2003.o if requested.
1641 * config/pa/pa-hpux.opt (flag_pa_unix): Check TARGET_HPUX_11_31 value.
4eec64ff 1642 * config/pa/pa.h (TARGET_HPUX_11_31): Provide default (0) value.
fc4538e4 1643
1e30c578
JJ
16442011-05-05 Jakub Jelinek <jakub@redhat.com>
1645
1646 PR debug/48853
1647 * dwarf2out.c (mem_loc_descriptor) <case SUBREG>: Pass mem_mode
1648 instead of mode as 3rd argument to recursive call.
1649 (mem_loc_descriptor) <case REG>: If POINTERS_EXTEND_UNSIGNED, don't
1650 emit DW_OP_GNU_regval_type if mode is Pmode and mem_mode is not
1651 VOIDmode.
1652 (mem_loc_descriptor) <case SYMBOL_REF>: If POINTERS_EXTEND_UNSIGNED,
1653 don't give up if mode is Pmode and mem_mode is not VOIDmode.
1654 (mem_loc_descriptor) <case CONST_INT>: If POINTERS_EXTEND_UNSIGNED,
1655 use int_loc_descriptor if mode is Pmode and mem_mode is not VOIDmode.
1656
d19eb620
JB
16572011-05-05 Julian Brown <julian@codesourcery.com>
1658
1659 * config/arm/neon.md (vec_set<mode>_internal): Fix misplaced
1660 parenthesis in D-register case.
1661
c860fe8c
JM
16622011-05-05 Joseph Myers <joseph@codesourcery.com>
1663
1664 * opt-functions.awk (var_type_struct): Handle Enum options.
1665 * optc-gen.awk: Don't check range of variables of character type.
1666 * config/rs6000/rs6000.c (rs6000_sched_insert_nops_str,
1667 rs6000_sched_costly_dep_str, rs6000_recip_name, rs6000_abi_name,
1668 rs6000_sdata_name, rs6000_explicit_options): Remove.
1669 (rs6000_option_override_internal): Check for -malign-power here.
1670 Use global_options_set instead of rs6000_explicit_options.
1671 (rs6000_parse_fpu_option): Remove.
1672 (rs6000_handle_option): Access variables via opts and opts_set
1673 pointers. Use error_at and warning_at. Add fall-through
1674 comments. Don't handle OPT_mcmodel_, OPT_maix_struct_return,
1675 OPT_msvr4_struct_return, OPT_mvrsave, OPT_mspe, OPT_mcall_,
1676 OPT_msdata_, OPT_mtls_size_, OPT_mtraceback_, OPT_mfloat_gprs_,
1677 OPT_msched_costly_dep_, OPT_malign_ or OPT_mrecip_ explicitly
1678 here. Don't use rs6000_parse_fpu_option.
1679 * config/rs6000/rs6000.h (fpu_type): Remove declaration.
1680 * config/rs6000/rs6000.opt (rs6000_long_double_type_size,
1681 rs6000_spe, rs6000_float_gprs): Remove TargetVariable entries.
1682 (mrecip=): Use Var.
1683 (mspe): Use Var and Save.
1684 (mtraceback=): Use Enum and Var.
1685 (rs6000_traceback_type): New Enum and EnumValue entries.
1686 (mfloat-gprs=): Use Enum, Var and Save.
1687 (rs6000_float_gprs): New Enum and EnumValue entries.
1688 (mlong-double-): use Var and Save.
1689 (msched-costly-dep=, minsert-sched-nops=): Use Var.
1690 (malign-): Use Enum and Var.
1691 (rs6000_alignment_flags): New Enum and EnumValue entries.
1692 (mfpu=): Use Enum.
1693 (fpu_type_t): New Enum and EnumValue entries.
1694 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1695 global_options_set instead of rs6000_explicit_options.
1696 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1697 global_options_set instead of rs6000_explicit_options.
1698 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1699 global_options_set instead of rs6000_explicit_options.
1700 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Use
1701 global_options_set instead of rs6000_explicit_options.
1702 * config/rs6000/e500-double.h (SUB3TARGET_OVERRIDE_OPTIONS): Use
1703 global_options_set instead of rs6000_explicit_options.
1704 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1705 global_options_set instead of rs6000_explicit_options.
1706 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Remove commented-out
1707 definition.
1708 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1709 global_options_set instead of rs6000_explicit_options.
1710 * config/rs6000/linux64.opt (mcmodel=): Use Enum and Var.
1711 (rs6000_cmodel): New Enum and EnumValue entries.
1712 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Use
1713 global_options_set instead of rs6000_explicit_options.
1714 * config/rs6000/sysv4.opt (mcall-, msdata=): Use Var.
1715 (mtls-size=): Use Enum and Var.
1716 (rs6000_tls_size): New Enum and EnumValue entries.
1717
0691dde9
MM
17182011-05-05 Michael Matz <matz@suse.de>
1719
1720 * config/alpha/elf.h (ENDFILE_SPEC): Add Ofast.
1721 * config/alpha/osf5.h (ENDFILE_SPEC): Add Ofast.
1722 * config/alpha/netbsd.h (ENDFILE_SPEC): Add Ofast.
1723 * config/sparc/linux.h (ENDFILE_SPEC): Add Ofast.
1724 * config/sparc/sp64-elf.h (ENDFILE_SPEC): Add Ofast.
1725 * config/sparc/sp-elf.h (ENDFILE_SPEC): Add Ofast.
1726 * config/sparc/linux64.h (ENDFILE_SPEC): Add Ofast.
1727 * config/sparc/freebsd.h (ENDFILE_SPEC): Add Ofast.
1728 * config/sparc/sol2.h (ENDFILE_SPEC): Add Ofast.
1729 * config/i386/cygwin.h (ENDFILE_SPEC): Add Ofast.
1730 * config/i386/gnu-user.h (ENDFILE_SPEC): Add Ofast.
1731 * config/i386/gnu-user64.h (ENDFILE_SPEC): Add Ofast.
1732 * config/i386/darwin.h (ENDFILE_SPEC): Add Ofast.
1733 * config/i386/mingw32.h (ENDFILE_SPEC): Add Ofast.
1734 * config/ia64/linux.h (ENDFILE_SPEC): Add Ofast.
1735 * config/mips/linux.h (ENDFILE_SPEC): Add Ofast.
1736
86529a49
RG
17372011-05-05 Richard Guenther <rguenther@suse.de>
1738
1739 * expmed.c (expand_variable_shift): Rename to ...
1740 (expand_shift_1): ... this. Take an expanded shift amount.
1741 For rotates recurse directly not building trees for the shift amount.
1742 (expand_variable_shift): Wrap around expand_shift_1.
1743 (expand_shift): Adjust.
1744
d0228c2e
JJ
17452011-05-05 Jakub Jelinek <jakub@redhat.com>
1746
1747 * gimplify.c (create_tmp_var_raw): Don't call build_type_variant.
1748
907a08d9
EB
17492011-05-05 Eric Botcazou <ebotcazou@adacore.com>
1750
1751 * tree.h (get_pending_sizes): Remove prototype.
1752 (put_pending_size): Likewise.
1753 (put_pending_sizes): Likewise.
1754 * stor-layout.c (pending_sizes): Delete.
1755 (get_pending_sizes): Likewise.
1756 (put_pending_size): Likewise.
1757 (put_pending_sizes): Likewise.
1758 (variable_size): Do not call put_pending_size and tidy up.
1759 * function.h (struct function): Remove dont_save_pending_sizes_p.
1760 * lto-streamer-in.c (input_function): Do not stream it.
1761 * lto-streamer-out.c (output_function): Likewise.
1762 * tree-inline.c (initialize_cfun): Do not copy it.
1763 * c-decl.c (store_parm_decls): Do not set it.
1764 * omp-low.c (create_task_copyfn): Likewise.
1765 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1766
386d9c57
UB
17672011-05-05 Uros Bizjak <ubizjak@gmail.com>
1768
1769 * config/i386/i386.md (*movdf_internal_rex64): Simplify nested "if"
1770 conditions.
1771 (*movdf_internal): Ditto.
1772 (*movdf_internal_nointeger): Ditto.
1773 (*movsf_internal): Ditto.
1774
a04a722b
JM
17752011-05-05 Joseph Myers <joseph@codesourcery.com>
1776
1777 * c-decl.c (finish_decl): Don't call get_pending_sizes.
1778 (grokparm): Add parameter expr. Pass it to grokdeclarator.
1779 (push_parm_decl): Add parameter expr. Pass it to grokdeclarator.
1780 (c_variable_size): Remove.
1781 (grokdeclarator): Use save_expr instead of c_variable_size. Don't
1782 call put_pending_sizes.
1783 (get_parm_info): Add parameter expr. Use it to set
1784 arg_info->pending_sizes.
1785 (store_parm_decls): Use arg_info->pending_sizes instead or calling
1786 get_pending_sizes.
1787 * c-parser.c (c_parser_parms_declarator): Update call to
1788 c_parser_parms_list_declarator.
1789 (c_parser_parms_list_declarator): Take parameter expr. Update
1790 call to push_parm_decl. Update recursive call. Don't call
1791 get_pending_sizes. Update calls to get_parm_info.
1792 (c_parser_objc_method_definition): Update calls to
1793 c_parser_objc_method_decl and objc_start_method_definition.
386d9c57 1794 (c_parser_objc_methodproto): Update call to c_parser_objc_method_decl.
a04a722b
JM
1795 (c_parser_objc_method_decl): Add parameter expr. Update call to
1796 grokparm.
386d9c57 1797 (c_parser_objc_try_catch_finally_statement): Update call to grokparm.
a04a722b
JM
1798 * c-tree.h (struct c_arg_info.pending_sizes): Change to a tree.
1799 (get_parm_info, grokparm, push_parm_decl): Update prototypes.
1800
c92a6f97
MH
18012011-05-05 Michael Hope <michael.hope@linaro.org>
1802
386d9c57
UB
1803 PR pch/45979
1804 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for
1805 __ARM_EABI__ hosts.
c92a6f97 1806
07ea0048
UW
18072011-05-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1808
1809 * config/spu/spu.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
1810 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Likewise.
1811 (spu_output_mi_thunk): New function.
1812
d634bfa1
RO
18132011-05-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1814
1815 * config/sparc/sol2.h (ASM_OUTPUT_CALL): Use
1816 targetm.asm_out.print_operand.
1817 * config/sol2.c: Include target.h.
1818
40fda55b
JH
18192011-05-04 Jan Hubicka <jh@suse.cz>
1820
1821 * ipa-inline.c (reset_edge_caches): New function.
1822 (update_caller_keys): Add check_inlinablity_for; do not
1823 reset edge caches; remove now unnecesary loop.
386d9c57 1824 (update_callee_keys): Add comments; reset node_growth_cache of callee.
40fda55b
JH
1825 (update_all_callee_keys): Likewise.
1826 (inline_small_functions): Sanity check cache; update code
1827 recomputing it.
1828
0360f70d
BS
18292011-05-04 Bernd Schmidt <bernds@codesourcery.com>
1830
1831 PR rtl-optimization/47612
1832 * df-problems.c (can_move_insns_across): Don't pick a cc0 setter
1833 as the last insn of the sequence to be moved.
1834
7a994646
TB
18352011-05-04 Tobias Burnus <burnus@net-b.de>
1836
1837 PR fortran/48864
1838 * doc/invoke.texi (Ofast): Document that it
1839 enables Fortran's -fno-protect-parens.
1840
7a2f7208
UB
18412011-05-04 Uros Bizjak <ubizjak@gmail.com>
1842
1843 * config/i386/i386.c (ix86_reorg): Run move_or_delete_vzeroupper first.
1844
a2d42931
EB
18452011-05-04 Eric Botcazou <ebotcazou@adacore.com>
1846
1847 * stor-layout.c (variable_size): Do not issue errors.
1848
f81b1a3d
RG
18492011-05-04 Richard Guenther <rguenther@suse.de>
1850
1851 * coverage.c (tree_coverage_counter_ref): Use integer_type_node
1852 for array-ref indices.
1853 (tree_coverage_counter_addr): Likewise.
1854 (build_fn_info_type): Use size_int for index types.
1855 (build_gcov_info): Likewise.
1856
c62c040f
RG
18572011-05-04 Richard Guenther <rguenther@suse.de>
1858
1859 * c-decl.c (check_bitfield_type_and_width): Do not pass NULL
1860 to build_int_cst.
1861 * c-typeck.c (really_start_incremental_init): Use bitsize_int
1862 for constructor indices.
1863 (push_init_level): Likewise.
1864
1e3287d0
RG
18652011-05-04 Richard Guenther <rguenther@suse.de>
1866
1867 * explow.c (promote_mode): Move variable declarations before code.
1868
6c32445b
NF
18692011-05-04 Nathan Froyd <froydnj@codesourcery.com>
1870
1871 * tree.h (build_function_type_array): Declare.
1872 (build_varargs_function_type_array): Declare.
1873 (build_function_type_vec, build_varargs_function_type_vec): Define.
1874 * tree.c (build_function_type_array_1): New function.
1875 (build_function_type_array): New function.
1876 (build_varargs_function_type_array): New function.
1877
fdabf269
RS
18782011-05-04 Richard Sandiford <richard.sandiford@linaro.org>
1879
1880 * tree-vect-loop.c (vectorizable_reduction): Check reduction cost
1881 before setting STMT_VINFO_TYPE.
1882
a207915a
UW
18832011-05-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1884
1885 * config/spu/spu.c (spu_gimplify_va_arg_expr): Call pass_by_reference
1886 instead of spu_pass_by_reference.
1887
5e617be8
AK
18882011-05-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1889
1890 * calls.c (emit_library_call_value_1): Invoke
1891 promote_function_mode hook on libcall arguments.
1892 * explow.c (promote_function_mode, promote_mode): Handle TYPE
1893 argument being NULL.
1894 * targhooks.c (default_promote_function_mode): Lisewise.
1895 * config/s390/s390.c (s390_promote_function_mode): Likewise.
1896 * config/sparc/sparc.c (sparc_promote_function_mode): Likewise.
1897
1898 * doc/tm.texi: Document that TYPE argument might be NULL.
1899
486d04be
SH
19002011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1901
1902 * config/bfin/bfin.c (bfin_cpus): Update silicon revisions.
1903
9b19b026
SH
19042011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1905
1906 From Bernd Schmidt
1907 * config/bfin/bfin.md (addsi3): Add an alternative for IREGS.
1908
502bc3df
RO
19092011-05-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1910
1911 * config/alpha/alpha.h (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB)
1912 (MIPS_UNMARK_STAB, SHASH_SIZE, THASH_SIZE, ALIGN_SYMTABLE_OFFSET):
1913 Move ...
1914 * mips-tfile.c: ... here.
1915 Don't include coretypes.h, tm.h, filenames.h.
1916 (saber_stop): Remove definition and all calls.
1917 [__SABER__]: Remove.
1918 (__LINE__): Remove default.
1919 (Size_t, Ptrdiff_t): Remove definitions.
1920 Replace by size_t, ptrdiff_t.
1921 [!MIPS_DEBUGGING_INFO]: Remove.
1922 (SHASH_SIZE, THASH_SIZE): Remove defaults.
1923 (progname): Add const.
1924 (STATIC): Remove.
1925 Replace all uses by static.
1926 (ALIGN_SYMTABLE_OFFSET): Remove default.
1927 * mips-tdump.c: Don't include coretypes.h, tm.h.
1928 Remove !MIPS_IS_STAB guard.
1929 * Makefile.in (mips-tfile.o): Remove $(RTL_H), coretypes.h,
1930 $(TM_H), filenames.h dependencies.
1931 (mips-tdump.o): Remove $(RTL_H), coretypes.h, $(TM_H) dependencies.
1932
991eb6ef
SH
19332011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1934
1935 From Jie Zhang
1936 *config/bfin/bfin.c (bfin_extra_live_on_entry): New.
1937 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
1938
420ccc84
SH
19392011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1940
1941 From Bernd Schmidt
1942 * config/bfin/bfin.h (FUNCTION_PROFILER): Take TARGET_LONG_CALLS into
1943 account and save/restore RETS.
1944 (PROFILE_BEFORE_PROLOGUE): Define.
1945 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Add tab character. Correct
1946 the push insn to use predecrement.
1947
9f8d69ee
SH
19482011-05-04 Stuart Henderson <shenders@gcc.gnu.org>
1949
1950 From Jie Zhang
1951 * config/bfin/bfin.c (bfin_expand_prologue): Don't clobber P2.
1952
662c03f4
NC
19532011-05-04 Nick Clifton <nickc@redhat.com>
1954
1955 * config/mn10300/mn10300.c: Include cfgloop.h.
1956 (DUMP): New macro.
1957 (mn10300_insert_setlb_lcc): New function. Inserts a SETLB and a
1958 Lcc or a FLcc insn into the instruction stream.
1959 (mn10300_block_contains_call): New function. Returns true if the
1960 given basic block contains a CALL insn.
1961 (mn10300_loop_contains_call_insn): New function. Returns true if
1962 the given loop contains a CALL insn.
1963 (mn10300_scan_for_setlb_lcc): New function. Finds opportunities
1964 to use the SETLB and Lcc or FLcc insns.
1965 (mn10300_reorg): Invoke mn10300_scan_for_setlb_lcc when optimizing.
1966 (TARGET_FLAGS): Add MASK_ALLOW_SETLB.
1967 * config/mn10300/mn10300.opt (msetlb): New option. Used to
1968 disable the SETLB optimization.
1969 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add
1970 __SETLB__ or __NO_SETLB__.
1971 * config/mn10300/mn10300.md (UNSPEC_SETLB): New constant.
1972 (movsf_internal): Handle MDR register.
1973 (cmpsi): Make visible.
1974 (setlb): New pattern.
1975 (Lcc): New pattern.
1976 (FLcc): New pattern.
1977
843b6915
UB
19782011-05-04 Uros Bizjak <ubizjak@gmail.com>
1979
1980 PR target/48860
1981 * config/i386/i386.md (*movdi_internal_rex64) Use %vmovd
1982 for reg<->xmm moves.
1983 * config/i386/sse.md (*vec_concatv2di_rex64_sse4_1): Ditto.
1984 (vec_concatv2di_rex64_sse): Ditto.
1985 (*sse2_storeq_rex64): Do not emit %v prefix for mov{q} mnemonic.
1986 (*vec_extractv2di_1_rex64): Ditto.
1987
1988 Revert:
1989 2011-05-02 Uros Bizjak <ubizjak@gmail.com>
1990
1991 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
1992 reg<->xmm moves.
1993 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves.
1994
d35936ab
RG
19952011-05-04 Richard Guenther <rguenther@suse.de>
1996
1997 * tree.h (int_const_binop): Remove notrunc argument.
1998 * fold-const.c (int_const_binop): Remove notrunc argument. Always
1999 create integer constants that are properly truncated.
2000 (extract_muldiv_1): Expand one notrunc int_const_binop caller.
2001 (const_binop): Remove zero notrunc argument to int_const_binop.
2002 (size_binop_loc): Likewise.
2003 (fold_div_compare): Likewise.
2004 (maybe_canonicalize_comparison_1): Likewise.
2005 (fold_comparison): Likewise.
2006 (fold_binary_loc): Likewise.
2007 (multiple_of_p): Likewise.
2008 * expr.c (store_constructor): Likewise.
2009 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
2010 (maybe_fold_stmt_addition): Likewise.
2011 * ipa-prop.c (ipa_modify_call_arguments): Likewise.
2012 * stor-layout.c (layout_type): Likewise.
2013 * tree-data-ref.c (tree_fold_divides_p): Likewise.
2014 * tree-sra.c (build_ref_for_offset): Likewise.
2015 (build_user_friendly_ref_for_offset): Likewise.
2016 * tree-ssa-address.c (maybe_fold_tmr): Likewise.
2017 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
2018 * tree-ssa-loop-niter.c (inverse): Likewise.
2019 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
2020 * tree-ssa.c (maybe_rewrite_mem_ref_base): Likewise.
2021 * tree-switch-conversion.c (check_range): Likewise.
2022 (build_constructors): Likewise.
2023 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
2024 * tree-vrp.c (set_and_canonicalize_value_range): Likewise.
2025 (extract_range_from_assert): Likewise.
2026 (vrp_int_const_binop): Likewise.
2027 (extract_range_from_binary_expr): Likewise.
2028 (extract_range_from_unary_expr): Likewise.
2029 (check_array_ref): Likewise.
2030 (find_case_label_range): Likewise.
2031 (simplify_div_or_mod_using_ranges): Likewise.
2032 * tree-cfg.c (group_case_labels_stmt): Use double-ints for
2033 comparing case labels for merging.
2034
8992c063
MW
20352011-05-03 Mark Wielaard <mjw@redhat.com>
2036
2037 * dwarf2out.c (debug_str_hash_forced): Removed.
2038 (gen_label_for_indirect_string): Removed.
2039 (get_debug_string_label): Removed.
2040 (AT_string_form): Generate label directly.
2041 (output_indirect_string): Test indirect_string_node for
2042 DW_FORM_strp instead of checking label and refcount.
2043 (prune_indirect_string): Removed.
2044 (prune_unused_types): Don't check debug_str_hash_forced or
2045 call prune_indirect_string.
2046
4868e6ea
AO
20472011-05-04 Alexandre Oliva <aoliva@redhat.com>
2048
2049 PR other/48093
2050 * doc/invoke.texi: Document -mtls-dialect and GCC_COMPARE_DEBUG.
2051
01a5c0ab
AO
20522011-05-04 Alexandre Oliva <aoliva@redhat.com>
2053
2054 PR debug/47994
2055 PR debug/47919
2056 * combine.c (try_combine): Skip debug insns at m_split tests.
2057
6ac00218
MW
20582011-04-26 Mark Wielaard <mjw@redhat.com>
2059
2060 PR42288
2061 * dwarf2out.c (dwarf2out_finish): Always call output_aranges ()
2062 when info_section_emitted.
2063
3af42a7b
JM
20642011-05-03 Joseph Myers <joseph@codesourcery.com>
2065
2066 * config/mips/mips-opts.h: New.
2067 * config/mips/mips.c (enum mips_r10k_cache_barrier_setting): Move
2068 to mips-opts.h.
2069 (mips_abi, mips_code_readable, mips_r10k_cache_barriee): Remove.
2070 (mips_handle_option): Don't handle OPT_mabi_, OPT_mcode_readable_
2071 or OPT_mr10k_cache_barrier_ here. Access mips_cache_flush_func
2072 via opts pointer.
2073 * config/mips/mips.h (enum mips_code_readable_setting): Move to
2074 mips-opts.h.
2075 (mips_abi, mips_code_readable): Don't declare.
843b6915 2076 * config/mips/mips.opt (config/mips/mips-opts.h): New HeaderInclude.
3af42a7b
JM
2077 (mabi=): Use Enum and Var.
2078 (mips_abi): New Enum and EnumValue entries.
2079 (mcode-readable=): Use Enum and Var.
2080 (mips_code_readable_setting): New Enum and EnumValue entries.
2081 (mr10k-cache-barrier=): Use Enum and Var.
2082 (mips_r10k_cache_barrier_setting): New Enum and EnumValue entries.
2083
1cb1a99f
JH
20842011-05-03 Jan Hubicka <jh@suse.cz>
2085
2086 * cgraph.h (cgraph_node_set_def, varpool_node_set_def): Move out of GTY;
2087 replace hash by pointer map.
2088 (cgraph_node_set_element_def, cgraph_node_set_element,
2089 const_cgraph_node_set_element, varpool_node_set_element_def,
2090 varpool_node_set_element, const_varpool_node_set_element): Remove.
2091 (free_cgraph_node_set, free_varpool_node_set): New function.
2092 (cgraph_node_set_size, varpool_node_set_size): Use vector size.
2093 * tree-emutls.c: Free varpool node set.
2094 * ipa-utils.c (cgraph_node_set_new, cgraph_node_set_add,
2095 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2096 debug_cgraph_node_set, free_cgraph_node_set, varpool_node_set_new,
2097 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2098 dump_varpool_node_set, free_varpool_node_set, debug_varpool_node_set):
2099 Move here from ipa.c; implement using pointer_map
2100 * ipa.c (cgraph_node_set_new, cgraph_node_set_add,
2101 cgraph_node_set_remove, cgraph_node_set_find, dump_cgraph_node_set,
2102 debug_cgraph_node_set, varpool_node_set_new,
2103 varpool_node_set_add, varpool_node_set_remove, varpool_node_set_find,
2104 dump_varpool_node_set, debug_varpool_node_set):
2105 Move to ipa-uitls.c.
2106 * passes.c (ipa_write_summaries): Update.
2107
7f31f4db
SH
21082011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2109
7a2f7208
UB
2110 From Mike Frysinger:
2111 * config/bfin/bfin.c (bfin_cpus[]): Add 0.4 for
2112 bf542/bf544/bf547/bf548/bf549.
7f31f4db 2113
b70fce6d
UB
21142011-05-03 Uros Bizjak <ubizjak@gmail.com>
2115
2116 * expmed.c (extract_bit_field_1): Remove write-only variable "icode".
2117
265b1d82
SH
21182011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2119
2120 From Bernd Schmidt:
2121 * config/bfin/bfin.md (MOVCC): New mode_macro.
2122 (mov<mode>cc_insn1, mov<mode>cc_insn2, mov<mode>cc): Renamed from
2123 movsicc_insn1, movsicc_insn2 and movsicc and macroized. Remove
2124 comments from generated assembly.
2125
f0b568f3
SH
21262011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2127
2128 From Bernd Schmidt
2129 * config/bfin/t-bfin (LIB1ASMFUNCS): Add muldi3 and umulsi3_highpart.
2130 * config/bfin/t-bfin-elf (LIB1ASMFUNCS): Add muldi3.
2131 * config/bfin/t-bfin-linux (LIB1ASMFUNCS): Add muldi3.
2132 * config/bfin/t-bfin-uclinux (LIB1ASMFUNCS): Add muldi3.
2133 * config/bfin/lib1funcs.asm (___muldi3): New function.
2134
2c67cf6e
NF
21352011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2136
2137 * config/stormy16/stormy16 (xstormy16_init_builtins): Call
2138 build_function_type_list instead of build_function_type.
2139 Rearrange initialization of `args' to do so.
2140
f9ac28ad
NF
21412011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2142
2143 * config/i386/i386.c (ix86_code_end): Call build_function_type_list
2144 instead of build_function_type.
2145
22b8798c
NF
21462011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2147
2148 * config/rs6000/rs6000.c (spe_init_builtins): Call
2149 build_function_type_list instead of build_function_type.
2150 (paired_init_builtins, altivec_init_builtins): Likewise.
2151 (builtin_function_type): Likewise.
2152
4cb44528
NF
21532011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2154
2155 * config/sh/sh.c (sh_media_init_builtins): Call
2156 build_function_type_list instead of build_function_type.
2157
4c203a6a
NF
21582011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2159
2160 * config/sparc/sparc.c (sparc_file_end): Call
2161 build_function_type_list instead of build_function_type.
2162
d6a3d62b
NF
21632011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2164
2165 * config/alpha/alpha.c (alpha_init_builtins): Call
2166 build_function_type_list instead of build_function_type.
2167
de530b86
NF
21682011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2169
2170 * config/xtensa/xtensa.c (xtensa_init_builtins): Call
2171 build_function_type_list instead of build_function_type.
2172
baeec5f2
NF
21732011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2174
2175 * config/iq2000/i2000.c (iq2000_init_builtins): Call
2176 build_function_type_list instead of build_function_type.
2177 Delete `endlink' variable.
2178
c19afe52
NF
21792011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2180
2181 * config/avr/avr.c (avr_init_builtins): Call
2182 build_function_type_list instead of build_function_type.
2183
a341df0a
NF
21842011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2185
2186 * config/picochip/picochip.c (picochip_init_builtins): Call
2187 build_function_type_list instead of build_function_type.
2188 Delete `endlink' variable.
2189
2102b1e1
NF
21902011-05-03 Nathan Froyd <froydnj@codesourcery.com>
2191
2192 * config/bfin/bfin.c (bfin_init_builtins): Call
2193 build_function_type_list instead of build_function_type.
2194
9f111209
SH
21952011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2196
2197 From Bernd Schmidt
2198 * config/bfin/bfin.md (rotrsi, rotlsi): Don't take INTVAL of anything
2199 that's not CONST_INT. Seemingly redundant check is due to PR39768.
2200
7071d064
SH
22012011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2202
2203 From Jie Zhang:
2204 * config/bfin/uclinux.h (LINK_GCC_C_SEQUENCE_SPEC): Make sure
2205 libbffastfp overrides libgcc when -mfast-fp.
2206
748f7574 22072011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
44fb48ef
SH
2208
2209 Originally from Bernd Schmidt
2210 * config/bfin/uclinux.h (SUBTARGET_FDPIC_NOT_SUPPORTED): New macro.
2211 * config/bfin/bfin.c (override_options): Test it and error if
2212 TARGET_FDPIC.
2213
1a3a9152
SH
22142011-05-03 Stuart Henderson <shenders@gcc.gnu.org>
2215
2216 Originally From Bernd Schmidt
2217 * config/bfin/bfin.c (override_options): Disable -fstack-limit for
2218 FD-PIC.
2219
7134c090
JL
22202011-05-03 Jeff Law <law@redhat.com>
2221
2222 * tree-ssa-threadupdate.c (THREAD_TARGET): define.
2223 (remove_ctrl_stmt_and_useless_edges): Clear AUX field of outgoing edges.
2224 (craete_edge_and_update_destination_phis): Use THREAD_TARGET rather
b70fce6d
UB
2225 than accessing AUX field directly. Free the AUX field before
2226 clearing it.
7134c090
JL
2227 (thread_block, thread_through_loop_header): Likewise.
2228 (thread_single_edge, mark_threaded_blocks): Likewise.
2229 (redirect_edges): Delay clearing the AUX field. Free the AUX field.
2230 (register_jump_thread): Do not attempt to thread to a NULL edge.
b70fce6d 2231
2c7eebae
BS
22322011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2233
2234 * function.c (init_function_start): Call decide_function_section.
2235 * varasm.c (decide_function_section): New function.
2236 (assemble_start_function): When not using
2237 flag_reorder_blocks_and_partition, don't compute in_cold_section_p
2238 or first_function_block_is_cold.
2239 * rtl.h (decide_function_section): Declare.
2240
17038fcf
JJ
22412011-05-03 Uros Bizjak <ubizjak@gmail.com>
2242 Jakub Jelinek <jakub@redhat.com>
2243
2244 PR target/48774
2245 * config/i386/i386.c (ix86_match_ccmode): For CC{A,C,O,S}mode
2246 only succeed if req_mode is the same as set_mode.
2247
3810076b
BS
22482011-05-03 Bernd Schmidt <bernds@codesourcery.com>
2249
2250 * gengenrtl.c (special_rtx): PC, CC0 and RETURN are special.
2251 * genemit.c (gen_exp): Handle RETURN.
2252 * emit-rtl.c (verify_rtx_sharing): Likewise.
2253 (init_emit_regs): Create pc_rtx, ret_rtx and cc0_rtx specially.
2254 * rtl.c (copy_rtx): RETURN is shared.
2255 * rtl.h (enum global_rtl_index): Add GR_RETURN.
2256 (ret_rtx): New.
2257 * jump.c (redirect_exp_1): Don't use gen_rtx_RETURN.
2258 * config/s390/s390.c (s390_emit_epilogue): Likewise.
2259 * config/rx/rx.c (gen_rx_rtsd_vector): Likewise.
2260 * config/cris/cris.c (cris_expand_return): Likewise.
2261 * config/m68k/m68k.c (m68k_expand_epilogue): Likewise.
2262 * config/rs6000/rs6000.c (rs6000_make_savres_rtx,
2263 rs6000_emit_epilogue, rs6000_output_mi_thunk): Likewise.
2264 * config/picochip/picochip.c (picochip_expand_epilogue): Likewise.
2265 * config/h8300/h8300.c (h8300_push_pop, h8300_expand_epilogue):
2266 Likewise.
2267 * config/v850/v850.c (expand_epilogue): Likewise.
2268 * config/bfin/bfin.c (bfin_expand_call): Likewise.
2269 * config/arm/arm.md (epilogue): Likewise.
2270 * config/mn10300/mn10300.c (mn10300_expand_epilogue): Likewise.
2271 * config/sparc/sparc.c (sparc_struct_value_rtx): Rename ret_rtx
2272 variable to ret_reg.
2273
9efdb4ad
RG
22742011-05-03 Richard Guenther <rguenther@suse.de>
2275
2276 PR lto/48846
2277 * lto-streamer-in.c (unpack_ts_decl_common_value_fields):
2278 Stream decl_common.off_align instead of the derived DECL_OFFSET_ALIGN.
2279 * lto-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
2280
60a45536
RG
22812011-05-03 Richard Guenther <rguenther@suse.de>
2282
2283 * c-decl.c (grokdeclarator): Instead of looking at
2284 TREE_OVERFLOW check if the constant fits in the index type.
2285
3188ed59
RS
22862011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2287
2288 * config/arm/neon.md (vec_load_lanes<mode><mode>): New expanders,
2289 (vec_store_lanes<mode><mode>): Likewise.
2290
272c6793
RS
22912011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2292
2293 * doc/md.texi (vec_load_lanes, vec_store_lanes): Document.
2294 * optabs.h (COI_vec_load_lanes, COI_vec_store_lanes): New
2295 convert_optab_index values.
2296 (vec_load_lanes_optab, vec_store_lanes_optab): New convert optabs.
2297 * genopinit.c (optabs): Initialize the new optabs.
2298 * internal-fn.def (LOAD_LANES, STORE_LANES): New internal functions.
2299 * internal-fn.c (get_multi_vector_move, expand_LOAD_LANES)
2300 (expand_STORE_LANES): New functions.
2301 * tree.h (build_array_type_nelts): Declare.
2302 * tree.c (build_array_type_nelts): New function.
2303 * tree-vectorizer.h (vect_model_store_cost): Add a bool argument.
2304 (vect_model_load_cost): Likewise.
2305 (vect_store_lanes_supported, vect_load_lanes_supported)
2306 (vect_record_strided_load_vectors): Declare.
2307 * tree-vect-data-refs.c (vect_lanes_optab_supported_p)
2308 (vect_store_lanes_supported, vect_load_lanes_supported): New functions.
2309 (vect_transform_strided_load): Split out statement recording into...
2310 (vect_record_strided_load_vectors): ...this new function.
2311 * tree-vect-stmts.c (create_vector_array, read_vector_array)
2312 (write_vector_array, create_array_ref): New functions.
2313 (vect_model_store_cost): Add store_lanes_p argument.
2314 (vect_model_load_cost): Add load_lanes_p argument.
2315 (vectorizable_store): Try to use store-lanes functions for
2316 interleaved stores.
2317 (vectorizable_load): Likewise load-lanes and loads.
2318 * tree-vect-slp.c (vect_get_and_check_slp_defs): Update call
2319 to vect_model_store_cost.
2320 (vect_build_slp_tree): Likewise vect_model_load_cost.
2321
0f6d54f7
RS
23222011-05-03 Richard Sandiford <richard.sandiford@linaro.org>
2323
2324 * hooks.h (hook_bool_mode_uhwi_false): Declare.
2325 * hooks.c (hook_bool_mode_uhwi_false): New function.
2326 * target.def (array_mode_supported_p): New hook.
2327 * doc/tm.texi.in (TARGET_ARRAY_MODE_SUPPORTED_P): Add @hook.
2328 * doc/tm.texi: Regenerate.
2329 * stor-layout.c (mode_for_array): New function.
2330 (layout_type): Use it.
2331 * config/arm/arm.c (arm_array_mode_supported_p): New function.
2332 (TARGET_ARRAY_MODE_SUPPORTED_P): Define.
2333
b15eacc7
EB
23342011-05-03 Eric Botcazou <ebotcazou@adacore.com>
2335
2336 PR target/48723
2337 * config/i386/i386.c (ix86_expand_prologue): Do not probe the stack
2338 for -fstack-check if the size to allocate is negative.
2339
575bfb00
LC
23402011-05-02 Lawrence Crowl <crowl@google.com>
2341
2342 * timevar.h (timevar_cond_start): Remove unused POP_TIMEVAR_AND_RETURN.
2343 (timevar_cond_start): New for starting a timer only when it is not
2344 already running.
2345 (timevar_cond_stop): New for stopping a timer when it was not already
2346 running.
2347
2348 * timevar.c (timevar_stop): Enable start/stop timers to start again.
2349 (timevar_cond_start): New as above.
2350 (timevar_cond_stop): New as above.
2351
2352 * timevar.def: Add start/stop timers for compiler phases,
2353 TV_PHASE_SETUP, TV_PHASE_PARSING, TV_PHASE_DEFERRED, TV_PHASE_CGRAPH,
2354 TV_PHASE_DBGINFO (C), TV_PHASE_CHECK_DBGINFO (C++), TV_PHASE_GENERATE,
2355 and TV_PHASE_FINALIZE.
2356 Change push/pop timer TV_PARSE to TV_PARSE_GLOBAL.
2357 Add push/pop timers TV_PARSE_STRUCT, TV_PARSE_ENUM, TV_PARSE_FUNC,
2358 TV_PARSE_INLINE, TV_PARSE_INMETH, TV_TEMPLATE_INST.
2359 Change push/pop timer TV_NAME_LOOKUP into a start/stop timer.
2360 Make unused TV_OVERLOAD into a start/stop timer.
2361
2362 Remove unused timers TV_OVERLOAD, TV_TEMPLATE_INSTANTIATION.
2363 Mark the strings for TV_NAME_LOOKUP and TV_OVERLOAD with a "|"
2364 to indicate that they are start/stop timers.
2365
2366 * toplev.c (compile_file): Change TV_PARSE to TV_PARSE_GLOBAL.
2367 Add start/stop timers TV_PHASE_PARSING and TV_PHASE_GENERATE.
2368 Move initialization to do_compile.
2369 (do_compile): Add initialization from above.
2370 Add start/stop timers TV_PHASE_SETUP and TV_PHASE_FINALIZE.
2371
2372 * c-decl.c (c_write_global_declarations): Add start/stop of
2373 TV_PHASE_DEFERRED, TV_PHASE_CGRAPH, TV_PHASE_DBGINFO.
2374
2375 * c-parser.c (c_parser_declaration_or_fndef): Push/pop TV_PARSE_FUNC
2376 or TV_PARSE_INLINE, as appropriate.
2377 (c_parser_enum_specifier): Push/pop TV_PARSE_ENUM.
2378 (c_parser_struct_or_union_specifier): Push/pop TV_PARSE_STRUCT.
2379
3533b943
JM
23802011-05-02 Jason Merrill <jason@redhat.com>
2381
2382 PR c++/40975
2383 * tree-inline.c (copy_tree_r): Handle STATEMENT_LIST.
2384
2609a0ce
SM
23852011-05-02 Simon Martin <simartin@users.sourceforge.net>
2386
2387 PR c/35445
2388 * c-decl.c (finish_decl): Only create a composite if the types are
2389 compatible.
2390
6b0e4cbb
JM
23912011-05-02 Joseph Myers <joseph@codesourcery.com>
2392
2393 * config/fr30/fr30-protos.h (Mmode): Don't define.
2394 * config/m32r/m32r-protos.h (Mmode): Don't define. Expand
2395 definition where used.
2396 * config/mn10300/mn10300-protos.h (Mmode, Cstar, Rclas): Don't
2397 define. Expand definitions where used.
2398 * config/rx/rx-protos.h (Mmode, Fargs, Rcode): Don't define.
2399 Expand definitions where used.
2400 * config/rx/rx.c (rx_is_legitimate_address, rx_function_arg_size,
2401 rx_function_arg, rx_function_arg_advance,
2402 rx_function_arg_boundary): Expand definitions of those macros.
2403 * config/v850/v850-protos.h (Mmode): Don't define. Expand
2404 definition where used.
2405
4e938ce6
UB
24062011-05-02 Uros Bizjak <ubizjak@gmail.com>
2407
2408 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use %vmovq for
2409 reg<->xmm moves.
2410 (*mov<mode>_internal): Merge with *mov<mode>_internal_avx.
2411 (*movv2sf_internal_rex64): Use %vmovq for reg<->xmm moves. Merge
2412 with *movv2sf_internal_rex64_avx.
2413 (*movv2sf_internal): Merge with *movv2sf_internal_avx.
2414 * config/i386/i386.md (*movdi_internal_rex64) <TYPE_SSEMOV>:
2415 Use %v prefix in insn mnemonic to handle TARGET_AVX.
2416 (*movdi_internal): Add "isa" attribute. Use "maybe_vex" instead of
2417 "vex" in "prefix" attribute calculation.
2418 (*movdf_internal): Output AVX mnemonics. Add "prefix" attribute.
2419
36019c19
SH
24202011-05-02 Stuart Henderson <shenders@gcc.gnu.org>
2421
7a2f7208
UB
2422 PR target/47951
2423 * config/bfin/bfin.md (loop_end): Use matching constraints to ensure
2424 inputs match the output.
36019c19 2425
f69ea688
AS
24262011-05-02 Andreas Schwab <schwab@linux-m68k.org>
2427
2428 PR target/47955
2429 * config/m68k/m68k.c (m68k_expand_prologue): Set
2430 current_function_static_stack_size.
2431
c33406f5
JH
24322011-05-02 Jan Hubicka <jh@suse.cz>
2433
2434 * lto-streamer.c (lto_streamer_cache_insert_1,
2435 lto_streamer_cache_lookup, lto_streamer_cache_create,
2436 lto_streamer_cache_delete): Use pointer map instead of hashtable.
2437 * lto-streamer.h (lto_streamer_cache_d): Turn node_map into pointer_map.
2438
47c94d21
JM
24392011-05-02 Joseph Myers <joseph@codesourcery.com>
2440
2441 * config/m68k/genopt.sh, config/m68k/m68k-isas.def,
2442 config/m68k/m68k-microarchs.def, config/m68k/m68k-opts.h,
2443 config/m68k/t-opts: New files.
2444 * config/m68k/m68k-tables.opt: New file (generated).
2445 * config.gcc (fido-*-*, m68k-*-*): Add m68k/m68k-tables.opt to
2446 extra_options and m68k/t-opts to tmake_file.
2447 * config/m68k/m68k.c (m68k_library_id_string): More to m68k.opt.
2448 (all_isas): Initialize using m68k-isas.def.
2449 (all_microarchs): Initialize using m68k-microarchs.def.
2450 (m68k_find_selection): Remove.
2451 (m68k_handle_option): Don't assert that global structures are in
2452 use. Use error_at. Access variables via opts pointer. Don't
2453 handle -march=, -mcpu= and -mtune= here. Set gcc_options fields
2454 directly for -m68020-40 and -m68020-60.
2455 (m68k_option_override): Set m68k_arch_entry, m68k_cpu_entry and
2456 m68k_tune_entry here.
2457 * config/m68k/m68k.h (enum uarch_type, enum target_device): Move
2458 to m68k-opts.h.
2459 (m68k_library_id_string): Remove declaration.
4e938ce6 2460 * config/m68k/m68k.opt (config/m68k/m68k-opts.h): New HeaderInclude.
47c94d21
JM
2461 (m68k_library_id_string): New Variable.
2462 (march=, mcpu=, mtune=): Use Enum and Var.
2463
e562bf36
RG
24642011-05-02 Richard Guenther <rguenther@suse.de>
2465
2466 * varasm.c (output_constructor_regular_field): Compute zero-based
2467 index with double-ints. Make sure to ICE instead of producing
2468 wrong code.
2469 * cgraph.c (cgraph_add_thunk): Do not create new tree nodes
2470 in asserts. Properly use a signed type.
2471
6bec6c98
UB
24722011-05-02 Uros Bizjak <ubizjak@gmail.com>
2473
2474 * config/i386/sse.md (V): New mode iterator.
2475 (V_128): Rename from SSEMODE. Make V2DF mode conditional on
2476 TARGET_SSE2.
2477 (V_256): Rename from AVX256MODE.
2478 (VF): Make V4SF mode unconditional. Add TARGET_SSE instruction
2479 condition to all users.
2480 (VF1): Ditto.
2481 (VF2): Make V2DF mode unconditional. Add TARGET_SSE2 instruction
2482 condition to all users.
2483 (VF_128): Make V4SF mode unconditional.
2484 (VF_256): Rename from AVX256MODEF2P.
2485 (VI4F_128): Rename from SSEMODE4S.
2486 (VI8F_128): Rename from SSEMODE2D.
2487 (VI4F_256): Rename from AVX256MODE8P.
2488 (VI8F_256): Rename from AVX256MODE4P.
2489 (avxsizesuffix): Add V16HI, V4DI, V8HI and V2DI modes.
2490 (ssescalarmodesuffix): Remove SF and DF modes.
2491 (SSEMODE124): Remove.
2492 (SSEMODE1248): Ditto.
2493 (SSEMODEF2P): Ditto.
2494 (AVXMODEF2P): Ditto.
2495 (AVXMODEFDP): Ditto.
2496 (AVXMODEFSP): Ditto.
2497 (VEC_EXTRACT_MODE): Make V16QI, V8HI, V4SI, V2DI, V4SF and V2DF modes
2498 unconditional.
2499 (VEC_EXTRACT_EVENODD_MODE): Rename from SSEMODE_EO. Make V4SF mode
2500 unconditional.
2501 (xop_pcmov_<mode><avxsizesuffix>): Merge from xop_pcmov_<mode> and
2502 xop_pcmov_<mode>256. Use V mode iterator.
2503
2504 Adjust RTX patterns globally for renamed mode attributes.
2505
2dfdcb4b
UW
25062011-05-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2507
2508 * haifa-sched.c (sched_emit_insn): Emit insn before first
2509 non-scheduled insn. Inform back-end about new insn. Add
2510 new insn to scheduled_insns list.
2511
90bc4623
RG
25122011-05-02 Richard Guenther <rguenther@suse.de>
2513
2514 PR tree-optimization/48822
2515 * tree-ssa-sccvn.c (set_ssa_val_to): Never go up the lattice.
2516 (process_scc): Indicate which iteration we start.
2517
bc0fe8cb
JH
25182011-05-02 Jan Hubicka <jh@suse.cz>
2519
2520 * lto-section-in.c (lto_input_1_unsigned): Move to lto-streamer.h
2521 (lto_section_overrun): New.
2522 * lto-section-out.c (append_block): Rename to ...
2523 (lto_append_block): ... this one; export.
2524 (lto_output_1_stream): Move lto lto-streamer.h
2525 (lto_output_data_stream): Update.
2526 * lto-streamer.h (lto_section_overrun, lto_append_block): Declare.
2527 (lto_output_1_stream, lto_input_1_unsigned): Turn into inline
2528 functions.
2529
f070a9d1
RG
25302011-05-02 Richard Guenther <rguenther@suse.de>
2531
2532 * tree.c (tree_code_counts): New global array.
2533 (record_node_allocation_statistics): Count individual tree codes.
2534 (dump_tree_statistics): Dump individual code stats.
2535
09dfe187
JH
25362011-05-01 Jan Hubicka <jh@suse.cz>
2537
2538 * ipa-inline.c (caller_growth_limits): Fix thinko when
2539 looking for largest stack frame.
2540 * ipa-inline.h (dump_inline_summary): Declare.
2541 * ipa-inline-analysis.c (dump_inline_edge_summary): Dump info
2542 on stack usage.
2543 (dump_inline_summary): Export.
2544 (debug_inline_summary): Declare as DEBUG_FUNCTION.
2545
6f76a878
AS
25462011-05-01 Anatoly Sokolov <aesok@post.ru>
2547
2548 * reginfo.c (memory_move_cost): Change rclass argument type form
2549 'enum reg_class' to reg_class_t.
2550 * reload.h (memory_move_cost): Update prototype.
2551 * postreload.c reload_cse_simplify_set): Change type dclass var to
2552 reg_class_t.
2553 * ira-int.h (ira_allocate_cost_vector, ira_free_cost_vector):
2554 Update prototype.
2555 (ira_allocate_and_set_costs): Change aclass argument type form
2556 'enum reg_class' to reg_class_t.
6bec6c98 2557 * ira-build.c (ira_allocate_cost_vector, ira_free_cost_vector):
6f76a878
AS
2558 Change aclass argument type to reg_class_t.
2559 (update_conflict_hard_reg_costs): Change type aclass and pref vars
2560 to reg_class_t.
2561 * gcc/ira.c (setup_class_subset_and_memory_move_costs): Adjust
2562 memory_move_cost call.
2563
2564 * config/ia64/ia64.c (ia64_register_move_cost): Remove 'from' and
2565 'to' local var. Rename from_i and to_i arguments to 'from' and 'to'.
2566 Change type tmp var to reg_class_t.
2567
9a4ac625
JH
25682011-04-30 Jan Hubicka <jh@suse.cz>
2569
2570 * ipa-inline.c (can_inline_edge_p): Disregard limits when
2571 inlining into function with flatten attribute.
2572 (want_inline_small_function_p): Be more realistic about inlining
2573 cold calls where callee size grows.
2574
dd8352ee
JH
25752011-04-30 Jan Hubicka <jh@suse.cz>
2576
2577 * cgraph.c (cgraph_create_virtual_clone): Clear constructor/destructor
2578 flags.
2579
46e43d2b
AS
25802011-04-30 Anatoly Sokolov <aesok@post.ru>
2581
2582 * config/sparc/sparc.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS,
2583 PRINT_OPERAND_PUNCT_VALID_P): Remove.
2584 * config/sparc/sparc-protos.h (print_operand): Remove declaration.
2585 * config/sparc/sparc.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P,
2586 TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
2587 (print_operand): Rename to...
2588 (sparc_print_operand): ...this. Make static. Adjust
2589 sparc_print_operand function call.
2590 (sparc_print_operand_punct_valid_p, sparc_print_operand_address): New
2591 functions.
2592
ecb62563
JH
25932011-04-30 Jan Hubicka <jh@suse.cz>
2594
6bec6c98 2595 PR middle-end/48752
ecb62563
JH
2596 * ipa-inline.c (early_inliner): Disable when doing late
2597 addition of function.
2598
edb9b69e
JJ
25992011-04-30 Jakub Jelinek <jakub@redhat.com>
2600
be80a87e
JJ
2601 * dwarf2out.c (get_address_mode): New inline.
2602 (mem_loc_descriptor): Add MEM_MODE parameter, adjust recursive calls,
2603 if not dwarf_strict emit
2604 DW_OP_GNU_{{const,regval,deref}_type,convert,reinterpret} when
2605 desirable. Handle FLOAT_EXTEND, FLOAT_TRUNCATE, FLOAT,
2606 UNSIGNED_FLOAT, FIX and UNSIGNED_FIX. Just return NULL for
2607 FMA, STRICT_LOW_PART, CONST_VECTOR and CONST_FIXED.
2608 (dwarf2out_frame_debug_cfa_expression, reg_loc_descriptor,
2609 dw_loc_list_1, cst_pool_loc_descr, loc_list_from_tree): Adjust
2610 mem_loc_descriptor callers.
2611 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
2612 output_loc_operands_raw, hash_loc_operands, compare_loc_operands):
2613 Handle DW_OP_GNU_const_type, DW_OP_GNU_regval_type,
2614 DW_OP_GNU_deref_type, DW_OP_GNU_convert and DW_OP_GNU_reinterpret.
2615 (base_types): New variable.
2616 (get_base_type_offset, calc_base_type_die_sizes,
2617 base_type_for_mode, mark_base_types, base_type_cmp,
2618 move_marked_base_types): New functions.
2619 (calc_die_sizes): Assert that die_offset is 0 or equal to
2620 next_die_offset.
2621 (loc_descriptor): Only handle here lowpart SUBREGs of REG, for
2622 others defer to mem_loc_descriptor. Adjust mem_loc_descriptor
2623 callers. If not dwarf_strict, call mem_loc_descriptor even for
2624 non-MODE_INT modes or MODE_INT modes larger than DWARF2_ADDR_SIZE.
2625 (gen_subprogram_die): Don't give up on call site parameters
2626 with non-integral or large integral modes. Adjust
2627 mem_loc_descriptor callers.
2628 (prune_unused_types): Call prune_unused_types_mark on base_types
2629 vector entries.
2630 (resolve_addr): Call mark_base_types.
2631 (dwarf2out_finish): Call move_marked_base_types.
2632
edb9b69e
JJ
2633 PR tree-optimization/48809
2634 * tree-switch-conversion.c (build_arrays): Compute tidx in unsigned
2635 type.
2636 (gen_inbound_check): Don't compute index_expr - range_min in utype
2637 again, instead reuse SSA_NAME initialized in build_arrays.
2638 Remove two useless gsi_for_stmt calls.
2639
a6545a3d
JL
26402011-04-29 Jeff Law <law@redhat.com>
2641
2642 * tree-ssa-threadedge.c (thread_across_edge): Add missing return.
2643
af8bca3c
MJ
26442011-04-29 Martin Jambor <mjambor@suse.cz>
2645
2646 * cgraph.h (cgraph_postorder): Remove declaration.
2647 * ipa-utils.h (ipa_free_postorder_info): Declare.
2648 (ipa_reverse_postorder): Likewise.
2649 * cgraphunit.c: Include ipa-utils.h.
2650 (cgraph_expand_all_functions): Update call to ipa_reverse_postorder.
2651 * ipa-inline.c: Include ipa-utils.h.
2652 (ipa_inline): Update call to ipa_reverse_postorder.
2653 * ipa-pure-const.c (propagate_pure_const): Update call to
2654 ipa_reduced_postorder and ipa_print_order. Call
2655 ipa_free_postorder_info to clean up.
2656 (propagate_nothrow): Likewise.
2657 * ipa-reference.c (propagate): Removed a useless call to
2658 ipa_utils_reduced_inorder, updated a call to ipa_reduced_postorder
2659 and ipa_print_order. Call ipa_free_postorder_info to clean up.
2660 * ipa.c: Include ipa-utils.h.
2661 (ipa_profile): Update call to ipa_reverse_postorder.
2662 (cgraph_postorder): Moved to...
2663 * ipa-utils.c (ipa_reverse_postorder): ...here and renamed.
2664 (ipa_utils_print_order): Renamed to ipa_print_order.
2665 (ipa_utils_reduced_inorder): Renamed to ipa_reduced_postorder. Updated
2666 comments.
2667 (ipa_free_postorder_info): New function.
2668 * passes.c: Include ipa-utils.h.
2669 (do_per_function_toporder): Update call to ipa_reverse_postorder.
2670 (ipa_write_summaries): Likewise.
2671 * Makefile.in (passes.o): Add IPA_UTILS_H to dependencies.
2672 (cgraphunit.o): Likewise.
2673 (ipa.o): Likewise.
2674 (ipa-inline.o): Likewise.
2675
b15c64ee
JH
26762011-04-29 Jan Hubicka <jh@suse.cz>
2677
2678 * gcc.dg/tree-ssa/inline-10.c: New testcase.
2679 * gcc.dg/tree-ssa/inline-9.c: Disable partial inlining.
2680 * ipa-inline.h (clause_t): Turn into unsigned int.
2681 * ipa-inline-analysis.c (add_clause): Do more simplification.
2682 (and_predicates): Shortcut more cases.
2683 (predicates_equal_p): Move forward; check that clauses are properly
2684 ordered.
2685 (or_predicates): Shortcut more cases.
2686 (edge_execution_predicate): Rewrite as...
2687 (set_cond_stmt_execution_predicate): ... this function; handle
2688 __builtin_constant_p.
2689 (set_switch_stmt_execution_predicate): New .
2690 (compute_bb_predicates): New.
2691 (will_be_nonconstant_predicate): Update TODO.
2692 (estimate_function_body_sizes): Use compute_bb_predicates
2693 and free them later, always try to estimate if stmt is constant.
2694 (estimate_time_after_inlining, estimate_size_after_inlining):
2695 Gracefully handle optimized out edges.
2696 (read_predicate): Fix off by one error.
2697
a88fdc2a
NP
26982011-04-29 Nicola Pero <nicola.pero@meta-innovation.com>
2699
2700 * Makefile.in (ENABLE_MAINTAINER_RULES): New.
2701
d984c8ef
XDL
27022011-04-27 Xinliang David Li <davidxl@google.com>
2703
2704 * tree-profile.c (init_ic_make_global_vars): Set
2705 tls attribute on ic vars.
2706 * coverage.c (coverage_end_function): Initialize
2707 function_list with zero.
2708
45a2c477
RG
27092011-04-29 Richard Guenther <rguenther@suse.de>
2710
2711 * builtins.c (fold_builtin_classify_type): Use integer_type_node
2712 for the type of the result.
2713 (fold_builtin_isascii): Likewise.
2714 (fold_builtin_toascii): Use integer_type_node where appropriate.
2715 (fold_builtin_logb): Likewise.
2716 (fold_builtin_frexp): Likewise.
2717 (fold_builtin_strstr): Likewise.
2718 (fold_builtin_strpbrk): Likewise.
2719 (fold_builtin_fputs): Likewise.
2720 (fold_builtin_sprintf): Likewise.
2721 (fold_builtin_snprintf): Likewise.
2722 (fold_builtin_printf): Likewise.
2723 (do_mpfr_remquo): Use a proper type for the assigned constant.
2724 (do_mpfr_lgamma_r): Likewise.
2725 * dwarf2out.c (resolve_one_addr): Use size_int.
2726 * except.c (init_eh): Likewise.
2727 (assign_filter_values): Use integer_type_node for filter values.
2728 (sjlj_emit_dispatch_table): Use integer_type_node for dispatch
2729 indices.
2730 * tree-cfg.c (move_stmt_eh_region_tree_nr): Use integer_type_node
2731 for EH region numbers.
2732 * tree-vrp.c (simplify_div_or_mod_using_ranges): Use integer_type_node
2733 for the shift amount.
2734
eb6c3df1
RG
27352011-04-29 Richard Guenther <rguenther@suse.de>
2736
2737 * expr.h (expand_shift): Rename to ...
2738 (expand_variable_shift): ... this.
2739 (expand_shift): Take a constant shift amount.
2740 * expmed.c (expand_shift): Rename to ...
2741 (expand_variable_shift): ... this.
2742 (expand_shift): New wrapper around expand_variable_shift.
2743 * expr.c (convert_move, emit_group_load_1, emit_group_store,
2744 optimize_bitfield_assignment_op, store_field, expand_expr_real_2,
2745 expand_expr_real_1, reduce_to_bit_field_precision): Adjust.
2746 * expmed.c (store_fixed_bit_field, extract_bit_field_1,
2747 extract_fixed_bit_field, extract_split_bit_field, expand_mult_const,
2748 expand_mult, expand_widening_mult, expand_mult_highpart_adjust,
2749 extract_high_half, expand_sdiv_pow2, expand_divmod, emit_cstore,
2750 emit_store_flag_1, emit_store_flag): Likewise.
2751 * builtins.c (expand_builtin_signbit): Likewise.
2752 * calls.c (load_register_parameters): Likewise.
2753 * function.c (assign_parm_setup_block): Likewise.
2754 * lower-subreg.c (resolve_shift_zext): Likewise.
2755 * optabs.c (widen_bswap, expand_abs_nojump,
2756 expand_one_cmpl_abs_nojump, expand_float): Likewise.
2757 * spu/spu.c (spu_expand_extv): Likewise.
2758 * sparc/sparc.c (sparc32_initialize_trampoline): Likewise.
2759
9f616812
RG
27602011-04-29 Richard Guenther <rguenther@suse.de>
2761
2762 * tree-inline.c (remap_eh_region_tree_nr): Use integer_type_node
2763 for the remapped region number.
2764 * predict.c (build_predict_expr): Use integer_type_node for the
2765 predict kind.
2766 * fold-const.c (fold_binary_loc): Use integer_type_node for
2767 the shift amount. Use a proper type for the PLUS_EXPR operand.
2768
b823cdfe
MM
27692011-04-29 Michael Matz <matz@suse.de>
2770
2771 * lto-streamer.c (lto_streamer_cache_insert_1): Accept to override
2772 other trees that just builtins.
2773 (lto_record_common_node): Don't leave NULL TYPE_CANONICAL.
2774
413581ba
RG
27752011-04-29 Richard Guenther <rguenther@suse.de>
2776
2777 * tree-nested.c (get_trampoline_type): Use size_int.
2778 (get_nl_goto_field): Likewise.
2779 * tree-eh.c (lower_try_finally_switch): Use integer_type_node
2780 for all indexes.
2781 (lower_eh_constructs_2): Likewise.
2782 (lower_resx): Likewise.
2783 (lower_eh_dispatch): Likewise.
2784 * tree-mudflap.c (mf_build_string): Use size_int.
2785 (mudflap_register_call): Use integer_type_node for the flag.
2786 (mudflap_enqueue_constant): Use size_int.
2787 * tree-chrec.c (reset_evolution_in_loop): Copy CHREC_VAR
2788 instead of rebuilding it.
2789
5c04e9f4
RG
27902011-04-29 Richard Guenther <rguenther@suse.de>
2791
2792 * tree-ssa-structalias.c (get_fi_for_callee): Restructure.
2793 Handle OBJ_TYPE_REF.
2794 (find_func_aliases_for_call): Use it more consistently.
2795
5c24671b
AO
27962011-04-29 Alexandre Oliva <aoliva@redhat.com>
2797
2798 * haifa-sched.c (last_nondebug_scheduled_insn): New.
2799 (rank_for_schedule): Use it.
2800 (schedule_block): Set it.
2801
10adac51
XDL
28022011-04-28 David Li <davidxl@google.com>
2803
2804 * tree.c (crc32_string): Use crc32_byte.
2805 (crc32_byte): New function.
2806 * tree.h (crc32_byte): New function.
2807 * gcov.c (read_graph_file): Handle new cfg_cksum.
2808 (read_count_file): Ditto.
2809 * profile.c (instrument_values): Ditto.
2810 (get_exec_counts): Ditto.
2811 (read_profile_edge_counts): Ditto.
2812 (compute_branch_probabilities): Ditto.
2813 (compute_value_histograms): Ditto.
2814 (branch_prob): Ditto.
2815 (end_branch_prob): Ditto.
2816 * coverage.c (read_counts_file): Ditto.
2817 (get_coverage_counts): Ditto.
2818 (tree_coverage_counter_addr): Ditto.
2819 (coverage_checksum_string): Ditto.
2820 (coverage_begin_output): Ditto.
2821 (coverage_end_function): Ditto.
2822 (build_fn_info_type): Ditto.
2823 (build_fn_info_value): Ditto.
2824 * libgcov.c (gcov_exit): Ditto.
2825 * gcov-dump.c (tag_function): Ditto.
2826 (compute_checksum): Remove.
2827
5d6358a5
AM
28282011-04-29 Alan Modra <amodra@gmail.com>
2829
2830 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
2831 unspec plus offset. Tidy macho code.
2832
85ad2ef5
MJ
28332011-04-29 Martin Jambor <mjambor@suse.cz>
2834
2835 * cgraphunit.c (cgraph_preserve_function_body_p): Accept a cgraph
2836 node instead of a decl. Update all callers.
2837 * cgraph.h: Update declaration.
2838
437f4a00
IR
28392011-04-28 Ira Rosen <ira.rosen@linaro.org>
2840
2841 PR tree-optimization/48765
2842 * tree-vectorizer.h (vect_make_slp_decision): Return bool.
2843 * tree-vect-loop.c (vect_analyze_loop_operations): Add new argument
2844 to indicate if loop aware SLP is being used. Scan the statements
2845 and update the vectorization factor according to the type of
2846 vectorization before statement analysis.
2847 (vect_analyze_loop_2): Get a return value from vect_make_slp_decision,
2848 pass it to vect_analyze_loop_operations.
2849 (vectorizable_reduction): Set number of copies to 1 in case of pure
2850 SLP statement.
2851 * tree-vect-stmts.c (vectorizable_conversion,
2852 vectorizable_assignment, vectorizable_shift,
2853 vectorizable_operation, vectorizable_type_demotion,
2854 vectorizable_type_promotion, vectorizable_store, vectorizable_load):
2855 Likewise.
2856 (vectorizable_condition): Move the check that it is not SLP
2857 vectorization before the number of copies check.
2858 * tree-vect-slp.c (vect_make_slp_decision): Return TRUE if decided
2859 to vectorize the loop using SLP.
2860
c6fc44f3
JJ
28612011-04-28 Jakub Jelinek <jakub@redhat.com>
2862
2863 PR middle-end/48597
2864 * final.c (final_scan_insn): Call dwarf2out_frame_debug even for
2865 inline asm.
2866
6c0170ea
JM
28672011-04-28 Joseph Myers <joseph@codesourcery.com>
2868
2869 * config.gcc (*-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* |
2870 *-*-kopensolaris*-gnu): Don't define SINGLE_LIBC.
2871 (i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
2872 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
2873 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Don't use
2874 linux*.h headers.
6bec6c98 2875 * config/gnu-user.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Define.
6c0170ea
JM
2876 * config/i386/gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2877 * config/i386/kfreebsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
2878 * config/i386/knetbsd-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6bec6c98 2879 * config/i386/kopensolaris-gnu.h (MD_UNWIND_SUPPORT): Don't undefine.
6c0170ea
JM
2880 * config/i386/linux-unwind.h (x86_fallback_frame_state): Don't use
2881 REG_NAME.
2882 * config/i386/linux.h (REG_NAME): Don't define.
2883 * config/i386/linux64.h (REG_NAME): Don't define.
2884 * config/linux.h (TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS):
2885 Undefine before defining.
2886
970dabbd
JH
28872011-04-28 Jan Hubicka <jh@suse.cz>
2888
6bec6c98
UB
2889 * ipa-inline-analysis.c (will_be_nonconstant_predicate): Take
2890 nonconstant_names array.
970dabbd
JH
2891 (estimate_function_body_sizes): Build nonconstant_names array; handle
2892 BUILT_IN_CONSTANT_P.
2893
8d3e3924
RG
28942011-04-28 Richard Guenther <rguenther@suse.de>
2895
2896 PR bootstrap/48804
2897 Revert
2898 2011-04-28 Richard Guenther <rguenther@suse.de>
2899
2900 * tree-ssa-structalias.c (solve_constraints): Build succ graph
2901 as late as possible.
6bec6c98 2902
8576f20a
RG
29032011-04-28 Richard Guenther <rguenther@suse.de>
2904
2905 * tree-ssa-structalias.c (dump_constraint): Don't end the line.
2906 (debug_constraint): Do it here.
2907 (dump_constraints): And here.
2908 (rewrite_constraints): And here.
2909 (dump_constraint_edge): Remove.
2910 (dump_constraint_graph): Rewrite to produce DOT output.
2911 (solve_constraints): Build succ graph as late as possible.
2912 Dump constraint graphs before and after solving.
2913
e38811ce
RG
29142011-04-28 Richard Guenther <rguenther@suse.de>
2915
2916 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2917 New function split out from ...
2918 (find_func_aliases): ... here. Call it.
2919 (find_func_aliases_for_call): Likewise.
2920
fbaf0d0c
GDR
29212011-04-27 Gabriel Dos Reis <gdr@integrable-solutions.net>
2922
2923 * internal-fn.h (internal_fn_name_array): Declare.
2924 (internal_fn_flags_array): Likewise.
2925
cbb734aa
UB
29262011-04-27 Uros Bizjak <ubizjak@gmail.com>
2927
2928 * config/i386/i386.md (ssemodesuffix): Merge with ssevecsize,
2929 ssemodefsuffix, ssescalarmodesuffix and avxmodesuffixp.
2930 Move from sse.md.
2931 (ssemodefsuffix): Remove.
2932 (ssevecmodesuffix): New mode attribute.
2933 (fix_trunc<mode>di_sse, fix_trunc<mode>si_sse,
2934 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
2935 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
2936 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
2937 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit, setcc_<mode>_sse,
2938 *sqrt<mode>2_sse, sse4_1_round<mode>2, <smaxmin:code><mode>3,
2939 *ieee_smin<mode>3, *ieee_smax<mode>3): Adjust assembler templates for
2940 ssemodesuffix mode attribute.
2941 (float splitters): Use ssevecmodesuffix mode attribute.
2942 * config/i386/sse.md (ssescalarmode): Merge with avxscalarmode.
2943 (sseinsmode): Rename from avxvecmode.
2944 (avxsizesuffix): Rename from avxmodesuffix.
2945 (sseintvecmode): Rename from avxpermvecmode.
2946 (ssedoublevecmode): Rename from ssedoublesizemode.
2947 (ssehalfvecmode): Rename from avxhalfvecmode.
2948 (ssescalarmode): Rename from avxscalarmode.
2949 (<sse>_comi, <sse>_ucomi, sse4a_movnt<mode>): Adjust assembler
2950 templates for ssemodesuffix mode attribute.
2951 (*andnot<mode>3, *<any_logic:code><mode>3): Use ssevecmodesuffix
2952 mode attribute.
2953
2954 Adjust RTX patterns globally for renamed mode attributes.
2955
991278ab
JH
29562011-04-27 Jan Hubcika <jh@suse.cz>
2957
2958 * ipa-inline.h (struct inline_edge_summary): Add predicate pointer.
2959 * ipa-inline-analysis.c: Include alloc-pool.h.
2960 (edge_predicate_pool): New.
2961 (trye_predicate_p): New function
2962 (false_predicate_p): New function.
2963 (add_clause): Sanity check that false clauses are "optimized";
2964 never add clauses to predicate that is already known to be false.
2965 (and_predicate): Use flase_predicate_p.
2966 (evaulate_predicate): Rename to ...
2967 (evaluate_predicate): ... this one; update all callers; assert
2968 that false is not listed among possible truths.
2969 (dump_predicate): Use true_predicate_p.
2970 (account_size_time): Use false_predicate_p.
2971 (evaulate_conditions_for_edge): Rename to ...
2972 (evaluate_conditions_for_edge) ... this one.
2973 (edge_set_predicate): New function.
2974 (inline_edge_duplication_hook): Duplicate edge predicates.
2975 (inline_edge_removal_hook): Free edge predicates.
cbb734aa 2976 (dump_inline_edge_summary): Add INFO parameter; dump edge predicates.
991278ab
JH
2977 (dump_inline_summary): Update.
2978 (estimate_function_body_sizes): Set edge predicates.
2979 (estimate_calls_size_and_time): Handle predicates.
2980 (estimate_callee_size_and_time): Update.
2981 (remap_predicate): Add toplev_predicate; update comment.
2982 (remap_edge_predicates): New function.
2983 (inline_merge_summary): Compute toplev predicate; update.
2984 (read_predicate): New function.
2985 (read_inline_edge_summary): Use it.
2986 (inline_read_section): Likewise.
2987 (write_predicate): New function.
2988 (write_inline_edge_summary): Use it.
2989 (inline_write_summary): Likewise.
2990 (inline_free_summary): Free alloc pool and edge summary vec.
2991
648b5f85
RG
29922011-04-27 Richard Guenther <rguenther@suse.de>
2993
2994 * tree-ssa-structalias.c (changed_count): Remove.
2995 (changed): Use a bitmap.
2996 (unify_nodes): Adjust.
2997 (do_sd_constraint): Likewise.
2998 (do_ds_constraint): Likewise.
2999 (do_complex_constraint): Likewise.
3000 (solve_graph): Likewise.
3001
4d5dcfb2
JH
30022011-04-27 Jan Hubicka <jh@suse.cz>
3003
3004 * cgraphunit.c (cgraph_process_new_functions): Fix ordering issue.
3005
200eb7d2
UB
30062011-04-27 Uros Bizjak <ubizjak@gmail.com>
3007
3008 * config/i386/predicates.md (avx_vpermilp_*_operand): Remove.
3009 (avx_vperm2f128_*_operand): Ditto.
3010 * config/i386/sse.md (*avx_vpermilp<mode>): Remove operand2 predicate.
3011 Use avx_vpermilp_parallel in insn condition.
3012 (*avx_vperm2f128<mode>_nozero): Remove operand3 predicate.
3013 Use avx_vperm2f128_parallel in insn condition.
3014
7d6e2521
RG
30152011-04-27 Richard Guenther <rguenther@suse.de>
3016
3017 * Makefile.in (tree-ssa-structalias.o): Remove
3018 gt-tree-ssa-structalias.h dependency.
3019 (GTFILES): Remove tree-ssa-structalias.c.
3020 * tree.c (allocate_decl_uid): New function.
3021 (make_node_stat): Use it.
3022 (copy_node_stat): Likewise.
3023 * tree.h (allocate_decl_uid): Declare.
3024 * tree-ssa-alias.h (delete_alias_heapvars): Remove.
3025 * tree-ssa.c (delete_tree_ssa): Do not call delete_alias_heapvars.
3026 * tree-flow.h (struct var_ann_d): Remove is_heapvar flag.
200eb7d2 3027 * tree-ssa-live.c (remove_unused_locals): Do not check is_heapvar flag.
7d6e2521
RG
3028 * tree-ssa-structalias.c (heapvar_for_stmt): Remove.
3029 (struct heapvar_map): Likewise.
3030 (heapvar_map_eq, heapvar_map_hash, heapvar_lookup,
3031 heapvar_insert): Likewise.
3032 (make_heapvar_for): Rename to ...
3033 (make_heapvar): ... this. Simplify.
3034 (fake_var_decl_obstack): New global var.
3035 (build_fake_var_decl): New function.
3036 (make_constraint_from_heapvar): Adjust.
3037 (handle_lhs_call): Likewise.
3038 (create_function_info_for): Likewise.
3039 (intra_create_variable_infos): Likewise.
3040 (init_alias_vars): Allocate fake_var_decl_obstack.
3041 (init_alias_heapvars, delete_alias_heapvars): Remove.
3042 (compute_points_to_sets): Do not call init_alias_heapvars.
3043 (ipa_pta_execute): Likewise.
3044 (delete_points_to_sets): Free fake_var_decl_obstack.
3045
526ed6c2
UW
30462011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3047
3048 * config/spu/divmovti4.c (union qword_UTItype): New data type.
3049 (si_from_UTItype, si_to_UTItype): New functions.
3050 (__udivmodti4): Use them to implement type-punning.
3051 * config/spu/multi3.c (union qword_TItype): New data type.
3052 (si_from_TItype, si_to_TItype): New functions.
3053 (__multi3): Use them to implement type-punning.
3054
c187d33c
UW
30552011-04-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3056
3057 * config/spu/spu.c (spu_expand_epilogue): Do not emit barrier.
3058
40982661
JH
30592011-04-27 Jan Hubicka <jh@suse.cz>
3060
3061 * ipa-prop.c (function_insertion_hook_holder): New holder.
3062 (ipa_add_new_function): New function.
200eb7d2
UB
3063 (ipa_register_cgraph_hooks, ipa_unregister_cgraph_hooks):
3064 Register/deregister holder.
40982661 3065
9aef53ee
RG
30662011-04-27 Richard Guenther <rguenther@suse.de>
3067
3068 PR tree-optimization/48772
200eb7d2 3069 * tree-ssa-pre.c (eliminate): Update call stmts after elimination only.
9aef53ee 3070
f63d806d
RG
30712011-04-27 Richard Guenther <rguenther@suse.de>
3072
3073 * tree-ssa-alias.c (indirect_refs_may_alias_p): Fix
3074 TARGET_MEM_REF handling.
3075
e1ea7451
NC
30762011-04-27 Nick Clifton <nickc@redhat.com>
3077
9b5db25d
NC
3078 * config/frv/frv.h (enum reg_class): Delete EVEN_ACC_REGS,
3079 ACC_REGS, FEVEN_REGS, FPR_REGS, EVEN_REGS.
3080 (REG_CLASS_NAMES): Likewise.
3081 (REG_CLASS_CONTENTS): Likewise.
3082 (EVEN_ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3083 (ACC_REGS): New macro. Alias for QUAD_ACC_REGS.
3084 (FEVEN_REGS): New macro. Alias for QUAD_ACC_REGS.
3085 (FPR_REGS): New macro. Alias for QUAD_ACC_REGS.
3086 (EVEN_REGS): New macro. Alias for QUAD_REGS.
3087 * config/frv/frv.c (frv_secondary_reload_class): Remove use of
3088 duplicate register classes.
97d20907 3089 (frv_class_likely_spilled_p): Likewise.
9b5db25d
NC
3090 (frv_register_move_cost): Likewise.
3091
e1ea7451
NC
3092 * config/mcore/mcore.h (REGNO_REG_CLASS): Do not index beyond the
3093 end of the regno_reg_class array.
3094
5c2f94b4
JJ
30952011-04-27 Jakub Jelinek <jakub@redhat.com>
3096
3097 PR c/48742
3098 * c-typeck.c (build_binary_op): Don't wrap arguments if
3099 int_operands is true.
3100
57a944d7
KK
31012011-04-26 Kaz Kojima <kkojima@gcc.gnu.org>
3102
3103 PR target/48767
3104 * config/sh/sh.c (sh_gimplify_va_arg_expr): Don't call
3105 targetm.calls.must_pass_in_stack for void type.
3106
898b8927
JH
31072011-04-26 Jan Hubicka <jh@suse.cz>
3108
3109 * cgraphbuild.c (build_cgraph_edges): Update call
3110 of cgraph_create_edge and cgraph_create_indirect_edge.
3111 * cgraph.c (cgraph_create_edge_including_clones,
3112 cgraph_create_edge_1, cgraph_allocate_init_indirect_info,
3113 cgraph_update_edges_for_call_stmt_node): Do not take nest
3114 argument; do not initialize call_stmt_size/time.
3115 (dump_cgraph_node): Do not dump nest.
3116 (cgraph_clone_edge): Do not take loop_nest argument;
3117 do not propagate it; do not clone call_stmt_size/time.
3118 (cgraph_clone_node): Likewise.
3119 (cgraph_create_virtual_clone): Update.
3120 * cgraph.h (struct cgraph_edge): Remove
3121 call_stmt_size/call_stmt_time/loop_nest.
3122 (cgraph_create_edge, cgraph_create_indirect_edge,
3123 cgraph_create_edge_including_clones, cgraph_clone_node): Update
3124 prototype.
3125 * tree-emutls.c (gen_emutls_addr): Update.
3126 * ipa-inline-transform.c (update_noncloned_frequencies): Do not handle
3127 loop_nest; handle indirect calls, too.
3128 (clone_inlined_nodes): Do not care about updating inline summaries.
3129 * cgraphunit.c (cgraph_copy_node_for_versioning): Update.
3130 * lto-cgraph.c (lto_output_edge, input_node, input_edge): Do not
3131 stream call_stmt_size/call_stmt_time/loop_nest.
3132 * ipa-inline.c (edge_badness): Update.
3133 (ipa_inline): dump summaries after inlining.
3134 * ipa-inline.h (struct inline_edge_summary, inline_edge_summary_t):
200eb7d2 3135 New.
898b8927
JH
3136 (inline_edge_summary): New function.
3137 * ipa-inline-analysis.c (edge_duplication_hook_holder): New holder.
3138 (inline_edge_removal_hook): Handle edge summaries.
3139 (inline_edge_duplication_hook): New hook.
3140 (inline_summary_alloc): Alloc hooks.
3141 (initialize_growth_caches): Do not register removal hooks.
3142 (free_growth_caches); Do not free removal hook.
3143 (dump_inline_edge_summary): New function.
3144 (dump_inline_summary): Use it.
3145 (estimate_function_body_sizes, estimate_edge_size_and_time): Update.
3146 (inline_update_callee_summaries): New function.
3147 (inline_merge_summary): Use it.
3148 (do_estimate_edge_time, do_estimate_edge_growth): Update.
3149 (read_inline_edge_summary): New function.
3150 (inline_read_section): Use it.
3151 (write_inline_edge_summary): New function.
3152 (inline_write_summary): Use it.
3153 (inline_free_summary): Free edge new holders.
3154 * tree-inline.c (copy_bb): Update.
3155
ffa03772
JM
31562011-04-26 Jason Merrill <jason@redhat.com>
3157
3158 * tree-eh.c (lower_try_finally_switch): Create the label along with
3159 the CASE_LABEL_EXPR.
3160
6d7b45ad
DM
31612011-04-26 David S. Miller <davem@davemloft.net>
3162 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3163
3164 * configure.ac (gcc_cv_as_sparc_gotdata_op): Specify alignment.
3165 * configure: Regenerate.
3166
df10b6d4
MM
31672011-04-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3168
3169 PR target/48258
3170 * config/rs6000/vector.md (UNSPEC_REDUC): New unspec for vector
3171 reduction.
3172 (VEC_reduc): New code iterator and splitters for vector reduction.
3173 (VEC_reduc_name): Ditto.
3174 (VEC_reduc_rtx): Ditto.
3175 (reduc_<VEC_reduc_name>_v2df): Vector reduction expanders for VSX.
3176 (reduc_<VEC_reduc_name>_v4sf): Ditto.
3177
3178 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
3179 support for extracting SF on VSX.
3180
3181 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): New insn for
3182 generating xscvspdp.
3183 (vsx_extract_v4sf): New insn to extract SF from V4SF vector.
3184 (vsx_reduc_<VEC_reduc_name>_v2df): New insns and splitters for
3185 double add, minimum, maximum vector reduction.
3186 (vsx_reduc_<VEC_reduc_name>_v4sf): Ditto.
3187 (vsx_reduc_<VEC_reduc_name>_v2df2_scalar): New combiner insn to
3188 optimize double vector reduction.
3189 (vsx_reduc_<VEC_reduc_name>_v4sf_scalar): Ditto.
3190
35a5db04
JM
31912011-04-26 Joseph Myers <joseph@codesourcery.com>
3192
3193 * config/fr30/fr30.h (inhibit_libc): Don't define.
3194 * config/m32r/m32r-protos.h: Correct comment.
3195 * config/v850/v850.h (GHS_default_section_names,
3196 GHS_current_section_names): Use tree, not union tree_node *.
3197
2f964ad6
XDL
31982011-04-26 Xinliang David Li <davidxl@google.com>
3199
200eb7d2 3200 * tree-ssa-uninit.c (warn_uninitialized_phi): Pass warning code.
2f964ad6
XDL
3201 * c-family/c-opts.c (c_common_handle_option): Set
3202 warn_maybe_uninitialized.
3203 * opts.c (common_handle_option): Ditto.
3204 * common.opt: New option.
3205 * tree-ssa.c (warn_uninit): Add one more parameter.
3206 (warn_uninitialized_var): Pass warning code.
3207 * tree-flow.h: Interface change.
3208
3209
9c7bd91a
RO
32102011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3211
200eb7d2 3212 * config/mips/iris6.h (LOCAL_LABEL_PREFIX): Don't test TARGET_NEWABI.
9c7bd91a
RO
3213 (WINT_TYPE_SIZE): Use INT_TYPE_SIZE.
3214 (TARGET_OS_CPP_BUILTINS): Remove TARGET_IRIX6 guards.
3215
c2f36e21
RO
32162011-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3217
3218 * config/mips/mips.h (DBX_OUTPUT_SOURCE_LINE): Remove.
3219 * config/mips/mips.opt (mmips-tfile): Remove.
3220
3221 * doc/install.texi (Specific, mips-*-*): Move mips-tfile,
3222 mips-tdump reference to ...
200eb7d2 3223 (Specific, alpha*-dec-osf5.1): ... here. Adapt for Tru64 UNIX.
c2f36e21
RO
3224 * doc/trouble.texi (Cross-Compiler Problems): Replace MIPS
3225 reference by Tru64 UNIX.
3226
2c9da85b
JJ
32272011-04-26 Jakub Jelinek <jakub@redhat.com>
3228
0c5f6539
JJ
3229 PR debug/48768
3230 * tree-ssa.c (insert_debug_temp_for_var_def): If degenerate_phi_result
3231 is error_mark_node, set value to NULL.
3232
2c9da85b
JJ
3233 PR tree-optimization/48734
3234 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Give up
3235 if return value from maybe_fold_*_comparsions isn't something
3236 the code is prepared to handle.
3237
77fa1d54
UB
32382011-04-26 Uros Bizjak <ubizjak@gmail.com>
3239
3240 * config/i386/predicates.md (ext_QIreg_operand): Remove extra
3241 mode check.
3242 (ext_QIreg_nomode_operands): Remove.
3243 * config/i386/i386.md (*anddi_1): Use ext_QIreg_operand.
3244 (*andsi_1): Ditto.
3245 (*andhi_1): Ditto.
3246
0e2a6c2b
AS
32472011-04-26 Andrew Stubbs <ams@codesourcery.com>
3248
3249 * config/arm/arm.c (arm_gen_constant): Remove can_negate_initial.
3250
961562d8
RB
32512011-04-26 Richard Guenther <rguenther@suse.de>
3252
3253 * c-typeck.c (build_unary_op): Do not expand array-refs via
3254 pointer arithmetic. Only adjust qualifiers for function types.
3255
32562011-04-26 Richard Guenther <rguenther@suse.de>
3257
3258 PR middle-end/48694
3259 * tree.h (OEP_CONSTANT_ADDRESS_OF): New operand_equal_flag.
3260 * fold-const.c (operand_equal_p): For TREE_CONSTANT ADDR_EXPRs
77fa1d54
UB
3261 compare the operands with OEP_CONSTANT_ADDRESS_OF. Treat trees
3262 with TREE_SIDE_EFFECTS equal when OEP_CONSTANT_ADDRESS_OF is set.
961562d8 3263
a0d260fc
PC
32642011-04-25 Paolo Carlini <paolo.carlini@oracle.com>
3265
6bec6c98 3266 * doc/extend.texi: Document __underlying_type.
a0d260fc 3267
4d583bb9
SB
32682011-04-25 Segher Boessenkool <segher@kernel.crashing.org>
3269
3270 * config/rs6000/titan.md (automata_option "progress"): Remove.
3271
1f3fcdc3
JL
32722011-04-25 Jeff Law <law@redhat.com>
3273
3274 * tree-vrp.c (identify_jump_threads): Handle GIMPLE_SWITCH too.
3275
e5b0dad8
JK
32762011-04-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3277
3278 * system.h (ENUM_BITFIELD): Remove.
3279
5157a881 32802011-04-25 Maxim Kuvyrkov <maxim@codesourcery.com>
b15eacc7 3281 Eric Botcazou <ebotcazou@adacore.com>
5157a881
MK
3282
3283 * combine.c (combine_simplify_rtx): Avoid mis-simplifying conditionals
3284 for STORE_FLAG_VALUE==-1 case.
3285
ed4c109e
RS
32862011-04-24 Richard Sandiford <richard.sandiford@linaro.org>
3287
3288 PR target/43804
3289 * config/m68k/constraints.md (T): Allow PIC operands that satisfy
3290 LEGITIMATE_PIC_OPERAND_P.
3291
f3181aa2
JH
32922011-04-24 Jan Hubicka <jh@suse.cz>
3293
3294 * ipa-prop.c (ipa_propagate_indirect_call_infos): Remove obsolette
3295 WPA hack.
77fa1d54
UB
3296 * ipa-prop.h (ipa_get_param, ipa_is_param_used,
3297 ipa_param_cannot_devirtualize_p, ipa_param_types_vec_empty,
3298 ipa_get_ith_jump_func, ipa_get_lattice): Fortify array bounds.
f3181aa2
JH
3299 * ipa-inline-analysis.c (add_clause): Fix clause ordering.
3300 (and_predicates, or_predicates, predicates_equal_p, evaulate_predicate):
3301 Sanity check predicate length.
3302 (remap_predicate): Likewise; sanity check jump functions.
3303 (inline_read_section, inline_write_summary): Sanity check
3304 predicate length.
3305
5307cbaa
PC
33062011-04-24 Paolo Carlini <paolo.carlini@oracle.com>
3307
3308 PR other/48748
3309 * doc/extend.texi (Type Traits): Document __is_standard_layout,
3310 __is_literal_type, and __is_trivial; update throughout about
3311 possibly cv-qualified void types.
3312
bebd5f99
GP
33132011-04-24 Gerald Pfeifer <gerald@pfeifer.com>
3314
3315 * doc/sourcebuild.texi (Ada Tests): Adjust reference to ACATS
3316 testsuite and make it version agnostic.
3317
7ee28a74
JH
33182011-04-22 Jan Hubicka <jh@suse.cz>
3319
3320 * ipa-inline-analysis.c (inline_write_summary): Fix thinko.
3321
16997bc0
JJ
33222011-04-23 Jakub Jelinek <jakub@redhat.com>
3323
3324 PR c/48685
3325 * fold-const.c (fold_convert_loc): Add NOP_EXPR when casting
3326 to VOID_TYPE even around MODIFY_EXPR.
3327
f94d4ab1
MS
33282011-04-22 Mike Stump <mikestump@comcast.net>
3329
1a84c183 3330 * gensupport.c (read_md_rtx): Fix typo in comment.
f94d4ab1
MS
3331 * config/cris/cris.opt (moverride-best-lib-options): Fix typo in
3332 comment.
3333
632b4f8e
JH
33342011-04-22 Jan Hubicka <jh@suse.cz>
3335
3336 * gengtype.c (open_base_files): Add ipa-inline.h include.
77fa1d54
UB
3337 * ipa-cp.c (ipcp_get_lattice, ipcp_lattice_from_jfunc): Move to
3338 ipa-prop.c; update all uses.
632b4f8e 3339 * ipa-prop.c: (ipa_get_lattice, ipa_lattice_from_jfunc): ... here.
77fa1d54
UB
3340 * ipa-inline-transform.c (inline_call): Use inline_merge_summary to
3341 merge summary of inlined function into former caller.
632b4f8e
JH
3342 * ipa-inline.c (max_benefit): Remove.
3343 (edge_badness): Compensate for removal of benefits.
77fa1d54
UB
3344 (update_caller_keys): Use
3345 reset_node_growth_cache/reset_edge_growth_cache.
632b4f8e
JH
3346 (update_callee_keys): Likewise.
3347 (update_all_callee_keys): Likewise.
77fa1d54
UB
3348 (inline_small_functions): Do not collect max_benefit; do not reset
3349 estimated_growth; call free_growth_caches and initialize_growth_caches.
3350 * ipa-inline.h (struct condition, type clause_t, struct predicate,
3351 struct size_time_entry): New structures.
632b4f8e 3352 (INLINE_SIZE_SCALE, INLINE_TIME_SCALE, MAX_CLAUSES): New constants.
77fa1d54
UB
3353 (inline_summary): Remove size_inlining_benefit, time_inlining_benefit
3354 and estimated_growth.
632b4f8e
JH
3355 (edge_growth_cache_entry): New structure.
3356 (node_growth_cache, edge_growth_cache): New global vars.
3357 (estimate_growth): Turn into inline.
3358 (inline_merge_summary, do_estimate_edge_growth, do_estimate_edge_time,
3359 initialize_growth_caches, free_growth_caches): Declare.
3360 (estimate_edge_growth): Rewrite.
3361 (estimate_edge_time): Implement as inline cache lookup.
77fa1d54
UB
3362 (reset_node_growth_cache, reset_edge_growth_cache): New inline
3363 functions.
632b4f8e
JH
3364 (MAX_TIME): Reduce to allow multiplicatoin by INLINE_SIZE_SCALE.
3365 (NUM_CONDITIONS): New constant.
3366 (predicate_conditions): New enum.
3367 (IS_NOT_CONSTANT): New constant.
3368 (edge_removal_hook_holder): New var.
3369 (node_growth_cache, edge_growth_cache): New global vars.
77fa1d54
UB
3370 (true_predicate, single_cond_predicate, false_predicate,
3371 not_inlined_predicate, add_condition, add_clause, and_predicates,
3372 or_predicates, predicates_equal_p, evaulate_predicate, dump_condition,
3373 dump_clause, dump_predicate, account_size_time,
632b4f8e
JH
3374 evaulate_conditions_for_edge): New functions.
3375 (inline_summary_alloc): Move to heap.
3376 (inline_node_removal_hook): Clear condition and entry vectors.
3377 (inline_edge_removal_hook): New function.
3378 (initialize_growth_caches, free_growth_caches): New function.
3379 (dump_inline_summary): Update.
3380 (edge_execution_predicate): New function.
3381 (will_be_nonconstant_predicate): New function.
3382 (estimate_function_body_sizes): Compute BB and constantness predicates.
3383 (compute_inline_parameters): Do not clear estimated_growth.
3384 (estimate_edge_size_and_time): New function.
3385 (estimate_calls_size_and_time): New function.
3386 (estimate_callee_size_and_time): New function.
3387 (remap_predicate): New function.
3388 (inline_merge_summary): New function.
3389 (do_estimate_edge_time): New function based on...
3390 (estimate_edge_time): ... this one.
3391 (do_estimate_edge_growth): New function.
3392 (do_estimate_growth): New function based on....
3393 (estimate_growth): ... this one.
3394 (inline_analyze_function): Analyze after deciding on jump functions.
3395 (inline_read_section): New function.
3396 (inline_read_summary): Use it.
3397 (inline_write_summary): Write all the new data.
3398 * ipa-prop.c (ipa_get_param_decl_index): Export.
3399 (ipa_lattice_from_jfunc): Move here from ipa-cp.c
77fa1d54
UB
3400 * ipa-prop.h (ipa_get_param_decl_index, ipa_lattice_from_jfunc):
3401 Declare.
3402 (ipa_get_lattice): Move here from ipa-cp.c
632b4f8e
JH
3403 * Makefile.in (GTFILES): Add ipa-inline.h and ipa-inline-analysis.c
3404 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 11.
3405 * cgraph.h (cgraph_clone_inlined_nodes, compute_inline_parameters,
3406 cgraph_edge_inlinable_p): Remove.
3407 * cgraphunit.c: Include ipainline.h
77fa1d54
UB
3408 (cgraph_process_new_functions): Update call of
3409 compute_inline_parameters.
632b4f8e 3410
1df5b0db
RG
34112011-04-22 Richard Guenther <rguenther@suse.de>
3412
3413 * tree.c (build_int_cst): Properly create canonicalized integer
3414 constants.
3415 (build_int_cst_type): Remove scary comments.
3416
ae01169c
XDL
34172011-04-22 Xinliang David Li <davidxl@google.com>
3418
3419 * toplev.c (process_options): Enable -Werror=coverage-mismatch
3420 by default when -Wno-error is not specified.
3421 * opts-global.c (decode_options): Remove call to
3422 control_warning_options.
3423
93dfac24
JJ
34242011-04-22 Jakub Jelinek <jakub@redhat.com>
3425
3426 PR tree-optimization/48717
3427 * tree-ssa-forwprop.c (associate_plusminus): For A + ~A and
3428 ~A + A optimizations use build_int_cst_type instead of build_int_cst.
3429
1b5f5069
JM
34302011-04-22 Joseph Myers <joseph@codesourcery.com>
3431
3432 * config/bfin/bfin-protos.h (Mmode): Don't define. Expand
3433 definition where used.
3434
144f4153
JJ
34352011-04-22 Jakub Jelinek <jakub@redhat.com>
3436
3437 PR c/48716
3438 * gimplify.c (gimplify_bind_expr): Mark as GOVD_LOCAL also
3439 TREE_STATIC variables declared inside of some OpenMP construct.
3440
f9fd305b
MJ
34412011-04-22 Martin Jambor <mjambor@suse.cz>
3442
3443 PR middle-end/48585
1d284ec5 3444 * tree-inline.c (copy_bb): Create new edges only for analyzed nodes.
f9fd305b 3445
49819fef
AM
34462011-04-22 Alexander Monakov <amonakov@ispras.ru>
3447
3448 PR c/36750
3449 * c-typeck.c (pop_init_level): Do not warn about initializing
3450 with ` = {0}'.
3451
401f6699
AM
34522011-04-22 Alan Modra <amodra@gmail.com>
3453
3454 * config/rs6000/rs6000.c (rs6000_function_arg): Remove CALL_LIBCALL
3455 when returning call_cookie.
3456 (rs6000_function_ok_for_sibcall): Allow sibcalls via function
3457 pointers, to functions with no more vector args than the current
3458 function, and some non-local calls for ABI_V4.
3459 * config/rs6000/rs6000.md (sibcall_nonlocal_aix32,
3460 sibcall_nonlocal_aix64): Combine to ..
3461 (sibcall_nonlocal_aix<mode>): ..this. Handle function pointer calls.
3462 (sibcall_value_nonlocal_aix32, sibcall_value_nonlocal_aix64): Combine..
3463 (sibcall_value_nonlocal_aix<mode>): ..likewise.
3464 (*sibcall_nonlocal_sysv<mode>): Handle function pointer calls.
3465 (sibcall_value_nonlocal_sysv<mode>): Likewise. Correct call cookie
3466 operand.
3467 * config/rs6000/darwin.md (sibcall_nonlocal_darwin64,
3468 sibcall_value_nonlocal_darwin64, sibcall_symbolic_64,
3469 sibcall_value_symbolic_64): Delete.
3470
903d1e67
XDL
34712011-04-21 Xinliang David Li <davidxl@google.com>
3472
3473 * cgraph.h: Remove pid.
3474 * cgraph.c: Remove pid.
3475 * value-prof.c (init_node_map): New function.
3476 (del_node_map): New function.
3477 (find_func_by_funcdef_no): New function.
3478 (gimple_ic_transform): Call new function.
3479 * cgraphunit.c (cgraph_finalize_function): Remove pid.
3480 * function.c (get_last_funcdef_no): New function.
3481 * function.h (get_last_funcdef_no): New function.
3482 * tree-profile.c (gimple_gen_ic_func_profiler): Pass funcdef_no
3483 to libgcov function.
3484 (tree-profiling): Call node map init and delete function.
3485
7378e95f
ILT
34862011-04-21 Ian Lance Taylor <iant@google.com>
3487
3488 * godump.c (go_format_type): Use exported Go name for anonymous
3489 field name.
3490
e84a6fcf
NF
34912011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3492
3493 * config/frv/frv.c (frv_init_builtins): Delete `endlink' variable.
3494 Call builtin_function_type_list instead of builtin_function_type.
3495 (UNARY, BINARY, TRINARY, QUAD): Likewise.
3496
4fe058e2
NF
34972011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3498
3499 * config/arm/arm.c (arm_init_iwmmxt_builtins): Call
3500 build_function_type_list instead of build_function_type.
3501 Delete variable `endlink'.
3502
1ba0a2d2
NF
35032011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3504
3505 * config/s390/s390.c (s390_init_builtins): Call
3506 build_function_type_list instead of build_function_type.
3507
c0676219
NF
35082011-04-21 Nathan Froyd <froydnj@codesourcery.com>
3509
3510 * config/ia64/ia64.c (ia64_init_builtins): Call
3511 build_function_type_list instead of builtin_function_type.
3512
6ddfda8a
ER
35132011-04-21 Easwaran Raman <eraman@google.com>
3514
3a6448ea 3515 * cfgexpand.c (stack_var): Remove OFFSET...
6ddfda8a
ER
3516 (add_stack_var): ...and its reference here...
3517 (expand_stack_vars): ...and here.
3518 (stack_var_cmp): Sort by descending order of size.
3519 (partition_stack_vars): Change heuristic.
1d284ec5 3520 (union_stack_vars): Fix to reflect changes in partition_stack_vars.
6ddfda8a
ER
3521 (dump_stack_var_partition): Add newline after each partition.
3522
23756963
DA
35232011-04-21 Dimitrios Apostolou <jimis@gmx.net>
3524 Jeff Law <law@redhat.com>
3525
77fa1d54 3526 * gengtype-state.c (read_a_state_token): Fix argument to obstack_free.
23756963
DA
3527 * gengtype.c (matching_file_name_substitute): Likewise.
3528
aa2a43d2
RG
35292011-04-21 Richard Guenther <rguenther@suse.de>
3530
3531 PR lto/48703
1d284ec5 3532 * tree.c (free_lang_data_in_decl): Do not zero TREE_TYPE of DECL_NAME.
aa2a43d2 3533
4d931f41
EB
35342011-04-21 Eric Botcazou <ebotcazou@adacore.com>
3535
3536 * gimple.c (walk_gimple_op) <GIMPLE_CALL>: Fix couple of oversights.
3537
f103fa7a
RG
35382011-04-21 Richard Guenther <rguenther@suse.de>
3539
3540 * Makefile.in (site.exp): Do not use tmp0 but site.tmp as temporary
3541 file name.
3542
e19f6650
RG
35432011-04-21 Richard Guenther <rguenther@suse.de>
3544
3545 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3546 MEM_REF and TARGET_MEM_REF, do not care about INDIRECT_REFs.
3547 Use DECL_P, not SSA_VAR_P.
3548 (ptr_derefs_may_alias_p): Likewise.
3549 (ptr_deref_may_alias_ref_p_1): Likewise.
3550 (decl_refs_may_alias_p): Likewise.
3551 (refs_may_alias_p_1): Likewise.
3552 (ref_maybe_used_by_call_p_1): Likewise.
3553 (call_may_clobber_ref_p_1): Likewise.
3554 (indirect_ref_may_alias_decl_p): Assume indirect refrences
3555 are either MEM_REF or TARGET_MEM_REF.
3556 (indirect_refs_may_alias_p): Likewise.
3557 * calls.c (emit_call_1): Build a MEM_REF instead of an INDIRECT_REF
3558 for MEM_EXPR of indirect calls.
3559
9d1831bb
TG
35602011-04-21 Tristan Gingold <gingold@adacore.com>
3561
3562 * vmsdbgout.c (write_srccorr): Compute file length from the string.
3563 (dst_file_info_struct): Remove flen field.
3564 (lookup_filename): Remove code that set flen field.
3565
f199c029
TG
35662011-04-21 Tristan Gingold <gingold@adacore.com>
3567
3568 * config/ia64/ia64.c (ia64_start_function): Add a guard.
3569
2894086e
UB
35702011-04-21 Uros Bizjak <ubizjak@gmail.com>
3571
3572 PR target/48708
3573 * config/i386/i386.c (ix86_expand_vector_set) <V2DImode>: Generate
3574 vec_extract and vec_concat for non-SSE4_1 targets.
3575
53f94a5c
RG
35762011-04-21 Richard Guenther <rguenther@suse.de>
3577
3578 * tree-ssa-alias.c (ref_maybe_used_by_stmt_p): Handle
3579 return statements.
3580
f0dca5ba
JM
35812011-04-21 Joseph Myers <joseph@codesourcery.com>
3582
3583 * config/i386/cygming.h (union tree_node, TREE): Don't define or
3584 undefine.
3585 (FILE): Don't undefine.
3586
984514ac
JM
35872011-04-21 Joseph Myers <joseph@codesourcery.com>
3588
3589 * config/alpha/alpha.c (struct machine_function): Use rtx, not
3590 struct rtx_def *.
3591 * config/bfin/bfin.h (bfin_cc_rtx, bfin_rets_rtx): Use rtx, not
3592 struct rtx_def *.
3593 * config/cris/cris-protos.h (STDIO_INCLUDED): Don't define.
2894086e 3594 * config/h8300/h8300.h (struct cum_arg): Use rtx, not struct rtx_def *.
984514ac
JM
3595 * config/iq2000/iq2000.h (struct iq2000_args): Use rtx, not struct
3596 rtx_def *.
3597 * config/m32c/m32c-protos.h (MM, UINT): Don't define. Expand
3598 definitions where used.
3599 * config/microblaze/microblaze.h (struct microblaze_args): Use
3600 rtx, not struct rtx_def *.
3601 * config/pa/pa-protos.h (return_addr_rtx): Use rtx, not struct
3602 rtx_def *.
2894086e
UB
3603 * config/pa/pa.h (hppa_pic_save_rtx): Use rtx, not struct rtx_def *.
3604 * config/pdp11/pdp11.h (cc0_reg_rtx): Use rtx, not struct rtx_def *.
984514ac
JM
3605 * config/sh/sh-protos.h (sfunc_uses_reg, get_fpscr_rtx): Use rtx,
3606 not struct rtx_def *.
3607 * config/sh/sh.h (sh_compare_op0, sh_compare_op1): Use rtx, not
3608 struct rtx_def *.
3609 * config/spu/spu-protos.h (spu_float_const): Use rtx, not struct
3610 rtx_def *.
2894086e 3611 * config/spu/spu.c (spu_float_const): Use rtx, not struct rtx_def *.
984514ac 3612
0b5a2724
RS
36132011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3614
3615 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block): Use
3616 operand_equal_p to compare DR_BASE_ADDRESSes.
3617 (vect_check_interleaving): Likewise.
3618
4b18d683
RS
36192011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3620
3621 PR target/46329
3622 * config/arm/arm.c (arm_legitimate_constant_p_1): Return false
3623 for all Neon struct constants.
3624
1a627b35
RS
36252011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3626
3627 * target.def (legitimate_constant_p): New hook.
3628 * doc/tm.texi.in (LEGITIMATE_CONSTANT_P): Replace with...
3629 (TARGET_LEGITIMATE_CONSTANT_P): ...this.
3630 * doc/tm.texi: Regenerate.
3631 * hooks.h (hook_bool_mode_rtx_true): Declare.
3632 * hooks.c (hook_bool_mode_rtx_true): Define.
3633 * system.h (LEGITIMATE_CONSTANT_P): Poison.
3634 * calls.c (precompute_register_parameters): Replace uses of
3635 LEGITIMATE_CONSTANT_P with targetm.legitimate_constant_p.
3636 (emit_library_call_value_1): Likewise.
3637 * expr.c (move_block_to_reg, can_store_by_pieces, emit_move_insn)
3638 (compress_float_constant, emit_push_insn, expand_expr_real_1): Likewise.
3639 * ira-costs.c (scan_one_insn): Likewise.
3640 * recog.c (general_operand, immediate_operand): Likewise.
3641 * reload.c (find_reloads_toplev, find_reloads_address_part): Likewise.
3642 * reload1.c (init_eliminable_invariants): Likewise.
3643
3644 * config/alpha/alpha-protos.h (alpha_legitimate_constant_p): Add a
3645 mode argument.
3646 * config/alpha/alpha.h (LEGITIMATE_CONSTANT_P): Delete.
3647 * config/alpha/alpha.c (alpha_legitimate_constant_p): Add a mode
3648 argument.
3649 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3650 * config/alpha/predicates.md (input_operand): Update call to
3651 alpha_legitimate_constant_p.
3652
3653 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Delete.
3654 * config/arm/arm.h (ARM_LEGITIMATE_CONSTANT_P): Likewise.
3655 (THUMB_LEGITIMATE_CONSTANT_P, LEGITIMATE_CONSTANT_P): Likewise.
3656 * config/arm/arm.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3657 (arm_legitimate_constant_p_1, thumb_legitimate_constant_p)
3658 (arm_legitimate_constant_p): New functions.
3659 (arm_cannot_force_const_mem): Make static.
3660
3661 * config/avr/avr.h (LEGITIMATE_CONSTANT_P): Delete.
3662
3663 * config/bfin/bfin-protos.h (bfin_legitimate_constant_p): Delete.
3664 * config/bfin/bfin.h (LEGITIMATE_CONSTANT_P): Delete.
3665 * config/bfin/bfin.c (expand_move): Use targetm.legitimate_constant_p
3666 instead of bfin_legitimate_constant_p.
3667 (bfin_legitimate_constant_p): Make static. Add a mode argument.
3668 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3669
3670 * config/cris/cris.h (LEGITIMATE_CONSTANT_P): Delete.
3671
3672 * config/fr30/fr30.h (LEGITIMATE_CONSTANT_P): Delete.
3673
3674 * config/frv/frv-protos.h (frv_legitimate_constant_p): Delete.
3675 * config/frv/frv.h (LEGITIMATE_CONSTANT_P): Delete.
3676 * config/frv/frv.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3677 (frv_legitimate_constant_p): Make static. Add a mode argument.
3678
3679 * config/h8300/h8300-protos.h (h8300_legitimate_constant_p): Delete.
3680 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Likewise.
3681 * config/h8300/h8300.c (h8300_legitimate_constant_p): Likewise.
3682
3683 * config/i386/i386-protos.h (legitimate_constant_p): Delete.
3684 * config/i386/i386.h (LEGITIMATE_CONSTANT_P): Likewise.
3685 * config/i386/i386.c (legitimate_constant_p): Rename to...
3686 (ix86_legitimate_constant_p): ...this. Make static. Add a mode
3687 argument.
3688 (ix86_cannot_force_const_mem): Update accordingly.
3689 (ix86_legitimate_address_p): Likewise.
3690 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3691 * config/i386/i386.md: Update commentary.
3692
3693 * config/ia64/ia64-protos.h (ia64_legitimate_constant_p): Delete.
3694 * config/ia64/ia64.h (LEGITIMATE_CONSTANT_P): Likewise.
3695 * config/ia64/ia64.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3696 (ia64_legitimate_constant_p): Make static. Add a mode argument.
3697
3698 * config/iq2000/iq2000.h (LEGITIMATE_CONSTANT_P): Delete.
3699
3700 * config/lm32/lm32-protos.h (lm32_legitimate_constant_p): Delete.
3701 * config/lm32/lm32.h (LEGITIMATE_CONSTANT_P): Likewise.
3702 * config/lm32/lm32.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3703 (lm32_legitimate_constant_p): Make static. Add a mode argument.
3704
3705 * config/m32c/m32c-protos.h (m32c_legitimate_constant_p): Delete.
3706 * config/m32c/m32c.h (LEGITIMATE_CONSTANT_P): Likewise.
3707 * config/m32c/m32c.c (m32c_legitimate_constant_p): Likewise.
3708
3709 * config/m32r/m32r.h (LEGITIMATE_CONSTANT_P): Delete.
3710 * config/m32r/m32r.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3711 (m32r_legitimate_constant_p): New function.
3712
3713 * config/m68k/m68k-protos.h (m68k_legitimate_constant_p): Declare.
3714 * config/m68k/m68k.h (CONSTANT_ADDRESS_P): Call it instead of
3715 LEGITIMATE_CONSTANT_P.
3716 (LEGITIMATE_CONSTANT_P): Delete.
3717 * config/m68k/m68k.c (m68k_expand_prologue): Call
3718 m68k_legitimate_constant_p instead of LEGITIMATE_CONSTANT_P.
3719 (m68k_legitimate_constant_p): New function.
3720 * config/m68k/m68k.md: Update comments.
3721
3722 * config/mcore/mcore.h (LEGITIMATE_CONSTANT_P): Delete.
3723 * config/mcore/mcore.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3724 (mcore_legitimate_constant_p): New function.
3725
3726 * config/mep/mep-protos.h (mep_legitimate_constant_p): Delete.
3727 * config/mep/mep.h (LEGITIMATE_CONSTANT_P): Likewise.
3728 * config/mep/mep.c (mep_legitimate_constant_p): Make static.
3729 Add a mode argument.
3730 (mep_legitimate_address): Update accordingly.
3731 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3732
3733 * config/microblaze/microblaze-protos.h (microblaze_const_double_ok):
3734 Delete.
3735 * config/microblaze/microblaze.h (LEGITIMATE_CONSTANT_P): Likewise.
3736 * config/microblaze/microblaze.c (microblaze_const_double_ok): Make
3737 static. Check OP's mode for VOIDmode.
3738 (microblaze_legitimate_constant_p): New function.
3739 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3740
3741 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Delete.
3742 * config/mips/mips.c (mips_legitimate_constant_p): New function.
3743 (mips_cannot_force_const_mem): Use it instead of LEGITIMATE_CONSTANT_P.
3744 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3745 * config/mips/predicates.md: Update comments.
3746
3747 * config/mmix/mmix-protos.h (mmix_legitimate_constant_p): Delete.
3748 * config/mmix/mmix.h (LEGITIMATE_CONSTANT_P): Likewise.
3749 * config/mmix/mmix.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3750 (mmix_legitimate_constant_p): Make static, return a bool, and take
3751 a mode argument.
3752 (mmix_print_operand_address): Update accordingly.
3753
3754 * config/mn10300/mn10300-protos.h (mn10300_legitimate_constant_p):
3755 Delete.
3756 * config/mn10300/mn10300.h (LEGITIMATE_CONSTANT_P): Likewise.
2894086e
UB
3757 * config/mn10300/mn10300.c (mn10300_legitimate_constant_p): Make
3758 static. Add a mode argument.
1a627b35
RS
3759 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3760
3761 * config/moxie/moxie.h (LEGITIMATE_CONSTANT_P): Delete.
3762
3763 * config/pa/pa.h (LEGITIMATE_CONSTANT_P): Delete.
3764 * config/pa/pa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3765 (pa_legitimate_constant_p): New function.
3766
3767 * config/picochip/picochip.h (LEGITIMATE_CONSTANT_P): Delete.
3768
3769 * config/pdp11/pdp11.h (LEGITIMATE_CONSTANT_P): Delete.
3770 * config/pdp11/pdp11.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3771 (pdp11_legitimate_constant_p): New function.
3772
3773 * config/rs6000/rs6000.h (LEGITIMATE_CONSTANT_P): Delete.
3774 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3775 (rs6000_legitimate_constant_p): New function.
3776
3777 * config/rx/rx-protos.h (rx_is_legitimate_constant): Replace with...
3778 (rx_legitimate_constant_p): ...this.
3779 * config/rx/rx.h (LEGITIMATE_CONSTANT_P): Delete.
3780 * config/rx/rx.c (rx_is_legitimate_constant): Replace with...
3781 (rx_legitimate_constant_p): ...this.
3782 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3783 * config/rx/rx.md (mov<register_modes:mode>): Update accordingly.
3784
3785 * config/s390/s390-protos.h (legitimate_constant_p): Delete.
3786 * config/s390/s390.h (LEGITIMATE_CONSTANT_P): Likewise.
3787 * config/s390/s390.c (legitimate_constant_p): Rename to...
3788 (s390_legitimate_constant_p): ...this. Make static, return a bool,
3789 and add a mode argument.
3790 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3791
3792 * config/score/score.h (LEGITIMATE_CONSTANT_P): Delete.
3793
3794 * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Delete.
3795 * config/sh/sh.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3796 (sh_legitimate_constant_p): New function.
3797
3798 * config/sparc/sparc-protos.h (legitimate_constant_p): Delete.
3799 * config/sparc/sparc.h (LEGITIMATE_CONSTANT_P): Delete.
3800 * config/sparc/sparc.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3801 (legitimate_constant_p): Rename to...
3802 (sparc_legitimate_constant_p): ...this. Make static. Add a mode
3803 argument.
3804 (constant_address_p): Update accordingly.
3805
3806 * config/spu/spu-protos.h (spu_legitimate_constant_p): Add a mode
3807 argument and return a bool.
3808 * config/spu/spu.h (LEGITIMATE_CONSTANT_P): Delete.
3809 * config/spu/spu.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3810 (spu_legitimate_constant_p): Add a mode argument and return a bool.
3811 (spu_rtx_costs): Update accordingly.
3812 * config/spu/predicates.md (vec_imm_operand): Likewise.
3813
3814 * config/stormy16/stormy16.h (LEGITIMATE_CONSTANT_P): Delete.
3815
3816 * config/v850/v850.h (LEGITIMATE_CONSTANT_P): Delete.
3817 * config/v850/v850.c (v850_legitimate_constant_p): New function.
3818 (TARGET_LEGITIMATE_CONSTANT_P): Define.
3819
3820 * config/vax/vax-protos.h (legitimate_constant_p): Delete.
3821 * config/vax/vax.h (LEGITIMATE_CONSTANT_P): Likewise.
3822 * config/vax/vax.c (legitimate_constant_p): Likewise.
3823
3824 * config/xtensa/xtensa.h (LEGITIMATE_CONSTANT_P): Delete.
3825 * config/xtensa/xtensa.c (TARGET_LEGITIMATE_CONSTANT_P): Define.
3826 (xtensa_legitimate_constant_p): New function.
3827
fbbf66e7
RS
38282011-04-21 Richard Sandiford <richard.sandiford@linaro.org>
3829
3830 * target.def (cannot_force_const_mem): Add a mode argument.
3831 * doc/tm.texi.in (TARGET_CANNOT_FORCE_CONST_MEM): Update accordingly.
3832 * doc/tm.texi: Regenerate.
3833 * hooks.h (hook_bool_mode_rtx_false): Declare.
3834 * hooks.c (hook_bool_mode_const_rtx_false): Fix commentary.
3835 (hook_bool_mode_const_rtx_true): Likewise.
3836 (hook_bool_mode_rtx_false): New function.
3837 * reload.c (CONST_POOL_OK_P): Take a mode argument and require it
3838 to be non-VOID. Update call to cannot_force_const_mem.
3839 (find_reloads): Update accordingly.
3840 * varasm.c (force_const_mem): Update call to cannot_force_const_mem.
3841 * config/alpha/alpha.c (alpha_cannot_force_const_mem): Add a mode
3842 argument.
3843 * config/arm/arm-protos.h (arm_cannot_force_const_mem): Likewise.
3844 * config/arm/arm.h (LEGITIMATE_CONSTANT_P): Update call.
3845 * config/arm/arm.c (arm_cannot_force_const_mem): Add a mode argument.
3846 * config/bfin/bfin.c (bfin_cannot_force_const_mem): Likewise.
3847 * config/frv/frv.c (frv_cannot_force_const_mem): Likewise.
3848 * config/i386/i386.c (ix86_cannot_force_const_mem): Likewise.
3849 * config/ia64/ia64.c (ia64_cannot_force_const_mem): Likewise.
3850 * config/m68k/m68k.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3851 (m68k_cannot_force_const_mem): ...this new function.
3852 * config/mips/mips.c (mips_cannot_force_const_mem): Add a mode
3853 argument.
3854 (mips_const_insns, mips_legitimize_const_move): Update calls.
3855 (mips_secondary_reload_class): Likewise.
3856 * config/pa/pa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to...
3857 (pa_cannot_force_const_mem): ...this new function.
2894086e 3858 * config/rs6000/rs6000.c (TARGET_CANNOT_FORCE_CONST_MEM): Reefine to...
fbbf66e7
RS
3859 (rs6000_cannot_force_const_mem): ...this new function.
3860 * config/s390/s390.c (s390_cannot_force_const_mem): Add a mode
3861 argument.
3862 * config/sparc/sparc.c (sparc_cannot_force_const_mem): Likewise.
3863 * config/xtensa/xtensa.c (TARGET_CANNOT_FORCE_CONST_MEM): Redefine
3864 to...
3865 (xtensa_cannot_force_const_mem): ...this new function.
3866
b861891b
NF
38672011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3868
3869 * config/mips/mips.c (mips16_build_function_stub): Call
3870 build_function_type_list instead of build_function_type.
3871 (mips16_build_call_stub): Likewise.
3872
34149ed5
NF
38732011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3874
3875 * config/mep/mep.c (mep_init_builtins): Call build_function_type_list
3876 instead of build_function_type.
3877
12526412
NF
38782011-04-20 Nathan Froyd <froydnj@codesourcery.com>
3879
3880 * config/pa/pa.c (pa_init_builtins): Call build_function_type_list
3881 instead of build_function_type.
3882
3b84d61f
UB
38832011-04-20 Uros Bizjak <ubizjak@gmail.com>
3884
3885 PR target/48678
3886 * config/i386/i386.md (insv): Change operand 0 constraint to
3887 "register_operand". Change operand 1 and 2 constraint to
3888 "const_int_operand". Expand to pinsr{b,w,d,q} * when appropriate.
3889 * config/i386/sse.md (sse4_1_pinsrb): Export.
3890 (sse2_pinsrw): Ditto.
3891 (sse4_1_pinsrd): Ditto.
3892 (sse4_1_pinsrq): Ditto.
3893 * config/i386/i386-protos.h (ix86_expand_pinsr): Add prototype.
3894 * config/i386/i386.c (ix86_expand_pinsr): New.
3895
4a25752b
ER
38962011-04-20 Easwaran Raman <eraman@google.com>
3897
3898 * cfgexpand.c (add_alias_set_conflicts): Add conflicts with a variable
3899 containing union type only with -fstrict-aliasing.
3900
04695783
JM
39012011-04-20 Jim Meyering <meyering@redhat.com>
3902
3903 Remove useless if-before-free tests.
3904 * calls.c (expand_call, save_area): Likewise.
3905 * cfgcleanup.c (try_forward_edges): Likewise.
3906 * collect2.c (collect_execute): Likewise.
3907 * config/i386/i386.c (ix86_valid_target_attribute_tree): Likewise.
3908 * config/mcore/mcore.c (mcore_expand_prolog): Likewise.
3909 * coverage.c (coverage_checksum_string): Likewise.
3910 * cse.c (init_cse_reg_info, delete_trivially_dead_insns): Likewise.
3911 * cselib.c (cselib_init): Likewise.
3912 * df-core.c (rest_of_handle_df_finish, df_analyze): Likewise.
3913 (df_set_clean_cfg): Likewise.
3914 * function.c (free_after_compilation): Likewise.
3915 * gcc.c (do_spec_1, main): Likewise.
3916 * gcov.c (create_file_names): Likewise.
3917 * gensupport.c (identify_predicable_attribute): Likewise.
3918 * graphite-clast-to-gimple.c (save_clast_name_index): Likewise.
3919 * graphite-sese-to-poly.c (free_data_refs_aux): Likewise.
3920 * haifa-sched.c (haifa_finish_h_i_d): Likewise.
3921 * ipa-prop.c (ipa_free_node_params_substructures): Likewise.
3922 * ipa-pure-const.c (local_pure_const): Likewise.
3923 * ipa-reference.c (propagate): Likewise.
3924 * ira-costs.c (free_ira_costs): Likewise.
3925 * ira.c (free_register_move_costs, build_insn_chain): Likewise.
3926 * matrix-reorg.c (mat_free): Likewise.
3927 * prefix.c (get_key_value): Likewise.
3928 * profile.c (compute_value_histograms): Likewise.
3929 * reload1.c (free_reg_equiv): Likewise.
3930 * sched-deps.c (free_deps): Likewise.
3931 * sel-sched-ir.c (fence_clear): Likewise.
3932 * sese.c (set_rename, if_region_set_false_region): Likewise.
3933 * tree-data-ref.c (free_rdg): Likewise.
3934 * tree-eh.c (lower_try_finally): Likewise.
3935 * tree-ssa-coalesce.c (delete_coalesce_list): Likewise.
3936 * tree-ssa-live.c (delete_var_map): Likewise.
3937 * tree-ssa-loop-ivopts.c (free_loop_data): Likewise.
3938 * tree-ssa-pre.c (phi_trans_add): Likewise.
3939
6788475a
JJ
39402011-04-20 Jakub Jelinek <jakub@redhat.com>
3941
3942 PR tree-optimization/48611
3943 * tree-eh.c (note_eh_region_may_contain_throw): Don't propagate
3944 beyond ERT_MUST_NOT_THROW region.
3945
0eda4033
CM
39462011-04-20 Catherine Moore <clm@codesourcery.com>
3947
3948 * config/mips/mips.opt (mfix-24k): New.
3949 * config/mips/mips.h (ASM_SPEC): Handle -mfix-24k.
3950 * config/mips/mips.md (length): Increase by 4 for stores if
3951 fixing 24K errata.
3952 * config/mips/mips.c (mips_reorg_process_insns): Do not allow
3953 all noreorder if fixing 24K errata.
3954 * doc/invoke.texi: Document mfix-24k.
3955
01475747
CLT
39562011-04-20 Chung-Lin Tang <cltang@codesourcery.com>
3957
3958 * config/arm/arm.c (arm_legitimize_reload_address): For NEON
2894086e 3959 quad-word modes, reduce to 9-bit index range when above 1016 limit.
01475747 3960
bc2c1a60
AS
39612011-04-20 Andrew Stubbs <ams@codesourcery.com>
3962
3963 * config/arm/arm.c (arm_gen_constant): Move movw support ....
3964 (const_ok_for_op): ... to here.
3965
583722ee
KT
39662011-04-20 Kai Tietz <ktietz@redhat.com>
3967
2894086e
UB
3968 * fold-const.c (fold_binary_loc): Add handling for (X & ~Y) | (~X & Y)
3969 and (X && !Y) | (!X && Y) optimization to (X ^ Y).
583722ee 3970
422c0989
AS
39712011-04-20 Andrew Stubbs <ams@codesourcery.com>
3972
3973 * config/arm/arm.c (arm_gen_constant): Remove redundant can_invert.
3974
d7978bff
RG
39752011-04-20 Richard Guenther <rguenther@suse.de>
3976
3977 PR tree-optimization/47892
3978 * tree-if-conv.c (if_convertible_stmt_p): Const builtins
3979 are if-convertible.
3980
818412ba
EB
39812011-04-20 Eric Botcazou <ebotcazou@adacore.com>
3982
3983 * config/alpha/vms.h (ASM_OUTPUT_ADDR_DIFF_ELT): Do not redefine.
3984
b501ce4e
TG
39852011-04-20 Tristan Gingold <gingold@adacore.com>
3986
3987 * config/alpha/vms.h (LINK_SPEC): Do not use vms-dwarf2.o for gnu-ld.
3988
516edfdd
GJL
39892011-04-20 Georg-Johann Lay <avr@gjlay.de>
3990
3991 PR target/18145
3992
3993 * config/avr/avr.h (TARGET_ASM_INIT_SECTIONS): Delete.
3994 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
3995 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
3996 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
3997 (TARGET_ASM_NAMED_SECTION): Change to avr_asm_named_section.
3998
3999 * config/avr/avr-protos.h (avr_asm_output_aligned_common):
4000 New prototype.
4001
4002 * config/avr/avr.c (TARGET_ASM_INIT_SECTIONS): Define.
4003 (avr_asm_named_section, avr_asm_output_aligned_common,
4004 avr_output_data_section_asm_op, avr_output_bss_section_asm_op):
4005 New functions to update...
4006 (avr_need_clear_bss_p, avr_need_copy_data_p): ...these new variables.
4007 (avr_asm_init_sections): Overwrite section callbacks for
4008 data_section, bss_section.
4009 (avr_file_start): Move output of __do_copy_data, __do_clear_bss
4010 from here to...
4011 (avr_file_end): ...here.
4012
dafc9511
RG
40132011-04-20 Richard Guenther <rguenther@suse.de>
4014
4015 PR middle-end/48695
4016 * tree-ssa-alias.c (aliasing_component_refs_p): Compute base
2894086e 4017 objects and types here. Adjust for their offset before comparing.
dafc9511 4018
1da0876c
RS
40192011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4020
4021 * tree-vect-stmts.c (vectorizable_store): Only chain one related
4022 statement per copy.
4023
25583c4f
RS
40242011-04-20 Richard Sandiford <richard.sandiford@linaro.org>
4025
4026 * Makefile.in (INTERNAL_FN_DEF, INTERNAL_FN_H): Define.
4027 (GIMPLE_H): Include $(INTERNAL_FN_H).
4028 (OBJS-common): Add internal-fn.o.
4029 (internal-fn.o): New rule.
4030 * internal-fn.def: New file.
4031 * internal-fn.h: Likewise.
4032 * internal-fn.c: Likewise.
4033 * gimple.h: Include internal-fn.h.
4034 (GF_CALL_INTERNAL): New gf_mask.
4035 (gimple_statement_call): Put fntype into a union with a new
4036 internal_fn field.
4037 (gimple_build_call_internal): Declare.
4038 (gimple_build_call_internal_vec): Likewise.
4039 (gimple_call_same_target_p): Likewise.
4040 (gimple_call_internal_p): New function.
4041 (gimple_call_internal_fn): Likewise.
4042 (gimple_call_fntype): Return null for internal calls.
4043 (gimple_call_set_fntype): Assert that the function is not internal.
4044 (gimple_call_set_fn): Likewise.
4045 (gimple_call_set_fndecl): Likewise.
4046 (gimple_call_set_internal_fn): New function.
4047 (gimple_call_addr_fndecl): Handle null functions.
4048 (gimple_call_return_type): Likewise null types.
4049 * gimple.c (gimple_build_call_internal_1): New function.
4050 (gimple_build_call_internal): Likewise.
4051 (gimple_build_call_internal_vec): Likewise.
4052 (gimple_call_same_target_p): Likewise.
4053 (gimple_call_flags): Handle calls to internal functions.
4054 (gimple_call_fnspec): New function.
4055 (gimple_call_arg_flags, gimple_call_return_flags): Use it.
4056 (gimple_has_side_effects): Handle null functions.
4057 (gimple_rhs_has_side_effects): Likewise.
4058 (gimple_call_copy_skip_args): Handle calls to internal functions.
4059 * cfgexpand.c (expand_call_stmt): Likewise.
4060 * expr.c (expand_expr_real_1): Assert that the call isn't internal.
4061 * gimple-fold.c (gimple_fold_call): Handle null functions.
4062 (gimple_fold_stmt_to_constant_1): Don't fold
4063 calls to internal functions.
4064 * gimple-low.c (gimple_check_call_args): Handle calls to internal
4065 functions.
4066 * gimple-pretty-print.c (dump_gimple_call): Likewise.
4067 * ipa-prop.c (ipa_analyze_call_uses): Handle null functions.
4068 * tree-cfg.c (verify_gimple_call): Handle calls to internal functions.
4069 (do_warn_unused_result): Likewise.
4070 * tree-eh.c (same_handler_p): Use gimple_call_same_target_p.
4071 * tree-ssa-ccp.c (ccp_fold_stmt): Handle calls to internal functions.
4072 * tree-ssa-dom.c (hashable_expr): Use the gimple statement to record
4073 the target of a call.
4074 (initialize_hash_element): Update accordingly.
4075 (hashable_expr_equal_p): Use gimple_call_same_target_p.
4076 (iterative_hash_hashable_expr): Handle calls to internal functions.
4077 (print_expr_hash_elt): Likewise.
4078 * tree-ssa-pre.c (can_value_number_call): Likewise.
4079 (eliminate): Handle null functions.
4080 * tree-ssa-sccvn.c (visit_use): Handle calls to internal functions.
4081 * tree-ssa-structalias.c (get_fi_for_callee): Likewise.
4082 (find_func_aliases): Likewise.
4083 * value-prof.c (gimple_ic_transform): Likewise.
4084 (gimple_indirect_call_to_profile): Likewise.
4085 * lto-streamer-in.c (input_gimple_stmt): Likewise.
4086 * lto-streamer-out.c (output_gimple_stmt): Likewise.
4087
1a3118e9
JH
40882011-04-19 Jan Hubicka <jh@suse.cz>
4089
4090 * ipa-inline-transform.c (save_inline_function_body): Add comments.
9d12f71a
EB
4091 * ipa-inline.c (inline_small_functions): Compute summaries first,
4092 populate heap later.
1a3118e9 4093
fee8b6da
JH
40942011-04-19 Jan Hubicka <jh@suse.cz>
4095
4096 * cgraph.h (save_inline_function_body): Remove.
4097 * ipa-inline-transform.c: New file, broke out of...
4098 * ipa-inline.c: ... this one; Update toplevel comment.
4099 (ncalls_inlined, nfunctions_inlined): Move to ipa-inline-transform.c;
4100 make global.
4101 (update_noncloned_frequencies): Move to ipa-inline-transform.c
4102 (cgraph_mark_inline_edge): Rename to inline_call; move to
4103 ipa-inline-transform.c.
4104 (cgraph_clone_inlined_nodes): Rename to clone_inlined_nodes;
4105 move to ipa-inline-transform.c
4106 (recursive_inlining, inline_small_functions, flatten_function,
4107 ipa_inline, inline_always_inline_functions,
4108 early_inline_small_functions): Update.
4109 (inline_transform): Move to ipa-inline-transform.c.
4110 * ipa-inline.h (inline_call, inline_transform, clone_inlined_nodes):
4111 Declare.
4112 * Makefile.in (ipa-inline-transform.o): New file.
4113 * cgraphunit.c (save_inline_function_body): Move to
4114 ipa-inline-transform.c
4115
f0679612
DD
41162011-04-19 DJ Delorie <dj@redhat.com>
4117
4118 * config/m32c/m32c.c (m32c_emit_epilogue): Don't try to push
4119 registers if we already know there aren't any.
4120 (m32c_emit_epilogue): Don't emit a barrier here.
4121 (m32c_emit_eh_epilogue): Likewise.
4122 * config/m32c/blkmov.md (movstr): Don't fail on wrong-type
4123 operands at expand time.
4124 * config/m32c/m32c.h (WCHAR_TYPE_SIZE): Change to 4 to match "long
4125 int" wchar type.
4126 (REG_CLASS_CONTENTS, reg_class, REG_CLASS_NAMES): Remove
4127 duplicates. Provide aliases instead.
4128 * config/m32c/prologue.md (eh_return): Emit a barrier here.
4129 (eh_epilogue): Add a "(return)" here as a hint to other parts of
4130 the compiler.
4131
32257ddc
AS
41322011-04-19 Anatoly Sokolov <aesok@post.ru>
4133
4134 * config/sparc/sparc.h (GENERAL_OR_I64, REGISTER_MOVE_COST): Remove.
4135 * config/sparc/sparc.c (TARGET_REGISTER_MOVE_COST): Define.
4136 (general_or_i64_p, sparc_register_move_cost): New function.
4137
60bea929
RO
41382011-04-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4139
4140 * doc/install.texi (Configuration, --enable-threads): Remove mach.
3b84d61f 4141 Add lynx, mipssde. Sort table.
60bea929 4142
444b3995 41432011-04-19 Xinliang David Li <davidxl@google.com>
3b84d61f 4144
9d12f71a
EB
4145 * ipa-cp.c (ipcp_update_profiling): Assert that scale_completement is
4146 not negative.
444b3995 4147
d708ce50
JJ
41482011-04-19 Jakub Jelinek <jakub@redhat.com>
4149
4150 PR target/48678
4151 * config/i386/i386.md (movstrict<mode>): FAIL if operands[0]
4152 is a SUBREG with non-MODE_INT mode inside of it.
4153
49c471e3
MJ
41542011-04-19 Martin Jambor <mjambor@suse.cz>
4155
4156 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Devirtualize
4157 also according to actual contants.
4158 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): New function.
4159 (gimple_fold_call): Use it.
4160 * gimple.h (gimple_extract_devirt_binfo_from_cst): Declare.
4161
0004f992
MJ
41622011-04-19 Martin Jambor <mjambor@suse.cz>
4163
4164 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Return false for scalar
4165 non-pointer assignments.
4166
40591473
MJ
41672011-04-19 Martin Jambor <mjambor@suse.cz>
4168
4169 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Take into
4170 account anc_offset and otr_type from the indirect edge info.
4171 * ipa-prop.c (get_ancestor_addr_info): New function.
4172 (compute_complex_ancestor_jump_func): Assignment analysis moved to
4173 get_ancestor_addr_info, call it.
4174 (ipa_note_param_call): Do not initialize information about polymorphic
4175 calls, return the indirect call graph edge. Remove the last
4176 parameter, adjust all callers.
4177 (ipa_analyze_virtual_call_uses): Process also calls to ancestors of
4178 parameters. Initialize polymorphic information in the indirect edge.
4179
abe36b81
EB
41802011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4181
4182 PR lto/48148
4183 * gimple.c (gimple_types_compatible_p_1) <ENUMERAL_TYPE>: Do not merge
4184 the types if they have different enumeration identifiers.
4185
e6416b30
JH
41862011-04-19 Jan Hubicka <jh@suse.cz>
4187
4188 * cgraph.h (cgraph_optimize_for_size_p): Declare.
4189 * ipa-cp.c (ipcp_insert_stage): Use cgraph_optimize_for_size_p.
4190 * predict.c (cgraph_optimize_for_size_p): Break out from ...
4191 (optimize_function_for_size_p) ... here.
4192
d39132ea
RG
41932011-04-19 Richard Guenther <rguenther@suse.de>
4194
4195 PR lto/48207
4196 * tree.c (free_lang_data): Do not reset the decl-assembler-name
4197 langhook.
4198
ff7037dc
EB
41992011-04-19 Eric Botcazou <ebotcazou@adacore.com>
4200
4201 * tree-inline.c (expand_call_inline): Do not issue a -Winline warning
4202 if DECL_NO_INLINE_WARNING_P is set on the function.
4203
c1ee2892
BS
42042011-04-19 Bernd Schmidt <bernds@codesourcery.com>
4205
4206 PR fortran/47976
4207 * reload1.c (inc_for_reload): Return void. All callers changed.
4208 (emit_input_reload_insns): Don't try to delete previous output
4209 reloads to a register, or record spill_reg_store for autoincs.
fbb20b29
BS
4210
42112011-04-19 Basile Starynkevitch <basile@starynkevitch.net>
4212
4213 * gengtype.h: Updated copyright year.
4214 (struct input_file_st): Add inpisplugin field.
4215 (type_fileloc): New function.
4216 * gengtype.c
4217 (write_typed_struct_alloc_def): Add gcc_assert.
4218 (write_typed_alloc_defns): Ditto. Don't output for plugin files.
4219 (write_typed_alloc_defns): Don't output for plugin files.
4220 (input_file_by_name): Clear inpisplugin field.
4221 (main): Set inpisplugin field for plugin files.
4222
897e0a89
NP
42232011-04-19 Nicola Pero <nicola.pero@meta-innovation.com>
4224
4225 * gengtype-state.c (string_eq): New.
4226 (read_state): Use string_eq instead of strcmp when creating the
4227 state_ident_tab.
4228
363ee90e
WG
42292011-04-19 Wei Guozhi <carrot@google.com>
4230
4231 PR target/47855
4232 * config/arm/arm-protos.h (thumb1_legitimate_address_p): New prototype.
4233 * config/arm/arm.c (thumb1_legitimate_address_p): Remove the static
4234 linkage.
4235 * config/arm/constraints.md (Uu): New constraint.
4236 * config/arm/arm.md (*arm_movqi_insn): Compute attr "length".
4237
18a24fed
TG
42382011-04-19 Tristan Gingold <gingold@adacore.com>
4239
4240 * config.gcc (-*-*-*vms): Added.
4241 (alpha64-dec-*vms*,alpha*-dec-*vms*, ia64-hp-*vms*): Common
4242 definitions moved.
4243 * config/vms/vms-ld.c: New file.
4244 * config/vms/vms-ar.c: New file.
4245 * config/vms/t-vmsnative: New file.
4246
1c13f168
XDL
42472011-04-18 Xinliang David Li <davidxl@google.com>
4248
4249 * final.c (dump_basic_block_info): Use ASM_COMMENT_START.
4250
84825707
JJ
42512011-04-18 Jakub Jelinek <jakub@redhat.com>
4252
4253 PR middle-end/48661
4254 * gimple-fold.c (gimple_get_virt_method_for_binfo): Return NULL
4255 if TREE_TYPE (v) is non-NULL.
4256
4257 * gimple-fold.c (gimple_get_virt_method_for_binfo): Renamed from
4258 gimple_get_virt_mehtod_for_binfo.
4259 * gimple.h (gimple_get_virt_method_for_binfo): Likewise.
4260 * ipa-cp.c (ipcp_process_devirtualization_opportunities): Adjust
4261 callers.
4262 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
4263
7d4f8d02 42642011-04-18 Michael Matz <matz@suse.de>
7254cb57
MM
4265 Steve Ellcey <sje@cup.hp.com>
4266
7d4f8d02
EB
4267 * expr.c (expand_expr_real_2) <CASE_CONVERT>: If OP0 is a constant,
4268 use its mode as source mode if it isn't VOIDmode.
7254cb57 4269
474e8e70
DCR
42702011-04-18 Dennis, CHENG Renquan <crquan@fedoraproject.org>
4271
4272 * doc/passes.texi: Fill crossref nodes.
4273
cff41484
JM
42742011-04-18 Jim Meyering <meyering@redhat.com>
4275
7d4f8d02 4276 Fix doubled-word typos in comments and strings
cff41484
JM
4277 * config/alpha/vms-unwind.h: s/for for/for/
4278 * config/arm/unwind-arm.h: Likewise.
4279 * config/microblaze/microblaze.c: Likewise.
4280 * config/sh/constraints.md: s/in in/in/
4281 * tree-cfg.c (verify_types_in_gimple_reference): Likewise.
4282
f60c2554
UB
42832011-04-18 Uros Bizjak <ubizjak@gmail.com>
4284
4285 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): Remove.
4286 (AVX_FLOAT_MODE_P): Ditto.
4287 (AVX128_VEC_FLOAT_MODE_P): Ditto.
4288 (AVX256_VEC_FLOAT_MODE_P): Ditto.
4289 (AVX_VEC_FLOAT_MODE_P): Ditto.
4290 * config/i386/i386.md (UNSPEC_MASKLOAD): Remove.
4291 (UNSPEC_MASKSTORE): Ditto.
4292 * config/i386/sse.md (<sse>_movmsk<ssemodesuffix><avxmodesuffix>):
4293 Merge from <sse>_movmsk<ssemodesuffix> and
4294 avx_movmsk<ssemodesuffix>256. Use VF mode iterator.
4295 (*sse2_maskmovdqu): Merge with *sse2_maskmovdqu_rex64. Use P mode
4296 iterator.
4297 (avx_maskload<ssemodesuffix><avxmodesuffix>): New expander.
4298 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Ditto.
4299 (*avx_maskmov<ssemodesuffix><avxmodesuffix>): New insn.
4300
09a2806f
JH
43012011-04-18 Jan Hubicka <jh@suse.cz>
4302
8a8dccb2
JH
4303 * ipa-inline.c (inline_small_functions): Fix pasto in previous patch.
4304
09a2806f
JH
4305 * ipa-inline.c: Fix comment typos; do not inline gt-ipa-inline.h
4306 (want_inline_function_called_once_p): Break out the logic from
4307 ipa_inline.
4308 (edge_badness): Ensure that profile is not misupdated.
4309 (lookup_recursive_calls): Prioritize by call frequencies.
4310 (inline_small_functions): Move program size estimates here;
4311 actually process whole queue even when unit growth has been
4312 met. (to properly compute inline_failed reasons and for the
f60c2554 4313 case unit size decrease.) Revisit comments on recursive inlining.
09a2806f
JH
4314 (ipa_inline): Remove unit summary code; first inline hot calls
4315 of functions called once, cold calls next.
4316 (order, nnodes): Remove unused variables.
4317 * Makefile.in (ipa-inline.o): No longer depent on ggc files.
4318 (GTFILES): Remove ipa-inline.c
4319 * sel-sched.c (fill_insns): Silence uninitialized var warning.
4320
3eea52ef
EB
43212011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4322
4323 * dwarf2out.c (is_redundant_typedef): Add 'inline' to prototype.
4324
229a1c59 43252011-04-18 Jie Zhang <jie@codesourcery.com>
3eea52ef 4326 Richard Earnshaw <rearnsha@arm.com>
229a1c59
JZ
4327
4328 * arm.c (neon_builtin_type_bits): Remove.
4329 (typedef enum neon_builtin_mode): New.
4330 (T_MAX): Don't define.
4331 (typedef enum neon_builtin_datum): Remove bits, codes[],
4332 num_vars and base_fcode. Add mode, code and fcode.
4333 (VAR1, VAR2, VAR3, VAR4, VAR5, VAR6, VAR7, VAR8, VAR9
4334 VAR10): Change accordingly.
4335 (neon_builtin_data[]): Change accordingly
4336 (arm_init_neon_builtins): Change accordingly.
4337 (neon_builtin_compare): Remove.
4338 (locate_neon_builtin_icode): Remove.
4339 (arm_expand_neon_builtin): Change accordingly.
4340
4341 * arm.h (enum arm_builtins): Move to ...
4342 * arm.c (enum arm_builtins): ... here; and rearrange builtin code.
4343
4344 * arm.c (arm_builtin_decl): Declare.
4345 (TARGET_BUILTIN_DECL): Define.
4346 (enum arm_builtins): Correct ARM_BUILTIN_MAX.
4347 (arm_builtin_decls[]): New.
4348 (arm_init_neon_builtins): Store builtin declarations in
4349 arm_builtin_decls[].
4350 (arm_init_tls_builtins): Likewise.
4351 (arm_init_iwmmxt_builtins): Likewise. Refactor initialization code.
4352 (arm_builtin_decl): New.
4353
75e802cc
RG
43542011-04-18 Richard Guenther <rguenther@suse.de>
4355
4356 * tree.c (upper_bound_in_type): Build properly canonicalized
4357 INTEGER_CSTs.
4358 (lower_bound_in_type): Likewise.
4359
3b45a007
RG
43602011-04-18 Richard Guenther <rguenther@suse.de>
4361
4362 * gimple.h (gimple_call_addr_fndecl): New function.
4363 (gimple_call_fndecl): Use it.
4364 * gimple-fold.c (gimple_fold_call): Fold away OBJ_TYPE_REFs
4365 for direct calls.
4366 * tree-ssa-ccp.c (ccp_fold_stmt): Remove OBJ_TYPE_REF folding.
4367 * tree-ssa-pre.c (eliminate): Also simplify indirect OBJ_TYPE_REFs.
4368
d25a79ea
RG
43692011-04-18 Richard Guenther <rguenther@suse.de>
4370
4371 PR middle-end/48650
4372 * tree.c (build_string): STRING_CST is now derived from tree_typed.
4373
7d5fc814
EB
43742011-04-18 Eric Botcazou <ebotcazou@adacore.com>
4375
4376 PR lto/48492
4377 * cfgexpand.c (expand_debug_expr) <VAR_DECL>: Return NULL for a
4378 DECL_IN_CONSTANT_POOL without RTL.
4379
7e7cfcf6
UW
43802011-04-18 Ulrich Weigand <ulrich.weigand@linaro.org>
4381 Ira Rosen <ira.rosen@linaro.org>
4382
4383 PR target/48252
4384 * config/arm/arm.c (neon_emit_pair_result_insn): Swap arguments
4385 to match neon_vzip/vuzp/vtrn_internal.
4386 * config/arm/neon.md (neon_vtrn<mode>_internal): Make both
4387 outputs explicitly dependent on both inputs.
4388 (neon_vzip<mode>_internal, neon_vuzp<mode>_internal): Likewise.
4389
49eab32e
JJ
43902011-04-18 Jakub Jelinek <jakub@redhat.com>
4391
4392 PR tree-optimization/48616
4393 * tree-vect-stmts.c (vectorizable_shift): If SLP, determine
4394 whether the shift is by scalar or vector based on whether all SLP
4395 scalar stmts have the same rhs.
4396
e54170f4
CLT
43972011-04-17 Chung-Lin Tang <cltang@codesourcery.com>
4398
4399 * config/arm/arm.c (neon_struct_mem_operand): Support POST_INC/PRE_DEC
4400 memory operands.
4401
b14ee6c9
RS
44022011-04-17 Richard Sandiford <rdsandiford@googlemail.com>
4403
4404 * config/mips/mips.c (mips_cfun_call_saved_reg_p): Handle global
4405 registers.
4406
10158cd3
JH
44072011-04-17 Jan Hubicka <jh@suse.cz>
4408
4409 * cgrpah.h (struct cgraph_node): Remove finalized_by_frontend.
7d5fc814
EB
4410 * cgrpahunit.c (cgraph_finalize_function): Do not set
4411 finalized_by_frontend.
10158cd3
JH
4412 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4413 finalized_by_frontend.
4414
2e9bb6ba
JH
44152011-04-17 Jan Hubicka <jh@suse.cz>
4416
4417 * cgraph.c (cgraph_clone_node): Do not handle vtable_method
4418 * cgraph.h (struct cgraph_local_info): Drop vtable_method.
4419 * cgraphunit.c (cgraph_copy_node_for_versioning): Drop vtable_method.
7d5fc814
EB
4420 * lto-cgraph.c (lto_output_node, input_overwrite_node): Drop vtable
4421 method.
2e9bb6ba
JH
4422 * gimple-fold.c (can_refer_decl_in_current_unit_p): Mention PR20991 in
4423 gimple-fold.c
4424 * varasm.c (mark_decl_referenced): Drop vtable_method handling code.
4425
beb628e1
EB
44262011-04-17 Eric Botcazou <ebotcazou@adacore.com>
4427
4428 PR lto/48538
4429 * lto-cgraph.c (merge_profile_summaries): Check that lto_file_data
4430 is non-null before accessing it.
4431 (input_cgraph): Remove trailing spaces.
4432
3e2fdd24
RE
44332011-04-17 Revital Eres <revital.eres@linaro.org>
4434
4435 * params.def (sms-min-sc): New param flag.
4436 * modulo-sched.c (sms_schedule): Use it.
4437 * doc/invoke.texi (sms-min-sc): Document it.
4438
4c0f7679
JH
44392011-04-17 Jan Hubicka <jh@suse.cz>
4440
4441 * lto-symtab.c (lto_cgraph_replace_node): When call statement is
4442 present, also set gimple_call_set_cannot_inline.
4443 * ipa-inline.c: Update toplevel comment.
4444 (MAX_TIME): Remove.
4445 (cgraph_clone_inlined_nodes): Fix linebreaks.
4446 (cgraph_check_inline_limits): Restructure to ...
4447 (caller_growth_limits): ... this one; be more tolerant
4448 on growth in nested inline chains; add explanatory comment;
4449 fix stack accounting thinko introduced by previous patch.
4450 (cgraph_default_inline_p): Remove.
4451 (report_inline_failed_reason): New function.
4452 (can_inline_edge_p): New function.
4453 (can_early_inline_edge_p): New function.
4454 (leaf_node_p): Move upwards in file.
4455 (want_early_inline_function_p): New function.
4456 (want_inline_small_function_p): New function.
4457 (want_inline_self_recursive_call_p): New function.
4458 (cgraph_edge_badness): Rename to ...
4459 (edge_badness) ... this one; fix linebreaks.
4460 (update_edge_key): Update call of edge_baddness; add
4461 detailed dump about queue updates.
4462 (update_caller_keys): Use can_inline_edge_p and
4463 want_inline_small_function_p.
4464 (cgraph_decide_recursive_inlining): Rename to...
4465 (recursive_inlining): Use can_inline_edge_p and
f60c2554
UB
4466 want_inline_self_recursive_call_p; simplify and remove no longer
4467 valid FIXME.
4c0f7679
JH
4468 (cgraph_set_inline_failed): Remove.
4469 (add_new_edges_to_heap): Use can_inline_edge_p and
4470 want_inline_small_function_p.
4471 (cgraph_decide_inlining_of_small_functions): Rename to ...
4472 (inline_small_functions): ... this one; cleanup; use
f60c2554
UB
4473 can/want predicates; cleanup debug ouput; work edges till fibheap
4474 is exhausted and do not stop once unit growth is reached; remove
4475 later loop processing remaining edges.
4c0f7679
JH
4476 (cgraph_flatten): Rename to ...
4477 (flatten_function): ... this one; use can_inline_edge_p
4478 and can_early_inline_edge_p predicates.
4479 (cgraph_decide_inlining): Rename to ...
4480 (ipa_inline): ... this one; remove unreachable nodes before
4481 inlining functions called once; simplify the pass.
4482 (cgraph_perform_always_inlining): Rename to ...
4483 (inline_always_inline_functions): ... this one; use
f60c2554 4484 DECL_DISREGARD_INLINE_LIMITS; use can_inline_edge_p predicate.
4c0f7679
JH
4485 (cgraph_decide_inlining_incrementally): Rename to ...
4486 (early_inline_small_functions): ... this one; simplify
4487 using new predicates; cleanup; make dumps prettier.
4488 (cgraph_early_inlining): Rename to ...
4489 (early_inliner): newer inline regular functions into always-inlines;
4490 fix updating of call stmt summaries.
4491 (pass_early_inline): Update for new names.
4492 (inline_transform): Fix formating.
4493 (gate_cgraph_decide_inlining): Rename to ...
4494 (pass_ipa_inline): ... this one.
4495 * ipa-inline.h (inline_summary): Remove disregard_inline_limits.
4496 * ipa-inline-analysis.c (dump_inline_summary): Update.
4497 (compute_inline_parameters): Do not compute disregard_inline_limits;
4498 look for mismatching arguments.
4499 (estimate_growth): Fix handlig of non-trivial self recursion.
4500 (inline_read_summary): Do not read info->disregard_inline_limits.
4501 (inline_write_summary): Do not write info->disregard_inline_limits.
beb628e1
EB
4502 * tree-inline.c (inline_forbidden_into_p, tree_can_inline_p): Remove
4503 and move all checks into can_inline_edge_p predicate; re-enable code
4504 comparing optimization levels.
4c0f7679
JH
4505 (expand_call_inline): Do not test inline_forbidden_into_p.
4506 * Makefile.in (ipa-inline.o): Update arguments.
4507
54333b7c
RE
45082011-04-17 Revital Eres <revital.eres@linaro.org>
4509
4510 * ddg.c (free_ddg_all_sccs): Free sccs field in struct ddg_all_sccs.
4511
42c2bf92
RE
45122011-04-17 Revital Eres <revital.eres@linaro.org>
4513
4514 * modulo-sched.c (sms_schedule): Avoid unfreed memory when SMS fails.
4515
b183e9e0
MM
45162011-04-17 Michael Matz <matz@suse.de>
4517
4518 PR tree-optimization/48622
4519 PR lto/48645
4520 * ipa-inline-analysis.c (inline_read_summary): Read size/time
4521 in same order as they're written.
4522
b8a17fa2
JDA
45232011-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4524
4525 * config/pa/predicates.md: Reorganize and simplify predicates.
4526 Eliminate duplicate code checks.
4527 (arith_operand): Rename to arith14_operand
4528 (reg_or_ior_operand): Rename to reg_or_cint_ior_operand.
4529 * config/pa/pa.md: Use renamed operands.
4530 * config/pa/pa-protos.h (symbolic_operand): Delete declaration.
4531 (tls_symbolic_operand, function_label_operand, lhs_lshift_cint_operand,
4532 arith11_operand, adddi3_operand, indexed_memory_operand,
4533 symbolic_memory_operand, int11_operand, reg_or_cint_move_operand,
4534 arith5_operand, uint5_operand, pic_label_operand, plus_xor_ior_operator,
4535 borx_reg_operand, shadd_operand, arith_operand, read_only_operand,
4536 move_dest_operand, move_src_operand, prefetch_cc_operand,
4537 prefetch_nocc_operand, and_operand, ior_operand, arith32_operand,
4538 uint32_operand, reg_before_reload_operand, reg_or_0_operand,
4539 reg_or_0_or_nonsymb_mem_operand, pre_cint_operand, post_cint_operand,
4540 div_operand, int5_operand, movb_comparison_operator,
4541 ireg_or_int5_operand, call_operand_address, ior_operand, fp_reg_operand,
4542 arith_double_operand, ireg_operand, lhs_lshift_operand,
4543 pc_or_label_operand, non_hard_reg_operand, eq_neq_comparison_operator,
4544 integer_store_memory_operand): Likewise.
4545 * config/pa/pa.c (adddi3_operand): Move to predicates.md.
4546 (integer_store_memory_operand, read_only_operand,
4547 function_label_operand, borx_reg_operand,
4548 non_hard_reg_operand): Likewise.
4549 (eq_neq_comparison_operator): Delete unused operator.
4550 (legitimize_pic_address): Use VOIDmode for mode argument in calls to
4551 function_label_operand.
4552 (emit_move_sequence): Likewise.
4553
8dfb9f16
UB
45542011-04-16 Uros Bizjak <ubizjak@gmail.com>
4555
4556 * config/i386/sse.md (sseunpackmode): New mode attribute.
4557 (ssepackmode): Ditto.
4558 (vec_pack_trunc_<mode>): Macroize expander from
4559 vec_pack_trunc_{v8hi,v4si,v2di} using VI248_128 mode iterator.
4560 (vec_unpacks_lo_<mode>): Macroize expander from
4561 vec_unpacks_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4562 (vec_unpacks_hi_<mode>): Macroize expander from
4563 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4564 (vec_unpacku_lo_<mode>): Macroize expander from
4565 vec_unpacku_lo_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4566 (vec_unpacku_hi_<mode>): Macroize expander from
4567 vec_unpacks_hi_{v16qi,v8hi,v4si} using VI124_128 mode iterator.
4568 * config/i386/i386.c (ix86_expand_sse_unpack): Merge with
4569 ix86_expand_sse4_unpack.
4570 * config/i386/i386-protos.h (ix86_expand_sse4_unpack): Remove.
4571
e7f23018
JH
45722011-04-16 Jan Hubicka <jh@suse.cz>
4573
4574 * cgraphbuild.c: Include ipa-inline.h.
4575 (reset_inline_failed): Use initialize_inline_failed.
4576 * cgraph.c: Include ipa-inline.h.
4577 (cgraph_create_node_1): Do not initialize estimated_growth.
4578 (initialize_inline_failed): More to ipa-inline-analysis.c
4579 (dump_cgraph_node): Do not dump inline flags.
4580 * cgraph.h (cgraph_local_info): Remove inlineable, versionable
4581 and disregard_inline_limits flags.
4582 (cgrpah_global_info): Remove estimated_stack_size, stack_frame_offset,
4583 time, size, estimated_growth.
8dfb9f16
UB
4584 * ipa-cp.c (ipcp_versionable_function_p, ipcp_generate_summary):
4585 Update.
e7f23018
JH
4586 * cgraphunit.c (cgraph_decide_is_function_needed): Use
4587 DECL_DISREGARD_INLINE_LIMITS.
4588 (cgraph_analyze_function): Do not initialize
4589 node->local.disregard_inline_limits.
4590 * lto-cgraph.c (lto_output_node, input_overwrite_node): Do not stream
4591 inlinable, versionable and disregard_inline_limits.
4592 * ipa-inline.c (cgraph_clone_inlined_nodes, cgraph_mark_inline_edge,
8dfb9f16
UB
4593 cgraph_check_inline_limits, cgraph_default_inline_p,
4594 cgraph_edge_badness, update_caller_keys, update_callee_keys,
4595 add_new_edges_to_heap): Update.
4596 (cgraph_decide_inlining_of_small_function): Update; set
4597 CIF_FUNCTION_NOT_INLINABLE for uninlinable functions.
e7f23018
JH
4598 (cgraph_decide_inlining, cgraph_edge_early_inlinable_p,
4599 cgraph_decide_inlining_incrementally): Update.
8dfb9f16
UB
4600 * ipa-inline.h (inline_summary): Add inlinable, versionable,
4601 disregard_inline_limits, estimated_stack_size, stack_frame_offset,
4602 time, size and estimated_growth parameters.
e7f23018
JH
4603 (estimate_edge_growth): Update.
4604 (initialize_inline_failed): Declare.
4605 * ipa-split.c: Include ipa-inline.h
4606 (execute_split_functions): Update.
4607 * ipa.c (cgraph_postorder): Use DECL_DISREGARD_INLINE_LIMITS.
4608 (cgraph_remove_unreachable_nodes): Do not clear inlinable flag.
4609 (record_cdtor_fn): Use DECL_DISREGARD_INLINE_LIMITS.
4610 * ipa-inline-analysis.c (inline_node_removal_hook): Update; set
4611 estimated_growth to INT_MIN.
4612 (inline_node_duplication_hook): Likewise.
4613 (dump_inline_summary): Dump new fields.
4614 (compute_inline_parameters): Update.
4615 (estimate_edge_time, estimate_time_after_inlining,
4616 estimate_size_after_inlining, estimate_growth, inline_read_summary,
4617 inline_write_summary):
4618 (initialize_inline_failed): Move here from cgraph.c.
4619 * tree-sra.c: Include ipa-inline.h.
4620 (ipa_sra_preliminary_function_checks): Update.
f60c2554
UB
4621 * Makefile.in (cgraph.o, cgraphbuild.o): Add dependency on
4622 ipa-inline.h.
e7f23018 4623
e81b8564
UB
46242011-04-16 Uros Bizjak <ubizjak@gmail.com>
4625
4626 * config/i386/sse.md (V16): New mode iterator.
4627 (VI1, VI8): Ditto.
4628 (AVXMODEQI, AVXMODEDI): Remove.
4629 (sse2, sse3): New mode attribute.
4630 (mov<mode>): Use V16 mode iterator.
4631 (*mov<mode>_internal): Merge with *avx_mov<mode>_internal.
4632 (push<mode>1): Use V16 mode iterator.
4633 (movmisalign<mode>): Ditto.
4634 (<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4635 <sse>_movu<ssemodesuffix> and avx_movu<ssemodesuffix><avxmodesuffix>.
4636 (*<sse>_movu<ssemodesuffix><avxmodesuffix>): Merge from
4637 *<sse>_movu<ssemodesuffix> and *avx_movu<ssemodesuffix><avxmodesuffix>.
4638 (<sse2>_movdqu<avxmodesuffix>): Merge from sse2_movdqu and
4639 avx_movdqu<avxmodesuffix>.
4640 (*<sse2>_movdqu<avxmodesuffix>): Merge from *sse2_movdqu and
4641 *avx_movdqu<avxmodesuffix>.
4642 (<sse3>_lddqu<avxmodesuffix>) Merge from sse3_lddqu and
4643 avx_lddqu<avxmodesuffix>.
4644 (<sse>_movnt<mode>): Merge with avx_movnt<AVXMODEF2P:mode>.
4645 (<sse2>_movnt<mode>): Merge from sse2_movntv2di and
4646 avx_movnt<AVXMODEDI:mode>.
4647 * config/i386/i386.c (ix86_expand_vector_move_misalign): Update for
4648 renamed sse_movups, sse2_movupd and sse2_movdqu patterns.
4649
4743d438
BS
46502011-04-16 Bernd Schmidt <bernds@codesourcery.com>
4651
4652 PR target/48629
4653 * haifa-sched.c (prune_ready_list, schedule_block): Use
4654 sched_pressure_p rather than flag_sched_pressure.
4655
748f7574 46562011-04-15 Pat Haugen <pthaugen@us.ibm.com>
eb229cf4
PH
4657
4658 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
4659 cgraph_get_node instead of cgraph_get_create_node.
4660
2ba172e0
JJ
46612011-04-15 Jakub Jelinek <jakub@redhat.com>
4662
4663 * cfgexpand.c (expand_debug_expr): Use
4664 simplify_gen_{unary,binary,ternary} instead of gen_rtx_*.
4665
63d2a353
MM
46662011-04-15 Michael Matz <matz@suse.de>
4667
4668 * tree.h (ALLOCA_FOR_VAR_P): Rename to CALL_ALLOCA_FOR_VAR_P.
4669 * builtins.c (expand_builtin): Use CALL_ALLOCA_FOR_VAR_P.
4670 * function.c (gimplify_parameters): Ditto.
4671 * gimplify.c (gimplify_vla_decl): Ditto.
4672
4673 * gimple.h (enum gf_mask): Add GF_CALL_ALLOCA_FOR_VAR.
4674 (gimple_call_set_alloca_for_var): New inline function.
4675 (gimple_call_alloca_for_var_p): Ditto.
e81b8564
UB
4676 * gimple.c (gimple_build_call_from_tree): Remember
4677 CALL_ALLOCA_FOR_VAR_P state.
63d2a353
MM
4678 * cfgexpand.c (expand_call_stmt): Restore CALL_ALLOCA_FOR_VAR_P state.
4679
4680 * tree-inline.c (inline_forbidden_p_stmt): Don't reject alloca
4681 calls if they were for VLA objects.
4682
dee74c34
MJ
46832011-04-15 Martin Jambor <mjambor@suse.cz>
4684
4685 * ipa-prop.c (ipa_analyze_virtual_call_uses): Remove handling
4686 of ADR_EXPRs.
4687
8e5837bc
MJ
46882011-04-15 Martin Jambor <mjambor@suse.cz>
4689
4690 PR middle-end/48601
4691 * tree-emutls.c (lower_emutls_function_body): Call
4692 cgraph_get_create_node instead of cgraph_get_node. Do not assert the
4693 result is non-NULL.
4694
0dc33c3c
NP
46952011-04-15 Nicola Pero <nicola.pero@meta-innovation.com>
4696
4697 * c-decl.c (detect_field_duplicates): Call
4698 objc_detect_field_duplicates instead of objc_get_interface_ivars.
4699
edcdea5b
NF
47002011-04-15 Nathan Froyd <froydnj@codesourcery.com>
4701
4702 * gimple.h (gimple_asm_clobbers_memory_p): Declare.
4703 * gimple.c (gimple_asm_clobbers_memory_p): Define.
4704 * ipa-pure-const.c (check_stmt): Call it.
4705 * tree-ssa-operands.c (get_asm_expr_operands): Likewise.
4706
8456558d
RG
47072011-04-15 Richard Guenther <rguenther@suse.de>
4708
4709 PR tree-optimization/48290
4710 * tree-ssa-copy.c (copy_prop_visit_phi_node): Propagate constants.
4711 Properly decide inhibiting propagation based on the valueized
4712 operand. Do loop-closed SSA form preserving here ...
4713 (init_copy_prop): ... not here.
4714
266446be
L
47152011-04-15 H.J. Lu <hongjiu.lu@intel.com>
4716
4717 PR target/48612
4718 * config/i386/sse.md (*ieee_smin<mode>3): Switch mnemonics.
4719 (*ieee_smax<mode>3): Likewise.
4720
17465c6e
AK
47212011-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4722
4723 * config/s390/s390.md (popcountdi2, popcountsi2, popcounthi2):
4724 Replace match_operand with match_dup for the third operand in
4725 these expanders.
4726
bce204e5
MK
47272011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4728
4729 * combine.c (subst, combine_simlify_rtx): Add new argument, use it
4730 to track processing of conditionals. Update all callers.
4731 (try_combine, simplify_if_then_else): Update.
4732
3162fdf4
MK
47332011-04-15 Maxim Kuvyrkov <maxim@codesourcery.com>
4734
4735 * config/m68k/m68k.c (m68k_sched_variable_issue): Handle
4736 -fsched-pressure.
4737
79002a57 47382011-04-15 Georg-Johann Lay <avr@gjlay.de>
e81b8564 4739
79002a57
GJL
4740 * config/avr/avr.md ("rotl<mode>3",mode=HIDI): Use match_dup
4741 instead of match_operand for operand 3.
4742
4fd3a105
RS
47432011-04-15 Richard Sandiford <richard.sandiford@linaro.org>
4744
4745 * recog.h (insn_operand_data): Add an "allows_mem" field.
4746 * genoutput.c (output_operand_data): Initialize it.
4747 * optabs.c (maybe_legitimize_operand_same_code): New function.
4748 (maybe_legitimize_operand): Use it when matching the original
4749 op->value.
4750
ad19c4be
EB
47512011-04-15 Eric Botcazou <ebotcazou@adacore.com>
4752
4753 * gimplify.c: Fix issues in comments throughout.
4754 (voidify_wrapper_expr): Fix long line.
4755 (build_stack_save_restore): Likewise.
4756 (gimplify_loop_expr): Likewise.
4757 (gimplify_compound_lval): Likewise.
4758 (gimplify_init_ctor_eval): Likewise.
4759 (gimplify_modify_expr_rhs): Likewise.
4760 (omp_notice_threadprivate_variable): Likewise.
4761
b25aa0e8 47622011-04-15 Eric Botcazou <ebotcazou@adacore.com>
e7925582 4763
b25aa0e8
EB
4764 * cfgexpand.c (expand_call_stmt): Convert the function type to the
4765 original one if this is not a builtin function.
e7925582 4766
09db7afe
JJ
47672011-04-14 Jakub Jelinek <jakub@redhat.com>
4768
4769 PR target/48605
4770 * config/i386/sse.md (sse4_1_insertps): If operands[2] is a MEM,
4771 offset it as needed based on top 2 bits in operands[3], change
4772 MEM mode to SFmode and mask those 2 bits away from operands[3].
4773
c59633d9
NP
47742011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4775
4776 * c-parser.c (c_parser_objc_protocol_definition): Updated for
4777 change from objc_declare_protocols() to objc_declare_protocol().
4778
5e60198b
UB
47792011-04-14 Uros Bizjak <ubizjak@gmail.com>
4780
4781 * config/i386/sse.md (sse4_1): New mode attribute.
4782 (<sse4_1>_blend<ssemodesuffix><avxmodesuffix>): Macroize from
4783 avx_blend<ssemodesuffix><avxmodesuffix> and
4784 sse4_1_blend<ssemodesuffix> using VF mode iterator.
4785 (<sse4_1>_blendv<ssemodesuffix><avxmodesuffix>): Macroize from
4786 avx_blendv<ssemodesuffix><avxmodesuffix> and
4787 sse4_1_blendv<ssemodesuffix> using VF mode iterator.
4788 (<sse4_1>_dp<ssemodesuffix><avxmodesuffix>): Macroize from
4789 avx_dp<ssemodesuffix><avxmodesuffix> and
4790 sse4_1_dp<ssemodesuffix> using VF mode iterator.
4791 (sse4_1_mpsadbw): Merge with *avx_mpsadbw.
4792 (sse4_1_packusdw): Merge with *avx_packusdw.
4793 (sse4_1_pblendvb): Merge with *avx_pblendvb.
4794 (sse4_1_pblendw): Merge with *avx_pblendw.
4795 (avx_vtest<ssemodesuffix><avxmodesuffix>): Use VF mode iterator.
4796 (<sse4_1>_round<ssemodesuffix><avxmodesuffix>): Macroize from
4797 avx_round<ssemodesuffix>256 and sse4_1_round<ssemodesuffix> using
4798 VF mode iterator.
4799 (sse4_1_round<ssescalarmodesuffix>): Merge with
4800 *avx_round<ssescalarmodesuffix>.
4801 (aesenc): Merge with *avx_aesenc.
4802 (aesenclast): Merge with *avx_aesenclast.
4803 (aesdec): Merge with *avx_aesdec.
4804 (aesdeclast): Merge with *avx_aesdeclast.
4805 (pclmulqdq): Merge with *pclmulqdq.
4806 * config/i386/predicates.md (reg_not_xmm0_operand_maybe_avx):
4807 New predicate.
4808 (nonimm_not_xmm0_operand_maybe_avx): Ditto.
4809
6f197850
L
48102011-04-14 H.J. Lu <hongjiu.lu@intel.com>
4811
4812 PR middle-end/48608
4813 * cfgexpand.c (get_decl_align_unit): Renamed to ...
4814 (align_local_variable): This. Update DECL_ALIGN.
4815 (add_stack_var): Updated.
4816 (expand_one_stack_var): Likewise.
4817
4a5ba3ed
RG
48182011-04-14 Richard Guenther <rguenther@suse.de>
4819
4820 * tree-ssa-dse.c (struct dse_global_data, struct dse_block_local_data):
4821 Remove.
4822 (dse_initialize_block_local_data, dse_leave_block,
4823 record_voperand_set, get_stmt_uid): Likewise.
4824 (dse_possible_dead_store_p): Allow any kind of killing stmt.
4825 (dse_optimize_stmt): Remove voperand set handling code.
4826 Simplify and improve to handle any kind of killing stmt.
4827 (dse_record_phi): Remove.
4828 (dse_enter_block): Simplify.
4829 (tree_ssa_dse): Likewise.
4830 * tree-ssa-alias.c (stmt_kills_ref_p_1): Handle some builtins.
4831
10a5dd5d
JH
48322011-04-14 Jan Hubicka <jh@suse.cz>
4833
4834 * cgraph.c (dump_cgraph_node): Do not dump inline summaries.
4835 * cgraph.h (struct inline_summary): Move to ipa-inline.h
4836 (cgraph_local_info): Remove inline_summary.
4837 * ipa-cp.c: Include ipa-inline.h.
4838 (ipcp_cloning_candidate_p, ipcp_estimate_growth,
4839 ipcp_estimate_cloning_cost, ipcp_insert_stage): Use inline_summary
4840 accesor.
4841 * lto-cgraph.c (lto_output_node): Do not stream inline summary.
4842 (input_overwrite_node): Do not set inline summary.
4843 (input_node): Do not stream inline summary.
4844 * ipa-inline.c (cgraph_decide_inlining): Dump inline summaries.
4845 (cgraph_decide_inlining_incrementally): Do not try to estimate overall
4846 growth; we do not have inline parameters computed for that anyway.
4847 (cgraph_early_inlining): After inlining compute call_stmt_sizes.
4848 * ipa-inline.h (struct inline_summary): Move here from ipa-inline.h
4849 (inline_summary_t): New type and VECtor.
4850 (debug_inline_summary, dump_inline_summaries): Declare.
4851 (inline_summary): Use VOCtor.
4852 (estimate_edge_growth): Kill hack computing call stmt size directly.
4853 * lto-section-in.c (lto_section_name): Add inline section.
4854 * ipa-inline-analysis.c: Include lto-streamer.h
4855 (node_removal_hook_holder, node_duplication_hook_holder): New holders
4856 (inline_node_removal_hook, inline_node_duplication_hook): New functions.
4857 (inline_summary_vec): Define.
4858 (inline_summary_alloc, dump_inline_summary, debug_inline_summary,
4859 dump_inline_summaries): New functions.
5e60198b
UB
4860 (estimate_function_body_sizes): Properly compute size/time of outgoing
4861 calls.
4862 (compute_inline_parameters): Alloc inline_summary; do not compute
4863 size/time of incomming calls.
10a5dd5d
JH
4864 (estimate_edge_time): Avoid missing time summary hack.
4865 (inline_read_summary): Read inline summary info.
4866 (inline_write_summary): Write inline summary info.
4867 (inline_free_summary): Free all hooks and inline summary vector.
4868 * lto-streamer.h: Add LTO_section_inline_summary section.
4869 * Makefile.in (ipa-cp.o, ipa-inline-analysis.o): Update dependencies.
4870 * ipa.c (cgraph_remove_unreachable_nodes): Fix dump file formating.
4871
b602d918
RS
48722011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4873
4874 * tree-vectorizer.h (vect_strided_store_supported): Add a
4875 HOST_WIDE_INT argument.
4876 (vect_strided_load_supported): Likewise.
4877 (vect_permute_store_chain): Return void.
4878 (vect_transform_strided_load): Likewise.
4879 (vect_permute_load_chain): Delete.
4880 * tree-vect-data-refs.c (vect_strided_store_supported): Take a
4881 count argument. Check that the count is a power of two.
4882 (vect_strided_load_supported): Likewise.
4883 (vect_permute_store_chain): Return void. Update after above changes.
4884 Assert that the access is supported.
4885 (vect_permute_load_chain): Likewise.
4886 (vect_transform_strided_load): Return void.
4887 * tree-vect-stmts.c (vectorizable_store): Update calls after
4888 above interface changes.
4889 (vectorizable_load): Likewise.
4890 (vect_analyze_stmt): Don't check for strided powers of two here.
4891
ab4472fa
RG
48922011-04-14 Richard Guenther <rguenther@suse.de>
4893
4894 PR tree-optimization/48590
4895 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
4896 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4897 (call_may_clobber_ref_p_1): Handle BUILT_IN_ALLOCA and
4898 BUILT_IN_STACK_SAVE.
4899 * tree-ssa-dce.c (propagate_necessity): Handle
4900 BUILT_IN_ALLOCA, BUILT_IN_STACK_SAVE and BUILT_IN_STACK_RESTORE.
4901
32dabdaf
NP
49022011-04-14 Nicola Pero <nicola.pero@meta-innovation.com>
4903
4904 * c-parser.c (c_parser_objc_class_declaration): Updated call to
4905 objc_declare_class.
4906
daade206
RG
49072011-04-14 Richard Guenther <rguenther@suse.de>
4908
4909 * tree.h (get_object_alignment_1): Declare.
4910 * builtins.c (get_object_alignment_1): Split out worker from ...
4911 (get_object_alignment): ... here.
4912 * fold-const.c (get_pointer_modulus_and_residue): Use
4913 get_object_alignment_1.
4914
920e8172
RS
49152011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4916
4917 * tree-vectorizer.h (vect_create_data_ref_ptr): Add an extra
4918 type parameter.
4919 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add an aggr_type
4920 parameter. Generalise code to handle arrays as well as vectors.
4921 (vect_setup_realignment): Update accordingly.
4922 * tree-vect-stmts.c (vectorizable_store): Likewise.
4923 (vectorizable_load): Likewise.
4924
5ce1ee7f
RS
49252011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
4926
4927 * tree-vect-stmts.c (vectorizable_load): Allocate and free dr_chain
4928 within the per-copy loop.
4929
6438fe33 49302011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
0ea25ecd
RS
4931
4932 * tree-vect-stmts.c (vectorizable_load): Print the number of copies
4933 in the dump file.
4934
6438fe33 49352011-04-14 Richard Sandiford <richard.sandiford@linaro.org>
77b10485
RS
4936
4937 * doc/options.texi (Negative): Explicitly mention that the
4938 Negative chain must be circular.
4939
61e46a7d
NF
49402011-04-14 Nathan Froyd <froydnj@codesourcery.com>
4941
4942 * function.h (block_chainon): Declare.
4943 * function.c (block_chainon): Define.
4944
43ea6502 49452011-04-14 Anatoly Sokolov <aesok@post.ru>
5e60198b 4946 Eric Weddington <eric.weddington@atmel.com>
748f7574 4947 Georg-Johann Lay <avr@gjlay.de>
5e60198b 4948
f60c2554 4949 * config/avr/avr.c ("insn-codes.h", "optabs.h", "langhooks.h"):
43ea6502
AS
4950 New Includes
4951 (avr_init_builtins, avr_expand_builtin,
4952 avr_expand_delay_cycles, avr_expand_unop_builtin,
4953 avr_expand_binop_builtin ): New functions.
4954 (avr_builtin_id): New enum
4955 (struct avr_builtin_description): New struct
4956 (bdesc_1arg, bdesc_2arg): New arrays describing some RTL builtins.
4957 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
5e60198b 4958
43ea6502 4959 * config/avr/avr.md (UNSPEC_FMUL, UNSPEC_FMULS, UNSPEC_FMULSU,
5e60198b 4960 UNSPECV_ENABLE_IRQS, UNSPECV_NOP, UNSPECV_SLEEP, UNSPECV_WDR,
43ea6502
AS
4961 UNSPECV_DELAY_CYCLES): new enumeration values
4962 (UNSPEC_SEI, UNSPEC_CLI): Remove enumeration values
4963 ("enable_interrupt"): Use UNSPECV_ENABLE_IRQS
4964 ("disable_interrupt"): Use UNSPECV_ENABLE_IRQS
4965 ("*rotlqi3_4"): rename insn to "rotlqi3_4"
4966 ("delay_cycles_1", "delay_cycles_2", "delay_cycles_3",
4967 "delay_cycles_4", "nopv", "sleep", "wdr", "fmul", "fmuls",
4968 "fmulsu"): New insns
5e60198b 4969
43ea6502
AS
4970 * config/avr/avr-c.c: fix line endings
4971 (avr_cpu_cpp_builtins): New builtin defines: __BUILTIN_AVR_NOP,
4972 __BUILTIN_AVR_SEI, __BUILTIN_AVR_CLI, __BUILTIN_AVR_WDR,
4973 __BUILTIN_AVR_SLEEP, __BUILTIN_AVR_SWAP,
4974 __BUILTIN_AVR_DELAY_CYCLES, __BUILTIN_AVR_FMUL,
4975 __BUILTIN_AVR_FMULS, __BUILTIN_AVR_FMULSU.
5e60198b 4976
43ea6502
AS
4977 * doc/extend.texi (AVR Built-in Functions): New node
4978 (Target Builtins): Add documentation of AVR
4979 built-in functions.
4980
8a9b55f3
GJL
49812011-04-14 Georg-Johann Lay <avr@gjlay.de>
4982
4983 PR target/44643
4984 * config/avr/avr.c (avr_insert_attributes): Leave TREE_READONLY
4985 alone. Error if non-const data has attribute progmem.
4986
94bd1825
NF
49872011-04-13 Nathan Froyd <froydnj@codesourcery.com>
4988
4989 * tree.h (struct tree_constructor): Include tree_typed instead of
4990 tree_common.
4991 * tree.c (initialize_tree_contains_struct): Mark TS_CONSTRUCTOR as
4992 TS_TYPED instead of TS_COMMON.
4993
5e60198b 49942011-04-13 Uros Bizjak <ubizjak@gmail.com>
81b1e7eb
UB
4995
4996 * config/i386/sse.md (*sse2_uavgv16qi3): Merge with *avx_uavgv16qi3.
4997 (*sse2_uavgv8hi3): Merge with *avx_uavgv8hi3.
4998 (sse2_psadbw): Merge with *avx_psadbw.
4999 (ssse3_phaddwv8hi3): Merge with *avx_phaddwv8hi3.
5000 (ssse3_phadddv4si3): Merge with *avx_phadddv4si3.
5001 (ssse3_phaddswv8hi3): Merge with *avx_phaddswv8hi3.
5002 (ssse3_phsubwv8hi3): Merge with *avx_phsubwv8hi3.
5003 (ssse3_phsubdv4si3): Merge with *avx_phsubdv4si3.
5004 (ssse3_phsubswv8hi3): Merge with *avx_phsubswv8hi3.
5005 (ssse3_pmaddubsw128): Merge with *avx_pmaddubsw128.
5006 (*ssse3_pmulhrswv8hi3): Merge with *avx_pmulhrswv8hi3.
5007 (ssse3_pshufbv16qi3): Merge with *avx_pshufbv16qi3.
5008 (ssse3_psign<mode>3): Merge with *avx_psign<mode>3.
5009 (ssse3_palignrti): Merge with *avx_palignrti.
5010
4b1a4694
NF
50112011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5012
5013 * tree-flow.h (struct gimple_df): Make free_ssanames a VEC.
5014 * tree-ssanames.c (fini_ssanames): VEC_free it.
5015 (make_ssa_name_fn): Update for VECness of free_ssanames.
5016 (release_ssa_name, release_dead_ssa_names): Likewise.
5017 * tree.h (struct tree_ssa_name): Include tree_typed instead of
5018 tree_common.
5019 * tree.c (initialize_tree_contains_struct): Mark TS_SSA_NAME as
5020 TS_TYPED instead of TS_COMMON.
5021
4da3b811
NF
50222011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5023
5024 * postreload-gcse.c (gcse_after_reload_main): Add calls to
5025 statistics_counter_event.
5026 * tree-ssa-copyrename.c (stats): Define.
5027 (rename_ssa_copies): Count coalesced SSA_NAMEs. Add call to
5028 statistics_counter_event.
5029 * tree-ssa-math-opts.c (reciprocal_stats, sincos_stats): Define.
5030 (bswap_stats, widen_mul_stats): Define.
5031 (insert_reciprocals): Increment rdivs_inserted.
5032 (execute_cse_reciprocals): Zeroize reciprocal_stats. Increment
5033 rfuncs_inserted. Add calls to statistics_counter_event.
5034 (execute_cse_sincos_1): Increment inserted.
5035 (execute_cse_sincos): Zeroize sincos_stats. Add call to
5036 statistics_counter_event.
5037 (execute_optimize_bswap): Zeroize bswap_stats. Increment fields
5038 of bswap_stats. Add calls to statistics_counter_event.
5039 (convert_mult_to_widen): Increment widen_mults_inserted.
5040 (convert_plusminus_to_widen): Increment maccs_inserted.
5041 (convert_mult_to_fma): Increment fmas_inserted.
5042 (execute_optimize_widening_mul): Zeroize widen_mul_stats. Add
5043 calls to statistics_counter_event.
5044
89fa552a
VM
50452011-04-13 Vladimir Makarov <vmakarov@redhat.com>
5046
5047 PR rtl-optimization/48455
5048 * ira-costs.c (find_costs_and_classes): Use i_mem_cost instead of
5049 `temp_costs->mem_cost'.
5050
03dfc36d
JH
50512011-04-13 Jan Hubicka <jh@suse.cz>
5052
5053 * ipa-inline.h: New file.
5054 * ipa-inline-analysis.c: New file. Broken out of ...
5055 * ipa-inline.c: ... this file; update toplevel comment;
5056 include ipa-inline.h
5057 (inline_summary): Move to ipa-inline.h
5058 (cgraph_estimate_edge_time): Rename to estimate_edge_time; move to
5059 ipa-inline-analysis.c.
7d4f8d02
EB
5060 (cgraph_estimate_time_after_inlining): Rename to
5061 estiamte_time_after_inlining; move to ipa-inline-analysis.c
03dfc36d
JH
5062 (cgraph_estimate_edge_growth): Move to ipa-inline-analysis.c; rename
5063 to estimate_edge_growth.
5064 (cgraph_estimate_size_after_inlining): Move to ipa-inline-analysis.c;
5065 rename to estimate_size_after_inlining.
5066 (cgraph_mark_inline_edge): Update for new naming convention.
5067 (cgraph_check_inline_limits): Likewise.
5068 (cgraph_edge_badness): Likewise.
5069 (cgraph_decide_recursive_inlining): Likewise.
5070 (cgraph_decide_inlining_of_small_functions): Likewise.
5071 (cgraph_decide_inlining_incrementally): Likewise.
7d4f8d02
EB
5072 (cgraph_estimate_growth): Rename to estimate_growth; move to
5073 ipa-inline-analysis.c.
03dfc36d
JH
5074 (eliminated_by_inlining_prob): Move to ipa-inline-analysis.c.
5075 (estimate_function_body_sizes): Move to ipa-inline-analysis.c.
5076 (compute_inline_parameters): Likewise.
5077 (compute_inline_parameters_for_current): Likewise.
5078 (pass_inline_parameters): Likewise.
5079 (inline_indirect_intraprocedural_analysis): Likewise.
5080 (analyze_function): Rename to inline_analyze_function; likewise.
5081 (add_new_function): Move to ipa-inline-analysis.c.
5082 (inline_generate_summary): Likewise.
5083 (inline_read_summary): Likewise.
5084 (inline_write_summary): Likewise.
5085 * Makefile.in (ipa-inline-analysis.c): New file.
5086
7673c962
RO
50872011-04-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5088
5089 * configure.ac (gcc_cv_as_sparc_gotdata_op): Remove GNU ld check.
5090 * configure: Regenerate.
5091
9698252f
NF
50922011-04-13 Nathan Froyd <froydnj@codesourcery.com>
5093
5094 * tree.h (struct tree_int_cst, struct real_value): Include tree_typed
5095 instead of tree_common.
5096 (struct tree_fixed_cst, struct tree_string, struct tree_complex):
5097 Likewise.
5098 * tree.c (initialize_tree_contains_struct): Mark such nodes as being
5099 TS_TYPED rather than TS_COMMON.
5100 * print-tree.c (print_node) [STRING_CST]: Don't print TREE_CHAIN.
5101
3a7bfdd5
GJL
51022011-04-01 Georg-Johann Lay <avr@gjlay.de>
5103
5104 PR target/45263
86d83530
GJL
5105 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Don't use
5106 r20 around calls of __tablejump_elpm__
3a7bfdd5 5107
20790697
JJ
51082011-04-13 Jakub Jelinek <jakub@redhat.com>
5109
5110 PR middle-end/48591
5111 * omp-low.c (expand_omp_atomic_fetch_op): Return false if decl is
5112 NULL.
5113 (expand_omp_atomic_pipeline): Return false if cmpxchg is NULL.
5114
094d7661
BS
51152011-04-13 Bernd Schmidt <bernds@codesourcery.com>
5116
5117 * dwarf2out.c (struct dw_cfi_struct): Remove member dw_cfi_next.
5118 (dw_cfi_ref): Add DEF_VEC_P and some DEF_VEC_ALLOC_Ps.
5119 (cfi_vec): New typedef.
5120 (struct dw_fde_struct): Make dw_fde_cfi a cfi_vec. Replace
5121 dw_fde_switch_cfi with an integer dw_fde_switch_cfi_index.
5122 (cie_cfi_vec): New static variable.
5123 (cie_cfi_head): Delete.
5124 (add_cfi): Accept a cfi_vec * as first argument. All callers and
5125 declaration changed. Use vector rather than list operations.
5126 (new_cfi): Don't initialize the dw_cfi_next field.
5127 (add_fde_cfi): Allocate cie_cfi_vec if necessary. Use vector
5128 rather than list operations.
5129 (lookup_cfa): Use vector rather than list operations.
5130 (output_cfis): New argument upto. Accept a cfi_vec rather than
5131 a dw_cfi_ref list head as argument. All callers changed.
5132 Iterate over the vector using upto as a maximum index.
5133 (output_all_cfis): New static function.
5134 (output_fde): Use vector rather than list operations. Use the
5135 new upto argument for output_cfis rather than manipulating a
5136 list.
5137 (dwarf2out_begin_prologue): Change initializations to match
5138 new struct members.
5139 (dwarf2out_switch_text_section): Initialize dw_fde_switch_cfi_index
5140 from the vector length rather than searching for the end of a list.
5141 Use output_all_cfis.
5142 (convert_cfa_to_fb_loc_list): Use vector rather than list operations.
5143
673a5740
NC
51442011-04-13 Nick Clifton <nickc@redhat.com>
5145
5146 * config/rx/rx.md (movmemsi): Do not use this pattern when
5147 volatile pointers are involved.
5148
1ee8b298
UB
51492011-04-13 Uros Bizjak <ubizjak@gmail.com>
5150
5151 * config/i386/sse.md (pinsrbits): Remove.
5152 (sse2_packsswb): Merge with *avx_packsswb.
5153 (sse2_packssdw): Merge with *avx_packssdw.
5154 (sse2_packuswb): Merge with *avx_packuswb.
5155 (vec_interleave_highv16qi): Merge with *avx_interleave_highv16qi.
5156 (vec_interleave_lowv16qi): Merge with *avx_interleave_lowv16qi.
5157 (vec_interleave_highv8hi): Merge with *avx_interleave_highv8hi.
5158 (vec_interleave_lowv8hi): Merge with *avx_interleave_lowv8hi.
5159 (vec_interleave_highv4si): Merge with *avx_interleave_highv4si.
5160 (vec_interleave_lowv4si): Merge with *avx_interleave_lowv4si.
5161 (*sse4_1_pinsrb): Merge with *avx_pinsr<ssevecsize>.
5162 (*sse2_pinsrw): Merge with *avx_pinsr<ssevecsize>.
5163 (*sse4_1_pinsrd): Merge with *avx_pinsr<ssevecsize>.
5164 (*sse4_1_pinsrq): Merge with *avx_pinsrq.
5165 (sse2_loadld): Merge with *avx_loadld.
5166 (*vec_extractv2di_1_rex64): Merge with *vec_extractv2di_1_rex64_avx.
5167 (*vec_extractv2di_1_sse2): Merge with *vec_extractv2di_1_avx.
5168 (*vec_concatv2si_sse4_1): Merge with *vec_concatv2si_avx.
5169 (*vec_concatv2di_rex64_sse4_1): Merge with *vec_concatv2di_rex64_avx.
5170 (vec_concatv2di): Merge with *vec_concatv2di_avx.
5171
81f653d6
NF
51722011-04-12 Nathan Froyd <froydnj@codesourcery.com>
5173
5174 * c-decl.c (union lang_tree_node): Check for TS_COMMON before
5175 calling TREE_CHAIN.
5176 * print-tree.c (print_node): Likewise.
5177 * tree-inline.c (copy_tree_r): Likewise.
5178 * c-lang.c (LANG_HOOKS_INIT_TS): Define.
5179 * lto-streamer-in.c (lto_input_tree_pointers): Check for TS_TYPED
5180 instead of TS_COMMON.
5181 * lto-streamer-out.c (lto_output_tree_pointers): Likewise.
5182 * tree.c (initialize_tree_contains_struct): Handle TS_TYPED.
5183 (copy_node_stat): Zero TREE_CHAIN only if necessary.
5184 (MARK_TS_BASE, MARK_TS_TYPED, MARK_TS_COMMON): Move these...
5185 (MARK_TS_DECL_COMMON, MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL):
5186 ...and these...
5187 (MARK_TS_DECL_WITH_VIS, MARK_TS_DECL_NON_COMMON): ...and these...
5188 * tree.h: ...here.
5189 (TREE_CHAIN): Check for a TS_COMMON structure.
5190 (TREE_TYPE): Check for a TS_TYPED structure.
5191
748f7574 51922011-04-12 Pat Haugen <pthaugen@us.ibm.com>
ed940a4a
PH
5193
5194 * config/rs6000/rs6000.c (call_ABI_of_interest): Call
5195 cgraph_get_create_node instead of cgraph_node.
5196
eb345401
NP
51972011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5198
5199 * c-parser.c (c_parser_initelt): Updated call to
5200 objc_build_message_expr.
5201 (c_parser_postfix_expression): Likewise.
5202
a6c46762
KT
52032011-04-12 Kai Tietz <ktietz@redhat.com>
5204
5205 * config/i386/mingw32.h (TARGET_SUBTARGET_DEFAULT): Add
5206 MASK_MS_BITFIELD_LAYOUT bit.
5207
b4ccfed9
JJ
52082011-04-12 Jakub Jelinek <jakub@redhat.com>
5209
5210 * combine.c (update_cfg_for_uncondjump): Instead of testing at_end
5211 assert it is always true.
5212 (try_combine): Don't call update_cfg_for_uncondjump for noop non-jump
5213 moves.
5214
0d8a2528
NP
52152011-04-12 Nicola Pero <nicola.pero@meta-innovation.com>
5216
5217 * c-parser.c (c_lex_one_token): Rewritten conditional used when
5218 compiling Objective-C to be more efficient.
5219
06bd234a
AF
52202011-04-12 Axel Freyn <axel-freyn@gmx.de>
5221
5222 * opts-common.c (decode_cmdline_options_to_array): Remove variable
5223 argv_copied.
5224
28569ac3
RS
52252011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5226
5227 * recog.h, genoutput.c, optabs.c: Revert last patch.
5228
ae59e00d
RR
52292011-04-12 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5230
81b1e7eb
UB
5231 PR target/48090
5232 * config/arm/arm.md (*arm_negdi2): Fix early clobber constraints.
ae59e00d 5233
cff1b7e0
RS
52342011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5235
5236 * recog.h (insn_operand_data): Add an "allows_mem" field.
5237 * genoutput.c (output_operand_data): Initialize it.
5238 * optabs.c (maybe_legitimize_operand_same_code): New function.
5239 (maybe_legitimize_operand): Use it when matching the original
5240 op->value.
5241
77059241
RS
52422011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5243
5244 * genpreds.c (process_define_predicate): Move most processing
5245 to gensupport.c. Continue to validate the expression.
5246 * genrecog.c (did_you_mean_codes, compute_predicate_codes)
5247 (process_define_predicate): Move processing to gensupport.c.
5248 (main): Remove DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE cases.
5249 * gensupport.c (did_you_mean_codes): Moved from genrecog.c.
5250 (compute_predicate_codes): Moved from genrecog.c. Add lineno
5251 argument.
5252 (valid_predicate_name_p): New function, split out from old
5253 genpreds.c:process_define_predicate.
5254 (process_define_predicate): New function, combining code from
5255 old genpreds.c and genrecog.c functions.
5256 (process_rtx): Call it for DEFINE_PREDICATE and
5257 DEFINE_SPECIAL_PREDICATE.
5258
6308e208
RS
52592011-04-12 Richard Sandiford <richard.sandiford@linaro.org>
5260
5261 * config/arm/arm.c (arm_print_operand): Use MEM_SIZE to get the
5262 size of a '%A' memory reference.
5263 (T_DREG, T_QREG): New neon_builtin_type_bits.
5264 (arm_init_neon_builtins): Assert that the load and store operands
5265 are neon_struct_operands.
5266 (locate_neon_builtin_icode): Provide the neon_builtin_type_bits.
5267 (NEON_ARG_MEMORY): New builtin_arg.
5268 (neon_dereference_pointer): New function.
5269 (arm_expand_neon_args): Add a neon_builtin_type_bits argument.
5270 Handle NEON_ARG_MEMORY.
5271 (arm_expand_neon_builtin): Update after above interface changes.
5272 Use NEON_ARG_MEMORY for loads and stores.
5273 * config/arm/predicates.md (neon_struct_operand): New predicate.
5274 * config/arm/iterators.md (V_two_elem): Tweak formatting.
5275 (V_three_elem): Use BLKmode for accesses that have no associated mode.
5276 (V_four_elem): Tweak formatting.
5277 * config/arm/neon.md (neon_vld1<mode>, neon_vld1_dup<mode>)
5278 (neon_vst1_lane<mode>, neon_vst1<mode>, neon_vld2<mode>)
5279 (neon_vld2_lane<mode>, neon_vld2_dup<mode>, neon_vst2<mode>)
5280 (neon_vst2_lane<mode>, neon_vld3<mode>, neon_vld3_lane<mode>)
5281 (neon_vld3_dup<mode>, neon_vst3<mode>, neon_vst3_lane<mode>)
5282 (neon_vld4<mode>, neon_vld4_lane<mode>, neon_vld4_dup<mode>)
5283 (neon_vst4<mode>): Replace pointer operand with a memory operand.
5284 Use %A in the output template.
5285 (neon_vld3qa<mode>, neon_vld3qb<mode>, neon_vst3qa<mode>)
5286 (neon_vst3qb<mode>, neon_vld4qa<mode>, neon_vld4qb<mode>)
5287 (neon_vst4qa<mode>, neon_vst4qb<mode>): Likewise, but halve
5288 the width of the memory access. Remove post-increment.
5289 * config/arm/neon-testgen.ml: Allow addresses to have an alignment.
5290
e5db8f2f
NC
52912011-04-12 Nick Clifton <nickc@redhat.com>
5292
5293 * config/v850/v850.c (expand_prologue): Do not use the CALLT
5294 instruction for interrupt handlers if the target is the basic V850
5295 architecture.
5296 (expand_epilogue): Likewise.
5297
74f091d6
JJ
52982011-04-12 Jakub Jelinek <jakub@redhat.com>
5299
5300 PR rtl-optimization/48549
5301 * combine.c (propagate_for_debug): Also stop after BB_END of
5302 this_basic_block. Process LAST and just stop processing after it.
5303 (combine_instructions): If last_combined_insn has been deleted,
5304 set last_combined_insn to its PREV_INSN.
5305
f20ca725
RG
53062011-04-12 Richard Guenther <rguenther@suse.de>
5307
5308 PR tree-optimization/46076
5309 * gimple.h (struct gimple_statement_call): Add fntype field.
5310 (gimple_call_fntype): Adjust.
5311 (gimple_call_set_fntype): New function.
5312 * gimple.c (gimple_build_call_1): Set the call function type.
5313 * gimplify.c (gimplify_call_expr): Preserve the function
5314 type the frontend used for the call.
5315 (gimplify_modify_expr): Likewise.
5316 * lto-streamer-in.c (input_gimple_stmt): Input the call stmts
5317 function type.
5318 * lto-streamer-out.c (output_gimple_stmt): Output the call stmts
5319 function type.
5320 * tree-ssa.c (useless_type_conversion_p): Function pointer
5321 conversions are useless.
5322
a358e188
MJ
53232011-04-12 Martin Jambor <mjambor@suse.cz>
5324
5325 * cgraph.h (cgraph_node): Remove function declaration.
5326 (cgraph_create_node): Declare.
5327 (cgraph_get_create_node): Likewise.
5328 * cgraph.c (cgraph_create_node): Renamed to cgraph_create_node_1.
5329 Updated all callers.
5330 (cgraph_node): Renamed to cgraph_create_node, assert that a node for
5331 the decl does not already exist. Call cgraph_get_create_node instead
5332 of cgraph_node.
5333 (cgraph_get_create_node): New function.
5334 (cgraph_same_body_alias): Update comment.
5335 (cgraph_set_call_stmt): Call cgraph_get_node instead of cgraph_node,
5336 assert it does not return NULL.
5337 (cgraph_update_edges_for_call_stmt): Likewise.
5338 (cgraph_clone_edge): Likewise.
5339 (cgraph_create_virtual_clone): Likewise.
5340 (cgraph_update_edges_for_call_stmt_node): Call cgraph_get_create_node
5341 instead of cgraph_node.
5342 (cgraph_add_new_function): Call cgraph_create_node or
5343 cgraph_get_create_node instead of cgraph_node.
5344 * cgraphbuild.c (record_reference): Call cgraph_get_create_node
5345 instead of cgraph_node.
5346 (record_eh_tables): Likewise.
5347 (mark_address): Likewise.
5348 (mark_load): Likewise.
5349 (build_cgraph_edges): Call cgraph_get_create_node instead
5350 of cgraph_node.
5351 (rebuild_cgraph_edges): Likewise.
5352 * cgraphunit.c (cgraph_finalize_function): Call cgraph_get_create_node
5353 instead of cgraph_node.
5354 (cgraph_copy_node_for_versioning): Call cgraph_create_node instead of
5355 cgraph_node.
5356 * lto-symtab.c (lto_symtab_merge_cgraph_nodes_1): Call
5357 cgraph_create_node instead of cgraph_node.
5358 * c-decl.c (finish_function): Call cgraph_get_create_node instead
5359 of cgraph_node.
5360 * lto-cgraph.c (input_node): Likewise.
5361 * lto-streamer-in.c (input_function): Likewise.
5362 * varasm.c (mark_decl_referenced): Likewise.
5363 (assemble_alias): Likewise.
5364
fe660d7b
MJ
53652011-04-12 Martin Jambor <mjambor@suse.cz>
5366
5367 * tree-inline.c (tree_function_versioning): Call cgraph_get_node
5368 instead of cgraph_node and assert it does not return NULL.
5369 * lto-streamer-in.c (lto_read_body): Likewise.
5370 * omp-low.c (new_omp_context): Likewise.
5371 (create_task_copyfn): Likewise.
5372 * tree-emutls.c (lower_emutls_function_body): Likewise.
5373 * matrix-reorg.c (transform_allocation_sites): Likewise.
5374
bae5cddf
JJ
53752011-04-12 Jakub Jelinek <jakub@redhat.com>
5376
5377 PR c/48552
5378 * c-typeck.c (build_asm_expr): Error out on attempts to use
5379 void type outputs or inputs for constraints that allow reg or
5380 don't allow memory.
5381
06eb52ca
CLT
53822011-04-11 Chung-Lin Tang <cltang@codesourcery.com>
5383 Richard Earnshaw <rearnsha@arm.com>
5384
5385 PR target/48250
5386 * config/arm/arm.c (arm_legitimize_reload_address): Update cases
5387 to use sign-magnitude offsets. Reject unsupported unaligned
5388 cases. Add detailed description in comments.
5389 * config/arm/arm.md (reload_outdf): Disable for ARM mode; change
5390 condition from TARGET_32BIT to TARGET_ARM.
5391
648a616b
NF
53922011-04-11 Nathan Froyd <froydnj@codesourcery.com>
5393
5394 * tree.h (struct typed_tree): New.
5395 (struct tree_common): Include it instead of tree_base.
5396 (TREE_TYPE): Update for new location of type field.
5397 (TYPE_USER_ALIGN, TYPE_PACKED): Refer to base field directly.
5398 (DECL_USER_ALIGN, DECL_PACKED): Likewise.
5399 (union tree_node): Add typed field.
5400 * treestruct.def (TS_TYPED): New.
5401 * lto-streamer.c (check_handled_ts_structures): Handle it.
5402 * tree.c (MARK_TS_TYPED): New macro.
5403 (MARK_TS_COMMON): Call it instead of MARK_TS_BASE.
5404
1e6d1da0
EB
54052011-04-11 Eric Botcazou <ebotcazou@adacore.com>
5406
5407 * cfghooks.c (redirect_edge_and_branch_force): Localize variable.
5408 (force_nonfallthru): Do not alter the loop nest if no basic block
5409 was created.
5410
54112011-04-11 Uros Bizjak <ubizjak@gmail.com>
d8700b1c
UB
5412
5413 * config/i386/sse.md (VI): New mode iterator.
5414 (SSEMODEI): Remove.
5415 (AVX256MODEI): Ditto.
5416 (AVXMODEF4P): Ditto.
5417 (avxvecpsmode): Ditto.
5418 (one_cmpl<mode>2): Enable for TARGET_SSE. Use VI mode iterator.
5419 (sse2_andnot<mode>3): New expander.
5420 (*andnot<mode>3): Merge with *sse2_andnot<mode>3 and
5421 *avx_andnot<mode>3. Enable for TARGET_SSE. Use VI mode iterator.
5422 (<any_logic:code><mode>3): Use VI mode iterator.
5423 (*<any_logic:code><mode>3): Merge with *sse2_<any_logic:code><mode>3
5424 and *avx_<any_logic:code><mode>3. Use VI mode iterator.
5425 (*andnottf3): Handle AVX three-operand constraints.
5426 (*<any_logic:code>tf3): Handle AVX three-operand constraints.
5427
b1372d5d 54282011-04-11 Joseph Myers <joseph@codesourcery.com>
d8700b1c 5429 Robert Millan <rmh@gnu.org>
b1372d5d
JM
5430
5431 * config.gcc (x86_64-*-kfreebsd*-gnu): Use i386/kfreebsd-gnu.h.
5432 * config/i386/kfreebsd-gnu.h (GNU_USER_DYNAMIC_LINKER32,
5433 GNU_USER_DYNAMIC_LINKER64): Define.
5434 (REG_NAME): Don't undefine.
5435 (MD_UNWIND_SUPPORT): Undefine.
5436 * config/i386/knetbsd-gnu.h (GNU_USER_LINK_EMULATION): Define.
5437 (REG_NAME): Don't undefine.
5438 (MD_UNWIND_SUPPORT): Undefine.
d8700b1c 5439 * config/i386/kopensolaris-gnu.h (GNU_USER_LINK_EMULATION): Define.
b1372d5d 5440
761c0c6e
JM
54412011-04-11 Joseph Myers <joseph@codesourcery.com>
5442
5443 * config/i386/gnu.h (GNU_USER_LINK_EMULATION): Define.
5444 (CPP_SPEC, CC1_SPEC, ENDFILE_SPEC): Remove.
5445
26e0228f
XDL
54462011-04-11 Xinliang David Li <davidxl@google.com>
5447
5448 * value-profile.c (check_ic_target): New function.
5449 (gimple_ic_transform): Sanity check indirect call target.
5450 * gimple-low.c (gimple_check_call_args): Interface change.
5451 (gimple_check_call_matching_types): New function.
5452 * tree-inline.c (tree_can_inline_p): Call new function.
6075765d
BS
5453
54542011-04-11 Basile Starynkevitch <basile@starynkevitch.net>
5455
5456 * Makefile.in (PLUGIN_HEADERS): Add gimple-pretty-print.h
5457 tree-pretty-print.h & realmpfr.h.
5458
a58dfa49
VM
54592011-04-11 Vladimir Makarov <vmakarov@redhat.com>
5460
5461 PR middle-end/48464
5462 * ira.c (setup_pressure_classes): Fix typo in loop condition.
5463 (setup_allocno_and_important_classes): Ditto.
5464
107fd1c1
JM
54652011-04-11 Joseph Myers <joseph@codesourcery.com>
5466
5467 * config/alpha/linux-elf.h (LINUX_DYNAMIC_LINKER): Rename to
5468 GNU_USER_DYNAMIC_LINKER.
5469 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Change
5470 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5471 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Change
5472 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5473 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5474 GNU_USER_TARGET_OS_CPP_BUILTINS.
5475 * config/bfin/linux.h (TARGET_OS_CPP_BUILTINS): Change
5476 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5477 * config/bfin/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5478 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5479 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Change
5480 LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
5481 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5482 GNU_USER_TARGET_OS_CPP_BUILTINS.
5483 * config/frv/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5484 GNU_USER_DYNAMIC_LINKER.
5485 * config/gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5486 GNU_USER_TARGET_OS_CPP_BUILTINS.
5487 * config/i386/gnu-user.h (TARGET_OS_CPP_BUILTINS): Change
5488 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5489 * config/i386/gnu-user64.h (TARGET_OS_CPP_BUILTINS): Change
5490 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5491 * config/i386/linux.h (GNU_USER_DYNAMIC_LINKER): Remove.
5492 * config/i386/linux64.h (GNU_USER_DYNAMIC_LINKER32,
5493 GNU_USER_DYNAMIC_LINKER64): Remove.
5494 * config/ia64/linux.h (TARGET_OS_CPP_BUILTINS): Change
5495 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5496 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5497 GNU_USER_DYNAMIC_LINKER.
5498 * config/kfreebsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5499 GNU_USER_TARGET_OS_CPP_BUILTINS.
5500 * config/knetbsd-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5501 GNU_USER_TARGET_OS_CPP_BUILTINS.
5502 * config/kopensolaris-gnu.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename
5503 to GNU_USER_TARGET_OS_CPP_BUILTINS.
5504 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Rename to
5505 GNU_USER_TARGET_OS_CPP_BUILTINS.
5506 (LINUX_DYNAMIC_LINKER): Rename to GNU_USER_DYNAMIC_LINKER.
5507 (LINUX_DYNAMIC_LINKER32): Rename to GNU_USER_DYNAMIC_LINKER32.
5508 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5509 * config/lm32/uclinux-elf.h (TARGET_OS_CPP_BUILTINS): Change
5510 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5511 * config/m32r/linux.h (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5512 GNU_USER_DYNAMIC_LINKER.
5513 (TARGET_OS_CPP_BUILTINS): Change LINUX_TARGET_OS_CPP_BUILTINS to
5514 GNU_USER_TARGET_OS_CPP_BUILTINS.
5515 * config/m68k/linux.h (TARGET_OS_CPP_BUILTINS): Change
5516 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5517 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5518 GNU_USER_DYNAMIC_LINKER.
5519 * config/m68k/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5520 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5521 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Change
5522 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5523 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5524 GNU_USER_DYNAMIC_LINKER.
5525 * config/mips/linux64.h (LINUX_DYNAMIC_LINKERN32): Rename to
5526 GNU_USER_DYNAMIC_LINKERN32.
5527 (LINK_SPEC): Change LINUX_DYNAMIC_LINKERN32 to
5528 GNU_USER_DYNAMIC_LINKERN32. Change LINUX_DYNAMIC_LINKER64 to
5529 GNU_USER_DYNAMIC_LINKER64. Change LINUX_DYNAMIC_LINKER32 to
5530 GNU_USER_DYNAMIC_LINKER32.
5531 * config/mn10300/linux.h (TARGET_OS_CPP_BUILTINS): Change
5532 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5533 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5534 GNU_USER_DYNAMIC_LINKER.
5535 * config/moxie/uclinux.h (TARGET_OS_CPP_BUILTINS): Change
5536 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5537 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Change
5538 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 5539 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1
JM
5540 * config/rs6000/linux64.h (LINUX_DYNAMIC_LINKER32): Rename to
5541 GNU_USER_DYNAMIC_LINKER32.
5542 (LINUX_DYNAMIC_LINKER64): Rename to GNU_USER_DYNAMIC_LINKER64.
5543 * config/rs6000/sysv4.h (LINUX_DYNAMIC_LINKER): Rename to
5544 GNU_USER_DYNAMIC_LINKER.
5545 * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): Change
5546 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5547 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5548 GNU_USER_DYNAMIC_LINKER32. Change LINUX_DYNAMIC_LINKER64 to
5549 GNU_USER_DYNAMIC_LINKER64.
5550 * config/sh/linux.h (TARGET_OS_CPP_BUILTINS): Change
5551 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5552 (SUBTARGET_LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5553 GNU_USER_DYNAMIC_LINKER.
5554 * config/sparc/linux.h (TARGET_OS_CPP_BUILTINS): Change
5555 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5556 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to
5557 GNU_USER_DYNAMIC_LINKER.
5558 * config/sparc/linux64.h (TARGET_OS_CPP_BUILTINS): Change
5559 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5560 (LINK_ARCH32_SPEC): Change LINUX_DYNAMIC_LINKER32 to
5561 GNU_USER_DYNAMIC_LINKER32.
5562 (LINK_ARCH64_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5563 GNU_USER_DYNAMIC_LINKER64.
5564 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER64 to
5565 GNU_USER_DYNAMIC_LINKER64.
5566 * config/vax/linux.h (TARGET_OS_CPP_BUILTINS): Change
5567 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
5568 * config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Change
5569 LINUX_TARGET_OS_CPP_BUILTINS to GNU_USER_TARGET_OS_CPP_BUILTINS.
d8700b1c 5570 (LINK_SPEC): Change LINUX_DYNAMIC_LINKER to GNU_USER_DYNAMIC_LINKER.
107fd1c1 5571
e24609cf
JM
55722011-04-11 Joseph Myers <joseph@codesourcery.com>
5573
5574 * config/i386/gnu-user.h: Copy from linux.h. Update comments.
5575 (LINK_EMULATION, GLIBC_DYNAMIC_LINKER): Remove.
5576 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_LINK_EMULATION and
5577 GNU_USER_DYNAMIC_LINKER.
5578 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5579 * config/i386/gnu-user64.h: Copy from linux64.h. Update comments.
5580 (GLIBC_DYNAMIC_LINKER32, GLIBC_DYNAMIC_LINKER64): Remove.
5581 (LINK_SPEC): Use GNU_USER_DYNAMIC_LINKER32 and
5582 GNU_USER_DYNAMIC_LINKER64.
5583 (MD_UNWIND_SUPPORT, REG_NAME): Remove.
5584 * config/i386/kfreebsd-gnu.h (LINK_EMULATION): Change to
5585 GNU_USER_LINK_EMULATION.
5586 * config/i386/linux.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE,
5587 DEFAULT_PCC_STRUCT_RETURN, TARGET_TLS_DIRECT_SEG_REFS_DEFAULT,
5588 ASM_COMMENT_START, DBX_REGISTER_NUMBER, NO_PROFILE_COUNTERS,
5589 MCOUNT_NAME, SUBTARGET_FRAME_POINTER_REQUIRED, SIZE_TYPE,
5590 PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS,
5591 CPP_SPEC, CC1_SPEC): Remove.
5592 (LINK_EMULATION): Change to GNU_USER_LINK_EMULATION.
5593 (GNU_USER_DYNAMIC_LINKER): Define.
5594 (ASM_SPEC, SUBTARGET_EXTRA_SPECS, LINK_SPEC, ENDFILE_SPEC,
5595 ASM_OUTPUT_ALIGNED_BSS, ASM_OUTPUT_MAX_SKIP_ALIGN,
5596 ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX, CRT_GET_RFIB_DATA,
5597 LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT, TF_SIZE,
5598 TARGET_ASM_FILE_END, STACK_CHECK_MOVING_SP,
5599 STACK_CHECK_STATIC_BUILTIN, TARGET_THREAD_SSP_OFFSET,
5600 TARGET_CAN_SPLIT_STACK, TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5601 * config/i386/linux64.h (TARGET_OS_CPP_BUILTINS, CPP_SPEC,
5602 CC1_SPEC, DEFAULT_PCC_STRUCT_RETURN,
5603 TARGET_TLS_DIRECT_SEG_REFS_DEFAULT, SPEC_32, SPEC_64, ASM_SPEC,
5604 LINK_SPEC, ENDFILE_SPEC, MULTILIB_DEFAULTS, LIBGCC2_HAS_TF_MODE,
5605 LIBGCC2_TF_CEXT, TF_SIZE, TARGET_ASM_FILE_END): Remove.
5606 (GNU_USER_DYNAMIC_LINKER32, GNU_USER_DYNAMIC_LINKER64): Define.
5607 (STACK_CHECK_MOVING_SP, STACK_CHECK_STATIC_BUILTIN,
5608 TARGET_THREAD_SSP_OFFSET, TARGET_CAN_SPLIT_STACK,
5609 TARGET_THREAD_SPLIT_STACK_OFFSET): Remove.
5610 * config/i386/gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5611 GNU_USER_DYNAMIC_LINKER.
5612 * config/kfreebsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5613 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5614 * config/knetbsd-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5615 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5616 * config/kopensolaris-gnu.h (GLIBC_DYNAMIC_LINKER): Change to
5617 GNU_USER_DYNAMIC_LINKER. Unconditionally undefine and redefine.
5618 * config.gcc (i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu |
5619 i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu* |
5620 i[34567]86-*-kopensolaris*-gnu, x86_64-*-linux* |
d8700b1c 5621 x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu): Use the new headers.
e24609cf 5622
b8ce4e94
KT
56232011-04-11 Kai Tietz <ktietz@redhat.com>
5624
5625 PR target/9601
5626 PR target/11772
5627 * config/i386/i386-protos.h (ix86_get_callcvt): New prototype.
5628 * config/i386/i386.c (ix86_handle_cconv_attribute): Adjust
5629 comment.
5630 (ix86_is_msabi_thiscall): Removed.
5631 (ix86_is_type_thiscall): Likewise.
5632 (ix86_get_callcvt): New function.
5633 (ix86_comp_type_attributes): Simplify check.
5634 (ix86_function_regparm): Use ix86_get_callcvt for calling
5635 convention attribute checks.
5636 (ix86_return_pops_args): Likewise.
5637 (ix86_static_chain): Likewise.
5638 (x86_this_parameter): Likewise.
5639 (x86_output_mi_thunk): Likewise.
5640 (ix86_function_type_abi): Optimize check for types without attributes.
5641 * config/i386/i386.h (IX86_CALLCVT_CDECL, IX86_CALLCVT_STDCALL,
5642 IX86_CALLCVT_FASTCALL, IX86_CALLCVT_THISCALL, IX86_CALLCVT_REGPARM,
5643 IX86_CALLCVT_SSEREGPARM): New macros to represent calling convention
5644 by flag-values.
5645 (IX86_BASE_CALLCVT): Helper macro.
5646 * config/i386/netware.c (i386_nlm_maybe_mangle_decl_assembler_name):
5647 Use ix86_get_callcvt for calling convention attribute checks and avoid
5648 symbol-decoration for stdcall in TARGET_RTD case.
5649 * config/i386/winnt.c (i386_pe_maybe_mangle_decl_assembler_name):
5650 Likewise.
5651 (gen_stdcall_or_fastcall_suffix): Adjust ident and use DECL_ORIGIN
5652 for declaration.
5653
798dd0ba
UB
56542011-04-11 Uros Bizjak <ubizjak@gmail.com>
5655
5656 * config/i386/sse.md (VI_128): New mode iterator.
5657 (VI12_128): Rename from SSEMODE12.
5658 (VI14_128): Rename from SSEMODE14.
5659 (VI124_128): New mode iterator.
5660 (VI24_128): Rename from SSEMODE248.
5661 (VI248_128): Rename from SSEMODE248.
5662 (SSEMODE124C8): Remove.
5663 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
5664 (*sse2_<plusminus_insn><mode>3): Merge with
5665 *avx_<plusminus_insn><mode>3.
5666 (*mulv8hi3): Merge with *avx_mulv8hi3.
5667 (*<s>mulv8hi3_highpart): Merge with *avx_<s>mulv8hi3_highpart.
5668 (*sse2_umulv2siv2di3): Merge with *avx_umulv2siv2di3.
5669 (*sse2_pmaddwd): Merge with *avx_pmaddwd.
5670 (*sse4_1_mulv4si3): Merge with *avx_mulv4si3.
5671 (ashr<mode>3): Merge with *avx_ashr<mode>3.
5672 (lshr<mode>3): Merge with *avx_lshr<mode>3.
5673 (ashl<mode>3): Merge with *avx_ashl<mode>3.
5674 (sse2_ashlv1ti3): Merge with *avx_ashlv1ti3.
5675 (sse2_lshrv1ti3): Merge with *avx_lshrv1ti3.
5676 (*sse4_1_<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
5677 (*<smaxmin:code>v8hi3): Ditto.
5678 (*sse4_1_<umaxmin:code><mode>3): Merge with *avx_<umaxmin:code><mode>3.
5679 (*<smaxmin:code>v16qi3): Ditto.
5680 (*sse4_1_eqv2di3): Merge with *avx_eq<mode>3.
5681 (*sse2_eq<mode>3): Ditto.
5682 (*sse4_2_eqv2di3): Merge with *avx_gt<mode>3.
5683 (*sse2_gt<mode>3): Ditto.
5684 (vcondv2di): Split out of vcond<mode>.
5685 (vconduv2di): Split out of vcondu<mode>.
5686
956011be
RG
56872011-04-11 Richard Guenther <rguenther@suse.de>
5688
5689 * gimplify.c (gimple_fold_indirect_ref): Check host_integerp
5690 before calling tree_low_cst.
5691
e6313a78
RG
56922011-04-11 Richard Guenther <rguenther@suse.de>
5693
5694 * stor-layout.c (layout_type): Compute all array index size operations
5695 in the original type.
5696 (initialize_sizetypes): Add comment.
5697 (set_sizetype): Do not set TREE_TYPE of a TREE_VEC.
5698
e69d7376
JM
56992011-04-11 Joseph Myers <joseph@codesourcery.com>
5700
5701 * common.opt (Tbss=, Tdata=, Ttext=): New options.
5702
9f9ebcdf
MJ
57032011-04-11 Martin Jambor <mjambor@suse.cz>
5704
5705 * cgraph.c (cgraph_local_info): Call cgraph_get_node instead
5706 of cgraph_node, handle NULL return value.
5707 (cgraph_global_info): Likewise.
5708 (cgraph_rtl_info): Likewise.
5709 * tree-inline.c (estimate_num_insns): Likewise.
5710 * gimplify.c (unshare_body): Likewise.
5711 (unvisit_body): Likewise.
5712 (gimplify_body): Likewise.
5713 * predict.c (optimize_function_for_size_p): Likewise.
5714 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
5715 (call_may_clobber_ref_p_1): Likewise.
5716 * varasm.c (function_section_1): Likewise.
5717 (assemble_start_function): Likewise.
5718
581985d7
MJ
57192011-04-11 Martin Jambor <mjambor@suse.cz>
5720
5721 * except.c (set_nothrow_function_flags): Call cgraph_get_node instead
5722 of cgraph_node.
5723 * final.c (rest_of_clean_state): Likewise.
5724 * gimple-iterator.c (update_call_edge_frequencies): Likewise.
5725 * passes.c (pass_init_dump_file): Likewise.
5726 (execute_all_ipa_transforms): Likewise.
5727 (function_called_by_processed_nodes_p): Likewise.
5728 * predict.c (maybe_hot_frequency_p): Likewise.
5729 (probably_never_executed_bb_p): Likewise.
5730 (compute_function_frequency): Likewise.
5731 * tree-nested.c (check_for_nested_with_variably_modified): Likewise.
5732 (unnest_nesting_tree_1): Likewise.
5733 (lower_nested_functions): Likewise.
5734 * tree-optimize.c (execute_fixup_cfg): Likewise.
5735 (tree_rest_of_compilation): Likewise.
5736 * tree-profile.c (gimple_gen_ic_func_profiler): Likewise.
5737 * tree-sra.c (ipa_early_sra): Likewise.
5738 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5739 * config/i386/i386.c (ix86_compute_frame_layout): Likewise.
5740 * ipa.c (record_cdtor_fn): Likewise.
5741 * ipa-inline.c (cgraph_early_inlining): Likewise.
5742 (compute_inline_parameters_for_current): Likewise.
5743 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
5744 * ipa-pure-const.c (local_pure_const): Likewise.
5745 * ipa-split.c (split_function): Likewise.
5746 (execute_split_functions): Likewise.
5747 * cgraphbuild.c (build_cgraph_edges): Likewise.
5748 (rebuild_cgraph_edges): Likewise.
5749 (cgraph_rebuild_references): Likewise.
5750 (remove_cgraph_callee_edges): Likewise.
5751 * cgraphunit.c (cgraph_mark_if_needed): Likewise.
5752 (verify_cgraph_node): Likewise.
5753 (cgraph_analyze_functions): Likewise.
5754 (cgraph_preserve_function_body_p): Likewise.
5755 (save_inline_function_body): Likewise.
5756 (save_inline_function_body): Likewise.
5757 * tree-inline.c (copy_bb): Likewise.
5758 (optimize_inline_calls): Likewise.
5759
57dbdc5a
MJ
57602011-04-11 Martin Jambor <mjambor@suse.cz>
5761
5762 PR tree-optimization/48195
5763 * ipa-cp.c (ipcp_driver): Call ipa_check_create_node_params and
5764 ipa_check_create_edge_args.
5765 (ipcp_generate_summary): Do not call ipa_check_create_node_params and
5766 ipa_check_create_edge_args.
5767 * ipa-inline.c (inline_generate_summary): Do not call
5768 ipa_check_create_node_params and ipa_check_create_edge_args.
5769 * ipa-prop.c (ipa_analyze_node): Call ipa_check_create_node_params and
5770 ipa_check_create_edge_args.
5771
d108e679
AS
57722011-04-09 Anatoly Sokolov <aesok@post.ru>
5773
5774 * expr.c (expand_expr_real_1): Use add_to_hard_reg_set function
5775 instead of loop.
5776 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5777 * function.c (record_hard_reg_sets): Likewise.
5778 * ira.c (compute_regs_asm_clobbered): Likewise.
5779 * sched-deps.c (sched_analyze_1): Likewise.
5780 * reload1.c (mark_reload_reg_in_use, choose_reload_regs): Likewise.
5781
3411bc59
XDL
57822011-04-09 Xinliang David Li <davidxl@google.com>
5783
5784 PR tree-optimization/PR48484
5785 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds): Set
5786 has_valid_pred lazily
5787
b365495a
DS
57882011-04-09 Duncan Sands <baldrick@free.fr>
5789
5790 * tree.c (array_type_nelts): Bail out if TYPE_MAX_VALUE not set.
5791
68bc509a
EB
57922011-04-08 Eric Botcazou <ebotcazou@adacore.com>
5793
5794 * combine.c (combine_validate_cost): Adjust comments. Set registered
5795 cost of I0 to zero at the end, if any.
5796
041e059f
XDL
57972011-04-08 Xinliang David Li <davidxl@google.com>
5798
68bc509a
EB
5799 * ipa-cp.c (ipcp_update_profiling): Correct negative scale factor due
5800 to insane profile data.
041e059f 5801
444b3995
XDL
58022011-04-08 Xinliang David Li <davidxl@google.com>
5803
5804 * ipa-cp.c (ipcp_update_profiling): Correct
5805 negative scale factor due to insane profile data.
5806
6a801cf2
XDL
58072011-04-08 Xinliang David Li <davidxl@google.com>
5808
5809 * final.c (dump_basic_block_info): New function.
5810 (final): Dump basic block.
5811 (final_scan_insn): Remove old dump.
5812
d5f3624e
SK
58132011-04-08 Steven G. Kargl <kargl@gcc.gnu.org>
5814
68bc509a
EB
5815 PR target/47829
5816 * config.gcc (i386-*-freebsd): Disable unwind table generation for
5817 crtbegin/crtend.
d5f3624e 5818
42821aff
MM
58192011-04-08 Michael Matz <matz@suse.de>
5820
5821 PR middle-end/48389
5822 * jump.c (rebuild_jump_labels_1, rebuild_jump_labels_chain): New
5823 functions.
5824 (rebuild_jump_labels): Call rebuild_jump_labels_1.
5825 * rtl.h (rebuild_jump_labels_chain): Declare.
5826 * cfgexpand.c (gimple_expand_cfg): Initialize JUMP_LABEL also on
5827 insns inserted on edges.
5828
ad7be009
JM
58292011-04-08 Joseph Myers <joseph@codesourcery.com>
5830
5831 * config.gcc (arm*-*-*): Add arm/arm-tables.opt to extra_options.
5832 * config/arm/arm-arches.def: New.
5833 * config/arm/arm-opts.h: New.
5834 * config/arm/genopt.sh: New.
5835 * config/arm/arm-tables.opt: New (generated).
5836 * config/arm/arm.c (arm_handle_option, arm_target_help,
5837 TARGET_HANDLE_OPTION, TARGET_HELP, arm_find_cpu): Remove.
5838 (all_architectures): Get most table contents from arm-arches.def.
5839 (arm_option_override): Set arm_selected_arch, arm_selected_cpu and
5840 arm_selected_tune here.
5841 * config/arm/arm.h (enum processor_type): Move to arm-opts.h.
5842 * config/arm/arm.opt (config/arm/arm-opts.h): New HeaderInclude.
5843 (march=, mcpu=, mtune=): Use Enum and Var.
5844 * config/arm/t-arm ($(srcdir)/config/arm/arm-tables.opt): New.
5845 (arm.o): Update dependencies.
ecbb6fb7 5846
42821aff 58472011-04-08 Basile Starynkevitch <basile@starynkevitch.net>
ecbb6fb7
BS
5848
5849 * gengtype.c (write_typed_alloc_def): New argument f. Use it instead
5850 of header_file.
5851 (write_typed_struct_alloc_def, write_typed_typedef_alloc_def)
5852 (write_typed_alloc_defns): Likewise.
5853 (main): Calls write_typed_alloc_defns with output_header.
5854
8d189b3f
VM
58552011-04-08 Vladimir Makarov <vmakarov@redhat.com>
5856
68bc509a 5857 PR inline-asm/48435
8d189b3f
VM
5858 * ira-color.c (setup_profitable_hard_regs): Add comments.
5859 Don't take prohibited hard regs into account.
5860 (setup_conflict_profitable_regs): Rename to
5861 get_conflict_profitable_regs.
5862 (check_hard_reg_p): Check prohibited hard regs.
5863
44f370bf
NF
58642011-04-08 Nathan Froyd <froydnj@codesourcery.com>
5865
5866 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Call use_reg.
5867 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Likewise.
5868 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise.
5869
483d7ad3
JDA
58702011-04-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5871
5872 PR target/48366
5873 * config/pa/pa.c (hppa_register_move_cost): Increase to 18 cost of
b8a17fa2 5874 move from floating point to shift amount register.
483d7ad3
JDA
5875 (emit_move_sequence): Remove secondary reload support for floating
5876 point to shift amount amount register copies.
5877 (pa_secondary_reload): Return GENERAL_REGS for floating point/shift
5878 amount register copies.
5879 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): For shift amount
5880 register, return false if mode isn't a scalar integer mode.
5881 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Likewise.
5882
97e03fa1
RG
58832011-04-08 Richard Guenther <rguenther@suse.de>
5884
5885 * gimple.c (gimple_call_flags): Remove kludge.
5886
9d40778b
AM
58872011-04-08 Alexander Monakov <amonakov@ispras.ru>
5888
5889 * sel-sched.c (sel_region_init): Move call to
5890 sel_setup_region_sched_flags after setup_current_loop_nest.
5891
19ac7892
AB
58922011-04-08 Andrey Belevantsev <abel@ispras.ru>
5893
5894 PR rtl-optimization/48272
19ac7892
AB
5895 * sched-deps.c (setup_insn_reg_pressure_info): Export and rename to
5896 init_insn_reg_pressure_info. Adjust a caller.
5897 * sched-int.h (init_insn_reg_pressure_info): Declare.
5898 * haifa-sched.c (haifa_init_insn): Call init_insn_reg_pressure_info
5899 when sched-pressure is enabled.
5900
0f8c63cc
RG
59012011-04-08 Richard Guenther <rguenther@suse.de>
5902
5903 * gimple.c (gimple_set_modified): Do not queue calls to
5904 MODIFIED_NORETURN_CALLS here ...
5905 * tree-ssa-operands.c (update_stmt_operands): ... but here.
5906
5e5a425e
RG
59072011-04-08 Richard Guenther <rguenther@suse.de>
5908
5909 PR lto/48467
5910 * toplev.c (lang_dependent_init): Do not open asm_out_file
5911 in WPA mode, nor perform debug machinery initialization.
5912 (finalize): Do not unlink asm_out_file in WPA mode.
5913
9bfc434b
RG
59142011-04-08 Richard Guenther <rguenther@suse.de>
5915
5916 * gimple.h (gimple_call_fntype): New function.
5917 (gimple_call_return_type): Use it.
5918 * expr.c (expand_expr_real_1): Use gimple_call_fntype.
5919 * gimple-low.c (gimple_check_call_args): Likewise.
5920 * gimple.c (gimple_call_flags): Likewise.
5921 (gimple_call_arg_flags): Likewise.
5922 (gimple_call_return_flags): Likewise.
5923 * tree-cfg.c (verify_gimple_call): Likewise.
5924 (do_warn_unused_result): Likewise.
5925 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
5926 * value-prof.c (gimple_ic_transform): Fix fndecl check.
5927
7c1f0b40
DM
59282011-04-08 Dmitry Melnik <dm@ispras.ru>
5929
5930 PR rtl-optimization/48235
5931 * sel-sched.c (code_motion_process_successors): Recompute the last
5932 insn in basic block if control flow changed.
5933 (code_motion_path_driver): Ditto. Recompute the first insn as well.
5934 Update condition for ilist_remove.
5935
ea4d630f
AM
59362011-04-08 Alexander Monakov <amonakov@ispras.ru>
5937
5938 PR rtl-optimization/48302
5939 * sel-sched-ir.h (sel_add_loop_preheaders): Update prototype.
5940 * sel-sched-ir.c (sel_add_loop_preheaders): Add 'bbs' argument. Use
5941 it to record added preheader blocks.
5942 * sel-sched.c (setup_current_loop_nest): Add 'bbs' argument. Pass it
5943 on to sel_add_loop_preheaders.
5944 (sel_region_init): Move call to setup_current_loop_nest after
5945 sel_init_bbs.
5946
07643d76
AM
59472011-04-08 Alexander Monakov <amonakov@ispras.ru>
5948
5949 PR target/48273
5950 * cfgloop.h (loop_has_exit_edges): New helper.
5951 * sel-sched-ir.c (init_global_and_expr_for_insn): Make CALLs
5952 non-clonable.
5953 * sel-sched.c (sel_setup_region_sched_flags): Don't pipeline loops
5954 that have no exit edges.
5955
1f3b2b4e
AM
59562011-04-08 Alexander Monakov <amonakov@ispras.ru>
5957
5958 PR rtl-optimization/48442
5959 * sel-sched.c (init_seqno): Remove number_of_insns argument. Update
5960 all callers. Adjust assert.
5961
554f1948
JJ
59622011-04-08 Jakub Jelinek <jakub@redhat.com>
5963
5964 PR tree-optimization/48377
5965 * tree-vect-data-refs.c (vector_alignment_reachable_p): Set
5966 is_packed to true even for types with smaller TYPE_ALIGN than
5967 TYPE_SIZE.
5968
ddf72388
RG
59692011-04-08 Richard Guenther <rguenther@suse.de>
5970
5971 PR bootstrap/48513
5972 * doc/tm.texi: Re-generate.
5973
0c27e2d8
WG
59742011-04-08 Wei Guozhi <carrot@google.com>
5975
5976 PR target/47855
5977 * config/arm/arm-protos.h (arm_attr_length_push_multi): New prototype.
5978 * config/arm/arm.c (arm_attr_length_push_multi): New function.
5979 * config/arm/arm.md (*push_multi): Change the length computation to
5980 call a C function.
5981
07c5f94e
AS
59822011-04-08 Anatoly Sokolov <aesok@post.ru>
5983
5984 * doc/tm.texi.in (ASM_OUTPUT_BSS): Remove documentation.
5985 (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS): Update documentation.
5986 * doc/tm.texi: Regenerate.
5987 * system.h (ASM_OUTPUT_BSS): Poison.
5988 * varasm.c (asm_output_bss): Remove function.
5989 (emit_bss, init_varasm_once): Don't use ASM_OUTPUT_BSS macro.
798dd0ba 5990
07c5f94e
AS
5991 * config/frv/frv.h (BSS_SECTION_ASM_OP): Remove comment.
5992 * config/frv/fr30.h (BSS_SECTION_ASM_OP): Likewise.
5993 * config/i386/djgpp.h (BSS_SECTION_ASM_OP): Likewise.
5994 * config/i386/i386elf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5995 Likewise.
5996 * config/sh/sh.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5997 Likewise.
5998 * config/m68k/m68kelf.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_ALIGNED_BSS):
5999 Likewise.
6000 * config/m68k/netbsd-elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
6001
5f2c36e1
JM
60022011-04-07 Joseph Myers <joseph@codesourcery.com>
6003
6004 * config/rx/rx.opt (rx610, rx200, rx600): Use Enum not Name on
6005 EnumValue lines.
6006
39e7722b
JM
60072011-04-07 Joseph Myers <joseph@codesourcery.com>
6008
6009 * config/m68k/m68k.c (m68k_handle_option): Don't handle
6010 OPT_m68000, OPT_mc68000, OPT_m68010, OPT_m68020, OPT_mc68020,
6011 OPT_m68030, OPT_m68040, OPT_m68060, OPT_m68302, OPT_m68332 and
6012 OPT_mcpu32.
6013 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6014 handle -mc68000, -m68000, -m68302, -m68010, -mc68020, -m68020,
6015 -m68030, -m68040, -m68060, -mcpu32 and -m68332.
6016 * config/m68k/m68k.opt (m68000, m68010, m68020, m68030, m68040,
6017 m68060, m68302, m68332, mc68000, mc68020, mcpu32): Use Alias.
6018 * config/m68k/t-mlibs (CANONICALIZE_OPTIONS): Remove.
6019 (MULTILIB_OPTIONS): Don't use $(CANONICALIZE_OPTIONS).
6020 (MULTILIB_MATCHES): Map -march= options to corresponding -mcpu=
6021 options. Don't map other m68k options manually. Don't handle
6022 old-style options as canonical.
6023 (MULTILIB_EXCEPTIONS): Don't use $(CANONICALIZE_OPTIONS).
798dd0ba 6024 * doc/install.texi (m68k-*-*): Document binutils version requirement.
39e7722b 6025
cf103ca4
EB
60262011-04-07 Eric Botcazou <ebotcazou@adacore.com>
6027
6028 * basic-block.h (force_nonfallthru): Move to...
6029 * cfghooks.h (struct cfg_hooks): Add force_nonfallthru hook.
6030 (force_nonfallthru): ...here.
6031 * cfghooks.c (force_nonfallthru): New function.
6032 * cfgrtl.c (force_nonfallthru): Rename into...
6033 (rtl_force_nonfallthru): ...this.
6034 (commit_one_edge_insertion): Do not set AUX field.
6035 (commit_edge_insertions): Do not discover new basic blocks.
6036 (rtl_cfg_hooks): Add rtl_force_nonfallthru.
6037 (cfg_layout_rtl_cfg_hooks): Likewise.
6038 * function.c (thread_prologue_and_epilogue_insns): Remove bogus
6039 ATTRIBUTE_UNUSED. Discover new basic blocks in the prologue insns.
6040 * tree-cfg.c (gimple_cfg_hooks): Add NULL for force_nonfallthru.
6041
14431f58
AS
60422011-04-07 Anatoly Sokolov <aesok@post.ru>
6043
6044 * config/mips/mips.h (REG_MODE_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
6045 Remove macros.
6046
3729983c
UB
60472011-04-07 Uros Bizjak <ubizjak@gmail.com>
6048
6049 * config/i386/sse.md: Update copyright year.
6050 (avxcvtvecmode): Remove.
6051 (sse_movhlps): Merge with *avx_movhlps.
6052 (sse_movlhps): Merge with *avx_movlhps.
6053 (vec_interleave_highv4sf): Merge with *avx_interleave_highv4sf.
6054 (vec_interleave_lowv4sf): Merge with *avx_interleave_lowv4sf.
6055 (sse_shufps_<mode>): Merge with *avx_shufps_<mode>.
6056 (sse_loadhps): Merge with *avx_loadhps.
6057 (sse_storelps): Merge with *avx_storelps.
6058 (sse_loadlps): Merge with *avx_loadlps.
6059 (sse_movss): Merge with *avx_movss.
6060 (*vec_concatv2sf_sse4_1): Merge with *vec_concatv2sf_avx.
6061 (*vec_concatv4sf_sse): Merge with *vec_concatv4sf_avx.
6062 (*vec_set<mode>_0_sse4_1): Merge with *vec_set<mode>_0_avx.
6063 (*vec_set<mode>_0_sse2): Split multi-unit alternative.
6064 (vec_set<mode>_0): Ditto.
6065 (*vec_setv4sf_sse4_1): Merge with *vec_setv4sf_avx.
6066 (sse4_1_insertps): Merge with *avx_insertps.
6067 (*sse3_interleave_highv2df): Merge with *avx_interleave_highv2df.
6068 (*sse3_interleave_lowv2df): Merge with *avx_interleave_lowv2df.
6069 (vec_interleave_highv2di): Merge with *avx_interleave_highv2di.
6070 (sse2_shufpd_<mode>): Merge with *avx_shufpd_<mode>.
6071 (sse2_storehpd): Merge with *avx_storehpd.
6072 (sse2_loadhpd): Merge with *avx_loadhpd.
6073 (sse2_loadlpd): Merge with *avx_loadlpd.
6074 (sse2_movsd): Merge with *avx_movsd.
6075 (*vec_concatv2df): Merge with *vec_concatv2df.
6076
4e626909
JJ
60772011-04-07 Jakub Jelinek <jakub@redhat.com>
6078
6079 PR debug/48343
6080 * combine.c (combine_instructions): Add last_combined_insn,
3729983c 6081 update it if insn is after it, pass it to all try_combine calls.
4e626909
JJ
6082 (try_combine): Add last_combined_insn parameter, pass it instead of
6083 i3 to propagate_for_debug.
6084
3729983c 60852011-04-07 Nick Clifton <nickc@redhat.com>
5a10b0a9
NC
6086
6087 * config/mn10300/mn10300.md (movqi_internal): Add alternatives
6088 to handle MDR <-> data register transfers.
6089 (movhi_internal): Likewise.
6090
20c03367
AM
60912011-04-07 Alan Modra <amodra@gmail.com>
6092
6093 * config/rs6000/rs6000.c (rs6000_stack_info): Don't compare against
6094 previous stack info.
6095
bf22920b
TV
60962011-04-07 Tom de Vries <tom@codesourcery.com>
6097
6098 PR target/43920
6099 * cfgcleanup.c (try_crossjump_to_edge): Add dir parameter. Pass dir to
6100 flow_find_cross_jump. Swap variables to implement backward replacement.
6101 (try_crossjump_bb): Add argument to try_crossjump_to_edge.
6102
823918ae
TV
61032011-04-07 Tom de Vries <tom@codesourcery.com>
6104
6105 PR target/43920
6106 * cfgcleanup.c (walk_to_nondebug_insn): New function.
3729983c
UB
6107 (flow_find_cross_jump): Use walk_to_nondebug_insn. Recalculate bb1
6108 and bb2.
6109 (try_crossjump_to_edge): Handle case that newpos1 or newpos2 is not
6110 src1 or src2. Redirect edges to the last basic block. Update
6111 frequency and count on multiple basic blocks in case of fallthru.
823918ae 6112
472c95f5
TV
61132011-04-07 Tom de Vries <tom@codesourcery.com>
6114
6115 PR target/43920
6116 * cfgcleanup.c (equal_different_set_p, can_replace_by, merge_dir): New
6117 function.
3729983c
UB
6118 (old_insns_match_p): Change return type. Replace return false/true
6119 with return dir_none/dir_both. Use can_replace_by.
6120 (flow_find_cross_jump): Add dir_p parameter. Init replacement
6121 direction from dir_p. Register replacement direction in dir, last_dir
6122 and afterlast_dir. Handle new return type of old_insns_match_p using
472c95f5
TV
6123 merge_dir. Return replacement direction in dir_p.
6124 (flow_find_head_matching_sequence, outgoing_edges_match): Handle new
6125 return type of old_insns_match_p.
6126 (try_crossjump_to_edge): Add argument to call to flow_find_cross_jump.
6127 * ifcvt.c ( cond_exec_process_if_block): Add argument to call to
6128 flow_find_cross_jump.
6129 * basic-block.h (enum replace_direction): New type.
6130 (flow_find_cross_jump): Add parameter to declaration.
6131
a95d4000
UB
61322011-04-06 Uros Bizjak <ubizjak@gmail.com>
6133
6134 * config/i386/sse.md (AVXMODEDCVTDQ2PS): Remove.
6135 (AVXMODEDCVTPS2DQ): Ditto.
6136 (VEC_FLOAT_MODE): Ditto.
6137 (<sse>_andnot<mode>3): Merge with avx_andnot<mode>3. Use VF mode
6138 iterator. Handle TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6139 (<any_logic:code><mode>3): Use VF mode iterator.
6140 (*<any_logic:code><mode>3): Merge with *avx_<any_logic:code><mode>3.
6141 Use VF mode iterator.
6142 (copysign<mode>3): Use VF mode iterator.
6143 (*andnot<MODEF:mode>3): Merge with *avx_andnot<MODEF:mode>3. Handle
6144 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL target flag.
6145 (*<any_logic:code><MODEF:mode>3): Merge with
6146 *avx_<any_logic:code><MODEF:mode>3.
6147 (sse_cvtsi2ss): Merge with *avx_cvtsi2ss.
6148 (sse_cvtsi2ssq): Merge with *avx_cvtsi2ssq.
6149 (avx_cvtdq2ps256): Split from avx_cvtdq2ps<avxmodesuffix>.
6150 (avx_cvtdq2ps<avxmodesuffix>): Remove.
6151 (sse2_cvtdq2ps): Use %v modifier.
6152 (avx_cvtps2dq256): Split from avx_cvtps2dq<avxmodesuffix>.
6153 (avx_cvtps2dq<avxmodesuffix>): Remove.
6154 (sse2_cvtps2dq): Use %v modifier.
6155 (avx_cvttps2dq256): Split from avx_cvttps2dq<avxmodesuffix>.
6156 (avx_cvttps2dq<avxmodesuffix>): Remove.
6157 (sse2_cvttps2dq): Use %v modifier.
6158 (sse2_cvtsi2sd): Merge with *avx_cvtsi2sd.
6159 (sse2_cvtsi2sdq): Merge with *avx_cvtsi2sdq.
6160 (sse2_cvtsd2siq): Fix insn template.
6161 (sse2_cvtsd2siq_2): Ditto.
6162 (sse2_cvttsd2siq): Ditto.
6163 (sse2_cvtsd2ss): Merge with *avx_cvtsd2ss.
6164 (sse2_cvtss2sd): Merge with *avx_cvtss2sd.
6165
ad01c437
JM
61662011-04-06 Joseph Myers <joseph@codesourcery.com>
6167
6168 * gcov-io.c: Use GCC Runtime Library Exception.
6169
fe846284
JJ
61702011-04-06 Jakub Jelinek <jakub@redhat.com>
6171
6172 PR debug/48466
6173 * dwarf2out.c (based_loc_descr): If drap_reg is INVALID_REGNUM, use
6174 as base_reg whatever register reg has been eliminated to, instead
6175 of hardcoding STACK_POINTER_REGNUM.
6176
acce4e77
JM
61772011-04-06 Joseph Myers <joseph@codesourcery.com>
6178
6179 * doc/tm.texi.in: Document C target hooks as separate from general
6180 target hooks.
6181 * doc/tm.texi: Regenerate.
6182 * genhooks.c (struct hook_desc): Add docname field.
6183 (HOOK_VECTOR_1, DEFHOOKPOD, DEFHOOK, DEFHOOK_UNDOC). Initialize
6184 docname field.
6185 (hook_array): Include c-target.def.
6186 (emit_documentation): Use docname field in output.
6187 (emit_init_macros): Take docname argument. Only emit definitions
6188 for hooks matching docname.
6189 (main): Expect additional arguments in all cases. Pass argument
6190 to emit_init_macros.
6191 * target.def: Move initial macro definitions and comments to
6192 target-hooks-macros.h.
6193 (gcc_targetcm): Move to c-family/c-target.def.
6194 * target.h (targetcm): Move declaration to c-family/c-target.h.
6195 * targhooks.c (default_handle_c_option): Move to
6196 c-family/c-opts.c.
6197 * targhooks.h (default_handle_c_option): Move declaration to
6198 c-family/c-common.h.
6199 * target-hooks-macros.h: New file.
6200 * config.gcc (target_has_targetcm): Define and use to add to
6201 c_target_objs and cxx_target_objs.
6202 * config/default-c.c: New file.
6203 * config/darwin-c.c: Include c-target.h and c-target-def.h instead
6204 of target.h and target-def.h.
6205 (TARGET_HANDLE_C_OPTION, targetcm): Define later in file.
6206 (darwin_objc_construct_string, darwin_cfstring_ref_p,
6207 darwin_check_cfstring_format_arg): Make static.
6208 (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6209 TARGET_STRING_OBJECT_REF_TYPE_P,
6210 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG): Define here.
6211 * config/darwin-protos.h (darwin_objc_construct_string,
6212 darwin_cfstring_ref_p, darwin_check_cfstring_format_arg): Don't
6213 declare.
6214 * config/darwin.h (TARGET_OBJC_CONSTRUCT_STRING_OBJECT,
6215 TARGET_STRING_OBJECT_REF_TYPE_P,
a95d4000 6216 TARGET_CHECK_STRING_OBJECT_FORMAT_ARG, TARGET_HAS_TARGETCM): Remove.
acce4e77
JM
6217 * config/t-darwin (darwin-c.o): Update dependencies.
6218 * system.h (TARGET_HAS_TARGETCM): Poison.
6219 * Makefile.in (TARGET_H): Update.
6220 (TARGET_DEF, C_TARGET_DEF, C_TARGET_H, C_TARGET_DEF_H): Define.
6221 (c-family/c-format.o, c-family/c-opts.o): Update dependencies.
6222 (default-c.o): New target.
6223 (s-target-hooks-def-h): Pass "Target Hook" string to genhooks.
a95d4000 6224 (c-family/c-target-hooks-def.h, s-c-target-hooks-def-h): New targets.
acce4e77
JM
6225 (s-tm-texi): Pass -d option to genhooks. Also test timestamp on
6226 c-target.def.
6227 (build/genhooks.o): Update dependencies.
6228
275b4baa 62292011-04-06 Richard Guenther <rguenther@suse.de>
a95d4000 6230
275b4baa
RG
6231 * ipa-inline.c (enum inlining_mode): Remove.
6232 (cgraph_flatten): Use some other token.
6233 (cgraph_edge_early_inlinable_p): New function, split out from ...
6234 (cgraph_perform_always_inlining): New function, split out from ...
6235 (cgraph_decide_inlining_incrementally): ... here.
6236 (cgraph_mark_inline_edge): Adjust.
6237 (cgraph_early_inlining): Re-structure.
6238 (pass_early_inline): Require SSA form.
6239
f15b8bdf 62402011-04-06 Andrew Stubbs <ams@codesourcery.com>
9adc580c
AS
6241 Julian Brown <julian@codesourcery.com>
6242 Mark Shinwell <shinwell@codesourcery.com>
6243
6244 * config/arm/arm.h (arm_class_likely_spilled_p): Check against
6245 LO_REGS only for Thumb-1.
6246 (MODE_BASE_REG_CLASS): Restrict base registers to those which can
6247 be used in short instructions when optimising for size on Thumb-2.
6248
516426da
EB
62492011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6250
6251 * gimple-low.c (lower_gimple_return): When not optimizing, force labels
6252 associated with user returns to be preserved.
6253
96621ebf
TG
62542011-04-06 Tristan Gingold <gingold@adacore.com>
6255
f15b8bdf
EB
6256 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index,
6257 symbol_queue_size, DBXOUT_DECR_NESTING,
96621ebf
TG
6258 (DBXOUT_DECR_NESTING_AND_RETURN): Also define
6259 if XCOFF_DEBUGGING_INFO.
6260
07c0852e
UB
62612011-04-06 Uros Bizjak <ubizjak@gmail.com>
6262
6263 * config/i386/i386.md (attribute isa): New.
6264 (attribute enabled): New.
6265 (setcc_<mode>_sse): Merge from *{avx,sse}_setcc<mode>.
6266 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_mixed_avx.
6267 (*fop_<mode>_comm_sse): Merge with *fop_<mode>_comm_avx.
6268 (*fop_<mode>_1_mixed): Merge with *fop_<mode>_1_mixed_avx.
6269 (*fop_<mode>_1_sse): Merge with *fop_<mode>_1_avx.
6270 (<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6271 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3.
6272 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3.
6273
6274 * config/i386/sse.md (VF): New mode iterator.
6275 (VF1): Ditto.
6276 (VF2): Ditto.
6277 (VF_128): Ditto.
6278 (SSEMODEF4): Remove.
6279 (attribute sse): Handle V8SF and V4DF modes.
6280 (<absneg:code><mode>2): Use VF mode iterator.
6281 (*absneg<mode>2): Merge from *{avx,sse}_absneg<mode>2. Use VF
6282 mode iterator.
6283 (<plusminus_insn><mode>3): Use VF mode iterator.
6284 (*<plusminus_insn><mode>3): Merge with *avx_<plusminus_insn><mode>3.
6285 Use VF mode iterator.
6286 (<sse>_vm<plusminus_insn><mode>3): Merge with
6287 *avx_vm<plusminus_insn><mode>3. Use VF_128 mode iterator.
6288 (mul<mode>3): Use VF mode iterator.
6289 (*mul<mode>3): Merge with *avx_mul<mode>3. Use VF mode iterator.
6290 (<sse>_vmmul<mode>3): Merge with *avx_vmmul<mode>3. Use VF_128
6291 mode iterator.
6292 (div<VF2:mode>3): Merge from divv2df3 and divv4df3.
6293 (div<VF1:mode>3): Merge from divv4sf3 and divv8sf3.
6294 (<sse>_div<mode>3): Merge with *avx_div<mode>3. Use VF mode iterator.
6295 (<sse>_vmdiv<mode>3): Merge with *avx_vmdiv<mode>3. Use VF_128
6296 mode iterator.
6297 (<sse>_rcp<mode>2): Merge from avx_rcpv8sf2 and sse_rcpv4sf2.
6298 Use VF1 mode iterator.
6299 (sse_vmrcpv4sf2): Merge with *avx_vmrcpv4sf2.
6300 (sqrt<VF2:mode>2): New expander.
6301 (sqrt<VF1:mode>2): Merge from sqrtv4sf2 and sqrtv8sf2.
6302 (<sse>_sqrt<mode>2): Merge from avx_sqrtv8sf2, sse_sqrtv4sf, sqrtv4df2
6303 and sqrtv2df2. Use VF mode iterator.
6304 (<sse>_vmsqrt<mode>2): Merge with *avx_vmsqrt<mode>2. Use VF_128
6305 mode iterator.
6306 (rsqrt<VF1:mode>2): Merge from rsqrtv4sf2 and rsqrtv8sf2.
6307 (<sse>_rsqrt<mode>2): Merge from avx_rsqrtv8sf2 and sse_rsqrt4sf2.
6308 Use VF1 mode iterator.
6309 (sse_vmrsqrtv4sf2): Merge with *avx_vmrsqrtv4sf2.
6310 (<smaxmin:code><mode>3): Use VF mode iterator.
6311 (*<smaxmin:code><mode>3_finite): Merge with
6312 *avx_<smaxmin:code><mode>3_finite. Use VF mode iterator.
6313 (*<smaxmin:code><mode>3): Merge with *avx_<smaxmin:code><mode>3.
6314 (<sse>_vm<smaxmin:code><mode>2): Merge with
6315 *avx_vm<smaxmin:code><mode>2. Use VF_128 mode iterator.
6316 (*ieee_smin<mode>3): Merge with *avx_ieee_smin<mode>3. Use VF
6317 mode iterator.
6318 (*ieee_smax<mode>3): Merge with *avx_ieee_smax<mode>3. Use VF
6319 mode iterator.
6320 (sse3_addsubv2df3): Merge with *avx_addsubv2df3.
6321 (sse3_addsubv4sf3): Merge with *avx_addsubv4sf3.
6322 (sse3_h<plusminus_insn>v2df3): Merge with *avx_h<plusminus_insn>v2df3.
6323 (sse3_h<plusminus_insn>v4sf3): Merge with *avx_h<plusminus_insn>v4sf3.
6324 (avx_cmp<mode>3): Rename from avx_cmp<ssemodesuffix><mode>3. Use
6325 VF mode iterator.
6326 (avx_vmcmp<mode>3): Rename from avx_cmp<ssescalarmodesuffix><mode>3.
6327 Use VF_128 mode iterator.
6328 (<sse>_maskcmp<mode>3): Merge with *avx_maskcmp<mode>3. Use VF
6329 mode iterator.
6330 (<sse>_vmmaskcmp<mode>3): Merge with *avx_vmmaskcmp<mode>3. Use
6331 VF_128 mode iterator.
6332 (vcond<mode>): Use VF mode iterator.
6333 * config/i386/predicates.md (sse_comparison_operator): Merge with
6334 avx_comparison_float_operator. Do not declare as special_predicate.
6335 * config/i386/i386.c (struct builtin_description): Update for renamed
6336 compare patterns.
6337 (ix86_expand_args_builtin): Ditto.
6338 (ix86_expand_sse_compare_mask): Ditto.
6339
ff5d142c
RG
63402011-04-06 Richard Guenther <rguenther@suse.de>
6341
6342 * tree-inline.c (estimate_num_insns): For calls simply account
6343 for all passed arguments and a used return value.
6344
d7d1d041 63452011-04-06 Richard Guenther <rguenther@suse.de>
07c0852e 6346
d7d1d041
RG
6347 PR tree-optimization/47663
6348 * cgraph.h (struct cgraph_edge): Add call_stmt_size and
6349 call_stmt_time fields.
6350 (cgraph_edge_inlinable_p): Declare.
6351 (cgraph_edge_recursive_p): New inline function.
6352 * cgraph.c (cgraph_create_edge_1): Initialize call_stmt_size.
6353 (cgraph_clone_edge): Copy it.
6354 * ipa-inline.c (cgraph_estimate_edge_time): New function.
6355 Account for call stmt time.
6356 (cgraph_estimate_time_after_inlining): Take edge argument.
6357 (cgraph_estimate_edge_growth): Account call stmt size.
6358 (cgraph_estimate_size_after_inlining): Take edge argument.
6359 (cgraph_mark_inline_edge): Adjust.
6360 (cgraph_check_inline_limits): Likewise.
6361 (cgraph_recursive_inlining_p): Remove.
6362 (cgraph_edge_badness): Use cgraph_edge_recursive_p.
6363 (cgraph_decide_recursive_inlining): Take edge argument and
6364 adjust.
6365 (cgraph_decide_inlining_of_small_functions): Do not avoid
6366 diags for recursive inlining here.
6367 (cgraph_flatten): Adjust.
6368 (cgraph_decide_inlining_incrementally): Likewise.
6369 (estimate_function_body_sizes): Remove call cost handling.
6370 (compute_inline_parameters): Initialize caller edge call costs.
6371 (cgraph_estimate_edge_growth): New function.
6372 (cgraph_estimate_growth): Use it.
6373 (cgraph_edge_badness): Likewise.
6374 (cgraph_check_inline_limits): Take an edge argument.
6375 (cgraph_decide_inlining_of_small_functions): Adjust.
6376 (cgraph_decide_inlining): Likewise.
6377 * tree-inline.c (estimate_num_insns): Only account for call
6378 return value if it is used.
6379 (expand_call_inline): Avoid diagnostics on recursive inline
6380 functions here.
6381 * lto-cgraph.c (lto_output_edge): Output edge call costs.
6382 (input_edge): Input edge call costs.
6383
2feb95f7
RO
63842011-04-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6385
6386 * config/alpha/osf5.h (MAX_OFILE_ALIGNMENT): Define.
6387
26fbd9c2
JW
63882011-04-06 Jonathan Wakely <jwakely.gcc@gmail.com>
6389
6390 * doc/invoke.texi (Spec Files): Fix typo.
6391
694dc0ca
EB
63922011-04-06 Eric Botcazou <ebotcazou@adacore.com>
6393
6394 * profile.c (branch_prob): Move declaration of local variable. Remove
6395 obsolete ??? comment. Expand the location explicitly instead of using
6396 the LOCATION_FILE and LOCATION_LINE macros.
6397
4925d0d5
WG
63982011-04-06 Wei Guozhi <carrot@google.com>
6399
6400 PR target/47855
6401 * config/arm/arm.md (arm_cmpsi_insn): Compute attr "length".
6402 (arm_cond_branch): Likewise.
6403 (arm_cond_branch_reversed): Likewise.
6404 (arm_jump): Likewise.
6405 (push_multi): Likewise.
6406 * config/arm/constraints.md (Py): New constraint.
6407
f55dfa2f
NF
64082011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6409
6410 PR bootstrap/48471
6411 * dbxout.c (debug_nesting, symbol_queue, symbol_queue_index):
6412 Move these...
6413 (symbol_queue_size, DBXOUT_DECR_NESTING): ...and these...
6414 (DBXOUT_DECR_NESTING_AND_RETURN): ...and this under
6415 #ifdef DBX_DEBUGGING_INFO.
6416
fca96842
BS
64172011-04-05 Bernd Schmidt <bernds@codesourcery.com>
6418
6419 PR bootstrap/48403
6420 * haifa-sched.c (schedule_block): Increment cycle_issued_insns only
6421 if old and new states differ.
6422
30b83e38
JM
64232011-04-05 Joseph Myers <joseph@codesourcery.com>
6424
6425 * config/m68k/m68k.c (m68k_handle_option): Don't handle OPT_m5200,
6426 OPT_m5206e, OPT_m528x, OPT_m5307, OPT_m5407 and OPT_mcfv4e.
6427 * config/m68k/m68k.h (OPTION_DEFAULT_SPECS, ASM_CPU_SPEC): Don't
6428 handle -m5200, -m5206e, -m528x, -m5307, -m5407 and -mcfv4e.
6429 * config/m68k/m68k.opt (m5200, m5206e, m528x, m5307, m5407,
6430 mcfv4e): Use Alias.
6431 * config/m68k/t-mlibs (MULTILIB_MATCHES): Don't map legacy
6432 ColdFire options to -mcpu= options.
6433
277a9aa5
JL
64342011-04-05 Jeff Law <law@redhat.com>
6435
6436 * tree-ssa-threadupdate.c (determine_bb_domination_status): Always
6437 check if BB is a successor of LOOP->header and return
6438 NONDOMINATING if it is not, regardless of ENABLE_CHECKING.
6439
c1e2610e
SB
64402011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6441
6442 * cprop.c (struct reg_use): Remove.
6443 (reg_use_table): Make an array of RTX.
6444 (find_used_regs, constprop_register, local_cprop_pass,
6445 bypass_block): Simplify users of reg_use_table.
6446 (cprop_insn): Likewise. Iterate if copy propagation succeeded
6447 on one of the uses found by find_used_regs.
6448
e532f586
NF
64492011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6450
6451 PR bootstrap/48469
6452 * combine.c (combine_instructions): #ifdef AUTO_INC_DEC links
6453 declaration.
6454
3fb7c055
NF
64552011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6456
6457 * combine.c (combine_instructions) [AUTO_INC_DEC]: Declare links
6458 as an rtx.
6459 (try_combine) [AUTO_INC_DEC]: Declare a local link rtx.
6460
b71b43d9
SB
64612011-04-05 Steven Bosscher <steven@gcc.gnu.org>
6462
6463 PR middle-end/48441
6464 * cprop.c (one_cprop_pass): Do not mark_oprs_set of deleted insns.
6465
b405b274
NF
64662011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6467
6468 * combine.c: Include obstack.h.
6469 (struct insn_link): Define.
6470 (uid_log_links): Adjust type.
6471 (FOR_EACH_LOG_LINK): New macro.
6472 (insn_link_obstack): Declare.
6473 (alloc_insn_link): Define.
6474 (create_log_links): Call it. Use FOR_EACH_LOG_LINK and adjust
6475 type of link variables.
6476 (find_single_use, insn_a_feeds_b, combine_instructions): Likewise.
6477 (try_combine, record_promoted_values, distribute_notes): Likewise.
6478 (distribute_links): Likewise. Tweak prototype.
6479 (clear_log_links): Delete.
6480 (adjust_for_new_dest): Call alloc_insn_link.
6481 * Makefile.in (combine.o): Depend on $(OBSTACK_H).
6482
6409abe3
NF
64832011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6484
6485 * gcse.c (modify_mem_list): Convert to an array of VECs.
6486 (canon_modify_mem_list, compute_transp): Tweak formatting.
6487 (alloc_gcse_mem): Likewise. Adjust for modify_mem_list change.
6488 (load_killed_in_block_p): Likewise.
6489 (record_last_mem_set_info): Likewise.
6490 (clear_modify_mem_tables): Likewise.
6491
170d8157
TV
64922011-04-05 Tom de Vries <tom@codesourcery.com>
6493
6494 PR middle-end/48461
6495 * function.c (emit_use_return_register_into_block): Only define if
6496 HAVE_return.
6497
c5911a55
EB
64982011-04-05 Eric Botcazou <ebotcazou@adacore.com>
6499
6500 * stor-layout.c (self_referential_size): Fix 2010-07-13 commit.
6501
abd016e6
JM
65022011-04-05 Joseph Myers <joseph@codesourcery.com>
6503
6504 * config/rx/rx-opts.h: New.
6505 * config/rx/rx.c (rx_cpu_type): Remove.
6506 (rx_handle_option): Don't assert that global structures are in
6507 use. Access variables via opts pointer. Defer most handling of
6508 OPT_mint_register_. Use error_at.
6509 (rx_option_override): Handle deferred OPT_mint_register_ here.
6510 * config/rx/rx.h (enum rx_cpu_types): Move to rx-opts.h.
6511 * config/rx/rx.opt (config/rx/rx-opts.h: New HeaderInclude.
6512 (mcpu=): Use Enum and specifiy rx_cpu_type with Var.
6513 (rx_cpu_types): New Enum and EnumValue entries.
6514 (mint-register=): Use Defer and use Var accordingly.
6515
1ed13f83
NF
65162011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6517
6518 * debug.h (debug_flush_symbol_queue, debug_queue_symbol): Delete.
6519 (debug_free_queue, debug_nesting, symbol_queue_index): Delete.
6520 * final.c (debug_flush_symbol_queue, debug_queue_symbol):
6521 Move these...
6522 (debug_free_queue, debug_nesting, symbol_queue_index):
6523 ...and these...
6524 * dbxout.c: ...to here. Make static.
6525
6ce1edcf
NF
65262011-04-05 Nathan Froyd <froydnj@codesourcery.com>
6527
6528 * gcse.c (modify_pair): Define. Define a VEC of it.
6529 (canon_modify_mem_list): Convert to an array of VECs.
6530 (free_insn_expr_list_list): Delete.
6531 (clear_modify_mem_tables): Call VEC_free instead.
6532 (record_last_mem_set_info): Don't modify canon_modify_mem_list.
6533 (alloc_gcse_mem): Adjust for canon_modify_mem_list change.
6534 (canon_list_insert, compute_transp): Likewise.
6535
c201ac94
TV
65362011-04-05 Tom de Vries <tom@codesourcery.com>
6537
6538 PR target/43920
6539 * config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
6540 for size.
6541
4c029f40
TV
65422011-04-05 Tom de Vries <tom@codesourcery.com>
6543
6544 PR target/43920
6545 * function.c (emit_use_return_register_into_block): New function.
6546 (thread_prologue_and_epilogue_insns): Use
6547 emit_use_return_register_into_block.
6548
2a562b0a
TV
65492011-04-05 Tom de Vries <tom@codesourcery.com>
6550
6551 PR target/43920
6552 * cfgcleanup.c (flow_find_cross_jump): Don't count USE or CLOBBER as
6553 insn.
6554
0248bceb
TV
65552011-04-05 Tom de Vries <tom@codesourcery.com>
6556
6557 * cfgcleanup.c (try_crossjump_bb): Remove 2 superfluous variables.
6558
ffa94123
YZ
65592011-04-05 Yufeng Zhang <yufeng.zhang@arm.com>
6560
798dd0ba
UB
6561 * config/arm/arm.md (define_constants for unspec): Replace with
6562 define_c_enum.
6563 (define_constants for unspecv): Replace with define_c_enum.
6564 * config/arm/neon.md (define_constants for unspec): Replace with
6565 define_c_enum.
ffa94123 6566
3b8f9b46
RH
65672011-04-04 Richard Henderson <rth@redhat.com>
6568
720cf80f 6569 PR bootstrap/48400
3b8f9b46
RH
6570 * dwarf2out.c (output_line_info): Always emit line info from
6571 at least one section.
6572 (dwarf2out_init): Create text_section_line_info here ...
6573 (set_cur_line_info_table): ... not here.
6574
720cf80f 65752011-04-04 Vladimir Makarov <vmakarov@redhat.com>
e5b0e1ca
VM
6576
6577 PR target/48380
6578 * ira.c (ira): Call grow_reg_equivs when fix_reg_equiv_init is
720cf80f 6579 not called.
e5b0e1ca 6580
720cf80f 6581 * ira-emit.c (emit_move_list): Update reg_equiv_init insn list.
e5b0e1ca 6582
196565d4
SB
65832011-04-04 Steven Bosscher <steven@gcc.gnu.org>
6584
b77f9eab
SB
6585 * cprop.c (struct expr): Split 'expr' field in 'dest' and 'src'.
6586 (expr_equiv_p): Remove.
6587 (insert_set_in_table): Look at <dest, src> pair instead of expr.
6588 (hash_scan_set): Update call to insert_set_in_table.
6589 (dump_hash_table): Dump <dest, src> pair.
6590 (lookup_set): Simplify. Lookup <dest, src> pair.
6591 (compute_transp): Remove, fold heavily simplified code into...
6592 (compute_local_properties): ...here. Expect COMP and TRANSP
6593 unconditionally.
6594 (find_avail_set): Take set directly from struct expr.
6595 (find_bypass-set): Likewise.
6596 (bypass_block): Likewise.
6597 (cprop_insn): Likewise. Remove redundant INSN_P test.
6598
384d7a55
SB
6599 * cprop.c (implicit_set_cond_p): Assume nothing about COND, move
6600 checks on form of COND from find_implicit_sets to here.
6601 (find_implicit_sets): Cleanup control flow. Split critical edges
6602 if it exposes implicit sets. Allocate/resize implicit_sets as
6603 necessary.
6604 (one_cprop_pass): Only delete unreachable blocks if local_cprop_pass
6605 changed something. Run df_analyze after find_implicit_sets if any
6606 edges were split. Do not allocate implicit_sets here.
6607
3084ce69
SB
6608 * cprop.c: s/gcse/cprop/ everywhere except for flag_gcse.
6609 (gcse_obstack): Renamed to cprop_obstack.
6610 (GNEW, GNEWVEC, GNEWVAR): Remove.
6611 (gmalloc): Remove.
6612 (alloc_hash_table): Use XNEWVAR instead of GNEWVAR.
6613 (GOBNEW, GOBNEWVAR): Adjust for gcse_obstack renaming.
6614 (gcse_alloc): Likewise, and rename to cprop_alloc.
6615 (alloc_gcse_men, free_gcse_mem): Remove.
6616 (gcse_constant_p): Rename to cprop_constant_p, and adjust all callers.
6617 (compute_hash_table_work): Allocate and free reg_set_bitmap here.
6618 (one_cprop_pass): Likewise. Adjust for gcse_obstack renaming.
6619
196565d4
SB
6620 * cprop.c (oprs_not_set_p): Remove.
6621 (mark_set, mark_clobber): Remove.
6622 (mark_oprs_set): Rewrite using DF_INSN_INFO_DEFS cache.
6623 (reg_not_set_p): New function.
6624 (find_avail_set): Use reg_not_set_p instead of oprs_not_set_p.
6625 (cprop_insn): Likewise.
6626 (cprop_jump): Use FOR_EACH_EDGE.
6627
9b69cf83
BS
66282011-04-04 Bernd Schmidt <bernds@codesourcery.com>
6629
6630 PR bootstrap/48403
6631 * haifa-sched.c (nonscheduled_insns_begin): New static variable.
6632 (rank_for_schedule): Use scheduled_insns vector instead of
6633 last_scheduled_insn.
6634 (ok_for_early_queue_removal): Likewise.
6635 (queue_to_ready): Search forward in nonscheduled_insns_begin if
6636 we have a dbg_cnt.
6637 (choose_ready): Likewise.
6638 (commit_schedule): Use VEC_iterate.
6639 (schedule_block): Initialize nonscheduled_insns_begin. If we have
6640 a dbg_cnt, use it and ensure the first insn is in the ready list.
6641 (haifa_sched_init): Allocate scheduled_insns.
6642 (sched_extend_ready_list): Don't allocate it; reserve space.
6643 (haifa_sched_finish): Free it.
6644
24f48c2f
JM
66452011-04-04 Joseph Myers <joseph@codesourcery.com>
6646
6647 * optc-gen.awk: Always remove type from Variable entry before
6648 recording in var_seen.
6649
8effe856
EB
66502011-04-04 Eric Botcazou <ebotcazou@adacore.com>
6651
6652 * cfghooks.c (tidy_fallthru_edges): Add ??? comment.
6653 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Remove
6654 call to tidy_fallthru_edges.
6655
413519ae
JM
66562011-04-04 Joseph Myers <joseph@codesourcery.com>
6657
6658 * doc/options.texi (ToLower): Document.
3729983c 6659 * opt-functions.awk (switch_bit_fields): Initialize cl_tolower field.
413519ae
JM
6660 * opts-common.c (decode_cmdline_option): Handle cl_tolower.
6661 * opts.h (cl_option): Add cl_tolower field.
6662 * config/rx/rx.c (rx_handle_option): Use strcmp of -mcpu=
6663 arguments with lowercase strings.
6664 * config/rx/rx.opt (mcpu=): Add ToLower.
6665 * config/rx/t-rx (MULTILIB_MATCHES): Don't handle uppercase -mcpu=
6666 argument.
6667
7d34a1b0
RS
66682011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6669
6670 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Delete.
6671
c30e7434
RS
66722011-04-04 Richard Sandiford <richard.sandiford@linaro.org>
6673
6674 * config/vax/vax.c: Include reload.h.
6675
112a861d
AS
66762011-04-04 Anatoly Sokolov <aesok@post.ru>
6677
6678 * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Remove.
6679 * config/sparc/sparc.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
6680 (sparc_preferred_reload_class): New function.
6681
e8c6bb74
JJ
66822011-04-04 Jakub Jelinek <jakub@redhat.com>
6683
2aeaa366 6684 PR debug/48401
e8c6bb74
JJ
6685 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
6686 Use PAT_VAR_LOCATION_LOC instead of INSN_VAR_LOCATION_LOC.
6687
2c081caf
NF
66882011-04-03 Nathan Froyd <froydnj@codesourcery.com>
6689
6690 * tree.h (struct tree_const_decl): Inherit from tree_decl_common.
6691 * tree.c (initialize_tree_contains_struct): Adjust accordingly.
6692
53802f27
AS
66932011-04-03 Anatoly Sokolov <aesok@post.ru>
6694
6695 * config/avr/avr.h (ASM_OUTPUT_BSS): Remove.
6696 (ASM_OUTPUT_ALIGNED_BSS): Define.
6697
e89964e3
MM
66982011-04-03 Michael Matz <matz@suse.de>
6699
6700 * lto-streamer.h (struct lto_streamer_cache_d): Remove offsets
6701 and next_slot members.
6702 (lto_streamer_cache_insert, lto_streamer_cache_insert_at,
6703 lto_streamer_cache_lookup, lto_streamer_cache_get): Adjust prototypes.
6704 (lto_streamer_cache_append): Declare.
6705 * lto-streamer.c (lto_streamer_cache_add_to_node_array): Use
6706 unsigned index, remove offset parameter, ensure that we append
6707 or update existing entries.
6708 (lto_streamer_cache_insert_1): Use unsigned index, remove offset_p
6709 parameter, update next_slot for append.
6710 (lto_streamer_cache_insert): Use unsigned index, remove offset_p
6711 parameter.
6712 (lto_streamer_cache_insert_at): Likewise.
6713 (lto_streamer_cache_append): New function.
6714 (lto_streamer_cache_lookup): Use unsigned index.
6715 (lto_streamer_cache_get): Likewise.
6716 (lto_record_common_node): Don't test tree_node_can_be_shared.
6717 (preload_common_node): Adjust call to lto_streamer_cache_insert.
6718 (lto_streamer_cache_delete): Don't free offsets member.
6719 * lto-streamer-out.c (eq_string_slot_node): Use memcmp.
6720 (lto_output_string_with_length): Use lto_output_data_stream.
6721 (lto_output_tree_header): Remove ix parameter, don't write it.
6722 (lto_output_builtin_tree): Likewise.
6723 (lto_write_tree): Adjust callers to above, don't track and write
6724 offset, write unsigned index.
6725 (output_unreferenced_globals): Don't emit all global vars.
6726 (write_global_references): Use unsigned indices.
6727 (lto_output_decl_state_refs): Likewise.
6728 (write_symbol): Likewise.
6729 * lto-streamer-in.c (lto_input_chain): Move earlier.
6730 (input_function): Use unsigned index.
6731 (input_alias_pairs): Don't read and then ignore all global vars.
6732 (lto_materialize_tree): Remove ix_p parameter, don't read index,
6733 don't pass it back, use lto_streamer_cache_append.
6734 (lto_register_var_decl_in_symtab): Use unsigned index.
6735 (lto_register_function_decl_in_symtab): Likewise.
6736 (lto_get_pickled_tree): Don't read in or handle offset, read unsigned
6737 index.
6738 (lto_get_builtin_tree): Don't read index, use
6739 lto_streamer_cache_append.
6740 (lto_read_tree): Adjust call to lto_materialize_tree.
6741
6742 * ipa-inline.c (cgraph_edge_badness): Move growth calculaton,
6743 don't use function calls in arguments to MIN.
6744
6745 * varasm.c (decl_binds_to_current_def_p): Don't check TREE_PUBLIC
6746 twice.
6747
6748 * gimple.c (gimple_type_leader_entry): Mark deletable.
6749
b9a5b5b2
AM
67502011-04-03 Alan Modra <amodra@gmail.com>
6751
6752 * dwarf2out.c (mem_loc_descriptor): Recurse on LO_SUM.
6753
ac6a641b
MM
67542011-04-03 Michael Matz <matz@suse.de>
6755
6756 * tree.c (free_lang_data_in_decl): Zero DECL_VINDEX if it's not
6757 an integer.
6758 * tree.h (tree_decl_non_common.vindex): Adjust comment.
6759
0038d4e0
MM
67602011-04-03 Michael Matz <matz@suse.de>
6761
e9c18386 6762 * cgraphbuild.c (record_reference): Canonicalize constructor values.
0038d4e0
MM
6763 * gimple-fold.c (canonicalize_constructor_val): Accept being called
6764 without function context.
6765 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear
6766 current_function_decl and cfun.
6767
91f2fae8
MM
67682011-04-03 Michael Matz <matz@suse.de>
6769
6770 * tree.c (decl_init_priority_insert): Don't create entry for
6771 default priority.
6772 (decl_fini_priority_insert): Ditto.
6773 (fields_compatible_p, find_compatible_field): Remove.
6774 * tree.h (fields_compatible_p, find_compatible_field): Remove.
6775 * gimple.c (gimple_compare_field_offset): Adjust block comment.
6776
da29e070
EB
67772011-04-03 Eric Botcazou <ebotcazou@adacore.com>
6778
6779 * combine.c (try_combine): Remove useless local variable.
6780
4979c28b 67812011-04-03 Richard Guenther <rguenther@suse.de>
91f2fae8 6782 Ira Rosen <ira.rosen@linaro.org>
4979c28b
RG
6783
6784 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Strip all
6785 non-variable offsets and compare the remaining bases of the two
6786 accesses instead of looking for exact same data-ref.
6787
b4ddcaee
KT
67882011-04-02 Kai Tietz <ktietz@redhat.com>
6789
f90298e1
KT
6790 PR target/48416
6791 * i386.c (ix86_function_arg_boundary): Fix printf formatter.
6792
b4ddcaee
KT
6793 * i386.c (ix86_is_msabi_thiscall): New helper function.
6794 (ix86_is_type_thiscall): New helper function.
6795 (ix86_comp_type_attributes): Handle thiscall for method-functions
6796 special.
6797 (init_cumulative_args): Likewise.
6798 (find_drap_reg): Likewise.
6799 (ix86_static_chain): Likewise.
6800 (x86_this_parameter): Likewise.
6801 (x86_output_mi_thunk): Likewise.
6802
2a9d769a 68032011-04-01 Olivier Hainque <hainque@adacore.com>
91f2fae8
MM
6804 Nicolas Setton <setton@adacore.com>
6805 Eric Botcazou <ebotcazou@adacore.com>
2a9d769a
OH
6806
6807 * dwarf2out.c (dwarf_attr_name): Map DW_AT_GNAT_descriptive_type.
6808 (add_gnat_descriptive_type_attribute): New function.
6809 (gen_array_type_die): Call it.
6810 (gen_enumeration_type_die): Likewise.
6811 (gen_struct_or_union_type_die): Likewise.
6812 (modified_type_die): Likewise.
6813 * langhooks.h (lang_hooks_for_types): New descriptive_type hook.
6814 * langhooks-def.h (LANG_HOOKS_DESCRIPTIVE_TYPE): Default to NULL.
6815 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_DESCRIPTIVE_TYPE.
6816
15a03a11
JJ
68172011-04-01 Jakub Jelinek <jakub@redhat.com>
6818
6819 PR bootstrap/48148
6820 * dwarf2out.c (resolve_addr): Don't call force_decl_die
6821 if DECL_EXTERNAL has non-NULL DECL_ABSTRACT_ORIGIN.
6822
6823 Revert:
6824 2011-03-17 Richard Guenther <rguenther@suse.de>
6825
6826 PR bootstrap/48148
6827 * lto-cgraph.c (input_overwrite_node): Clear the abstract
6828 origin for decls in other ltrans units.
6829 (input_varpool_node): Likewise.
6830
19228b93
JJ
68312011-04-01 Jakub Jelinek <jakub@redhat.com>
6832
6833 PR middle-end/48335
6834 * expr.c (expand_assignment): Handle all possibilities
6835 if TO_RTX is CONCAT.
e9c18386 6836 * expmed.c (store_bit_field_1): Avoid trying to create invalid SUBREGs.
19228b93
JJ
6837 (store_split_bit_field): If SUBREG_REG (op0) or
6838 op0 itself has smaller mode than word, return it
6839 for offset 0 and const0_rtx for out-of-bounds stores.
6840 If word is const0_rtx, skip it.
6841
88cb339e
N
68422011-04-01 Naveen H.S <naveen.S@kpitcummins.com>
6843
6844 * config/h8300/h8300.c (print_operand_address): Rename to...
6845 (h8300_print_operand_address): ...this. Make static. Adjust comments.
6846 Call h8300_print_operand and h8300_print_operand_address instead of
6847 print_operand and print_operand_address. Declare.
6848 (print_operand): Renake to...
6849 (h8300_print_operand): ...this. Make static. Adjust comments.
6850 Call h8300_print_operand instead of print_operand. Declare.
6851 (h8300_print_operand_punct_valid_p): Moved from h8300.h file.
6852 (h8300_register_move_cost): Likewise.
6853 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_PRINT_OPERAND
6854 TARGET_PRINT_OPERAND_ADDRESS, TARGET_REGISTER_MOVE_COST): Define.
6855 * config/h8300/h8300.h (PRINT_OPERAND_ADDRESS, PRINT_OPERAND
6856 PRINT_OPERAND_PUNCT_VALID_P, REGISTER_MOVE_COST): Delete.
6857 * config/h8300/h8300-protos.h (print_operand): Delete.
6858 (print_operand_address): Delete.
6859
756d6ee9
RH
68602011-04-01 Richard Henderson <rth@redhat.com>
6861
6862 PR 48400
6863 * dwarf2out.c (dwarf2out_source_line): Disable discriminators
6864 in strict mode before dwarf4. Re-order tests to early out
6865 before switching sections.
6866
ceaaaeab
NF
68672011-04-01 Nathan Froyd <froydnj@codesourcery.com>
6868
6869 * config/h8300/constraints.md: New file.
6870 * config/h8300/h8300.md: Include it. Use satisfies_constraint_J,
6871 satisfies_constraint_L, and satisfies_constraint_N for peephole2s.
6872 (*tst_extzv_1_n, *tstsi_variable_bit_qi): Use satisfies_constraint_U.
6873 * config/h8300/predicates.md (bit_operand): Likewise.
6874 (incdec_operand): Use satisfies_constraint_M and
6875 satisfies_constraint_O. Don't use C code block.
6876 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Delete.
6877 * config/h8300/h8300.c (h8300_reg_class_from_letter): Delete.
6878 (compute_mov_length): Use satisfies_constraint_G.
6879 (fix_bit_operand): Use satisfies_constraint_U.
6880 * config/h8300/h8300.h (REG_CLASS_FROM_LETTER): Delete.
6881 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Delete.
6882 (CONST_OK_FOR_M, CONST_OK_FOR_N, CONST_OK_FOR_O): Delete.
6883 (CONST_OK_FOR_Ppositive, CONST_OK_FOR_Pnegative): Delete.
6884 (CONST_OK_FOR_P, CONSTRAINT_LEN_FOR_P): Delete.
6885 (CONST_OK_FOR_CONSTRAINT_P, CONST_OK_FOR_LETTER_P): Delete.
6886 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
6887 (OK_FOR_Q, OK_FOR_R, OK_FOR_S, OK_FOR_T, OK_FOR_U, OK_FOR_WU): Delete.
6888 (OK_FOR_W, CONSTRAINT_LEN_FOR_W, OK_FOR_Y2, OK_FOR_Y0): Delete.
6889 (OK_FOR_Y, CONSTRAINT_LEN_FOR_Y, OK_FOR_Z): Delete.
6890 (EXTRA_CONSTRAINT_STR, CONSTRAINT_LEN): Delete.
6891 (EXTRA_MEMORY_CONSTRAINT): Delete.
6892
08ae38e0
AP
68932011-04-01 Andrew Pinski <pinskia@gmail.com>
6894 Michael Meissner <meissner@linux.vnet.ibm.com>
6895
6896 PR target/48262
6897 * config/rs6000/vector.md (movmisalign<mode>): Allow for memory
6898 operands, as per the specifications.
6899
6900 * config/rs6000/altivec.md (vec_extract_evenv4si): Correct modes.
6901 (vec_extract_evenv4sf): Ditto.
6902 (vec_extract_evenv8hi): Ditto.
6903 (vec_extract_evenv16qi): Ditto.
6904 (vec_extract_oddv4si): Ditto.
6905
bdb0b0f6
MW
69062011-03-31 Mark Wielaard <mjw@redhat.com>
6907
6908 * dwarf2out.c (dwarf2out_finish): Don't add low_pc and/or
6909 high_pc attribute if the CU has no associated code. Only output
6910 DW_AT_entry_pc for CU if not generating strict dwarf and
6911 dwarf_version < 4.
6912
722279e4
BS
69132011-04-01 Bernd Schmidt <bernds@codesourcery.com>
6914
6915 * dwarf2out.h (dwarf2out_frame_debug_init): Declare.
6916 * dwarf2out.c (dwarf2out_frame_debug_init): New function, broken
6917 out of ...
6918 (dwarf2out_frame_debug): ... here. Don't handle a NULL argument.
6919 * final.c (final_start_function): Call the new function rather
6920 than using a NULL argument for dwarf2out_frame_debug.
6921
c5dd277d
BS
6922 * ifcvt.c (cond_exec_process_insns): Disallow converting a block
6923 that contains the prologue.
6924
ec4efea9
BS
6925 * haifa-sched.c (queue_insn): New arg REASON. All callers
6926 changed. Print it in debugging output.
6927
2a6a0d80
BS
6928 * sched-ebb.c (schedule_ebbs): Honor the BB_DISABLE_SCHEDULE flag.
6929
86014d07
BS
6930 * sched-ebb.c (begin_schedule_ready): Remove second argument.
6931 Split most of the code into...
6932 (begin_move_insn): ... here. New function.
6933 (ebb_sched_info): Add a pointer to it.
6934 * haifa-sched.c (scheduled_insns): New static variable.
6935 (sched_extend_ready_list): Allocate it.
6936 (schedule_block): Use it to record the order of scheduled insns.
6937 Perform RTL changes to move insns only after all scheduling
6938 decisions have been made.
6939 * modulo-sched.c (sms_sched_haifa_sched_info): Add NULL entry for the
6940 begin_move_insn field.
6941 * sel-sched-ir.c (sched_sel_haifa_sched_info): Likewise.
6942 * sched-int.h (struct haifa_sched_info): Remove second argument
6943 from begin_schedule_ready hook. Add new member begin_move_insn.
6944 * sched-rgn.c (begin_schedule_ready): Remove second argument.
6945 (rgn_const_sched_info): Add NULL entry for the begin_move_insn field.
6946
9d701248
BS
6947 * haifa-sched.c (prune_ready_list): New function, broken out of
6948 schedule_block.
6949 (schedule_block): Use it.
6950
1ca1dad5
UW
69512011-04-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
6952
6953 * config/spu/t-spu-elf (dp-bit.c): Use > instead of >>.
6954
49568e45
KT
69552011-04-01 Kai Tietz <ktietz@redhat.com>
6956
6957 * config.gcc (*-*-mingw*): Allow as option the
6958 posix threading model.
07c0852e 6959 * config/i386/mingw32.h (SPEC_PTHREAD1, SPEC_PTHREAD2):
49568e45
KT
6960 New macros defined dependent to TARGET_USE_PTHREAD_BY_DEFAULT
6961 definition.
6962 (CPP_SPEC): Add pthread/no-pthread handling.
6963 (LIB_SPEC): Likewise.
6964 * config/i386/mingw-w64.h (CPP_SPEC):Likewise.
6965 (LIB_SPEC): Likewise.
6966 * config/i386/t-cygming (SHLIB_PTHREAD_CFLAG): New
6967 flag to pass -pthread option for shared libgcc build.
6968 (SHLIB_PTHREAD_LDFLAG): New option to pass -lpthread
6969 for shared libgcc build.
6970 * config/i386/t-mingw-pthread: New file.
6971 * config/i386/mingw-pthread.h (TARGET_USE_PTHREAD_BY_DEFAULT):
6972 New define to enable use of library pthread by default.
6973 * config/i386/mingw.opt (pthread): New driver option.
6974 (no-pthread): New driver option.
e9c18386 6975 * config/i386/cygming.opt: Make sure trailing empty line is retained.
49568e45
KT
6976 * config/i386/mingw-w64.opt: Likewise.
6977
748f7574 69782011-04-01 Gary Funck <gary@intrepid.com>
636b4106
GF
6979
6980 * c-decl.c (grokdeclarator): Fix formatting.
6981
f04713ee
RS
69822011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6983
6984 * expr.c (emit_block_move_via_movmem): Use n_generator_args
6985 instead of n_operands.
6986 (set_storage_via_setmem): Likewise.
6987 * optabs.c (maybe_gen_insn): Likewise.
6988 * config/arm/arm.c (arm_init_neon_builtins): Likewise.
6989 * config/mips/mips.c (mips_expand_builtin_compare_1): Likewise.
6990 (mips_expand_builtin_direct): Likewise.
6991 * config/spu/spu.c (expand_builtin_args): Likewise.
6992
b29387ee
RS
69932011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
6994
6995 * recog.h (insn_data_d): Add n_generator_args.
6996 * genoutput.c (data): Likewise.
6997 (output_insn_data): Print it.
6998 (max_opno, num_dups): Delete.
6999 (scan_operands): Just fill in "d->operand[...]".
7000 (gen_insn, gen_peephole, gen_expand, gen_split): Use get_pattern_stats.
7001
e792559a
RS
70022011-04-01 Richard Sandiford <richard.sandiford@linaro.org>
7003
7004 * gensupport.h (pattern_stats): New structure.
7005 * gensupport.c (get_pattern_stats_1, get_pattern_stats): New functions.
7006 * genemit.c (max_opno, max_dupno, max_scratch_opno): Delete.
7007 (max_operand_1, max_operand_vec): Delete.
7008 (gen_insn, gen_expand, gen_split): Use get_pattern_stats.
7009
e8110d6f
NF
70102011-03-31 Nathan Froyd <froydnj@codesourcery.com>
7011
7012 * emit-rtl.c (emit_pattern_after_setloc): New function.
7013 (emit_insn_after_setloc, emit_jump_insn_after_setloc): Call it.
7014 (emit_call_insn_after_setloc, emit_debug_insn_after_setloc): Likewise.
7015 (emit_pattern_after): New function.
7016 (emit_insn_after, emit_jump_insn_after): Call it.
7017 (emit_call_insn_after, emit_debug_insn_after): Likewise.
7018 (emit_pattern_before_setloc): New function.
7019 (emit_insn_before_setloc, emit_jump_insn_before_setloc): Call it.
7020 (emit_call_insn_before_setloc, emit_debug_insn_before_setloc):
7021 Likewise.
7022 (emit_pattern_before): New function.
7023 (emit_insn_before, emit_jump_insn_before): Call it.
7024 (emit_call_insn_before, emit_debug_insn_before): Likewise.
7025
576f85f1
RH
70262011-03-31 Richard Henderson <rth@redhat.com>
7027
7028 * dwarf2out.c (dw_separate_line_info_ref): Remove.
7029 (dw_separate_line_info_entry): Remove.
7030 (enum dw_line_info_opcode): New.
7031 (dw_line_info_entry): Use it.
7032 (dw_line_info_table, dw_line_info_table_p): New.
7033 (DWARF_LINE_OPCODE_BASE): Include dwarf3 opcodes.
7034 (line_info_table, line_info_label_num): Remove.
7035 (line_info_table_in_use): Remove.
7036 (separate_line_info_table): Remove.
7037 (separate_line_info_table_allocated): Remove.
7038 (separate_line_info_table_in_use): Remove.
7039 (LINE_INFO_TABLE_INCREMENT): Remove.
7040 (line_info_label_num): New.
7041 (cur_line_info_table): New.
7042 (text_section_line_info, cold_text_section_line_info): New.
7043 (separate_line_info): New.
7044 (SEPARATE_LINE_CODE_LABEL): Remove.
7045 (print_dwarf_line_table): Remove.
7046 (debug_dwarf): Don't dump it.
7047 (output_one_line_info_table): New.
7048 (output_line_info): Use it.
7049 (new_line_info_table): New.
7050 (set_cur_line_info_table): New.
7051 (dwarf2out_switch_text_section): Use it.
7052 (dwarf2out_begin_function): Likewise.
7053 (push_dw_line_info_entry): New.
7054 (dwarf2out_source_line): Rewrite for new line info tables.
7055 (dwarf2out_init): Remove dead initailizations.
7056
300d83d9
JM
70572011-03-31 Joseph Myers <joseph@codesourcery.com>
7058
7059 * opts.h (cl_option): Add comments to fields. Add bit-fields for
7060 various flags.
7061 (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK,
7062 CL_SEPARATE_ALIAS, CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE,
7063 CL_DISABLED, CL_REPOR, CL_REJECT_NEGATIVE, CL_MISSING_OK,
7064 CL_UINTEGER, CL_NEGATIVE_ALIAS): Remove.
7065 (CL_JOINED, CL_SEPARATE, CL_UNDOCUMENTED): Update bit positions.
7066 * opt-functions.awk (flag_init, switch_bit_fields): New.
7067 (switch_flags): Don't handle flags moved to bit-fields. Don't
7068 generate CL_MISSING_OK or CL_SAVE.
7069 * optc-gen.awk: Update to generate bit-field output as well as
7070 flags field.
7071 * gcc.c (driver_wrong_lang_callback): Use cl_reject_driver
7072 bit-field instead of CL_REJECT_DRIVER flag.
7073 * opts-common.c (generate_canonical_option,
7074 decode_cmdline_option): Use bit-fields instead of CL_* flags.
7075 * opts.c (maybe_default_option): Use cl_reject_negative bit-field
7076 instead of CL_REJECT_NEGATIVE flag.
7077 * toplev.c (print_switch_values): Use cl_report bit-field instead
7078 of CL_REPORT flag.
7079
d4d73ce2
EB
70802011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7081
7082 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <ARRAY_REF>: Drop
7083 a zero minimum index only if it is redundant.
7084
b8faca75
VM
70852011-03-31 Vladimir Makarov <vmakarov@redhat.com>
7086
7087 PR rtl-optimization/48381
7088 * ira-color.c (assign_hard_reg): Use hard reg set intersection
7089 instead of ira_class_hard_reg_index for calculating conflicting
7090 hard registers.
7091
7d11cebe
SB
70922011-03-31 Steven Bosscher <steven@gcc.gnu.org>
7093
7094 * cprop.c: Clean up hash table building.
7095 (reg_avail_info): Remove.
7096 (oprs_available_p): Remove.
7097 (record_last_reg_set_info): Remove.
7098 (record_last_set_info): Remove.
7099 (reg_available_p): New function.
7100 (gcse_constant_p): Do not treat unfolded conditions as constants.
7101 (make_set_regs_unavailable): New function.
7102 (hash_scan_set): Simplify with new reg_available_p.
7103 (compute_hash_table_work): Traverse insns stream only once.
7104 Do not compute reg_avail_info. Traverse insns in reverse order.
7105 Record implicit sets after recording explicit sets from the block.
7106
98faf84f
MM
71072011-03-31 Michael Matz <matz@suse.de>
7108
e9c18386 7109 * builtins.c (build_va_arg_indirect_ref): Use build_simple_mem_ref_loc.
98faf84f 7110
f52d97da
AS
71112011-03-31 Anatoly Sokolov <aesok@post.ru>
7112
7113 * config/h8300/h8300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove macro.
7114 * config/h8300/h8300-protos.h (h8300_get_index): Remove.
7115 * config/h8300/h8300.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7116 (h8300_mode_dependent_address_p): New function.
7117 (h8300_get_index): Make static.
7118
e16b6fd0
JL
71192011-03-31 Jeff Law <law@redhat.com>
7120
10c51983
JL
7121 * reload1.c (elimination_effects): Fix typo in recent change.
7122
e9c18386 7123 * tree-ssa-forwprop.c (forward_propagate_into_cond): Avoid
e16b6fd0
JL
7124 typo potentially leading to null pointer dereference.
7125
7126 * caller-save.c (new_saved_hard_reg): Eliminate return value.
7127 (setup_save_areas): Corresponding changes to avoid useless
7128 assignments.
7129
7130 * jump.c (reversed_comparison_code_parts): Avoid successive return
7131 statements when REVERSE_CONDITION is defined.
7132
7133 * expr.c (expand_assignment): Avoid useless assignments.
7134 (expand_expr_real_1): Likewise.
7135 (expand_expr_real_2): Avoid useless statements.
7136
7137 * tree-ssa-phiopt.c (minmax_replacement): Avoid useless statement.
7138
7139 * cfgexpand.c (expand_gimple_basic_block): Avoid useless assignment.
7140
7141 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Avoid useless
7142 statements.
7143
7144 * stmt.c (expand_expr_stmt): Avoid useless assignment.
7145
eb1eb914
JM
71462011-03-31 Joseph Myers <joseph@codesourcery.com>
7147
7148 PR target/47109
7149 * doc/tm.texi.in (TARGET_VERSION): Remove.
7150 * doc/tm.texi: Regenerate.
7151 * system.h (TARGET_VERSION, MACHINE_TYPE): Poison.
7152 * collect2.c (main): Don't use TARGET_VERSION.
7153 * mips-tdump.c (main): Don't use TARGET_VERSION.
7154 * mips-tfile.c (main): Don't use TARGET_VERSION.
e9c18386 7155 * config.gcc (powerpc-wrs-vxworksae): Don't use rs6000/vxworksae.h.
eb1eb914
JM
7156 * config/rs6000/vxworksae.h: Remove.
7157 * config/alpha/alpha.h (TARGET_VERSION): Remove.
7158 * config/alpha/freebsd.h (TARGET_VERSION): Remove.
7159 * config/alpha/linux-elf.h (TARGET_VERSION): Remove.
7160 * config/alpha/netbsd.h (TARGET_VERSION): Remove.
7161 * config/alpha/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7162 * config/arm/arm.h (TARGET_VERSION): Remove.
7163 * config/arm/coff.h (TARGET_VERSION): Remove.
7164 * config/arm/ecos-elf.h (TARGET_VERSION): Remove.
7165 * config/arm/elf.h (TARGET_VERSION): Remove.
7166 * config/arm/freebsd.h (TARGET_VERSION): Remove.
7167 * config/arm/linux-elf.h (TARGET_VERSION): Remove.
7168 * config/arm/netbsd-elf.h (TARGET_VERSION): Remove.
7169 * config/arm/pe.h (TARGET_VERSION): Remove.
7170 * config/arm/rtems-elf.h (TARGET_VERSION): Remove.
7171 * config/arm/semi.h (TARGET_VERSION): Remove.
7172 * config/arm/uclinux-elf.h (TARGET_VERSION): Remove.
7173 * config/arm/unknown-elf.h (TARGET_VERSION): Remove.
7174 * config/arm/vxworks.h (TARGET_VERSION): Remove.
7175 * config/avr/avr.h (TARGET_VERSION): Remove.
7176 * config/bfin/bfin.h (TARGET_VERSION): Remove.
7177 * config/fr30/fr30.h (TARGET_VERSION): Remove.
7178 * config/frv/frv.h (TARGET_VERSION): Remove.
7179 * config/h8300/h8300.h (TARGET_VERSION): Remove.
7180 * config/i386/cygwin.h (TARGET_VERSION): Remove.
7181 * config/i386/darwin.h (TARGET_VERSION): Remove.
7182 * config/i386/darwin64.h (TARGET_VERSION): Remove.
7183 * config/i386/djgpp.h (TARGET_VERSION): Remove.
7184 * config/i386/freebsd.h (TARGET_VERSION): Remove.
7185 * config/i386/freebsd64.h (TARGET_VERSION): Remove.
7186 * config/i386/gnu.h (TARGET_VERSION): Remove.
7187 * config/i386/i386-interix.h (TARGET_VERSION): Remove.
7188 * config/i386/i386elf.h (TARGET_VERSION): Remove.
7189 * config/i386/linux.h (TARGET_VERSION): Remove.
7190 * config/i386/linux64.h (TARGET_VERSION): Remove.
7191 * config/i386/lynx.h (TARGET_VERSION): Remove.
7192 * config/i386/mingw32.h (TARGET_VERSION): Remove.
7193 * config/i386/netbsd-elf.h (TARGET_VERSION): Remove.
7194 * config/i386/netbsd64.h (TARGET_VERSION): Remove.
7195 * config/i386/netware.h (TARGET_VERSION): Remove.
7196 * config/i386/nto.h (TARGET_VERSION): Remove.
7197 * config/i386/openbsd.h (TARGET_VERSION): Remove.
7198 * config/i386/vxworks.h (TARGET_VERSION): Remove.
7199 * config/ia64/elf.h (TARGET_VERSION): Remove.
7200 * config/ia64/freebsd.h (TARGET_VERSION): Remove.
7201 * config/ia64/hpux.h (TARGET_VERSION): Remove.
7202 * config/ia64/linux.h (TARGET_VERSION): Remove.
7203 * config/ia64/vms.h (TARGET_NAME, TARGET_VERSION): Remove.
7204 * config/iq2000/iq2000.h (IQ2000_VERSION, MACHINE_TYPE,
7205 TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7206 * config/lm32/lm32.h (TARGET_VERSION): Remove.
7207 * config/lm32/uclinux-elf.h (TARGET_VERSION): Remove.
7208 * config/m32c/m32c.h (TARGET_VERSION): Remove.
7209 * config/m32r/linux.h (LINUX_DEFAULT_ELF, TARGET_VERSION): Remove.
7210 * config/m32r/m32r.h (TARGET_VERSION): Remove.
7211 * config/m68k/linux.h (TARGET_VERSION): Remove.
7212 * config/m68k/m68k.h (TARGET_VERSION): Remove.
7213 * config/m68k/netbsd-elf.h (TARGET_VERSION): Remove.
7214 * config/m68k/uclinux.h (TARGET_VERSION): Remove.
7215 * config/mcore/mcore-elf.h (TARGET_VERSION): Remove.
7216 * config/mep/mep.h (TARGET_VERSION): Remove.
7217 * config/microblaze/microblaze.h (MICROBLAZE_VERSION,
7218 MACHINE_TYPE, TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
7219 * config/mips/iris6.h (MACHINE_TYPE): Remove.
7220 * config/mips/linux.h (TARGET_VERSION): Remove.
7221 * config/mips/netbsd.h (MACHINE_TYPE): Remove.
7222 * config/mips/vxworks.h (TARGET_VERSION): Remove.
7223 * config/mmix/mmix.h (TARGET_VERSION): Remove.
7224 * config/mn10300/linux.h (TARGET_VERSION): Remove.
7225 * config/mn10300/mn10300.h (TARGET_VERSION): Remove.
7226 * config/pa/pa.h (TARGET_VERSION): Remove.
7227 * config/pdp11/pdp11.h (TARGET_VERSION): Remove.
7228 * config/picochip/picochip.h (TARGET_VERSION): Remove.
7229 * config/rs6000/aix.h (TARGET_VERSION): Remove.
7230 * config/rs6000/darwin.h (TARGET_VERSION): Remove.
7231 * config/rs6000/darwin64.h (TARGET_VERSION): Remove.
7232 * config/rs6000/eabi.h (TARGET_VERSION): Remove.
7233 * config/rs6000/eabialtivec.h (TARGET_VERSION): Remove.
7234 * config/rs6000/eabisim.h (TARGET_VERSION): Remove.
7235 * config/rs6000/eabispe.h (TARGET_VERSION): Remove.
7236 * config/rs6000/freebsd.h (TARGET_VERSION): Remove.
7237 * config/rs6000/linux.h (TARGET_VERSION): Remove.
7238 * config/rs6000/linux64.h (TARGET_VERSION): Remove.
7239 * config/rs6000/linuxaltivec.h (TARGET_VERSION): Remove.
7240 * config/rs6000/linuxspe.h (TARGET_VERSION): Remove.
7241 * config/rs6000/lynx.h (TARGET_VERSION): Remove.
7242 * config/rs6000/netbsd.h (TARGET_VERSION): Remove.
7243 * config/rs6000/sysv4.h (TARGET_VERSION): Remove.
7244 * config/rs6000/vxworks.h (TARGET_VERSION): Remove.
7245 * config/s390/linux.h (TARGET_VERSION): Remove.
7246 * config/s390/s390.h (TARGET_VERSION): Remove.
7247 * config/s390/tpf.h (TARGET_VERSION): Remove.
7248 * config/score/score.h (TARGET_VERSION): Remove.
7249 * config/sh/linux.h (TARGET_VERSION): Remove.
7250 * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN,
7251 TARGET_VERSION_CPU, TARGET_VERSION): Remove.
7252 * config/sh/sh.h (TARGET_VERSION): Remove.
7253 * config/sh/sh64.h (TARGET_VERSION): Remove.
7254 * config/sh/superh.h (TARGET_VERSION): Remove.
7255 * config/sh/vxworks.h (TARGET_VERSION): Remove.
7256 * config/sparc/freebsd.h (TARGET_VERSION): Remove.
7257 * config/sparc/linux.h (TARGET_VERSION): Remove.
7258 * config/sparc/linux64.h (TARGET_VERSION): Remove.
7259 * config/sparc/netbsd-elf.h (TARGET_VERSION, TARGET_NAME64,
7260 TARGET_NAME32, TARGET_NAME): Remove.
7261 * config/sparc/openbsd64.h (TARGET_VERSION): Remove.
7262 * config/sparc/sp-elf.h (TARGET_VERSION): Remove.
7263 * config/sparc/sp64-elf.h (TARGET_VERSION): Remove.
7264 * config/sparc/sysv4.h (TARGET_VERSION): Remove.
7265 * config/sparc/vxworks.h (TARGET_VERSION): Remove.
7266 * config/spu/spu.h (TARGET_VERSION): Remove.
7267 * config/stormy16/stormy16.h (TARGET_VERSION): Remove.
7268 * config/v850/v850.h (TARGET_VERSION): Remove.
7269 * config/vax/linux.h (TARGET_VERSION): Remove.
7270 * config/vax/vax.h (TARGET_NAME, TARGET_VERSION): Remove.
7271 * config/xtensa/elf.h (TARGET_VERSION): Remove.
7272 * config/xtensa/linux.h (TARGET_VERSION): Remove.
7273
ace31bca
EB
72742011-03-31 Eric Botcazou <ebotcazou@adacore.com>
7275
7276 PR target/48142
7277 * config/i386/i386.c (ix86_adjust_stack_and_probe): Differentiate
7278 frame-related from frame-unrelated adjustments to the stack pointer.
7279
76f9db36
JJ
72802011-03-31 Jakub Jelinek <jakub@redhat.com>
7281
7282 * common.opt (fdebug-types-section): Move earlier.
7283 * doc/invoke.texi: Fix up -fno-debug-types-section documentation.
7284
b7826465
AT
72852011-03-31 Andreas Tobler <andreast@fgznet.ch>
7286
7287 * config/rs6000/rs6000.c (rs6000_handle_option): Remove unused isel
7288 var.
7289
1290e54c
NF
72902011-03-30 Nathan Froyd <froydnj@codesourcery.com>
7291
7292 * tree.h (CASE_CHAIN): Define.
7293 * tree-cfg.c (edge_to_cases_cleanup, get_cases_for_edge): Use it.
7294 (gimple_redirect_edge_and_branch): Likewise.
7295
bddc98e1
VM
72962011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7297
7298 PR middle-end/48367
7299 * ira-costs.c (find_costs_and_classes): Fix a typo in i_mem_cost
7300 calculation.
7301
c865e437
JL
73022011-03-30 Jeff Law <law@redhat.com>
7303
b3750213 7304 * PR bootstrap/48371
c865e437
JL
7305 * reload1.c (reload): Fix botch in last change.
7306
7307 * reload.h (struct reload): Fix typo introduced in last change.
7308
2cdf9574
JM
73092011-03-30 Joseph Myers <joseph@codesourcery.com>
7310
7311 * config/arm/arm.opt (mhard-float, msoft-float): Mark
7312 Undocumented. Remove help text.
7313 * doc/invoke.texi (ARM Options): Don't document -msoft-float and
7314 -mhard-float.
7315
666a21a2
JM
73162011-03-30 Joseph Myers <joseph@codesourcery.com>
7317
7318 * doc/options.texi (NegativeAlias): Document.
7319 (Alias): Mention NegativeAlias.
7320 * opt-functions.awk: Handle NegativeAlias.
e9c18386 7321 * optc-gen.awk: Disallow NegativeAlias with multiple Alias arguments.
666a21a2
JM
7322 * opts-common.c (decode_cmdline_option): Handle CL_NEGATIVE_ALIAS.
7323 * opts.h (CL_NEGATIVE_ALIAS): Define.
7324 * config/rs6000/rs6000.c (rs6000_parse_yes_no_option): Remove.
7325 (rs6000_handle_option): Don't handle OPT_mvrsave_, OPT_misel_ and
7326 OPT_mspe_.
7327 * config/rs6000/rs6000.opt (mvrsave=, misel=, mspe=): Replace with
7328 Alias entries.
7329 * config/rs6000/t-spe (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
7330 mno-spe and mno-isel instead of mspe=no and -misel=no.
7331
0fa4e351
MW
73322011-03-29 Mark Wielaard <mjw@redhat.com>
7333
7334 * common.opt (fdebug-types-section): New flag.
7335 * doc/invoke.texi: Document new -fno-debug-types-section flag.
7336 * dwarf2out.c (use_debug_types): New define.
7337 (struct die_struct): Mark die_id with GTY desc use_debug_types.
7338 (print_die): Guard output of type unit signatures using
7339 use_debug_types.
7340 (build_abbrev_table): Replace assert of dwarf_version >= 4
7341 with assert on use_debug_types.
7342 (size_of_die): Likewise.
7343 (unmark_dies): Likewise.
7344 (value_format): Decide AT_ref_external form on use_debug_types.
7345 (output_die): Replace dwarf_version version check guard with
7346 use_debug_types where appropriate.
7347 (modified_type_die): Likewise.
7348 (gen_reference_type_die): Likewise.
7349 (dwarf2out_start_source_file): Likewise.
7350 (dwarf2out_end_source_file): Likewise.
7351 (prune_unused_types_walk_attribs): Likewise.
7352 (dwarf2out_finish): Likewise.
7353
4648deb4
VM
73542011-03-30 Vladimir Makarov <vmakarov@redhat.com>
7355
7356 * ira-color.c (ira_assign_hard_reg): Use only one variable 'mode'.
7357
4f431835
RS
73582011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7359
7360 PR rtl-optimization/48332
7361 * optabs.c (expand_binop_directly): Set xmodeN to the target-mandated
7362 mode of input operand N and modeN to its actual mode.
7363
f2034d06
JL
73642011-03-30 Jeff Law <law@redhat.com>
7365
7366 * reload.h (reg_equiv_constant): Move into new structure reg_equivs,
7367 define accessor macro.
7368 (reg_equiv_invariant, reg_equiv_memory_loc): Likewise.
7369 (reg_equiv_address, reg_equiv_mem, reg_equiv_alt_mem_list): Likewise.
7370 (reg_equiv_init): Likewise.
7371 (reg_equivs_size): New variable.
7372 (reg_equiv_init_size): Remove.
7373 (allocate_initial_values): Move prototype to here from....
7374 * integrate.h (allocate_initial_values): Remove prototype.
7375 * integrate.c: Include reload.h.
7376 (allocate_initial_values): Corresponding changes.
7377 * ira.c (find_reg_equiv_invariant_cost): Corresponding changes.
7378 (fix_reg_equiv_init, no_equiv): Corresponding changes.
7379 (update_equiv_regs): Corresponding changes.
7380 (ira): Corresponding changes.
7381 * reload.c (push_reg_equiv_alt_mem): Corresponding changes.
7382 (push_secondary_reload): Corresponding changes.
7383 (push_reload, find_reloads, find_reloads_toplev): Corresponding changes.
7384 (make_memloc, find_reloads_address): Corresponding changes.
7385 (subst_reg_equivs, subst_indexed_address): Corresponding changes.
7386 (find_reloads_address_1): Corresponding changes.
7387 (find_reloads_subreg_address, subst_reloads): Corresponding changes.
7388 (refers_to_regno_for_reload_p): Corresponding changes.
7389 (reg_overlap_mentioned_for_reload_p): Corresponding changes.
7390 (refers_to_mem_for_reload_p, find_equiv_reg): Corresponding changes.
7391 * reload1.c: Include ggc.h.
7392 (grow_reg_equivs): New function.
7393 (replace_pseudos_in, reload): Corresponding changes.
7394 (calculate_needs_all_insns, alter_regs): Corresponding changes.
7395 (eliminate_regs_1, elimination_effects): Corresponding changes.
7396 (emit_input_reload_insns, emit_output_reload_insns): Likewise.
7397 (delete_output_reload): Likewise.
7398 * caller-save.c (mark_referenced_regs): Corresponding changes.
7399 * alpha/alpha.c (resolve_reload_operand): Corresponding changes.
7400 * frv/predicates.md (frv_load_operand): Corresponding changes.
7401 * microblaze/microblaze.c (double_memory_operand): Corresponding
7402 changes.
7403 * avr/avr.h (LEGITIMIZE_RELOAD_ADDRESS): Corresponding changes.
7404 * xtensa/xtensa.c (fixup_subreg_mem): Corresponding changes.
e9c18386 7405 * mn10300/mn10300.c (mn10300_secondary_reload): Corresponding changes.
f2034d06
JL
7406 * m68k/m68k.c (emit_move_sequence): Corresponding changes.
7407 * arm/arm.c (arm_reload_in_hi, arm_reload_out_hi): Corresponding
7408 changes.
7409 * pa/pa.c (emit_move_sequence): Corresponding changes.
7410 * vax/vax.c (nonindexed_address_p): Corresponding changes.
7411
159b81b0
RS
74122011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7413
7414 PR target/47551
7415 * config/arm/arm.c (coproc_secondary_reload_class): Handle
7416 structure modes. Don't check neon_vector_mem_operand for
7417 vector or structure modes.
7418
a6217191
RS
74192011-03-30 Richard Sandiford <richard.sandiford@linaro.org>
7420 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
7421
7422 PR target/43590
7423 * config/arm/neon.md (neon_vld3qa<mode>, neon_vld4qa<mode>): Remove
7424 operand 1 and reshuffle the operands to match.
7425 (neon_vld3<mode>, neon_vld4<mode>): Update accordingly.
7426
bd837408
CS
74272011-03-30 Christian Schüler <cschueler@gmx.de>
7428
6955d771 7429 PR driver/48208
bd837408 7430 * config/c.opt (F): Added 'Driver' to -F option.
e9c18386 7431
6955d771 7432 PR driver/48260
bd837408
CS
7433 * config/darwin-driver.c (darwin_driver_init): Add '-arch' to
7434 handler function.
7435 * config/darwin.opt: Added '-arch' option.
7436
e9c0470a
NC
74372011-03-30 Nick Clifton <nickc@redhat.com>
7438
7439 * config/rx/rx.md: Add peepholes and patterns to combine
7440 extending loads and simple arithmetic instructions.
7441 * config/rx/rx.h (ADJUST_INSN_LENGTH): Define.
e9c18386
UB
7442 * config/rx/rx-protos.h (rx_adjust_insn_length): Prototype.
7443 * config/rx/rx.c (rx_is_legitimate_address): Allow QI and HI
e9c0470a 7444 modes to use pre-decrement and post-increment addressing.
e9c18386 7445 (rx_is_restricted_memory_address): Add range checking of REG+INT
e9c0470a 7446 addresses.
e9c18386
UB
7447 (rx_print_operand): Add support for %Q. Fix handling of %Q.
7448 (rx_memory_move_cost): Adjust cost of stores.
7449 (rx_adjust_insn_length): New function.
e9c0470a 7450
8a87e7ab
JJ
74512011-03-30 Jakub Jelinek <jakub@redhat.com>
7452
7453 PR c/48305
7454 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
7455 arg10/arg11 in (X ^ Y) == (Z ^ W) are always fold converted to
7456 matching arg00/arg01 types.
7457
12486e03
EB
74582011-03-30 Eric Botcazou <ebotcazou@adacore.com>
7459
7460 * cfglayout.c (insn_locators_alloc): Initialize curr_location and
7461 last_location to UNKNOWN_LOCATION.
7462
0b99eef6
L
74632011-03-30 H.J. Lu <hongjiu.lu@intel.com>
7464
7465 PR target/48349
7466 * config/i386/i386.h (REG_CLASS_CONTENTS): Fix a typo in
7467 FLOAT_SSE_REGS.
7468
023592aa
JM
74692011-03-30 Joseph Myers <joseph@codesourcery.com>
7470 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7471
7472 PR bootstrap/48337
7473 * config/sparc/sparc.opt (sparc_cpu_and_features): Add
7474 Init(PROCESSOR_V7).
7475 (sparc_cpu): Likewise.
7476 * config/sparc/sparc.c (sparc_option_override): Replace 0 by
7477 PROCESSOR_V7.
7478
ad3b266b
VM
74792011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7480
7481 PR target/48336
7482 PR middle-end/48342
7483 PR rtl-optimization/48345
7484 * ira-color.c (setup_conflict_profitable_regs): Exclude prohibited
7485 hard regs for given mode from profitable regs when doing secondary
7486 allocation.
7487
633c9126
JL
74882011-03-29 Jeff Law <law@redhat.com>
7489
7490 PR bootstrap/48327
7491 * tree-ssa-threadupdate.c (struct redirection_data): Remove
7492 do_not_duplicate field.
7493 (lookup_redirection_data): Corresponding changes.
7494 (create_duplicates): Always create a template block.
7495 (redirect_edges): Remove code which reused the original block
7496 when it was going to become unreachable code.
7497 (thread_block): Don't set do_not_duplicate field.
7498
eb50f63a
JM
74992011-03-29 Joseph Myers <joseph@codesourcery.com>
7500
7501 * lto-opts.c (register_user_option_p, lto_register_user_option):
7502 Make type argument unsigned.
7503 * lto-streamer.h (lto_register_user_option): Make type argument
7504 unsigned.
7505 * opth-gen.awk: Make CL_* macros unsigned.
7506 * opts-common.c (find_opt): Make lang_mask argument unsigned.
7507 * opts.h (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER,
7508 CL_TARGET, CL_COMMON, CL_SEPARATE_NARGS_MASK, CL_SEPARATE_ALIAS,
7509 CL_NO_DRIVER_ARG, CL_REJECT_DRIVER, CL_SAVE, CL_DISABLED,
7510 CL_REPORT, CL_JOINED, CL_SEPARATE, CL_REJECT_NEGATIVE,
7511 CL_MISSING_OK, CL_UINTEGER, CL_UNDOCUMENTED): Make unsigned.
7512 (find_opt): Make lang_mask argument unsigned.
7513
76763a6d
VM
75142011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7515
7516 PR rtl-optimization/48331
7517 PR rtl-optimization/48334
7518 * ira-color.c (color_allocnos): Call setup_profitable_hard_regs
7519 for any used algorithm.
7520
5c82436e
VM
75212011-03-29 Vladimir Makarov <vmakarov@redhat.com>
7522
7523 * ira-conflicts.c (build_object_conflicts): Add unused attribute
7524 to parent_max.
7525
7a81008b
UB
75262011-03-29 Uros Bizjak <ubizjak@gmail.com>
7527
7528 * config/alpha/alpha.c (alpha_sr_alias_set): Don't define.
7529 (alpha_option_override): Don't set alpha_sr_alias_set.
7530 (emit_frame_store_1): Use gen_frame_mem rather than calling
7531 set_mem_alias_set.
7532 (alpha_expand_epilogue): Ditto.
7533
86c8d1f6
IR
75342011-03-29 Ira Rosen <ira.rosen@linaro.org>
7535
7536 PR tree-optimization/48290
7537 * tree-vect-loop.c (vect_analyze_loop_operations): In outer loop
7538 vectorization, check that relevant phis in the basic block after
7539 the inner loop are really inner loop's exit phis.
7540
0d12220f
RS
75412011-03-29 Richard Sandiford <richard.sandiford@linaro.org>
7542
e8cf17e7 7543 PR debug/48190
0d12220f
RS
7544 * dwarf2out.c (dw_loc_list_node): Add resolved_addr and replaced.
7545 (cached_dw_loc_list_def): New structure.
7546 (cached_dw_loc_list): New typedef.
7547 (cached_dw_loc_list_table): New variable.
7548 (cached_dw_loc_list_table_hash): New function.
7549 (cached_dw_loc_list_table_eq): Likewise.
7550 (add_location_or_const_value_attribute): Take a bool cache_p.
7551 Cache the list when the parameter is true.
7552 (gen_formal_parameter_die): Update caller.
7553 (gen_variable_die): Likewise.
7554 (dwarf2out_finish): Likewise.
7555 (dwarf2out_abstract_function): Nullify cached_dw_loc_list_table
7556 while generating debug info for the decl.
7557 (dwarf2out_function_decl): Clear cached_dw_loc_list_table.
7558 (dwarf2out_init): Initialize cached_dw_loc_list_table.
7559 (resolve_addr): Cache the result of resolving a chain of
7560 location lists.
7561
1756cb66
VM
75622011-03-28 Vladimir Makarov <vmakarov@redhat.com>
7563
7564 * ira-color.c (update_left_conflict_sizes_p): Don't assume that
7565 conflict object hard regset nodes have intersecting hard reg sets.
7a81008b 7566
1756cb66
VM
7567 * regmove.c (regmove_optimize): Move ira_set_pseudo_classes call
7568 after regstat_init_n_sets_and_refs.
7569
7570 * ira.c: Add more comments at the top.
7571 (setup_stack_reg_pressure_class, setup_pressure_classes):
7572 Add comments how we compute the register pressure classes.
7573 (setup_allocno_and_important_classes): Add more comments.
7574 (setup_class_translate_array, reorder_important_classes)
7575 (setup_reg_class_relations): Add comments.
7576
7577 * ira-emit.c: Add 2011 to the Copyright line. Add comments at the
7578 start of the file.
7579
7580 * ira-color.c: Add 2011 to the Copyright line.
7581 (assign_hard_reg): Add more comments.
7582 (improve_allocation): Ditto.
7583
7584 * ira-costs.c: Add 2011 to the Copyright line.
7585 (setup_cost_classes, setup_regno_cost_classes_by_aclass): Add more
7586 comments.
7587 (setup_regno_cost_classes_by_mode): Ditto.
7588
7589 Initial patches from ira-improv branch:
7590
7591 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7592
f60c2554 7593 * ira-build.c (ira_create_object): Remove initialization of
1756cb66
VM
7594 OBJECT_PROFITABLE_HARD_REGS. Initialize OBJECT_ADD_DATA.
7595 (ira_create_allocno): Remove initialization of
7596 ALLOCNO_MEM_OPTIMIZED_DEST, ALLOCNO_MEM_OPTIMIZED_DEST_P,
7597 ALLOCNO_SOMEWHERE_RENAMED_P, ALLOCNO_CHILD_RENAMED_P,
7598 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7599 ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO,
7600 ALLOCNO_FIRST_COALESCED_ALLOCNO, ALLOCNO_NEXT_COALESCED_ALLOCNO.
7601 Initialize ALLOCNO_ADD_DATA.
7602 (copy_info_to_removed_store_destinations): Use ALLOCNO_EMIT_DATA
7603 and allocno_emit_reg instead of ALLOCNO_MEM_OPTIMIZED_DEST_P and
7604 ALLOCNO_REG.
7605 (ira_flattening): Ditto. Use ALLOCNO_EMIT_DATA instead of
7606 ALLOCNO_MEM_OPTIMIZED_DEST and ALLOCNO_SOMEWHERE_RENAMED_P.
7607
7608 * ira.c (ira_reallocate): Remove.
7609 (setup_pressure_classes): Call
7610 ira_init_register_move_cost_if_necessary. Use
7611 ira_register_move_cost instead of ira_get_register_move_cost.
7612 (setup_allocno_assignment_flags): Use ALLOCNO_EMIT_DATA.
7613 (ira): Call ira_initiate_emit_data and ira_finish_emit_data.
7614
7615 * ira-color.c: Use ALLOCNO_COLOR_DATA instead of
7616 ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P, ALLOCNO_COLORABLE_P,
7617 ALLOCNO_AVAILABLE_REGS_NUM, ALLOCNO_NEXT_BUCKET_ALLOCNO,
7618 ALLOCNO_PREV_BUCKET_ALLOCNO. ALLOCNO_TEMP. Use OBJECT_COLOR_DATA
7619 instead of OBJECT_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE,
7620 OBJECT_HARD_REGS_SUBNODES_START, OBJECT_HARD_REGS_SUBNODES_NUM.
7621 Fix formatting.
7a81008b 7622 (object_hard_regs_t, object_hard_regs_node_t): Move from ira-int.h.
1756cb66
VM
7623 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
7624 (struct allocno_color_data): New.
7625 (allocno_color_data_t): New typedef.
7626 (allocno_color_data): New definition.
7627 (ALLOCNO_COLOR_DATA): New macro.
7628 (struct object_color_data): New.
7629 (object_color_data_t): New typedef.
7630 (object_color_data): New definition.
7631 (OBJECT_COLOR_DATA): New macro.
7632 (update_copy_costs, calculate_allocno_spill_cost): Call
7633 ira_init_register_move_cost_if_necessary. Use
7634 ira_register_move_cost instead of ira_get_register_move_cost.
7635 (move_spill_restore, update_curr_costs): Ditto.
7636 (allocno_spill_priority): Make it inline.
7a81008b 7637 (color_pass): Allocate and free allocno_color_dat and object_color_data.
1756cb66
VM
7638 (struct coalesce_data, coalesce_data_t): New.
7639 (allocno_coalesce_data): New definition.
7640 (ALLOCNO_COALESCE_DATA): New macro.
7641 (merge_allocnos, coalesced_allocno_conflict_p): Use
7642 ALLOCNO_COALESCED_DATA instead of ALLOCNO_FIRST_COALESCED_ALLOCNO,
7643 ALLOCNO_NEXT_COALESCED_ALLOCNO, ALLOCNO_TEMP.
7644 (coalesce_allocnos): Ditto.
7645 (setup_coalesced_allocno_costs_and_nums): Ditto.
7646 (collect_spilled_coalesced_allocnos): Ditto.
7647 (slot_coalesced_allocno_live_ranges_intersect_p): Ditto.
7648 (setup_slot_coalesced_allocno_live_ranges): Ditto.
7649 (coalesce_spill_slots): Ditto.
7650 (ira_sort_regnos_for_alter_reg): Ditto. Allocate, initialize and
7651 free allocno_coalesce_data.
7652
7653 * ira-conflicts.c: Fix formatting.
7654 (process_regs_for_copy): Call
7655 ira_init_register_move_cost_if_necessary. Use
7656 ira_register_move_cost instead of ira_get_register_move_cost.
7657 (build_object_conflicts): Optimize.
7658
7659 * ira-costs.c (record_reg_classes): Optimize. Call
7660 ira_init_register_move_cost_if_necessary. Use
7661 ira_register_move_cost, ira_may_move_in_cost, and
7662 ira_may_move_out_cost instead of ira_get_register_move_cost and
7663 ira_get_may_move_cost.
7664 (record_address_regs): Ditto.
7665 (scan_one_insn): Optimize.
7666 (find_costs_and_classes): Optimize.
7667 (process_bb_node_for_hard_reg_moves): Call
7668 ira_init_register_move_cost_if_necessary. Use
7669 ira_register_move_cost instead of ira_get_register_move_cost.
7670
7671 * ira-emit.c: Use allocno_emit_reg, ALLOCNO_EMIT_DATA instead of
7672 ALLOCNO_REG, ALLOCNO_CHILD_RENAMED_P, ALLOCNO_MEM_OPTIMIZED_DEST,
7673 ALLOCNO_MEM_OPTIMIZED_DEST_P, and ALLOCNO_SOMEWHERE_RENAMED_P.
7674 (ira_allocno_emit_data, void_p, new_allocno_emit_data_vec): New
7675 definitions.
7676 (ira_initiate_emit_data, ira_finish_emit_data)
7677 (create_new_allocno): New functions.
7a81008b 7678 (modify_move_list): Call create_new_alloc instead of ira_create_allocno.
1756cb66
VM
7679 (emit_move_list): Call ira_init_register_move_cost_if_necessary.
7680 Use ira_register_move_cost instead of ira_get_register_move_cost.
7681
7682 * ira-int.h: Fix some comments.
7a81008b
UB
7683 (object_hard_regs_t, object_hard_regs_node_t): Move to ira-color.c.
7684 (struct object_hard_regs, struct object_hard_regs_node): Ditto.
1756cb66
VM
7685 (struct ira_object): Remove profitable_hard_regs, hard_regs_node,
7686 hard_regs_subnodes_start, hard_regs_subnodes_num. Add new member
7687 add_data.
7688 (struct ira_allocno): Make mode and aclass a bitfield. Move other
7689 bitfield after mode. Make hard_regno a short int. Make
7690 hard_regno short. Remove first_coalesced_allocno and
7691 next_coalesced_allocno. Move mem_optimized_dest_p,
7692 somewhere_renamed_p, child_renamed_p, reg, and mem_optimized_dest
7693 into struct ira_emit_data. Remove in_graph_p, may_be_spilled_p,
7694 available_regs_num, next_bucket_allocno, prev_bucket_allocno,
7695 temp, colorable_p. Add new member add_data.
7696 (ALLOCNO_IN_GRAPH_P, ALLOCNO_MAY_BE_SPILLED_P): Remove.
7697 (ALLOCNO_COLORABLE_P, ALLOCNO_AVAILABLE_REGS_NUM): Remove.
7698 (ALLOCNO_NEXT_BUCKET_ALLOCNO, ALLOCNO_PREV_BUCKET_ALLOCNO): Remove.
7699 (ALLOCNO_TEMP, ALLOCNO_FIRST_COALESCED_ALLOCNO): Remove.
7700 (ALLOCNO_NEXT_COALESCED_ALLOCNO): Remove.
7701 (ALLOCNO_ADD_DATA): New macro.
7702 (ira_emit_data_t): New typedef.
7703 (struct ira_emit_data): New. Move mem_optimized_dest_p,
7704 somewhere_renamed_p, child_renamed_p, reg, mem_optimized_dest
7705 from struct ira_allocno.
7706 (ALLOCNO_EMIT_DATA): New macro.
7707 (ira_allocno_emit_data, allocno_emit_reg): New.
7708 (ALLOCNO_PROFITABLE_HARD_REGS, OBJECT_HARD_REGS_NODE): Remove.
7a81008b 7709 (OBJECT_HARD_REGS_SUBNODES_STAR, OBJECT_HARD_REGS_SUBNODES_NUM): Remove.
1756cb66
VM
7710 (OBJECT_ADD_DATA): New macro.
7711 (ira_reallocate): Remove.
7712 (ira_initiate_emit_data, ira_finish_emit_data): New.
7713 (ira_get_register_move_cost, ira_get_may_move_cost): Remove.
7714 (ira_init_register_move_cost_if_necessary): New.
7715 (ira_object_conflict_iter_next): Merge into
7716 ira_object_conflict_iter_cond.
7a81008b 7717 (FOR_EACH_OBJECT_CONFLICT): Don't use ira_object_conflict_iter_next.
1756cb66 7718
f60c2554 7719 * ira-live.c (process_single_reg_class_operands): Call
1756cb66
VM
7720 ira_init_register_move_cost_if_necessary. Use
7721 ira_register_move_cost instead of ira_get_register_move_cost.
7722
7723 2010-08-13 Vladimir Makarov <vmakarov@redhat.com>
7724
7725 * ira-int.h (struct target_ira_int): Remove x_cost_classes.
7726
7727 * ira-costs.c: Fix formatting.
7728 (cost_classes, cost_classes_num): Remove.
7729 (struct cost_classes, cost_classes_t, const_cost_classes_t): New.
7730 (regno_cost_classes, cost_classes_hash, cost_classes_eq): New.
7731 (cost_classes_del, cost_classes_htab): New.
7732 (cost_classes_aclass_cache, cost_classes_mode_cache): New.
7733 (initiate_regno_cost_classes, setup_cost_classes): New.
7734 (setup_regno_cost_classes_by_aclass): New.
7a81008b 7735 (setup_regno_cost_classes_by_mode, finish_regno_cost_classes): New.
1756cb66
VM
7736 (record_reg_classes): Use regno_cost_classes instead of
7737 cost_classes. Move checking opposite operand up.
7738 (record_address_regs): Use regno_cost_classes
7739 instead of cost_classes.
7740 (scan_one_insn): Ditto. Use always general register.
7741 (print_allocno_costs): Use regno_cost_classes instead of
7742 cost_classes.
7743 (print_pseudo_costs): Ditto. Use Reg_N_REFS.
7744 (find_costs_and_classes): Set up cost classes for each registers.
7745 Use also their mode for this. Use regno_cost_classes instead of
7746 cost_classes.
7747 (setup_allocno_class_and_costs): Use regno_cost_classes instead of
7748 cost_classes.
7749 (free_ira_costs, ira_init_costs): Don't use cost_classes.
7750 (ira_costs, ira_set_pseudo_classes): Call
7751 initiate_regno_cost_classes and finish_regno_cost_classes.
7752
7753 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
7754
7755 * target-def.h (TARGET_IRA_COVER_CLASSES): Remove.
7756
7757 * target.def (ira_cover_classes): Remove.
7758
7a81008b 7759 * doc/tm.texi: Remove TARGET_IRA_COVER_CLASSES and IRA_COVER_CLASSES.
1756cb66
VM
7760
7761 * doc/tm.texi.in: Ditto.
7762
7763 * ira-conflicts.c: Remove mentioning cover classes from the file.
7764 Use ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Use
7a81008b 7765 ALLOCNO_COVER_CLASS_COST instead of ALLOCNO_CLASS_COST. Fix formatting.
1756cb66
VM
7766
7767 * targhooks.c (default_ira_cover_classes): Remove.
7768
7769 * targhooks.h (default_ira_cover_classes): Ditto.
7770
7771 * haifa-sched.c: Remove mentioning cover classes from the file.
7772 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7773 ira_pressure_classes and ira_pressure_classes_num instead of
7774 ira_reg_class_cover_size and ira_reg_class_cover. Use
7775 sched_regno_pressure_class instead of sched_regno_cover_class.
7776 (mark_regno_birth_or_death, setup_insn_reg_pressure_info): Use
7777 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7778
7779 * ira-int.h: Add 2010 to Copyright. Remove mentioning cover
7780 classes from the file.
7781 (object_hard_regs_t, object_hard_regs_node_t): New typedefs.
7782 (struct object_hard_regs, struct object_hard_regs_node): New.
7783 (struct ira_object): New members profitable_hard_regs,
7784 hard_regs_node, hard_regs_subnodes_start, hard_regs_subnodes_num.
7785 (struct ira_allocno): Rename cover_class to aclass. Rename
7786 cover_class_cost and updated_cover_class_cost to class_cost and
7787 updated_class_cost. Remove splay_removed_p and
7788 left_conflict_size. Add new members colorable_p.
7789 (ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICTS_SIZE): Remove.
7790 (ALLOCNO_COLORABLE_P): New macro.
7791 (ALLOCNO_COVER_CLASS): Rename to ALLOCNO_CLASS.
7792 (ALLOCNO_COVER_CLASS_COST, ALLOCNO_UPDATED_COVER_CLASS_COST):
7793 Rename to ALLOCNO_CLASS_COST and ALLOCNO_UPDATED__CLASS_COST.
7794 (OBJECT_...): Rename parameter C to O.
7795 (OBJECT_PROFITABLE_HARD_REGS): New macro.
7796 (OBJECT_HARD_REGS_NODE, OBJECT_HARD_REGS_SUBNODES_START)
7797 (OBJECT_HARD_REGS_SUBNODES_NUM): New macros.
7798 (struct target_ira_int): New members x_ira_max_memory_move_cost,
7799 x_ira_max_register_move_cost, x_ira_max_may_move_in_cost,
7800 x_ira_max_may_move_out_cost, x_ira_reg_allocno_class_p,
7801 x_ira_reg_pressure_class_p, x_ira_important_class_nums,
7802 x_ira_reg_class_superunion. Rename x_prohibited_class_mode_reg to
7803 x_ira_prohibited_class_mode_reg. Rename x_ira_reg_class_union to
7804 x_ira_reg_class_subunion.
7805 (ira_max_memory_move_cost, ira_max_register_move_cost)
7806 (ira_max_may_move_in_cost, ira_max_may_move_out_cost)
7807 (ira_reg_allocno_class_p, ira_reg_pressure_class_p)
7808 (ira_important_class_nums, ira_reg_class_superunion): New macros.
7a81008b 7809 (prohibited_class_mode_regs): Rename to ira_prohibited_class_mode_regs.
1756cb66
VM
7810 (ira_reg_class_union): Rename to ira_reg_class_subunion.
7811 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7812 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7813 (ira_tune_allocno_costs_and_cover_classes): Rename to
7814 ira_tune_allocno_costs.
7815 (ira_debug_hard_regs_forest): New.
7816 (ira_object_conflict_iter_init, ira_object_conflict_iter_cond)
7817 (ira_object_conflict_iter_next): Fix comments.
7a81008b 7818 (ira_hard_reg_set_intersection_p, hard_reg_set_size): New functions.
1756cb66
VM
7819 (ira_allocate_and_set_costs, ira_allocate_and_copy_costs): Rename
7820 cover_class to aclass.
7821 (ira_allocate_and_accumulate_costs): Ditto.
7822 (ira_allocate_and_set_or_copy_costs): Ditto.
7823
7824 * opts.c (decode_options): Remove ira_cover_class check.
7825
7826 * ira-color.c: Remove mentioning cover classes from the file. Use
7827 ALLOCNO_CLASS, ALLOCNO_CLASS_COST, and ALLOCNO_UPDATED_CLASS_COST
7828 instead of ALLOCNO_COVER_CLASS, ALLOCNO_COVER_CLASS_COST, and
7829 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7830 (splay-tree.h): Remove include.
7831 (allocno_coalesced_p, processed_coalesced_allocno_bitmap): Move
7832 before copy_freq_compare_func.
7833 (allocnos_for_spilling, removed_splay_allocno_vec): Remove.
7834 (object_hard_regs_vec, object_hard_regs_htab, node_check_tick):
7835 New definitions.
7836 (hard_regs_roots, hard_regs_node_vec): Ditto.
7837 (object_hard_regs_hash, object_hard_regs_eq, find_hard_regs): Ditto.
7838 (insert_hard_regs, init_object_hard_regs, add_object_hard_regs): Ditto.
7839 (finish_object_hard_regs, object_hard_regs_compare): Ditto.
7840 (create_new_object_hard_regs_node): Ditto.
7841 (add_new_object_hard_regs_node_to_forest): Ditto.
7a81008b 7842 (add_object_hard_regs_to_forest, collect_object_hard_regs_cover): Ditto.
1756cb66
VM
7843 (setup_object_hard_regs_nodes_parent, first_common_ancestor_node):
7844 Ditto.
7845 (print_hard_reg_set, print_hard_regs_subforest): Ditto.
7846 (print_hard_regs_forest, ira_debug_hard_regs_forest): Ditto.
7847 (remove_unused_object_hard_regs_nodes): Ditto.
7848 (enumerate_object_hard_regs_nodes): Ditto.
7849 (object_hard_regs_nodes_num, object_hard_regs_nodes): Ditto.
7850 (object_hard_regs_subnode_t): Ditto.
7851 (struct object_hard_regs_subnode): Ditto.
7852 (object_hard_regs_subnodes, object_hard_regs_subnode_index): Ditto.
7853 (setup_object_hard_regs_subnode_index): Ditto.
7854 (get_object_hard_regs_subnodes_num): Ditto.
7855 (form_object_hard_regs_nodes_forest): Ditto.
7856 (finish_object_hard_regs_nodes_tree): Ditto.
7857 (finish_object_hard_regs_nodes_forest): Ditto.
7858 (allocnos_have_intersected_live_ranges_p): Rename to
7a81008b 7859 allocnos_conflict_by_live_ranges_p. Move before copy_freq_compare_func.
1756cb66
VM
7860 (pseudos_have_intersected_live_ranges_p): Rename to
7861 conflict_by_live_ranges_p. Move before copy_freq_compare_func.
7862 (setup_left_conflict_sizes_p, update_left_conflict_sizes_p): Ditto.
7863 (empty_profitable_hard_regs, setup_profitable_hard_regs): Ditto.
7864 (update_copy_costs): Remove assert. Skip cost update if the hard
7865 reg does not belong the class.
7866 (assign_hard_reg): Process only profitable hard regs.
7867 (uncolorable_allocnos_num): Make it scalar.
7868 (allocno_spill_priority): Use ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
7869 and ira_reg_class_max_nregs instead of ALLOCNO_LEFT_CONFLICTS_SIZE
7870 and ira_reg_class_max_nregs.
7871 (bucket_allocno_compare_func): Check frequency first.
7872 (sort_bucket): Add compare function as a parameter.
7873 (add_allocno_to_ordered_bucket): Assume no coalesced allocnos.
7874 (uncolorable_allocnos_splay_tree, USE_SPLAY_P): Remove.
7875 (push_allocno_to_stack): Rewrite for checking new allocno
7876 colorability.
7a81008b 7877 (remove_allocno_from_bucket_and_push): Print cost too. Remove assert.
1756cb66
VM
7878 (push_only_colorable): Pass new parameter to sort_bucket.
7879 (push_allocno_to_spill): Remove.
7880 (allocno_spill_priority_compare): Make it inline and rewrite.
7881 (splay_tree_allocate, splay_tree_free): Remove.
7882 (allocno_spill_sort_compare): New function.
7883 (push_allocnos_to_stack): Sort allocnos for spilling once. Don't
7884 build and use splay tree. Choose first allocno in uncolorable
7885 allocno bucket to spill. Remove setting spill cost.
7886 (all_conflicting_hard_regs): Remove.
7887 (setup_allocno_available_regs_num): Check only profitable hard
7888 regs. Print info about hard regs nodes.
7889 (setup_allocno_left_conflicts_size): Remove.
7890 (put_allocno_into_bucket): Don't call
7a81008b 7891 setup_allocno_left_conflicts_size. Use setup_left_conflict_sizes_p.
1756cb66
VM
7892 (improve_allocation): New.
7893 (color_allocnos): Call setup_profitable_hard_regs,
7894 form_object_hard_regs_nodes_forest, improve_allocation,
7895 finish_object_hard_regs_nodes_forest. Setup spill cost.
7896 (print_loop_title): Use pressure classes.
7897 (color_allocnso): Ditto.
7898 (do_coloring): Remove allocation and freeing splay_tree_node_pool
7899 and allocnos_for_spilling.
7900 (ira_sort_regnos_for_alter_reg): Don't setup members
7901 {first,next}_coalesced_allocno.
7902 (color): Remove allocating and freeing removed_splay_allocno_vec.
7903 (fast_allocation): Use ira_prohibited_class_mode_regs instead of
7904 prohibited_class_mode_regs.
7905
7906 * ira-lives.c: Remove mentioning cover classes from the file. Fix
7907 formatting.
7908 (update_allocno_pressure_excess_length): Use pressure classes.
7909 (inc_register_pressure, dec_register_pressure): Check for pressure
7910 class.
7911 (mark_pseudo_regno_live, mark_pseudo_regno_subword_live): Use
7912 pressure class. Use ira_reg_class_nregs instead of
7913 ira_reg_class_max_nregs.
7914 (mark_pseudo_regno_dead, mark_pseudo_regno_subword_dead): Ditto.
7915 (mark_hard_reg_live, mark_hard_reg_dead): Use pressure class.
7916 (single_reg_class): Use ira_reg_class_nregs instead of
7917 ira_reg_class_max_nregs.
7918 (process_bb_node_lives): Use pressure classes.
7919
7920 * ira-emit.c: Remove mentioning cover classes from the file. Use
7921 ALLOCNO_CLASS instead of ALLOCNO_COVER_CLASS. Fix formatting.
7922 (change_loop): Use pressure classes.
7923 (modify_move_list): Call ira_set_allocno_class instead of
7924 ira_set_allocno_cover_class.
7925
7926 * ira-build.c: Remove mentioning cover classes from the file. Use
7927 ALLOCNO_CLASS and ALLOCNO_CLASS_COST instead of
7928 ALLOCNO_COVER_CLASS and ALLOCNO_COVER_CLASS_COST. Use
7929 ALLOCNO_UPDATED_CLASS_COST instead of
7930 ALLOCNO_UPDATED_COVER_CLASS_COST. Fix formatting.
7931 (ira_create_object): Initiate OBJECT_PROFITABLE_HARD_REGS.
7932 (ira_create_allocno): Remove initialization of
7933 ALLOCNO_SPLAY_REMOVED_P, ALLOCNO_LEFT_CONFLICT_SIZE. Initialize
7934 ALLOCNO_COLORABLE_P.
7935 (ira_set_allocno_cover_class): Rename to ira_set_allocno_class.
7936 Update conflict regs for the objects.
7937 (create_cap_allocno): Remove assert. Don't propagate
7938 ALLOCNO_AVAILABLE_REGS_NUM.
7939 (ira_free_allocno_costs): New function.
7940 (finish_allocno): Change a part of code into call of
7941 ira_free_allocno_costs.
7942 (low_pressure_loop_node_p): Use pressure classes.
7943 (object_range_compare_func): Don't compare classes.
7944 (setup_min_max_conflict_allocno_ids): Ditto.
7945
7946 * loop-invariant.c: Remove mentioning cover classes from the file.
7947 Use ira_pressure_classes and ira_pressure_classes_num instead of
7948 ira_reg_class_cover_size and ira_reg_class_cover. Fix formatting.
7a81008b
UB
7949 (get_cover_class_and_nregs): Rename to get_cover_pressure_and_nregs.
7950 Use ira_reg_class_max_nregs instead of ira_reg_class_nregs.
7951 Use reg_allocno_class instead of reg_cover_class.
1756cb66
VM
7952 (get_inv_cost): Use instead ira_stack_reg_pressure_class of
7953 STACK_REG_COVER_CLASS.
7954 (get_regno_cover_class): Rename to get_regno_pressure_class.
7955 (move_loop_invariants): Initialize and finalize regstat.
7956
7957 * ira.c: Remove mentioning cover classes from the file. Add
7958 comments about coloring without cover classes. Use ALLOCNO_CLASS
7959 instead of ALLOCNO_COVER_CLASS. Fix formatting.
7960 (alloc_reg_class_subclasses, setup_reg_subclasses): Move it before
7961 setup_class_subset_and_memory_move_costs.
7962 (setup_stack_reg_pressure_class, setup_pressure_classes): New.
7963 (setup_cover_and_important_classes): Rename to
7964 setup_allocno_and_important_classes.
7965 (setup_class_translate_array): New.
7966 (setup_class_translate): Call it for allocno and pressure classes.
7967 (cover_class_order): Rename to allocno_class_order.
7968 (comp_reg_classes_func): Use ira_allocno_class_translate instead
7969 of ira_class_translate.
7970 (reorder_important_classes): Set up ira_important_class_nums.
7971 (setup_reg_class_relations): Set up ira_reg_class_superunion.
7972 (print_class_cover): Rename to print_classes. Add parameter.
7973 (ira_debug_class_cover): Rename to ira_debug_allocno_classes.
7974 Print pressure classes too.
7975 (find_reg_class_closure): Rename to find_reg_classes. Don't call
7976 setup_reg_subclasses.
7a81008b 7977 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
7978 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
7979 (setup_prohibited_class_mode_regs): Use
7a81008b 7980 ira_prohibited_class_mode_regs instead of prohibited_class_mode_regs.
1756cb66
VM
7981 (clarify_prohibited_class_mode_regs): New function.
7982 (ira_init_register_move_cost): Set up ira_max_register_move_cost,
7983 ira_max_may_move_in_cost, and ira_max_may_move_out_cost.
7984 (ira_init_once): Initialize them.
7985 (free_register_move_costs): Process them.
7986 (ira_init): Move calls of find_reg_classes and
7987 setup_hard_regno_aclass after setup_prohibited_class_mode_regs.
7988 Call clarify_prohibited_class_mode_regs.
7989 (ira_no_alloc_reg): Remove.
7990 (too_high_register_pressure_p): Use pressure classes.
7991
7992 * sched-deps.c: Remove mentioning cover classes from the file.
7993 Use ira_reg_pressure_cover instead of ira_reg_class_cover. Use
7994 ira_pressure_classes and ira_pressure_classes_num instead of
7995 ira_reg_class_cover_size and ira_reg_class_cover.
7996 (mark_insn_hard_regno_birth, mark_hard_regno_death): Use
7997 sched_regno_pressure_class instead of sched_regno_cover_class.
7998 (mark_insn_pseudo_birth, mark_pseudo_death): Ditto. Use
7999 ira_reg_class_max_nregs instead of ira_reg_class_nregs.
8000
8001 * ira.h: Add 2010 to Copyright.
8002 (ira_no_alloc_reg): Remove external.
8003 (struct target_ira): Rename x_ira_hard_regno_cover_class,
8004 x_ira_reg_class_cover_size, x_ira_reg_class_cover, and
8005 x_ira_class_translate to x_ira_hard_regno_allocno_class,
8006 x_ira_allocno_classes_num, x_ira_allocno_classes, and
8007 x_ira_allocno_class_translate. Add x_ira_pressure_classes_num,
8008 x_ira_pressure_classes, x_ira_pressure_class_translate, and
8009 x_ira_stack_reg_pressure_class. Rename x_ira_reg_class_nregs to
8010 x_ira_reg_class_max_nregs. Add x_ira_reg_class_min_nregs and
8011 x_ira_no_alloc_regs.
7a81008b 8012 (ira_hard_regno_cover_class): Rename to ira_hard_regno_allocno_class.
1756cb66
VM
8013 (ira_reg_class_cover_size, ira_reg_class_cover): Rename to
8014 ira_allocno_classes_num and ira_allocno_classes.
8015 (ira_class_translate): Rename to ira_allocno_class_translate.
8016 (ira_pressure_classes_num, ira_pressure_classes): New definitions.
8017 (ira_pressure_class_translate, ira_stack_reg_pressure_class): Ditto.
8018 (ira_reg_class_nregs): Rename to ira_reg_class_max_nregs.
8019 (ira_reg_class_min_nregs, ira_stack_reg_pressure_class): New
8020 (ira_no_alloc_regs): New.
8021
8022 * ira-costs.c: Add 2010 to Copyright. Remove mentioning cover
8023 classes from the file. Use ALLOCNO_CLASS instead of
8024 ALLOCNO_COVER_CLASS. Use ALLOCNO_CLASS_COST instead of
8025 ALLOCNO_COVER_CLASS_COST.
8026 (regno_cover_class): Rename to regno_aclass.
8027 (record_reg_classes): Use ira_reg_class_subunion instead of
8028 ira_reg_class_union.
8029 (record_address_regs): Check overflow.
8030 (scan_one_insn): Ditto.
7a81008b 8031 (print_allocno_costs): Print total mem cost fore regional allocation.
1756cb66
VM
8032 (print_pseudo_costs): Use REG_N_REFS.
8033 (find_costs_and_classes): Use classes intersected with them on the
8034 1st pass. Check overflow. Use ira_reg_class_subunion instead of
8035 ira_reg_class_union. Use ira_allocno_class_translate and
8036 regno_aclass instead of ira_class_translate and regno_cover_class.
8037 Modify code for finding regno_aclass. Setup preferred classes for
8038 the next pass.
8039 (setup_allocno_cover_class_and_costs): Rename to
8040 setup_allocno_class_and_costs. Use regno_aclass instead of
8041 regno_cover_class. Use ira_set_allocno_class instead of
8042 ira_set_allocno_cover_class.
8043 (init_costs, finish_costs): Use regno_aclass instead of
8044 regno_cover_class.
8045 (ira_costs): Use setup_allocno_class_and_costs instead of
8046 setup_allocno_cover_class_and_costs.
8047 (ira_tune_allocno_costs_and_cover_classes): Rename to
8048 ira_tune_allocno_costs. Check overflow. Skip conflict hard regs
8049 by processing objects. Use ira_reg_class_max_nregs instead of
8050 ira_reg_class_nregs.
8051
8052 * rtl.h (reg_cover_class): Rename to reg_allocno_class.
8053
8054 * sched-int.h: Remove mentioning cover classes from the file.
8055 (sched_regno_cover_class): Rename to sched_regno_pressure_class.
8056
8057 * reginfo.c: Add 2010 to Copyright. Remove mentioning cover
8058 classes from the file.
8059 (struct reg_pref): Rename coverclass into allocnoclass.
8060 (reg_cover_class): Rename to reg_allocno_class.
8061
7a81008b 8062 * Makefile.in (ira-color.o): Remove SPLAY_TREE_H from dependencies.
1756cb66
VM
8063
8064 * config/alpha/alpha.h (IRA_COVER_CLASSES): Remove.
8065
8066 * config/arm/arm.h (IRA_COVER_CLASSES): Ditto.
8067
8068 * config/avr/avr.h (IRA_COVER_CLASSES): Ditto.
8069
8070 * config/bfin/bfin.h (IRA_COVER_CLASSES): Ditto.
8071
8072 * config/cris/cris.h (IRA_COVER_CLASSES): Ditto.
8073
8074 * config/fr30/fr30.h (IRA_COVER_CLASSES): Ditto.
8075
8076 * config/frv/frv.h (IRA_COVER_CLASSES): Ditto.
8077
8078 * config/h8300/h8300.h (IRA_COVER_CLASSES): Ditto.
8079
8080 * config/i386/i386.h (STACK_REG_COVER_CLASS): Ditto.
8081
8082 * config/i386/i386.c (TARGET_IRA_COVER_CLASSES)
8083 (i386_ira_cover_classes): Ditto.
8084
8085 * config/ia64/ia64.h (IRA_COVER_CLASSES): Ditto.
8086
8087 * config/iq2000/iq2000.h (IRA_COVER_CLASSES): Ditto.
8088
8089 * config/m32r/m32r.h (IRA_COVER_CLASSES): Ditto.
8090
8091 * config/m68k/m68k.h (IRA_COVER_CLASSES): Ditto.
8092
8093 * config/mcore/mcore.h (IRA_COVER_CLASSES): Ditto.
8094
8095 * config/mep/mep.h (IRA_COVER_CLASSES): Ditto.
8096
8097 * config/mips/mips.c (TARGET_IRA_COVER_CLASSES)
8098 (mips_ira_cover_classes): Ditto.
8099
8100 * config/mn10300/mn10300.h (IRA_COVER_CLASSES): Ditto.
8101
8102 * config/moxie/moxie.h (IRA_COVER_CLASSES): Ditto.
8103
8104 * config/pa/pa64-regs.h (IRA_COVER_CLASSES): Ditto.
8105
8106 * config/pa/pa32-regs.h (IRA_COVER_CLASSES): Ditto.
8107
8108 * config/picochip/picochip.h (IRA_COVER_CLASSES): Ditto.
8109
8110 * config/rs6000/rs6000.h (IRA_COVER_CLASSES_PRE_VSX)
8111 (IRA_COVER_CLASSES_VSX): Ditto.
8112
8113 * config/rs6000/rs6000.c (TARGET_IRA_COVER_CLASSES)
8114 (rs6000_ira_cover_classes): Ditto.
8115
8116 * config/rx/rx.h (IRA_COVER_CLASSES): Ditto.
8117
8118 * config/s390/s390.h (IRA_COVER_CLASSES): Ditto.
8119
8120 * config/score/score.h (IRA_COVER_CLASSES): Ditto.
8121
8122 * config/sh/sh.h (IRA_COVER_CLASSES): Ditto.
8123
8124 * config/sparc/sparc.h (IRA_COVER_CLASSES): Ditto.
8125
8126 * config/spu/spu.h (IRA_COVER_CLASSES): Ditto.
8127
8128 * config/stormy16/stormy16.h (IRA_COVER_CLASSES): Ditto.
8129
8130 * config/v850/v850.h (IRA_COVER_CLASSES): Ditto.
8131
8132 * config/vax/vax.h (IRA_COVER_CLASSES): Ditto.
8133
8134 * config/xtensa/xtensa.h (IRA_COVER_CLASSES): Ditto.
8135
2b80199f
JJ
81362011-03-29 Jakub Jelinek <jakub@redhat.com>
8137
71dae1fe
JJ
8138 PR debug/48253
8139 * dwarf2out.c (struct dw_fde_struct): Remove dw_fde_hot_section_label,
8140 dw_fde_hot_section_end_label, dw_fde_unlikely_section_label,
8141 dw_fde_unlikely_section_end_label, cold_in_std_section,
8142 dw_fde_switched_sections and dw_fde_switched_cold_to_hot fields.
8143 Add dw_fde_second_begin, dw_fde_second_end and second_in_std_section
8144 fields.
8145 (output_fde): Use dw_fde_second_{begin,end} if second is
8146 true, otherwise dw_fde_{begin,end}.
8147 (output_call_frame_info): Test dw_fde_second_begin != NULL
8148 instead of dw_fde_switched_sections.
8149 (dwarf2out_begin_prologue): Stop initializing removed dw_fde_struct
8150 fields, initialize new fields. Initialize in_std_section
8151 unconditionally from the first partition.
8152 (dwarf2out_end_epilogue): Don't override dw_fde_end when
8153 dw_fde_second_begin is non-NULL.
8154 (dwarf2out_switch_text_section): Stop initializing removed
8155 dw_fde_struct fields, initialize new fields, initialize
8156 also dw_fde_end here. Set dw_fde_switch_cfi even when
8157 dwarf2out_do_cfi_asm (). Call var_location_switch_text_section.
8158 (struct var_loc_list_def): Add last_before_switch field.
8159 (arange_table, arange_table_allocated, arange_table_in_use,
8160 ARANGE_TABLE_INCREMENT, add_arange): Removed.
8161 (size_of_aranges): Count !in_std_section and !second_in_std_section
8162 hunks in fdes, instead of looking at arange_table_in_use.
8163 (output_aranges): Add aranges_length argument, don't call
8164 size_of_aranges here. Instead of using aranges_table*
8165 emit ranges for fdes when !in_std_section resp.
8166 !second_in_std_section.
8167 (dw_loc_list): Break ranges crossing section switch.
8168 (convert_cfa_to_fb_loc_list): Likewise. If switched sections,
7a81008b 8169 use dw_fde_second_end instead of dw_fde_end as end of last range.
71dae1fe
JJ
8170 (gen_subprogram_die): Don't call add_arange. Use
8171 dw_fde_{begin,end} for first partition and if switched
8172 section dw_fde_second_{begin,end} for the second.
8173 (var_location_switch_text_section_1,
8174 var_location_switch_text_section): New functions.
8175 (dwarf2out_begin_function): Initialize cold_text_section even
8176 when function_section () isn't text_section.
8177 (prune_unused_types): Don't walk arange_table.
8178 (dwarf2out_finish): Don't needlessly test
8179 flag_reorder_blocks_and_partition when testing cold_text_section_used.
8180 If info_section_emitted, call size_of_aranges and if it indicates
8181 non-empty .debug_aranges, call output_aranges with the computed
8182 size. Stop using removed dw_fde_struct fields, use
8183 dw_fde_{begin,end} for first partition and dw_fde_second_{begin,end}
8184 for second.
8185
2b80199f
JJ
8186 PR debug/48203
8187 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Only
8188 create ENTRY_VALUE if incoming or address of incoming's MEM
8189 is a hard REG.
8190 * dwarf2out.c (mem_loc_descriptor): Don't emit
8191 DW_OP_GNU_entry_value of DW_OP_fbreg.
8192 * var-tracking.c (vt_add_function_parameter): Ensure cselib_lookup
8193 on ENTRY_VALUE is able to find the canonical parameter VALUE.
8194 * cselib.c (rtx_equal_for_cselib_1) <case ENTRY_VALUE>: Use
8195 rtx_equal_p instead of rtx_equal_for_cselib_1 to compare
8196 ENTRY_VALUE_EXPs.
8197 (cselib_hash_rtx) <case ENTRY_VALUE>: If ENTRY_VALUE_EXP
8198 is a REG_P or MEM_P with REG_P address, compute hash directly
8199 instead of calling cselib_hash_rtx on ENTRY_VALUE_EXP.
8200 (preserve_only_constants): Don't clear VALUES forwaring
8201 ENTRY_VALUE to some other VALUE.
8202
8a445129
RS
82032011-03-28 Richard Sandiford <richard.sandiford@linaro.org>
8204
8205 * builtins.c (expand_builtin_memset_args): Use gen_int_mode
8206 instead of GEN_INT.
8207
c82fee88
EB
82082011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8209
8210 * cfgexpand.c (expand_gimple_cond): Always set the source location and
8211 block before expanding the statement.
8212 (expand_gimple_stmt_1): Likewise. Set them here...
8213 (expand_gimple_stmt): ...and not here. Tidy.
8214 * cfglayout.c (curr_insn_locator): Return 0 if the current location is
8215 unknown.
8216
e45425ec
SB
82172011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8218
8219 * Makefile.in: New rule for cprop.o.
8220 * gcse.c: Move constant/copy propagation to cprop.c.
8221 (compute_local_properties): Only handle expression tables.
8222 (hash_scan_set, compute_hash_table_work, alloc_hash_table,): Likewise.
8223 (one_pre_gcse_pass, one_code_hoisting_pass): Likewise.
8224 (hash_set, insert_set_in_table, gcse_constant_p, lookup_set,
8225 next_set, reset_opr_set_tables, oprs_not_set_p, mark_call, mark_set,
7a81008b 8226 mark_clobber, mark_oprs_set, alloc_cprop_mem, free_cprop_mem,
e45425ec
SB
8227 compute_cprop_data, find_used_regs, try_replace_reg,
8228 find_avail_set, cprop_jump, constprop_register, cprop_insn,
8229 local_cprop_find_used_regs, do_local_cprop, local_cprop_pass,
8230 fis_get_condition, implicit_set_cond_p, find_implicit_sets,
8231 find_bypass_set, reg_killed_on_edge, bypass_block,
8232 bypass_conditional_jumps, one_cprop_pass, gate_rtl_cprop,
8233 execute_rtl_cprop, pass_rtl_cprop): Move to...
8234 * cprop.c: ...here. New file, constant/copy propagation for RTL
8235 moved from gcse.c to here with minor cleanups in duplicated code.
8236
c09d5426
L
82372011-03-28 H.J. Lu <hongjiu.lu@intel.com>
8238
8239 * config/i386/i386.c (flag_opts): Fix a typo in
8240 -mavx256-split-unaligned-store.
8241
9eaa7740
AS
82422011-03-28 Anatoly Sokolov <aesok@post.ru>
8243
8244 * config/h8300/h8300.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
8245 LIBCALL_VALUE): Remove macros.
8246 * config/h8300/h8300.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8247 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8248 (h8300_function_value, h8300_libcall_value,
8249 h8300_function_value_regno_p): New functions.
8250
dcec2be2
AS
82512011-03-28 Anatoly Sokolov <aesok@post.ru>
8252
8253 * config/h8300/h8300.h (ASM_OUTPUT_BSS): Remove macro.
8254
520af9ec
JL
82552011-03-28 Jeff Law <law@redhat.com>
8256
8257 * tree-ssa-threadupdate.c (redirect_edges): Call
8258 create_edge_and_update_destination_phis as needed.
8259 (create_edge_and_update_destination_phis): Accept new BB argument.
8260 All callers updated.
8261 (thread_block): Do not update the profile when threading around
8262 intermediate blocks.
8263 (thread_single_edge): Likewise.
8264 (determine_bb_domination_status): If BB is not a successor of the
8265 loop header, return NONDOMINATING.
8266 (register_jump_thread): Note when we register a jump thread around
8267 an intermediate block.
8268 * tree-ssa-threadedge.c (thread_around_empty_block): New function.
8269 (thread_across_edge): Use it.
8270
7450b54f
TG
82712011-03-28 Tristan Gingold <gingold@adacore.com>
8272
8273 * config/ia64/ia64.c (ia64_promote_function_mode): Fix promotion
8274 when for_return is 2.
8275
649beb33
JL
82762011-03-28 Jeff Law <law@redhat.com>
8277
8278 * var-tracking.c (canonicalize_values_mark): Delete unused
8279 lhs assignment.
8280 (canonicalize_values_star, set_variable_part): Likewise.
8281 (clobber_variable_part, delete_variable_part): Likewise.
8282
d5b8da97
SB
82832011-03-28 Steven Bosscher <steven@gcc.gnu.org>
8284
8285 * gcse.c (free_gcse_mem): Free reg_set_bitmap.
8286
322dd859
MJ
82872011-03-28 Martin Jambor <mjambor@suse.cz>
8288
8289 * tree-inline.c (expand_call_inline): Do not check that destination
8290 node is analyzed.
8291 (optimize_inline_calls): Assert that destination node is analyzed.
8292 * cgraph.c (cgraph_add_new_function): Call cgraph_analyze_function, do
8293 not call tree_lowering_passes.
8294 * cgraph.h (cgraph_analyze_function): Declare.
8295 * cgraphunit.c (cgraph_analyze_function): Make public.
8296
aa53e58b
JM
82972011-03-28 Joseph Myers <joseph@codesourcery.com>
8298
8299 * config/sparc/sparc-opts.h: New.
8300 * config/sparc/sparc.c (sparc_handle_option, sparc_select,
8301 sparc_cpu, fpu_option_set, TARGET_HANDLE_OPTION): Remove.
8302 (sparc_option_override): Store processor_type enumeration rather
8303 than string in cpu_default. Remove name and enumeration from
8304 cpu_table. Directly default -mcpu then default -mtune from -mcpu
8305 without using sparc_select. Use target_flags_explicit instead of
8306 fpu_option_set.
8307 * config/sparc/sparc.h (enum processor_type): Move to
8308 sparc-opts.h.
8309 (sparc_cpu, struct sparc_cpu_select, sparc_select): Remove.
8310 * config/sparc/sparc.opt (config/sparc/sparc-opts.h): New
8311 HeaderInclude entry.
8312 (mcpu=, mtune=): Use Var and Enum.
8313 (sparc_processor_type): New Enum and EnumValue entries.
8314
dd350eba
RO
83152011-03-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8316 Iain Sandoe <iains@gcc.gnu.org>
8317
8318 PR target/48245
8319 * config/darwin.h (LINK_COMMAND_SPEC_A): Use LINK_PLUGIN_SPEC.
8320
1b29f05e
EB
83212011-03-28 Eric Botcazou <ebotcazou@adacore.com>
8322
8323 * tree-vectorizer.h (vect_create_data_ref_ptr): Adjust prototype.
8324 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Add GSI parameter.
8325 Insert new statements at it in lieu of STMT.
8326 (vect_setup_realignment): Adjust call to vect_create_data_ref_ptr.
8327 * tree-vect-stmts.c (vectorizable_store): Likewise.
8328 (vectorizable_load): Likewise.
8329
506e6808
UB
83302011-03-28 Uros Bizjak <ubizjak@gmail.com>
8331
8332 * config/alpha/alpha.md (addtf3): Change mode of operands to TFmode.
8333 (divtf3): Ditto.
8334 (multf3): Ditto.
8335 (subtf3): Ditto.
8336
2e939ee9
L
83372011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8338
8339 * config/i386/sse.md (*avx_mov<mode>_internal): Don't assert
8340 unaligned 256bit load/store.
8341 (*avx_movu<ssemodesuffix><avxmodesuffix>): Likewise.
8342 (*avx_movdqu<avxmodesuffix>): Likewise.
8343
5e85ab88
JDA
83442011-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8345
8346 PR target/48288
8347 * config/pa/predicates.md (reg_or_ior_operand): New predicate.
8348 * config/pa/pa.md (iordi3): Use new predicate in expander.
8349 (iorsi3): Likewise.
8350
47be3d6d
AS
83512011-03-27 Anatoly Sokolov <aesok@post.ru>
8352
506e6808 8353 * config/mips/mips.h (LIBCALL_VALUE, FUNCTION_VALUE,
47be3d6d 8354 FUNCTION_VALUE_REGNO_P): Remove macros.
506e6808
UB
8355 * config/mips/mips-protos.h (mips_function_value): Remove.
8356 * config/mips/mips.c (mips_function_value): Rename to...
47be3d6d
AS
8357 (mips_function_value_1): ... this. Make static. Handle receiving
8358 the function type in 'fn_decl_or_type' argument.
8359 (mips_function_value, mips_libcall_value,
8360 mips_function_value_regno_p): New function.
8361 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8362 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8363
d253656a
L
83642011-03-27 H.J. Lu <hongjiu.lu@intel.com>
8365
8366 * config/i386/i386.c (flag_opts): Add -mavx256-split-unaligned-load
8367 and -mavx256-split-unaligned-store.
8368 (ix86_option_override_internal): Split 32-byte AVX unaligned
8369 load/store by default.
8370 (ix86_avx256_split_vector_move_misalign): New.
8371 (ix86_expand_vector_move_misalign): Use it.
8372
8373 * config/i386/i386.opt: Add -mavx256-split-unaligned-load and
8374 -mavx256-split-unaligned-store.
8375
8376 * config/i386/sse.md (*avx_mov<mode>_internal): Verify unaligned
8377 256bit load/store. Generate unaligned store on misaligned memory
8378 operand.
8379 (*avx_movu<ssemodesuffix><avxmodesuffix>): Verify unaligned
8380 256bit load/store.
8381 (*avx_movdqu<avxmodesuffix>): Likewise.
8382
8383 * doc/invoke.texi: Document -mavx256-split-unaligned-load and
8384 -mavx256-split-unaligned-store.
8385
1ea9206a
RS
83862011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8387
8388 PR target/38598
8389 * config/mips/mips.md (extendsidi2): Add an "l" alternative.
8390 Update commentary.
8391
b99ce2a8
RS
83922011-03-27 Richard Sandiford <rdsandiford@googlemail.com>
8393
8394 * config/mips/mips.c (mips_prepare_builtin_arg): Replace icode and
8395 opno arguments with an expand_operand. Use create_input_operand.
8396 (mips_prepare_builtin_target): Delete.
8397 (mips_expand_builtin_insn, mips_expand_builtin_compare_1): New
8398 functions.
8399 (mips_expand_builtin_direct): Use create_output_operand and
8400 mips_expand_builtin_insn. Update call to mips_prepare_builtin_arg.
8401 (mips_expand_builtin_movtf): Likewise. Use mips_expand_fp_comparison.
8402 (mips_expand_builtin_compare): Use mips_expand_fp_comparison.
8403
69d52339
IR
84042011-03-27 Ira Rosen <ira.rosen@linaro.org>
8405
8406 * config/arm/arm.c (arm_autovectorize_vector_sizes): New
8407 function.
8408 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
8409
ba5e9aca
EB
84102011-03-26 Eric Botcazou <ebotcazou@adacore.com>
8411
8412 * basic-block.h (fixup_abnormal_edges): Adjust prototype.
8413 * reload1.c (reload): Adjust call to fixup_abnormal_edges. Rediscover
8414 basic blocks and call commit_edge_insertions directly.
8415 (fixup_abnormal_edges): Move from here to...
8416 * cfgrtl.c (fixup_abnormal_edges): ...here. Only insert instructions
8417 on the edges and return whether some have actually been inserted.
8418 * reg-stack.c (convert_regs): Fix up abnormal edges before inserting
8419 compensation code.
8420
5d369d58
AB
84212011-03-26 Andrey Belevantsev <abel@ispras.ru>
8422
8423 PR rtl-optimization/48144
8424 * sel-sched-ir.c (merge_history_vect): Factor out from ...
8425 (merge_expr_data): ... here.
8426 (av_set_intersect): Rename to av_set_code_motion_filter.
8427 Update all callers. Call merge_history_vect when an expression
8428 is found in both sets.
8429 * sel-sched-ir.h (av_set_code_motion_filter): Add prototype.
8430
f082c000
AM
84312011-03-26 Alan Modra <amodra@gmail.com>
8432
8433 * config/rs6000/predicates.md (word_offset_memref_op): Handle
8434 cmodel medium addresses.
8435 * config/rs6000/rs6000.c (rs6000_secondary_reload): Handle misaligned
8436 64-bit gpr loads and stores.
8437 (rs6000_secondary_reload_ppc64): New function.
8438 * config/rs6000/rs6000-protos.h: Declare it.
8439 * config/rs6000/rs6000.md (reload_di_store, reload_di_load): New.
8440
8ac5e12e
AM
84412011-03-26 Alan Modra <amodra@gmail.com>
8442
8443 PR target/47487
8444 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Support
8445 GNU Go in traceback table.
8446
c2654ded
RH
84472011-03-25 Richard Henderson <rth@redhat.com>
8448
8449 * expr.c (emit_block_move_via_movmem): Only use 6 operand variant
8450 if there are exactly 6 operands.
8451 (set_storage_via_setmem): Similarly.
8452
ba78087b
KT
84532011-03-25 Kai Tietz <ktietz@redhat.com>
8454
8455 * collect2.c (write_c_file_stat): Handle backslash
8456 as right-hand directory separator.
8457 (resolve_lib_name): Use IS_DIR_SEPARATOR instead of
8458 checking just for slash.
8459 * coverage.c (coverage_init): Use IS_ABSOLUTE_PATH
8460 instead of checking for trailing slash.
8461 * gcc.c (record_temp_file): Use filename_cmp instead
8462 of strcmp.
8463 (do_spec_1): Likewise.
8464 (replace_outfile_spec_function): Likewise.
8465 (is_directory): Use filename_ncmp instead of strncmp.
8466 (print_multilib_info): Likewise.
8467 * gcov.c (find_source): Use filename_cmp instead
8468 instead of strcmp.
8469 (make_gcov_file_name): Fix order of slash/backslash
8470 checks.
8471 * incpath.c (DIRS_EQ): Use filename_cmp instead of strcmp.
8472 (add_standard_paths): Likewise.
8473 * mips-tfile.c (saber_stop): Handle backslash.
8474 * prefix.c (update_path): Use filename_ncmp instead of
8475 strncmp.
8476 * profile.c (output_location): Use filename_cmp instead
8477 of strcmp.
8478 * read-md.c (handle_toplevel_file): Handle backslash.
8479 * tlink.c (frob_extension): Likewise.
8480 * tree-cfg.c (same_line_p): Use filename_cmp instead of
8481 strcmp.
8482 * tree-dump.c (dequeue_and_dump): Handle backslash.
8483 * tree.c (get_file_function_name): Likewise.
8484 * gengtype.c (read_input_list): Likewise.
8485 (get_file_realbasename): Likewise.
8486 (get_output_file_with_visibility): Use filename_cmp
8487 instead of strcmp.
8488
75f6ec9a
RS
84892011-03-25 Richard Sandiford <richard.sandiford@linaro.org>
8490
8491 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Restrict FPA_REGS
8492 case to VFPv1.
8493
6c4e2997
NF
84942011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8495
8496 * fold-const.c (expr_location_or): New function.
8497 (fold_truth_not_expr): Call it.
8498
0edf1bb2
JL
84992011-03-25 Jeff Law <law@redhat.com>
8500
8501 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add missing
8502 va_end.
8503 * c-family/c-common.c (def_fn_type): Likewise.
8504 * ada/gcc-interface/utils.c (def_fn_type): Likewise.
8505 * emit-rtl.c (gen_rtvec): Likewise.
8506 * lto/lto-lang.c (def_fn_type): Likewise.
8507
fdc2de95
RG
85082011-03-25 Richard Guenther <rguenther@suse.de>
8509
8510 * tree-ssa-copy.c (stmt_may_generate_copy): Copies from constants
8511 also generate copies.
8512 (fini_copy_prop): Handle constant values properly.
8513
21385db0
JJ
85142011-03-25 Jakub Jelinek <jakub@redhat.com>
8515
8516 * dwarf2out.c (mem_loc_descriptor) <case ZERO_EXTRACT>: Compare
8517 mode size instead of bitsize with DWARF2_ADDR_SIZE.
8518 (hash_loc_operands, compare_loc_operands): Handle
8519 DW_OP_GNU_entry_value.
8520
6510e8bb
KT
85212011-03-25 Kai Tietz <ktietz@redhat.com>
8522
8523 * config/i386/cygming.h (DWARF_FRAME_REGISTERS): Adjust comment.
8524 (STACK_BOUNDARY): Check for bit-ness in case of MS_ABI.
8525 * config/i386/i386.c (ix86_conditional_register_usage): Adjust
8526 comment and use macro TARGET_64BIT_MS_ABI instead.
8527 (ix86_keep_aggregate_return_pointer): Optimize for 64-bit case
8528 and change default behavior for 32-bit MS_ABI.
8529 (ix86_reg_parm_stack_space): Check additionally for bit-ness.
8530 (ix86_function_type_abi): Allow check for ms_abi/sysv_abi for
8531 32-bit, too.
8532 (ix86_cfun_abi): Likewise.
8533 (ix86_maybe_switch_abi): Adjust comment.
8534 (init_cumulative_args): Check for bit-ness in MS_ABI case.
8535 (ix86_gimplify_va_arg): Check just for not TARGET_64BIT_MS_ABI
8536 instead of checking for SYSV_ABI.
8537 (ix86_nsaved_sseregs): Likewise.
8538 (ix86_compute_frame_layout): Set only for 64-bit MS_ABI alignment
8539 to 16 bytes.
8540 (ix86_expand_call): Use TARGET_64BIT_MS_ABI macro.
8541 * config/i386.h (TARGET_32BIT_MS_ABI): New macro.
8542 (ACCUMULATE_OUTGOING_ARGS): Check explicit for 64-bit MS_ABI.
8543 (OUTGOING_REG_PARM_STACK_SPACE): Likewise.
8544 * config/mingw32.h (DEFAULT_ABI): Change default always to MS_ABI.
8545
34019e28
RG
85462011-03-25 Richard Guenther <rguenther@suse.de>
8547
8548 * tree-flow.h (verify_stmts): Rename to verify_gimple_in_cfg.
8549 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8550 (verify_gimple): Remove.
8551 * tree-cfg.c (verify_gimple_call): Merge verification
8552 from verify_stmts.
8553 (verify_gimple_phi): Merge verification from verify_stmts.
8554 (verify_gimple_label): New function.
8555 (verify_types_in_gimple_seq_2): Rename to verify_gimple_in_seq_2.
8556 (verify_types_in_gimple_seq): Rename to verify_gimple_in_seq.
8557 (verify_stmt): Merge into verify_gimple_in_cfg and callees.
8558 (verify_stmts): Rename to verify_gimple_in_cfg.
8559 (verify_gimple_in_cfg): New function.
8560 * passes.c (execute_function_todo): Call verify_gimple_in_cfg.
8561 * tree-ssa.c (verify_ssa): Likewise.
8562 * gimplify.c (gimplify_body): Call verify_gimple_in_seq.
8563
605896f5
RG
85642011-03-25 Richard Guenther <rguenther@suse.de>
8565
8566 * passes.c (init_optimization_passes): Add FRE pass after
8567 early SRA.
8568
7baa7c13
BS
85692011-03-25 Bernd Schmidt <bernds@codesourcery.com>
8570 Andrew Stubbs <ams@codesourcery.com>
8571
8572 * config/arm/vfp.md (arm_movdi_vfp): Enable only when not tuning
8573 for Cortex-A8.
8574 (arm_movdi_vfp_cortexa8): New pattern.
8575 * config/arm/neon.md (adddi3_neon, subdi3_neon, anddi3_neon,
8576 iordi3_neon, xordi3_neon): Add alternatives to discourage Neon
8577 instructions when tuning for Cortex-A8. Set attribute "arch".
8578 * config/arm/arm.md: Move include arm-tune.md up a bit.
8579 (define_attr "arch"): Add "onlya8" and "nota8" values.
8580 (define_attr "arch_enabled"): Handle "onlya8" and "nota8".
8581
45dbce1b
NF
85822011-03-25 Nathan Froyd <froydnj@codesourcery.com>
8583
4ff08abf 8584 PR bootstrap/48282
45dbce1b
NF
8585 Revert:
8586 2011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8587
8588 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8589 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8590 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8591 * passes.c (init_optimization_passes): Move
8592 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8593
ac9a30ae
KT
85942011-03-25 Kai Tietz <ktietz@redhat.com>
8595
8596 * c-typeck.c (comptypes_internal): Replace target
8597 hook call of comp_type_attributes by version in tree.c file.
8598 * gimple.c (gimple_types_compatible_p_1): Likewise.
8599 * tree-ssa.c (useless_type_conversion_p): Likewise.
8600 * tree.c (build_type_attribute_qual_variant): Likewise.
8601 (attribute_value_equal): New static helper function.
8602 (comp_type_attributes): New function.
8603 (merge_attributes): Use attribute_value_equal for comparison.
8604 (attribute_list_contained): Likewise.
8605 * tree.h (comp_type_attributes): New prototype.
8606
afdac116
RG
86072011-03-25 Richard Guenther <rguenther@suse.de>
8608
8609 * tree-cfg.c (verify_gimple_assign_unary): Drop special casing
8610 of complex types at -O0.
8611 (verify_gimple_assign_binary): Likewise.
8612 (verify_gimple_assign_ternary): Likewise.
8613
ec6165f8
MW
86142011-03-24 Mark Wielaard <mjw@redhat.com>
8615
8616 * dwarf2out.c (size_of_die): Modify comment to say DW_FORM_ref_sig8.
8617 (value_format): Use DW_FORM_ref_sig8, not DW_FORM_sig8.
8618
2a5ac39a
MW
86192011-03-24 Mark Wielaard <mjw@redhat.com>
8620
8621 PR debug/48041
8622 * dwarf2out.c (output_abbrev_section): Only write table when
8623 abbrev_die_table_in_use > 1.
8624
e533b2a4
RH
86252011-02-24 Richard Henderson <rth@redhat.com>
8626
8627 * config/alpha/alpha.c (alpha_expand_unaligned_load): Use extql.
8628 (alpha_expand_unaligned_store): Use mskwl, mskll, mskql.
8629 (alpha_expand_unaligned_load_words): Use extql.
8630 (alpha_expand_unaligned_store_words): Use insqh, mskqh, mskql.
8631 (emit_insxl): Handle all modes for consistency.
8632
0b2a7367
RH
86332011-02-24 Richard Henderson <rth@redhat.com>
8634
8635 * config/alpha/alpha.c (get_aligned_mem): Don't test WORDS_BIG_ENDIAN.
8636 (alpha_expand_unaligned_load): Likewise.
8637 (alpha_expand_unaligned_store): Likewise.
8638 (alpha_expand_unaligned_load_words): Likewise.
8639 (alpha_expand_unaligned_store_words): Likewise.
8640 (emit_insxl, alpha_split_compare_and_swap_12): Likewise.
8641 (alpha_split_lock_test_and_set_12): Likewise.
8642 (print_operand, alpha_fold_builtin_extxx): Likewise.
8643 (alpha_fold_builtin_insxx, alpha_fold_builtin_mskxx): Likewise.
8644 * config/alpha/alpha.md (bswapsi2, insv, extv, extzv): Likewise.
8645 (builtin_extwh, builtin_extlh, builtin_extql): Likewise.
8646 (unaligned_extendqidi_be, unaligned_extendhidi_be, extxl_be): Remove.
8647 (*extxl_1_be, *extql_2_be, extqh_be, extlh_be, extwh_be): Remove.
8648 (insbl_be, inswl_be, insll_be, insql_be, mskxl_be): Remove.
8649 (unaligned_loadqi_be, unaligned_loadhi_be): Remove.
8650 (unaligned_storeqi_be, unaligned_storehi_be): Remove.
8651 (extbl): Rename from builtin_extbl; don't test WORDS_BIG_ENDIAN.
8652 (extwl, extll, extql): Similarly.
8653 (inswh, inslh, insqh): Similarly.
8654 (mskbl, mskwl, mskll, mskql): Similarly.
8655 (mskwh, msklh, mskqh): Similarly.
8656
315b2bef
RH
86572011-02-24 Richard Henderson <rth@redhat.com>
8658
8659 * config/alpha/alpha.md (attribute isa): Add er, ner.
8660 (attribute enabled): Handle them.
8661 (*movdi): Merge *movdi_{er_nofix,nofix,er_fix,fix}.
8662
67102517
RH
86632011-02-24 Richard Henderson <rth@redhat.com>
8664
8665 * config/alpha/alpha.md (attribute isa): Add vms.
8666 (attribute enabled): Handle it.
8667 (*movsf): Merge *movsf_{nofix,fix,nofp}.
8668 (*movdf): Merge *movdf_{nofix,fix,nofp}.
8669 (*movtf): Rename from *movtf_internal for consistency.
8670 (*movsi): Merge with *movsi_nt_vms.
8671 (*movhi): Merge *movhi_nobwx, *movhi_bwx.
8672 (*movqi): Merge *movqi_nobwx, *movqi_bwx.
8673 (*mov<VEC>): Merge *mov<VEC>_fix, *mov<VEC>_nofix.
8674 * config/alpha/constraint.md ("f"): Use NO_REGS when fpu is disabled.
8675
6aba5cb4
RH
86762011-02-24 Richard Henderson <rth@redhat.com>
8677
8678 * config/alpha/alpha.md (extendqihi2): Implement for BWX only.
8679 (extendqisi2, extendhisi2): Likewise.
8680 (extendqidi2): Simplify BWX/non-BWX expansions.
8681 (extendhidi2): Similarly.
8682
bdfb351b
RH
86832011-02-24 Richard Henderson <rth@redhat.com>
8684
8685 * config/alpha/alpha.md (attribute isa): New.
8686 (attribute enabled): New.
8687 (zero_extendqihi2): Merge from *zero_extendqihi2_{bwx,nobwx}.
8688 (zero_extendqisi2, zero_extendqidi2): Similarly.
8689 (zero_extendhisi2, zero_extendhidi2): Similarly.
8690 * config/alpha/predicates.md (reg_or_bwx_memory_operand): New.
8691
6abe71eb
RH
86922011-02-24 Richard Henderson <rth@redhat.com>
8693
8694 * config/alpha/predicates.md (input_operand): Revert last change;
8695 update comment to mention 32-bit VMS rather than Windows.
8696
7114321e
NF
86972011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8698
8699 * function.c (instantiate_virtual_regs): Use FOR_EACH_BB and
8700 FOR_BB_INSNS_SAFE to iterate through insns. Re-indent.
8701 (pass_instantiate_virtual_regs): Require PROP_cfglayout.
8702 * passes.c (init_optimization_passes): Move
8703 pass_instantiate_virtual_regs after pass_into_cfg_layout_mode.
8704
c8679567
EB
87052011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8706
8707 * dojump.c (do_jump_by_parts_greater_rtx): Optimize in specific cases.
8708
27173058
UB
87092011-03-24 Uros Bizjak <ubizjak@gmail.com>
8710
8711 * config/i386/i386.md (ix86_print_operand): Output DFmode const_double
8712 correctly.
8713
6f0c9f06
JJ
87142011-03-24 Jakub Jelinek <jakub@redhat.com>
8715
8716 PR debug/48204
8717 * simplify-rtx.c (simplify_const_unary_operation): Call
8718 real_convert when changing mode class with FLOAT_EXTEND.
8719
662666e5
NC
87202011-03-24 Nick Clifton <nickc@redhat.com>
8721
8722 * config/rx/rx.h (LABEL_ALIGN_FOR_BARRIER): Define.
8723 (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8724 * config/rx/rx.c (rx_option_override): Set align_jumps,
8725 align_loops and align_labels if not set by the user.
8726 (rx_align_for_label): New function.
8727 (rx_max_skip_for_label): New function.
8728 (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): Define.
8729 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define.
8730 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Define.
8731 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Define.
8732 * config/rx/rx-protos.h (rx_align_for_label): Add prototype.
8733
2b99b2b8
RS
87342011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8735
8736 PR rtl-optimization/48263
8737 * optabs.c (expand_binop_directly): Reinstate convert_modes code
8738 and original commutative_p handling. Use maybe_gen_insn.
8739
ccecd6ea
AK
87402011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8741
8742 * reload.c (find_reloads_subreg_address): Add address_reloaded
8743 parameter and return true there if the full address has been
8744 reloaded.
8745 (find_reloads_toplev): Pass address_reloaded flag.
8746 (find_reloads_address_1): Don't use address_reloaded parameter.
8747
67295642
JL
87482011-03-24 Jeff Law <law@redhat.com>
8749
8750 * tree-ssa-live.c (remove_unused_scope_block_p): Remove set but
8751 unused variable "ann".
8752 (remove_unused_locals): Likewise.
8753
8754 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Remove useless
8755 statement.
8756
8757 * cfglayout.c (fixup_reorder_chain): Do not dereference E_FALL
8758 after it is freed.
8759
212aa74f
AK
87602011-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8761
8762 * config/s390/s390.c (s390_preferred_reload_class): Return NO_REGS
8763 for invalid symbolic addresses.
8764 (s390_secondary_reload): Don't use s390_check_symref_alignment for
8765 larl operands.
8766
fe784e0d
EB
87672011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8768
8769 * fold-const.c (fold_ternary_loc): Preserve the location (if any) of
8770 the argument in calls to fold_truth_not_expr.
8771
63ee8641
NF
87722011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8773
8774 * tree.c (record_node_allocation_statistics): New function.
8775 (make_node_stat, copy_node_stat, build_string): Call it.
8776 (make_tree_binfo_stat, make_tree_vec_stat, tree_cons_stat): Likewise.
8777 (build1_stat, build_omp_clause): Likewise.
8778
61be2a1c
RS
87792011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8780
8781 * builtins.c (expand_movstr): Fix endp == 1 adjustment after
8782 last commit.
8783
a881aaa7
RG
87842011-03-24 Richard Guenther <rguenther@suse.de>
8785
8786 PR tree-optimization/48271
8787 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Only cleanup
8788 blocks that still exist.
8789
dbaa912c
RG
87902011-03-24 Richard Guenther <rguenther@suse.de>
8791
8792 PR tree-optimization/48270
8793 * tree-ssa-phiopt.c (cond_if_else_store_replacement): Do
8794 not free datarefs before ddrs.
8795
1d60cc55
EB
87962011-03-24 Eric Botcazou <ebotcazou@adacore.com>
8797
8798 * tree-sra.c (build_ref_for_offset): Strip useless type conversions
8799 from the address built for a reference with variable offset.
8800
c78dd519
UB
88012011-03-24 Uros Bizjak <ubizjak@gmail.com>
8802
8803 PR target/48237
8804 * config/i386/i386.md (*movdf_internal_rex64): Do not split
8805 alternatives that can be handled with movq or movabsq insn.
8806 (*movdf_internal): Disable for !TARGET_64BIT.
8807 (*movdf_internal_nointeger): Ditto.
8808 * config/i386/i386.c (ix86_print_operand): Handle DFmode immediates.
8809
b25b9e8f
NF
88102011-03-24 Nathan Froyd <froydnj@codesourcery.com>
8811
8812 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
8813 (FUNCTION_ARG_ADVANCE): Likewise.
8814 * tm.texi.in: Change references to them to hook references.
8815 * tm.texi: Regenerate.
c78dd519 8816 * targhooks.c (default_function_arg): Eliminate check for target macro.
b25b9e8f
NF
8817 (default_function_incoming_arg): Likewise.
8818 (default_function_arg_advance): Likewise.
c78dd519 8819 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
b25b9e8f
NF
8820 (function_arg_advance): Likewise.
8821 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
8822
190b2187
RG
88232011-03-24 Richard Guenther <rguenther@suse.de>
8824
8825 PR middle-end/48269
8826 * tree-object-size.c (addr_object_size): Do not double-account
8827 for MEM_REF offsets.
8828
a183b5c7
DN
88292011-03-24 Diego Novillo <dnovillo@google.com>
8830
8831 * lto-opts.c (input_data_block): Move to lto-streamer-in.c.
c78dd519 8832 * lto-streamer-in.c (input_string_internal): Add clarifying comments.
a183b5c7
DN
8833 (lto_input_data_block): Move from lto-opts.c. Make extern.
8834 Update all users.
8835 (lto_input_string): Rename from input_string. Make extern.
8836 Update all users.
8837 * lto-streamer-out.c (lto_output_string_with_length): Rename from
8838 output_string_with_length.
8839 Output 0 to indicate a non-NULL string. Update all callers to
8840 not emit 0.
8841 (lto_output_string): Rename from output_string. Make extern.
8842 Update all users.
8843 (lto_output_decl_state_streams): Make extern.
8844 (lto_output_decl_state_refs): Make extern.
8845 * lto-streamer.h (lto_input_string): Declare.
8846 (lto_input_data_block): Declare.
8847 (lto_output_string): Declare.
8848 (lto_output_string_with_length): Declare.
8849 (lto_output_decl_state_streams): Declare.
8850 (lto_output_decl_state_refs): Declare.
8851
cfef45c8
RG
88522011-03-24 Richard Guenther <rguenther@suse.de>
8853
8854 PR tree-optimization/46562
8855 * tree.c (build_invariant_address): New function.
8856 * tree.h (build_invariant_address): Declare.
8857 * tree-dfa.c (get_addr_base_and_unit_offset): Wrap around
8858 a renamed function moved ...
8859 * tree-flow-inline.h (get_addr_base_and_unit_offset_1): ... here.
8860 Take valueization callback parameter.
8861 * tree-flow.h (gimple_fold_stmt_to_constant): Declare.
8862 * gimple-fold.h: New file.
8863 * tree-ssa-ccp.c (ccp_fold): Use gimple_fold_stmt_to_constant_1.
8864 (ccp_fold, fold_const_aggregate_ref,
8865 fold_ctor_reference, fold_nonarray_ctor_reference,
8866 fold_array_ctor_reference, fold_string_cst_ctor_reference,
8867 get_base_constructor): Move ...
8868 * gimple-fold.c: ... here.
8869 (gimple_fold_stmt_to_constant_1): New function
8870 split out from ccp_fold. Take a valueization callback parameter.
8871 Valueize all operands.
8872 (gimple_fold_stmt_to_constant): New wrapper function.
8873 (fold_const_aggregate_ref_1): New function split out from
8874 fold_const_aggregate_ref. Take a valueization callback parameter.
8875 (fold_const_aggregate_ref): Wrap fold_const_aggregate_ref_1.
8876 * tree-ssa-sccvn.c (simplify_binary_expression): Simplify
8877 invariant POINTER_PLUS_EXPRs to invariant form.
8878 (vn_valueize): New function.
8879 (try_to_simplify): Simplify by using gimple_fold_stmt_to_constant.
8880 * tree-vrp.c (vrp_valueize): New function.
8881 (vrp_visit_assignment_or_call): Use gimple_fold_stmt_to_constant
8882 to fold statements to constants.
8883 * tree-ssa-pre.c (eliminate): Properly guard propagation of
8884 function declarations.
8885 * Makefile.in (tree-ssa-sccvn.o, tree-vrp.o, gimple-fold.o,
8886 tree-ssa-ccp.o): Add gimple-fold.h dependencies.
8887
5e0a7e40
RS
88882011-03-24 Richard Sandiford <richard.sandiford@linaro.org>
8889
8890 * config/h8300/predicates.md (jump_address_operand): Fix register
8891 mode check.
8892
bfe068c3
IR
88932011-03-24 Ira Rosen <ira.rosen@linaro.org>
8894
8895 * doc/invoke.texi (max-stores-to-sink): Document.
8896 * params.h (MAX_STORES_TO_SINK): Define.
8897 * opts.c (finish_options): Set MAX_STORES_TO_SINK to 0
8898 if either vectorization or if-conversion is disabled.
8899 * tree-data-ref.c (dr_equal_offsets_p1): Moved and renamed from
8900 tree-vect-data-refs.c vect_equal_offsets.
8901 (dr_equal_offsets_p): New function.
8902 (find_data_references_in_bb): Remove static.
8903 * tree-data-ref.h (find_data_references_in_bb): Declare.
8904 (dr_equal_offsets_p): Likewise.
8905 * tree-vect-data-refs.c (vect_equal_offsets): Move to tree-data-ref.c.
8906 (vect_drs_dependent_in_basic_block): Update calls to
8907 vect_equal_offsets.
8908 (vect_check_interleaving): Likewise.
8909 * tree-ssa-phiopt.c: Include cfgloop.h and tree-data-ref.h.
8910 (cond_if_else_store_replacement): Rename to...
8911 (cond_if_else_store_replacement_1): ... this. Change arguments and
8912 documentation.
8913 (cond_if_else_store_replacement): New function.
8914 * Makefile.in (tree-ssa-phiopt.o): Adjust dependencies.
8915 * params.def (PARAM_MAX_STORES_TO_SINK): Define.
8916
4908b0bf
CLT
89172011-03-23 Chung-Lin Tang <cltang@codesourcery.com>
8918
8919 PR target/46934
8920 * config/arm/arm.md (casesi): Use the gen_int_mode() function
8921 to subtract lower bound instead of GEN_INT().
8922
2be478a2
JW
89232011-03-23 Jonathan Wakely <jwakely.gcc@gmail.com>
8924
8925 PR other/48179
8926 PR other/48221
8927 PR other/48234
8928 * doc/extend.texi (Alignment): Move section to match order in TOC.
8929 * doc/invoke.texi (i386 and x86-64 Windows Options): Likewise.
8930 (Warning Options): Adjust -Wno-cpp summary and remove stray backslash.
8931
0c617be4
JL
89322011-03-23 Jeff Law <law@redhat.com>
8933
8934 * cfg.c (redirect_edge_succ_nodup): Duplicate the varm map
8935 before removing the edge.
8936
8937 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Do not use E after
8938 it may have been freed by redirect_branch_edge or
8939 redirect_edge_succ_nodup.
8940
58da96fe
RG
89412011-03-23 Richard Guenther <rguenther@suse.de>
8942
c78dd519 8943 * tree-stdarg.c (va_list_counter_bump): Handle bumps via MEM_REF.
58da96fe
RG
8944 (check_va_list_escapes): Likewise.
8945 (check_all_va_list_escapes): Likewise.
8946
b8beb4d1
RG
89472011-03-23 Richard Guenther <rguenther@suse.de>
8948
8949 * Makefile.in (IPA_TYPE_ESCAPE_H): Remove.
8950 (OBJS-archive): Remove ipa-struct-reorg.o and ipa-type-escape.o.
8951 (tree-ssa-alias.o): Do not depend on IPA_TYPE_ESCAPE_H.
8952 (alias.o): Likewise.
8953 (ipa-type-escape.o): Remove.
8954 (ipa-struct-reorg.o): Likewise.
8955 (GTFILES): Remove ipa-struct-reorg.c.
8956 * alias.c: Do not include ipa-type-escape.h.
8957 * tree-ssa-alias.c: Likewise.
8958 * common.opt (fipa-struct-reorg): Preserve for backward compatibility.
8959 * opts.c (finish_options): Do not reset flag_ipa_struct_reorg.
8960 * passes.c (init_optimization_passes): Remove ipa-struct-reorg
8961 and ipa-type-escape passes.
8962 * tree-pass.h (pass_ipa_type_escape): Remove.
8963 (pass_ipa_struct_reorg): Likewise.
8964 * ipa-struct-reorg.h: Remove.
8965 * ipa-struct-reorg.c: Likewise.
8966 * ipa-type-escape.h: Likewise.
8967 * ipa-type-escape.c: Likewise.
8968 * doc/invoke.texi (-fipa-struct-reorg): Remove.
8969 (--param struct-reorg-cold-struct-ratio): Likewise.
8970 * params.def (PARAM_STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8971 * params.h (STRUCT_REORG_COLD_STRUCT_RATIO): Likewise.
8972 * timevar.def (TV_IPA_TYPE_ESCAPE): Likewise.
8973
f137aa63
AK
89742011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8975
8976 * config/s390/2084.md: Enable all insn reservations also for z9_ec
8977 cpu attribute value.
8978 * config/s390/s390-opts.h (enum s390_arch_option): Remove.
8979 (enum processor_type): Add PROCESSOR_2094_Z9_EC.
8980 * config/s390/s390.c (processor_flags_table): New constant array.
8981 (s390_handle_arch_option): Remove.
8982 (s390_handle_option): Remove s390_handle_arch_option invocations
8983 and OPT_mwarn_framesize_ handling.
8984 (s390_option_override): Remove s390_handle_arch_option invocation.
8985 (s390_emit_prologue): Remove use of HOST_WIDE_INT_PRINT_DEC in
8986 warnings.
8987 * config/s390/s390.md (cpu attribute): Add z9_ec value.
8988 * config/s390/s390.opt (s390_tune, s390_arch)
8989 (march=): Replace s390_arch_option enum and values with
8990 processor_type. Set variable name to s390_arch. Set
8991 initialization value.
8992 (mtune=): Replace s390_arch_option with processor_type. Set
8993 variable name to s390_tune. Set initialization value.
8994
bf90208f
JB
89952011-03-23 Julian Brown <julian@codesourcery.com>
8996
8997 * expr.c (expand_expr_real_1): Only use BLKmode for volatile
8998 accesses which are not naturally aligned.
8999
3460fdf3
RS
90002011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9001
9002 PR target/47553
9003 * config/arm/predicates.md (neon_lane_number): Accept 0..15.
9004
a5c7d693
RS
90052011-03-23 Richard Sandiford <richard.sandiford@linaro.org>
9006
9007 * optabs.h (emit_unop_insn, maybe_emit_unop_insn): Change insn code
9008 parameter from "int" to "enum insn_code".
9009 (expand_operand_type): New enum.
9010 (expand_operand): New structure.
9011 (create_expand_operand): New function.
9012 (create_fixed_operand, create_output_operand): Likewise
9013 (create_input_operand, create_convert_operand_to): Likewise.
9014 (create_convert_operand_from, create_address_operand): Likewise.
9015 (create_integer_operand): Likewise.
9016 (create_convert_operand_from_type, maybe_legitimize_operands): Declare.
9017 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9018 (expand_insn, expand_jump_insn): Likewise.
9019 * builtins.c (expand_builtin_prefetch): Use the new interfaces.
9020 (expand_builtin_interclass_mathfn, expand_builtin_strlen): Likewise.
9021 (expand_movstr, expand_builtin___clear_cache): Likewise.
9022 (expand_builtin_lock_release): Likewise.
9023 * explow.c (allocate_dynamic_stack_space): Likewise.
9024 (probe_stack_range): Likewise. Allow check_stack to FAIL,
9025 and use the default handling in that case.
9026 * expmed.c (check_predicate_volatile_ok): Delete.
9027 (store_bit_field_1, extract_bit_field_1): Use the new interfaces.
9028 (emit_cstore): Likewise.
9029 * expr.c (emit_block_move_via_movmem): Likewise.
9030 (set_storage_via_setmem, expand_assignment): Likewise.
9031 (emit_storent_insn, try_casesi): Likewise.
9032 (emit_single_push_insn): Likewise. Allow the expansion to fail.
9033 * optabs.c (expand_widen_pattern_expr, expand_ternary_op): Likewise.
9034 (expand_vec_shift_expr, expand_binop_directly): Likewise.
9035 (expand_twoval_unop, expand_twoval_binop): Likewise.
9036 (expand_unop_direct, emit_indirect_jump): Likewise.
9037 (emit_conditional_move, vector_compare_rtx): Likewise.
9038 (expand_vec_cond_expr, expand_val_compare_and_swap_1): Likewise.
9039 (expand_sync_operation, expand_sync_fetch_operation): Likewise.
9040 (expand_sync_lock_test_and_set): Likewise.
9041 (maybe_emit_unop_insn): Likewise. Change icode to an insn_code.
9042 (emit_unop_insn): Likewise.
9043 (expand_copysign_absneg): Change icode to an insn_code.
9044 (create_convert_operand_from_type): New function.
9045 (maybe_legitimize_operand, maybe_legitimize_operands): Likewise.
9046 (maybe_gen_insn, maybe_expand_insn, maybe_expand_jump_insn): Likewise.
9047 (expand_insn, expand_jump_insn): Likewise.
9048 * config/i386/i386.md (setmem<mode>): Use nonmemory_operand rather
9049 than const_int_operand for operand 2.
9050
78fadbab
AK
90512011-03-23 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9052
9053 * dwarf2out.c (const_ok_for_output_1): Print the unspec enum name
9054 if possible.
9055
5f02387d
NF
90562011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9057
9058 * emit-rtl.c (emit_pattern_before_noloc): New function.
9059 (emit_insn_before_noloc, emit_jump_insn_before_noloc): Call it.
9060 (emit_call_insn_before_noloc, emit_debug_insn_before_noloc): Likewise.
9061 (emit_pattern_after_noloc): New function.
9062 (emit_insn_after_noloc, emit_jump_insn_after_noloc): Call it.
9063 (emit_call_insn_after_noloc, emit_debug_insn_after_noloc): Likewise.
9064
fdf3e18a
NF
90652011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9066
9067 * libgcc2.c (__lshrdi3, __ashldi3, __ashrdi3): Use W_TYPE_SIZE.
9068 (__ffsDI2): Likewise.
9069
42d085c1
RH
90702011-03-22 Richard Henderson <rth@redhat.com>
9071
9072 * config/alpha/alpha.c (direct_return): Use TARGET_ABI_OSF instead
9073 of !TARGET_ABI_OPEN_VMS.
9074 (alpha_trampoline_init, alpha_start_function): Likewise.
9075 (alpha_expand_epilogue, alpha_file_start): Likewise.
9076 * config/alpha/alpha.md (divsi3, modsi3): Likewise.
9077 (udivsi3, umodsi3, divdi3, moddi3, udivdi3, umoddi3): Likewise.
9078 (*divmodsi_internal_er, *divmodsi_internal_er_1): Likewise.
9079 (*divmodsi_internal, *divmoddi_internal_er): Likewise.
9080 (*divmoddi_internal_er_1, *divmoddi_internal): Likewise.
9081
cabbe12a
JM
90822011-03-22 Joseph Myers <joseph@codesourcery.com>
9083
9084 * config/s390/s390-opts.h: New.
9085 * config/s390/s390.c (s390_tune, s390_tune_flags, s390_arch,
9086 s390_arch_flags, s390_warn_framesize, s390_stack_size,
9087 s390_stack_guard): Remove.
9088 (s390_handle_arch_option): Return void. Take enum
9089 s390_arch_option value instead of string and searching array.
9090 (s390_handle_option): Don't assert that global structures are in
9091 use. Access variables via opts pointer. Use error_at. Don't use
9092 sscanf for -mstack-guard= or -mstack-size=. Update call to
9093 s390_handle_arch_option.
9094 (s390_option_override): Update call to s390_handle_arch_option.
9095 (s390_emit_prologue): Use %d format for s390_stack_size in
9096 diagnostic. Use %wd for HOST_WIDE_INT.
9097 * config/s390/s390.h (enum processor_type): Move to s390-opts.h.
9098 (s390_tune, s390_tune_flags, s390_arch, s390_arch_flags): Remove.
9099 * config/s390/s390.opt (config/s390/s390-opts.h): New
9100 HeaderInclude entry.
9101 (s390_arch_string, s390_tune, s390_tune_flags, s390_arch,
9102 s390_arch_flags, s390_warn_framesize): New Variable entries.
9103 (s390_arch_option): New Enum and EnumValue entries.
9104 (march=): Use Enum instead of Var.
9105 (mstack-guard=, mstack-size=): Use UInteger and Var.
9106 (mtune=): Use Enum.
9107
05b12036
JM
91082011-03-22 Joseph Myers <joseph@codesourcery.com>
9109
9110 * config/score/score.c (score_handle_option): Don't assert that
9111 global structures are in use. Access target_flags via opts
9112 pointer. Use value of -march= option to determine target_flags
9113 settings.
9114 * config/score/score.opt (march=): Use Enum.
9115 (score_arch): New Enum and EnumValue entries.
9116
dd51e35a
JM
91172011-03-22 Joseph Myers <joseph@codesourcery.com>
9118
9119 * config/mep/mep.c (option_mtiny_specified): Remove.
9120 (mep_option_override): Move register handling for -mivc2 from
9121 mep_handle_option. Use global_options_set.x_mep_tiny_cutoff
9122 instead of option_mtiny_specified.
9123 (mep_handle_option): Access target_flags via opts pointer. Don't
9124 assert that global structures are in use. Defer part of -mivc2
9125 handling and move it to mep_option_override.
9126 * config/mep/mep.opt (IVC2): New Mask entry.
9127 (mivc2): Use Var and Defer instead of Mask.
9128
4a8d3d91
JM
91292011-03-22 Joseph Myers <joseph@codesourcery.com>
9130
9131 * config/v850/v850-opts.h: New.
9132 * config/v850/v850.c (small_memory): Replace with
9133 small_memory_physical_max array. Make that array static const.
9134 (v850_handle_memory_option): Take integer value of argument. Take
9135 gcc_options pointer, option text and location. Return void.
9136 Update for changes to small memory structures.
9137 (v850_handle_option): Access target_flags via opts pointer. Don't
9138 assert that global structures are in use. Update calls to
9139 v850_handle_memory_option.
c78dd519
UB
9140 (v850_encode_data_area): Update references to small memory settings.
9141 * config/v850/v850.h (struct small_memory_info, small_memory): Remove.
4a8d3d91
JM
9142 (enum small_memory_type): Move to v850-opts.h.
9143 * config/v850/v850.opt (config/v850/v850-opts.h): New
9144 HeaderInclude entry.
9145 (small_memory_max): New Variable entry.
9146 (msda): Replace by pair of options msda= and msda-. Use UInteger.
9147 (mtda, mzda): Likewise.
9148
117fdbfa
JM
91492011-03-22 Joseph Myers <joseph@codesourcery.com>
9150
9151 * config/sh/sh.c (sh_handle_option): Access target_flags via opts
9152 pointer. Don't assert that global structures are in use.
9153
d715091c
JM
91542011-03-22 Joseph Myers <joseph@codesourcery.com>
9155
9156 * config/pdp11/pdp11.c (pdp11_handle_option): Access target_flags
9157 via opts pointer. Don't assert that global structures are in use.
9158
1bb721dc
JM
91592011-03-22 Joseph Myers <joseph@codesourcery.com>
9160
9161 * config/pa/pa-hpux.opt (flag_pa_unix): New Variable entry.
9162 (munix=93): Use Var.
9163 * config/pa/pa-hpux1010.opt (munix=95): Use Var.
9164 * config/pa/pa-hpux1111.opt (munix=98): Use Var.
9165 * config/pa/pa-opts.h: New.
9166 * config/pa/pa.c (pa_cpu, flag_pa_unix): Remove.
9167 (pa_handle_option): Don't assert that global structures are in
9168 use. Access target_flags via opts pointer. Don't handle
9169 OPT_mschedule_, OPT_mfixed_range_, OPT_munix_93, OPT_munix_95 or
9170 OPT_munix_98 here.
9171 (pa_option_override): Handle deferred OPT_mfixed_range_.
9172
cd8d8754
JM
91732011-03-22 Joseph Myers <joseph@codesourcery.com>
9174
9175 * config/mn10300/mn10300-opts.h: New.
9176 * config/mn10300/mn10300.c (mn10300_processor,
9177 mn10300_tune_string): Remove.
9178 (mn10300_handle_option): Don't assert that global structures are
9179 in use. Access mn10300_processor via opts pointer. Don't handle
9180 OPT_mtune_ here.
9181 * config/mn10300/mn10300.h (enum processor_type): Move to
9182 mn10300-opts.h.
9183 (mn10300_processor): Remove.
9184 * config/mn10300/mn10300.opt (config/mn10300/mn10300-opts.h): New
9185 HeaderInclude entry.
9186 (mn10300_processor): New Variable entry.
9187 (mtune=): Use Var.
9188
24e6e6b1
JM
91892011-03-22 Joseph Myers <joseph@codesourcery.com>
9190
9191 * config/microblaze/microblaze.c: Don't include opts.h.
9192 (microblaze_handle_option, TARGET_HANDLE_OPTION): Remove.
9193 * config/microblaze/microblaze.opt (mxl-stack-check): Use Warn.
9194 (mno-clearbss): Use Var and Warn.
9195
8a784afb
JM
91962011-03-22 Joseph Myers <joseph@codesourcery.com>
9197
9198 * config/m32r/m32r-opts.h: New.
9199 * config/m32r/m32r.c (m32r_model, m32r_sdata): Remove.
9200 (m32r_handle_option): Don't assert that global structures are in
9201 use. Access target_flags and m32r_cache_flush_func via opts
9202 pointer. Don't handle OPT_mmodel_, OPT_msdata_ or
9203 OPT_mno_flush_trap here.
9204 * config/m32r/m32r.h (Code Models, Small Data Area): Replace by
9205 include of m32r-opts.h.
9206 * config/m32r/m32r.opt (config/m32r/m32r-opts.h): New
9207 HeaderInclude entry.
9208 (m32r_model_selected, m32r_sdata_selected): New Variable entries.
9209 (mmodel=): Use Enum and Var.
9210 (m32r_model): New Enum and EnumValue entries.
9211 (mno-flush-trap): Use Var.
9212 (msdata=): Use Enum and Var.
9213 (m32r_sdata): New Enum and EnumValue entries.
9214
bbfc9a8c
JM
92152011-03-22 Joseph Myers <joseph@codesourcery.com>
9216
9217 * config/m32c/m32c.c: Don't include opts.h.
9218 (target_memregs, target_memregs_set, TARGET_HANDLE_OPTION,
9219 m32c_handle_option): Remove.
9220 (m32c_option_override): Check global_options_set.x_target_memregs
9221 instead of target_memregs_set.
9222 * config/m32c/m32c.h (target_memregs): Remove.
9223 * config/m32c/m32c.opt (memregs=): Use UInteger with integer
9224 variable.
9225
e24b8335
JM
92262011-03-22 Joseph Myers <joseph@codesourcery.com>
9227
9228 * config/iq2000/iq2000-opts.h: New.
9229 * config/iq2000/iq2000.c: Don't include opts.h.
9230 (iq2000_tune, iq2000_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 9231 * config/iq2000/iq2000.h (enum processor_type, iq2000_tune): Remove.
e24b8335
JM
9232 * config/iq2000/iq2000.opt (config/iq2000/iq2000-opts.h): New
9233 HeaderInclude entry.
9234 (iq2000_tune): New Variable entry.
9235 (march=): Add comment. Use Enum.
9236 (iq2000_arch): New Enum and EnumValue entries.
9237 (mcpu=): Use Enum and Var.
9238 (iq2000_tune): New Enum and EnumValue entries.
9239
e6cc0c98
JM
92402011-03-22 Joseph Myers <joseph@codesourcery.com>
9241
9242 * config/ia64/ia64-opts.h: New.
9243 * config/ia64/ia64.c (ia64_tune): Remove.
9244 (ia64_handle_option): Don't handle OPT_mfixed_range_ or OPT_mtune_
9245 here. Use error_at.
9246 (ia64_option_override): Handle deferred OPT_mfixed_range_.
9247 * config/ia64/ia64.h (enum processor_type, ia64_tune): Remove.
9248 * config/ia64/ia64.opt (config/ia64/ia64-opts.h): New
9249 HeaderInclude entry.
9250 (ia64_tune): New Variable entry.
9251 (mfixed-range=): Use Defer and Var.
9252 (mtune=): Use Enum and Var.
9253 (ia64_tune): New Enum and EnumValue entries.
9254
db25893c
JM
92552011-03-22 Joseph Myers <joseph@codesourcery.com>
9256
9257 * config/frv/frv-opts.h: New.
9258 * config/frv/frv-protos.h (enum frv_cpu, frv_cpu_t): Move to
9259 frv-opts.h.
9260 (frv_cpu_type): Remove.
9261 * config/frv/frv.c: Don't include opts.h.
9262 (frv_cpu_type, frv_handle_option, TARGET_HANDLE_OPTION): Remove.
c78dd519 9263 * config/frv/frv.opt (config/frv/frv-opts.h): New HeaderInclude entry.
db25893c
JM
9264 (frv_cpu_type): New Variable entry.
9265 (frv_cpu): New Enum and EnumValue entries.
9266
6c223f5d
JM
92672011-03-22 Joseph Myers <joseph@codesourcery.com>
9268
9269 * config/cris/cris.c (cris_handle_option): Access target_flags via
9270 opts pointer. Don't assert that global structures are in use.
9271 Don't call CRIS_SUBTARGET_HANDLE_OPTION.
9272 * config/cris/cris.h (CRIS_SUBTARGET_HANDLE_OPTION): Don't define.
9273
bbd399cf
JM
92742011-03-22 Joseph Myers <joseph@codesourcery.com>
9275
9276 * config/bfin/bfin-opts.h: New.
9277 * config/bfin/bfin.c (bfin_lib_id_given, bfin_cpu_type,
9278 bfin_si_revision, bfin_workarounds): Remove.
9279 (bfin_cpus): Make static const.
9280 (bfin_load_pic_reg): Check global_options_set.x_bfin_library_id
9281 not bfin_lib_id_given.
9282 (bfin_handle_option): Don't set bfin_lib_id_given. Access
9283 bfin_cpu_type, bfin_si_revision and bfin_workarounds via opts
c78dd519 9284 pointer. Use error_at. Don't assert that global structures are in use.
bbd399cf
JM
9285 * config/bfin/bfin.h: Include bfin-opts.h.
9286 (enum bfin_cpu_type, bfin_cpu_t): Move to bfin-opts.h.
9287 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): Remove.
9288 * bfin.opt (config/bfin/bfin-opts.h): New HeaderInclude entry.
9289 (bfin_cpu_type, bfin_si_revision, bfin_workarounds): New Variable
9290 entries.
9291
5e1b4d5a
JM
92922011-03-22 Joseph Myers <joseph@codesourcery.com>
9293
9294 * config/arm/arm.opt (mhard-float, msoft-float): Use Alias.
9295 * config/arm/arm.c (arm_handle_option): Don't handle -mhard-float
9296 or -msoft-float here.
9297 * config/arm/arm.h (CPP_SPEC): Handle -mfloat-abi=*, not
9298 -msoft-float and -mhard-float.
c78dd519 9299 (OPTION_DEFAULT_SPECS): Don't handle -mhard-float and -msoft-float.
5e1b4d5a
JM
9300 * config/arm/coff.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9301 msoft-float.
9302 * config/arm/elf.h (ASM_SPEC): Don't handle -mhard-float and
9303 -msoft-float.
9304 (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not msoft-float.
9305 * config/arm/linux-elf.h (MULTILIB_DEFAULTS): Use mfloat-abi=hard,
9306 not mhard-float.
9307 (LIBGCC_SPEC): Don't handle -msoft-float.
9308 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Don't handle
9309 -mhard-float.
9310 * config/arm/pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft, not
9311 msoft-float.
9312 * config/arm/rtems-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Handle
9313 -mfloat-abi=*, not -msoft-float and -mhard-float.
9314 * config/arm/semi.h((ASM_SPEC): Don't handle -mhard-float and
9315 -msoft-float.
9316 * config/arm/t-arm-elf (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS):
9317 Use mfloat-abi=hard and mfloat-abi=soft in comments, not
9318 mhard-float and msoft-float.
9319 * config/arm/t-linux (MULTILIB_OPTIONS): Use mfloat-abi=hard and
9320 mfloat-abi=soft in comments, not mhard-float and msoft-float.
9321 * config/arm/t-rtems (MULTILIB_OPTIONS, MULTILIB_EXCEPTIONS): Use
9322 mfloat-abi=soft and mfloat-abi=hard, not msoft-float and
9323 mhard-float.
9324 * config/arm/t-strongarm-elf (MULTILIB_OPTIONS): Use
9325 mfloat-abi=hard and mfloat-abi=soft, not mhard-float and
9326 msoft-float.
9327 * config/arm/t-wince-pe (MULTILIB_OPTIONS): Use mfloat-abi=hard,
9328 not mhard-float.
9329 * config/arm/wince-pe.h (MULTILIB_DEFAULTS): Use mfloat-abi=soft,
9330 not msoft-float.
9331
800d1de1
RH
93322011-03-22 Richard Henderson <rth@redhat.com>
9333
9334 * config/alpha/alpha.c (alpha_expand_prologue): Don't test
9335 TARGET_ABI_WINDOWS_NT.
9336 (alpha_output_function_end_prologue): Likewise.
9337 * config/alpha/alpha.h (TARGET_ABI_OSF): Likewise.
9338 (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9339 * config/alpha/alpha.md (call, call_value, tablejump): Likewise.
9340 (trap, *movsi_nt_vms): Likewise.
9341 (call_nt, call_value_nt, *call_nt_1, *call_value_nt_1): Remove.
9342 (*tablejump_osf_nt_internal): Remove.
9343 * config/alpha/predicates.md (input_operand): Only test Pmode.
9344
c59ddd2b
JM
93452011-03-22 Joseph Myers <joseph@codesourcery.com>
9346
9347 * config/alpha/alpha.c (alpha_handle_option): Access target_flags
9348 via opts pointer. Use error_at. Don't assert that global
9349 structures are in use.
9350
1333f97f
JM
93512011-03-22 Joseph Myers <joseph@codesourcery.com>
9352
9353 * config/i386/i386.c (ix86_isa_flags_explicit): Remove.
9354 (ix86_handle_option): Access ix86_isa_flags and
9355 ix86_isa_flags_explicit via opts pointer. Don't assert that
9356 global structures are in use.
9357 (ix86_function_specific_save, ix86_function_specific_restore):
9358 Update ix86_isa_flags_explicit field name.
c78dd519 9359 * config/i386/i386.opt (ix86_isa_flags_explicit): New Variable entry.
1333f97f
JM
9360 (ix86_isa_flags_explicit): Rename TargetSave entry to
9361 x_ix86_isa_flags_explicit.
9362
75db85d8
RH
93632011-03-22 Richard Henderson <rth@redhat.com>
9364
9365 * config/alpha/alpha.c (NUM_ARGS): Don't test TARGET_ABI_UNICOSMK.
9366 (alpha_option_override, direct_return): Likewise.
9367 (alpha_arg_partial_bytes, alpha_setup_incoming_varargs): Likewise.
9368 (alpha_va_start, alpha_gimplify_va_arg, alpha_sa_mask): Likewise.
9369 (alpha_sa_size, compute_frame_size, alpha_expand_prologue): Likewise.
9370 (alpha_start_function, alpha_output_function_end_prologue): Likewise.
9371 (alpha_expand_epilogue, alpha_end_function): Likewise.
9372 (alpha_init_libfuncs): Likewise.
9373 (struct machine_function): Remove unicosmk members.
9374 (print_operand) ['t']: Remove.
9375 (unicosmk_must_pass_in_stack, unicosmk_initial_elimination_offset,
9376 unicosmk_output_module_name, unicosmk_output_common,
9377 current_section_align, unicosmk_output_text_section_asm_op,
9378 unicosmk_output_data_section_asm_op, unicosmk_init_sections,
9379 unicosmk_section_type_flags, unicosmk_unique_section,
9380 unicosmk_asm_named_section, unicosmk_insert_attributes,
9381 unicosmk_output_align, unicosmk_defer_case_vector,
9382 unicosmk_output_addr_vec, unicosmk_output_deferred_case_vectors,
9383 SSIB_PREFIX, SSIB_PREFIX_LEN, unicosmk_ssib_name, unicosmk_gen_dsib,
9384 unicosmk_output_ssib, unicosmk_add_call_info_word,
9385 unicosmk_extern_head, unicosmk_output_default_externs,
9386 unicosmk_output_externs, unicosmk_add_extern, unicosmk_dex_list,
9387 unicosmk_dex_count, unicosmk_special_name, unicosmk_need_dex,
9388 unicosmk_output_dex, unicosmk_file_start, unicosmk_file_end): Remove.
9389 * config/alpha/alpha-protos.h: Update.
9390 * config/alpha/alpha.h (TARGET_ABI_OSF): Don't test TARGET_ABI_UNICOSMK.
9391 * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM): Remove.
9392 (UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): Remove.
9393 (mulsi3): Don't test TARGET_ABI_UNICOSMK.
9394 (*mulsi_se, mulvsi3): Likewise.
9395 (divsi3, udivsi3, modsi3, umodsi3, divdi3, udivdi3): Likewise.
9396 (*divmodsi_internal, call, call_value, realign): Likewise.
9397 (moddi3, umoddi3): Likewise; remove duplicate expander.
9398 (moddi3_umk, umoddi3_umk, call_umk, call_value_umk): Remove.
9399 (*call_umk_1, *movsi, umk_laum, umk_lalm, *umk_load_ciw): Remove.
9400 (*movdi_nofix): Remove r/U alternative.
9401 (umk_mismatch_args, arg_home_umk, *call_value_umk): Remove.
9402 * config/alpha/constraints.md ("U"): Remove.
9403 * config/alpha/predicates.md (call_operand"): Don't test
9404 TARGET_ABI_UNICOSMK.
9405
96e45421
JM
94062011-03-22 Joseph Myers <joseph@codesourcery.com>
9407
9408 * target.def (handle_option): Take gcc_options and
9409 cl_decoded_option pointers and location_t.
9410 * doc/tm.texi.in (TARGET_HANDLE_OPTION): Update documentation.
9411 * doc/tm.texi: Regenerate.
9412 * hooks.c (hook_bool_size_t_constcharptr_int_true): Remove.
9413 * hooks.h (hook_bool_size_t_constcharptr_int_true): Don't declare.
9414 * lto-opts.c (lto_reissue_options): Generate option structure for
9415 targetm.handle_option call.
9416 * opts.c (target_handle_option): Update call to
9417 targetm.handle_option. Remove assertions about values now passed
9418 down to hook.
9419 * targhooks.c (default_target_handle_option): New.
9420 * targhooks.h (default_target_handle_option): Declare.
9421 * config/alpha/alpha.c: Include opts.h.
9422 (alpha_handle_option): Update to new hook interface.
9423 * config/arm/arm.c: Include opts.h.
9424 (arm_handle_option): Update to new hook interface.
9425 * config/arm/t-arm (arm.o): Update dependencies.
9426 * config/bfin/bfin.c: Include opts.h.
9427 (bfin_handle_option): Update to new hook interface.
9428 * config/cris/cris.c: Include opts.h.
9429 (cris_handle_option): Update to new hook interface.
9430 * config/frv/frv.c: Include opts.h.
9431 (frv_handle_option): Update to new hook interface.
9432 * config/i386/i386.c: Include opts.h.
9433 (ix86_handle_option): Update to new hook interface.
9434 (ix86_valid_target_attribute_inner_p): Generate option structure
9435 for call to ix86_handle_option.
9436 * config/i386/t-i386 (i386.o): Update dependencies.
9437 * config/ia64/ia64.c: Include opts.h.
9438 (ia64_handle_option): Update to new hook interface.
9439 * config/ia64/t-ia64 (ia64.o): Update dependencies.
9440 * config/iq2000/iq2000.c: Include opts.h.
9441 (iq2000_handle_option): Update to new hook interface.
9442 * config/m32c/m32c.c: Include opts.h.
9443 (m32c_handle_option): Update to new hook interface.
9444 * config/m32r/m32r.c: Include opts.h.
9445 (m32r_handle_option): Update to new hook interface.
9446 * config/m68k/m68k.c: Include opts.h.
9447 (m68k_handle_option): Update to new hook interface.
9448 * config/mep/mep.c: Include opts.h.
9449 (mep_handle_option): Update to new hook interface.
9450 * config/microblaze/microblaze.c: Include opts.h.
9451 (microblaze_handle_option): Update to new hook interface.
9452 * config/mips/mips.c: Include opts.h.
9453 (mips_handle_option): Update to new hook interface.
9454 * config/mn10300/mn10300.c: Include opts.h.
9455 (mn10300_handle_option): Update to new hook interface.
9456 * config/pa/pa.c: Include opts.h.
9457 (pa_handle_option): Update to new hook interface.
9458 * config/pdp11/pdp11.c: Include opts.h.
9459 (pdp11_handle_option): Update to new hook interface.
9460 * config/rs6000/rs6000.c: Include opts.h.
9461 (rs6000_handle_option): Update to new hook interface.
9462 * config/rs6000/t-rs6000 (rs6000.o): Update dependencies.
9463 * config/rx/rx.c: Include opts.h.
9464 (rx_handle_option): Update to new hook interface.
9465 * config/s390/s390.c: Include opts.h.
9466 (s390_handle_option): Update to new hook interface.
9467 * config/score/score.c: Include opts.h.
9468 (score_handle_option): Update to new hook interface.
9469 * config/sh/sh.c: Include opts.h.
9470 (sh_handle_option): Update to new hook interface.
9471 * config/sparc/sparc.c: Include opts.h.
9472 (sparc_handle_option): Update to new hook interface.
9473 * config/v850/v850.c: Include opts.h.
9474 (v850_handle_option): Update to new hook interface.
9475
66017846
JM
94762011-03-22 Joseph Myers <joseph@codesourcery.com>
9477
9478 * gcc.c (driver_unknown_option_callback): Only permit and save
9479 unknown -Wno- options.
9480 (driver_wrong_lang_callback): Save options directly instead of via
9481 driver_unknown_option_callback.
9482
e8b97ccd
EB
94832011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9484
9485 * combine.c (simplify_set): Try harder to find the best CC mode when
9486 simplifying a nested COMPARE on the RHS.
9487
ebb9f8b0
JM
94882011-03-22 Joseph Myers <joseph@codesourcery.com>
9489
9490 * config/alpha/gnu.h: Remove.
9491 * config/arc: Remove directory.
9492 * config/arm/netbsd.h: Remove.
9493 * config/arm/t-pe: Remove.
9494 * config/crx: Remove directory.
9495 * config/i386/netbsd.h: Remove.
9496 * config/m68hc11: Remove directory.
9497 * config/m68k/uclinux-oldabi.h: Remove.
9498 * config/mcore/mcore-pe.h: Remove.
9499 * config/mcore/t-mcore-pe: Remove.
9500 * config/netbsd-aout.h: Remove.
9501 * config/rs6000/gnu.h: Remove.
9502 * config/sh/sh-symbian.h: Remove.
9503 * config/sh/symbian-base.c: Remove.
9504 * config/sh/symbian-c.c: Remove.
9505 * config/sh/symbian-cxx.c: Remove.
9506 * config/sh/symbian-post.h: Remove.
9507 * config/sh/symbian-pre.h: Remove.
9508 * config/sh/t-symbian: Remove.
9509 * config/svr3.h: Remove.
9510 * config/vax/netbsd.h: Remove.
9511 * config.build: Don't handle i[34567]86-*-pe.
9512 * config.gcc: Remove handling of deprecations for most deprecated
9513 targets.
9514 (m68k-*-uclinuxoldabi*): Add to second deprecated list.
9515 (alpha*-*-gnu*, arc-*-elf*, arm*-*-netbsd*, arm-*-pe*, crx-*-elf,
9516 i[34567]86-*-netbsd*, i[34567]86-*-pe, m68hc11-*-*|m6811-*-*,
9517 m68hc12-*-*|m6812-*-*, m68k-*-uclinuxoldabi*, mcore-*-pe*,
9518 powerpc64-*-gnu*, powerpc-*-gnu-gnualtivec*, powerpc-*-gnu*,
9519 sh-*-symbianelf* | sh[12346l]*-*-symbianelf*, vax-*-netbsd*):
9520 Remove cases.
9521 * config.host: Don't handle i[34567]86-*-pe.
9522 * config/rs6000/linux64.h (LINK_OS_GNU_SPEC): Remove.
9523 (ASM_SPEC32): Don't handle -mcall-gnu.
9524 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't handle
9525 -mcall-gnu.
9526 (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC, CPP_SPEC,
9527 STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC): Don't handle -mcall-gnu.
9528 (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9529 LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): Remove.
9530 (SUBTARGET_EXTRA_SPECS): Remove *_gnu specs.
9531 * config/sh/sh-protos.h, config/sh/sh.c: Remove all code
9532 conditional on SYMBIAN.
9533 * configure.ac: Don't handle powerpc*-*-gnu*.
9534 * configure: Regenerate.
9535 * doc/extend.texi (interrupt attribute): Don't mention CRX.
9536 * doc/install-old.texi (m6811, m6812): Don't mention.
9537 * doc/install.texi (arc-*-elf*): Don't document multilib option.
9538 (arc-*-elf, CRX, m6811-elf, m6812-elf): Remove.
9539 (m68k-uclinuxoldabi): Don't mention.
9540 * doc/invoke.texi (ARC Options, CRX Options, M68hc1x Options):
9541 Remove.
9542 (-mcall-gnu): Remove.
9543 * doc/md.texi (CRX Architecture, Motorola 68HC11 & 68HC12
9544 families): Remove constraint documentation.
9545
999a7d80
MS
95462011-03-22 Marius Strobl <marius@FreeBSD.org>
9547
9548 * config/sparc/freebsd.h (CPP_CPU64_DEFAULT_SPEC): Replace with...
9549 (FBSD_TARGET_CPU_CPP_BUILTINS): ...this.
9550 (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
9551
45540bcf
MM
95522011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9553
9554 PR target/48226
9555 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If we see a
9556 vector when peeking at the next token for vector, don't expand the
9557 keywords.
9558
980a0ff4
GJL
95592011-03-21 Georg-Johann Lay <avr@gjlay.de>
9560
9561 * config/avr/avr-protos.h (expand_epilogue): Change prototype
9562 * config/avr/avr.h (struct machine_function): Add field sibcall_fails.
9563 * config/avr/avr.c (init_cumulative_args)
9564 (avr_function_arg_advance): Use it.
9565 * config/avr/avr.c (expand_epilogue): Add bool parameter. Handle
9566 sibcall epilogues.
9567 (TARGET_FUNCTION_OK_FOR_SIBCALL): Define to...
9568 (avr_function_ok_for_sibcall): ...this new function.
9569 (avr_lookup_function_attribute1): New static Function.
9570 (avr_naked_function_p, interrupt_function_p)
9571 (signal_function_p, avr_OS_task_function_p)
9572 (avr_OS_main_function_p): Use it.
9573 * config/avr/avr.md ("sibcall", "sibcall_value")
9574 ("sibcall_epilogue"): New expander.
9575 ("*call_insn", "*call_value_insn"): New insn.
9576 ("call_insn", "call_value_insn"): Remove
9577 ("call", "call_value", "epilogue"): Change expander to handle
9578 sibling calls.
9579
49168734
NC
95802011-03-21 Nick Clifton <nickc@redhat.com>
9581
9582 * doc/invoke.texi (Overall Options): Move closing brace to end of
9583 options list.
9584 (Optimization Options): Add missing @gol.
9585 (Directory Options): Likewise.
9586 (i386 and x86-64 Options): Likewise.
9587 (RS6000 and PowerPC Options): Likewise.
9588 (i386 and x86-64 Windows Options): Likewise.
9589 (V850 Options): Add text missing from descriptions.
9590
bdfe906f
RH
95912011-03-22 Richard Henderson <rth@redhat.com>
9592
9593 * config/avr/avr.c (TARGET_EXCEPT_UNWIND_INFO): New.
9594 (avr_incoming_return_addr_rtx): New.
9595 (emit_push_byte): New.
9596 (expand_prologue): Use it. Remove incorrect dwarf annotation for
9597 SREG, RAMPZ, zero register. Push frame pointer by bytes. Add dwarf
9598 annotation for __prologue_saves__. Fixup dwarf annotation for CFA.
9599 (emit_pop_byte): New.
9600 (expand_epilogue): Use it. Pop frame pointer by bytes.
9601 * config/avr/avr.h (FRAME_POINTER_CFA_OFFSET): Remove.
9602 (INCOMING_RETURN_ADDR_RTX): New.
9603 (INCOMING_FRAME_SP_OFFSET): New.
9604 (ARG_POINTER_CFA_OFFSET): New.
9605 * config/avr/avr.md (*pushqi): Fix mode of auto-inc.
9606 (*pushhi, *pushsi, *pushsf, popqi): Likewise.
9607 (pophi): Remove.
9608
d090a5aa
RH
9609 * dwarf2out.c (dwarf2out_frame_debug_expr) [rule 11]: Handle post_dec.
9610
fdf3e18a
NF
96112011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9612
9613 * system.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Poison.
9614 (FUNCTION_ARG_ADVANCE): Likewise.
9615 * tm.texi.in: Change references to them to hook references.
9616 * tm.texi: Regenerate.
9617 * targhooks.c (default_function_arg): Eliminate check for target
9618 macro.
9619 (default_function_incoming_arg): Likewise.
9620 (default_function_arg_advance): Likewise.
c78dd519 9621 * target.def (function_arg, function_incoming_arg): Change to DEFHOOK.
fdf3e18a
NF
9622 (function_arg_advance): Likewise.
9623 * target-def.h: Eliminate FUNCTION_INCOMING_ARG check.
9624
009d3fcf
NF
96252011-03-22 Nathan Froyd <froydnj@codesourcery.com>
9626
9627 * tree.c (build_call_1): New function.
9628 (build_call_valist, build_call_array_loc, build_call_vec): Call it.
9629
7bec30e1
RG
96302011-03-22 Richard Guenther <rguenther@suse.de>
9631
9632 PR tree-optimization/48228
9633 * tree-vrp.c (vrp_visit_phi_node): Do not stop propagating
9634 for single-arg PHIs.
9635
0b7e851b
AB
96362011-03-22 Andrey Belevantsev <abel@ispras.ru>
9637
9638 PR rtl-optimization/48143
9639 * config/i386/sse.md (*sse2_cvtpd2dq): Add athlon_decode attribute.
9640 (*sse2_cvttpd2dq, sse2_cvtss2sd, *sse2_cvtpd2ps,
9641 sse2_cvtps2pd): Likewise.
9642
d89afca5
AK
96432011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9644
9645 * recog.c (canonicalize_change_group): Use validate_unshare_change.
9646
f471fe72
RG
96472011-03-22 Richard Guenther <rguenther@suse.de>
9648
9649 * gimple.c (gimple_rhs_class_table): POLYNOMIAL_CHREC is not
9650 a valid RHS. Make DOT_PROD_EXPR and REALIGN_LOAD_EXPR ternary.
9651 * tree-cfg.c (verify_gimple_assign_ternary): Allow DOT_PROD_EXPR
9652 and REALIGN_LOAD_EXPR.
9653 (verify_gimple_assign_single): Do not allow POLYNOMIAL_CHREC,
9654 DOT_PROD_EXPR or REALIGN_LOAD_EXPR.
9655 * expr.c (expand_expr_real_1): Move REALIGN_LOAD_EXPR and
9656 DOT_PROD_EXPR case ...
9657 (expand_expr_real_2): ... here.
9658 * gimple-pretty-print.c (dump_ternary_rhs): Handle DOT_PROD_EXPR
9659 and REALIGN_LOAD_EXPR.
9660 * tree-data-ref.c (split_constant_offset): Bail out for all CHRECs.
9661 * tree-vect-loop.c (vect_model_reduction_cost): Handle ternaries.
9662 (vect_create_epilog_for_reduction): Likewise.
9663 (vectorizable_reduction): Likewise.
9664 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Adjust.
9665 * tree-vect-stmts.c (vectorizable_load): Likewise.
9666
f2f81d57
EB
96672011-03-22 Eric Botcazou <ebotcazou@adacore.com>
9668
9669 * gimplify.c (gimplify_cond_expr): Gimplify COMPOUND_EXPR conditions.
9670
ab081dd6
AK
96712011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9672
9673 * config/s390/s390.c (s390_delegitimize_address): Fix offset
9674 handling for PLTOFF/GOTOFF.
9675
6fd5332b
NC
96762011-03-22 Nick Clifton <nickc@redhat.com>
9677
9678 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Remove
9679 trailing backslash from the end of the macro definition.
9680
01841ac0
AK
96812011-03-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9682
9683 * config/s390/s390.c (s390_delegitimize_address): Handle PLTOFF
9684 and PLT unspecs.
9685
2ef6ce06
RS
96862011-03-21 Richard Sandiford <richard.sandiford@linaro.org>
9687
9688 * expr.h (prepare_operand): Move to...
9689 * optabs.h (prepare_operand): ...here and change the insn code
9690 parameter from "int" to "enum insn_code".
9691 (insn_operand_matches): Declare.
9692 * expr.c (init_expr_target): Use insn_operand_matches.
9693 (compress_float_constant): Likewise.
9694 * function.c (safe_insn_predicate, assign_parm_setup_reg): Likewise.
9695 * optabs.c (can_compare_p, prepare_cmp_insn): Likewise.
9696 (emit_cmp_and_jump_insn_1, gen_add2_insn, gen_add3_insn): Likewise.
c78dd519
UB
9697 (have_add2_insn, gen_sub2_insn, gen_sub3_insn, have_sub2_insn):
9698 Likewise.
2ef6ce06
RS
9699 (gen_cond_trap): Likewise.
9700 (prepare_operand): Likewise. Change icode to an insn_code.
9701 (insn_operand_matches): New function.
9702 * reload.c (find_reloads_address_1): Use insn_operand_matches.
9703 * reload1.c (gen_reload): Likewise.
9704 * targhooks.c (default_secondary_reload): Likewise.
9705
9e43ad68
UB
97062011-03-21 Uros Bizjak <ubizjak@gmail.com>
9707
9a96da32
UB
9708 * config/alpha/alpha.md (unspec): New define_c_enum.
9709 (unspecv): Ditto.
9710
97112011-03-21 Uros Bizjak <ubizjak@gmail.com>
9712
9713 PR debug/48214
9e43ad68
UB
9714 * config/alpha/alpha.c (alpha_pad_noreturn): Do not emit an unop
9715 between a call and its CALL_ARG_LOCATION note.
9716
31408f60
EB
97172011-03-21 Eric Botcazou <ebotcazou@adacore.com>
9718
9719 * gimplify.c (gimplify_vla_decl): Set TREE_THIS_NOTRAP flag.
9720
97212011-03-21 Jakub Jelinek <jakub@redhat.com>
126e6609
JJ
9722
9723 PR c/42544
9724 PR c/48197
9725 * c-common.c (shorten_compare): If primopN is first sign-extended
9726 to opN and then zero-extended to result type, set primopN to opN.
9727
9dfd55f5
DJ
97282011-03-21 Daniel Jacobowitz <dan@codesourcery.com>
9729
9730 * config/arm/unwind-arm.c (__gnu_unwind_pr_common): Correct test
9731 for barrier handlers.
9732
f3c33d9d
MM
97332011-03-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9734
9735 * config/rs6000/rs6000.md (UNSPEC_*, UNSPECV_*): Redefine all
9736 UNSPEC constants to be in the unspec enumeration, and redefine
9737 all UNSPECV constants to be in the unspecv enumeration, so that
9738 dumps print which unspec/unspec_volatile this is.
9739 * config/rs6000/vector.md (UNSPEC_*): Ditto.
9740 * config/rs6000/paired.md (UNSPEC_*): Ditto.
9741 * config/rs6000/vsx.md (UNSPEC_*): Ditto.
9742 * config/rs6000/altivec.md (UNSPEC_*, UNSPECV_*): Ditto.
9743 * config/rs6000/dfp.md (UNSPEC_*): Ditto.
9744
9745 * config/rs6000/rs6000.md (UNSPECV_ISYNC, UNSPECV_LWSYNC): Rename
9746 UNSPEC_ISYNC and UNSPEC_HWSYNC to UNSPECV_ISYNC and
9747 UNSPECV_LWSYNC, since these are used as unspec_volatile.
9748 * config/rs6000/sync.md (isync, lwsync): Ditto.
9749
ac43f774
RG
97502011-03-21 Richard Guenther <rguenther@suse.de>
9751
9752 * params.def (lto-min-partition): Fix typo.
9753
411cdbd8
RG
97542011-03-21 Richard Guenther <rguenther@suse.de>
9755
9756 PR c/47939
9757 * c-decl.c (grokdeclarator): Drop to the main variant only
9758 for array types. Drop flag_gen_aux_info check.
9759
1cd9e416
RG
97602011-03-21 Richard Guenther <rguenther@suse.de>
9761
9762 PR translation/47911
9763 * params.def (lto-partitions): Fix typo.
9764 (lto-min-partition): Fix wording.
9765
ada5ad67
AT
97662011-03-21 Andreas Tobler <andreast@fgznet.ch>
9767
9768 * config/rs6000/t-freebsd: Remove duplication from file.
9769
f9613c9a
RG
97702011-03-21 Richard Guenther <rguenther@suse.de>
9771
9772 PR middle-end/47661
9773 * gimple.c (is_gimple_condexpr): Use tree_could_throw_p.
9774
9bfbc1eb
RG
97752011-03-21 Richard Guenther <rguenther@suse.de>
9776
9777 PR lto/48210
9778 * params.def (lto-partitions): Require at least 1 partition.
9779
a2268084
RO
97802011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9781
9782 * gthr-solaris.h: Remove.
9783 * gthr.h (_SOLARIS_THREADS): Don't include gthr-solaris.h, remove.
9784 * config/sol2.h (CPP_SUBTARGET_SPEC): Remove -threads support.
9785 (LIB_SPEC): Likewise.
9786 * config/sol2.opt (threads): Remove.
9e43ad68 9787 * config.gcc (i[34567]86-*-solaris2*): Remove solaris threads support.
a2268084
RO
9788 (sparc*-*-solaris2*): Likewise.
9789 * configure.ac (enable_threads): Enable solaris support.
9790 * configure: Regenerate.
9e43ad68 9791 * doc/invoke.texi (Option Summary, Solaris 2 Options): Remove -threads.
a2268084
RO
9792 * doc/install.texi (Configuration, --enable-threads=lib): Remove
9793 solaris.
9794
c43d9a1b
RO
97952011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9796
9797 * config.gcc: Obsolete *-*-solaris2.8*.
9798 * doc/install.texi (Specific, *-*-solaris2*): Document it.
9799
084239f4
RO
98002011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9801
9802 PR bootstrap/48135
9803 * doc/install.texi (Prerequisites, Perl): Remove Glob.pm
9804 reference. Solaris 8 perl works.
9805
64cadbe7
RO
98062011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9807
9808 PR bootstrap/48135
9809 * doc/install.texi (Prerequisites): Move jar etc. up.
9810 Explain support library version requirements.
9811
eb975109
RO
98122011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9813
9814 PR bootstrap/48135
9815 * doc/install.texi (Prerequisites): Move Perl to build
9816 requirements. Always necessary on Solaris 2 with Sun ld.
9817
8a509ffd
RO
98182011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9819
9820 * doc/install.texi (Specific, alpha*-dec-osf5.1): Update for
9821 binutils 2.21.
9822 (Specific, i?86-*-solaris2.[89]): Likewise.
9823 (Specific, i?86-*-solaris2.10): Likewise.
9824 (Specific, mips-sgi-irix6): Likewise.
9825 (Specific, *-*-solaris2*): Remove Sun Studio download URL.
9826 Update for binutils 2.21.
9827
8fbc58a1
RO
98282011-03-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9829
9830 * configure.ac (gcc_cv_lto_plugin): Fix typo.
9831 Allow -fuse-linker-plugin for non-default plugin linker.
9832 * configure: Regenerate.
9833
7e84ad0b
NP
98342011-03-21 Nicola Pero <nicola.pero@meta-innovation.com>
9835
9836 PR bootstrap/48167
9837 * gengtype.c (files_rules): Added rule for cp/parser.h.
9838
2f36e14b
JJ
98392011-03-21 Jakub Jelinek <jakub@redhat.com>
9840
9841 PR target/48213
9842 * config/s390/s390.c (s390_delegitimize_address): Don't call
9843 lowpart_subreg if orig_x has BLKmode.
9844
62d784f7
KT
98452011-03-21 Kai Tietz <ktietz@redhat.com>
9846
9847 PR target/12171
9e43ad68
UB
9848 * doc/plugins.texi: Adjust documentation for plugin register_callback.
9849 * tree.h (attribute_spec): Add new member affects_type_identity.
9850 * attribs.c (empty_attribute_table): Adjust attribute_spec
9851 initializers.
62d784f7
KT
9852 * config/alpha/alpha.c: Likewise.
9853 * config/arc/arc.c: Likewise.
9854 * config/arm/arm.c: Likewise.
9855 * config/avr/avr.c: Likewise.
9856 * config/bfin/bfin.c: Likewise.
9857 * config/crx/crx.c: Likewise.
9858 * config/darwin.h: Likewise.
9859 * config/h8300/h8300.c: Likewise.
9860 * config/i386/cygming.h: Likewise.
9861 * config/i386/i386.c: Likewise.
9862 * config/ia64/ia64.c: Likewise.
9863 * config/m32c/m32c.c: Likewise.
9864 * config/m32r/m32r.c: Likewise.
9865 * config/m68hc11/m68hc11.c: Likewise.
9866 * config/m68k/m68k.c: Likewise.
9867 * config/mcore/mcore.c: Likewise.
9868 * config/mep/mep.c: Likewise.
9869 * config/microblaze/microblaze.c: Likewise.
9870 * config/mips/mips.c: Likewise.
9871 * config/rs6000/rs6000.c: Likewise.
9872 * config/rx/rx.c: Likewise.
9873 * config/sh/sh.c: Likewise.
9874 * config/sol2.h: Likewise.
9875 * config/sparc/sparc.c: Likewise.
9876 * config/spu/spu.c: Likewise.
9877 * config/stormy16/stormy16.c: Likewise.
9878 * config/v850/v850.c: Likewise.
9879
54833ec0
CLT
98802011-03-21 Chung-Lin Tang <cltang@codesourcery.com>
9881
9882 * simplify-rtx.c (simplify_binary_operation_1): Handle
9883 (xor (and A B) C) case when B and C are both constants.
9884
14a41392
MX
98852011-03-21 Mingjie Xing <mingjie.xing@gmail.com>
9886
9887 * tree-dfa.c (add_referenced_var): Fix typo in comment.
9888
806c3492
EB
98892011-03-20 Eric Botcazou <ebotcazou@adacore.com>
9890
9891 PR bootstrap/48168
9892 * config/sparc/sparc.c (sparc_delegitimize_address): Add new pattern.
9893
65e0a0f3
JJ
98942011-03-20 Jakub Jelinek <jakub@redhat.com>
9895
9896 PR rtl-optimization/48156
9897 * df-core.c (df_get_bb_dirty): Use df_lr if df_live is NULL,
9898 assume df and df_lr are not NULL.
9899
b6a75dda
RR
99002011-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9901
9902 PR debug/48023
9903 * config/arm/arm.c (create_fix_barrier): Do not emit a minipool
9904 between a call and its CALL_ARG_LOCATION note.
9905
5969b52d
KK
99062011-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
9907
9908 PR debug/48178
9909 * config/sh/sh.c (find_barrier): Don't emit a constant pool
9910 between a call and its corresponding CALL_ARG_LOCATION note.
9911
f773c2bd
AS
99122011-03-19 Anatoly Sokolov <aesok@post.ru>
9913
9914 * cfgcleanup.c (mark_effect): Use bitmap_set_range/bitmap_clear_range
9915 instead of loop. Use HARD_REGISTER_NUM_P predicate.
9916 * haifa-sched.c (setup_ref_regs): Ditto.
9917 * caller-save.c (add_used_regs_1): Ditto.
9918 * dse.c (look_for_hardregs): Ditto.
9919 * df-problems.c (df_simulate_one_insn_forwards): Ditto.
9920 * sched-rgn.c (check_live_1): Ditto.
9921
8bf872f9
JM
99222011-03-18 Joseph Myers <joseph@codesourcery.com>
9923
9924 * c-decl.c (diagnose_mismatched_decls): Give an error for
9925 redefining a typedef with variably modified type.
9926
ff8e2159
JM
99272011-03-18 Joseph Myers <joseph@codesourcery.com>
9928
9929 * c-decl.c (grokfield): Don't allow typedefs for structures or
9930 unions with no tag by default.
9931 * doc/extend.texi (Unnamed Fields): Update.
9932
16cc4440
UB
99332011-03-18 Uros Bizjak <ubizjak@gmail.com>
9934
9935 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
9936 Rewrite using indirect functions.
9937 (lwp_slwpcb): Ditto.
9938 * config/i386/sse.md (avx_vextractf128<mode>): Ditto.
9939 (avx_vinsertf128<mode>): Ditto.
9940
e101e12e
AK
99412011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9942
9943 * config/s390/s390.c (s390_delegitimize_address): Handle GOTOFF
9944 unspecs.
9945
4627c7fb
AK
99462011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
9947
9948 * config/s390/s390.c (s390_chunkify_start): Prevent literal pool
9e43ad68 9949 splitting between a call and its corresponding CALL_ARG_LOCATION note.
4627c7fb 9950
2d36b47f
MK
99512011-03-18 Maxim Kuvyrkov <maxim@codesourcery.com>
9952
9953 PR rtl-optimization/48170
9954 * gcse.c (hoist_code): Remove bogus asserts.
9955
2a3d7659
JL
99562011-03-18 Georg-Johann Lay <avr@gjlay.de>
9957
9958 * ira-color.c (assign_hard_reg): Honor LOCAL_REGNO in cost
9959 computation for prologue/epilogue.
9960
34c3ef05
RO
99612011-03-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9962
9963 * Makefile.in (check-consistency): Remove.
9964
81f2b976
JJ
99652011-03-18 Jakub Jelinek <jakub@redhat.com>
9966
9967 PR debug/48176
9968 * dwarf2out.c (dwarf2out_finish): Call output_aranges even when
9969 arange_table_in_use is 0, but either text_section_used or
9970 cold_text_section_used is true. Don't call it if
9971 !info_section_emitted.
9972
68fd7765
AS
99732011-03-18 Anatoly Sokolov <aesok@post.ru>
9974
9975 * config/avr/avr.h (RET_REGISTER, LIBCALL_VALUE,
9976 FUNCTION_VALUE_REGNO_P): Remove.
9977 * config/avr/avr-protos.h (avr_ret_register, avr_libcall_value):
9978 Remove.
9979 * config/avr/avr.c (avr_ret_register): Make static inline.
9980 (avr_function_value_regno_p): New function.
9981 (avr_libcall_value): Make static. Add 'func' argument.
9982 (avr_function_value): Make static. Rename 'func' argument to
9983 'fn_decl_or_type', forward it to avr_libcall_value. Call
9984 avr_ret_register function instead of RET_REGISTER macro.
9985 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
9986
b4ef8aac
JM
99872011-03-18 Jason Merrill <jason@redhat.com>
9988
9989 PR c++/23372
9990 * gimplify.c (gimplify_arg): Strip redundant TARGET_EXPR.
9991
09a52fc3
RG
99922011-03-18 Richard Guenther <rguenther@suse.de>
9993
9994 * doc/install.texi (--enable-gold): Remove.
9995 (--with-plugin-ld): Document.
9996 * doc/invoke.texi (-fuse-linker-plugin): Clarify.
9997
2a3d7659 99982011-03-18 Andrew Pinski <pinskia@gmail.com>
3bf162a0
AP
9999
10000 PR middle-end/47790
10001 * expr.c (optimize_bitfield_assignment_op): Revamp to work
10002 again after expansion changes.
10003
2abbb0fe
CLT
100042011-03-18 Chung-Lin Tang <cltang@codesourcery.com>
10005
10006 * combine.c (try_combine): Do simplification only call of
10007 subst() on i2 even when i1 is present. Update comments.
10008
2efd0aa6
KK
100092011-03-18 Kaz Kojima <kkojima@gcc.gnu.org>
10010
10011 * config/sh/sh.c (sh_delegitimize_address): Handle UNSPEC_SYMOFF
10012 and UNSPEC_PCREL_SYMOFF.
10013
30a49b23
AK
100142011-03-18 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10015
10016 * config/s390/s390.md: Use define_c_enum for the unspec constant
10017 definitions.
10018
419e1853
JJ
100192011-03-18 Richard Henderson <rth@redhat.com>
10020 Jakub Jelinek <jakub@redhat.com>
10021
10022 PR bootstrap/48161
10023 * expr.c (expand_expr_addr_expr_1): Use simplify_gen_binary
10024 instead of gen_rtx_PLUS if EXPAND_SUM or EXPAND_INITIALIZER.
10025
37875856
L
100262011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10027
10028 PR middle-end/47725
10029 * combine.c (cant_combine_insn_p): Don't check zero/sign
10030 extended hard registers.
10031
76069764
L
100322011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10033
10034 PR middle-end/47725
10035 * combine.c (cant_combine_insn_p): Check zero/sign extended
10036 hard registers.
10037
24da2019
AS
100382011-03-17 Anatoly Sokolov <aesok@post.ru>
10039
10040 * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
10041 * config/v850/v850-protos.h (v850_output_addr_const_extra): Remove.
10042 * config/v850/v850.c (v850_output_addr_const_extra): Make static.
10043 Change return type to bool.
10044 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
10045
a82ff31f
JJ
100462011-03-17 Jakub Jelinek <jakub@redhat.com>
10047
8b29c87a
JJ
10048 PR debug/48163
10049 * var-tracking.c (prepare_call_arguments): If CALL target
10050 is a non-SYMBOL_REF CONSTANT_P, just add that into the list as
10051 pc instead of looking it up using cselib_lookup and use
10052 Pmode for it if x has VOIDmode.
10053 * dwarf2out.c (gen_subprogram_die): If also both first and
10054 second CONCAT arguments are VOIDmode, use mode of CONCAT itself.
10055
a82ff31f
JJ
10056 PR debug/48163
10057 * function.c (assign_parms): For data.passed_pointer parms
10058 use MEM of data.entry_parm instead of data.entry_parm itself
10059 as DECL_INCOMING_RTL.
10060 * dwarf2out.c (rtl_for_decl_location): Use DECL_INCOMING_RTL
10061 also when passed and declared mode is the same, DECL_RTL
10062 is a MEM with pseudo as address and DECL_INCOMING_RTL is
10063 a MEM too.
10064
82ce305c
JL
100652011-03-16 Jeff Law <law@redhat.com>
10066
10067 PR rtl-optimization/37273
10068 * ira-costs.c (scan_one_insn): Detect constants living in memory and
10069 handle them like argument loads from stack slots. Do not double
10070 count memory for memory constants and argument loads from stack slots.
10071
fe58e02b
L
100722011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10073
10074 PR debug/48160
10075 * var-tracking.c (prepare_call_arguments): Check SUBREG.
10076
6fc4dbc7
L
100772011-03-17 H.J. Lu <hongjiu.lu@intel.com>
10078
10079 PR target/48171
10080 * config/i386/i386.opt: Add Save to -mavx and -mfma.
10081
db3ed0b3
JJ
100822011-03-17 Jakub Jelinek <jakub@redhat.com>
10083
8054a389
JJ
10084 PR bootstrap/48153
10085 * dwarf2out.c (mem_loc_descriptor) <case ENTRY_VALUE>: Return NULL
10086 if dwarf_strict.
10087 (gen_subprogram_die): Don't add call_site DIEs if dwarf_strict.
10088 Clear call_arg_locations and call_arg_loc_last always.
10089
db3ed0b3
JJ
10090 PR middle-end/48152
10091 * var-tracking.c (prepare_call_arguments): If argument needs to be
10092 passed by reference, adjust argtype and mode.
10093
1bce4ff3
RG
100942011-03-17 Richard Guenther <rguenther@suse.de>
10095
10096 PR middle-end/48134
10097 * tree-ssa.c (insert_debug_temp_for_var_def): If we propagated
10098 a value make sure to fold the statement.
10099
7c71147d
CLT
101002011-03-17 Chung-Lin Tang <cltang@codesourcery.com>
10101
10102 PR target/43872
10103 * config/arm/arm.c (arm_get_frame_offsets): Adjust early
10104 return condition with !cfun->calls_alloca.
10105
0e1ee172
RG
101062011-03-17 Richard Guenther <rguenther@suse.de>
10107
10108 PR bootstrap/48148
10109 * lto-cgraph.c (input_overwrite_node): Clear the abstract
10110 origin for decls in other ltrans units.
10111 (input_varpool_node): Likewise.
10112
f8bce518
RG
101132011-03-17 Richard Guenther <rguenther@suse.de>
10114
10115 PR middle-end/48165
10116 * tree-object-size.c (compute_object_offset): Properly return
10117 the offset operand of MEM_REFs as sizetype.
10118
1b6fa860
JJ
101192011-03-17 Jakub Jelinek <jakub@redhat.com>
10120
dabd47e7
JJ
10121 PR rtl-optimization/48141
10122 * params.def (PARAM_MAX_DSE_ACTIVE_LOCAL_STORES): New.
10123 * dse.c: Include params.h.
10124 (active_local_stores_len): New variable.
10125 (add_wild_read, dse_step1): Clear it when setting active_local_stores
10126 to NULL.
10127 (record_store, check_mem_read_rtx): Decrease it when removing
10128 from the chain.
10129 (scan_insn): Likewise. Increase it when adding to chain, if it
10130 reaches PARAM_MAX_DSE_ACTIVE_LOCAL_STORES limit, set to 1 and
10131 set active_local_stores to NULL before the addition.
10132 * Makefile.in (dse.o): Depend on $(PARAMS_H).
10133
1b6fa860
JJ
10134 PR rtl-optimization/48141
10135 * dse.c (record_store): If no positions are needed in an insn
10136 that cannot be deleted, at least unchain it from active_local_stores.
10137
7b5cb7d6
DS
101382011-03-16 Dodji Seketeli <dodji@redhat.com>
10139
10140 PR debug/47510
10141 * dwarf2out.c (strip_naming_typedef): Factorize out of ...
10142 (lookup_type_die_strip_naming_typedef): ... here.
10143 (get_context_die): Use it.
10144 (gen_typedef_die): Add a DW_AT_{,MIPS_}linkage_name attribute to
10145 the anonymous struct named by the naming typedef.
10146
585e9d9d
L
101472011-03-16 H.J. Lu <hongjiu.lu@intel.com>
10148
10149 PR target/48154
10150 * config/i386/i386.c (ix86_builtin_vectorized_function): Check
10151 TARGET_ROUND for BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10152
6261ab0e
JL
101532011-03-16 Jeff Law <law@redhat.com>
10154
10155 * tree-vrp.c (identify_jump_threads): Slightly simplify type
16cc4440 10156 check for operands of conditional. Allow type to be a pointer.
6261ab0e 10157
0b0081ec
RG
101582011-03-16 Richard Guenther <rguenther@suse.de>
10159
10160 PR tree-optimization/48149
10161 * fold-const.c (fold_binary_loc): Fold
10162 COMPLEX_EXPR <REALPART_EXPR <x>, IMAGPART_EXPR <x>>.
10163
64a3d647
RG
101642011-03-16 Richard Guenther <rguenther@suse.de>
10165
10166 PR tree-optimization/26134
10167 * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle rewriting
10168 complex part accesses to REALPART_EXPR and IMAGPART_EXPR.
10169 (non_rewritable_mem_ref_base): Handle complex type component
10170 accesses, constrain offsets for vector and complex extracts
10171 more properly.
10172
ef13324e
RG
101732011-03-16 Richard Guenther <rguenther@suse.de>
10174
10175 PR tree-optimization/48146
10176 * tree-ssa-sink.c (sink_code_in_bb): Manually update virtual
10177 operands avoiding the need for renaming.
10178
f0eddb90
RG
101792011-03-16 Richard Guenther <rguenther@suse.de>
10180
10181 * gimple-fold.c (maybe_fold_reference): Open-code relevant
10182 constant folding. Move MEM_REF canonicalization first.
10183 Rely on fold_const_aggregate_ref for initializer folding.
10184 * tree-ssa-ccp.c (ccp_fold): Handle constant vector extracts.
10185
e42348b8
JJ
101862011-03-16 Jakub Jelinek <jakub@redhat.com>
10187
29f10e71
JJ
10188 PR middle-end/48136
10189 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Make sure
10190 arg0/arg1 or their arguments are always fold converted to matching
10191 types.
10192
e42348b8
JJ
10193 * var-tracking.c (prepare_call_arguments): Add ATTRIBUTE_UNUSED
10194 to nargs.
10195
55b46574
RO
101962011-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10197
10198 PR lto/46944
10199 * configure.ac (gcc_cv_gld_major_version, gcc_cv_gld_minor):
10200 Handle in-tree gold.
10201 (ld_vers): Extract binutils version for gold.
10202 (gcc_cv_ld_hidden): Handle gold here.
10203 (gcc_cv_lto_plugin): Determine level of linker plugin support.
10204 * configure: Regenerate.
10205 * config.in: Regenerate.
10206 * gcc.c: Only use LTO plugin if HAVE_LTO_PLUGIN > 0, reject
10207 -fuse-linker-plugin otherwise.
10208 (LINK_PLUGIN_SPEC): Define. Extract from LINK_COMMAND_SPEC.
10209 (LINK_COMMAND_SPEC): Use it.
10210 (main): Only look for LTOPLUGINSONAME if HAVE_LTO_PLUGIN > 0.
10211
2b1c5433
JJ
102122011-03-16 Jakub Jelinek <jakub@redhat.com>
10213
c2969d8e
JJ
10214 * emit-rtl.c (try_split): Don't call copy_call_info debug hook.
10215 * calls.c: Remove debug.h include.
10216 (emit_call_1): Don't call virtual_call_token debug hook.
10217 * dwarf2out.c (debug_dcall_section, debug_vcall_section,
10218 dcall_entry, vcall_entry, dcall_table, vcall_table, vcall_insn,
10219 vcall_insn_table, DEBUG_DCALL_SECTION, DEBUG_VCALL_SECTION,
10220 size_of_dcall_table, output_dcall_table, size_of_vcall_table,
10221 output_vcall_table, dwarf2out_direct_call, vcall_insn_table_hash,
10222 vcall_insn_table_eq, store_vcall_insn, lookup_vcall_insn,
10223 dwarf2out_virtual_call_token, dwarf2out_copy_call_info,
10224 dwarf2out_virtual_call): Remove.
10225 (dwarf2_debug_hooks): Remove direct_call, virtual_call_token,
10226 copy_call_info and virtual_call hooks.
10227 (dwarf2out_init): Don't initialize vcall_insn_table,
10228 debug_dcall_section and debug_vcall_section.
10229 (prune_unused_types): Don't mark nodes from dcall_table.
10230 (dwarf2out_finish): Don't output dcall or vcall tables.
10231 * final.c (final_scan_insn): Don't call direct_call or
10232 virtual_call debug hooks.
10233 * debug.h (struct gcc_debug_hooks): Remove direct_call,
10234 virtual_call_token, copy_call_info and virtual_call hooks.
10235 (debug_nothing_uid): Remove prototype.
10236 * sdbout.c (sdb_debug_hooks): Remove direct_call, virtual_call_token,
10237 copy_call_info and virtual_call hooks.
10238 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10239 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
10240 * debug.c (do_nothing_debug_hooks): Likewise.
10241 (debug_nothing_uid): Remove.
10242 * doc/invoke.texi (-fenable-icf-debug): Remove.
10243 * common.opt (-fenable-icf-debug): Likewise.
10244
325f5379
JJ
10245 * calls.c (emit_call_1): Set MEM_EXPR on call's MEM.
10246 * var-tracking.c (prepare_call_arguments): Use MEM_EXPR on
10247 call's MEM. Handle functions returning aggregate through a hidden
10248 first pointer. For virtual calls add clobbered pc to call arguments
10249 chain.
10250 * dwarf2out.c (gen_subprogram_die): Emit
10251 DW_AT_GNU_call_site_target_clobbered if DW_AT_GNU_call_site_target
10252 can't be emitted.
10253
a58a8e4b
JJ
10254 PR debug/45882
10255 * rtl.def (ENTRY_VALUE): Change format from "e" to "0".
10256 * rtl.h (ENTRY_VALUE_EXP): Define.
10257 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle ENTRY_VALUE.
10258 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
10259 * print-rtl.c (print_rtx): Likewise.
10260 * gengtype.c (adjust_field_rtx_def): Likewise.
10261 * var-tracking.c (vt_add_function_parameter): Adjust
10262 gen_rtx_ENTRY_VALUE uses, use ENTRY_VALUE_EXP macro.
10263 * dwarf2out.c (mem_loc_descriptor): Use ENTRY_VALUE_EXP macro.
10264 * cfgexpand.c (expand_debug_expr): If a SSA_NAME without
10265 partition is a default definition of a PARM_DECL, use ENTRY_VALUE
10266 of its DECL_INCOMING_RTL if possible, or its DECL_RTL if set.
10267
2b1c5433
JJ
10268 * final.c (final_scan_insn): Handle NOTE_INSN_CALL_ARG_LOCATION.
10269 Call var_location debug hook even on CALL_INSNs.
10270 (rest_of_clean_state): Don't print NOTE_INSN_CALL_ARG_LOCATION.
10271 * rtl.def (ENTRY_VALUE): New.
10272 * dwarf2out.c: Include cfglayout.h.
10273 (dwarf_stack_op_name, size_of_loc_descr, output_loc_operands,
10274 output_loc_operands_raw): Handle DW_OP_GNU_entry_value.
10275 (struct call_arg_loc_node): New type.
10276 (call_arg_locations, call_arg_loc_last, block_map, call_site_count,
10277 tail_call_site_count): New variables.
10278 (dwarf_tag_name): Handle DW_TAG_GNU_call_site and
10279 DW_TAG_GNU_call_site_parameter.
10280 (dwarf_attr_name): Handle DW_AT_GNU_call_site_value,
10281 DW_AT_GNU_call_site_data_value, DW_AT_GNU_call_site_target,
10282 DW_AT_GNU_call_site_target_clobbered, DW_AT_GNU_tail_call,
10283 DW_AT_GNU_all_tail_call_sites, DW_AT_GNU_all_call_sites
10284 and DW_AT_GNU_all_source_call_sites.
10285 (mem_loc_descriptor): Handle ENTRY_VALUE.
10286 (add_src_coords_attributes): Don't add enything if
10287 DECL_SOURCE_LOCATION is UNKNOWN_LOCATION.
10288 (dwarf2out_abstract_function): Save and clear call_arg_location,
10289 call_site_count and tail_call_site_count around dwarf2out_decl call.
10290 (gen_call_site_die): New function.
10291 (gen_subprogram_die): Emit DW_TAG_GNU_call_site DIEs for call sites.
10292 (gen_lexical_block_die, gen_inlined_subroutine_die): Update block_map.
10293 (dwarf2out_function_decl): Clear call_arg_locations,
10294 call_arg_loc_last, set call_site_count and tail_call_site_count
10295 to -1 and free block_map.
10296 (dwarf2out_var_location): Handle NOTE_INSN_CALL_ARG_LOCATION and
10297 CALL_INSNs. Add NOTE_DURING_CALL_P var location notes even when not
10298 followed by any real instructions.
10299 (dwarf2out_begin_function): Set call_site_count and
10300 tail_call_site_count to 0.
10301 (resolve_addr): If DW_AT_abstract_origin of DW_TAG_GNU_call_site
10302 is dw_val_class_addr, attempt to look it up again, for DECL_EXTERNAL
10303 attempt to force a DIE for it and worst case remove the attribute.
10304 (resolve_one_addr): For TREE_CONSTANT_POOL_ADDRESS_P SYMBOL_REFs
10305 check TREE_ASM_WRITTEN of DECL_INITIAL of the decl instead of
10306 the decl itself.
10307 * var-tracking.c: Include tm_p.h.
10308 (vt_stack_adjustments): For calls call note_register_arguments.
10309 (argument_reg_set): New variable.
10310 (add_stores): For MO_VAL_SET of non-tracked regs from argument_reg_set
10311 ensure the VALUE is resolved.
10312 (call_arguments): New variable.
10313 (prepare_call_arguments): New function.
10314 (add_with_sets): For MO_CALL set u.loc from call_arguments and clear it.
10315 (struct expand_loc_callback_data): Add ignore_cur_loc field.
10316 (vt_expand_loc_callback): If ignore_cur_loc, don't look at cur_loc and
10317 always use the best expression.
10318 (vt_expand_loc): Add ignore_cur_loc argument.
10319 (vt_expand_loc_dummy): Clear ignore_cur_loc field.
10320 (emit_note_insn_var_location): Adjust vt_expand_loc callers.
10321 (emit_notes_in_bb) <case MO_CALL>: Add NOTE_INSN_CALL_ARG_LOCATION
10322 note for all calls.
10323 (vt_add_function_parameter): Use cselib_lookup_from_insn.
10324 If dv is a VALUE, enter into hash table also ENTRY_VALUE for the
10325 argument. Don't call cselib_preserve_only_values and
10326 cselib_reset_table.
10327 (note_register_arguments): New function.
10328 (vt_initialize): Compute argument_reg_set. Call
10329 vt_add_function_parameters before processing basic blocks instead of
10330 afterwards. For calls call prepare_call_arguments before calling
10331 cselib_process_insn.
10332 * print-rtl.c (print_rtx): Handle NOTE_INSN_CALL_ARG_LOCATION.
10333 * Makefile.in (dwarf2out.o): Depend on $(CFGLAYOUT_H).
10334 (var-tracking.o): Depend on $(TM_P_H).
10335 * cfglayout.h (insn_scope): New prototype.
10336 * gengtype.c (adjust_field_rtx_def): Handle NOTE_INSN_CALL_ARG_LOCATION.
10337 * cfglayout.c (insn_scope): No longer static.
10338 * insn-notes.def (CALL_ARG_LOCATION): New.
10339 * calls.c (expand_call, emit_library_call_value_1): Put USEs for
10340 MEM arguments into CALL_INSN_FUNCTION_USAGE unconditionally.
10341 * integrate.c (set_block_origin_self, set_block_abstract_flags): Do
10342 nothing for DECL_EXTERNAL BLOCK_VARS.
10343
9ef13bd0
AM
103442011-03-16 Alan Modra <amodra@gmail.com>
10345
10346 PR target/45844
10347 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Don't
10348 create invalid offset address for vsx splat insn.
10349 * config/rs6000/predicates.md (splat_input_operand): New.
10350 * config/rs6000/vsx.md (vsx_splat_*): Use it.
10351
56b67510
XDL
103522011-03-15 Xinliang David Li <davidxl@google.com>
10353
10354 PR c/47837
10355 * tree-ssa-uninit.c (pred_chain_length_cmp): New function.
10356 (normalize_preds): New function.
10357 (is_use_properly_guarded): Normalize def predicates.
10358
80fffdef
RR
103592011-03-15 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
10360
732f37c6 10361 PR target/46788
80fffdef
RR
10362 * config/arm/arm.md (arm_movtas_ze): Use 'L' instead of 'c'
10363 in the output template.
10364
930672ad
RG
103652011-03-15 Richard Guenther <rguenther@suse.de>
10366
10367 PR middle-end/47650
10368 * tree-pretty-print.c (dump_function_declaration): Properly
10369 dump unprototyped and varargs function types.
10370
c7ee7b45
RG
103712011-03-15 Richard Guenther <rguenther@suse.de>
10372
10373 PR tree-optimization/13954
10374 * tree-ssa-sccvn.c (vn_reference_lookup_3): Look through memcpy
10375 and friends.
10376
b2ad5e37
RG
103772011-03-15 Richard Guenther <rguenther@suse.de>
10378
10379 PR tree-optimization/48037
10380 * tree-ssa.c (maybe_rewrite_mem_ref_base): Rewrite vector
10381 selects into BIT_FIELD_REFs.
10382 (non_rewritable_mem_ref_base): Check if a MEM_REF is a
10383 vector select.
10384
7ee93d4e
JJ
103852011-03-15 Jakub Jelinek <jakub@redhat.com>
10386
10387 PR tree-optimization/48129
10388 * builtins.c (fold_builtin_snprintf): Convert to type of
10389 built_in_decls[BUILT_IN_SNPRINTF] retval instead of
10390 implicit_built_in_decls[BUILT_IN_SNPRINTF] retval.
10391
e106efc7
RG
103922011-03-15 Richard Guenther <rguenther@suse.de>
10393
10394 PR tree-optimization/41490
10395 * tree-ssa-dce.c (propagate_necessity): Handle returns without
10396 value but with VUSE.
10397 * tree-ssa-operands.c (parse_ssa_operands): Add a VUSE on all
10398 return statements.
10399 * tree-ssa-sink.c (statement_sink_location): Fix store sinking.
10400 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Handle virtual PHIs.
10401 * tree-tailcall.c (find_tail_calls): Ignore returns.
10402
17dea42f
RG
104032011-03-15 Richard Guenther <rguenther@suse.de>
10404
10405 PR middle-end/48031
10406 * fold-const.c (fold_indirect_ref_1): Do not create new variable-sized
10407 or variable-indexed array accesses when in gimple form.
10408
01c77a60
RG
104092011-03-15 Richard Guenther <rguenther@suse.de>
10410
16cc4440 10411 * config/i386/i386.c (ix86_emit_swdivsf): Implement more efficiently.
01c77a60 10412
77b0791e
AM
104132011-03-15 Alan Modra <amodra@gmail.com>
10414
10415 PR target/48032
10416 * config/rs6000/rs6000.c (offsettable_ok_by_alignment): Do not
10417 presume symbol_refs without a symbol_ref_decl are suitably
10418 aligned, nor other trees we may see here. Handle anchor symbols.
10419 (legitimate_constant_pool_address_p): Comment. Add mode param.
10420 Check cmodel=medium addresses. Adjust all calls.
10421 (rs6000_emit_move): Don't call offsettable_ok_by_alignment on
10422 creating cmodel=medium optimized access to locals.
10423 * config/rs6000/constraints.md (R): Pass QImode to
10424 legitimate_constant_pool_address_p.
10425 * config/rs6000/predicates.md (input_operand): Pass mode to
10426 legitimate_constant_pool_address_p.
10427 * config/rs6000/rs6000-protos.h (legitimate_constant_pool_address_p):
10428 Update prototype.
10429
35f61ba4
MM
104302011-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
10431
10432 PR target/48053
10433 * config/rs6000/rs6000.md (movdi split for 32-bit): Don't split up
10434 64-bit constants being loaded into registers other than GPRs such
10435 as loading 0 into a VSX register.
10436
07332e6d
RO
104372011-03-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10438
16cc4440 10439 * config/sol2.c (solaris_assemble_visibility): Remove obsolete URLs.
07332e6d 10440
de888d90
JJ
104412011-03-14 Jakub Jelinek <jakub@redhat.com>
10442
ba3ceb2d
JJ
10443 PR middle-end/47917
10444 * builtins.c (fold_builtin_snprintf): New function.
10445 (fold_builtin_3): Call it for BUILT_IN_SNPRINTF.
10446 (fold_builtin_4): Likewise.
10447
2e64f8b8
JJ
10448 PR middle-end/38878
10449 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Add
10450 STRIP_NOPS on arg0 and arg1. When optimizing X +- C == X
10451 and C - X == X also strip nops from +/-/p+ operand.
10452 When optimizing -X == C, fold C to arg0's type.
10453
de888d90
JJ
10454 PR debug/47946
10455 * dwarf2out.c (add_bit_offset_attribute): If bit_offset is negative,
10456 emit it as add_AT_int instead of add_AT_unsigned.
10457
104582011-03-14 Tom Tromey <tromey@redhat.com>
f4e749b4
TT
10459
10460 * unwind-dw2.c: Include sys/sdt.h if it exists.
10461 (_Unwind_DebugHook): Use STAP_PROBE2.
10462 * config.in, configure: Rebuild.
10463 * configure.ac: Check for sys/sdt.h.
10464
d34abfd2
UB
104652011-03-14 Uros Bizjak <ubizjak@gmail.com>
10466
10467 * config/i386/i386.md (ROUND_FLOOR): New constant.
10468 (ROUND_CEIL): Ditto.
10469 (ROUND_TRUNC): Ditto.
10470 (ROUND_MXCSR): Ditto.
10471 (ROUND_NO_EXC): Ditto.
10472 (rint<mode>2): Use new defines instead of numerical constants.
10473 (floor<mode>2): Ditto.
10474 (ceil<mode>2): Ditto.
10475 (btrunc<mode>2): Ditto.
10476 * config/i386/i386-builtin-types.def: Define ROUND function type
10477 aliases.
10478 * config/i386/i386.c (enum ix86_builtins): Add
10479 IX86_BUILTIN_{FLOOR,CEIL,TRUNC,RINT}{PS,PD}{,256} defines.
10480 (struct builtin_description): Add
10481 __builtin_ia32_{floor,ceil,trunc,rint}{pd,ps}{,256} descriptions.
10482 (ix86_expand_sse_round): New static function.
10483 (ix86_expand_args_builtin): Call ix86_expand_sse_round for ROUND
10484 function types.
10485 (ix86_builtin_vectorized_function): Handle
10486 BUILT_IN_{FLOOR,CEIL,TRUNC,RINT}{,F} builtins.
10487
87f9e23d
TT
104882011-03-14 Tom Tromey <tromey@redhat.com>
10489
10490 * c-parser.c (c_parser_asm_string_literal): Clear
10491 warn_overlength_strings.
10492
b3ab9ea2
TT
104932011-03-14 Tom Tromey <tromey@redhat.com>
10494
10495 * c-parser.c (disable_extension_diagnostics): Save
10496 warn_overlength_strings.
10497 (restore_extension_diagnostics): Restore warn_overlength_strings.
10498
6bd73dd8
JJ
104992011-03-14 Jakub Jelinek <jakub@redhat.com>
10500
10501 * BASE-VER: Change to 4.7.0.
10502
7f4d6e1b
RG
105032011-03-14 Richard Guenther <rguenther@suse.de>
10504
10505 PR middle-end/48098
10506 * tree.c (build_vector_from_val): Adjust assert to requirements
10507 and reality.
10508
c6104ef1
JJ
105092011-03-14 Jakub Jelinek <jakub@redhat.com>
10510
10511 PR bootstrap/48102
d34abfd2 10512 * graphite-cloog-compat.h (build_cloog_prog): Remove STATE parameter.
c6104ef1 10513
dfa95e19
AT
105142011-03-14 Andreas Tobler <andreast@fgznet.ch>
10515
f60c2554 10516 * config/rs6000/freebsd.h (RELOCATABLE_NEEDS_FIXUP): Define in
dfa95e19
AT
10517 terms of target_flags_explicit. Adjust copyright year.
10518
10519 * config.gcc: Add FreeBSD PowerPC soft-float libgcc bits.
10520 * config/rs6000/t-freebsd: New file. Add override for
10521 LIB2FUNCS_EXTRA.
10522
bb322018
CD
105232011-03-13 Chris Demetriou <cgd@google.com>
10524
10525 * doc/invoke.texi (-fdiagnostics-show-option): Replace with...
10526 (-fno-diagnostics-show-option): this, to reflect current default.
10527 (-Werror=): Update text about -fno-diagnostics-show-option.
10528
12b1c80b
PB
105292011-03-12 Peter Bergner <bergner@vnet.ibm.com>
10530
10531 PR target/48053
10532 * config/rs6000/predicates.md (easy_vector_constant_add_self,
10533 easy_vector_constant_msb): Do not handle V2DImode and V2DFmode.
10534 * config/rs6000/rs6000.c (const_vector_elt_as_int): Add assert that
10535 mode is not V2DImode or V2DFmode.
10536 (vspltis_constant): Do not handle V2DImode and V2DFmode.
10537 (rs6000_expand_vector_init): Replace copy_to_reg with copy_to_mode_reg.
10538 * config/rs6000/rs6000.md (movdi_internal32): Allow setting VSX
10539 registers to 0.
10540 (movdi_internal64): Likewise.
10541
57d598f7
SP
105422011-03-12 Sebastian Pop <sebastian.pop@amd.com>
10543
10544 PR tree-optimization/47127
10545 * graphite-clast-to-gimple.c (build_cloog_prog): Removed state
10546 parameter.
10547 (set_cloog_options): Same.
10548 (scop_to_clast): Same.
10549 (print_clast_stmt): Do not call cloog_state_malloc and
10550 cloog_state_free.
10551 (print_generated_program): Same.
10552 (gloog): Same.
10553 * graphite-clast-to-gimple.h (cloog_state): Declared.
10554 (scop_to_clast): Adjust declaration.
10555 * graphite.c (cloog_state): Defined here.
10556 (graphite_initialize): Call cloog_state_malloc.
10557 (graphite_finalize): Call cloog_state_free.
10558
f231b5ff
JM
105592011-03-11 Jason Merrill <jason@redhat.com>
10560
10561 * attribs.c (lookup_attribute_spec): Take const_tree.
10562 * tree.h: Adjust.
10563
6a4e2bd5
JM
105642011-03-11 Joseph Myers <joseph@codesourcery.com>
10565
10566 * config/sparc/sparc.c (sparc_option_override): Use
10567 PROCESSOR_NIAGARA2 not PROCESSOR_NIAGARA for "niagara2".
10568
a758fd67
RG
105692011-03-11 Richard Guenther <rguenther@suse.de>
10570
10571 PR tree-optimization/48067
10572 * tree-ssa-math-opts.c (convert_mult_to_fma): Verify the
10573 multiplication result will be only used once on the target
10574 stmt.
10575
03dfda54
RG
105762011-03-11 Richard Guenther <rguenther@suse.de>
10577
10578 * doc/invoke.texi (max-inline-insns-single): Adjust default value.
10579
5f11a50a
RG
105802011-03-11 Richard Guenther <rguenther@suse.de>
10581
10582 PR lto/48073
10583 * tree.c (find_decls_types_r): Do not walk types only reachable
10584 from IDENTIFIER_NODEs.
10585
4074f163
JJ
105862011-03-11 Jakub Jelinek <jakub@redhat.com>
10587
10588 PR middle-end/48044
10589 * ipa.c (cgraph_remove_unreachable_nodes): Enqueue
10590 all vnode->force_output nodes as needed.
10591
30f7cdcd
JM
105922011-03-11 Jason Merrill <jason@redhat.com>
10593
10594 PR c++/48069
10595 * tree.c (type_hash_eq): Use COMPLETE_TYPE_P, not
10596 COMPLETE_OR_UNBOUND_ARRAY_TYPE_P.
10597
62ecfeb8
MJ
105982011-03-11 Martin Jambor <mjambor@suse.cz>
10599
10600 * cgraphunit.c (verify_cgraph_node): Call cgraph_get_node instead of
10601 cgraph_node.
10602
e89e03ab
JJ
106032011-03-11 Jakub Jelinek <jakub@redhat.com>
10604
10605 PR tree-optimization/48063
10606 * ipa-inline.c (cgraph_decide_inlining): Don't try to
10607 inline functions called once if !tree_can_inline_p (node->callers).
10608
efbe978b 106092011-03-11 Chen Liqin <liqin.gcc@gmail.com>
9d6193a7 10610
efbe978b
EB
10611 * config.gcc (score-*-elf): Add extra_parts .., update tmake_file and
10612 extra_objs.
9d6193a7
CL
10613 * config/score/score3.c: Delete.
10614 * config/score/score3.h: Delete.
10615 * config/score/mul-div.S: Delete.
10616 * config/score/sfp-machine.h: Add new file.
10617 * config/score/constraints.md: Add new file.
10618 * config/score/t-score-softfp: Add new file.
efbe978b 10619 * config/score/t-score-elf: Remove score3.o, do not generate multilib.
9d6193a7
CL
10620 * config/score/score7.c (score7_const_ok_for_letter_p): Delete.
10621 (score7_extra_constraint): Delete.
efbe978b 10622 (score7_option_override): Remove unused code.
9d6193a7
CL
10623 * config/score/score.c: Remove score3 and score5 define and code.
10624 * config/score/score.h: Remove score3 and score5 define and code.
efbe978b 10625 * config/score/score.md: Remove score3 template and unusual insn.
9d6193a7
CL
10626 * config/score/score.opt: Remove score3 and score5 options.
10627
5de27cca
JDA
106282011-03-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10629
10630 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Define _REENTRANT
10631 when _HPUX_SOURCE is defined.
10632 (LIB_SPEC): Use -lc instead of -lc_r when -threads is specified.
10633
18d92053
JM
106342011-03-10 Jason Merrill <jason@redhat.com>
10635
10636 PR c++/48029
10637 * stor-layout.c (layout_type): Don't set structural equality
10638 on arrays of incomplete type.
10639 * tree.c (type_hash_eq): Handle comparing them properly.
10640
67a2f76d
JJ
106412011-03-10 Jakub Jelinek <jakub@redhat.com>
10642
10643 PR debug/48043
18d92053 10644 * config/s390/s390.c (s390_delegitimize_address): Make sure the
67a2f76d
JJ
10645 result mode matches original rtl mode.
10646
d845b2f9
NC
106472011-03-10 Nick Clifton <nickc@redhat.com>
10648
10649 * config/rx/rx.md (bitset_in_memory, bitclr_in_memory: Fix timings.
39242686 10650 (andsi3, andsi3_flags): Fix timings for three operand alternative.
d845b2f9 10651
db7ec035
JJ
106522011-03-09 Jakub Jelinek <jakub@redhat.com>
10653
10654 PR rtl-optimization/47866
10655 * expr.c (store_field): If MEM_SCALAR_P (target), don't use
10656 MEM_SET_IN_STRUCT_P (to_rtx, 1), just set MEM_IN_STRUCT_P (to_rtx)
10657 if target wasn't scalar.
10658 * function.c (assign_stack_temp_for_type): Assert that neither
10659 MEM_SCALAR_P nor MEM_IN_STRUCT_P is set previously, set either
10660 MEM_IN_STRUCT_P or MEM_SCALAR_P instead of using MEM_SET_IN_STRUCT_P
10661 macro.
10662 * rtl.h (MEM_SET_IN_STRUCT_P): Removed.
10663
5d304e47
AK
106642011-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10665
10666 * config/s390/s390-protos.h (s390_label_align): New prototype.
10667 * config/s390/s390.c (s390_label_align): New function.
10668 * config/s390/s390.h (LABEL_ALIGN): New target macro definition.
10669
93b826f0
MM
106702011-03-08 Michael Meissner <meissner@linux.vnet.ibm.com>
10671
10672 PR target/47755
10673 * config/rs6000/rs6000.c (easy_altivec_constant): Correctly handle
10674 V2DI/V2DF constants. Only all 0's or all 1's are easy.
10675 (output_vec_const_move): Ditto.
10676
ef78aed6
AS
106772011-03-08 Anatoly Sokolov <aesok@post.ru>
10678
10679 * config/mips/mips.h (PREFERRED_RELOAD_CLASS): Remove macro.
10680 * config/mips/mips-protos.h (mips_preferred_reload_class): Remove.
10681 * config/mips/mips.c (mips_preferred_reload_class): Make static.
10682 Change 'rclass' argument and result type to reg_class_t.
10683 (TARGET_PREFERRED_RELOAD_CLASS): Define.
10684
5f892aa0
GJL
106852011-03-08 Georg-Johann Lay <avr@gjlay.de>
10686
9e43ad68
UB
10687 * config/avr/avr.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
10688 * config/avr/avr.c (TARGET_REGISTER_MOVE_COST)
10689 (TARGET_MEMORY_MOVE_COST): Define.
10690 (avr_register_move_cost, avr_memory_move_cost): New Functions.
5f892aa0 10691
32bd2409
JJ
106922011-03-08 Jakub Jelinek <jakub@redhat.com>
10693
530a4800
JJ
10694 PR debug/47881
10695 * ira.c (ira): Call df_analyze again if delete_trivially_dead_insns
10696 removed anything.
10697
32bd2409
JJ
10698 PR tree-optimization/48022
10699 * fold-const.c (fold_comparison): Don't call fold_overflow_warning
10700 for EQ/NE_EXPR.
10701
c7148991
JJ
107022011-03-07 Jakub Jelinek <jakub@redhat.com>
10703
10704 PR debug/47991
10705 * var-tracking.c (find_use_val): Return NULL for
10706 cui->sets && cui->store_p BLKmode MEMs.
10707
43070a6e
AS
107082011-03-07 Anatoly Sokolov <aesok@post.ru>
10709
10710 * config/stormy16/stormy16.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
10711 Remove.
10712 * config/stormy16/stormy16-protos.h (xstormy16_print_operand,
10713 xstormy16_print_operand_address): Remove.
10714 * config/stormy16/stormy16.c (xstormy16_print_operand,
10715 xstormy16_print_operand_address): Make static.
10716 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
10717
efbe978b 107182011-03-07 Pat Haugen <pthaugen@us.ibm.com>
79eefb0d
PH
10719
10720 PR target/47862
10721 * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
10722 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Undefine
10723 before definition.
10724
cec8ac0b
ZD
107252011-03-07 Zdenek Dvorak <ook@ucw.cz>
10726
10727 PR bootstrap/48000
10728 * cfgloopmanip.c (fix_bb_placements): Return immediately
10729 if FROM is BASE_LOOP's header.
10730
59527282
PW
107312011-03-07 Paul Wögerer <paul_woegerer@mentor.com>
10732
10733 * gimplify.c (gimplify_function_tree): Fix building calls
10734 to __builtin_return_address.
10735
617718f7
AM
107362011-03-07 Alan Modra <amodra@gmail.com>
10737
10738 * config/rs6000/linux.h (TARGET_ASM_FILE_END): Don't define.
10739 * config/rs6000/linux64.h (TARGET_ASM_FILE_END): Don't define.
10740 * config/rs6000/sysv4.h (TARGET_ASM_FILE_END): Define.
10741 * config/rs6000/rs6000-protos.h (init_cumulative_args): Add fndecl and
10742 return_mode args.
10743 * config/rs6000/rs6000.h (CUMULATIVE_ARGS): Add "escapes".
10744 (INIT_CUMULATIVE_ARGS): Pass FNDECL, VOIDmode.
10745 (INIT_CUMULATIVE_INCOMING_ARGS): Pass current_function_decl, VOIDmode.
10746 (INIT_CUMULATIVE_LIBCALL_ARGS): Pass NULL_TREE, MODE.
10747 * config/rs6000/rs6000.c
10748 (rs6000_elf_end_indicate_exec_stack): Rename to..
10749 (rs6000_elf_file_end): ..this. Only call file_end_indicate_exec_stack
10750 for POWERPC_LINUX. Move code emitting .gnu_attribute to here, from..
10751 (rs6000_file_start): ..here.
10752 (rs6000_passes_float, rs6000_passes_vector, rs6000_returns_struct): New
10753 file scope variables.
10754 (call_ABI_of_interest): New function.
10755 (init_cumulative_args): Set above vars when function return value
10756 is a float, vector, or small struct.
10757 (rs6000_function_arg_advance_1): Likewise for function args.
10758 (rs6000_va_start): Set rs6000_passes_float if variable arg function
10759 references float args.
10760
38528d50
MX
107612011-03-07 Mingjie Xing <mingjie.xing@gmail.com>
10762
10763 * doc/cfg.texi: Remove "See" before @ref.
10764 * doc/invoke.texi: Likewise.
10765
f42cf4f4
JM
107662011-03-05 Jason Merrill <jason@redhat.com>
10767
10768 * doc/invoke.texi (C++ Dialect Options): Document ABI v5.
10769
804a304d
AG
107702011-03-05 Anthony Green <green@moxielogic.com>
10771
10772 * config.gcc (moxie-*-elf): Add newlib-stdint.h to tmfile.
10773
634ee309
ZD
107742011-03-05 Zdenek Dvorak <ook@ucw.cz>
10775
10776 PR rtl-optimization/47899
10777 * cfgloopmanip.c (fix_bb_placements): Fix first argument
10778 to flow_loop_nested_p when moving the loop upward.
10779
6fe471c8
RE
107802011-03-05 Richard Earnshaw <rearnsha@arm.com>
10781
10782 PR target/47719
10783 * arm.md (movhi_insn_arch4): Accept any immediate constant.
10784
cc58ceee
JJ
107852011-03-05 Jakub Jelinek <jakub@redhat.com>
10786
10787 PR tree-optimization/47967
10788 * ipa-cp.c (build_const_val): Return NULL instead of creating
10789 VIEW_CONVERT_EXPR for mismatching sizes.
10790 (ipcp_create_replace_map): Return NULL if build_const_val failed.
10791 (ipcp_insert_stage): If ipcp_create_replace_map returns NULL,
10792 give up on versioning.
10793
ea868305
AM
107942011-03-05 Alan Modra <amodra@gmail.com>
10795
10796 PR target/47986
10797 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
10798 full cmodel medium/large lo_sum + high addresses.
10799
bc6ce334
AK
108002011-03-04 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10801
10802 * config/s390/s390.c (s390_decompose_address): Reject non-literal
10803 pool references in UNSPEC_LTREL_OFFSET.
10804
87e7b310
JH
108052011-03-04 Jan Hubicka <jh@suse.cz>
10806
10807 PR lto/47497
10808 * lto-symtab.c (lto_cgraph_replace_node): Do not set thunk.alias.
10809 (lto_symtab_merge_cgraph_nodes_1): Update thunk.alias pointers here.
d34abfd2
UB
10810 * cgraph.h (cgraph_same_body_alias, cgraph_add_thunk):
10811 Add node pointers.
87e7b310
JH
10812 * cgraph.c (cgraph_same_body_alias_1, cgraph_same_body_alias,
10813 cgraph_add_thunk): Add node pointers.
10814 * lto-cgraph.c (lto_output_node): Verify that thunks&aliases are
10815 associated to right node.
10816 (input_node): Update use of cgraph_same_body_alias
10817 and cgraph_add_thunk.
10818
d9c64246
CF
108192011-03-04 Changpeng Fang <changpeng.fang@amd.com>
10820
10821 * config/i386/i386.opt (mprefer-avx128): New flag.
d34abfd2
UB
10822 * config/i386/i386.c (ix86_preferred_simd_mode): Prefer 128-bit AVX
10823 modes when the flag -mprefer-avx128 is on.
d9c64246 10824
08707076
RS
108252011-03-04 Richard Sandiford <richard.sandiford@linaro.org>
10826
10827 * dwarf2out.c (compare_loc_operands): Fix address handling.
10828
52517c81
AM
108292011-03-04 Alan Modra <amodra@gmail.com>
10830
10831 * tree.h (TREE_ADDRESSABLE): Update FUNCTION_DECL comment.
10832
b147c5b9
RG
108332011-03-04 Richard Guenther <rguenther@suse.de>
10834
10835 PR middle-end/47968
10836 * expmed.c (extract_bit_field_1): Prefer vector modes that
10837 vec_extract patterns can handle.
10838
8750672f
RG
108392011-03-04 Richard Guenther <rguenther@suse.de>
10840
10841 PR middle-end/47975
10842 * optabs.c (optab_for_tree_code): Do not use VECTOR_MODE_P.
10843
9eac0f2a
RH
108442011-03-04 Richard Henderson <rth@redhat.com>
10845
10846 * explow.c (emit_stack_save): Remove 'after' parameter.
10847 (emit_stack_restore): Likewise.
10848 * expr.h: Update to match.
10849 * builtins.c, calls.c, stmt.c: Likewise.
10850 * config/alpha/alpha.md, config/avr/avr.md: Likewise.
10851 * config/mips/mips.md, config/pa/pa.md, config/vax/vax.md: Likewise.
10852 * function.c (expand_function_end): Insert the emit_stack_save
10853 sequence before parm_birth_insn instead of after.
10854
dfee1406
UB
108552011-03-03 Uros Bizjak <ubizjak@gmail.com>
10856
10857 * config/i386/sse.md (*avx_pmaddubsw128): Fix mode of VEC_SELECT RTX.
10858 (ssse3_pmaddubsw128): Ditto.
10859 (ssse3_pmaddubsw): Ditto.
10860
f1d4c3de
SE
108612011-03-03 Steve Ellcey <sje@cup.hp.com>
10862
10863 * config/ia64/t-hpux: Add $(srcdir)/unwind-c.c to LIB2ADDEH
10864
71f3a3f5
JJ
108652011-03-03 Jakub Jelinek <jakub@redhat.com>
10866
423ed416
JJ
10867 PR c/47963
10868 * gimplify.c (omp_add_variable): Only call omp_notice_variable
10869 on TYPE_SIZE_UNIT if it is a DECL.
10870
71f3a3f5
JJ
10871 PR debug/47283
10872 * cfgexpand.c (expand_debug_expr) <case MEM_REF>: If MEM_REF
10873 first operand is not is_gimple_mem_ref_addr, try to fold it.
10874 If the operand still isn't is_gimple_mem_ref_addr, clear
10875 MEM_EXPR on op0.
10876
4b1a5c0d
RG
108772011-03-03 Richard Guenther <rguenther@suse.de>
10878
10879 PR middle-end/47283
10880 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Make code
10881 match comment.
10882 (refs_may_alias_p_1): For release branches return true if
10883 we are confused by our input.
10884
b46616fd
AK
108852011-03-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
10886
10887 * config/s390/s390.c (s390_function_value): Rename to ...
10888 (s390_function_and_libcall_value): ... this.
10889 (s390_function_value): New function.
10890 (s390_libcall_value): New function.
dfee1406 10891 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE): Define target hooks.
b46616fd
AK
10892 * config/s390/s390.h (FUNCTION_VALUE, LIBCALL_VALUE): Remove
10893 target macro definitions.
10894 * config/s390/s390-protos.h (s390_function_value): Remove prototype.
10895
46d8fabb
JM
108962011-03-02 Joseph Myers <joseph@codesourcery.com>
10897
10898 * config/i386/freebsd64.h (CC1_SPEC): Define.
10899 * config/i386/linux64.h (CC1_SPEC): Define.
10900 * config/i386/x86-64.h (CC1_SPEC): Don't define.
10901
6b1ce545
AS
109022011-03-02 Anatoly Sokolov <aesok@post.ru>
10903
10904 * config/stormy16/stormy16.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10905 Remove.
10906 * config/stormy16/stormy16.c: Include reload.h.
10907 (xstormy16_memory_move_cost): New function.
10908 (TARGET_MEMORY_MOVE_COST): Define.
10909
34161e98
RS
109102011-03-02 Richard Sandiford <richard.sandiford@linaro.org>
10911
10912 PR rtl-optimization/47925
10913 * cse.c (count_reg_usage): Don't ignore the SET_DEST of instructions
10914 with side effects. Remove the more-specific check for volatile asms.
10915
f60a97cf
AM
109162011-03-02 Alan Modra <amodra@gmail.com>
10917
10918 PR target/47935
10919 * config/rs6000/predicates.md (lwa_operand): Check cmodel medium
10920 toc relative addresses for valid offsets.
10921
f2ca11ca
RG
109222011-03-01 Richard Guenther <rguenther@suse.de>
10923
10924 PR tree-optimization/47890
10925 * tree-vect-loop.c (get_initial_def_for_induction): Set
10926 related stmt properly.
10927
7a00d9ea
RG
109282011-03-01 Richard Guenther <rguenther@suse.de>
10929
10930 PR lto/47924
10931 * lto-streamer.c (lto_record_common_node): Also register
10932 the canonical type.
10933
06c7edcc
RG
109342011-03-01 Richard Guenther <rguenther@suse.de>
10935
10936 PR lto/46911
10937 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10938 Do not stream DECL_ABSTRACT_ORIGIN.
10939 (lto_input_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10940 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10941 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
10942 Do not stream DECL_ABSTRACT_ORIGIN.
10943 (lto_output_ts_block_tree_pointers): Nor BLOCK_SOURCE_LOCATION,
10944 BLOCK_NONLOCALIZED_VARS or BLOCK_ABSTRACT_ORIGIN.
10945
998871e9
AS
109462011-02-28 Anatoly Sokolov <aesok@post.ru>
10947
10948 * config/stormy16/stormy16.h (FUNCTION_VALUE, LIBCALL_VALUE,
10949 FUNCTION_VALUE_REGNO_P): Remove.
b2e2ea67 10950 * config/stormy16/stormy16-protos.h (xstormy16_function_value): Remove.
998871e9
AS
10951 * config/stormy16/stormy16.c (xstormy16_function_value): Make static.
10952 Add 'outgoing' argument.
10953 (xstormy16_libcall_value, xstormy16_function_value_regno_p): New
10954 function.
10955 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
10956 TARGET_FUNCTION_VALUE_REGNO_P): Define.
10957
94369251
KT
109582011-02-28 Kai Tietz <kai.tietz@onevision.com>
10959
10960 PR debug/28047
10961 * dwarf2out.c (file_table_eq): Use filename_cmp instead of strcmp.
10962 (lookup_filename): Likewise.
b2e2ea67 10963 * final.c (remap_debug_filename): Use filename_ncmp instead of strncmp.
94369251 10964
80a832cd
JJ
109652011-02-28 Bernd Schmidt <bernds@codesourcery.com>
10966 Jakub Jelinek <jakub@redhat.com>
10967
10968 PR middle-end/47893
10969 * rtl.h (ASLK_REDUCE_ALIGN, ASLK_RECORD_PAD): Define.
10970 (assign_stack_local_1): Change last argument type to int.
10971 * function.c (assign_stack_local_1): Replace reduce_alignment_ok
10972 argument with kind. If bit ASLK_RECORD_PAD is not set in it,
b2e2ea67 10973 don't record padding space into frame_space_list nor use those areas.
80a832cd
JJ
10974 (assign_stack_local): Adjust caller.
10975 (assign_stack_temp_for_type): Call assign_stack_local_1 instead
10976 of assign_stack_local, pass 0 as last argument.
10977 * caller-save.c (setup_save_areas): Adjust assign_stack_local_1
10978 callers.
10979
1b500976
JJ
109802011-02-28 Jakub Jelinek <jakub@redhat.com>
10981
f61c6f34
JJ
10982 PR debug/47283
10983 * cfgexpand.c (convert_debug_memory_address): Add AS parameter.
10984 Use target address_mode and pointer_mode hooks instead of hardcoded
10985 Pmode and ptr_mode. Handle some simple cases of extending if
10986 POINTERS_EXTEND_UNSIGNED < 0.
10987 (expand_debug_expr) <case MEM_REF, INDIRECT_REF, TARGET_MEM_REF>:
10988 Call convert_debug_memory_address.
10989 (expand_debug_expr) <case ADDR_EXPR>: Pass as to
10990 convert_debug_memory_address.
10991
1b500976
JJ
10992 PR middle-end/46790
10993 * configure.ac (HAVE_LD_EH_GC_SECTIONS_BUG): New test.
10994 * configure: Regenerated.
10995 * config.in: Regenerated.
10996 * varasm.c (default_function_section): Return NULL
b2e2ea67 10997 if HAVE_LD_EH_GC_SECTIONS_BUG and decl has implicit section name.
1b500976 10998
2f2935b6
MJ
109992011-02-28 Martin Jambor <mjambor@suse.cz>
11000
11001 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Fix
11002 the description to match the printed values.
11003
474086eb
RG
110042011-02-28 Richard Guenther <rguenther@suse.de>
11005
11006 * tree-inline.c (tree_function_versioning): Set BLOCK_SUPERCONTEXT
11007 of the copied scope tree.
11008
15bf6f3a
RW
110092011-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11010
11011 * doc/extend.texi (Function Attributes): Avoid deeply (and
11012 wrongly) nested tables.
11013
f6b439c9
JJ
110142011-02-27 Jakub Jelinek <jakub@redhat.com>
11015
11016 PR middle-end/47903
11017 * real.c (real_arithmetic) <case PLUS_EXPR, MINUS_EXPR,
11018 MULT_EXPR, RDIV_EXPR>: Clear padding bits in *r first if
11019 r isn't op0 nor op1.
11020
1d8ca2c7
GJL
110212011-02-23 Georg-Johann Lay <avr@gjlay.de>
11022
11023 * config/avr/avr.md: Remove magic comment for emacs.
11024
593fca4b
GJL
110252011-02-23 Georg-Johann Lay <avr@gjlay.de>
11026
11027 PR target/45261
11028 * config/avr/avr.c (avr_option_override): Use error on bad options.
11029 (avr_help): New function.
11030 (TARGET_HELP): Define.
11031
6609216e
GJL
110322011-02-22 Georg-Johann Lay <avr@gjlay.de>
11033
11034 PR target/42240
11035 * config/avr/avr.c (avr_cannot_modify_jumps_p): New function.
11036 (TARGET_CANNOT_MODIFY_JUMPS_P): Define.
11037
03d458af
GP
110382011-02-26 Gerald Pfeifer <gerald@pfeifer.com>
11039
11040 * doc/invoke.texi (ARC Options): Use CPU instead of cpu.
11041 (ARM Options): Ditto.
11042 (i386 and x86-64 Options): Ditto.
11043 (RX Options): Ditto.
11044 (SPARC Options): Ditto.
11045
1c379b78
TC
110462011-02-26 Tijl Coosemans <tijl@coosemans.org>
11047
11048 * config.gcc (i386-*-freebsd*): Make i486 the default arch on
11049 FreeBSD 6 and later. Generally use cpu generic.
11050
d5ed058c 110512011-02-25 Gerald Pfeifer <gerald@pfeifer.com>
b2e2ea67 11052
d5ed058c
GP
11053 * doc/cpp.texi: Update copyright years.
11054
509d65dd 110552011-02-25 Sebastien Bourdeauducq <sebastien@milkymist.org>
308d39cd 11056
509d65dd 11057 PR target/46898
308d39cd
SB
11058 * config/lm32/lm32.md (ashrsi3): Added needed variable.
11059
509d65dd 110602011-02-25 Jon Beniston <jon@beniston.com>
308d39cd 11061
509d65dd 11062 PR target/46898
308d39cd
SB
11063 * config/lm32/lm32.h (INCOMING_RETURN_ADDR_RTX): New.
11064 * config/lm32/lm32.md (ashlsi3): Remove unused variable.
11065 * config/lm32/lm32.c (TARGET_EXCEPT_UNWIND_INFO): New.
11066 (lm32_block_move_inline): Add type cast to remove warning.
b2e2ea67 11067 (lm32_expand_prologue): Generate fp in a way compatible with dwarf2out.
308d39cd
SB
11068 (gen_int_relational): Move declarations to start of function.
11069
822ba6d7
EB
110702011-02-25 Eric Botcazou <ebotcazou@adacore.com>
11071
11072 PR tree-optimization/45470
11073 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
11074 can throw internally only.
11075 * tree-vect-stmts.c (vectorizable_call): Likewise.
11076
ef795fc2
AS
110772011-02-24 Anatoly Sokolov <aesok@post.ru>
11078
11079 * config/stormy16/stormy16.h (PREFERRED_RELOAD_CLASS,
11080 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
11081 * config/stormy16/stormy16-protos.h
11082 (xstormy16_preferred_reload_class): Remove.
11083 * config/stormy16/stormy16.c (xstormy16_preferred_reload_class): Make
11084 static. Change 'rclass' argument and return type to reg_class_t.
11085 (TARGET_PREFERRED_RELOAD_CLASS,
11086 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
11087
1c3277ee
RG
110882011-02-24 Richard Guenther <rguenther@suse.de>
11089
11090 * lto-streamer-in.c (input_bb): Do not find referenced vars
11091 in debug statements.
11092
67e18edb
JM
110932011-02-23 Jason Merrill <jason@redhat.com>
11094
11095 * common.opt (fabi-version): Document v5 and v6.
11096
b14fad9d
RG
110972011-02-23 Richard Guenther <rguenther@suse.de>
11098
11099 PR tree-optimization/47849
11100 * tree-if-conv.c (main_tree_if_conversion): Free postdom info.
11101
7fcf46f5
JZ
111022011-02-23 Jie Zhang <jie@codesourcery.com>
11103
11104 * opts-common.c (decode_cmdline_option): Print empty string
11105 argument as "" in decoded->orig_option_with_args_text.
11106 * gcc.c (execute): Print empty string argument as ""
11107 in the verbose output.
11108 (do_spec_1): Keep empty string argument.
11109
f85b70fd
NF
111102011-02-23 Nathan Froyd <froydnj@codesourcery.com>
11111
11112 * config.gcc: Declare score-* and crx-* obsolete.
11113
b152a615
JZ
111142011-02-23 Jie Zhang <jie@codesourcery.com>
11115
11116 PR rtl-optimization/47763
11117 * web.c (web_main): Ignore naked clobber when replacing register.
11118
bb6e77bc
AS
111192011-02-22 Anatoly Sokolov <aesok@post.ru>
11120
11121 * config/stormy16/stormy16.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P):
11122 Remove.
11123
68bf6491
SP
111242011-02-22 Sebastian Pop <sebastian.pop@amd.com>
11125
11126 PR doc/47848
11127 * doc/invoke.texi: Do not mention -ftree-loop-if-convert-memory-writes.
11128
88ee1fc7
MS
111292011-02-22 Mike Stump <mikestump@comcast.net>
11130
11131 * acinclude.m4 (gcc_cv_gas_vers): Add -arch ppc for probing darwin
11132 assembler.
11133 * configure: Regenerate.
11134
6042d1dd
CLT
111352011-02-21 Chung-Lin Tang <cltang@codesourcery.com>
11136
11137 PR rtl-optimization/46002
11138 * ira-color.c (update_copy_costs): Change class intersection
11139 test to reg_class_contents[] test of 'hard_regno'.
11140
7de97f9e
JM
111412011-02-21 Joseph Myers <joseph@codesourcery.com>
11142
11143 * config/alpha/osf5.opt (mno-mips-tfile): Mark as Target rather
11144 than Driver option.
11145 * config/hpux11.opt (mt): Likewise.
11146 * config/microblaze/microblaze.opt (mxl-mode-xilkernel): Likewise.
11147 * config/rs6000/xilinx.opt (mno-clearbss, mppcperflib): Likewise.
11148 * config/vax/elf.opt (mno-asm-pic): Likewise.
11149 * config/vms/vms.opt (map, mvms-return-codes): Likewise.
11150
d1d46f9f
MS
111512011-02-21 Mike Stump <mikestump@comcast.net>
11152
11153 PR target/47822
11154 * config/darwin-protos.h (darwin_init_cfstring_builtins): Return a
11155 tree so we can get save the type.
11156 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Reserve builtin slot
11157 for CFString instead of trying to use past the end of the builtins.
11158 * config/i386/i386.c (IX86_BUILTIN_CFSTRING): Likewise.
11159 * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_CFSTRING): Likewise.
11160 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): Likewise.
11161 * config/darwin.c (DARWIN_BUILTIN_CFSTRINGMAKECONSTANTSTRING):
11162 Rename to darwin_builtin_cfstring.
11163 (darwin_init_cfstring_builtins): Return the built type.
11164
23e0d930
UB
111652011-02-21 Uros Bizjak <ubizjak@gmail.com>
11166
11167 PR target/47840
11168 * config/i386/avxintrin.h (_mm256_insert_epi32): Use _mm_insert_epi32.
11169 (_mm256_insert_epi64): Use _mm_insert_epi64.
11170
192997cf
AS
111712011-02-21 Anatoly Sokolov <aesok@post.ru>
11172
11173 * config/stormy16/stormy16.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11174 * config/stormy16/stormy16-protos.h
11175 (xstormy16_mode_dependent_address_p): Remove.
11176 * config/stormy16/stormy16.c (xstormy16_mode_dependent_address_p):
11177 Make static. Change return type to bool. Change argument type to
11178 const_rtx. Remove dead code.
11179 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11180
e292d003
RG
111812011-02-21 Richard Guenther <rguenther@suse.de>
11182
11183 PR lto/47820
11184 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
11185 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11186 (lto_input_ts_block_tree_pointers): Hook a BLOCK into the
11187 TUs context.
23e0d930 11188 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
e292d003
RG
11189 Do not stream DECL_INITIAL for TRANSLATION_UNIT_DECLs.
11190
77f846e9
RG
111912011-02-20 Richard Guenther <rguenther@suse.de>
11192
11193 PR lto/47822
11194 * tree.c (free_lang_data_in_decl): Clean builtins from
11195 the TU decl BLOCK_VARS.
23e0d930 11196
b2cddfc8
AO
111972011-02-19 Alexandre Oliva <aoliva@redhat.com>
11198
11199 PR debug/47620
11200 PR debug/47630
11201 * haifa-sched.c (fix_tick_ready): Skip tick computation
11202 for debug insns.
11203
becf4c11
RG
112042011-02-19 Richard Guenther <rguenther@suse.de>
11205
11206 PR lto/47647
11207 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
11208 Remove lazy BLOCK_VARS streaming.
11209 (lto_input_ts_block_tree_pointers): Likewise.
11210 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
11211
27f98305
JM
112122011-02-19 Joseph Myers <joseph@codesourcery.com>
11213
11214 * config.gcc (i[34567]86-pc-msdosdjgpp*): Use i386/djgpp-stdint.h.
11215
064bf3f4
JM
112162011-02-19 Joseph Myers <joseph@codesourcery.com>
11217
11218 * config/i386/biarch32.h, config/i386/mach.h,
11219 config/rs6000/aix.opt, config/sh/superh64.h: Remove.
11220
9215ddc3
JJ
112212011-02-19 Jakub Jelinek <jakub@redhat.com>
11222
11223 PR target/47800
11224 * config/i386/i386.md (peephole2 for shift and plus): Use
11225 operands[1] original mode in the first insn.
11226
8b021004
MS
112272011-02-18 Mike Stump <mikestump@comcast.net>
11228
65ded153 11229 * config/t-darwin (TM_H): Add dependency on darwin-sections.def.
8b021004 11230
f84ae14c
JH
112312011-02-18 Jan Hubicka <jh@suse.cz>
11232
11233 PR middle-end/47788
65ded153
EB
11234 * ipa-inline.c (compute_inline_parameters): Set disregard_inline_limits
11235 to zero when the function is not inlinable at all.
f84ae14c 11236
eddabc80
JDA
112372011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11238
11239 * config.gcc (hppa[12]*-*-hpux11*): Set extra_parts.
11240 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
11241 pthread_mutex_unlock, pthread_once): Reinstate pthread stubs.
11242 * config/pa/t-pa-hpux11: Add rules to build pthread stubs.
11243 * config/pa/t-pa64: Likewise.
11244 * config/pa/pa-hpux11.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
11245
ca3da783
JJ
112462011-02-18 Jakub Jelinek <jakub@redhat.com>
11247
11248 PR driver/47787
11249 * gcc.c (default_compilers): Clear combinable field for "@cpp-output".
11250
430aa868
JDA
112512011-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11252
11253 PR target/47792
11254 * gthr-dce.h (__gthread_mutx_destroy): Fix typo in name.
11255
4bf7ff7e
AS
112562011-02-18 Anatoly Sokolov <aesok@post.ru>
11257
11258 * config/m32r/m32r.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
11259 RTX_OK_FOR_BASE_P, RTX_OK_FOR_OFFSET_P, LEGITIMATE_OFFSET_ADDRESS_P,
11260 LEGITIMATE_LO_SUM_ADDRESS_P, LOAD_POSTINC_P, STORE_PREINC_PREDEC_P,
11261 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
11262 * config/m32r/m32r.c (TARGET_LEGITIMATE_ADDRESS_P): Define.
11263 (m32r_rtx_ok_for_base_p, m32r_rtx_ok_for_offset_p,
11264 m32r_legitimate_offset_addres_p, m32r_legitimate_lo_sum_addres_p,
11265 m32r_load_postinc_p, m32r_store_preinc_predec_p,
11266 m32r_legitimate_address_p): New functions.
11267 * config/m32r/constraints.md (constraint "S"): Don't use
11268 STORE_PREINC_PREDEC_P.
11269 (constraint "U"): Don't use LOAD_POSTINC_P.
11270
7efcf910
CLT
112712011-02-18 Chung-Lin Tang <cltang@codesourcery.com>
11272
11273 PR rtl-optimization/46178
11274 * ira.c (setup_hard_regno_class): Use ira_class_translate[] to
11275 compute ira_hard_regno_cover_class[].
11276
237d6259
RG
112772011-02-18 Richard Guenther <rguenther@suse.de>
11278
11279 PR lto/47798
11280 * lto-streamer.h (lto_global_var_decls): Declare.
11281 * lto-streamer-in.c (lto_register_var_decl_in_symtab): Register
11282 statics for global var processing.
11283
12d80acc
RG
112842011-02-18 Richard Guenther <rguenther@suse.de>
11285
11286 PR tree-optimization/47737
11287 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): Fix
11288 edge dominance check.
11289
abfea58d
JJ
112902011-02-18 Jakub Jelinek <jakub@redhat.com>
11291
11292 PR debug/47780
11293 * cfgexpand.c (expand_debug_expr) <case SSA_NAME>: Call copy_rtx to
11294 avoid invalid rtx sharing.
11295
f73c8882
GP
112962011-02-18 Gerald Pfeifer <gerald@pfeifer.com>
11297
11298 * doc/cpp.texi (Obsolete Features): Add background on the
11299 origin of assertions.
11300
d764a8e6
IS
113012011-02-17 Iain Sandoe <iains@gcc.gnu.org>
11302
11303 * config/darwin-c.c (darwin_cpp_builtins): Define __OBJC2__ for
23e0d930 11304 objc_abi == 2.
d764a8e6
IS
11305 * config/darwin.c (output_objc_section_asm_op): Added support for
11306 ABI v1 and v2.
11307 (is_objc_metadata): New.
11308 (darwin_objc2_section): New.
11309 (darwin_objc1_section): New.
11310 (machopic_select_section): Added support for ABI v1 and v2.
11311 (darwin_emit_objc_zeroed): New.
11312 (darwin_output_aligned_bss): Detect objc metadata and treat it
11313 appropriately.
11314 (darwin_asm_output_aligned_decl_common): Same.
11315 (darwin_asm_output_aligned_decl_local): Same.
11316 * config/darwin-sections.def: Updated for ABI v1 and v2.
11317 * config/darwin.h (SUBTARGET_C_COMMON_OVERRIDE_OPTIONS): When
11318 compiling Objective-C code for the NeXT runtime, default to using
11319 ABI version 0 for 32-bit, and version 2 for 64-bit.
11320
0a8134ca
JM
113212011-02-17 Joseph Myers <joseph@codesourcery.com>
11322
11323 * common.opt (optimize_fast): New Variable.
11324 * opts.c (default_options_optimization): Use opts->x_optimize_fast
11325 instead of local variable ofast.
11326
0a256240
NP
113272011-02-17 Nicola Pero <nicola.pero@meta-innovation.com>
11328
11329 * doc/invoke.texi (fobjc-abi-version): Documented.
11330 (fobjc-nilcheck): Documented.
11331 (fno-nil-receiver): Updated documentation to refer to the NeXT ABI
11332 version.
11333
fa381cb2
JM
113342011-02-17 Joseph Myers <joseph@codesourcery.com>
11335
11336 PR driver/47390
11337 * common.opt (export-dynamic): New Driver option.
11338 * gcc.c (LINK_COMMAND_SPEC): Add comment about %{e*}.
11339
5437eaa6
JM
113402011-02-17 Joseph Myers <joseph@codesourcery.com>
11341
11342 * config/rx/rx.h (LIB_SPEC): Match -msim not -msim*.
11343
bb7e6d55
AO
113442011-02-17 Alexandre Oliva <aoliva@redhat.com>
11345 Jan Hubicka <jh@suse.cz>
11346
11347 PR debug/47106
11348 PR debug/47402
11349 * cfgexpand.c (account_used_vars_for_block): Remove.
11350 (estimated_stack_frame_size): Use referenced vars.
11351 * tree-inline.c (remap_decl): Only mark VAR_DECLs as referenced
11352 that were referenced in the original function. Test src_fn
11353 rather than cfun. Drop redundant get_var_ann.
11354 (setup_one_parameter): Drop redundant get_var_ann.
11355 (declare_return_variable): Likewise.
11356 (copy_decl_for_dup_finish): Mark VAR_DECLs referenced in src_fn.
11357 (copy_arguments_for_versioning): Drop redundant get_var_ann.
11358 * ipa-inline.c (compute_inline_parameters): Do not compute
11359 disregard_inline_limits here.
bb7e6d55
AO
11360 (compute_inlinable_for_current, pass_inlinable): New.
11361 (pass_inline_parameters): Require PROP_referenced_vars.
11362 * cgraphunit.c (cgraph_process_new_functions): Don't run
23e0d930 11363 compute_inline_parameters explicitly unless function is in SSA form.
bb7e6d55
AO
11364 (cgraph_analyze_function): Set .disregard_inline_limits.
11365 * tree-sra.c (convert_callers): Compute inliner parameters
11366 only for functions already in SSA form.
11367
f181a8a7
JM
113682011-02-17 Joseph Myers <joseph@codesourcery.com>
11369
11370 * config/sparc/sparc.h (CPP_ENDIAN_SPEC): Don't handle
11371 -mlittle-endian-data.
11372
c6869789
JM
113732011-02-17 Joseph Myers <joseph@codesourcery.com>
11374
11375 * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Match -mfpu and
11376 -mno-fpu, not -fpu and -no-fpu.
11377 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): Likewise.
11378 * config/sparc/sparc.h (OPTION_DEFAULT_SPECS): Likewise.
11379
fbf4bfd3
UB
113802011-02-17 Uros Bizjak <ubizjak@gmail.com>
11381
11382 PR target/43653
11383 * config/i386/i386.c (ix86_secondary_reload): Handle SSE
11384 input reload with PLUS RTX.
11385
70be5dc7
JM
113862011-02-16 Joseph Myers <joseph@codesourcery.com>
11387
11388 * config/mips/mips.opt (mno-mdmx): Use Var(TARGET_MDMX, 0) instead
11389 of InverseVar(MDMX).
11390
30b1646e
JM
113912011-02-16 Joseph Myers <joseph@codesourcery.com>
11392
11393 * config/sh/embed-elf.h (LIBGCC_SPEC): Match -m4-340 instead of
11394 --m4-340.
11395
ab7b71e9
JM
113962011-02-16 Joseph Myers <joseph@codesourcery.com>
11397
11398 * config/mn10300/mn10300.opt (mno-crt0): New.
11399
466f3f08
JM
114002011-02-16 Joseph Myers <joseph@codesourcery.com>
11401
11402 * config/m68k/uclinux.opt (static-libc): New Driver option.
11403
8226cd7b
JM
114042011-02-16 Joseph Myers <joseph@codesourcery.com>
11405
11406 * config/m32c/m32c.h (LIB_SPEC): Match -msim not -msim*.
11407
45cab1d7
JM
114082011-02-16 Joseph Myers <joseph@codesourcery.com>
11409
11410 * config/lm32/lm32.h (ASM_SPEC): Use %{muser-enabled} instead of
11411 %{muser-extend-enabled}.
11412
65aab64f
RG
114132011-02-16 Richard Guenther <rguenther@suse.de>
11414
11415 PR tree-optimization/47738
11416 * tree-ssa-loop.c (run_tree_predictive_commoning): Return
11417 the TODO from tree_predictive_commoning.
11418
fc2fa4fb
JL
114192011-02-15 Jeff Law <law@redhat.com>
11420
11421 Revert
11422 2011-01-25 Jeff Law <law@redhat.com>
11423
11424 PR rtl-optimization/37273
11425 * ira-costs.c (scan_one_insn): Detect constants living in memory and
11426 handle them like argument loads from stack slots. Do not double
11427 count memory for memory constants and argument loads from stack slots.
11428
4e380b8e
L
114292011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11430
11431 PR middle-end/47725
11432 * combine.c (cant_combine_insn_p): Revert the last change.
11433
e3a69bb4
MM
114342011-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
11435
11436 PR target/47755
11437 * config/rs6000/predicates.md (easy_vector_constant): Allow V2DI
11438 mode for vector constants. Remove code that checks for TImode.
11439
de650422
AO
114402011-02-15 Alexandre Oliva <aoliva@redhat.com>
11441
11442 PR debug/47106
11443 PR debug/47402
11444 * cgraph.h (compute_inline_parameters): Return void.
11445 * ipa-inline.c (compute_inline_parameters): Adjust.
11446
30925d94
AO
114472011-02-15 Alexandre Oliva <aoliva@redhat.com>
11448
11449 PR debug/47106
11450 PR debug/47402
11451 * tree-inline.h (estimated_stack_frame_size): Take cgraph node
11452 rather than decl.
11453 * cfgexpand.c (estimated_stack_frame_size): Likewise.
11454 * ipa-inline.c (compute_inline_parameters): Adjust.
11455
1b9a784a
AO
114562011-02-15 Alexandre Oliva <aoliva@redhat.com>
11457
11458 PR debug/47106
11459 PR debug/47402
11460 * tree-flow.h (FOR_EACH_REFERENCED_VAR): Add FN argument.
11461 Adjust all users. Pass FN to...
11462 * tree-flow-inline.h (first_referenced_var): ... this. Add
11463 fn argument.
11464 * ipa-struct-reorg.c: Adjust.
11465 * tree-dfa.c: Adjust.
11466 * tree-into-ssa.c: Adjust.
11467 * tree-sra.c: Adjust.
11468 * tree-ssa-alias.c: Adjust.
11469 * tree-ssa-live.c: Adjust.
11470 * tree-ssa.c: Adjust.
11471 * tree-ssanames.c: Adjust.
11472 * tree-tailcall.c: Adjust.
11473
27c6b086
AO
114742011-02-15 Alexandre Oliva <aoliva@redhat.com>
11475
11476 PR debug/47106
11477 PR debug/47402
11478 * tree-flow.h (referenced_var_lookup): Add fn parameter.
11479 Adjust all callers.
11480 * tree-dfa.c (referenced_var_lookup): Use fn instead of cfun.
11481 * tree-flow-inline.h: Adjust.
11482 * gimple-pretty-print.c: Adjust.
11483 * tree-into-ssa.c: Adjust.
11484 * tree-ssa.c: Adjust.
11485 * cfgexpand.c: Adjust.
11486
679e8183
NF
114872011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11488
fbf4bfd3
UB
11489 * config/iq2000/i2000.h (REG_CLASS_FROM_LETTER): Delete.
11490 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11491 (EXTRA_CONSTRAINT): Delete.
11492 * config/iq2000/constraints.md: New file.
11493 * config/iq2000/iq2000.md: Include it.
679e8183
NF
11494 (define_insn ""): Delete.
11495 (movsi_internal2, movhi_internal2, movqi_internal2): Delete
11496 unsupported constraint letters from patterns.
11497 (call_value, call_value_internal1): Likewise.
11498 (call_value_multiple_internal1): Likewise.
11499
a45d420a
NC
115002011-02-15 Nick Clifton <nickc@redhat.com>
11501
11502 * config/mn10300/mn10300.c: Include tm-constrs.h.
11503 (struct liw_data): New data structure describing an LIW candidate
11504 instruction.
11505 (extract_bundle): Use struct liw_data. Allow small integer
11506 operands for some instructions.
11507 (check_liw_constraints): Use struct liw_data. Remove swapped
11508 parameter. Add comments describing the checks. Fix bug when
11509 assigning the source of liw1 to the source of liw2.
11510 (liw_candidate): Delete. Code moved into extract_bundle.
11511 (mn10300_bundle_liw): Use struct liw_data. Check constraints
11512 before swapping.
11513 * config/mn10300/predicates.md (liw_operand): New predicate.
11514 Allows registers and small integer constants.
11515 * config/mn10300/constraints.md (O): New constraint. Accetps
11516 integers in the range -8 to +7 inclusive.
11517 * config/mn10300/mn10300.md (movesi_internal): Add an alternative
11518 for moving a small integer into a register. Give this alternative
11519 LIW attributes.
11520 (addsi3, subsi3, cmpsi, lshrsi3, ashrsi3): Likewise.
11521 (ashlsi3): Likewise, plus give LIW attributes to the alternatives
11522 using the J,K,L and M constraints,
11523 (liw): Remove SI mode on second operands to allow for HI and QI
11524 mode values.
11525 (cmp_liw, liw_cmp): Likewise. Plus fix order of operands in the
11526 instruction.
11527
8a73faf1
L
115282011-02-15 H.J. Lu <hongjiu.lu@intel.com>
11529
11530 PR middle-end/47725
11531 * combine.c (cant_combine_insn_p): Check zero/sign extended
11532 hard registers.
11533
48feba28
RG
115342011-02-15 Richard Guenther <rguenther@suse.de>
11535
11536 PR tree-optimization/47743
11537 * tree-ssa-pre.c (phi_translate_1): If we didn't get a value-number
11538 for a non-type-compatible VN lookup bail out.
11539
ad1c1eeb
NF
115402011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11541
11542 * config/fr30/constraints.md: New file.
11543 * config/fr30/fr30.md: Include it.
11544 * config/fr30/fr30.h (REG_CLASS_FROM_LETTER): Delete.
11545 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11546 (EXTRA_CONSTRAINT): Delete.
11547
49ac143d
NF
115482011-02-15 Nathan Froyd <froydnj@codesourcery.com>
11549
11550 * config/frv/constraints.md: New file.
11551 * config/frv/predicates.md: Include it.
11552 * config/frv/frv.c (reg_class_from_letter): Delete.
11553 (frv_option_override): Don't initialize it.
11554 * config/frv/frv.h (REG_CLASS_FROM_LETTER): Delete.
11555 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_K): Delete.
11556 (CONST_OK_FOR_L, CONST_OK_FOR_M, CONST_OK_FOR_N): Delete.
11557 (CONST_OK_FOR_O, CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11558 (CONST_DOUBLE_OK_FOR_G, CONST_DOUBLE_OK_FOR_H): Delete.
11559 (CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11560 (EXTRA_CONSTRAINT_FOR_Q, EXTRA_CONSTRAINT_FOR_R): Delete.
11561 (EXTRA_CONSTRAINT_FOR_S, EXTRA_CONSTRAINT_FOR_T): Delete.
11562 (EXTRA_CONSTRAINT_FOR_U, EXTRA_CONSTRAINT): Delete.
11563 (EXTRA_MEMORY_CONSTRAINT, CONSTRAINT_LEN): Delete.
11564 (REG_CLASS_FROM_CONSTRAINT): Delete.
11565
c95f9494
JJ
115662011-02-15 Jakub Jelinek <jakub@redhat.com>
11567
11568 PR middle-end/47581
11569 * config/i386/i386.c (ix86_compute_frame_size): Don't align offset
11570 if frame size is 0 in a leaf function.
11571
13aed611
RO
115722011-02-15 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11573
11574 PR pch/14940
11575 * config/alpha/host-osf.c: New file.
11576 * config/alpha/x-osf: New file.
11577 * config.host (alpha*-dec-osf*): Use it.
11578
b09c3081
AS
115792011-02-14 Anatoly Sokolov <aesok@post.ru>
11580
11581 * config/rx/rx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
11582 * config/rx/rx-protos.h (rx_is_mode_dependent_addr): Remove.
11583 * config/xtensa/xtensa.c (rx_is_mode_dependent_addr): Rename to...
11584 (rx_mode_dependent_address_p): ...this. Make static. Change argument
11585 type to const_rtx.
11586 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
11587
d634083b
NF
115882011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11589
11590 * config/stormy16/constraints.md: New file.
11591 * config/stormy16/predicates.md (nonimmediate_nonstack_operand):
11592 Use satisfies_constraint_Q and satisfies_constraint_R.
11593 * config/stormy16/stomry16-protos.h (xstormy16_extra_constraint_p):
11594 Delete.
11595 (xstormy16_legitiamte_address_p): Declare.
11596 * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Delete.
11597 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11598 (EXTRA_CONSTRAINT): Delete.
fbf4bfd3 11599 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
d634083b
NF
11600 Un-staticize.
11601 (xstormy16_extra_constraint_p): Delete.
11602
c7dd803e
EB
116032011-02-14 Eric Botcazou <ebotcazou@adacore.com>
11604
11605 PR tree-optimization/46494
11606 * loop-unroll.c (split_edge_and_insert): Adjust comment.
11607 * loop-init.c (loop_optimizer_finalize): Do not call verify_flow_info.
11608 (pass_rtl_loop_done): Add TODO_verify_flow.
11609 * fwprop.c (pass_rtl_fwprop): Likewise.
11610 * modulo-sched.c (pass_sms): Likewise.
11611 * tree-ssa-dom.c (pass_dominator): Likewise.
11612 * tree-ssa-loop-ch.c (pass_ch): Likewise.
11613 * tree-ssa-loop.c (pass_complete_unrolli): Likewise.
11614 (pass_tree_loop_done): Likewise.
11615 * tree-ssa-pre.c (execute_pre): Likewise.
11616 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
11617 * tree-ssa-sink.c (pass_sink_code): Likewise.
11618 * tree-vrp.c (pass_vrp): Likewise.
11619
c6150df6
NF
116202011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11621
c7dd803e
EB
11622 * config/v850/constraints.md: New file.
11623 * config/v850/v850.md: Include it.
11624 * config/v850/predicates.md (reg_or_0_operand): Use
11625 satisfies_constraint_G.
11626 (special_symbolref_operand): Use satisfies_constraint_K.
11627 * config/v850/v850.h (CONSTANT_ADDRESS_P): Use constraint_satisfied_p.
11628 (GO_IF_LEGITIMATE_ADDRESS): Likewise.
11629 (REG_CLASS_FROM_LETTER, INT_7_BITS, INT_8_BITS): Delete.
11630 (CONST_OK_FOR_P, CONST_OK_FOR_LETTER_P): Delete.
11631 (EXTRA_CONSTRAINT): Delete.
11632 (CONST_OK_FOR_I, CONST_OK_FOR_J): Use insn_const_int_ok_for_constraint.
11633 (CONST_OK_FOR_K, CONST_OK_FOR_L, CONST_OK_FOR_M): Likewise.
11634 (CONST_OK_FOR_N, CONST_OK_FOR_O): Likewise.
c6150df6 11635
30dd1ea3
AS
116362011-02-14 Anatoly Sokolov <aesok@post.ru>
11637
11638 PR target/47696
11639 * config/avr/avr-devices.c (avr_mcu_types): Fix ATmega2560 device
11640 description.
11641
944f4bb3
NF
116422011-02-14 Nathan Froyd <froydnj@codesourcery.com>
11643
11644 * config/mcore/constraints.md: New file.
11645 * config/mcore/mcore.md: Include it.
11646 * config/mcore/mcore.c (reg_class_from_letter): Delete.
11647 * config/mcore/mcore.h (reg_class_from_letter): Delete.
11648 (REG_CLASS_FROM_LETTER): Delete.
11649 (CONST_OK_FOR_I, CONST_OK_FOR_J, CONST_OK_FOR_L): Use
11650 insn_const_int_ok_for_constraint.
11651 (CONST_OK_FOR_K, CONST_OK_FOR_M, CONST_OK_FOR_N): Likewise.
11652 (CONST_OK_FOR_O, CONST_OK_FOR_P): Likewise.
11653 (CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P): Delete.
11654 (EXTRA_CONSTRAINT): Delete.
11655
ad56a54c
RO
116562011-02-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11657
11658 PR ada/41929
11659 * config/sparc/sol2-unwind.h: Include <sys/frame.h>, <sys/stack.h>
11660 (IS_SIGHANDLER): Define.
11661 (sparc64_is_sighandler): New function, split off from
11662 sparc64_fallback_frame_state.
11663 (sparc_is_sighandler): New function, split off from
11664 sparc_fallback_frame_state.
11665 (sparc64_fallback_frame_state): Merge with ...
11666 (sparc_fallback_frame_state): ... this into ...
11667 (MD_FALLBACK_FRAME_STATE_FOR): ... this.
fbf4bfd3
UB
11668 Change new_cfa to long. Remove regs_off, fpu_save_off, fpu_save.
11669 Define nframes, mctx. Use IS_SIGHANDLER, handler_args, mctx, walk
11670 stack instead of hardcoded offsets.
ad56a54c 11671
fbf4bfd3 116722011-02-14 Andriy Gapon <avg@freebsd.org>
67932abf
AG
11673
11674 PR target/45808
11675 * config/freebsd-spec.h (FBSD_LIB_SPEC): Handle the shared case.
11676
029c8f3e
RW
116772011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
11678
11679 * configure: Regenerate.
11680
a016dc83
JM
116812011-02-12 Joseph Myers <joseph@codesourcery.com>
11682
11683 PR driver/45731
11684 * gcc.c (asm_options): Correct spec matching --target-help.
11685
8957a0ec
MJ
116862011-02-12 Martin Jambor <mjambor@suse.cz>
11687
11688 * tree-cfg.c (verify_gimple_call): Return true upon invalid argument
11689 to gimple call error.
11690
6ef828bc
MS
116912011-02-12 Mike Stump <mikestump@comcast.net>
11692
11693 * config/frv/frv.h (TRANSFER_FROM_TRAMPOLINE): Canonicalize
11694 comments in backslash regions.
11695
a4015be5
MS
116962011-02-12 Mike Stump <mikestump@comcast.net>
11697 Jakub Jelinek <jakub@redhat.com>
11698 Iain Sandoe <iains@gcc.gnu.org>
11699
11700 PR target/47324
11701 * dwarf2out.c (output_cfa_loc): When required, apply the
11702 DWARF2_FRAME_REG_OUT macro to adjust register numbers.
11703 (output_loc_sequence): Likewise.
11704 (output_loc_operands_raw): Likewise.
11705 (output_loc_sequence_raw): Likewise.
11706 (output_cfa_loc): Likewise.
11707 (output_loc_list): Suppress register number adjustment when
11708 calling output_loc_sequence()
11709 (output_die): Likewise.
11710
5378dda2
AS
117112011-02-12 Anatoly Sokolov <aesok@post.ru>
11712
11713 * config/xtensa/xtensa.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
11714 Remove macros.
11715 * config/xtensa/xtensa.c (xtensa_register_move_cost,
11716 xtensa_memory_move_cost): New functions.
11717 (TARGET_REGISTER_MOVE_COST, TARGET_REGISTER_MOVE_COST): Define.
11718
f3d533d3
AO
117192011-02-12 Alexandre Oliva <aoliva@redhat.com>
11720
11721 PR lto/47225
11722 * configure.ac (gcc_cv_lto_plugin): Test for liblto_plugin.la
11723 in the current directory.
11724 * configure: Rebuilt.
11725
9d53403c
IS
117262011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11727
11728 * config/darwin.c (darwin_override_options): Add a hunk missed
fbf4bfd3 11729 from the commit of r168571. Trim comment line lengths and
9d53403c
IS
11730 correct indents of the preceding block.
11731
a350a6c8
IS
117322011-02-12 Iain Sandoe <iains@gcc.gnu.org>
11733
11734 * gcc.c (driver_handle_option): Concatenate the argument to -F with
11735 the switch.
11736
bab79a40
JM
117372011-02-11 Joseph Myers <joseph@codesourcery.com>
11738
11739 * common.opt (nostartfiles): New Driver option.
11740
1bbc6693
XDL
117412011-02-11 Xinliang David Li <davidxl@google.com>
11742
11743 PR tree-optimization/47707
11744 * tree-chrec.c (convert_affine_scev): Keep type precision.
11745
1da7d8c0
EB
117462011-02-11 Eric Botcazou <ebotcazou@adacore.com>
11747
11748 PR tree-optimization/47420
11749 * ipa-split.c (visit_bb): Punt on any kind of GIMPLE_RESX.
11750
117512011-02-11 Pat Haugen <pthaugen@us.ibm.com>
3f82421f
PH
11752
11753 PR rtl-optimization/47614
11754 * rtl.h (check_for_inc_dec): Declare.
11755 * dse.c (check_for_inc_dec): Externalize...
11756 * postreload.c (reload_cse_simplify): ...use it before deleting stmt.
11757 (reload_cse_simplify_operands): Don't simplify opnds with side effects.
11758
4df47bca
JM
117592011-02-11 Joseph Myers <joseph@codesourcery.com>
11760
11761 PR driver/47678
11762 * gcc.c (main): Do not compile inputs if there were errors in
11763 option handling.
11764 * opts-common.c (read_cmdline_option): Check for wrong language
11765 after other error checks.
11766
61502ca8
NF
117672011-02-11 Nathan Froyd <froydnj@codesourcery.com>
11768
11769 * cgraph.c: Fix comment typos.
11770 * cgraph.h: Likewise.
11771 * cgraphunit.c: Likewise.
11772 * ipa-cp.c: Likewise.
11773 * ipa-inline.c: Likewise.
11774 * ipa-prop.c: Likewise.
11775 * ipa-pure-const.c: Likewise.
11776 * ipa-ref.c: Likewise.
11777 * ipa-reference.c: Likewise.
11778
b63f974e
JJ
117792011-02-11 Jakub Jelinek <jakub@redhat.com>
11780
d50c5e0c
JJ
11781 PR debug/47684
11782 * tree-predcom.c (single_nonlooparound_use): Ignore debug uses.
b63f974e 11783
6dd2a13c
RO
117842011-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11785
11786 PR testsuite/47400
11787 * doc/sourcebuild.texi (Require Support): Document
11788 dg-require-ascii-locale.
11789
4a087ccf
MX
117902011-02-11 Mingjie Xing <mingjie.xing@gmail.com>
11791
11792 * doc/lto.texi (Write summary): Fix missing parentheses.
11793
a4403164
DD
117942011-02-10 DJ Delorie <dj@redhat.com>
11795
11796 * config/m32c/m32c.c (m32c_option_override): Disable
11797 -fcombine-stack-adjustments until flag value tracking and compare
11798 optimization can be rewritten.
11799
4fac45bd
PB
118002011-02-10 Peter Bergner <bergner@vnet.ibm.com>
11801
11802 * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Change to
11803 PROCESSOR_POWER7.
11804 (PROCESSOR_DEFAULT64): Likewise.
11805
72602cd1
RH
118062011-02-10 Richard Henderson <rth@redhat.com>
11807
11808 * config/rx/predicates.md (rx_zs_comparison_operator): Revert
11809 change from 2011-02-03.
11810 * config/rx/rx.c (flags_from_code): Likewise.
11811 (rx_print_operand) ['B']: For LT/GE, use lt/ge if overflow flag
11812 is valid, n/pz otherwise.
11813 (rx_select_cc_mode): Return CCmode if Y is not zero.
11814
ea57f573
RG
118152011-02-10 Richard Guenther <rguenther@suse.de>
11816
ea4c3e65 11817 * tree-ssa-structalias.c (bitpos_of_field): Use BITS_PER_UNIT, not 8.
ea57f573 11818
92b1d23b
RG
118192011-02-10 Richard Guenther <rguenther@suse.de>
11820
11821 PR tree-optimization/47677
11822 * tree-vrp.c (vrp_bitmap_equal_p): Fix comparison of empty bitmaps.
11823
525a2d06
JJ
118242011-02-10 Jakub Jelinek <jakub@redhat.com>
11825
11826 PR target/47665
11827 * combine.c (make_compound_operation): Only change shifts into
11828 multiplication for SCALAR_INT_MODE_P.
11829
06c969bd
JZ
118302011-02-10 Jie Zhang <jie@codesourcery.com>
11831
11832 PR testsuite/47622
11833 Revert
11834 2011-02-05 Jie Zhang <jie@codesourcery.com>
11835 PR debug/42631
11836 * web.c (entry_register): Don't clobber the number of the
11837 first uninitialized reference in used[].
11838
282ec48e
RG
118392011-02-09 Richard Guenther <rguenther@suse.de>
11840
11841 PR tree-optimization/47664
11842 * ipa-inline.c (cgraph_decide_inlining_incrementally): Visit
11843 all edges again.
11844
df98c3e8
DE
118452011-02-09 David Edelsohn <dje.gcc@gmail.com>
11846
d0f21cd6
DE
11847 PR target/46481
11848 PR target/47032
df98c3e8
DE
11849 * config/rs6000/aix61.h (PROCESSOR_DEFAULT): Change to
11850 PROCESSOR_POWER7.
11851 (PROCESSOR_DEFAULT64): Same.
11852 (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Delete.
11853
67b6839f
RO
118542011-02-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11855
11856 * config/mips/iris6.h (TARGET_C99_FUNCTIONS): Define.
11857
4fd73214
MJ
118582011-02-09 Martin Jambor <mjambor@suse.cz>
11859
11860 PR middle-end/45505
11861 * tree-sra.c (struct access): New flags grp_scalar_read and
11862 grp_scalar_write. Changed description of assignment read and write
11863 flags.
11864 (dump_access): Dump new flags, reorder all of them.
11865 (sort_and_splice_var_accesses): Set the new flag accordingly, use them
11866 to detect multiple scalar reads.
11867 (analyze_access_subtree): Use the new scalar read write flags instead
11868 of the old flags. Adjusted comments.
11869
91140cd3
DD
118702011-02-08 DJ Delorie <dj@redhat.com>
11871
11872 PR target/47548
11873 * config/m32c/m32c.c (m32c_subreg): Don't try to validate interim
11874 patterns.
11875
4254bbfe
JM
118762011-02-08 Joseph Myers <joseph@codesourcery.com>
11877
11878 * config/m68k/uclinux.opt: New.
11879 * config.gcc (m68k-*-uclinux*): Use m68k/uclinux.opt.
11880
f1fda84e
JM
118812011-02-08 Joseph Myers <joseph@codesourcery.com>
11882
11883 * config/cris/elf.opt (sim): New Driver option.
11884
4933ae74
JM
118852011-02-08 Joseph Myers <joseph@codesourcery.com>
11886
11887 * config/xtensa/elf.opt: New.
11888 * config.gcc (xtensa*-*-elf*): Use xtensa/elf.opt.
11889
4ad70280
JM
118902011-02-08 Joseph Myers <joseph@codesourcery.com>
11891
11892 * config/vax/elf.opt: New.
11893 * config.gcc (vax-*-linux*, vax-*-netbsdelf*): Use vax/elf.opt.
11894
20893707
JM
118952011-02-08 Joseph Myers <joseph@codesourcery.com>
11896
11897 * config/rs6000/aix64.opt (posix, pthread): New Driver options.
11898
b8e7038e
JM
118992011-02-08 Joseph Myers <joseph@codesourcery.com>
11900
11901 * config/gnu-user.opt: New.
11902 * config.gcc (*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu |
11903 *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu,
11904 *-*-uclinux*): Use gnu-user.opt.
11905
e1c5225a
TS
119062011-02-08 Thomas Schwinge <thomas@schwinge.name>
11907
11908 * config/gnu.h (CPP_SPEC, LIB_SPEC): Remove handling of -bsd option.
11909 * config/i386/gnu.h (CPP_SPEC): Likewise.
11910
5e46b0c6
ILT
119112011-02-08 Ian Lance Taylor <iant@google.com>
11912
11913 * common.opt (fcx-limited-range): Add SetByCombined flag.
11914 (ffinite-math-only, fmath-errno, frounding-math): Likewise.
11915 (fsignaling-nans, fsigned-zeros, ftrapping-math): Likewise.
11916 (fassociative-math, freciprocal-math): Likewise.
11917 (funsafe-math-optimizations): Likewise.
11918 * opth-gen.awk: Handle SetByCombined.
11919 * optc-gen.awk: Likewise.
ea4c3e65 11920 * opts.c (set_fast_math_flags): Don't override flag if set by frontend.
5e46b0c6
ILT
11921 (set_unsafe_math_optimizations_flags): Likewise.
11922 * doc/options.texi (Option properties): Document SetByCombined.
11923
32243d46
JM
119242011-02-08 Joseph Myers <joseph@codesourcery.com>
11925
11926 * config.gcc (arc-*, alpha*-*-gnu*, arm*-*-netbsd*, arm-*-pe*,
11927 i[34567]86-*-interix3*, i[34567]86-*-netbsd*, i[34567]86-*-pe,
11928 m68hc11-*-*, m6811-*-*, m68hc12-*-*, m6812-*-*,
11929 m68k-*-uclinuxoldabi*, mcore-*-pe*, powerpc*-*-gnu*,
11930 sh*-*-symbianelf*, vax-*-netbsd*): Mark obsolete.
11931
479c1fb3
SP
119322011-02-08 Sebastian Pop <sebastian.pop@amd.com>
11933
11934 PR tree-optimization/46834
11935 PR tree-optimization/46994
11936 PR tree-optimization/46995
11937 * graphite-sese-to-poly.c (used_outside_reduction): New.
11938 (detect_commutative_reduction): Call used_outside_reduction.
11939 (rewrite_commutative_reductions_out_of_ssa_close_phi): Call
11940 translate_scalar_reduction_to_array only when at least one
11941 loop-phi/close-phi tuple has been detected.
11942
3865a06f
RG
119432011-02-08 Richard Guenther <rguenther@suse.de>
11944
11945 PR middle-end/47639
11946 * tree-vect-generic.c (expand_vector_operations_1): Update
11947 stmts here ...
11948 (expand_vector_operations): ... not here. Cleanup EH info
11949 and the CFG if required.
11950
62902f3f
RG
119512011-02-08 Richard Guenther <rguenther@suse.de>
11952
11953 PR tree-optimization/47641
11954 * tree-ssa.c (execute_update_addresses_taken): For asm outputs
11955 require type compatibility.
11956
0efb9d64
AK
119572011-02-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
11958
11959 * gimple-low.c (lower_function_body): Don't remove the location of
11960 the return statement here.
11961 (lower_gimple_return): Do it here instead but only if the return
11962 statement is actually used twice.
11963
034b8ae4
RG
119642011-02-08 Richard Guenther <rguenther@suse.de>
11965
11966 PR tree-optimization/47632
11967 * tree-ssa-forwprop.c (remove_prop_source_from_use): Remove
11968 unused up_to_stmt parameter, return whether cfg-cleanup is
11969 necessary, remove EH info properly.
11970 (forward_propagate_into_gimple_cond): Adjust caller.
11971 (forward_propagate_into_cond): Likewise.
11972 (forward_propagate_comparison): Likewise.
11973 (tree_ssa_forward_propagate_single_use_vars): Make
11974 forward_propagate_comparison case similar to the two others.
11975
298362c8
NC
119762011-02-08 Nick Clifton <nickc@redhat.com>
11977
11978 * config/mn10300/mn10300.opt (mliw): New command line option.
11979 * config/mn10300/mn10300.md (UNSPEC_LIW): New unspec.
11980 (liw_bundling): New automaton.
11981 (liw): New attribute.
11982 (liw_op): New attribute.
11983 (liw_op1, liw_op2, liw_both, liw_either): New reservations.
11984 (movsi_internal): Add LIW attributes.
11985 (andsi3): Likewise.
11986 (iorsi3): Likewise.
11987 (xorsi3): Likewise.
11988 (addsi3): Separate register and immediate alternatives.
11989 Add LIW attributes.
11990 (subsi3): Likewise.
11991 (cmpsi): Likewise.
11992 (aslsi3): Likewise.
11993 (lshrsi3): Likewise.
11994 (ashrsi3): Likewise.
11995 (liw): New pattern.
11996 * config/mn10300/mn10300.c (liw_op_names): New
11997 (mn10300_print_operand): Handle 'W' operand descriptor.
11998 (extract_bundle): New function.
11999 (check_liw_constraints): New function.
12000 (liw_candidate): New function.
12001 (mn10300_bundle_liw): New function.
12002 (mn10300_reorg): New function.
12003 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12004 (TARGET_DEFAULT_TARGET_FLAGS): Add MASK_ALLOW_LIW.
12005 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Define
12006 __LIW__ or __NO_LIW__.
12007 * doc/invoke.texi: Describe the -mliw command line option.
12008
90488014
JDA
120092011-02-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
12010
12011 * config.gcc (hppa[12]*-*-hpux11*): Don't set extra_parts.
12012 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
12013 pthread_mutex_unlock): Remove.
12014 * config/pa/t-pa-hpux11: Remove rules to build pthread stubs.
12015 * config/pa/t-pa64: Likewise.
12016 * config/pa/pa64-hpux.h (LIB_SPEC): In static links, link against
12017 shared libc if not linking against libpthread.
12018 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
12019
689ff841
IS
120202011-02-07 Iain Sandoe <iains@gcc.gnu.org>
12021
12022 PR target/47558
12023 * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Put -lSystem first
12024 on 10.6 and later to ensure that we always use the unwinder from
12025 the system. Only add -no_compact_unwind when tarteting darwin
12026 10.6 or later.
12027
821014aa
SE
120282011-02-07 Steve Ellcey <sje@cup.hp.com>
12029
12030 PR target/46997
12031 * vect.md (vec_interleave_highv2sf): Change fmix for TARGET_BIG_ENDIAN.
12032 (vec_interleave_lowv2sf): Ditto.
12033 (vec_extract_evenv2sf): Add TARGET_BIG_ENDIAN check.
12034 (vec_extract_oddv2sf): Ditto.
12035
41cf94fb
MS
120362011-02-07 Mike Stump <mikestump@comcast.net>
12037
62dea57d 12038 PR target/42333
41cf94fb
MS
12039 Add __ieee_divdc3 entry point.
12040 * config/i386/darwin.h (DECLARE_LIBRARY_RENAMES): Retain ___divdc3
12041 entry point.
12042 (SUBTARGET_INIT_BUILTINS): Call darwin_rename_builtins.
12043 * config/i386/i386.c (TARGET_INIT_LIBFUNCS): Likewise.
12044 * config/darwin.c (darwin_rename_builtins): Add.
12045 * config/darwin-protos.h (darwin_rename_builtins): Add.
12046
ee09a3dd
MM
120472011-02-07 Michael Meissner <meissner@linux.vnet.ibm.com>
12048
12049 PR target/47636
12050 * config/rs6000/rs6000.md (rsqrt<mode>2): Use the correct macro
12051 for the condition.
12052
83296cd0
MS
120532011-02-07 Mike Stump <mikestump@comcast.net>
12054
ea4c3e65 12055 * config/darwin.opt (mmacosx-version-min): Update default OS version.
83296cd0 12056
0f4e946f
DC
120572011-02-07 Denis Chertykov <chertykov@gmail.com>
12058
12059 PR target/47534
12060 * config/avr/libgcc.S (exit): Move .endfunc
12061
1ec87690
RG
120622011-02-07 Richard Guenther <rguenther@suse.de>
12063
12064 PR tree-optimization/47615
12065 * tree-ssa-sccvn.h (run_scc_vn): Take a vn-walk mode argument.
12066 * tree-ssa-sccvn.c (default_vn_walk_kind): New global.
12067 (run_scc_vn): Initialize it.
12068 (visit_reference_op_load): Use it.
12069 * tree-ssa-pre.c (execute_pre): Use VN_WALK if in PRE.
12070
b46ae6da
UW
120712011-02-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12072
12073 * config/spu/spu.c (spu_init_libfuncs): Install SImode and
12074 DImode trapping arithmetic libfuncs.
12075
c0aae19c
RG
120762011-02-07 Richard Guenther <rguenther@suse.de>
12077
12078 PR tree-optimization/47621
12079 * tree-ssa.c (non_rewritable_lvalue_p): New function, split out from
12080 two duplicates ...
12081 (execute_update_addresses_taken): ... here. Make it more
12082 conservative in what we accept.
12083
295d926b
JM
120842011-02-06 Joseph Myers <joseph@codesourcery.com>
12085
12086 * config/sparc/freebsd.h (ASM_SPEC): Define.
12087 * config/sparc/vxworks.h (ASM_SPEC): Define.
12088
bdeb2471
JM
120892011-02-06 Joseph Myers <joseph@codesourcery.com>
12090
12091 * config/sparc/sol2-bi.h (CC1_SPEC): Remove %{sun4:} %{target:}.
12092
d5d3781a
SB
120932011-02-06 Steven Bosscher <steven@gcc.gnu.org>
12094
12095 * doc/invoke.texi: Remove reference to compiler internals from
12096 user documentation.
12097
12098 * reg-notes.def: Remove REG_VALUE_PROFILE.
12099 * combine.c (distribute_notes): Do not handle REG_VALUE_PROFILE.
12100
c42c09fc
JJ
121012011-02-05 Jakub Jelinek <jakub@redhat.com>
12102
12103 PR middle-end/47610
12104 * varasm.c (default_section_type_flags): If decl is NULL,
38be4072 12105 and name is .data.rel.ro or .data.rel.ro.local, set SECTION_RELRO bit.
c42c09fc 12106
beea2755
JZ
121072011-02-05 Jie Zhang <jie@codesourcery.com>
12108
12109 PR debug/42631
12110 * web.c (entry_register): Don't clobber the number of the
12111 first uninitialized reference in used[].
12112
a130584a
SP
121132011-02-04 Sebastian Pop <sebastian.pop@amd.com>
12114
12115 PR tree-optimization/46194
12116 * tree-data-ref.c (analyze_miv_subscript): Remove comment.
12117 (build_classic_dist_vector_1): Do not represent classic distance
12118 vectors when the access functions are variating in different loops.
12119
962101ac
JM
121202011-02-04 Joseph Myers <joseph@codesourcery.com>
12121
12122 * config/mips/iris6.opt: New.
12123 * config.gcc (mips-sgi-irix6.5*): Use mips/iris6.opt.
12124
55eaaa5b
RH
121252011-02-04 Richard Henderson <rth@redhat.com>
12126 Steve Ellcey <sje@cup.hp.com>
12127
12128 PR target/46997
12129 * config/ia64/predicates.md (mux1_brcst_element): New.
12130 * config/ia64/ia64-protos.h (ia64_unpack_assemble): New.
12131 * config/ia64/ia64.c (ia64_unpack_assemble): New.
12132 (ia64_unpack_sign): New.
12133 (ia64_expand_unpack): Rewrite using new routines.
12134 (ia64_expand_widen_sum): Ditto.
12135 (ia64_expand_dot_prod_v8qi): Ditto.
12136 * config/ia64/vect.md (mulv8qi3): Rewrite to use new
12137 routines, add endian check.
12138 (pmpy2_even): Rename from pmpy2_r, add endian check.
12139 (pmpy2_odd): Rename from pmpy2_l, add endian check.
12140 (vec_widen_smult_lo_v4hi): Rewrite using new routines.
12141 (vec_widen_smult_hi_v4hi): Ditto.
12142 (vec_widen_umult_lo_v4hi): Ditto.
12143 (vec_widen_umult_hi_v4hi): Ditto.
12144 (mulv2si3): Change endian checks.
12145 (sdot_prodv4hi): Rewrite with new calls.
12146 (udot_prodv4hi): New.
12147 (vec_pack_ssat_v4hi): Add endian check.
12148 (vec_pack_usat_v4hi): Ditto.
12149 (vec_pack_ssat_v2si): Ditto.
12150 (max1_even): Rename from max1_r, add endian check.
12151 (max1_odd): Rename from max1_l, add endian check.
12152 (*mux1_rev): Format change.
12153 (*mux1_mix): Ditto.
12154 (*mux1_shuf): Ditto.
12155 (*mux1_alt): Ditto.
12156 (*mux1_brcst_v8qi): Use new predicate.
12157 (vec_extract_evenv8qi): Remove endian check.
12158 (vec_extract_oddv8qi): Ditto.
12159 (vec_interleave_lowv4hi): Format change.
12160 (vec_interleave_highv4hi): Ditto.
12161 (mix2_even): Rename from mix2_r, add endian check.
12162 (mix2_odd): Rename from mux2_l, add endian check.
12163 (*mux2): Fix mask setting for TARGET_BIG_ENDIAN.
12164 (vec_extract_evenodd_helper): Format change.
12165 (vec_extract_evenv4hi): Remove endian check.
12166 (vec_extract_oddv4hi): Remove endian check.
12167 (vec_interleave_lowv2si): Format change.
12168 (vec_interleave_highv2si): Format change.
12169 (vec_initv2si): Remove endian check.
12170 (vecinit_v2si): Add endian check.
12171 (reduc_splus_v2sf): Add endian check.
12172 (reduc_smax_v2sf): Ditto.
12173 (reduc_smin_v2sf): Ditto.
12174 (vec_initv2sf): Remove endian check.
12175 (fpack): Add endian check.
12176 (fswap): Add endian check.
12177 (vec_interleave_highv2sf): Add endian check.
12178 (vec_interleave_lowv2sf): Add endian check.
12179 (fmix_lr): Add endian check.
12180 (vec_setv2sf): Format change.
12181 (*vec_extractv2sf_0_be): Use shift to extract operand.
12182 (*vec_extractv2sf_1_be): New.
12183 (vec_pack_trunc_v4hi): Add endian check.
12184 (vec_pack_trunc_v2si): Format change.
12185
dcde5957
JJ
121862011-02-04 Jakub Jelinek <jakub@redhat.com>
12187
12188 PR inline-asm/23200
12189 * tree-ssa-ter.c (is_replaceable_p): Add TER argument. Don't
38be4072 12190 do bb, locus and block comparison and disallow loads if it is not set.
dcde5957
JJ
12191 (stmt_is_replaceable_p): New function.
12192 (process_replaceable, find_replaceable_in_bb): Adjust is_replaceable_p
12193 callers.
12194 * expr.c (expand_expr_real_1) <case SSA_NAME>: If
12195 get_gimple_for_ssa_name try for EXPAND_INITIALIZER harder to use
12196 SSA_NAME_DEF_STMT.
12197 * tree-flow.h (stmt_is_replaceable_p): New prototype.
12198
a64a8e5a
JM
121992011-02-04 Joseph Myers <joseph@codesourcery.com>
12200
12201 * config/rs6000/xilinx.opt: New.
12202 * config.gcc (powerpc-xilinx-eabi*): Use rs6000/xilinx.opt.
12203
4da2ed2f
JM
122042011-02-04 Joseph Myers <joseph@codesourcery.com>
12205
12206 * config/mips/mips.opt (EB, EL, noasmopt): New Driver options.
12207
a6e508f9
AS
122082011-02-03 Anatoly Sokolov <aesok@post.ru>
12209
12210 * config/xtensa/xtensa.h (PREFERRED_RELOAD_CLASS,
12211 PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
12212 * config/xtensa/xtensa-protos.h (xtensa_preferred_reload_class,
12213 secondary_reload_info, xtensa_secondary_reload): Remove.
12214 * config/xtensa/xtensa.c (TARGET_PREFERRED_RELOAD_CLASS,
12215 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
12216 (xtensa_preferred_reload_class): Make static. Change return and
12217 'rclass' argument type to reg_class_t. Remove 'isoutput' argument.
12218 Use CONST_DOUBLE_P predicate.
12219 (xtensa_preferred_output_reload_class): New function.
12220 (xtensa_secondary_reload): Make static.
12221
82dc0de3
JM
122222011-02-03 Joseph Myers <joseph@codesourcery.com>
12223
12224 * config/microblaze/microblaze.opt (Zxl-mode-bootstrap,
12225 Zxl-mode-executable, Zxl-mode-novectors, Zxl-mode-xilkernel,
12226 Zxl-mode-xmdstub, mxl-mode-xilkernel): New Driver options.
12227
7fece979
JJ
122282011-02-03 Jakub Jelinek <jakub@redhat.com>
12229
12230 PR middle-end/31490
12231 * output.h (SECTION_RELRO): Define.
12232 (SECTION_MACH_DEP): Adjust.
12233 (get_variable_section): New prototype.
12234 * varpool.c (varpool_finalize_named_section_flags): New function.
12235 (varpool_assemble_pending_decls): Call it.
12236 * cgraph.h (varpool_finalize_named_section_flags): New prototype.
12237 * cgraphunit.c (cgraph_output_in_order): Call
12238 varpool_finalize_named_section_flags.
12239 * varasm.c (get_section): Allow section flags conflicts between
12240 relro and read-only sections if the section hasn't been declared yet.
12241 Set SECTION_OVERRIDE after diagnosing section type conflict.
12242 (get_variable_section): No longer static.
12243 (default_section_type_flags): Use SECTION_WRITE | SECTION_RELRO for
12244 readonly sections that need relocations.
12245 (decl_readonly_section_1): New function.
12246 (decl_readonly_section): Use it.
12247
12248 Revert:
509d65dd 12249 2010-11-17 Dinar Temirbulatov <dtemirbulatov@gmail.com>
7fece979
JJ
12250 Steve Ellcey <sje@cup.hp.com>
12251
12252 PR middle-end/31490
12253 * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
12254 if section attribute used.
12255
d18d5478
JJ
122562011-02-03 Jakub Jelinek <jakub@redhat.com>
12257
12258 * config/darwin.h (SECTION_NO_ANCHOR): Remove.
12259 * config/darwin.c (SECTION_NO_ANCHOR): Define.
12260 (darwin_init_sections): Remove assertion.
12261
6479ed4b
NC
122622011-02-03 Nick Clifton <nickc@redhat.com>
12263
12264 * config/rx/predicates.md (rx_zs_comparison_operator): Remove
12265 lt and ge.
38be4072 12266 * config/rx/rx.md (abssi2_flags): Use CC_ZSmode rather than CC_ZSOmode.
6479ed4b
NC
12267 * config/rx/rx.c (rx_print_operand): Use "lt" and "ge" suffixes
12268 instead of "n" and "pz".
12269 (flags_from_code): LT and GE tests need CC_FLAG_O as well as
12270 CC_FLAG_S.
12271
89843f5d
JJ
122722011-02-03 Jakub Jelinek <jakub@redhat.com>
12273
65450d64
JJ
12274 PR target/47312
12275 * expr.c (expand_expr_real_2) <case FMA_EXPR>: If target doesn't expand
12276 fma, expand FMA_EXPR as fma{,f,l} call.
12277
7d58701c
JJ
12278 PR lto/47274
12279 * lto-streamer-out.c (write_symbol): When writing kind and visibility,
12280 copy them into a unsigned char variable and pass address of it to
12281 lto_output_data_stream.
12282
89843f5d
JJ
12283 PR target/47564
12284 * toplev.c (target_reinit): Save and restore *crtl and regno_reg_rtx
12285 around backend_init_target and lang_dependent_init_target calls.
12286 * cgraphunit.c (cgraph_debug_gimple_stmt): New function.
12287 (verify_cgraph_node): Don't call set_cfun here. Use
12288 cgraph_debug_gimple_stmt instead of debug_gimple_stmt.
12289 Set error_found for incorrectly represented calls to thunks.
12290
4deef538
AO
122912011-02-03 Alexandre Oliva <aoliva@redhat.com>
12292
12293 PR debug/43092
12294 PR rtl-optimization/43494
12295 * rtl.h (for_each_inc_dec_fn): New type.
12296 (for_each_inc_dec): Declare.
12297 * rtlanal.c (struct for_each_inc_dec_ops): New type.
12298 (for_each_inc_dec_find_inc_dec): New fn.
12299 (for_each_inc_dec_find_mem): New fn.
12300 (for_each_inc_dec): New fn.
12301 * dse.c (struct insn_size): Remove.
12302 (replace_inc_dec, replace_inc_dec_mem): Remove.
12303 (emit_inc_dec_insn_before): New fn.
12304 (check_for_inc_dec): Use it, along with for_each_inc_dec.
12305 (canon_address): Pass mem modes to cselib_lookup.
12306 * cselib.h (cselib_lookup): Add memmode argument. Adjust callers.
12307 (cselib_lookup_from_insn): Likewise.
12308 (cselib_subst_to_values): Likewise.
12309 * cselib.c (find_slot_memmode): New var.
12310 (cselib_find_slot): New fn. Use it instead of
12311 htab_find_slot_with_hash everywhere.
12312 (entry_and_rtx_equal_p): Use find_slot_memmode.
12313 (autoinc_split): New fn.
12314 (rtx_equal_for_cselib_p): Rename and implement in terms of...
12315 (rtx_equal_for_cselib_1): ... this. Take memmode, pass it on.
12316 Deal with autoinc. Special-case recursion into MEMs.
12317 (cselib_hash_rtx): Likewise.
12318 (cselib_lookup_mem): Infer pmode from address mode. Distinguish
12319 address and MEM modes.
12320 (cselib_subst_to_values): Add memmode, pass it on.
12321 Deal with autoinc.
12322 (cselib_lookup): Add memmode argument, pass it on.
12323 (cselib_lookup_from_insn): Add memmode.
12324 (cselib_invalidate_rtx): Discard obsolete push_operand handling.
12325 (struct cselib_record_autoinc_data): New.
12326 (cselib_record_autoinc_cb): New fn.
12327 (cselib_record_sets): Use it, along with for_each_inc_dec. Pass MEM
12328 mode to cselib_lookup. Reset autoinced REGs here instead of...
12329 (cselib_process_insn): ... here.
12330 * var-tracking.c (replace_expr_with_values, use_type): Pass MEM mode
12331 to cselib_lookup.
12332 (add_uses): Likewise, also to cselib_subst_to_values.
12333 (add_stores): Likewise.
12334 * sched-deps.c (add_insn_mem_dependence): Pass mode to
12335 cselib_subst_to_values.
12336 (sched_analyze_1, sched_analyze_2): Likewise. Adjusted.
12337 * gcse.c (do_local_cprop): Adjusted.
12338 * postreload.c (reload_cse_simplify_set): Adjusted.
12339 (reload_cse_simplify_operands): Adjusted.
12340 * sel-sched-dump (debug_mem_addr_value): Pass mode.
12341
1551d44a
AO
123422011-02-03 Alexandre Oliva <aoliva@redhat.com>
12343
12344 PR tree-optimization/45122
12345 * tree-ssa-loop-niter.c (number_of_iterations_exit): Don't make
12346 unsafe assumptions when there's more than one loop exit.
12347
c9485473
MM
123482011-02-02 Michael Meissner <meissner@linux.vnet.ibm.com>
12349
12350 PR target/47272
12351 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
12352 Document using vector double with the load/store builtins, and
12353 that the load/store builtins always use Altivec instructions.
12354
12355 * config/rs6000/vector.md (vector_altivec_load_<mode>): New insns
12356 to use altivec memory instructions, even on VSX.
12357 (vector_altivec_store_<mode>): Ditto.
12358
12359 * config/rs6000/rs6000-protos.h (rs6000_address_for_altivec): New
12360 function.
12361
12362 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12363 V2DF, V2DI support to load/store overloaded builtins.
12364
12365 * config/rs6000/rs6000-builtin.def (ALTIVEC_BUILTIN_*): Add
12366 altivec load/store builtins for V2DF/V2DI types.
12367
12368 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
12369 set avoid indexed addresses on power6 if -maltivec.
12370 (altivec_expand_ld_builtin): Add V2DF, V2DI support, use
12371 vector_altivec_load/vector_altivec_store builtins.
12372 (altivec_expand_st_builtin): Ditto.
12373 (altivec_expand_builtin): Add VSX memory builtins.
12374 (rs6000_init_builtins): Add V2DI types to internal types.
12375 (altivec_init_builtins): Add support for V2DF/V2DI altivec
12376 load/store builtins.
12377 (rs6000_address_for_altivec): Insure memory address is appropriate
12378 for Altivec.
12379
12380 * config/rs6000/vsx.md (vsx_load_<mode>): New expanders for
12381 vec_vsx_ld and vec_vsx_st.
12382 (vsx_store_<mode>): Ditto.
12383
12384 * config/rs6000/rs6000.h (RS6000_BTI_long_long): New type
12385 variables to hold long long types for VSX vector memory builtins.
12386 (RS6000_BTI_unsigned_long_long): Ditto.
12387 (long_long_integer_type_internal_node): Ditti.
12388 (long_long_unsigned_type_internal_node): Ditti.
12389
12390 * config/rs6000/altivec.md (UNSPEC_LVX): New UNSPEC.
12391 (altivec_lvx_<mode>): Make altivec_lvx use a mode iterator.
12392 (altivec_stvx_<mode>): Make altivec_stvx use a mode iterator.
12393
12394 * config/rs6000/altivec.h (vec_vsx_ld): Define VSX memory builtin
12395 short cuts.
12396 (vec_vsx_st): Ditto.
12397
b24d1acf
JM
123982011-02-02 Joseph Myers <joseph@codesourcery.com>
12399
12400 * config/pa/pa-hpux10.opt: New.
12401 * config/hpux11.opt (pthread): New Driver option.
12402 * config/pa/pa-hpux.opt (nolibdld, rdynamic): New Driver options.
12403 * config.gcc (hppa[12]*-*-hpux10*): Use pa/pa-hpux10.opt.
12404
aa18dd0f
JM
124052011-02-02 Joseph Myers <joseph@codesourcery.com>
12406
12407 * config/ia64/vms.opt: New.
12408 * config.gcc (ia64-hp-*vms*): Use ia64/vms.opt.
12409
28fc3eee
MM
124102011-02-01 Michael Meissner <meissner@linux.vnet.ibm.com>
12411
12412 PR target/47580
12413 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Use
12414 gpc_reg_operand instead of vsx_register_operand to match rs6000.md
12415 generator functions.
12416 (vsx_floatuns<VSi><mode>2): Ditto.
12417 (vsx_fix_trunc<mode><VSi>2): Ditto.
12418 (vsx_fixuns_trunc<mode><VSi>2): Ditto.
12419
b5838b1f
JM
124202011-02-02 Joseph Myers <joseph@codesourcery.com>
12421
12422 * config/i386/djgpp.opt (posix): New Driver option.
12423
0db8fa89
GP
124242011-02-02 Gerald Pfeifer <gerald@pfeifer.com>
12425
12426 * config.gcc (*-*-freebsd[12], *-*-freebsd[12].*, *-*-freebsd*aout*):
12427 Move to the unsupported targets list.
12428
9cd4f22a
PB
124292011-02-02 Peter Bergner <bergner@vnet.ibm.com>
12430
12431 PR rtl-optimization/47525
12432 * df-scan.c: Update copyright years.
12433 (df_get_call_refs): Do not mark global registers as DF_REF_REG_USE
12434 and non-clobber DF_REF_REG_DEF for calls to const and pure functions.
12435
9ed8059c
RO
124362011-02-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12437
12438 * config/i386/sysv4.h (TARGET_VERSION): Remove.
12439 (SUBTARGET_RETURN_IN_MEMORY): Remove.
12440 (ASM_OUTPUT_ASCII): Remove.
12441 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove #undef.
12442
2a737389
JL
124432011-02-02 Jeff Law <law@redhat.com>
12444
12445 PR middle-end/47543
12446 * reload.c (find_reloads_address): Handle reg+d address where both
12447 components are invalid by reloading the entire address.
12448
9dac82c4
SP
124492011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12450 Richard Guenther <rguenther@suse.de>
12451
12452 PR tree-optimization/40979
12453 PR bootstrap/47044
12454 * passes.c (init_optimization_passes): After LIM call copy_prop
12455 and DCE to clean up.
12456 * tree-ssa-loop.c (pass_graphite_transforms): Add TODO_dump_func.
12457
14dd9aab
SP
124582011-02-02 Sebastian Pop <sebastian.pop@amd.com>
12459
12460 PR tree-optimization/47576
12461 PR tree-optimization/47555
12462 * doc/invoke.texi (scev-max-expr-complexity): Documented.
12463 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12464 (PARAM_SCEV_MAX_EXPR_COMPLEXITY): Declared.
12465 * tree-scalar-evolution.c (follow_ssa_edge): Use
12466 PARAM_SCEV_MAX_EXPR_COMPLEXITY.
12467
5cbf5c20
RG
124682011-02-02 Richard Guenther <rguenther@suse.de>
12469
12470 PR tree-optimization/47566
12471 * builtins.c (builtin_save_expr): No SAVE_EXPR for SSA_NAMEs.
12472
83d70792
AO
124732011-02-02 Alexandre Oliva <aoliva@redhat.com>
12474
e829c321
AO
12475 PR debug/47106
12476 PR debug/47402
12477 * tree-inline.c (declare_return_variable): Remove unused caller
12478 variable.
12479
83d70792
AO
12480 PR debug/47106
12481 PR debug/47402
12482 * tree-flow-inline.h (clear_is_used, is_used_p): New.
12483 * cfgexpand.c (account_used_vars_for_block): Use them.
12484 * tree-nrv.c (tree_nrv): Likewise.
12485 * tree-ssa-live.c (remove_unused_scope_block_p): Likewise.
12486 (dump_scope_block): Likewise.
12487 (remove_unused_locals): Likewise.
12488
aaa2ac93
AO
12489 PR debug/47106
12490 PR debug/47402
12491 * tree-inline.c (declare_return_variable): Add result decl to
12492 local decls only once.
12493 * gimple-low.c (record_vars_into): Mark newly-created variables
12494 as referenced.
12495
a59d15cf
AO
124962011-02-02 Alexandre Oliva <aoliva@redhat.com>
12497
12498 PR debug/47498
12499 PR debug/47501
12500 PR debug/45136
12501 PR debug/45130
12502 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12503 debug insns.
12504 (no_real_insns_p, schedule_block, set_priorities): Drop special
12505 treatment of boundary debug insns.
38be4072 12506 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
a59d15cf
AO
12507 * sched-ebb.c (schedule_ebbs): Adjust skipping of debug insns.
12508 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12509 (BOUNDARY_DEBUG_INSN_P): Likewise.
12510 (SCHEDULE_DEBUG_INSN_P): Likewise.
12511 * sched-rgn.c (init_ready_list): Drop special treatment of
12512 boundary debug insns.
12513 * final.c (rest_of_clean_state): Clear notes' BB.
12514
6fc2f091
JM
125152011-02-01 Joseph Myers <joseph@codesourcery.com>
12516
12517 * config/openbsd.opt (assert=): New Driver option.
12518
fc523387
JM
125192011-02-01 Joseph Myers <joseph@codesourcery.com>
12520
12521 * config/i386/nto.opt: New.
12522 * config.gcc (i[34567]86-*-nto-qnx*): Use i386/nto.opt.
12523
6d9821e5
JM
125242011-02-01 Joseph Myers <joseph@codesourcery.com>
12525
12526 * config/i386/netware.opt: New.
12527 * config.gcc (i[3456x]86-*-netware*): Use i386/netware.opt.
12528
cef932d4
JM
125292011-02-01 Joseph Myers <joseph@codesourcery.com>
12530
12531 * config/interix.opt (posix): New Driver option.
12532
22843acd
DD
125332011-02-01 DJ Delorie <dj@redhat.com>
12534
56490b74
DD
12535 * config/m32c/m32c.h (PTRDIFF_TYPE): Remove extra definition.
12536
22843acd
DD
12537 * config/m32c/m32c.c (m32c_regno_reg_class): Return smallest reg
12538 class for A0/A1.
12539
199c8f2f
SP
125402011-02-01 Sebastian Pop <sebastian.pop@amd.com>
12541
12542 PR tree-optimization/47561
12543 * toplev.c (process_options): Print the Graphite flags. Add
12544 flag_loop_flatten to the list of options requiring Graphite.
12545
926bcf22
JM
125462011-02-01 Joseph Myers <joseph@codesourcery.com>
12547
12548 * config/i386/cygming.opt (posix): New Driver option.
12549
59793c51
JM
125502011-02-01 Joseph Myers <joseph@codesourcery.com>
12551
12552 * config/arm/vxworks.opt: New.
12553 * config.gcc (arm-wrs-vxworks): Use arm/vxworks.opt.
12554
183c38a4
JM
125552011-02-01 Joseph Myers <joseph@codesourcery.com>
12556
12557 * config/alpha/elf.opt: New.
12558 * config.gcc (alpha*-*-linux*, alpha*-*-gnu*, alpha*-*-freebsd*,
12559 alpha*-*-netbsd*, alpha*-*-openbsd*): Use alpha/elf.opt.
12560
9939e416
RG
125612011-02-01 Richard Guenther <rguenther@suse.de>
12562
12563 PR tree-optimization/47559
12564 * tree-ssa-loop-im.c (can_sm_ref_p): Do not perform
12565 store-motion on references that can throw.
12566
4a3c9687
BS
125672011-02-01 Bernd Schmidt <bernds@codesourcery.com>
12568
12569 * tree-dump.c (dump_option_value_info): Add entry for TDF_CSELIB.
12570 * tree-pass.h (TDF_CSELIB): New macro.
12571 * cselib.c (new_cselib_val, expand_loc, cselib_expand_value_rtx_1,
12572 cselib_lookup): Check for it rather than for TDF_DETAILS.
12573
dd3b31fb
L
125742011-02-01 H.J. Lu <hongjiu.lu@intel.com>
12575
12576 PR driver/47547
12577 * lto-wrapper.c (run_gcc): Don't add -dumpdir if linker_output
12578 is HOST_BIT_BUCKET.
12579
12580 * opts.c (finish_options): Don't add x_aux_base_name if it is
12581 HOST_BIT_BUCKET.
12582
34c1de79
RG
125832011-02-01 Richard Guenther <rguenther@suse.de>
12584
12585 PR tree-optimization/47555
12586 Revert
12587 2010-07-15 Sebastian Pop <sebastian.pop@amd.com>
12588
12589 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
12590
dd2804d2
SB
125912011-02-01 Sebastien Bourdeauducq <sebastien@milkymist.org>
12592
12593 PR gcc/46692
12594 * config/lm32/t-lm32: Add multilib for all CPU options.
12595
3fd3b156
RG
125962011-02-01 Richard Guenther <rguenther@suse.de>
12597
12598 PR tree-optimization/47541
12599 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Make
12600 sure to have a field at offset zero.
12601
f16072b6
JM
126022011-01-31 Joseph Myers <joseph@codesourcery.com>
12603
12604 * config/arc/arc.opt (EB, EL): New Driver options.
12605
6456cf2e
JM
126062011-01-31 Joseph Myers <joseph@codesourcery.com>
12607
12608 * config/alpha/osf5.opt: New.
12609 * config.gcc (alpha*-dec-osf5.1*): Use alpha/osf5.opt.
12610
cdde6ab4
JM
126112011-01-31 Joseph Myers <joseph@codesourcery.com>
12612
12613 * config/vms/vms.opt (map, mvms-return-codes): New Driver options.
12614
7633415c
SP
126152011-01-31 Sebastian Pop <sebastian.pop@amd.com>
12616
12617 * common.opt (ftree-loop-linear): Use Alias to make it an alias of
12618 -floop-interchange.
12619 * invoke.texi (-ftree-loop-linear): Make it clear that this flag
12620 is an alias of -floop-interchange and that it requires the
12621 Graphite infrastructure.
12622 * tree-ssa-loop.c (gate_graphite_transforms): Do not set
12623 flag_loop_interchange based on the value of flag_tree_loop_linear.
12624
0425d6f5
JJ
126252011-01-31 Jakub Jelinek <jakub@redhat.com>
12626 Richard Guenther <rguenther@suse.de>
12627
12628 PR tree-optimization/47538
12629 * tree-ssa-ccp.c (bit_value_binop_1): For uns computation use
12630 type instead of r1type, except for comparisons. For right
12631 shifts and comparisons punt if there are mismatches in
12632 sizetype vs. non-sizetype types.
12633
500b16c3
RO
126342011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12635
12636 * doc/sourcebuild.texi (Effective-Target Keywords): Document
12637 avx_runtime.
12638
e279edb0
RO
126392011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12640
12641 * configure.ac (gcc_cv_ld_eh_frame_hdr): Update minimal Sun ld
12642 version number.
12643 * configure: Regenerate.
12644
c6092243
RO
126452011-01-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12646
12647 * configure.ac (gcc_cv_ld_static_option): Define.
12648 (gcc_cv_ld_dynamic_option): Define.
12649 (gcc_cv_ld_static_dynamic): Tru64 UNIX support -noso/-so_archive
12650 instead.
12651 (HAVE_LD_STATIC_DYNAMIC): Update message.
12652 (LD_STATIC_OPTION): Define.
12653 (LD_DYNAMIC_OPTION): Define.
12654 * configure: Regenerate.
12655 * config.in: Regenerate.
12656 * gcc.c (init_spec) [USE_LIBUNWIND_EXCEPTIONS &&
12657 HAVE_LD_STATIC_DYNAMIC]: Use them.
12658
d7862be3
NC
126592011-01-31 Nick Clifton <nickc@redhat.com>
12660
12661 * config/rx/rx.c (rx_get_stack_layout): Only save call clobbered
12662 registers inside interrupt handlers if the handler is not a leaf
12663 function.
12664
ba4ec0e0
NC
126652011-01-31 Nick Clifton <nickc@redhat.com>
12666
12667 * config/mn10300/mn10300.c (mn10300_regno_in_class_p): Check for
12668 reg_renumber returning an INVALID_REGNUM.
12669
29a63921
AO
126702011-01-31 Alexandre Oliva <aoliva@redhat.com>
12671
12672 PR libgcj/44341
12673 * doc/install.texi: Document host options discarded when cross
12674 configuring target libraries.
12675
ef591d3f
AO
126762011-01-31 Alexandre Oliva <aoliva@redhat.com>
12677
12678 Reverted:
12679 2011-01-25 Alexandre Oliva <aoliva@redhat.com>
12680 PR debug/45136
12681 PR debug/45130
12682 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12683 debug insns.
12684 (no_real_insns_p, schedule_block, set_priorities): Drop special
12685 treatment of boundary debug insns.
38be4072 12686 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
ef591d3f
AO
12687 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12688 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12689 (BOUNDARY_DEBUG_INSN_P): Likewise.
12690 (SCHEDULE_DEBUG_INSN_P): Likewise.
12691 * sched-rgn.c (init_ready_list): Drop special treatment of
12692 boundary debug insns.
12693 * final.c (rest_of_clean-state): Clear notes' BB.
12694
61052244
AM
126952011-01-31 Alan Modra <amodra@gmail.com>
12696
12697 * config/rs6000/rs6000.c (print_operand): Rearrange addends in
12698 toc relative expressions as we do in print_operand_address.
12699
c4c8962b
KH
127002011-01-30 Kazu Hirata <kazu@codesourcery.com>
12701
12702 * doc/extend.texi: Follow spelling conventions.
12703 * doc/invoke.texi: Fix a typo.
12704
e543b94c
JM
127052011-01-30 Joseph Myers <joseph@codesourcery.com>
12706
12707 * config/hpux11.opt: New.
12708 * config.gcc (hppa*64*-*-hpux11*, hppa[12]*-*-hpux11*,
12709 ia64*-*-hpux*): Use hpux11.opt.
12710
509d65dd 127112011-01-30 Jonathan Yong <jon_y@users.sourceforge.net>
a70e0551
JY
12712
12713 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add t-dfprules
12714 to tmake_file.
12715
7be03a0e
GP
127162011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12717
12718 * doc/install.texi (hppa-hp-hpux10): Remove references to HP
12719 support sites.
12720
419d1d37
GP
127212011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
12722
b596ed64
GP
12723 * doc/install.texi (Binaries): Remove outdated reference for
12724 Motorola 68HC11/68HC12 downloads.
12725
127262011-01-30 Gerald Pfeifer <gerald@pfeifer.com>
61052244 12727
419d1d37
GP
12728 * doc/extend.texi (Thread-Local): Adjust reference to Ulrich
12729 Drepper's paper.
12730
4406d0e9
JW
127312011-01-29 Jonathan Wakely <jwakely.gcc@gmail.com>
12732
12733 PR bootstrap/47147
12734 * ginclude/stddef.h: Check for _X86_64_ANSI_H_ and _I386_ANSI_H_ as
12735 used by NetBSD.
12736
38be4072 127372011-01-28 Ahmad Sharif <asharif@google.com>
e0b77418
AS
12738
12739 * value-prof.c (check_counter): Corrected error message.
12740
0cd98787
JZ
127412011-01-29 Jie Zhang <jie@codesourcery.com>
12742
12743 * config/arm/arm.c (arm_legitimize_reload_address): New.
12744 * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
12745 arm_legitimize_reload_address.
38be4072 12746 * config/arm/arm-protos.h (arm_legitimize_reload_address): Declare.
0cd98787 12747
9b798ac5
ILT
127482011-01-28 Ian Lance Taylor <iant@google.com>
12749
12750 * godump.c (go_define): Ignore macros whose definitions include
12751 two adjacent operands.
12752
591e29d9
JJ
127532011-01-28 Jakub Jelinek <jakub@redhat.com>
12754
12755 PR target/42894
12756 * varasm.c (force_const_mem): Store copy of x in desc->constant
12757 instead of x itself.
12758 * expr.c (emit_move_insn): Add a copy of y_cst instead of y_cst
12759 itself into REG_EQUAL note.
12760
62dcc44a
JM
127612011-01-28 Joseph Myers <joseph@codesourcery.com>
12762
12763 * config/freebsd.opt (posix, rdynamic): New Driver options.
12764
c9f58b9a
RO
127652011-01-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12766
12767 * configure.ac (gcc_cv_ld_static_dynamic): IRIX 6 ld supports
12768 -Bstatic/-Bdynamic.
12769 * configure: Regenerate.
12770
5f02b9db
JM
127712011-01-27 Joseph Myers <joseph@codesourcery.com>
12772
12773 * config/rs6000/sysv4.h (LIB_NETBSD_SPEC): Don't handle -profile.
12774 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -profile.
12775
5df97412
AS
127762011-01-27 Anatoly Sokolov <aesok@post.ru>
12777
12778 * config/s390/s390.h (PREFERRED_RELOAD_CLASS): Remove.
12779 * config/s390/s390-protos.h (s390_preferred_reload_class): Remove.
12780 * config/s390/s390.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
12781 (s390_preferred_reload_class): Make static. Change return and
12782 'rclass' argument type to reg_class_t.
12783
779d4b91
JH
127842011-01-27 Jan Hubicka <jh@suse.cz>
12785
12786 PR middle-end/46949
12787 * cgraphunit.c (process_common_attributes): Fix use of remove_attribute.
12788 (process_function_and_variable_attributes): Check defined weakrefs.
12789
e80b21ed
MJ
127902011-01-27 Martin Jambor <mjambor@suse.cz>
12791
12792 PR tree-optimization/47228
12793 * tree-sra.c (sra_modify_assign): Use build_ref_for_model instead of
12794 build_ref_for_offset.
12795
6dcc4f31
UW
127962011-01-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12797
12798 * config/spu/spu-elf.h (ASM_SPEC): Remove.
12799
509d65dd 128002011-01-26 Mikael Pettersson <mikpe@it.uu.se>
3b8ff89f
MP
12801
12802 PR rtl-optimization/46856
12803 * postreload.c (reload_combine_recognize_const_pattern): Do not
12804 separate cc0 setter and user on cc0 targets.
12805
04af8788
NP
128062011-01-26 Nicola Pero <nicola.pero@meta-innovation.com>
12807
12808 PR c/43082
12809 * c-typeck.c (c_objc_common_truthvalue_conversion): If we are
12810 passed a VOID_TYPE expression, immediately emit an error and
12811 return error_mark_node.
12812
f7a60085
JL
128132011-01-26 Jeff Law <law@redhat.com>
12814
12815 PR rtl-optimization/47464
12816 * df-problems.c (can_move_insn_across): Use may_trap_or_fault_p
12817 rather than may_trap_p as needed.
12818
5c2917ec
DD
128192011-01-26 DJ Delorie <dj@redhat.com>
12820
12821 PR rtl-optimization/46878
12822 * combine.c (insn_a_feeds_b): Check for the implicit cc0
12823 setter/user dependency as well.
12824
bef16e87
EB
128252011-01-26 Eric Botcazou <ebotcazou@adacore.com>
12826
12827 PR rtl-optimization/44469
12828 * cfgcleanup.c (try_optimize_cfg): Iterate in CFG layout mode too
12829 after removing trivially dead basic blocks.
12830
c75d884b
JM
128312011-01-26 Joseph Myers <joseph@codesourcery.com>
12832
12833 * config/bfin/bfin.h (LINK_SPEC): Remove %{Qy:} %{!Qn:-Qy}.
12834 * config/frv/frv.h (LINK_SPEC): Likewise.
12835 * config/i386/netware.h (LINK_SPEC): Likewise.
12836 * config/m68k/linux.h (ASM_SPEC): Likewise.
12837 * config/rs6000/linux64.h (ASM_SPEC_COMMON): Likewise.
12838 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12839 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12840 * config/sparc/linux.h (ASM_SPEC): Likewise.
12841 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12842 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12843
d3153553
JM
128442011-01-26 Joseph Myers <joseph@codesourcery.com>
12845
12846 * config/bfin/bfin.h (ASM_SPEC): Remove %{Ym,*}.
12847 * config/frv/frv.h (ASM_SPEC): Likewise.
12848 * config/m68k/linux.h (ASM_SPEC): Likewise.
12849 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12850 * config/rs6000/linux64.h (ASM_SPEC): Likewise.
12851 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12852 * config/sparc/linux.h (ASM_SPEC): Likewise.
12853 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12854 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12855
b89b1e9d
JM
128562011-01-26 Joseph Myers <joseph@codesourcery.com>
12857
12858 * config/bfin/bfin.h (LINK_SPEC): Remove %{YP,*}.
12859 * config/frv/frv.h (LINK_SPEC): Likewise.
12860 * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
12861
12eb1a9c
JM
128622011-01-26 Joseph Myers <joseph@codesourcery.com>
12863
12864 * config/bfin/bfin.h (ASM_SPEC): Remove %{Yd,*}.
12865 * config/frv/frv.h (ASM_SPEC): Likewise.
12866 * config/i386/sol2-10.h (ASM_SPEC): Likewise.
12867 * config/m68k/linux.h (ASM_SPEC): Likewise.
12868 * config/pa/pa-linux.h (ASM_SPEC): Likewise.
12869 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
12870 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
12871 * config/sol2.h (ASM_SPEC): Remove comment about -Yd,.
12872 * config/sparc/linux.h (ASM_SPEC): Likewise.
12873 * config/sparc/linux64.h (ASM_SPEC): Likewise.
12874 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
12875 * config/sparc/sysv4.h (ASM_SPEC): Remove %{Yd,*}.
12876
e435f098
SE
128772011-01-26 Steve Ellcey <sje@cup.hp.com>
12878
12879 PR target/46997
12880 * config/ia64/vect.md (mulv2si3): Enable and fix for TARGET_BIG_ENDIAN.
12881 (*mux2): Ditto.
12882 (vec_extract_evenodd_help): Ditto.
12883 (vec_extract_evenv4hi): Ditto.
12884 (vec_extract_oddv4hi): Ditto.
12885 (vec_interleave_lowv2si): Ditto.
12886 (vec_interleave_highv2si): Ditto.
12887 (vec_extract_evenv2si): Ditto.
12888 (vec_extract_oddv2si: Ditto.
12889 (vec_pack_trunc_v2si): Ditto.
12890
34f0eee0
JH
128912011-01-22 Jan Hubicka <jh@suse.cz>
12892
12893 PR target/47237
12894 * cgraph.h (cgraph_local_info): New field can_change_signature.
12895 * ipa-cp.c (ipcp_update_callgraph): Only compute args_to_skip if callee
12896 signature can change.
12897 (ipcp_estimate_growth): Call sequence simplify only if calle signature
12898 can change.
12899 (ipcp_insert_stage): Only compute args_to_skip if signature can change.
12900 (cgraph_function_versioning): We can not change signature of functions
12901 that don't allow that.
12902 * lto-cgraph.c (lto_output_node): Stream local.can_change_signature.
12903 (lto_input_node): Likewise.
38be4072
UB
12904 * ipa-inline.c (compute_inline_parameters): Compute
12905 local.can_change_signature.
34f0eee0 12906 * ipa-split.c (visit_bb): Never split away APPLY_ARGS.
38be4072
UB
12907 * tree-sra.c (ipa_sra_preliminary_function_checks): Give up on
12908 functions that can not change signature.
34f0eee0 12909 * i386.c (ix86_function_regparm, ix86_function_sseregparm,
38be4072
UB
12910 init_cumulative_args): Do not use local calling conventions
12911 for functions that can not change signature.
34f0eee0 12912
980ca891
JH
129132011-01-22 Jan Hubicka <jh@suse.cz>
12914
12915 * doc/invoke.texi (hot-bb-frequency-fraction): Commit forgotten hunk.
12916
768e3c60
RG
129172011-01-26 Richard Guenther <rguenther@suse.de>
12918
12919 PR tree-optimization/47190
61052244
AM
12920 * cgraphunit.c (process_common_attributes): New function.
12921 (process_function_and_variable_attributes): Use it.
768e3c60 12922
21d6a1c7
RG
129232011-01-26 Richard Guenther <rguenther@suse.de>
12924
12925 PR lto/47423
12926 * cgraphbuild.c (record_eh_tables): Record reference to personality
12927 function.
12928
48bb58b1
AO
129292011-01-26 Alexandre Oliva <aoliva@redhat.com>
12930
12931 PR debug/45454
12932 * sel-sched.c (moveup_expr): Don't let debug insns prevent
12933 non-debug insns from moving up.
12934
58c741a6
DK
129352011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12936
12937 PR target/40125
12938 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Select suitable
12939 t-dlldir{,-x} fragment for build and add it to tmake_file.
12940 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
12941 * Makefile.in (libgcc.mvars): Also export SHLIB_DLLDIR to libgcc.
12942 * config/i386/t-dlldir: New file.
12943 (SHLIB_DLLDIR): Define.
12944 * config/i386/t-dlldir-x: New file.
12945 (SHLIB_DLLDIR): Define.
12946 * config/i386/t-cygming: Error out if SHLIB_DLLDIR is not set.
12947 (SHLIB_INSTALL): Use it.
12948
bff99262
CLT
129492011-01-26 Chung-Lin Tang <cltang@codesourcery.com>
12950
12951 PR target/47246
12952 * config/arm/arm.c (thumb2_legitimate_index_p): Change the
12953 lower bound of the allowed Thumb-2 coprocessor load/store
12954 index range to -256. Add explaining comment.
12955
82c03907
ILT
129562011-01-25 Ian Lance Taylor <iant@google.com>
12957
12958 * godump.c (go_define): Improve lexing of macro expansion to only
12959 accept expressions which match Go spec.
12960
47ea1edf
DK
129612011-01-26 Dave Korn <dave.korn.cygwin@gmail.com>
12962
d4dba752 12963 PR c++/43601
47ea1edf
DK
12964 * tree.c (handle_dll_attribute): Handle it.
12965 * doc/extend.texi (@item dllexport): Mention it.
12966 * doc/invoke.texi (@item -fno-keep-inline-dllexport): Document it.
12967
744f0946
ILT
129682011-01-25 Ian Lance Taylor <iant@google.com>
12969
12970 PR tree-optimization/26854
12971 * c-decl.c (struct c_scope): Add field has_jump_unsafe_decl.
12972 (decl_jump_unsafe): Move higher in file, with no other change.
12973 (bind): Set has_jump_unsafe_decl if appropriate.
12974 (update_label_decls): Test has_jump_unsafe_decl to avoid loop.
12975 (check_earlier_gotos): Likewise.
12976 (c_check_switch_jump_warnings): Likewise.
12977
5734f2b3
JW
129782011-01-25 Jonathan Wakely <jwakely.gcc@gmail.com>
12979
12980 * doc/invoke.texi (Warning Options): Add missing hyphen.
12981 (-fprofile-dir): Minor grammatical fixes.
12982 (-fbranch-probabilities): Likewise.
12983
9bdbdcef
AO
129842011-01-25 Alexandre Oliva <aoliva@redhat.com>
12985
12986 PR debug/45136
12987 PR debug/45130
12988 * haifa-sched.c (get_ebb_head_tail): Move notes across boundary
12989 debug insns.
12990 (no_real_insns_p, schedule_block, set_priorities): Drop special
12991 treatment of boundary debug insns.
38be4072 12992 * sched-deps.c (sd_init_insn, sd_finish_insn): Don't mark debug insns.
9bdbdcef
AO
12993 * sched-ebb.c (schedule_ebbs): Don't skip debug insns.
12994 * sched-int.h (DEBUG_INSN_SCHED_P): Remove.
12995 (BOUNDARY_DEBUG_INSN_P): Likewise.
12996 (SCHEDULE_DEBUG_INSN_P): Likewise.
12997 * sched-rgn.c (init_ready_list): Drop special treatment of
12998 boundary debug insns.
12999 * final.c (rest_of_clean-state): Clear notes' BB.
13000
b305e3da
SP
130012011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13002
13003 * Makefile.in (LAMBDA_H): Removed.
13004 (TREE_DATA_REF_H): Remove dependence on LAMBDA_H.
13005 (OBJS-common): Remove dependence on lambda-code.o, lambda-mat.o,
13006 lambda-trans.o, and tree-loop-linear.o.
13007 (lto-symtab.o): Remove dependence on LAMBDA_H.
13008 (tree-loop-linear.o): Remove rule.
13009 (lambda-mat.o): Same.
13010 (lambda-trans.o): Same.
13011 (lambda-code.o): Same.
13012 (tree-vect-loop.o): Add missing dependence on TREE_DATA_REF_H.
13013 (tree-vect-slp.o): Same.
13014 * hwint.h (gcd): Moved here.
13015 (least_common_multiple): Same.
13016 * lambda-code.c: Removed.
13017 * lambda-mat.c: Removed.
13018 * lambda-trans.c: Removed.
13019 * lambda.h: Removed.
13020 * tree-loop-linear.c: Removed.
13021 * lto-symtab.c: Do not include lambda.h.
13022 * omega.c (gcd): Removed.
13023 * passes.c (init_optimization_passes): Remove pass_linear_transform.
13024 * tree-data-ref.c (print_lambda_vector): Moved here.
13025 (lambda_vector_copy): Same.
13026 (lambda_matrix_copy): Same.
13027 (lambda_matrix_id): Same.
13028 (lambda_vector_first_nz): Same.
13029 (lambda_matrix_row_add): Same.
13030 (lambda_matrix_row_exchange): Same.
13031 (lambda_vector_mult_const): Same.
13032 (lambda_vector_negate): Same.
13033 (lambda_matrix_row_negate): Same.
13034 (lambda_vector_equal): Same.
13035 (lambda_matrix_right_hermite): Same.
13036 * tree-data-ref.h: Do not include lambda.h.
13037 (lambda_vector): Moved here.
13038 (lambda_matrix): Same.
13039 (dependence_level): Same.
13040 (lambda_transform_legal_p): Removed declaration.
13041 (lambda_collect_parameters): Same.
13042 (lambda_compute_access_matrices): Same.
13043 (lambda_vector_gcd): Same.
13044 (lambda_vector_new): Same.
13045 (lambda_vector_clear): Same.
13046 (lambda_vector_lexico_pos): Same.
13047 (lambda_vector_zerop): Same.
13048 (lambda_matrix_new): Same.
13049 * tree-flow.h (least_common_multiple): Removed declaration.
13050 * tree-parloops.c (lambda_trans_matrix): Moved here.
13051 (LTM_MATRIX): Same.
13052 (LTM_ROWSIZE): Same.
13053 (LTM_COLSIZE): Same.
13054 (LTM_DENOMINATOR): Same.
13055 (lambda_trans_matrix_new): Same.
13056 (lambda_matrix_vector_mult): Same.
13057 (lambda_transform_legal_p): Same.
13058 * tree-pass.h (pass_linear_transform): Removed declaration.
13059 * tree-ssa-loop.c (tree_linear_transform): Removed.
13060 (gate_tree_linear_transform): Removed.
13061 (pass_linear_transform): Removed.
13062 (gate_graphite_transforms): Make flag_tree_loop_linear an alias of
13063 flag_loop_interchange.
13064
6bdfdb96
JJ
130652011-01-25 Jakub Jelinek <jakub@redhat.com>
13066
13067 PR tree-optimization/47265
13068 PR tree-optimization/47443
13069 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Return false
13070 if name still has some uses.
13071
e4cba915
MJ
130722011-01-25 Martin Jambor <mjambor@suse.cz>
13073
13074 PR tree-optimization/47382
13075 * gimple-fold.c (gimple_fold_obj_type_ref_call): Removed.
13076 (gimple_fold_call): Do not call gimple_fold_obj_type_ref_call.
13077
509d65dd 130782011-01-25 Joel Sherrill <joel.sherrill@oarcorp.com>
f822b8ea
JS
13079
13080 * config/m32r/m32r.c: Define TARGET_EXCEPT_UNWIND_INFO to
13081 sjlj_except_unwind_info.
13082
194313e2
RG
130832011-01-25 Richard Guenther <rguenther@suse.de>
13084
13085 PR tree-optimization/47426
13086 * tree-ssa-structalias.c (ipa_pta_execute): Make externally
13087 visible functions results escape.
13088
147a0bcf
JJ
130892011-01-25 Jakub Jelinek <jakub@redhat.com>
13090
13091 PR target/45701
13092 * config/arm/arm.c (any_sibcall_uses_r3): New function.
13093 (arm_get_frame_offsets): Use it.
13094
db963b52
SP
130952011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13096 Jakub Jelinek <jakub@redhat.com>
13097
13098 PR tree-optimization/47271
13099 * tree-if-conv.c (bb_postdominates_preds): New.
13100 (if_convertible_bb_p): Call bb_postdominates_preds.
13101 (if_convertible_loop_p_1): Compute CDI_POST_DOMINATORS.
13102 (predicate_scalar_phi): Call bb_postdominates_preds.
13103
bcddd3b9
NC
131042011-01-25 Nick Clifton <nickc@redhat.com>
13105
13106 * config/rx/rx.h (LIBCALL_VALUE): Do not promote complex types.
13107 * config/rx/rx.c (rx_function_value): Likewise.
13108 (rx_promote_function_mode): Likewise.
13109 (gen_safe_add): Place an outsized immediate value inside an UNSPEC
13110 in order to make it legitimate.
38be4072
UB
13111 * config/rx/rx.md (adddi3_internal): If the second operand is a MEM
13112 make sure that the first operand is the same as the result register.
bcddd3b9
NC
13113 (addsi3_unspec): Delete.
13114 (subdi3): Do not accept immediate operands.
13115 (subdi3_internal): Likewise.
13116
7e6cb022
JL
131172011-01-25 Jeff Law <law@redhat.com>
13118
13119 PR rtl-optimization/37273
13120 * ira-costs.c (scan_one_insn): Detect constants living in memory and
13121 handle them like argument loads from stack slots. Do not double
13122 count memory for memory constants and argument loads from stack slots.
13123
9ffa621e
JJ
131242011-01-25 Jakub Jelinek <jakub@redhat.com>
13125
13126 PR tree-optimization/47427
13127 PR tree-optimization/47428
13128 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
13129 coalesce if the new root var would be TREE_READONLY.
13130
5bd6e652
RG
131312011-01-25 Richard Guenther <rguenther@suse.de>
13132
13133 PR middle-end/47414
13134 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Use the
13135 correct type for TBAA.
13136
7c48ea69
SP
131372011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13138
13139 * graphite-sese-to-poly.c (dr_indices_valid_in_loop): New.
13140 (close_phi_written_to_memory): Call for_each_index with
13141 dr_indices_valid_in_loop.
13142
38013f25
SP
131432011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13144
13145 * graphite-sese-to-poly.c (new_pbb_from_pbb): Only copy PBB_DOMAIN
13146 when it is initialized.
13147
5c640e29
SP
131482011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13149
13150 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Update
13151 call to graphite_find_data_references_in_stmt.
13152 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): New.
13153 (try_generate_gimple_bb): Call outermost_loop_in_sese_1. Update
13154 call to graphite_find_data_references_in_stmt.
13155 (analyze_drs_in_stmts): Same.
13156 * tree-data-ref.c (dr_analyze_indices): Pass in parameter the loop
13157 in which the scalar analysis of indices is performed.
13158 (create_data_ref): Same. Update call to dr_analyze_indices.
13159 (find_data_references_in_stmt): Update call to create_data_ref.
13160 (graphite_find_data_references_in_stmt): Same.
13161 * tree-data-ref.h (graphite_find_data_references_in_stmt): Update
13162 declaration.
13163 (create_data_ref): Same.
13164 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Update
13165 call to create_data_ref.
13166
ac53c069
SP
131672011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13168
13169 * graphite-sese-to-poly.c (build_poly_scop): Move
38be4072 13170 rewrite_commutative_reductions_out_of_ssa before find_scop_parameters.
ac53c069 13171
3d17df15
SP
131722011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13173
13174 * graphite-sese-to-poly.c (close_phi_written_to_memory): Also allow
13175 VAR_DECL, PARM_DECL, and RESULT_DECL.
13176
c513da01
SP
131772011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13178
13179 * graphite-dependences.c (reduction_dr_1): Allow several reductions
13180 in a reduction PBB.
13181 * graphite-sese-to-poly.c (split_reduction_stmt): Do not split PBBs
13182 that have already been marked as PBB_IS_REDUCTION.
13183
3a292d59
SP
131842011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13185
13186 * graphite-scop-detection.c (same_close_phi_node): New.
13187 (remove_duplicate_close_phi): New.
13188 (make_close_phi_nodes_unique): New.
13189 (canonicalize_loop_closed_ssa): Call make_close_phi_nodes_unique.
13190
ba858447
SP
131912011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13192
13193 * graphite-dependences.c (new_poly_ddr): Call same_pdr_p.
13194 * graphite-poly.h (same_pdr_p): Do not expect that the PDR_TYPE
13195 of both data references to be the same.
13196
8d865c56
SP
131972011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13198
38be4072
UB
13199 * graphite-dependences.c (build_lexicographical_constraint): Remove
13200 the gdim parameter.
13201 (build_lexicographical_constraint): Adjust call to
13202 ppl_powerset_is_empty.
8d865c56
SP
13203 (dependence_polyhedron): Same.
13204 (graphite_legal_transform_dr): Same.
13205 (graphite_carried_dependence_level_k): Same.
38be4072
UB
13206 * graphite-ppl.c (ppl_powerset_is_empty): Remove the nb_params
13207 parameter.
8d865c56
SP
13208 * graphite-ppl.h (ppl_powerset_is_empty): Adjust declaration.
13209
50034a36
SP
132102011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13211
13212 * graphite-sese-to-poly.c
13213 (translate_scalar_reduction_to_array_for_stmt): Call unshare_expr.
13214 (close_phi_written_to_memory): New.
13215 (translate_scalar_reduction_to_array): Call close_phi_written_to_memory
13216 and unshare_expr.
13217
0deada9e
SP
132182011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13219
13220 * doc/install.texi: Update the expected version number of PPL to 0.11.
13221 * graphite-ppl.c (ppl_powerset_is_empty): Remove now dead code under
13222 #if PPL_VERSION_MINOR < 11.
13223
d7d3d6af
SP
132242011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13225
13226 * graphite-dependences.c: Include graphite-cloog-util.h.
13227 (new_poly_ddr): Inlined into dependence_polyhedron.
13228 (free_poly_ddr): Moved close by new_poly_ddr.
13229 (dependence_polyhedron_1): Renamed dependence_polyhedron.
13230 Early return NULL when ppl_powerset_is_empty returns true.
13231 (dependence_polyhedron): Renamed new_poly_ddr. Call only once
13232 poly_drs_may_alias_p. Avoid one call to ppl_powerset_is_empty.
13233 (graphite_legal_transform_dr): Call new_poly_ddr.
13234 (graphite_carried_dependence_level_k): Same.
13235 (dot_original_deps_stmt_1): Renamed dot_deps_stmt_2. Use new_poly_ddr.
13236 (dot_transformed_deps_stmt_1): Removed.
13237 (dot_deps_stmt_1): Call dot_deps_stmt_2.
13238 (dot_original_deps): Renamed dot_deps_2. Call new_poly_ddr.
13239 (dot_deps_1): Call dot_deps_2.
13240 * Makefile.in (graphite-dependences.o): Add missing dependence on
13241 graphite-cloog-util.h.
13242
28c5db57
SP
132432011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13244
13245 * graphite-dependences.c (new_poly_dr): Call ppl_powerset_is_empty.
13246 (build_lexicographical_constraint): Same.
13247 (dependence_polyhedron_1): Same.
13248 (graphite_legal_transform_dr): Same.
13249 (graphite_carried_dependence_level_k): Same.
13250 * graphite-ppl.c (ppl_powerset_is_empty): New.
13251 * graphite-ppl.h (ppl_powerset_is_empty): Declared.
13252 * tree-data-ref.c (dump_data_reference): Print the basic block index.
13253
5168d98f
SP
132542011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13255
13256 * graphite-dependences.c (build_pairwise_scheduling): Correctly compute
13257 the "a followed by b" relation and document it.
13258
4a40293a
SP
132592011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13260
13261 * graphite-dependences.c (build_lexicographical_constraint): Stop the
13262 iteration when the bag of constraints is empty.
13263
271fb6fa
SP
132642011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13265
13266 * graphite-poly.c (pbb_remove_duplicate_pdrs): Make it work.
13267
92d23680
SP
132682011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13269
13270 * graphite-interchange.c (lst_interchange_profitable_p): Takes a loop
13271 nest and two loop depths as parameters.
13272 (lst_try_interchange_loops): Call lst_interchange_profitable_p after
13273 lst_perfect_nestify.
13274
2f51deff
SP
132752011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13276
13277 * graphite-dependences.c (print_pddr): Call
13278 ppl_io_fprint_Pointset_Powerset_C_Polyhedron.
13279
07f3593c
SP
132802011-01-25 Sebastian Pop <sebastian.pop@amd.com>
13281
13282 * graphite-ppl.c (debug_gmp_value): New.
13283 * graphite-ppl.h (debug_gmp_value): Declared.
13284
3fae6099
TG
132852011-01-25 Tobias Grosser <grosser@fim.uni-passau.de>
13286
13287 * doc/install.texi: Document availability of cloog-0.16.
13288
1c3ba85b
SP
132892011-01-25 Vladimir Kargov <kargov@gmail.com>
13290
13291 * graphite-scop-detection.c (canonicalize_loop_closed_ssa): Free
13292 invalid postdominance info.
13293
e8ba94fc
JH
132942011-01-24 Jan Hubicka <jh@suse.cz>
13295
13296 PR c/21659
13297 * doc/extend.texi (weak pragma): Drop claim that it must
13298 appear before definition.
13299 * varasm.c (merge_weak, declare_weak): Only sanity check
13300 that DECL is not output at a time it is declared weak.
13301
2b6e2d13
KZ
133022011-01-24 Kenneth Zadeck <zadeck@naturalbridge.com>
13303
13304 * machmode.def: Fixed comments.
1c3ba85b 13305
9841210f
KT
133062011-01-24 Kai Tietz <kai.tietz@onevision.com>
13307
13308 * emit-rtl.c (reg_attrs_htab_hash): Replace long by intptr_t.
13309
133102011-01-24 Paul Koning <ni1d@arrl.net>
e046112d
PK
13311
13312 * builtins.c (c_readstr): Fix byte order if BYTES_BIG_ENDIAN !=
1c3ba85b 13313 WORDS_BIG_ENDIAN.
e046112d 13314
a6c5070a
L
133152011-01-24 H.J. Lu <hongjiu.lu@intel.com>
13316
13317 PR target/46519
13318 * config/i386/i386.c: Include sbitmap.h and fibheap.h.
13319 (block_info): Add scanned and prev.
13320 (move_or_delete_vzeroupper_2): Return if the basic block
13321 has been scanned and the upper 128bit state is unchanged
13322 from the last scan.
13323 (move_or_delete_vzeroupper_1): Return true if the exit
13324 state is changed.
13325 (move_or_delete_vzeroupper): Visit basic blocks using the
13326 work-list based algorithm based on vt_find_locations in
13327 var-tracking.c.
13328
13329 * config/i386/t-i386: Also depend on sbitmap.h and $(FIBHEAP_H).
13330
a40d79d7
NC
133312011-01-24 Nick Clifton <nickc@redhat.com>
13332
13333 * config/v850/v850.opt (mv850es): New option - alias for -mv850e1.
13334 * config/v850/v850.h (ASM_SPEC): If -mv850es is specified pass
13335 -mv850e1 to the assembler. If -mv850e1 or -mv850es is specified
13336 then define __v850e1__.
13337 * doc/invoke.texi: Document -mv850es.
13338
440eb8de
RH
133392011-01-24 Richard Henderson <rth@redhat.com>
13340
13341 * config/rx/predicates.md (rx_fp_comparison_operator): Don't accept
13342 compound unordered comparisons.
13343 * config/rx/rx.c (rx_split_fp_compare): Remove.
13344 * config/rx/rx-protos.h: Update.
13345 * config/rx/rx.md (gcc_conds, rx_conds): Remove.
13346 (cbranchsf4): Don't call rx_split_fp_compare.
13347 (*cbranchsf4): Use rx_split_cbranch.
13348 (*cmpsf): Don't accept "i" constraint.
13349 (*conditional_branch): Only valid after reload.
13350 (cstoresf4): Merge expander with insn. Don't call rx_split_fp_compare.
13351
3ff79f99
MM
133522011-01-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13353
13354 PR target/47385
13355 * config/rs6000/altivec.md (vector constant splitters): Add
13356 support for creating vector single precision constants if -mvsx is
13357 used and we would create the constant using Altivec primitives.
13358
ff3d9d08
BS
133592011-01-23 Bernd Schmidt <bernds@codesourcery.com>
13360 Richard Sandiford <rdsandiford@googlemail.com>
13361
13362 PR rtl-optimization/47166
13363 * reload1.c (emit_reload_insns): Disable the spill_reg_store
13364 mechanism for PRE_MODIFY and POST_MODIFY.
13365 (inc_for_reload): For PRE_MODIFY, return the insn that sets the
13366 reloadreg.
13367
7fcaf152
AS
133682011-01-23 Andreas Schwab <schwab@linux-m68k.org>
13369
8788adb6 13370 * compare-elim.c (maybe_select_cc_mode): Add ATTRIBUTE_UNUSED markers.
7fcaf152 13371
d09b58c4
JH
133722011-01-22 Jan Hubicka <jh@suse.cz>
13373
13374 PR lto/47333
13375 * lto-cgraph.c (reachable_from_this_partition_p): Fix pasto.
13376
e8ff8c5a
JH
133772011-01-22 Jan Hubicka <jh@suse.cz>
13378
13379 PR tree-optimization/43884
13380 PR lto/44334
8788adb6 13381 * predict.c (maybe_hot_frequency_p): Use entry block frequency as base.
e8ff8c5a
JH
13382 * doc/invoke.texi (hot-bb-frequency-fraction): Update docs.
13383
ccaed3ba
AS
133842011-01-22 Anatoly Sokolov <aesok@post.ru>
13385
13386 * config/s390/s390.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
13387 * config/s390/s390.c (s390_register_move_cost,
13388 s390_memory_move_cost): New.
13389 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
13390
0cecee06
UW
133912011-01-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13392
13393 PR middle-end/47401
13394 * except.c (sjlj_assign_call_site_values): Move setting the
13395 crtl->uses_eh_lsda flag to ...
13396 (sjlj_mark_call_sites): ... here.
13397 (sjlj_emit_function_enter): Support NULL dispatch label.
13398 (sjlj_build_landing_pads): In a function with no landing pads
13399 that still has must-not-throw regions, generate code to register
13400 a personality function with empty LSDA.
13401
e692f276
RH
134022011-01-21 Richard Henderson <rth@redhat.com>
13403
1b7ae0b7
RH
13404 * config/rx/rx.c (TARGET_FLAGS_REGNUM): New.
13405
3843787f
RH
13406 * config/mn10300/mn10300.c (TARGET_FLAGS_REGNUM): New.
13407
e692f276
RH
13408 * compare-elim.c: New file.
13409 * Makefile.in (OBJS-common): Add it.
13410 (compare-elim.o): New.
13411 * common.opt (fcompare-elim): New.
13412 * opts.c (default_options_table): Add OPT_fcompare_elim.
13413 * tree-pass.h (pass_compare_elim_after_reload): New.
13414 * passes.c (init_optimization_passes): Add it.
13415 * recog.h: Protect against re-inclusion.
13416 * target.def (TARGET_FLAGS_REGNUM): New POD hook.
13417 * doc/invoke.texi (-fcompare-elim): Document it.
13418 * doc/tm.texi.in (TARGET_FLAGS_REGNUM): Document it.
13419 * doc/tm.texi: Rebuild.
13420
9a7c2050
NC
134212011-01-22 Nick Clifton <nickc@redhat.com>
13422
13423 * config/rx/rx.md (cstoresf4): Pass comparison operator to
13424 rx_split_fp_compare.
13425
15ba5696
NC
134262011-01-22 Nick Clifton <nickc@redhat.com>
13427
13428 * config/rx/rx.md (UNSPEC_CONST): New.
13429 (deallocate_and_return): Wrap the amount popped off the stack in
13430 an UNSPEC_CONST in order to stop it being rejected by
13431 -mmax-constant-size.
13432 (pop_and_return): Add a "(return)" rtx.
13433 (call): Drop the immediate operand.
13434 (call_internal): Likewise.
13435 (call_value): Likewise.
13436 (call_value_internal): Likewise.
13437 (sibcall_internal): Likewise.
13438 (sibcall_value_internal): Likewise.
13439 (sibcall): Likewise. Generate an explicit call using
13440 sibcall_internal.
13441 (sibcall_value): Likewise.
13442 (mov<>): FAIL if a constant operand is not legitimate.
13443 (addsi3_unpsec): New pattern.
9a7c2050 13444
38be4072 13445 * config/rx/rx.c (rx_print_operand_address): Handle UNSPEC CONSTs.
15ba5696
NC
13446 (ok_for_max_constant): New function.
13447 (gen_safe_add): New function.
13448 (rx_expand_prologue): Use gen_safe_add.
13449 (rx_expand_epilogue): Likewise.
13450 (rx_is_legitimate_constant): Use ok_for_max_constant. Handle
13451 UNSPEC CONSTs.
13452
caaf13d3
JL
134532011-01-21 Jeff Law <law@redhat.com>
13454
13455 PR tree-optimization/47053
13456 * tree-ssa-dse.c (need_eh_cleanup): New bitmap.
13457 (dse_optimize_stmt): Set the appropriate bit in NEED_EH_CLEANUP when
13458 statements are deleted.
13459 (tree_ssa_dse): Allocate & free NEED_EH_CLEANUP. If NEED_EH_CLEANUP
13460 is nonempty, then purge dead edges and cleanup the CFG.
13461
12c30f2f
AO
134622011-01-21 Alexandre Oliva <aoliva@redhat.com>
13463
13464 PR debug/47402
13465 Temporarily revert:
13466 2011-01-21 Alexandre Oliva <aoliva@redhat.com>
13467 PR debug/47106
13468 * tree-dfa.c (create_var_ann): Mark variable as used.
13469
7360d2ac
JJ
134702011-01-21 Jakub Jelinek <jakub@redhat.com>
13471
aaa52a96
JJ
13472 PR middle-end/45566
13473 * except.c (convert_to_eh_region_ranges): Emit queued no-region
13474 notes from other section in hot/cold partitioning even if
13475 last_action is -3. Increment call_site_base.
13476
7360d2ac
JJ
13477 PR rtl-optimization/47366
13478 * fwprop.c (forward_propagate_into): Return bool. If
13479 any changes are made, -fnon-call-exceptions is used and
13480 REG_EH_REGION note is present, call purge_dead_edges
13481 and return true if it purged anything.
13482 (fwprop_addr): Adjust callers, call cleanup_cfg (0) if
13483 any EH edges were purged.
13484
e90b336f
JL
134852011-01-21 Jeff Law <law@redhat.com>
13486
13487 PR rtl-optimization/41619
13488 * caller-save.c (setup_save_areas): Break out code to determine
13489 which hard regs are live across calls by examining the reload chains
13490 so that it is always used.
13491 Eliminate code which checked REG_N_CALLS_CROSSED.
13492
3ffe07e1
JJ
134932011-01-21 Jakub Jelinek <jakub@redhat.com>
13494
13495 PR tree-optimization/47355
13496 * tree-eh.c (cleanup_empty_eh_merge_phis): Give up if
13497 NOP has non-debug uses beyond PHIs in new_bb.
13498
1c7d0b34
AO
134992011-01-21 Alexandre Oliva <aoliva@redhat.com>
13500
13501 PR debug/47106
13502 * cfgexpand.c (account_used_vars_for_block): Only account vars
13503 that are annotated as used.
13504 (estimated_stack_frame_size): Don't set TREE_USED.
13505 * tree-dfa.c (create_var_ann): Mark variable as used.
13506
f99cc488
RG
135072011-01-21 Richard Guenther <rguenther@suse.de>
13508
13509 PR middle-end/47395
13510 * tree.def (WIDEN_MULT_MINUS_EXPR): Fix printed name.
13511
3bc27de7
RG
135122011-01-21 Richard Guenther <rguenther@suse.de>
13513
13514 PR tree-optimization/47365
13515 * tree-ssa-sccvn.h (vn_lookup_kind): Declare.
13516 (vn_reference_lookup_pieces): Adjust.
13517 (vn_reference_lookup): Likewise.
13518 * tree-ssa-sccvn.c (vn_walk_kind): New static global.
13519 (vn_reference_lookup_3): Only look through kills if in
13520 VN_WALKREWRITE mode.
13521 (vn_reference_lookup_pieces): Adjust.
13522 (vn_reference_lookup): Likewise.
13523 (visit_reference_op_load): Likewise.
13524 (visit_reference_op_store): Likewise.
13525 * tree-ssa-pre.c (phi_translate_1): Use VN_WALK mode.
13526 (compute_avail): Likewise.
13527 (eliminate): Likewise.
13528
d8debb1d
JJ
135292011-01-21 Jakub Jelinek <jakub@redhat.com>
13530
13531 * tree-ssa-live.c (remove_unused_scope_block_p): Don't remove
13532 DECL_IGNORED_P non-reg vars if they are used.
13533
3a2df831
JJ
13534 PR tree-optimization/47391
13535 * varpool.c (const_value_known_p): Return false if
13536 decl is volatile.
13537
1dd584a2
KT
135382011-01-21 Kai Tietz <kai.tietz@onevision.com>
13539
13540 PR bootstrap/47215
13541 * config/i386/i386.c (ix86_local_alignment): Handle
13542 case for va_list_type_node is nil.
13543 (ix86_canonical_va_list_type): Likewise.
13544
7f9f095e
AM
135452011-01-21 Alan Modra <amodra@gmail.com>
13546
13547 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Add
13548 builtin_define __CMODEL_MEDIUM__ and __CMODEL_LARGE__.
13549
837b01f6
RR
135502011-01-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13551
13552 * config/arm/arm.md (define_attr type): Rename f_load
13553 and f_store to f_fpa_load and f_fpa_store. Update.
13554 (write_conflict): Deal with rename fallout.
13555 (*push_fp_multi): Likewise.
13556 * config/arm/fpa.md (f_load): Use f_fpa_load.
13557 (f_store): Use f_fpa_store.
13558 (*movsf_fpa): Likewise.
13559 (*movdf_fpa): Likewise.
13560 (*movxf_fpa): Likewise.
13561 (*thumb2_movsf_fpa): Likewise.
13562 (*thumb2_movdf_fpa): Likewise.
13563 (*thumb2_movxf_fpa): Likewise.
13564 * config/arm/vfp.md (*thumb2_movdf_vfp): Fix attribute to
13565 f_loadd and f_stored.
13566 (*thumb2_movdi_vfp): Likewise.
13567 (*thumb2_movsf_vfp): Fix attribute to f_loads.
13568 (*thumb2_movsi_vfp): Likewise.
13569 * config/arm/cortex-m4-fpu.md (cortex_m4_f_load):
13570 Use f_loads instead of f_load.
13571 * config/arm/cortex-a5.md (cortex_a5_f_loads): Remove f_load.
13572
a1a79768
AS
135732011-01-20 Anatoly Sokolov <aesok@post.ru>
13574
13575 * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
13576 * config/xtensa/xtensa-protos.h (constantpool_address_p): Remove.
13577 * config/xtensa/xtensa.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
13578 (xtensa_mode_dependent_address_p): New function.
13579 (constantpool_address_p): Make static. Change return type to bool.
13580 Change argument type to const_rtx. Use CONST_INT_P predicate.
13581
427f6cec
AO
135822011-01-20 Alexandre Oliva <aoliva@redhat.com>
13583
13584 PR debug/46583
13585 * tree-ssa-live.c (remove_unused_scope_block_p): Keep type decls.
13586
583ac69c
JJ
135872011-01-20 Jakub Jelinek <jakub@redhat.com>
13588
13589 PR debug/47283
13590 * cfgexpand.c (expand_debug_expr): Instead of generating
13591 (mem (debug_implicit_ptr)) for MEM_REFs use COMPONENT_REF
13592 etc. handling.
13593
93e452ed
RG
135942011-01-20 Richard Guenther <rguenther@suse.de>
13595
13596 PR middle-end/47370
13597 * tree-inline.c (remap_gimple_op_r): Recurse manually for
13598 the pointer operand of MEM_REFs.
13599
28fc44f3
JJ
136002011-01-20 Jakub Jelinek <jakub@redhat.com>
13601
13602 PR tree-optimization/46130
13603 * ipa-split.c (consider_split): If return_bb contains non-virtual
13604 PHIs other than for retval or if split_function would not adjust it,
13605 refuse to split.
13606
ddd268f2
RG
136072011-01-20 Richard Guenther <rguenther@suse.de>
13608
13609 PR tree-optimization/47167
13610 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
13611 Revert previous change, only avoid enumeral type changes.
13612
882020aa
MS
136132011-01-19 Mike Stump <mikestump@comcast.net>
13614
13615 * doc/tm.texi.in (BRANCH_COST): Englishify.
13616 * doc/tm.texi (BRANCH_COST): Likewise.
13617
7edb6247
DS
136182011-01-19 Dodji Seketeli <dodji@redhat.com>
13619
13620 PR c++/47291
13621 * dwarf2out.c (generic_type_p, schedule_generic_params_dies_gen)
61052244
AM
13622 (gen_scheduled_generic_parms_dies): New functions.
13623 (gen_struct_or_union_type_die): Schedule template parameters DIEs
13624 generation for the end of CU compilation.
13625 (dwarf2out_finish): Generate template parameters DIEs here.
7edb6247 13626
23d5ed5d
AO
136272011-01-19 Alexandre Oliva <aoliva@redhat.com>
13628
13629 PR debug/46240
13630 * tree-into-ssa.c (maybe_register_def): Do not attempt to add
13631 debug bind stmt on merge edges.
13632
37d6a488
AO
136332011-01-19 Alexandre Oliva <aoliva@redhat.com>
13634
13635 PR debug/47079
13636 PR debug/46724
13637 * function.c (instantiate_expr): Instantiate incoming rtl of
13638 implicit arguments, and recurse on VALUE_EXPRs.
13639 (instantiate_decls): Instantiate rtl and VALUE_EXPR of result.
13640 * var-tracking.c (adjust_mems): Reject virtual_incoming_args_rtx.
13641
689f2c82
AO
136422011-01-19 Alexandre Oliva <aoliva@redhat.com>
13643
13644 * c-parser.c (c_parser_for_statement): Initialize
13645 collection_expression.
13646
03029de4
JM
136472011-01-19 Joseph Myers <joseph@codesourcery.com>
13648
13649 * config/spu/spu-elf.h (ASM_SPEC): Remove %{w:-W}.
13650
3e03217e
JM
136512011-01-19 Joseph Myers <joseph@codesourcery.com>
13652
13653 * config/rs6000/sysv4.h (LINK_PATH_SPEC): Remove.
13654 (LINK_SHLIB_SPEC): Don't use %(link_path).
13655 (SUBTARGET_EXTRA_SPECS): Remove link_path.
13656
5bbe9b3f
JM
136572011-01-19 Joseph Myers <joseph@codesourcery.com>
13658
13659 * config/rs6000/sysv4.h (SHARED_LIB_SUPPORT): Remove conditional.
13660 (NO_SHARED_LIB_SUPPORT): Remove.
13661 (LINK_SHLIB_SPEC): Remove one conditional definition.
13662
368e0b39
JM
136632011-01-19 Joseph Myers <joseph@codesourcery.com>
13664
13665 * config/mips/linux64.h (LINK_SPEC): Remove %{non_shared}
13666 %{call_shared}.
13667 * config/mips/mips.h (LINK_SPEC): Remove %{non_shared}.
13668 * config/mips/netbsd.h (LINK_SPEC): Remove %{call_shared}.
13669 * config/mips/openbsd.h (LINK_SPEC): Remove %{non_shared}
13670 %{call_shared} and conditionals on these options not being passed.
13671 * config/mips/sde.h (LINK_SPEC): Remove %{non_shared}
13672 %{call_shared}.
13673
ed7656f6
JJ
136742011-01-19 Jakub Jelinek <jakub@redhat.com>
13675
68457901
JJ
13676 * ipa-split.c (find_return_bb): Use single_pred_p/single_pred_edge,
13677 simplify.
13678
ed7656f6
JJ
13679 * ipa-split.c: Spelling fixes.
13680
e0d1958f
RH
136812011-01-19 Richard Henderson <rth@redhat.com>
13682
13683 * config/mn10300/mn10300.md (mulsi3): Use reg_or_am33_const_operand.
13684 (*mulsi3): Likewise.
13685
27098b6b
RH
13686 * longlong.h [__mn10300__] (count_leading_zeros): New.
13687 [__mn10300__] (umul_ppmm, smul_ppmm): New.
13688 [__mn10300__] (add_ssaaaa, subddmmss): New.
13689 [__mn10300__] (udiv_qrnnd, sdiv_qrnnd): New.
13690 [__mn10300__] (UMUL_TIME, UDIV_TIME): New.
13691
d6be7c36
UW
136922011-01-19 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13693
13694 * config/spu/spu.h (MOVE_RATIO): Return 4 in the !speed case.
13695
b1efde2a
RH
136962011-01-19 Richard Henderson <rth@redhat.com>
13697
44217823
RH
13698 * config/mn10300/mn10300.md (addsi3_flags): New.
13699 (addc_internal, adddi3, adddi3_internal, *adddi3_degenerate): New.
13700 (subsi3_flags, subc_internal, subdi3): New.
13701 (subdi3_internal, *subdi3_degenerate): New.
13702 * config/mn10300/predicates.md (reg_or_am33_const_operand): New.
13703
37a185d7
RH
13704 * config/mn10300/mn10300.c (mn10300_can_use_retf_insn): New.
13705 (mn10300_can_use_rets_insn): Rename from mn10300_can_use_return_insn.
13706 (mn10300_expand_epilogue): Use it. Compute REG_SAVE_BYTES once.
13707 * config/mn10300/mn10300-protos.h: Update.
13708 * config/mn10300/mn10300.md (return): Use mn10300_can_use_retf_insn.
13709 (return_ret): Likewise. Rename from return_internal_regs.
13710 (return_internal): Remove.
13711
040c5757
RH
13712 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter): Remove.
13713 (mn10300_asm_output_addr_const_extra): Don't handle UNSPEC_INT_LABEL.
13714 (mn10300_legitimate_constant_p): Likewise.
13715 (mn10300_can_use_return_insn): Use mn10300_initial_offset.
13716 (mn10300_frame_size): New.
13717 (mn10300_expand_prologue): Use it.
13718 (mn10300_expand_epilogue): Likewise.
13719 (mn10300_initial_offset): Likewise.
13720 * config/mn10300/mn10300-protos.h: Update.
13721 * config/mn10300/mn10300.h (mn10300_unspec_int_label_counter): Remove.
13722 * config/mn10300/mn10300.md (UNSPEC_INT_LABEL): Remove.
13723 (prologue, epilogue, return_internal): Tidy output code.
13724 (mn10300_store_multiple_operation, return): Likewise.
13725 (int_label, pop_pic_reg, GOTaddr2picreg): Remove.
13726 (am33_loadPC, mn10300_loadPC, call_next_insn): Remove.
13727 (add_GOT_to_pic_reg, add_GOT_to_any_reg): Remove.
13728 (load_pic, am33_load_pic): New.
13729 (mn10300_load_pic0, mn10300_load_pic1): New.
13730
bad41521
RH
13731 * config/mn10300/mn10300-modes.def (CCZN, CCZNC): New modes.
13732 * config/mn10300/mn10300.c (CC_FLAG_Z): New.
13733 (CC_FLAG_N, CC_FLAG_C, CC_FLAG_V): New.
13734 (cc_flags_for_mode, cc_flags_for_code): New.
13735 (mn10300_print_operand) ['B']: Use nc/ns for GE/LT when the
13736 overflow flag is not valid. Validate that the flags we need
13737 for the comparison are valid.
13738 (mn10300_output_cmp): Remove.
13739 (mn10300_output_add): New.
13740 (mn10300_select_cc_mode): Use cc_flags_for_code.
13741 (mn10300_split_cbranch): New.
13742 (mn10300_match_ccmode): New.
13743 (mn10300_split_and_operand_count): New.
13744 * config/mn10300/mn10300.h (SELECT_CC_MODE): Pass all of the arguments
13745 to the function.
13746 * config/mn10300/mn10300.md (*am33_addsi3, *mn10300_addsi3): Merge...
13747 (addsi3): ... here. Use mn10300_output_add.
13748 (*addsi3_flags): New.
13749 (*am33_subsi3, *mn10300_subsi3): Merge...
13750 (subsi3): ... here. Use attribute isa.
13751 (*subsi3_flags): New.
13752 (negsi2): Rewrite from expander to insn_and_split. Use NOT+INC
13753 when possible.
13754 (*am33_andsi3, *mn10300_andsi3): Merge...
13755 (andsi3): ... here.
13756 (*andsi3_flags): New.
13757 (andsi3 splitters): New.
13758 (*am33_iorsi3, *mn10300_iorsi3): Merge...
13759 (iorsi3): ... here.
13760 (*iorsi3_flags): New.
13761 (*am33_xorsi3, *mn10300_xorsi3): Merge...
13762 (xorsi3): ... here.
13763 (*xorsi3_flags): New.
13764 (*am33_cmpsi2, *mn10300_cmplsi2): Merge...
13765 (one_cmplsi2): ... here.
13766 (*one_cmplsi2_flags): New.
13767 (*cbranchsi4_cmp): Rename from cbranchsi4_post_reload. Use "r"
13768 instead of "dax" in constraints. Use mn10300_split_cbranch.
13769 (*cmpsi): Rename from cmpsi. Do not use mn10300_output_cmp. Do not
13770 use matching constraints to eliminate a self-comparison.
13771 (*integer_conditional_branch): Rename from integer_conditional_branch.
13772 Use int_mode_flags to match CC_REG.
13773 (*cbranchsi4_btst, *btstsi): New.
13774 (*cbranchsf4_cmp): Rename from *cbranchsf4_post_reload. Use
13775 mn10300_split_cbranch.
13776 (*am33_cmpsf): Rename from am33_cmpsf.
13777 (*float_conditional_branch): Rename from float_conditional_branch.
13778 (*zero_extendqisi2_am33, *zero_extendqisi2_mn10300): Merge...
13779 (zero_extendqisi2): ... here.
13780 (*zero_extendhisi2_am33, *zero_extendhisi2_mn10300): Merge...
13781 (zero_extendhisi2): ... here.
13782 (*extendqisi2_am33, *extendqisi2_mn10300): Merge...
13783 (extendqisi2): ... here.
13784 (*extendhisi2_am33, *extendhisi2_mn10300): Merge...
13785 (extendhisi2): ... here.
13786 (*am33_ashlsi3, *mn10300_ashlsi3): Merge...
13787 (ashlsi3): ... here.
13788 (*am33_lshrsi3, *mn10300_lshrsi3): Merge...
13789 (lshrsi3): ... here.
13790 (*am33_ashrisi3, *mn10300_ashrsi3): Merge...
13791 (ashrsi3): ... here.
13792 (consecutive add peephole): Remove.
13793 * config/mn10300/predicates.md (label_ref_operand): New.
13794 (int_mode_flags): New.
13795 (CCZN_comparison_operator): New.
13796
9efb4993
RH
13797 * config/mn10300/mn10300.md (UNSPEC_EXT): New.
13798 (throughput_42_latency_43): New reservation.
13799 (mulsidi3, umulsidi3): New expanders.
13800 (mulsidi3_internal): Rewrite from old mulsidi3 pattern. Expose
13801 the MDR register to allocation; separately allocate the low and
13802 high parts of the DImode result.
13803 (umulsidi3_internal): Similarly.
13804 (*am33_mulsi3, *mn10300_mulsi3): Merge into ...
13805 (*mulsi3): ... here. Clobber MDR as a scratch as necessary.
13806 (udivsi3, umodsi3): Remove.
13807 (udivmodsi4, divmodsi4): New expanders.
13808 (*udivmodsi4): Rename from udivmodsi4. Expose MDR properly.
13809 (*divmodsi4): Simiarly.
13810 (ext_internal): New.
13811
c25a21f5
RH
13812 * config/mn10300/constraints.md ("z"): New constraint.
13813 * config/mn10300/mn10300.h (MDR_REGNUM): Remove.
13814 (FIXED_REGISTERS): Don't fix MDR.
13815 (CALL_USED_REGSITERS): Reformat nicely.
13816 (REG_ALLOC_ORDER): Add MDR.
13817 (enum regclass): Add MDR_REGS.
13818 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update to match.
13819 (IRA_COVER_CLASSES): Add MDR_REGS.
13820 (REGNO_REG_CLASS): Handle MDR_REG.
13821 * config/mn10300/mn10300.c (mn10300_secondary_reload): Handle MDR_REGS.
13822 (mn10300_register_move_cost): Likewise.
13823 * config/mn10300/mn10300.md (MDR_REG): New.
13824 (*movsi_internal): Handle moves to/from MDR_REGS.
13825
36846b26
RH
13826 * config/mn10300/mn10300.c (mn10300_print_operand_address): Handle
13827 POST_MODIFY.
13828 (mn10300_secondary_reload): Tidy combination reload classes.
13829 (mn10300_legitimate_address_p): Allow post-modify and reg+reg
13830 addresses for AM33. Allow symbolic offsets for reg+imm.
13831 (mn10300_regno_in_class_p): New.
13832 (mn10300_legitimize_reload_address): New.
13833 * config/mn10300/mn10300.h (enum reg_class): Remove
13834 DATA_OR_ADDRESS_REGS, DATA_OR_EXTENDED_REGS, ADDRESS_OR_EXTENDED_REGS,
13835 SP_OR_EXTENDED_REGS, SP_OR_ADDRESS_OR_EXTENDED_REGS. Add
13836 SP_OR_GENERAL_REGS.
13837 (REG_CLASS_NAMES): Update to match.
13838 (REG_CLASS_CONTENTS): Likewise.
13839 (INDEX_REG_CLASS): Use GENERAL_REGS for AM33.
13840 (BASE_REG_CLASS): Use SP_OR_GENERAL_REGS for AM33.
13841 (REGNO_IN_RANGE_P): Remove.
13842 (REGNO_DATA_P): Use mn10300_regno_in_class_p.
13843 (REGNO_ADDRESS_P, REGNO_EXTENDED_P): Likewise.
13844 (REGNO_STRICT_OK_FOR_BASE_P): Likewise.
13845 (REGNO_STRICT_OK_FOR_BIT_BASE_P): Likewise.
13846 (REGNO_STRICT_OK_FOR_INDEX_P): Likewise.
13847 (REGNO_SP_P, REGNO_AM33_P, REGNO_FP_P): Remove.
13848 (REGNO_GENERAL_P): New.
13849 (HAVE_POST_MODIFY_DISP): New.
13850 (USE_LOAD_POST_INCREMENT, USE_STORE_POST_INCREMENT): New.
13851 (LEGITIMIZE_RELOAD_ADDRESS): New.
13852 * config/mn10300/mn10300-protos.h: Update.
13853
8b119bb6
RH
13854 * config/mn10300/mn10300.c (mn10300_preferred_reload_class): Allow
13855 DATA_REGS for AM33 stack-pointer destination.
13856 (mn10300_preferred_output_reload_class): Likewise.
13857 (mn10300_secondary_reload): Rearrange mn10300_secondary_reload_class
13858 into a form appropriate for ...
13859 (TARGET_SECONDARY_RELOAD): New.
13860 * config/mn10300/mn10300.h (SECONDARY_RELOAD_CLASS): Remove.
13861 * config/mn10300/mn10300-protos.h: Update.
13862 * config/mn10300/mn10300.md (reload_plus_sp_const): Rename from
13863 reload_insi; use the "A" constraint for the scratch; handle AM33
13864 moves of sp to non-address registers.
13865
b1efde2a
RH
13866 * config/mn10300/mn10300.md (*am33_movqi, *mn10300_movqi): Merge into
13867 (*movqi_internal): ... here.
13868 (*am33_movhi, *mn10300_movhi): Merge into...
13869 (*movhi_internal): ... here.
13870 (*movsi_internal): Use "r" instead of "dax" in constraints. Use "A"
13871 as the source/destination of moves from/to SP.
13872 (movsf): Only allow for AM33-2.
1c3ba85b 13873 (*movsf_internal): Use "r" instead of "dax"; use "F" instead of
b1efde2a
RH
13874 any integer constant constraint. Only allow for AM33-2. Tidy
13875 all of the alternative outputs.
13876 (movdi, movdf, *am33_2_movdf, *mn10300_movdf): Remove.
13877 (udivmodsi4): Delete expander and promote *udivmodsi4. Disallow
13878 for MN103.
13879 (udivsi3, umodsi3): New patterns for MN103 only.
13880
b899fd78
JR
138812011-01-19 Joern Rennecke <amylaar@spamcop.net>
13882
13883 * doc/tm.texi.in: Spell out that a lack of register class unions
13884 can lead to ICEs.
13885 * doc/tm.texi: Regenerate.
13886
afaaa67d
JJ
138872011-01-19 Jakub Jelinek <jakub@redhat.com>
13888
2e0642cd
JJ
13889 PR rtl-optimization/47337
13890 * dce.c (check_argument_store): New function.
13891 (find_call_stack_args): Ignore debug insns. Use check_argument_store.
13892
afaaa67d
JJ
13893 PR tree-optimization/47290
13894 * tree-eh.c (infinite_empty_loop_p): New function.
13895 (cleanup_empty_eh): Use it.
13896
d2cd871f
SE
138972011-01-18 Steve Ellcey <sje@cup.hp.com>
13898
13899 PR target/46997
13900 * ia64.c (ia64_expand_unpack): Fix code for TARGET_BIG_ENDIAN.
13901 (a64_expand_widen_sum): Ditto.
13902 * vect.md (mulv2si3): Disable for TARGET_BIG_ENDIAN.
13903 (vec_extract_evenodd_help): Ditto.
13904 (vec_extract_evenv4hi): Ditto.
13905 (vec_extract_oddv4hi): Ditto.
13906 (vec_extract_evenv2si): Ditto.
13907 (vec_extract_oddv2si): Ditto.
13908 (vec_extract_evenv2sf): Ditto.
13909 (vec_extract_oddv2sf): Ditto.
13910 (vec_pack_trunc_v4hi: Ditto.
13911 (vec_pack_trunc_v2si): Ditto.
13912 (vec_interleave_lowv8qi): Fix for TARGET_BIG_ENDIAN.
13913 (vec_interleave_highv8qi): Ditto.
13914 (mix1_r): Ditto.
13915 (vec_extract_oddv8qi): Ditto.
13916 (vec_interleave_lowv4hi): Ditto.
13917 (vec_interleave_highv4hi): Ditto.
13918 (vec_interleave_lowv2si): Ditto.
13919 (vec_interleave_highv2si): Ditto.
13920
41a1208a
JDA
139212011-01-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13922
13923 * doc/extend.texi: Mention __float128 support on hppa HP-UX.
13924 * config/pa/pa-hpux.h (HPUX_LONG_DOUBLE_LIBRARY): Define to 1.
13925 * config/pa/pa.c (pa_expand_builtin): New. Include "langhooks.h".
13926 (pa_c_mode_for_suffix): New.
13927 (TARGET_EXPAND_BUILTIN): Define.
13928 (TARGET_C_MODE_FOR_SUFFIX): Define.
13929 (pa_builtins): Define.
13930 (pa_init_builtins): Register __float128 type and init new support
13931 builtins.
13932 * config/pa/pa.h (HPUX_LONG_DOUBLE_LIBRARY): Define if not defined.
13933 * config/pa/quadlib.c (_U_Qfcopysign): New.
13934
1ecad98e
EB
139352011-01-18 Eric Botcazou <ebotcazou@adacore.com>
13936
13937 PR middle-end/46894
13938 * explow.c (allocate_dynamic_stack_space): Do not assume more than
13939 BITS_PER_UNIT alignment if STACK_DYNAMIC_OFFSET or STACK_POINTER_OFFSET
13940 are defined.
13941
d4f2460a
UW
139422011-01-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13943
13944 PR tree-optimization/47179
13945 * config/spu/spu.c (spu_ref_may_alias_errno): New function.
13946 (TARGET_REF_MAY_ALIAS_ERRNO): Define.
13947
4994da65
RG
139482011-01-18 Richard Guenther <rguenther@suse.de>
13949
13950 PR rtl-optimization/47216
13951 * emit-rtl.c: Include tree-flow.h.
13952 (set_mem_attributes_minus_bitpos): Use tree_could_trap_p instead
13953 of replicating it with different semantics.
13954 * Makefile.in (emit-rtl.o): Adjust.
13955
1eb458d1
RR
139562011-01-18 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13957
38be4072 13958 * config/arm/cortex-a9.md (cortex-a9-neon.md): Actually include.
61052244 13959 (cortex_a9_dp): Handle neon types correctly.
1eb458d1 13960
e7ef91dc
JJ
139612011-01-18 Jakub Jelinek <jakub@redhat.com>
13962
13963 PR rtl-optimization/47299
13964 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: Don't use
38be4072 13965 subtarget. Use normal multiplication if both operands are constants.
e7ef91dc
JJ
13966 * expmed.c (expand_widening_mult): Don't try to optimize constant
13967 multiplication if op0 has VOIDmode. Convert op1 constant to mode
13968 before using it.
13969
535b7874
RW
139702011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13971
13972 * doc/lto.texi (LTO): Ensure two spaces after period. Fix
13973 spacing after 'e.g.', typos, comma, hyphenation.
13974
27bf36f3
RH
139752011-01-17 Richard Henderson <rth@redhat.com>
13976
8a5b5449
RH
13977 * config/rx/predicates.md (rx_constshift_operand): Use match_test.
13978 (rx_restricted_mem_operand): New.
13979 (rx_shift_operand): Use register_operand.
13980 (rx_source_operand, rx_compare_operand): Likewise.
13981 * config/rx/rx.md (addsi3_flags): New expander.
13982 (adddi3): Rewrite as expander.
13983 (adc_internal, *adc_flags, adddi3_internal): New patterns.
13984 (subsi3_flags): New expander.
13985 (subdi3): Rewrite as expander.
13986 (sbb_internal, *sbb_flags, subdi3_internal): New patterns.
13987
784f69be
RH
13988 * config/rx/rx.c (RX_BUILTIN_SAT): Remove.
13989 (rx_init_builtins): Remove sat builtin.
13990 (rx_expand_builtin): Likewise.
13991 * config/rx/rx.md (ssaddsi3): New.
13992 (*sat): Rename from sat. Represent the CC_REG input.
13993
f033541c
RH
13994 * config/rx/predicates.md (rshift_operator): New.
13995 * config/rx/rx.c (rx_expand_insv): Remove.
13996 * config/rx/rx-protos.h: Update.
13997 * config/rx/rx.md (*bitset): Rename from bitset. Swap the ashift
13998 operand to the canonical position.
13999 (*bitset_in_memory, *bitinvert, *bitinvert_in_memory): Similarly.
14000 (*bitclr, *bitclr_in_memory): Similarly.
14001 (*insv_imm, rx_insv_reg, *insv_cond, *bmcc, *insv_cond_lt): New.
14002 (insv): Retain the zero_extract in the expansion.
14003
34fee389
RH
14004 * config/rx/rx.md (bswapsi2): Use = not + for output reload.
14005 (bswaphi2, bitinvert, revw): Likewise.
14006
265c835f
RH
14007 * config/rx/rx.c (gen_rx_store_vector): Use VOIDmode for gen_rtx_SET.
14008 (gen_rx_rtsd_vector, gen_rx_popm_vector): Likewise.
14009 * config/rx/rx.md (pop_and_return): Use VOIDmode for SET.
14010 (stack_push, stack_pushm, stack_pop, stack_popm): Likewise.
14011 (bitset, bitset_in_memory): Likewise.
14012 (bitinvert, bitinvert_in_memory): Likewise.
14013 (bitclr, bitclr_in_memory): Likewise.
14014 (insv, sync_lock_test_and_setsi, movstr, rx_movstr): Likewise.
14015 (rx_strend, rx_cmpstrn): Likewise.
14016 (rx_setmem): Likewise. Make the source BLKmode to match the dest.
14017 (bitop peep2 patterns): Remove.
14018
b4d83be3
RH
14019 * config/rx/rx.c (rx_match_ccmode): New.
14020 * config/rx/rx-protos.h: Update.
14021 * config/rx/rx.md (abssi2): Clobber, don't set flags.
14022 (addsi3, adddi3, andsi3, negsi2, one_cmplsi2, iorsi3): Likewise.
14023 (rotlsi3, rotrsi3, ashrsi3, lshrsi3, ashlsi3): Likewise.
14024 (subsi3, subdi3, xorsi3, addsf3, divsf3, mulsf3, subsf3): Likewise.
14025 (fix_truncsfsi2, floatsisf2): Likewise.
14026 (*abssi2_flags, *addsi3_flags, *andsi3_flags, *negsi2_flags): New.
14027 (*one_cmplsi2_flags, *iorsi3_flags, *rotlsi3_flags): New.
14028 (*rotrsi3_flags, *ashrsi3_flags, *lshrsi3_flags, *ashlsi3_flags): New.
14029 (*subsi3_flags, *xorsi3_flags): New.
14030
d0acb939
RH
14031 * config/rx/rx.md (cstoresf4, *cstoresf4): New patterns.
14032
c06fc3d9
RH
14033 * config/rx/rx.c (rx_print_operand): Remove workaround for
14034 unsplit comparison operations.
14035
2882702b
RH
14036 * config/rx/rx.md (movsicc): Split after reload.
14037 (*movsicc): Merge *movsieq and *movsine via match_operator.
14038 (*stcc): New pattern.
14039
6f7310f2
RH
14040 * config/rx/rx.c (rx_float_compare_mode): Remove.
14041 * config/rx/rx.h (rx_float_compare_mode): Remove.
14042 * config/rx/rx.md (cstoresi4): Split after reload.
14043 (*sccc): New pattern.
14044
e963cb1a
RH
14045 * config/rx/predicates.md (label_ref_operand): New.
14046 (rx_z_comparison_operator): New.
14047 (rx_zs_comparison_operator): New.
14048 (rx_fp_comparison_operator): New.
14049 * config/rx/rx.c (rx_print_operand) [B]: Examine comparison modes.
14050 Validate that the flags are set properly for the comparison.
14051 (rx_gen_cond_branch_template): Remove.
14052 (rx_cc_modes_compatible): Remove.
14053 (mode_from_flags): New.
14054 (flags_from_code): Rename from flags_needed_for_conditional.
14055 (rx_cc_modes_compatible): Re-write in terms of flags_from_mode.
14056 (rx_select_cc_mode): Likewise.
14057 (rx_split_fp_compare): New.
14058 (rx_split_cbranch): New.
14059 * config/rx/rx.md (most_cond, zs_cond): Remove iterators.
14060 (*cbranchsi4): Use match_operator and rx_split_cbranch.
14061 (*cbranchsf4): Similarly.
14062 (*cbranchsi4_tst): Rename from *tstbranchsi4_<code>. Use
14063 match_operator and rx_split_cbranch.
14064 (*cbranchsi4_tst_ext): Combine *tstbranchsi4m_eq and
14065 tstbranchsi4m_ne. Use match_operator and rx_split_cbranch.
14066 (*cmpsi): Rename from cmpsi.
14067 (*tstsi): Rename from tstsi.
14068 (*cmpsf): Rename from cmpsf; use CC_Fmode.
14069 (*conditional_branch): Rename from conditional_branch.
14070 (*reveresed_conditional_branch): Remove.
14071 (b<code>): Remove expander.
14072 * config/rx/rx-protos.h: Update.
14073
af530bb4
RH
14074 * config/rx/rx.c (rx_compare_redundant): Remove.
14075 * config/rx/rx.md (cmpsi): Don't use it.
14076 * config/rx/rx-protos.h: Update.
14077
27bf36f3
RH
14078 * config/rx/rx-modes.def (CC_F): New mode.
14079 * config/rx/rx.c (rx_select_cc_mode): New.
14080 * config/rx/rx.h (SELECT_CC_MODE): Use it.
14081 * config/rx/rx-protos.h: Update.
14082
d7fde127
RH
140832011-01-17 Richard Henderson <rth@redhat.com>
14084
14085 * except.c (dump_eh_tree): Fix stray ; after for statement.
14086
6ff38230
RG
140872011-01-17 Richard Guenther <rguenther@suse.de>
14088
14089 PR tree-optimization/47313
14090 * tree-inline.c (tree_function_versioning): Move DECL_RESULT
14091 handling before copying the body. Properly deal with
14092 by-reference result in SSA form.
14093
114ce554
ILT
140942011-01-17 Ian Lance Taylor <iant@google.com>
14095
bf5cd92b 14096 PR target/47219
114ce554
ILT
14097 * config/sparc/sparc.c (sparc_sr_alias_set): Don't define.
14098 (struct_value_alias_set): Don't define.
14099 (sparc_option_override): Don't set sparc_sr_alias_set and
14100 struct_value_alias_set.
14101 (save_or_restore_regs): Use gen_frame_mem rather than calling
14102 set_mem_alias_set.
14103 (sparc_struct_value_rtx): Likewise.
14104
98c6d93c
L
141052011-01-17 H.J. Lu <hongjiu.lu@intel.com>
14106
14107 PR target/47318
7a81008b 14108 * config/i386/avxintrin.h (_mm_maskload_pd): Change mask to __m128i.
98c6d93c
L
14109 (_mm_maskstore_pd): Likewise.
14110 (_mm_maskload_ps): Likewise.
14111 (_mm_maskstore_ps): Likewise.
14112 (_mm256_maskload_pd): Change mask to __m256i.
14113 (_mm256_maskstore_pd): Likewise.
14114 (_mm256_maskload_ps): Likewise.
14115 (_mm256_maskstore_ps): Likewise.
14116
14117 * config/i386/i386-builtin-types.def: Updated.
14118 (ix86_expand_special_args_builtin): Likewise.
14119
14120 * config/i386/i386.c (bdesc_special_args): Update
14121 __builtin_ia32_maskloadpd, __builtin_ia32_maskloadps,
14122 __builtin_ia32_maskloadpd256, __builtin_ia32_maskloadps256,
14123 __builtin_ia32_maskstorepd, __builtin_ia32_maskstoreps,
14124 __builtin_ia32_maskstorepd256 and __builtin_ia32_maskstoreps256.
14125
14126 * config/i386/sse.md (avx_maskload<ssemodesuffix><avxmodesuffix>):
14127 Use <avxpermvecmode> on mask register.
14128 (avx_maskstore<ssemodesuffix><avxmodesuffix>): Likewise.
14129
b9361af2 141302011-01-17 Olivier Hainque <hainque@adacore.com>
61052244
AM
14131 Michael Haubenwallner <michael.haubenwallner@salomon.at>
14132 Eric Botcazou <ebotcazou@adacore.com>
b9361af2
OH
14133
14134 PR target/46655
14135 * xcoffout.c (ASM_OUTPUT_LINE): Output line only if positive, and only
14136 if <= USHRT_MAX in 32-bit mode.
14137
b7ae9eb5
RW
141382011-01-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14139
14140 * doc/install.texi (Configuration, Specific): Wrap long
14141 lines in examples. Allow line wrapping in long options
14142 and URLs where beneficial for PDF output.
14143
4377fad9
RS
141442011-01-16 Richard Sandiford <rdsandiford@googlemail.com>
14145
14146 * config/mips/mips.c (mips_classify_symbol): Don't return
14147 SYMBOL_PC_RELATIVE for nonlocal labels.
14148
55959ffa 141492011-01-15 Eric Botcazou <ebotcazou@adacore.com>
be46831f 14150
55959ffa
EB
14151 * config/sparc/sol2-bi.h (CC1_SPEC): Fix typo.
14152
141532011-01-15 Jan Hubicka <jh@suse.cz>
14154
14155 PR tree-optimization/47276
be46831f
JH
14156 * ipa.c (function_and_variable_visibility): Do not try to mark alias
14157 declarations as needed.
14158
05842ff5
MJ
141592011-01-15 Martin Jambor <mjambor@suse.cz>
14160
14161 * common.opt (fdevirtualize): New flag.
14162 * doc/invoke.texi (Option Summary): Document it.
14163 * opts.c (default_options_table): Add devirtualize flag.
14164 * ipa-prop.c (detect_type_change): Return immediately if
14165 devirtualize flag is not set.
14166 (detect_type_change_ssa): Likewise.
14167 (compute_known_type_jump_func): Likewise.
14168 (ipa_analyze_virtual_call_uses): Likewise.
14169
f65cf2b7
MJ
141702011-01-14 Martin Jambor <mjambor@suse.cz>
14171
14172 PR tree-optimization/45934
14173 PR tree-optimization/46302
14174 * ipa-prop.c (type_change_info): New type.
14175 (stmt_may_be_vtbl_ptr_store): New function.
14176 (check_stmt_for_type_change): Likewise.
14177 (detect_type_change): Likewise.
14178 (detect_type_change_ssa): Likewise.
14179 (compute_complex_assign_jump_func): Check for dynamic type change.
14180 (compute_complex_ancestor_jump_func): Likewise.
14181 (compute_known_type_jump_func): Likewise.
14182 (compute_scalar_jump_functions): Likewise.
14183 (ipa_analyze_virtual_call_uses): Likewise.
14184 (ipa_analyze_node): Push and pop cfun, set current_function_decl.
14185
eb5bb0fd
JM
141862011-01-14 Joseph Myers <joseph@codesourcery.com>
14187
14188 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -msse5.
14189 * config/i386/i386.opt (msse5): New Alias.
14190
f2060fbe
JM
141912011-01-14 Joseph Myers <joseph@codesourcery.com>
14192
14193 * config/sparc/linux.h (CC1_SPEC): Remove %{sun4:} %{target:}.
14194 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14195 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14196 * config/sparc/sparc.h (CC1_SPEC): Likewise.
14197
3a7b4385
JM
141982011-01-14 Joseph Myers <joseph@codesourcery.com>
14199
14200 * config/sparc/linux.h (CC1_SPEC): Don't handle old equivalents of
14201 -mcpu options.
14202 * config/sparc/linux64.h (CC1_SPEC): Likewise.
14203 * config/sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
14204 * config/sparc/sol2-bi.h (CPP_CPU_SPEC, CC1_SPEC): Likewise.
14205 * config/sparc/sparc.h (CPP_CPU_SPEC, CC1_SPEC, ASM_CPU_SPEC):
14206 Likewise.
14207 * config/sparc/t-elf (MULTILIB_MATCHES): Don't handle -mv8.
14208
a7b778f8
JM
142092011-01-14 Joseph Myers <joseph@codesourcery.com>
14210
38be4072 14211 * config/rs6000/vxworks.h (CC1_SPEC): Don't handle -fvec or -fvec-eabi.
a7b778f8 14212
a7edae0a
MS
142132011-01-14 Mike Stump <mikestump@comcast.net>
14214
14215 * config/alpha/alpha.md (umk_mismatch_args): Don't put a mode on set.
14216 * config/fr30/fr30.md: Likweise
14217 (movsi_push): Likewise.
14218 (movsi_pop): Likewise.
14219 (enter_func): Likewise.
14220 * config/moxie/moxie.md (movsi_push): Likewise.
14221 (movsi_pop): Likewise.
14222
cbabf03f
JM
142232011-01-14 Joseph Myers <joseph@codesourcery.com>
14224
14225 * config/mips/linux64.h (LINK_SPEC): Remove %{bestGnum}
14226 %{no_archive} %{exact_version}.
14227 * config/mips/mips.h (LINK_SPEC): Remove %{bestGnum}.
14228 * config/mips/netbsd.h (LINK_SPEC): Remove %{bestGnum}
14229 %{no_archive} %{exact_version}.
14230 * config/mips/openbsd.h (LINK_SPEC): Likewise.
14231 * config/mips/sde.h (LINK_SPEC): Remove %{bestGnum}.
14232 * config/mips/vxworks.h: Likewise.
14233
438da41a
JM
142342011-01-14 Joseph Myers <joseph@codesourcery.com>
14235
38be4072 14236 * config/microblaze/microblaze.h (ASM_SPEC): Remove %{microblaze1}.
438da41a 14237
da290a42
JM
142382011-01-14 Joseph Myers <joseph@codesourcery.com>
14239
14240 * config/m32r/little.h (CPP_ENDIAN_SPEC, CC1_ENDIAN_SPEC,
14241 ASM_ENDIAN_SPEC, LINK_ENDIAN_SPEC): Remove.
14242
8989d00e
JM
142432011-01-14 Joseph Myers <joseph@codesourcery.com>
14244
14245 * config/i386/nwld.h (LINK_SPEC): Check -nodefaultlibs not
14246 -nodefaultlib.
14247
a3010a69
JM
142482011-01-14 Joseph Myers <joseph@codesourcery.com>
14249
14250 * config/cris/cris.h (ASM_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check
14251 for mcpu not cpu.
14252 * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC,
14253 CRIS_CC1_SUBTARGET_SPEC, CRIS_ASM_SUBTARGET_SPEC): Check for mcpu
14254 not cpu.
14255 (CRIS_LINK_SUBTARGET_SPEC): Don't generate -rpath-link options.
14256 Don't handle -shlib.
14257
e7f2f537
JM
142582011-01-14 Joseph Myers <joseph@codesourcery.com>
14259
14260 * config/avr/avr.h (CPP_SPEC): Don't handle -posix.
14261 (CC1_SPEC): Don't handle -profile.
14262
34830bfd
JM
142632011-01-14 Joseph Myers <joseph@codesourcery.com>
14264
14265 * config/microblaze/microblaze.h (CC1_SPEC): Remove -gline spec.
14266 * config/mips/mips.h (CC1_SPEC): Likewise.
14267
b2d36e74
JM
142682011-01-14 Joseph Myers <joseph@codesourcery.com>
14269
14270 * config/microblaze/microblaze.h (CC1_SPEC): Remove %{save-temps: }.
14271 * config/mips/mips.h (CC1_SPEC): Likewise.
14272
dabadc52
JM
142732011-01-14 Joseph Myers <joseph@codesourcery.com>
14274
14275 * config/i386/linux.h (LINK_SPEC): Don't use %{!ibcs:} conditional.
14276 * config/m32r/linux.h (LINK_SPEC): Likewise.
14277 * config/mips/linux.h (LINK_SPEC): Likewise.
14278 * config/mips/linux64.h (LINK_SPEC): Likewise.
14279 * config/sparc/linux.h (LINK_SPEC): Likewise.
14280 * config/sparc/linux64.h (LINK_ARCH32_SPEC, LINK_ARCH64_SPEC,
14281 LINK_SPEC): Likewise.
14282 * config/xtensa/linux.h (LINK_SPEC): Likewise.
14283
43ee6785
JM
142842011-01-14 Joseph Myers <joseph@codesourcery.com>
14285
14286 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove
14287 %{version:-v}.
14288 * config/lm32/uclinux-elf.h (LINK_SPEC): Likewise.
14289
45e79dfd
JM
142902011-01-14 Joseph Myers <joseph@codesourcery.com>
14291
14292 * config/sparc/sp-elf.h (ASM_SPEC): Remove %{v:-V}.
14293 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
14294
37e9e71d
JM
142952011-01-14 Joseph Myers <joseph@codesourcery.com>
14296
14297 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Remove %{b}.
14298
bb127cd8
RO
142992011-01-14 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14300
14301 * configure.ac (gcc_cv_ld_static_dynamic): Solaris 2 ld always
14302 supports -Bstatic/-Bdynamic.
14303 * configure: Regenerate.
14304
89a012ea 143052011-01-14 Jan Hubicka <jh@suse.cz>
509d65dd 14306 Jack Howarth <howarth@bromo.med.uc.edu>
89a012ea
JH
14307
14308 PR target/46037
14309 * config/darwin.c (darwin_override_options): Honor flag_gtoggle
14310 when checking debug_info_level. Test write_symbols instead of
14311 debug_hooks->var_location when setting flag_var_tracking_uninit.
14312
7352c013
RG
143132011-01-14 Richard Guenther <rguenther@suse.de>
14314
14315 PR tree-optimization/47179
14316 * target.def (ref_may_alias_errno): New target hook.
14317 * targhooks.h (default_ref_may_alias_errno): Declare.
14318 * targhooks.c: Include tree-ssa-alias.h and tree-flow.h.
14319 (default_ref_may_alias_errno): New function.
14320 * target.h (struct ao_ref_s): Declare.
14321 * tree-ssa-alias.c: Include target.h.
14322 (call_may_clobber_ref_p_1): Use the ref_may_alias_errno target hook.
14323 * Makefile.in (tree-ssa-alias.o): Adjust dependencies.
14324 (targhooks.o): Likewise.
14325 * doc/tm.texi.in (TARGET_REF_MAY_ALIAS_ERRNO): Document.
14326 * doc/tm.texi (TARGET_REF_MAY_ALIAS_ERRNO): Copy documentation.
14327
9a6c9288
RG
143282011-01-14 Richard Guenther <rguenther@suse.de>
14329
14330 * tree-ssa-structalias.c (new_var_info): Use DECL_HARD_REGISTER.
14331
0fdb0d27
RG
143322011-01-14 Richard Guenther <rguenther@suse.de>
14333
14334 PR tree-optimization/47280
14335 * tree-ssa-forwprop.c (associate_plusminus): Cleanup EH and
14336 return CFG changes.
14337 (tree_ssa_forward_propagate_single_use_vars): Deal with
14338 CFG changes from associate_plusminus.
14339
8f66db3b
RG
143402011-01-14 Richard Guenther <rguenther@suse.de>
14341
14342 PR middle-end/47281
14343 Revert
14344 2011-01-11 Richard Guenther <rguenther@suse.de>
14345
280d9630
EB
14346 PR tree-optimization/46076
14347 * tree-ssa.c (useless_type_conversion_p): Conversions from
14348 unprototyped to empty argument list function types are useless.
8f66db3b 14349
6c0c92e6
RG
143502011-01-14 Richard Guenther <rguenther@suse.de>
14351
14352 PR tree-optimization/47286
280d9630 14353 * tree-ssa-structalias.c (new_var_info): Register variables are global.
6c0c92e6 14354
db09f943
MJ
143552011-01-14 Martin Jambor <mjambor@suse.cz>
14356
14357 PR middle-end/46823
14358 * tree-inline.c (expand_call_inline): Get fndecl from call graph edge.
14359
dde8a3a4
AS
143602011-01-13 Anatoly Sokolov <aesok@post.ru>
14361
14362 * config/xtensa/xtensa.h (XTENSA_LIBCALL_VALUE, LIBCALL_VALUE,
14363 LIBCALL_OUTGOING_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
14364 * config/xtensa/xtensa.c (xtensa_libcall_value,
14365 xtensa_function_value_regno_p): New functions.
14366 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
14367
a2b63a20
KT
143682011-01-13 Kai Tietz <kai.tietz@onevision.com>
14369
14370 PR c++/47213
14371 * config/i386/cygming.h (TARGET_ASM_ASSEMBLE_VISIBILITY):
14372 PE specific hook.
14373 * config/i386/i386-protos.h (i386_pe_assemble_visibility):
14374 New function prototype.
14375 * config/i386/winnt.c (i386_pe_assemble_visibility):
14376 Warn only if attribute was specified by user.
14377
b41f0b34
MM
143782011-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
14379
14380 PR target/47251
14381 * config/rs6000/rs6000.md (floatunsdidf2): Add check for hardware
14382 floating point.
14383 (floatunsdidf2_fcfidu): Ditto.
14384
3f3c098d
AK
143852011-01-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14386
14387 * config/s390/s390.c (print_operand_address): Replace 'error' with
14388 'output_operand_lossage'.
14389 (print_operand): Likewise.
14390
29fa95ed
JL
143912011-01-13 Jeff Law <law@redhat.com>
14392
280d9630 14393 PR rtl-optimization/39077
29fa95ed
JL
14394 * doc/invoke.texi (max-gcse-insertion-ratio): Document.
14395 * params.h (MAX_GCSE_INSERTION_RATIO): Define.
14396 * params.def (PARAM_MAX_GCSE_INSERTION_RATIO): Define.
14397 * lcm.c (pre_edge_lcm): Properly initialize output sbitmaps.
14398 * gcse.c (prune_insertions_deletions): New function.
14399 (compute_pre_data): Use it.
14400
71d12276
DS
144012011-01-13 Dodji Seketeli <dodji@redhat.com>
14402
14403 PR debug/PR46973
14404 * dwarf2out.c (prune_unused_types_mark_generic_parms_dies): New
14405 static function.
61052244 14406 (prune_unused_types_mark): Use it.
71d12276 14407
9b0f04e7
AB
144082011-01-13 Andrey Belevantsev <abel@ispras.ru>
14409
14410 PR rtl-optimization/45352
1c3ba85b 14411 * sel-sched.c: Update copyright years.
9b0f04e7 14412 (reset_sched_cycles_in_current_ebb): Also recheck the DFA state
1c3ba85b 14413 in the advancing loop when we have issued issue_rate insns.
9b0f04e7 14414
d6a3e264
RH
144152011-01-12 Richard Henderson <rth@redhat.com>
14416
a49b692a
RH
14417 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): New.
14418 (TARGET_MD_ASM_CLOBBERS): New.
14419
126b1483
RH
14420 * config/mn10300/mn10300.c (mn10300_delegitimize_address): New.
14421 (TARGET_DELEGITIMIZE_ADDRESS): New.
14422
f3d9d2e0
RH
14423 * config/mn10300/mn10300.md (UNSPEC_BSCH): New.
14424 (clzsi2, *bsch): New patterns.
14425
d84760c9
RH
14426 * config/mn10300/mn10300.md (INT): New mode iterator.
14427 (*mov<INT>_clr): New pattern, and peep2 to generate it.
14428
ec815d65
RH
14429 * config/mn10300/mn10300.c (mn10300_option_override): Force enable
14430 flag_split_wide_types.
14431
d6a3e264
RH
14432 * config/mn10300/mn10300.c (mn10300_asm_trampoline_template): Remove.
14433 (mn10300_trampoline_init): Rewrite without a template, an immediate
14434 load and a direct branch.
14435 * config/mn10300/mn10300.h (TRAMPOLINE_SIZE): Reduce to 16.
14436
0f8ab434
AS
144372011-01-12 Anatoly Sokolov <aesok@post.ru>
14438
14439 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14440 * config/s390/s390-protos.h (s390_output_addr_const_extra): Remove.
14441 * config/s390/s390.c (s390_output_addr_const_extra): Make static.
14442 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14443
d8a24b65
KT
144442011-01-12 Kai Tietz <kai.tietz@onevision.com>
14445
14446 PR debug/47209
14447 * dwarfout2.c (should_emit_struct_debug): Use TYPE_MAIN_VARIANT
14448 of type.
14449
56e22cab
JH
144502011-01-12 Jan Hubicka <jh@suse.cz>
14451
14452 PR driver/47244
14453 * gcc.c (PLUGIN_COND): Update to disable plugin unless -flto is used.
14454 (PLUGIN_COND_CLOSE): New macro.
14455 (LINK_COMMAND_SPEC): Update to use PLUGIN_COND_CLOSE.
14456
4b18b3c2
RG
144572011-01-12 Richard Guenther <rguenther@suse.de>
14458
14459 PR lto/47259
14460 * lto-streamer-out.c (output_gimple_stmt): Do not wrap
14461 register variables in a MEM_REF.
14462
8e38461c
JM
144632011-01-12 Joseph Myers <joseph@codesourcery.com>
14464
14465 * config.gcc (arm*-*-linux*, bfin*-uclinux*, bfin*-linux-uclibc*,
14466 crisv32-*-linux* | cris-*-linux*, frv-*-*linux*, moxie-*-uclinux*,
14467 hppa*64*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux* |
14468 i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu |
14469 i[34567]86-*-gnu* | i[34567]86-*-kopensolaris*-gnu,
14470 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu,
14471 ia64*-*-linux*, lm32-*-uclinux*, m32r-*-linux*, m32rle-*-linux*,
14472 m68k-*-uclinux*, m68k-*-linux*, microblaze*-linux*,
14473 mips64*-*-linux* | mipsisa64*-*-linux*, mips*-*-linux*,
14474 s390-*-linux*, s390x-*-linux*, sh*-*-linux*, sparc-*-linux*,
14475 sparc64-*-linux*, vax-*-linux*, xtensa*-*-linux*,
14476 am33_2.0-*-linux*): Use gnu-user.h before linux.h.
14477 * config/gnu-user.h: New. Copied from linux.h.
14478 (LINUX_TARGET_STARTFILE_SPEC): Rename to
14479 GNU_USER_TARGET_STARTFILE_SPEC.
14480 (LINUX_TARGET_ENDFILE_SPEC): Rename to
14481 GNU_USER_TARGET_ENDFILE_SPEC.
14482 (LINUX_TARGET_CC1_SPEC): Rename to GNU_USER_TARGET_CC1_SPEC.
14483 (LINUX_TARGET_LIB_SPEC): Rename to GNU_USER_TARGET_LIB_SPEC.
14484 (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC,
14485 LINUX_TARGET_OS_CPP_BUILTINS, CHOOSE_DYNAMIC_LINKER1,
14486 CHOOSE_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER,
14487 UCLIBC_DYNAMIC_LINKER32, UCLIBC_DYNAMIC_LINKER64,
14488 BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,
14489 BIONIC_DYNAMIC_LINKER64, LINUX_DYNAMIC_LINKER,
14490 LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64,
14491 TARGET_C99_FUNCTIONS, TARGET_HAS_SINCOS): Remove.
14492 * config/arm/linux-eabi.h (CC1_SPEC): Use
14493 GNU_USER_TARGET_CC1_SPEC.
14494 (LIB_SPEC): Use GNU_USER_TARGET_LIB_SPEC.
14495 (STARTFILE_SPEC): Use GNU_USER_TARGET_STARTFILE_SPEC.
14496 (ENDFILE_SPEC): Use GNU_USER_TARGET_ENDFILE_SPEC
14497 * config/linux.h (NO_IMPLICIT_EXTERN_C, ASM_APP_ON, ASM_APP_OFF,
14498 LINUX_TARGET_STARTFILE_SPEC, STARTFILE_SPEC,
14499 LINUX_TARGET_ENDFILE_SPEC, ENDFILE_SPEC, LINUX_TARGET_CC1_SPEC,
14500 CC1_SPEC, CPLUSPLUS_CPP_SPEC, LINUX_TARGET_LIB_SPEC, LIB_SPEC,
14501 LINK_EH_SPEC, LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Remove.
14502
a570fc16
RG
145032011-01-12 Richard Guenther <rguenther@suse.de>
14504
14505 PR other/46946
14506 * doc/invoke.texi (ffast-math): Document it is turned on
14507 with -Ofast.
14508
b0223c3e
JH
145092011-01-12 Jan Hubicka <jh@suse.cz>
14510
14511 PR tree-optimization/47233
ca1e00b3
EB
14512 * opts.c (common_handle_option): Disable ipa-reference with profile
14513 feedback.
b0223c3e 14514
1c3ba85b 145152011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
d853ee42
NP
14516
14517 * c-parser.c (c_parser_objc_at_property_declaration): Improved
ca1e00b3
EB
14518 error message.
14519
d853ee42
NP
145202011-01-12 Nicola Pero <nicola.pero@meta-innovation.com>
14521
14522 * c-parser.c (c_lex_one_token): Updated and reindented some
14523 comments. No changes in code.
14524
4053a5a0
ILT
145252011-01-11 Ian Lance Taylor <iant@google.com>
14526
14527 * godump.c (go_output_var): Don't output the variable if there is
14528 already a type with the same name.
14529
fa3e04d2
ILT
145302011-01-11 Ian Lance Taylor <iant@google.com>
14531
14532 * godump.c (go_format_type): Don't generate float80.
14533
885fe07c
RH
145342011-01-11 Richard Henderson <rth@redhat.com>
14535
72d6e3c5
RH
14536 * config/mn10300/mn10300.c (mn10300_address_cost): Remove forward
14537 declaration. Rewrite for both speed and size.
14538 (mn10300_address_cost_1): Remove.
14539 (mn10300_register_move_cost): New.
14540 (mn10300_memory_move_cost): New.
14541 (mn10300_rtx_costs): Rewrite for both speed and size. Don't handle
14542 ZERO_EXTRACT. Do handle UNSPEC, arithmetic, logicals, compare,
14543 extensions, shifts, BSWAP, CLZ.
14544 (mn10300_wide_const_load_uses_clr): Remove.
14545 (TARGET_REGISTER_MOVE_COST): New.
14546 (TARGET_MEMORY_MOVE_COST): New.
14547 * config/mn10300/mn10300-protos.h: Update.
14548 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Remove.
14549
df37c023
RH
14550 * config/mn10300/constraints.md ("R", "T"): Remove constraints.
14551 * config/mn10300/mn10300.c (mn10300_mask_ok_for_mem_btst): Remove.
14552 * config/mn10300/mn10300-protos.h: Update.
14553 * config/mn10300/mn10300.md (movsi_internal): Don't use "R".
14554 (*byte_clear, *byte_set, *bit_clear1, *bit_clear2, *bit_set): Remove.
14555 (iorqi3, *am33_iorqi3, *mn10300_iorqi3): Remove.
14556 (*test_int_bitfield, *test_byte_bitfield): Remove.
14557 (*bit_test, *subreg_bit_test): Remove.
62d3f9b2 14558 * config/mn10300/predicates.md (const_8bit_operand): Remove.
df37c023 14559
85a337b5
RH
14560 * config/mn10300/constraints.md ("c"): Rename from "A".
14561 ("A", "D"): New constraint letters.
14562 * config/mn10300/mn10300.md (fmasf4): Use the "c" constraint.
14563 (fmssf4, fnmasf4, fnmssf4): Likewise.
14564
a5c727e3
RH
14565 * config/mn10300/mn10300.md (isa): New attribute.
14566 (enabled): New attribute.
14567
0d9e23f4
RH
14568 * config/mn10300/mn10300.md (absdf2, negdf2): Remove.
14569 (abssf2, negsf2): Define only for hardware fp.
14570 (sqrtsf2): Reformat.
14571 (addsf3, subsf3, mulsf3): Merge expander and insn.
14572
c157b3f0
RH
14573 * config/mn10300/mn10300.h (ARG_PIONTER_CFA_OFFSET): New.
14574 (DEBUGGER_AUTO_OFFSET): Remove.
14575 (DEBUGGER_ARG_OFFSET): Remove.
14576
cc909bba
RH
14577 * config/mn10300/mn10300.c (mn10300_gen_multiple_store): Make static.
14578 Emit register stores with the same offsets as the hardware.
14579 (mn10300_store_multiple_operation): Don't check that the register
14580 save offsets are monotonic.
14581 * config/mn10300/mn10300-protos.h: Update.
14582
e3b5c2f3
RH
14583 * config/mn10300/mn10300.h (ASM_PN_FORMAT): Delete.
14584
885fe07c
RH
14585 * config/mn10300/mn10300.h (INCOMING_RETURN_ADDR_RTX): Define
14586 in terms of the value on the stack, not the MDR register.
14587
6e701822
JH
145882011-01-11 Jan Hubicka <jh@suse.cz>
14589
14590 PR lto/45721
14591 PR lto/45375
14592 * tree.h (symbol_alias_set_t): Move typedef here from varasm.c
14593 (symbol_alias_set_destroy, symbol_alias_set_contains,
14594 propagate_aliases_backward): Declare.
14595 * lto-streamer-out.c (struct sets): New sturcture.
14596 (trivally_defined_alias): New function.
14597 (output_alias_pair_p): Rewrite.
14598 (output_unreferenced_globals): Fix output of alias pairs.
14599 (produce_symtab): Likewise.
14600 * ipa.c (function_and_variable_visibility): Set weak alias destination
14601 as needed in lto.
14602 * varasm.c (symbol_alias_set_t): Remove.
14603 (symbol_alias_set_destroy): Export.
14604 (propagate_aliases_forward, propagate_aliases_backward): New functions
14605 based on ...
14606 (compute_visible_aliases): ... this one; remove.
14607 (trivially_visible_alias): New
14608 (trivially_defined_alias): New.
14609 (remove_unreachable_alias_pairs): Rewrite.
14610 (finish_aliases_1): Reorganize code checking if alias is defined.
14611 * passes.c (rest_of_decl_compilation): Do not call assemble_alias when
14612 in LTO mode.
14613
1b248907
RG
146142011-01-11 Richard Guenther <rguenther@suse.de>
14615
14616 PR tree-optimization/46076
14617 * tree-ssa.c (useless_type_conversion_p): Conversions from
14618 unprototyped to empty argument list function types are useless.
14619
b1923f0a
RG
146202011-01-11 Richard Guenther <rguenther@suse.de>
14621
14622 PR middle-end/45235
14623 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not mark
14624 volatile MEMs as MEM_READONLY_P.
14625
e98965af
RG
146262011-01-11 Richard Guenther <rguenther@suse.de>
14627
14628 PR tree-optimization/47239
14629 * tree-ssa-ccp.c (get_value_from_alignment): Punt for FUNCTION_DECLs.
14630
9f9ca914
JL
146312011-01-11 Jeff Law <law@redhat.com>
14632
1ee3ea05 14633 PR tree-optimization/47086
9f9ca914
JL
14634 * tree-ssa-loop-ivopts.c (find_givs_in_stmt_scev): Do not record
14635 IVs from statements that might throw.
14636
345fdcb7
JH
146372011-01-10 Jan Hubicka <jh@suse.cz>
14638
14639 PR lto/45375
14640 * lto-cgraph.c (input_profile_summary): Remove overactive sanity check.
14641
c459c97b
JH
146422011-01-10 Jan Hubicka <jh@suse.cz>
14643
14644 PR lto/45375
14645 * profile.c (read_profile_edge_counts): Ignore profile inconistency
14646 when correcting profile.
14647
06c9eb51
JH
146482011-01-10 Jan Hubicka <jh@suse.cz>
14649
14650 PR lto/46083
14651 * lto-streamer-out.c (pack_ts_function_decl_value_fields): Store
14652 DECL_FINI_PRIORITY.
14653 * lto-streamer-in.c (unpack_ts_function_decl_value_fields):
14654 Restore DECL_FINI_PRIORITY.
14655
ae9fd815
RW
146562011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14657
14658 * doc/gimple.texi: Fix quoting of multi-word return values in
14659 @deftypefn statements. Ensure presence of return value. Wrap
14660 overlong @deftypefn lines.
14661 (is_gimple_operand, is_gimple_min_invariant_address): Remove
14662 descriptions of removed functions.
14663 * doc/hostconfig.texi (Host Common): Wrap long line, fix quoting
14664 of multi-word return value in @deftypefn statement.
14665
0ecb4a7c
RW
146662011-01-10 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14667
14668 * doc/gimple.texi (Temporaries, Operands, Compound Lvalues)
14669 (Conditional Expressions, Logical Operators)
14670 (Statement and operand traversals): Do not indent smallexample
14671 code. Fix duplicate function argument in example.
14672
2e5e346d
JL
146732011-01-10 Jeff Law <law@redhat.com>
14674
1ee3ea05 14675 PR tree-optimization/47141
2e5e346d
JL
14676 * ipa-split.c (split_function): Handle case where we are
14677 returning a value and the return block has a virtual operand phi.
14678
cf9712cc
JH
146792011-01-10 Jan Hubicka <jh@suse.cz>
14680
1c3ba85b 14681 PR tree-optimization/47234
cf9712cc
JH
14682 * tree-pass.h (TODO_rebuild_cgraph_edges): New TODO.
14683 (pass_feedback_split_functions): Declare.
14684 * passes.c (init_optimization_passes): Add ipa-split as subpass of
14685 tree-profile.
14686 * ipa-split.c (gate_split_functions): Update comments; disable
14687 split-functions for profile_arc_flag and branch_probabilities.
14688 (gate_feedback_split_functions): New function.
14689 (execute_feedback_split_functions): New function.
14690 (pass_feedback_split_functions): New global var.
14691
94cd932c
L
146922011-01-10 H.J. Lu <hongjiu.lu@intel.com>
14693
14694 PR lto/46760
14695 * tree-inline.c (tree_can_inline_p): Check e->call_stmt before
14696 calling gimple_call_set_cannot_inline.
14697
fbbfcaf1
IS
146982011-01-10 Iain Sandoe <iains@gcc.gnu.org>
14699
14700 * config/darwin-sections.def: Remove unused section.
14701
d06865bf
DK
147022011-01-10 Dave Korn <dave.korn.cygwin@gmail.com>
14703
14704 PR c++/47218
14705 * cgraphunit.c (assemble_thunk): Call resolve_unique_section.
14706
96bbfbac
NP
147072011-01-09 Nicola Pero <nicola.pero@meta-innovation.com>
14708
14709 PR objc/47232
14710 * c-parser.c (c_parser_declaration_or_fndef): Improved
14711 error message.
14712
1ba6516f
KT
147132011-01-09 Kai Tietz <kai.tietz@onevision.com>
14714
14715 * config/i386/winnt.c (i386_pe_start_function): Make sure
14716 to switch back to function's section.
14717
0c5d770e
IS
147182011-01-09 Iain Sandoe <iains@gcc.gnu.org>
14719
14720 PR gcc/46902
14721 PR testsuite/46912
14722 * plugin.c: Move include of dlfcn.h from here...
14723 * system.h: ... to here.
14724
147252011-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4ee1aa2a
RW
14726
14727 * doc/cpp.texi (C++ Named Operators): Fix markup for header
14728 file name.
14729 * doc/cppinternals.texi (Top): Wrap node in @ifnottex to avoid
14730 two extra empty pages in PDF output.
14731
046608a3
NP
147322011-01-08 Nicola Pero <nicola.pero@meta-innovation.com>
14733
14734 PR objc/47078
14735 * c-parser.c (c_parser_objc_type_name): If the type is unknown,
14736 for error recovery purposes behave as if it was not specified so
14737 that the default type is usd.
14738
8cb114b9
JH
147392011-01-07 Jan Hubicka <jh@suse.cz>
14740
14741 PR tree-optmization/46469
14742 * ipa.c (function_and_variable_visibility): Clear needed flags on
14743 nodes with external decls; handle weakrefs merging correctly.
14744
b294a75e
JM
147452011-01-07 Joseph Myers <joseph@codesourcery.com>
14746
14747 * opts.c (finish_options): Set opts->x_flag_opts_finished to true,
14748 not false.
14749
96bdf9b4
JH
147502011-01-07 Jan Hubicka <jh@suse.cz>
14751
f60c2554 14752 * doc/invoke.texi (-flto, -fuse-linker-plugin): Update defaults
96bdf9b4
JH
14753 and no longer claim that gold is required for linker plugin.
14754 * configure: Regenerate.
14755 * gcc.c (PLUGIN_COND): New macro.
14756 (LINK_COMMAND_SPEC): Use it.
14757 (main): Default to plugin enabled with HAVE_LTO_PLUGIN is set.
14758 * config.in (HAVE_LTO_PLUGIN): New.
14759 * configure.ac (--with-lto-plugin): New parameter; autodetect
14760 HAVE_LTO_PLUGIN.
14761
17afc0fe
JH
147622011-01-07 Jan Hubicka <jh@suse.cz>
14763
14764 PR tree-optimization/46367
14765 * ipa-inline.c (cgraph_clone_inlined_nodes): Use original function only
14766 when we can update original.
14767 (cgraph_mark_inline_edge): Sanity check.
14768 * ipa-prop.c (ipa_make_edge_direct_to_target): Sanity check.
14769
d4c48c0f
UW
147702011-01-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14771
14772 * config/spu/spu.h (ASM_COMMENT_START): Define.
14773
96f5b137
L
147742011-01-07 H.J. Lu <hongjiu.lu@intel.com>
14775
14776 PR driver/42445
14777 * gcc.c (%>S): New.
14778 (SWITCH_KEEP_FOR_GCC): Likewise.
14779 (set_collect_gcc_options): Check SWITCH_KEEP_FOR_GCC.
14780 (do_spec_1): Handle "%>".
14781
14782 * config/i386/i386.h (CC1_CPU_SPEC): Replace "%<" with "%>".
14783
c6a8f6de
JJ
147842011-01-07 Jakub Jelinek <jakub@redhat.com>
14785
c21bbd7a
JJ
14786 PR target/47201
14787 * config/i386/i386.c (ix86_delegitimize_address): If
14788 simplify_gen_subreg fails, return orig_x.
14789
c6a8f6de
JJ
14790 PR bootstrap/47187
14791 * value-prof.c (gimple_stringop_fixed_value): Handle
14792 lhs of the call properly.
14793
fe95fbf9
JH
147942011-01-07 Jan Hubicka <jh@suse.cz>
14795
14796 PR lto/45375
14797 * lto-opt.c (lto_reissue_options): Set flag_shlib.
14798
14d11d40
IS
147992011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14800
72e961c8
EB
14801 * target.def (function_switched_text_sections): New hook.
14802 * doc/tm.texi: Regenerated.
14803 * doc/tm.texi.in (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 14804 * final.c (default_function_switched_text_sections): New.
72e961c8
EB
14805 (final_scan_insn): Call function_switched_text_sections when a
14806 mid-function section change occurs.
14d11d40 14807 * output.h (default_function_switched_text_sections): Declare.
72e961c8
EB
14808 * config/darwin-protos.h (darwin_function_switched_text_sections):
14809 Likewise.
14d11d40 14810 * config/darwin.c (darwin_function_switched_text_sections): New.
72e961c8 14811 * config/darwin.h (TARGET_ASM_FUNCTION_SWITCHED_TEXT_SECTIONS): New.
14d11d40 14812
0b764288
IS
148132011-01-07 Iain Sandoe <iains@gcc.gnu.org>
14814
14815 * dwarf2out.c (gen_subprogram_die): Add pubnames with code ranges for
14816 DWARF >= 3. Add pubnames for the primary section and a reduced DIE for
14817 the secondary code fragment when outputting for DWARF == 2.
14818
2ac6bb04
AS
148192011-01-07 Anatoly Sokolov <aesok@post.ru>
14820
14821 * config/xtensa/xtensa.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
14822 * config/xtensa/xtensa-protos.h (xtensa_output_addr_const_extra):
14823 Remove.
14824 * config/xtensa/xtensa.c (xtensa_output_addr_const_extra): Make static.
14825 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
14826
9f82de11
EB
148272011-01-06 Eric Botcazou <ebotcazou@adacore.com>
14828
14829 PR debug/46704
280d9630
EB
14830 * dwarf2out.c (dwarf2out_finish): Output the debug_aranges section only
14831 when it is not empty.
9f82de11
EB
14832
148332011-01-06 Changpeng Fang <changpeng.fang@amd.com>
14b52538 14834
1ed72abf 14835 Bobcat Enablement
14b52538 14836 * config.gcc (i[34567]86-*-linux* | ...): Add btver1.
1ed72abf 14837 (case ${target}): Add btver1.
14b52538 14838 * config/i386/driver-i386.c (host_detect_local_cpu): Let
1ed72abf 14839 -march=native recognize btver1 processors.
14b52538 14840 * config/i386/i386-c.c (ix86_target_macros_internal): Add
1ed72abf 14841 btver1 def_and_undef
14b52538 14842 * config/i386/i386.c (struct processor_costs btver1_cost): New
1ed72abf
CF
14843 btver1 cost table.
14844 (m_BTVER1): New definition.
14845 (m_AMD_MULTIPLE): Includes m_BTVER1.
14846 (initial_ix86_tune_features): Add btver1 tune.
14847 (processor_target_table): Add btver1 entry.
14848 (static const char *const cpu_names): Add btver1 entry.
14849 (software_prefetching_beneficial_p): Add btver1.
14850 (ix86_option_override_internal): Add btver1 instruction sets.
14851 (ix86_issue_rate): Add btver1.
14852 (ix86_adjust_cost): Add btver1.
14b52538 14853 * config/i386/i386.h (TARGET_BTVER1): New definition.
1ed72abf
CF
14854 (enum target_cpu_default): Add TARGET_CPU_DEFAULT_btver1.
14855 (enum processor_type): Add PROCESSOR_BTVER1.
14b52538
CF
14856 * config/i386/i386.md (define_attr "cpu"): Add btver1.
14857
e1a973d8
RO
148582011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14859
14860 PR target/43309
14861 * config/i386/i386.c (legitimize_tls_address)
14862 <TLS_MODEL_INITIAL_EXEC>: Handle TARGET_64BIT && TARGET_SUN_TLS.
14863 * config/i386/i386.md (UNSPEC_TLS_IE_SUN): Declare.
14864 (tls_initial_exec_64_sun): New pattern.
14865
c73f67c5
GP
148662011-01-06 Gerald Pfeifer <gerald@pfeifer.com>
14867
14868 * doc/invoke.texi (Overall Options): Improve wording and markup
14869 of the description of -wrapper.
14870
bc4c6f9c
JM
148712011-01-06 Joseph Myers <joseph@codesourcery.com>
14872
14873 * config/sol2.opt (G, YP,, Ym,, compat-bsd, pthread, pthreads,
14874 rdynamic, threads): New Driver options.
14875
adb75db0
RO
148762011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14877
14878 PR target/38118
14879 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Also switch to .bss
14880 if coming from .tdata.
14881 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
14882
402c1cb4
JH
148832011-01-06 Jan Hubicka <jh@suse.cz>
14884
14885 PR lto/47188
14886 * collect2.c (main): Do not enable LTOmode when plugin is active.
14887
a4da6485
RO
148882011-01-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14889
14890 PR other/45915
14891 * configure.ac (gcc_cv_as_gnu_unique_object): Only use ldd
14892 --version output if supported.
14893 * configure: Regenerate.
14894
028dbdf4
JM
148952011-01-06 Joseph Myers <joseph@codesourcery.com>
14896
14897 * config/linux-android.opt (tno-android-cc, tno-android-ld): New
14898 Driver options.
14899
dfe776dd
JJ
149002011-01-06 Jakub Jelinek <jakub@redhat.com>
14901
14902 PR c/47150
14903 * c-convert.c (convert): When converting a complex expression
14904 other than COMPLEX_EXPR to a different complex type, ensure
14905 c_save_expr is called instead of save_expr, unless in_late_binary_op.
14906 * c-typeck.c (convert_for_assignment): Set in_late_binary_op also
14907 when converting COMPLEX_TYPE.
14908
210dedfe
IR
149092011-01-06 Ira Rosen <irar@il.ibm.com>
14910
14911 PR tree-optimization/47139
14912 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that
14913 only the last reduction value is used outside the loop. Update
14914 documentation.
14915
cd33a412
JM
149162011-01-05 Joseph Myers <joseph@codesourcery.com>
14917
14918 * config/rtems.opt: New.
14919 * config.gcc (*-*-rtems*): Use rtems.opt.
14920
819edd94
CF
149212011-01-05 Changpeng Fang <changpeng.fang@amd.com>
14922
14923 * config/i386/i386.c (ix86_option_override_internal): Bulldozer
14924 processors do not support 3DNow instructions.
14925
dc242c4a
UW
149262011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14927
14928 * config/spu/spu.c (spu_option_override): Set parameter
14929 PARAM_MAX_COMPLETELY_PEEL_TIMES to 4 instead of 1.
14930
be286227
JH
149312011-01-05 Jan Hubicka <jh@suse.cz>
14932
14933 * lto-wrapper.c (run_gcc): Default to WHOPR mode when none is specified
14934 at the command line.
14935
644e637f
MJ
149362011-01-05 Martin Jambor <mjambor@suse.cz>
14937
14938 PR lto/47162
14939 * lto-cgraph.c (output_cgraph_opt_summary_p): Also check for thunk
14940 deltas on streamed outgoing edges.
14941 (output_node_opt_summary): Output info for outgoing edges only when
14942 the node is in new parameter set.
14943 (output_cgraph_opt_summary): New parameter set, passed to the two
14944 aforementioned functions. Update its forward declaration and its
14945 callee too.
14946
7bd11157
TT
149472011-01-05 Tom Tromey <tromey@redhat.com>
14948
14949 * c-parser.c (c_parser_omp_atomic): Pass location of assignment
14950 operator to c_finish_omp_atomic.
14951 * c-typeck.c (lvalue_or_else): Add 'loc' argument.
14952 (build_unary_op): Update.
14953 (build_modify_expr): Update.
14954 (build_asm_expr): Update.
14955
f626b979
UW
149562011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14957
14958 * config/spu/spu.c (emit_nop_for_insn): Set INSN_LOCATOR for
14959 newly inserted insns.
14960 (pad_bb): Likewise.
14961 (spu_emit_branch_hint): Likewise.
14962 (insert_hbrp_for_ilb_runout): Likewise.
14963 (spu_machine_dependent_reorg): Call df_finish_pass after
14964 schedule_insns returns.
14965
4c825c02
UW
149662011-01-05 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14967
14968 * config/spu/spu.c (spu_expand_prologue): Support -fstack-usage.
14969
5e9fba51
EB
149702011-01-05 Eric Botcazou <ebotcazou@adacore.com>
14971
14972 PR tree-optimization/47005
14973 * tree-sra.c (struct access): Add 'non_addressable' bit.
14974 (create_access): Set it for a DECL_NONADDRESSABLE_P field.
14975 (decide_one_param_reduction): Return 0 if the parameter is passed by
14976 reference and one of the accesses in the group is non_addressable.
14977
3ebb5ca6
EB
149782011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14979
14980 PR tree-optimization/47056
14981 * cgraphbuild.c (mark_address): Remove ATTRIBUTE_UNUSED markers.
14982 (mark_load): Likewise. Handle FUNCTION_DECL specially.
14983 (mark_store): Likewise. Pass STMT to ipa_record_reference.
14984
d5d4d14e
EB
149852011-01-04 Eric Botcazou <ebotcazou@adacore.com>
14986
14987 * dwarf2out.c (rtl_for_decl_init): Strip no-op conversions off the
14988 initializer. Skip view conversions from aggregate types.
14989
d996ef70
KT
149902011-01-04 Kai Tietz <kai.tietz@onevision.com>
14991
14992 PR bootstrap/47055
14993 * libgcov.c (gcov_exit): Check for HAS_DRIVE_SPEC.
14994
509d65dd 149952011-01-04 Philipp Thomas <pth@suse.de>
017096ca
PT
14996
14997 * config/microblaze/microbalse.opt (mxl-float-convert): Fix
14998 obvious typo.
14999
55c623b5
UW
150002011-01-04 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15001
15002 * function.c (thread_prologue_and_epilogue_insns): Do not crash
15003 on empty epilogue sequences.
15004
b98d6b35
JM
150052011-01-04 Joseph Myers <joseph@codesourcery.com>
15006
15007 * config/vxworks.opt (Bdynamic, Bstatic, Xbind-lazy, Xbind-now,
15008 non-static): New Driver options.
15009
a0d43bac
JZ
150102011-01-04 Jie Zhang <jie@codesourcery.com>
15011
15012 PR driver/47137
15013 * gcc.c (default_compilers[]): Set combinable field to 0
15014 for all assembly languages.
15015
2b18eb32
MX
150162011-01-04 Mingjie Xing <mingjie.xing@gmail.com>
15017
15018 * config/mips/loongson3a.md: New file.
15019 * config/mips/mips.md: Include loongson3a.md.
15020 * config/mips/mips.c (mips_multipass_dfa_lookahead): Return 4 when
15021 TUNE_LOONGSON_3A.
15022
42a48c4f
EB
150232011-01-03 Eric Botcazou <ebotcazou@adacore.com>
15024
15025 PR middle-end/47017
15026 * expr.c (expand_expr_real_1) <MEM_REF>: Call memory_address_addr_space
15027 instead of convert_memory_address_addr_space on the base expression.
15028
9c1732c4
UW
150292011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15030
15031 * config/spu/spu.c (spu_option_override): Update error text
15032 for bad -march= / -mtune= values.
15033
aa474365
UW
150342011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15035
15036 * config/spu/spu.c (asm_file_start): Only reset flag_var_tracking
15037 if branch-hint optimization will be performed.
15038
9766135b
JJ
150392011-01-03 Jakub Jelinek <jakub@redhat.com>
15040
371556ee
JJ
15041 PR tree-optimization/47148
15042 * ipa-split.c (split_function): Convert arguments to
15043 DECL_ARG_TYPE if possible.
15044
1ac12fa2
JJ
15045 PR tree-optimization/47155
15046 * tree-ssa-ccp.c (bit_value_binop_1): Use r1type instead of type
15047 when computing uns.
15048
9766135b
JJ
15049 PR rtl-optimization/47157
15050 * combine.c (try_combine): If undobuf.other_insn becomes
15051 (set (pc) (pc)) jump, call update_cfg_for_uncondjump on it
15052 and set *new_direct_jump_p too.
15053
f4a2e571
SP
150542011-01-03 Sebastian Pop <sebastian.pop@amd.com>
15055
15056 PR tree-optimization/47021
15057 * graphite-sese-to-poly.c (scan_tree_for_params): Handle ADDR_EXPR.
15058
9f8e43c0
JJ
150592011-01-03 Jakub Jelinek <jakub@redhat.com>
15060
15061 * gcc.c (process_command): Update copyright notice dates.
15062 * gcov.c (print_version): Likewise.
15063 * gcov-dump.c (print_version): Likewise.
15064 * mips-tfile.c (main): Likewise.
15065 * mips-tdump.c (main): Likewise.
15066
1a2e38f3
MJ
150672011-01-03 Martin Jambor <mjambor@suse.cz>
15068
15069 PR tree-optimization/46801
15070 * tree-sra.c (type_internals_preclude_sra_p): Check whether
15071 aggregate fields start at byte boundary instead of the bit-field flag.
15072
56b721c5
L
150732011-01-03 H.J. Lu <hongjiu.lu@intel.com>
15074
15075 PR driver/47137
15076 * gcc.c (main): Revert revision 168407.
15077
839d549b
MJ
150782011-01-03 Martin Jambor <mjambor@suse.cz>
15079
15080 * lto-cgraph.c (input_cgraph_opt_section): Use the correct section type.
15081
4ce99a20 150822011-01-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2fa6eeff
UW
15083
15084 * tree-vect-generic.c (expand_vector_operations_1): When using vector/
15085 vector optab to expand vector/scalar shift, update gimple to vector.
15086
76df0ae6
MJ
150872011-01-03 Martin Jambor <mjambor@suse.cz>
15088
15089 * cgraphunit.c (verify_cgraph_node): Verify there is no direct call to
15090 a thunk.
15091
ce47fda3
MJ
150922011-01-03 Martin Jambor <mjambor@suse.cz>
15093
15094 PR tree-optimization/46984
15095 * cgraph.h (cgraph_indirect_call_info): make field thunk_delta
15096 HOST_WIDE_INT.
15097 (cgraph_create_indirect_edge): Fixed line length.
15098 (cgraph_indirect_call_info): Declare.
15099 (cgraph_make_edge_direct) Update declaration.
15100 * cgraph.c (cgraph_allocate_init_indirect_info): New function.
15101 (cgraph_create_indirect_edge): Use it.
15102 (cgraph_make_edge_direct): Made delta HOST_WIDE_INT. Updated all
15103 callees.
15104 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update for
15105 the new thunk_delta representation.
15106 * ipa-prop.c (ipa_make_edge_direct_to_target): Convert delta to
15107 HOST_WIDE_INT.
15108 (ipa_write_indirect_edge_info): Remove streaming of thunk_delta.
15109 (ipa_read_indirect_edge_info): Likewise.
15110 * lto-cgraph.c (output_edge_opt_summary): New function.
15111 (output_node_opt_summary): Call it on all outgoing edges.
15112 (input_edge_opt_summary): New function.
15113 (input_node_opt_summary): Call it on all outgoing edges.
15114
1e67fa1f
L
151152011-01-02 H.J. Lu <hongjiu.lu@intel.com>
15116
15117 PR driver/47137
15118 * gcc.c (main): Don't check have_o when settting combine_inputs.
15119
6656b2ac
EB
151202011-01-02 Eric Botcazou <ebotcazou@adacore.com>
15121
15122 * regrename.c: Add general comment describing the pass.
15123 (struct du_head): Remove 'length' field.
15124 (get_element, merge_sort_comparison, merge, sort_du_head): Remove.
15125 (regrename_optimize): Do not sort chains. Rework comments, add others.
15126 Force renaming to the preferred class (if any) in the first pass and do
15127 not consider registers that belong to it in the second pass.
15128 (create_new_chain): Do not set 'length' field.
15129 (scan_rtx_reg): Likewise.
15130
bc470c24
JJ
151312011-01-02 Jakub Jelinek <jakub@redhat.com>
15132
4e996296
JJ
15133 PR tree-optimization/47140
15134 * tree-ssa-ccp.c (evaluate_stmt): For binary assignments, use
15135 TREE_TYPE (lhs) instead of TREE_TYPE (rhs1) as second argument
15136 to bit_value_binop.
15137
bc470c24 15138 PR rtl-optimization/47028
6656b2ac
EB
15139 * cfgexpand.c (gimple_expand_cfg): Insert entry edge insertions after
15140 parm_birth_insn instead of at the beginning of first bb.
bc470c24 15141
5af62fcd 151422011-01-02 Mingjie Xing <mingjie.xing@gmail.com>
0d52f2a8
MX
15143
15144 * doc/generic.texi: Remove duplicated "@subsubsection Statements".
15145 Remove the word "see" before "@pxref".
15146 * doc/rtl.texi: Remove the word "see" before "@pxref".
15147
0e20c89f
JH
151482011-01-01 Jan Hubicka <jh@suse.cz>
15149
6656b2ac
EB
15150 * tree-loop-distribution.c (tree_loop_distribution): Do not use freed
15151 memory.
0e20c89f 15152
220e83ca
KT
151532011-01-01 Kai Tietz <kai.tietz@onevision.com>
15154
15155 PR target/38662
6656b2ac 15156 * tree.c (type_hash_eq): Call language hook for METHOD_TYPEs, too.
220e83ca 15157
ad41bd84 15158\f
797103eb 15159Copyright (C) 2011 Free Software Foundation, Inc.
ad41bd84
JM
15160
15161Copying and distribution of this file, with or without modification,
15162are permitted in any medium without royalty provided the copyright
15163notice and this notice are preserved.