]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR testsuite/39297 (gcc.dg/tree-ssa/loop-31.c)
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
8593e0b6
JJ
12009-06-23 Jakub Jelinek <jakub@redhat.com>
2
7eb3f1f7
JJ
3 * var-tracking.c (unshare_variable): Force initialized to
4 be VAR_INIT_STATUS_INITIALIZED unless flag_var_tracking_uninit.
5 (set_variable_part): Likewise.
6 (struct variable_union_info): Remove pos_src field.
7 (vui_vec, vui_allocated): New variables.
8 (variable_union): Pass VAR_INIT_STATUS_UNKNOWN to unshare_variable
9 unconditionally. Avoid XCVECNEW/free for every sorting, for dst_l
10 == 1 use a simpler sorting algorithm. Compute pos field right
11 away, don't fill in pos_src. For dst_l == 2 avoid qsort.
12 Avoid quadratic comparison if !flag_var_tracking_uninit.
13 (variable_canonicalize): Pass VAR_INIT_STATUS_UNKNOWN to
14 unshare_variable unconditionally.
15 (dataflow_set_different_2): Removed.
16 (dataflow_set_different): Don't traverse second hash table.
17 (compute_bb_dataflow): Pass VAR_INIT_STATUS_UNINITIALIZED
18 unconditionally to var_reg_set or var_mem_set.
19 (emit_notes_in_bb): Likewise.
20 (delete_variable_part): Pass VAR_INIT_STATUS_UNKNOWN to
21 unshare_variable.
22 (emit_note_insn_var_location): Don't set initialized to
23 VAR_INIT_STATUS_INITIALIZED early.
24 (vt_finalize): Free vui_vec if needed, clear vui_vec and
25 vui_allocated.
26 * rtl.c (rtx_equal_p): Don't implement on top of rtx_equal_p_cb.
27
8593e0b6
JJ
28 * tree-object-size.c (addr_object_size): Instead of checking
29 for non-NULL TREE_CHAIN of the FIELD_DECL check that there
30 are no FIELD_DECLs following it.
31
fef015a8
AK
322009-06-23 Andreas Krebbel <krebbel1@de.ibm.com>
33
34 * tree-ssa-math-opts.c (find_bswap): Increase the search depth in
35 order to match bswaps with signed source operands.
36
b6d83244
RO
372009-06-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
38
39 * sdbout.c (sdbout_one_type): Fix braces in switch.
40
0bbf2ffa
RG
412009-06-23 Richard Guenther <rguenther@suse.de>
42
43 * tree-ssa-structalias.c (struct variable_info): Add is_global_var
44 member.
45 (var_anything, anything_tree, var_nothing, nothing_tree, var_readonly,
46 readonly_tree, var_escaped, escaped_tree, var_nonlocal, nonlocal_tree,
47 var_callused, callused_tree, var_storedanything, storedanything_tree,
48 var_integer, integer_tree): Remove global variables.
49 (new_var_info): Do not pass new id, append the new var to the
50 global variable vector.
51 (do_ds_constraint): Use is_global_var member of the variable-info.
52 (new_scalar_tmp_constraint_exp): Adjust.
53 (create_function_info_for): Likewise.
54 (create_variable_info_for): Likewise.
55 (find_what_var_points_to): Remove dead code.
56 (init_base_vars): Simplify.
57 (compute_points_to_sets): Adjust.
58
28a5fb2e
AN
592009-06-22 Adam Nemet <anemet@caviumnetworks.com>
60
61 * combine.c (try_combine): Dump information about the insns we're
62 combining.
63
cfb8805e
AN
642009-06-22 Adam Nemet <anemet@caviumnetworks.com>
65
66 * combine.c (combine_simplify_rtx): Remove TRULY_NOOP_TRUNCATION
67 check when calling force_to_mode on TRUNCATE's operand.
68
df4ba119
ILT
692009-06-22 Ian Lance Taylor <iant@google.com>
70
71 * config/rs6000/rs6000.opt: Move msched-epilog before
72 msched-prolog.
73
c986683b
SB
742009-06-22 Steven Bosscher <steven@gcc.gnu.org>
75
76 * config/arm/arm.md (prologue_use): Set length of fake insn to 0.
77
5c6927bd
RW
782009-06-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
79
80 * doc/invoke.texi (Link Options): -nodefaultlibs and -nostdlib
81 override library linkage flags such as -static-libgcc or
82 -shared-libgcc.
83
19973be2
MK
842009-06-22 Maxim Kuvyrkov <maxim@codesourcery.com>
85
86 * config/m68k/m68k-devices.def: Add line for MCF5221x.
87
7a5d2eb8
ILT
882009-06-22 Ian Lance Taylor <iant@google.com>
89
90 * config/linux.opt: Put mglibc ahead of muclibc.
91
92 * c-decl.c (diagnose_mismatched_decls): Add -Wc++-compat warning
93 for duplicate decls.
94
86e3c83a
MK
952009-06-22 Matthias Klose <doko@ubuntu.com>
96
97 * Makefile.in (install-plugin): Remove extra `/' after $(DESTDIR).
98
0a7d7dea
MK
992009-06-22 Steven Bosscher <steven@gcc.gnu.org>
100
101 PR objc/28050
102 * c-parser.c (c_parser_objc_message_args): Return error_mark_node
103 instead of NULL if a parser error occurs.
104
a77264d5
RO
1052009-06-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
106
107 * dwarf2out.c (dwarf2_debug_hooks): Initialize
108 non-DWARF2_DEBUGGING_INFO version.
109
54f549af
KT
1102009-06-22 Kai Tietz <kai.tietz@onevision.com>
111
34481f28
UB
112 * config.gcc (i[34567]86-*-mingw*, x86_64-*-mingw*): Add
113 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
114
115 * config/i386/mingw32.h (LIBGCC2_HAS_TF_MODE): Define.
54f549af
KT
116 (LIBGCC2_TF_CEXT): Define.
117 (TF_SIZE): Define.
118
7cea01df
RR
1192009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
120
121 PR target/40463
122 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Fix definition.
123
3ce14752
RR
1242009-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
125
34481f28
UB
126 * config/arm/arm.c (arm_override_options): Disable
127 -mcaller-super-interworking and -mcallee-super-interworking.
128 * doc/invoke.texi (ARM Options): Document this.
3ce14752 129
d58bc084
NS
1302009-06-22 Nathan Sidwell <nathan@codesourcery.com>
131
132 * config/arm/arm.c (arm_print_operand): Deal with HIGH.
133 * config/arm/constraints.md (j): New constraint for movw operands.
134 (N): Remove thumb2 meaning.
135 * config/arm/arm.md (*arm_movw): Delete.
136 (*arm_movsi_insn): Use j constraint for movw instead of N constraint.
137 * config/arm/vfp.md (*arm_movsi_vfp, *thumb2_movsi_vfp): Likewise.
138 * config/arm/thumb2.md (*thumb2_movsi_insn): Likewise.
139
ac6cb60c
MJ
1402009-06-22 Martin Jambor <mjambor@suse.cz>
141
142 PR tree-optimization/40492
143 * tree-sra.c (sra_modify_assign): Pass zero offsets to
144 build_ref_for_offset.
145
481683e1
SZ
1462009-06-22 Shujing Zhao <pearly.zhao@oracle.com>
147
148 * alias.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P, CALL_P, NOTE_P and
149 JUMP_TABLE_DATA_P predicates where applicable.
150 * auto-inc-dec.c: Ditto.
151 * builtins.c: Ditto.
152 * caller-save.c: Ditto.
153 * calls.c: Ditto.
154 * cfgcleanup.c: Ditto.
155 * cfglayout.c: Ditto.
156 * cfgrtl.c: Ditto.
157 * combine.c: Ditto.
158 * combine-stack-adj.c: Ditto.
159 * cse.c: Ditto.
160 * cselib.c: Ditto.
161 * dbxout.c: Ditto.
162 * df-scan.c: Ditto.
163 * dse.c: Ditto.
164 * dwarf2asm.c: Ditto.
165 * dwarf2out.c: Ditto.
166 * emit-rtl.c: Ditto.
167 * except.c: Ditto.
168 * explow.c: Ditto.
169 * expmed.c: Ditto.
170 * expr.c: Ditto.
171 * final.c: Ditto.
172 * function.c: Ditto.
173 * fwprop.c: Ditto.
174 * gcse.c: Ditto.
175 * genpreds.c: Ditto.
176 * genrecog.c: Ditto.
177 * ifcvt.c: Ditto.
178 * ira-costs.c: Ditto.
179 * ira-lives.c: Ditto.
180 * jump.c: Ditto.
181 * loop-iv.c: Ditto.
182 * lower-subreg.c: Ditto.
183 * modulo-sched.c: Ditto.
184 * optabs.c: Ditto.
185 * postreload.c: Ditto.
186 * print-rtl.c: Ditto.
187 * recog.c: Ditto.
188 * reginfo.c: Ditto.
189 * regmove.c: Ditto.
190 * reload1.c: Ditto.
191 * reload.c: Ditto.
192 * reorg.c: Ditto.
193 * rtlanal.c: Ditto.
194 * rtl.c: Ditto.
195 * sched-vis.c: Ditto.
196 * sdbout.c: Ditto.
197 * sel-sched-ir.c: Ditto.
198 * simplify-rtx.c: Ditto.
199 * targhooks.c: Ditto.
200 * var-tracking.c: Ditto.
201 * vmsdbgout.c: Ditto.
202
1407d6cf
MK
2032009-06-22 Matthias Klose <doko@ubuntu.com>
204
205 * Makefile.in (install-plugin): Always use DESTDIR.
206
28326880
OH
2072009-06-22 Olivier Hainque <hainque@adacore.com>
208
209 * config/pa/pa.c (output_call): Don't optimize post call jumps
210 into return address adjustments if the call may throw.
211
907dd0c7
RE
2122009-06-21 Richard Earnshaw <rearnsha@arm.com>
213
214 * arm.c (thumb1_output_casesi): New function.
215 * arm.h (CASE_VECTOR_PC_RELATIVE): Thumb-1 code is also relative if
216 optimizing for size or PIC.
217 (CASE_VECTOR_SHORTEN_MODE): Handle thumb-1.
218 * arm.md (UNSPEC_THUMB1_CASESI): New constant.
219 (casesi): Handle Thumb-1 when optimizing for size or PIC.
220 (thumb1_casesi_internal_pic): New expand rule.
221 (thumb1_casesi_dispatch): New pattern.
222 * aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Use shortened vectors for
223 thumb-1 mode.
224 * coff.h (JUMP_TABLES_IN_TEXT_SECTION): Thumb-1 jump tables are now
225 in the text seciton when PIC or optimizing for size.
226 * elf.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
227 * lib1funcs.asm ([__ARM_EABI__]): Add an attribute describing stack
228 preservation properties of code.
229 (__gnu_thumb1_case_sqi, __gnu_thumb1_case_uqi): New functions.
230 (__gnu_thumb1_case_shi, __gnu_thumb1_case_uhi): New functions.
231 (__gnu_thumb1_case_si): New function.
232 * t-arm (LIB1ASMSRC): Define here.
233 (LIB1ASMFUNCS): Add some common functions.
234 * t-arm-elf (LIB1ASMSRC): Delete.
235 (LIB1ASMFUNCS): Append to existing set.
236 * t-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
237 * t-strongarm-elf (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
238 * t-symbian (LIB1ASMFUNCS): Likewise.
239 * t-vxworks (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
240 * t-wince-pe (LIB1ASMSRC, LIB1ASMFUNCS): Likewise.
241
2cee1509
RG
2422009-06-21 Richard Guenther <rguenther@suse.de>
243
244 PR tree-optimization/38729
245 * tree-ssa-loop-niter.c (find_loop_niter_by_eval): Restrict
246 to loops with a single exit if -fno-expensive-optimizations.
247
d24686d7
JJ
2482009-06-21 Jakub Jelinek <jakub@redhat.com>
249
250 * var-tracking.c (struct shared_hash_def, shared_hash): New types.
251 (dataflow_set): Change vars type from htab_t to shared_hash.
252 (shared_hash_pool, empty_shared_hash): New variables.
253 (vars_clear): Removed.
254 (shared_hash_shared, shared_hash_htab, shared_hash_copy,
255 shared_hash_find_slot_unshare, shared_hash_find_slot,
256 shared_hash_find_slot_noinsert, shared_hash_find): New
257 static inlines.
258 (shared_hash_unshare, shared_hash_destroy): New functions.
259 (unshare_variable): Unshare set->vars if shared, use
260 shared_hash_htab.
261 (vars_copy): Use htab_traverse_noresize instead of htab_traverse.
262 (get_init_value, find_src_set_src, dump_dataflow_set,
263 clobber_variable_part, emit_notes_for_differences): Use
264 shared_hash_htab.
265 (dataflow_set_init): Remove second argument, set vars to
266 empty_shared_hash instead of creating a new htab.
267 (dataflow_set_clear): Call shared_hash_destroy and set vars
268 to empty_shared_hash instead of calling vars_clear.
269 (dataflow_set_copy): Don't call vars_copy, instead just share
270 the src htab with dst.
271 (variable_union): Use shared_hash_*, use initially NO_INSERT
272 lookup if set->vars is shared. Don't keep slot cleared before
273 calling unshare_variable. Unshare set->vars if needed.
274 Even ->refcount == 1 vars must be unshared if set->vars is shared
275 and var needs to be modified.
276 (variable_canonicalize): New function.
277 (dataflow_set_union): If dst->vars is empty, just share src->vars
278 with dst->vars and traverse with variable_canonicalize to canonicalize
279 and unshare what is needed.
280 (dataflow_set_different): If old_set and new_set use the same shared
281 htab, they aren't different. If number of htab elements is different,
282 htabs are different. Use shared_hash_*.
283 (dataflow_set_destroy): Call shared_hash_destroy instead of
284 htab_delete.
285 (compute_bb_dataflow, emit_notes_in_bb, vt_emit_notes): Don't pass
286 second argument to dataflow_set_init.
287 (vt_initialize): Likewise. Initialize shared_hash_pool and
288 empty_shared_hash, move bb in/out initialization afterwards.
289 Use variable_htab_free instead of NULL as changed_variables del hook.
290 (variable_was_changed): Change type of second argument to pointer to
291 dataflow_set. When inserting var into changed_variables, bump
292 refcount. Unshare set->vars if set is shared htab and slot needs to
293 be cleared.
294 (set_variable_part): Use shared_hash_*, use initially NO_INSERT
295 lookup if set->vars is shared. Unshare set->vars if needed.
296 Even ->refcount == 1 vars must be unshared if set->vars is shared
297 and var needs to be modified. Adjust variable_was_changed caller.
298 (delete_variable_part): Use shared_hash_*. Even ->refcount == 1
299 vars must be unshared if set->vars is shared and var needs to be
300 modified. Adjust variable_was_changed caller.
301 (emit_note_insn_var_location): Don't pool_free var.
302 (emit_notes_for_differences_1): Initialize empty_var->refcount to 0
303 instead of 1.
304 (vt_finalize): Call htab_delete on empty_shared_hash->htab and
305 free_alloc_pool on shared_hash_pool.
306
525b459f
AG
3072009-06-20 Anthony Green <green@moxielogic.com>
308
309 * config/moxie/sfp-machine.h (__gcc_CMPtype, CMPtype): Define.
310 * config/moxie/moxie.h (LOAD_EXTEND_OP): Define.
311
825be69e
RG
3122009-06-20 Richard Guenther <rguenther@suse.de>
313
314 * tree-ssa-structalias.c (find_func_aliases): For memset use
315 a constraint from NULL if we memset to zero.
316 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Add builtins
317 we explicitly handle that do not read from memory.
318 (call_may_clobber_ref_p_1): Properly handle builtins that may
319 set errno.
320
b14e9388
RG
3212009-06-20 Richard Guenther <rguenther@suse.de>
322
323 PR tree-optimization/40495
324 * tree-ssa-structalias.c (get_constraint_exp_for_temp): Remove.
325 (new_scalar_tmp_constraint_exp): New function.
326 (process_constraint): Do not create temporary decls.
327 (process_all_all_constraints): Likewise.
328 (handle_const_call): Likewise.
329 (create_function_info_for): Do not set decl.
330
c885ca89
ILT
3312009-06-19 Ian Lance Taylor <iant@google.com>
332
333 * config/rs6000/rs6000.c (rs6000_explicit_options): Make static.
334 (rs6000_attribute_table): Make static; move before use.
335
6569d386
EB
3362009-06-19 Eric Botcazou <ebotcazou@adacore.com>
337
338 * tree.c (substitute_in_expr) <COMPONENT_REF>: Tweak and reformat.
339 <tcc_vl_exp>: Call process_call_operands on the new CALL_EXPR.
340 Propagate the TREE_READONLY flag without overwriting it.
341 (substitute_placeholder_in_expr) <tcc_vl_exp>: Likewise.
342 Propagate the TREE_READONLY flag onto the result.
343 (process_call_operands): Move around. Use correct constant value.
344
ce41c38b
RR
3452009-06-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
346
347 PR target/40482
348 * config/arm/arm.c (thumb_shiftable_const): Truncate val to
349 32 bits.
350 * config/arm/arm.md: Likewise.
351
d130ae11
ILT
3522009-06-19 Ian Lance Taylor <ian@airs.com>
353
354 * tree-cfg.c (gimple_redirect_edge_and_branch): Change ERROR_MARK
355 to GIMPLE_ERROR_MARK.
356
357 * c-typeck.c (build_conditional_expr): Add op1_original_type and
358 op2_original_type parameters. Warn about using different enum
359 types.
360 * c-parser.c (c_parser_conditional_expression): Pass original
361 types to build_conditional_expr.
362 * c-tree.h (build_conditional_expr): Update declaration.
363
d4aa4f4b
ILT
3642009-06-19 Ian Lance Taylor <iant@google.com>
365
366 * config/i386/i386.c (ix86_function_specific_save): Test that
367 fields match values, rather than testing the values are in a
368 certain range.
369
779704e7
RG
3702009-06-19 Richard Guenther <rguenther@suse.de>
371
372 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
373 ADDR_EXPR pointers.
374 (ptr_derefs_may_alias_p): Likewise.
375 (ptr_deref_may_alias_ref_p_1): New function.
376 (ptr_deref_may_alias_ref_p): Likewise.
377 (ref_maybe_used_by_call_p_1): Handle builtins that are not
378 covered by looking at the ESCAPED solution.
379 (call_may_clobber_ref_p_1): Likewise.
380 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
381 Handle NULL_TREE offset. Do not produce redundant constraints.
382 (process_all_all_constraints): New helper function.
383 (do_structure_copy): Use it.
384 (handle_lhs_call): Likewise.
385 (find_func_aliases): Handle some builtins with pointer arguments
386 and/or return values explicitly.
387
217655da
ILT
3882009-06-19 Ian Lance Taylor <iant@google.com>
389
390 * varasm.c (const_rtx_hash_1): Remove const qualifier from shift.
391
50ae5fea
ILT
3922009-06-19 Ian Lance Taylor <iant@google.com>
393
394 * rtl.h (SUBREG_PROMOTED_UNSIGNED_P): Add cast to int.
395
642324bb
ILT
3962009-06-19 Ian Lance Taylor <iant@google.com>
397
398 * ggc-page.c (ggc_pch_write_object): Initialize emptyBytes.
399 * sdbout.c (sdb_debug_hooks): Initialize non-SDB_DEBUGGING_INFO
400 version.
401
402 * c-decl.c (finish_decl): If -Wc++-compat, warn about
403 uninitialized const.
404
dc491a25
ILT
4052009-06-19 Ian Lance Taylor <iant@google.com>
406
407 * dse.c (struct store_info): Rename bitmap field to bmap. Change
408 all uses.
409
410 * c-decl.c (in_struct, struct_types): Remove.
411 (struct c_binding): Add in_struct field.
412 (c_binding_ptr): Define type, along with VEC.
413 (struct c_struct_parse_info): Define.
414 (struct_parse_info): New static variable.
415 (bind): Initialize in_struct field.
416 (start_struct): Remove enclosing_in_struct and
417 enclosing_struct_types parameters. Add
418 enclosing_struct_parse_info parameter. Change all callers. Set
419 struct_parse_info rather than in_struct and struct_types.
420 (grokfield): If -Wc++-compat and there is a symbol binding for the
421 field name, set the in_struct flag and push it on the
422 struct_parse_info->fields vector.
423 (warn_cxx_compat_finish_struct): New static function.
424 (finish_struct): Remove enclosing_in_struct and
425 enclosing_struct_types parameters. Add
426 enclosing_struct_parse_info parameter. Change all callers. Don't
427 set C_TYPE_DEFINED_IN_STRUCT here. Call
428 warn_cxx_compat_finish_struct. Free struct_parse_info and set to
429 parameter. Only push on struct_types if warn_cxx_compat.
430 (finish_enum): Only push on struct_types if warn_cxx_compat.
431 (declspecs_add_type): Add loc parameter. Change all callers.
432 Change all error calls to error_at. Pass loc, not input_location,
433 to pedwarn calls. Warn if -Wc++-compat and a typedef name is
434 defined in a struct. If -Wc++-compat and parsing a struct, record
435 that a typedef name was used.
436 * c-parser.c (c_parser_declspecs): Get location to pass to
437 declspecs_add_type.
438 (c_parser_struct_or_union_specifier): Update calls to start_struct
439 and finish_struct.
440 * c-tree.h (struct c_struct_parse_info): Declare.
441 (finish_struct, start_struct): Update declarations.
442 (declspecs_add_type): Update declaration.
443
88eeff6f
ILT
4442009-06-19 Ian Lance Taylor <iant@google.com>
445
446 * c-decl.c (grokdeclarator): If -Wc++-compat, warn about a global
447 variable with an anonymous type.
448
28a876a4
UB
4492009-06-19 Uros Bizjak <ubizjak@gmail.com>
450
451 * see.c: Remove for real.
452
dc6707b8
UB
4532009-06-19 Uros Bizjak <ubizjak@gmail.com>
454
455 * optabs.h (enum optab_index): Add new OTI_significand.
456 (significand_optab): Define corresponding macro.
457 * optabs.c (init_optabs): Initialize significand_optab.
458 * genopinit.c (optabs): Implement significand_optab using
459 significand?f2 patterns.
460 * builtins.c (expand_builtin_mathfn): Handle
461 BUILT_IN_SIGNIFICAND{,F,L}.
462 (expand_builtin): Expand BUILT_IN_SIGNIFICAND{,F,L} using
463 expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
464
465 * config/i386/i386.md (significandxf2, significand<mode>2): New
466 expanders to implement significandf, significand and significandl
467 built-ins as inline x87 intrinsics.
468
dd26af70
AS
4692009-06-18 Anatoly Sokolov <aesok@post.ru>
470
471 * config/avr/avr.c (avr_override_options): Remove setting value of
472 PARAM_INLINE_CALL_COST.
473
394bd84d
RH
4742009-06-18 Richard Henderson <rth@redhat.com>
475
476 PR 40488
477 * tree-pass.h (TDF_ASMNAME): New.
478 * tree-dump.c (dump_options): Add asmname.
479 * doc/invoke.texi: Document it.
480
481 * tree-pretty-print.c (maybe_dump_asm_name): Merge into...
482 (dump_decl_name): ...here.
483 (dump_function_name): New flags arg; mind TDF_ASMNAME.
484 (dump_generic_node): Update dump_function_name calls.
485 (print_call_name): New flags arg; update all dump calls.
486 * diagnostic.h (print_call_name): Update.
487 * gimple-pretty-print.c (dump_gimple_call): Update.
488
2a457a9b
L
4892009-06-18 H.J. Lu <hongjiu.lu@intel.com>
490
491 PR target/40470
492 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Add SSE_FIRST_REG.
493
fca5bb5c
DN
4942009-06-18 Diego Novillo <dnovillo@google.com>
495
496 * doc/plugins.texi: Document plugin_is_GPL_compatible.
497 * plugin.c (str_license): Declare.
498 (try_init_one_plugin): Assert that the symbol
499 'plugin_is_GPL_compatible' exists.
500
b6680d72
SD
5012009-06-18 Sergei Dyshel <sergeid@il.ibm.com>
502
503 * see.c: Remove.
504 * Makefile.in (OBJS-common): Remove see.o.
505 (see.o): Remove.
506 * common.opt (fsee): Mark as preserved for backward compatibility.
507 * opts.c (common_handle_option): Add OPT_fsee to the backward
508 compatibility section.
509 * passes.c (init_optimization_passes, pass_see): Remove pass.
510 * timevar.def (TV_SEE): Remove.
511 * tree-pass.h (pass_see): Remove declaration.
512 * doc/invoke.texi (-fsee): Remove documentation.
b6680d72 513
2a45675f
MJ
5142009-06-18 Martin Jambor <mjambor@suse.cz>
515
516 * tree-sra.c: Include statistics.h
517 (sra_stats): New variable.
518 (sra_initialize): Clear sra_stats.
519 (create_access_replacement): Increment sra_stats.replacements.
520 (get_access_replacement): Do not return twice.
521 (analyze_all_variable_accesses): Increment statistics counter by the
522 number of scalarized aggregates.
523 (generate_subtree_copies): Increment sra_stats.subtree_copies.
524 (sra_modify_expr): Increment sra_stats.exprs.
525 (load_assign_lhs_subreplacements): Increment sra_stats.subreplacements.
526 (sra_modify_assign): Increment sra_stats.exprs,
527 sra_stats.separate_lhs_rhs_handling and sra_stats.deleted.
528 (perform_intra_sra): Update statistics counters.
529 * Makefile.in (tree-sra.o): Add statistics.h to dependencies.
530
bdc4827b
SL
5312009-06-18 Sandra Loosemore <sandra@codesourcery.com>
532
533 * config/arm/arm.c (TARGET_SCALAR_MODE_SUPPORTED_P): Redefine.
534 (arm_scalar_mode_supported_p): New function.
535
d9dd51dc
PB
5362009-06-18 Paul Brook <paul@codesourcery.com>
537 Sandra Loosemore <sandra@codesourcery.com>
538
539 * config/arm/sfp-machine.h (_FP_NANFRAC_H, _FP_NANSIGN_H): Define.
540 (__extendhfsf2, __truncsfhf2): Define.
541 * config/arm/fp16.c: New file.
542 * config/arm/t-bpabi (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
543 * config/arm/t-symbian (LIB2FUNCS_STATIC_EXTRA): Add fp16.c.
544
0fd8c3ad
SL
5452009-06-18 Sandra Loosemore <sandra@codesourcery.com>
546
547 * doc/extend.texi (Half-Precision): New section.
548 * doc/invoke.texi (Option Summary): List -mfp16-format.
549 (ARM Options): List neon-fp16 as -mfpu value. Document -mfp16-format.
550 * config/arm/arm.opt (mfp16-format=): New.
551 * config/arm/arm.c: Include intl.h.
552 (TARGET_INVALID_PARAMETER_TYPE): Redefine.
553 (TARGET_INVALID_RETURN_TYPE): Redefine.
554 (TARGET_PROMOTED_TYPE): Redefine.
555 (TARGET_CONVERT_TO_TYPE): Redefine.
556 (arm_fp16_format): Define.
557 (all_fpus): Add entry for neon-fp16.
558 (fp_model_for_fpu): Likewise.
559 (struct fp16_format): Declare.
560 (all_fp16_formats): Define.
561 (arm_init_libfuncs): Add entries for HFmode conversions and arithmetic
562 functions.
563 (arm_override_options): Set arm_fp16_format. Call sorry for fp16
564 and no ldrh.
565 (arm_legitimate_index_p): Treat HFmode like HImode.
566 (thumb1_legitimate_address_p): Make it recognize HFmode constants.
567 (coproc_secondary_reload_class): Special-case HFmode.
568 (arm_print_operand): Add 'z' specifier for vld1.16/vst1.16.
569 (arm_hard_regno_mode_ok): Allow HFmode values in VFP registers.
570 (arm_init_fp16_builtins): New.
571 (arm_init_builtins): Call it.
572 (arm_invalid_parameter_type): New.
573 (arm_invalid_return_type): New.
574 (arm_promoted_type): New.
575 (arm_convert_to_type).
576 (arm_file_start): Deal with neon-fp16 as fpu_name. Emit tag for fp16
577 format.
578 (arm_emit_fp16_const): New function.
579 (arm_mangle_type): Mangle __fp16 as "Dh".
580 * config/arm/arm.h (TARGET_VFPD32): Make it know about
581 FPUTYPE_NEON_FP16.
582 (TARGET_NEON_FP16): New.
583 (TARGET_NEON): Make it know about FPUTYPE_NEON_FP16.
584 (enum fputype): Add FPUTYPE_NEON_FP16.
585 (enum arm_fp16_format_type): Declare.
586 (arm_fp16_format): Declare.
587 (LARGEST_EXPONENT_IS_NORMAL): Define.
588 * config/arm/arm-protos.h (arm_emit_fp16_const): Declare.
589 * config/arm/arm-modes.def (HFmode): Define.
590 * config/arm/vfp.md: (*movhf_vfp): New.
591 (extendhfsf2): New.
592 (truncsfhf2): New.
593 * config/arm/arm.md: (fpu): Add neon_fp16.
594 (floatsihf2, floatdihf2): New.
595 (fix_trunchfsi2, fix_trunchfdi2): New.
596 (truncdfhf2): New.
597 (extendhfdf2): New.
598 (movhf): New.
599 (*arm32_movhf): New.
600 (*thumb1_movhf): New.
601 (consttable_2): Add check for HFmode constants.
602 (consttable_4): Handle HFmode constants.
603
2c2f70e1
UB
6042009-06-18 Uros Bizjak <ubizjak@gmail.com>
605
606 * convert.c (convert_to_integer): Convert (int)logb() into ilogb().
607
db4fa1c1
OH
6082009-06-17 Olivier Hainque <hainque@adacore.com>
609
610 * collect2.c (main): Use CONST_CAST2 to perform char ** to
611 const char ** conversion in AIX specific section.
612
6bec4135
L
6132009-06-17 H.J. Lu <hongjiu.lu@intel.com>
614
615 * config/i386/i386.c (ix86_special_builtin_type): Remove
616 UINT64_FTYPE_PINT. Add UINT64_FTYPE_PUNSIGNED.
617 (bdesc_special_args): Updated.
618 (ix86_init_mmx_sse_builtins): Likewise.
619 (ix86_expand_special_args_builtin): Likewise.
620
958d6d58
RH
6212009-06-17 Richard Henderson <rth@redhat.com>
622
623 * tree-pretty-print.c (maybe_dump_asm_name): New.
624 (dump_decl_name): Use it.
625 (PRINT_FUNCTION_NAME): Merge into...
626 (dump_function_name): ... here. Use maybe_dump_asm_name.
627
ed5ef2e4
CC
6282009-06-17 Cary Coutant <ccoutant@google.com>
629
630 * dbxout.c (dbxout_source_line): Add is_stmt parameter.
631 Change caller.
632 * debug.c (struct gcc_debug_hooks): Change placeholder for
633 source_line hook.
634 (debug_nothing_int_charstar_int): Replaced by...
635 (debug_nothing_int_charstar_int_bool): ...this.
636 * debug.h (struct gcc_debug_hooks): Add is_stmt parameter to
637 source_line prototype.
638 (debug_nothing_int_charstar_int): Replaced by...
639 (debug_nothing_int_charstar_int_bool): ...this.
640 * defaults.h (SUPPORTS_DISCRIMINATOR): New constant.
641 * dwarf2out.c (dwarf2out_source_line): Add is_stmt parameter.
642 Output is_stmt operand when necessary.
01a0acb7 643 * final.c (final_scan_insn): Pass is_stmt to source_line debug hook.
ed5ef2e4
CC
644 (notice_source_line): Add is_stmt parameter.
645 * sdbout.c (sdbout_source_line): Add is_stmt parameter.
646 * vmsdbgout.c (vmsdbgout_source_line): Add is_stmt parameter.
647 Change callers.
648 * xcoffout.c (xcoffout_source_line): Add is_stmt parameter.
649 * xcoffout.h (xcoffout_source_line): Add is_stmt parameter.
650
b0f43ca0
ILT
6512009-06-17 Ian Lance Taylor <iant@google.com>
652
653 * expr.c (struct move_by_pieces_d): Rename from move_by_pieces.
654 Change all uses.
655 (struct store_by_pieces_d): Rename from store_by_pieces. Change
656 call uses.
657
23314e77
AN
6582009-06-17 Adam Nemet <anemet@caviumnetworks.com>
659
660 * tree.h (STRIP_NOPS, STRIP_SIGN_NOPS,
661 STRIP_USELESS_TYPE_CONVERSION): Use tree_strip_nop_conversions,
662 tree_strip_sign_nop_conversions and
663 tree_ssa_strip_useless_type_conversions rather than stripping
664 the operations here.
665 (tree_strip_nop_conversions, tree_strip_sign_nop_conversions):
666 Declare them.
667 * gimple.h (tree_ssa_strip_useless_type_conversions): Declare it.
668 * tree-ssa.c (tree_ssa_strip_useless_type_conversions): New function.
669 * tree.c (tree_nop_conversion, tree_sign_nop_conversion,
670 tree_strip_nop_conversions, tree_strip_sign_nop_conversions): New
671 functions.
672
799dbb0f
ME
6732009-06-17 Michael Eager <eager@eagercon.com>
674
c637b0fa
UB
675 * config/rs6000/constraints.md (register_constraint "d"): New.
676 * config/rs6000/dfp.md (movsd_store, extendsddd2, extendsdtd2,
677 truncddsd2, *negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
678 *movdd_hardfloat32, *movdd_hardfloat64_mfpgpr, *movdd_hardfloat64,
679 *negtd2_fp, *abstd2_fpr, *nabstd2_fpr, *movtd_internal, extendddtd2,
680 trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
681 divtd3, *cmpdd_internal1, *cmptd_internal1, floatditd2, ftruncdd2,
682 fixdddi2, ftrunctd2, fixtddi2): replace 'f' constraint with 'd'
683 * config/rs6000/ppu_intrinsics.h (__mffs, __mtfsf, __mtfsfi, __fabs,
799dbb0f
ME
684 __fnabs, __fmadd, __fmsub, __fnmadd, __fnmsub, __fsel, __frsqrte,
685 __fsqrt, __fmul, __fmuls, __frsp, __fcfid, __fctid, __fctidz, __fctiw,
c637b0fa
UB
686 __fctiwz): Same.
687 * config/rs6000/rs6000.md (*extendsfdf2_fpr, *truncdfsf2_fpr,
799dbb0f
ME
688 *fseldfsf4, *negdf2_fpr, *absdf2_fpr, *nabsdf2_fpr, *adddf3_fpr,
689 *subdf3_fpr, *muldf3_fpr, *divdf3_fpr, recipdf3, fred, sqrtdf2,
690 *fseldfdf4, *fselsfdf4, *floatsidf2_internal, *floatunssidf2_internal,
c637b0fa
UB
691 *fix_truncdfsi2_internal, fix_truncdfsi2_internal_gfxopt,
692 fix_truncdfsi2_mfpgpr, fctiwz, btruncdf2, ceildf2, floordf2, rounddf2,
693 stfiwx, floatdidf2, fix_truncdfdi2, floatdisf2_internal1,
694 *movdf_hardfloat32, *movdf_hardfloat64_mfpgpr, *movdf_hardfloat64,
695 *movtf_internal, *extenddftf2_internal, trunctfdf2_internal1,
696 trunctfdf2_internal2, trunctfsf2_fprs, fix_trunc_helper,
697 *fix_trunctfsi2_internal, negtf2_internal, *movdi_internal32,
698 *movdi_mfpgpr, *movdi_internal64, *movdf_update1, *movdf_update2,
699 *cmpdf_internal1, *cmptf_internal1, *cmptf_internal2): Same.
799dbb0f
ME
700 * doc/md.texi: Describe PowerPC 'd' constraint, update 'f' constraint.
701
1469de3c
ILT
7022009-06-16 Ian Lance Taylor <iant@google.com>
703
704 * profile.c (total_num_never_executed): Don't define.
705 (compute_branch_probabilities): Don't count or print
706 num_never_executed.
707 (init_branch_prob): Don't set total_num_never_executed.
708 (end_branch_prob): Don't print total_num_never_executed.
709
2cb0a60d
DD
7102009-06-17 David Daney <ddaney@caviumnetworks.com>
711
c637b0fa 712 * jump.c (cleanup_barriers): Handle case of no insns before a barrier.
2cb0a60d 713
82882240
DE
7142009-06-17 David Edelsohn <edelsohn@gnu.org>
715
716 * config/rs6000/dfp.md (nabsdd2_fpr): Correct mode.
717 (nabstd2_fpr): Same.
718
a1a65f89
SE
7192009-06-17 Steve Ellcey <sje@cup.hp.com>
720
721 * expr.c (expand_assignment): Change complex type check.
722
07ae5620
BS
7232009-06-17 Basile Starynkevitch <basile@starynkevitch.net>
724
725 * doc/plugins.texi (Building GCC plugins): Added new section.
726
5eb4df45
ILT
7272009-06-17 Ian Lance Taylor <iant@google.com>
728
729 * c-pch.c (get_ident): Don't set size of templ array.
730 (pch_init): Don't set size of partial_pch array.
731
732 * c-typeck.c (digest_init): If -Wc++-compat, warn about using a
733 string constant to intialize an array whose size is the length of
734 the string.
735
4d61856d
RG
7362009-06-17 Richard Guenther <rguenther@suse.de>
737
738 PR tree-optimization/40389
739 * tree-ssa-structalias.c (handle_rhs_call): Restrict NRV case
740 to addressable types.
741 * gimple.c (walk_stmt_load_store_addr_ops): Likewise.
742
3cb8677c
RG
7432009-06-17 Richard Guenther <rguenther@suse.de>
744
745 PR middle-end/40460
746 * tree-chrec.h (build_polynomial_chrec): If we cannot determine
747 if there is no evolution of left in the loop bail out.
748 * tree-chrec.c (chrec_fold_multiply_poly_poly): CSE one
749 chrec_fold_multiply.
750
a4d99c86
R
7512009-06-16 J"orn Rennecke <joern.rennecke@arc.com>
752 Janis Johnson <janis187@us.ibm.com>
753
754 PR target/39254
755 * config/rs6000/rs6000.c (rs6000_emit_move): Don't emit a USE
756 for the symbol ref of a constant that is the source of a move
757 - nor for any other not-obvious-label-ref constants.
758
8dd1bca0
OR
7592009-06-16 Olatunji Ruwase <tjruwase@google.com>
760
1469de3c 761 * plugin.c (position_pass): Skip newly inserted pass during list
8dd1bca0
OR
762 traversal to avoid repeated insertion.
763
8019538f
ILT
7642009-06-16 Ian Lance Taylor <iant@google.com>
765
766 * vec.h (VEC_stack_alloc): Define different version if
767 GATHER_STATISTICS is defined, to accept and ignore MEM_STAT.
768 (DEF_VEC_ALLOC_FUNC_P_STACK): Remove MEM_STAT_DECL.
769 (DEF_VEC_ALLOC_FUNC_O_STACK): Likewise.
770 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
771
7c45393e
L
7722009-06-16 H.J. Lu <hongjiu.lu@intel.com>
773
774 * config.gcc (extra_headers): Add ia32intrin.h for x86.
775
776 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_BSRSI,
777 IX86_BUILTIN_BSRDI. IX86_BUILTIN_RDPMC, IX86_BUILTIN_RDTSC.
778 IX86_BUILTIN_RDTSCP. IX86_BUILTIN_ROLQI, IX86_BUILTIN_ROLHI,
779 IX86_BUILTIN_RORQI and IX86_BUILTIN_RORHI.
780 (ix86_special_builtin_type): Add UINT64_FTYPE_VOID,
781 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c637b0fa 782 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
7c45393e
L
783 (bdesc_special_args): Add __builtin_ia32_rdtsc and
784 __builtin_ia32_rdtscp.
785 (bdesc_args): Add __builtin_ia32_bsrsi, __builtin_ia32_bsrdi,
786 __builtin_ia32_rolqi, __builtin_ia32_rolhi, __builtin_ia32_rorqi
c637b0fa 787 and __builtin_ia32_rorhi.
7c45393e
L
788 (ix86_init_mmx_sse_builtins): Handle UINT64_FTYPE_VOID,
789 UINT64_FTYPE_PINT, INT_FTYPE_INT, UINT64_FTYPE_INT,
c637b0fa 790 INT64_FTYPE_INT64, UINT16_FTYPE_UINT16_INT and UINT8_FTYPE_UINT8_INT.
7c45393e
L
791 (ix86_expand_args_builtin): Likewise.
792 (ix86_expand_special_args_builtin): Likewise.
793
794 * config/i386/i386.md (UNSPECV_RDTSCP): New.
795 (UNSPECV_RDTSC): Likewise.
796 (UNSPECV_RDPMC): Likewise.
c637b0fa 797 (*bsr): Renamed to ...
7c45393e 798 (bsr): This
c637b0fa 799 (*bsr_rex64): Renamed to ...
7c45393e
L
800 (bsr_rex64): This.
801 (rdpmc): New.
802 (*rdpmc): Likewise.
803 (*rdpmc_rex64): Likewise.
804 (rdtsc): Likewise.
805 (*rdtsc): Likewise.
806 (*rdtsc_rex64): Likewise.
807 (rdtscp): Likewise.
808 (*rdtscp): Likewise.
809 (*rdtscp_rex64): Likewise.
810
811 * config/i386/ia32intrin.h: New.
812
813 * config/i386/x86intrin.h: Include <ia32intrin.h>.
814
504b33d8
ILT
8152009-06-16 Ian Lance Taylor <iant@google.com>
816
817 * ira-build.c (copy_info_to_removed_store_destinations):
818 Initialize parent_a.
819
f9551830
ILT
8202009-06-16 Ian Lance Taylor <iant@google.com>
821
822 * c-decl.c (grokdeclarator): Change size_varies to bool.
823
c32e2175
ILT
8242009-06-16 Ian Lance Taylor <iant@google.com>
825
826 * sel-sched.c: Make forward declarations of move_op_hooks and
827 fur_hooks explicitly extern.
828
415a06c2
ILT
8292009-06-16 Ian Lance Taylor <iant@google.com>
830
c637b0fa 831 * df-problems.c (df_byte_lr_alloc): Don't set problem_data to itself.
415a06c2
ILT
832 * vec.c (vec_gc_o_reserve_1): Don't set alloc to itself.
833
675f99c9
ILT
8342009-06-16 Ian Lance Taylor <iant@google.com>
835
836 * resource.c (mark_referenced_resources): Change
837 include_delayed_effects parameter to bool. Change all callers.
838 (mark_end_of_function_resources): Likewise.
839 * reorg.c (insn_references_resource_p): Likewise.
840 (insn_sets_resource_p): Likewise.
841 * resource.h (mark_referenced_resources): Update declaration.
842 (mark_end_of_function_resources): Update declaration.
843
a322799d
DE
8442009-06-16 David Edelsohn <edelsohn@gnu.org>
845
846 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove -lstdc++.
847
c58c92f5
DE
8482009-06-16 David Edelsohn <edelsohn@gnu.org>
849
850 * doc/install.texi (*-*-aix): Update explanation of XLC bootstrap.
851 GCC can bootstrap on AIX with GNU Binutils 2.20.
852
95228603
ILT
8532009-06-16 Ian Lance Taylor <iant@google.com>
854
855 * Makefile.in (tree-vect-stmts.o): Depend upon $(TOPLEV_H).
856
9c727c9a
ILT
8572009-06-16 Ian Lance Taylor <iant@google.com>
858
859 * toplev.h (floor_log2): If GCC_VERSION >= 3004, declare as static
860 inline, not extern inline.
861 (exact_log2): Likewise.
862 * toplev.c (floor_log2): Only define if GCC_VERSION < 3004. Don't
863 test CLZ_HWI.
864 (exact_log2): Likewise, but don't test CTZ_HWI.
865
5fd8300b
ILT
8662009-06-16 Ian Lance Taylor <iant@google.com>
867
868 * bitmap.c (bitmap_clear): Don't declare as inline.
869 * gimple.c (gimplify_assign): Likewise.
870 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
871 * haifa-sched.c (insn_cost): Don't declare with HAIFA_INLINE.
872 (sched_scan_info): Remove duplicate definition.
873
7d882b83
ILT
8742009-06-16 Ian Lance Taylor <iant@google.com>
875
876 * c-common.c (skip_evaluation): Don't define.
877 (c_inhibit_evaluation_warnings): Define global variable.
878 (overflow_warning): Check c_inhibit_evaluation_warnings rather
879 than skip_evaluation.
880 (convert_and_check, warn_for_div_by_zero): Likewise.
881 * c-common.h (skip_evaluation): Don't declare.
882 (c_inhibit_evaluation_warnings): Declare.
883 * c-parser.c (c_parser_typeof_specifier): Set
884 c_inhibit_evaluation_warnings rather than skip_evaluation.
885 (c_parser_conditional_expression): Likewise.
886 (c_parser_binary_expression): Likewise.
887 (c_parser_sizeof_expression): Likewise.
888 (c_parser_alignof_expression): Likewise.
889 * c-typeck.c (build_indirect_ref): Check
890 c_inhibit_evaluation_warnings rather than skip_evaluation.
891 (build_conditional_expr, build_binary_op): Likewise.
892
2e407842
RG
8932009-06-16 Richard Guenther <rguenther@suse.de>
894
895 * tree-ssa-alias.c (is_escape_site): Remove.
896 * tree-ssa-alias.h (enum escape_type): Remove.
897 (is_escape_site): Likewise.
898 * tree-ssa-structalias.c (find_func_aliases): Handle escapes
899 via casts and asms without deferring to is_escape_site.
900
f2ff8872
JJ
9012009-06-16 Jakub Jelinek <jakub@redhat.com>
902
903 PR middle-end/40446
904 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: Don't
905 use gen_lowpart if op0 has complex mode.
906
de70bb20
RG
9072009-06-16 Richard Guenther <rguenther@suse.de>
908
909 * tree-ssa-structalias.c (do_ds_constraint): Stores in global
910 variables add them to ESCAPED.
c637b0fa 911 (find_func_aliases): Do not make all indirectly stored values escaped.
de70bb20 912
daa0eeb8
RAE
9132009-06-16 Rafael Avila de Espindola <espindola@google.com>
914
915 * config/i386/winnt.c (i386_pe_encode_section_info): Update call to
916 make_decl_one_only.
917
0ec19b8c
MJ
9182009-06-16 Martin Jambor <mjambor@suse.cz>
919
920 PR tree-optimization/40432
921 * tree-sra.c (sra_modify_assign): When creating VIEW_CONVERT_EXPR,
922 check whether we need to force gimple register operand.
923
2b26b801
MJ
9242009-06-16 Martin Jambor <mjambor@suse.cz>
925
926 PR tree-optimization/40413
927 * tree-sra.c (load_assign_lhs_subreplacements): Pass offset to
928 build_ref_for_offset.
929 (propagate_subacesses_accross_link): Fix a typo in a comment.
930
7c5222ff
IR
9312009-06-16 Ira Rosen <irar@il.ibm.com>
932
933 * tree-parloops.c (loop_parallel_p): Call vect_is_simple_reduction
934 with additional parameter.
c637b0fa 935 * tree-vectorizer.h (enum vect_def_type): Add new value
7c5222ff
IR
936 vect_nested_cycle.
937 (enum vect_relevant): Add comments.
938 (vect_is_simple_reduction): Add new argument.
939 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Add comments.
940 Detect nested cycles.
941 (vect_is_simple_reduction): Update documentation, add an argument to
942 distinguish inner-loop reduction from nested cycle, detect nested
943 cycles, fix printings and indentation, don't swap operands in case
944 of nested cycle.
945 (get_initial_def_for_reduction): Handle subtraction.
946 (vect_create_epilog_for_reduction): Add new argument to specify
947 reduction variable.
948 (vect_finalize_reduction): Handle subtraction, fix comments.
c637b0fa
UB
949 (vectorizable_reduction): Handle nested cycles. In case of nested
950 cycle keep track of the reduction variable position. Call
7c5222ff
IR
951 vect_is_simple_reduction with additional parameter. Use original
952 statement code in reduction epilogue for nested cycle. Call
953 vect_create_epilog_for_reduction with additional parameter.
c637b0fa
UB
954 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Assert
955 inner-loop vectorization.
7c5222ff
IR
956 (vect_recog_widen_sum_pattern): Likewise.
957 * tree-vect-stmts.c (process_use): Distinguish between nested cycles
958 and reductions.
959 (vect_mark_stmts_to_be_vectorized): Likewise.
960 (vect_get_vec_def_for_operand): Handle nested cycles.
961
d376d545
RW
9622009-06-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
963
964 * doc/invoke.texi (Debugging Options): Fix option index entries
965 for -fdump-statistics, -frandom-seed add entries for
966 -fdump-tree-original, -fdump-tree-optimized, -frandom-seed.
967 (FRV Options): Fix entries for -mTLS, -mtls.
968 (HPPA Options): Fix entries for -mgnu-ld, -mhp-ld.
969 (i386 and x86-64 Options): Fix entry for -mno-red-zone.
970 (M68hc1x Options): Fix @itemx for -mnominmax.
971 (MCore Options): Fix entry for -mno-lsim.
972 (MMIX Options): Fix entry for -mabi=mmixware.
973 (PDP-11 Options): Fix entry for -mbcopy-builtin.
974
bd117bb6
BS
9752009-06-16 Basile Starynkevitch <basile@starynkevitch.net>
976
977 * doc/plugins.texi (Interacting with the GCC Garbage Collector):
978 Mention the plugin mode of gengtype.
c637b0fa 979 * doc/gty.texi (Source Files Containing Type Information): Likewise.
bd117bb6
BS
980 * gengtype.c: Updated copyright.
981 (plugin_files, nb_plugin_files) Added new static variables.
982 (measure_input_list) Care about plugin_files.
983 (write_rtx_next): Added early return in plugin mode.
984 (create_file): Updated copyright year in generated file. Added
985 asserts.
986 (oprintf): Added early return if NULL outf.
987 (get_output_file_with_visibility): Care of plugin_files.
988 (get_output_file_name): May return null.
989 (write_local): Added early return.
990 (put_mangled_filename): Ditto.
991 (finish_root_table): Added check for base_files.
992 (write_roots): Care about null when plugins.
993 (main): Added plugin mode.
994
e1b7793c
ILT
9952009-06-15 Ian Lance Taylor <iant@google.com>
996
c637b0fa 997 * df-problems.c (df_simulate_one_insn_forwards): Fix braces in switch.
e1b7793c
ILT
998 * gcov.c (read_count_file): Add braces around variables declared
999 before label.
1000
1001 * c.opt (Wjump-misses-init): New warning.
1002 * c-opts.c (c_common_handle_option): Set warn_jump_misses_init for
1003 -Wall and -Wc++-compat if not already set.
1004 (c_common_post_options): Clear warn_jump_misses_init if it was not
1005 set.
1006 * c-decl.c (struct c_binding): Change type field to a union with
1007 new label field. Make it the first field in the struct. Update
1008 references to type to use u.type instead.
1009 (struct c_spot_bindings): Define.
1010 (struct c_goto_bindings): Define.
1011 (c_goto_bindings_p): Define, along with VECs.
1012 (struct c_label_vars): Define.
1013 (struct c_scope): Add has_label_bindings field.
1014 (bind_label, set_spot_bindings): New static functions.
1015 (decl_jump_unsafe, update_spot_bindings): New static functions.
1016 (update_label_decls): New static function.
1017 (pop_scope): Call update_label_decls. Don't call c_end_vm_scope.
1018 Update binding u.label field to shadowed field.
1019 (c_binding_start_stmt_expr): New function.
1020 (c_binding_end_stmt_expr): New function.
1021 (pushdecl): Don't call c_begin_vm_scope.
1022 (make_label): Add defining and p_label_vars parameters. Change
1023 all callers.
1024 (lookup_label): Correct test for whether a label has not yet been
1025 defined. Call bind_label rather than bind.
1026 (warn_about_goto): New static function.
1027 (lookup_label_for_goto): New function.
1028 (declare_label): Call bind_label rather than bind.
1029 (check_earlier_gotos): New static function.
1030 (define_label): Don't give errors about jumping into statement
1031 expressions or scopes of variably modified types. Call
1032 set_spot_bindings and check_earlier_gotos. Call bind_label
1033 instead of bind. Don't set label_context_stack_se or
1034 label_context_stack_vm.
1035 (c_get_switch_bindings): New function.
1036 (c_release_switch_bindings): New function.
1037 (c_check_switch_jump_warnings): New function.
1038 (start_function): Don't set label_context_stack_se or
1039 label_context_stack_vm.
1040 (finish_function): Likewise.
1041 * c-typeck.c (label_context_stack_se): Don't define.
1042 (label_context_stack_vm): Don't define.
1043 (c_finish_goto_label): Call lookup_label_for_goto rather than
1044 lookup_label. Don't give errors about jumping into a statement
1045 expression or the scope of a variably modified type. Don't set
1046 label_context_stack_se or label_context_stack_vm.
1047 (struct c_switch): Remove blocked_stmt_expr and blocked_vm
1048 fields. Add bindings field.
1049 (c_start_case): Don't set deleted fields. Set bindings field.
1050 (do_case): Rework order of tests. Don't check blocked_stmt_expr
1051 or blocked_vm. Call c_check_switch_jump_warnings.
1052 (c_finish_case): Don't test blocked_stmt_expr field. Call
1053 c_release_switch_bindings.
1054 (c_begin_stmt_expr): Don't increment blocked_stmt_expr in
1055 c_switch_stack. Don't walk label_context_stack_se labels. Don't
1056 set label_context_stack_se. Call c_bindings_start_stmt_expr.
1057 (c_finish_stmt_expr): Don't decrement blocked_stmt_expr in
1058 c_switch_stack. Don't walk label_context_stack_se labels. Don't
1059 set label_context_stack_se. Call c_bindings_end_stmt_expr.
1060 (c_begin_vm_scope, c_end_vm_scope): Don't define.
1061 * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR): Don't define.
1062 (C_DECL_UNDEFINABLE_STMT_EXPR): Don't define.
1063 (C_DECL_UNJUMPABLE_VM): Don't define.
1064 (C_DECL_UNDEFINABLE_VM): Don't define.
1065 (struct c_label_list): Don't define.
1066 (struct c_label_context_se): Don't define.
1067 (struct c_label_context_vm): Don't define.
1068 (struct c_spot_bindings): Declare.
1069 (c_bindings_start_stmt_expr): Declare.
1070 (c_bindings_end_stmt_expr): Declare.
1071 (lookup_label_for_goto): Declare.
1072 (c_get_switch_bindings, c_release_switch_bindings): Declare.
1073 (c_check_switch_jump_warnings): Declare.
1074 (label_context_stack_se, label_context_stack_vm): Don't declare.
1075 (c_finish_goto_label): Update declaration.
1076 (c_begin_vm_scope, c_end_vm_scope): Don't declare.
1077 * doc/invoke.texi (Option Summary): Mention -Wjump-misses-init.
1078 (Warning Options): Document -Wjump-misses-init.
1079
98a129b9
JJ
10802009-06-15 Jakub Jelinek <jakub@redhat.com>
1081
1082 * tree-object-size.c (addr_object_size): Fix a pasto in the last
1083 change.
1084
19751f1f
RAE
10852009-06-15 Rafael Avila de Espindola <espindola@google.com>
1086
1087 * cgraph.c (cgraph_make_node_local): Use DECL_COMDAT_GROUP.
1088
d40eb158
AH
10892009-06-15 Aldy Hernandez <aldyh@redhat.com>
1090
1091 * except.c (init_eh): Use BUILTINS_LOCATION when calling build_decl.
1092
10932009-06-15 Aldy Hernandez <aldyh@redhat.com>
1094
1095 * tree-eh.c (lower_try_finally_switch): Initialize tf_loc.
1096
fc26fae3
RAE
10972009-06-15 Rafael Avila de Espindola <espindola@google.com>
1098
1099 * cgraphunit.c (cgraph_function_versioning,save_inline_function_body):
1100 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
1101 * cgraph.c (cgraph_create_virtual_clone): Use DECL_COMDAT_GROUP.
1102 * config/i386/i386.c (ix86_file_end): Compute DECL_COMDAT_GROUP.
c637b0fa
UB
1103 * dwarf2asm.c (dw2_force_const_mem): Update call to
1104 make_decl_one_only.
fc26fae3
RAE
1105 * langhooks-def.h (lhd_comdat_group, LANG_HOOKS_COMDAT_GROUP): Remove.
1106 (LANG_HOOKS_DECLS): Remove LANG_HOOKS_COMDAT_GROUP.
1107 * langhooks.c (lhd_comdat_group): Remove.
1108 * langhooks.h (lang_hooks_for_decls): Remove comdat_group.
1109 * tree.h (DECL_COMDAT_GROUP): New.
1110 (DECL_ONE_ONLY): Use DECL_COMDAT_GROUP.
1111 (tree_decl_with_vis): Add comdat_group. Remove one_only.
1112 (make_decl_one_only): Change signature.
1113 * varasm.c (get_emutls_init_templ_addr, emutls_decl): Update call to
1114 make_decl_one_only.
1115 (make_decl_one_only): Change signature.
1116 (default_elf_asm_named_section): Use DECL_COMDAT_GROUP.
1117
0eb92735
RG
11182009-06-15 Richard Guenther <rguenther@suse.de>
1119
1120 PR middle-end/40439
1121 * tree.c (widest_int_cst_value): Fix bootstrap on 32bit HWI hosts.
1122
0ab352d5
AK
11232009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1124
1125 * tree-ssa-math-opts.c: Remove extra divide.
1126
677fbff4
AK
11272009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1128
1129 * config/s390/s390.md ("bswap<mode>2"): Only available on z900.
1130
03bd2f1a
AK
11312009-06-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1132
1133 * passes.c: Add bswap pass.
1134 * tree-pass.h: Add pass_optimize_bswap declaration.
1135 * tree-ssa-math-opts.c: Include diagnostics.h for print_gimple_stmt.
1136 Include rtl.h, expr.h and optabs.h for optab_handler check.
1137 (struct symbolic_number, pass_optimize_bswap): New definition.
1138 (do_shift_rotate, verify_symbolic_number_p): New functions.
1139 (find_bswap_1, find_bswap, execute_optimize_bswap): New functions.
1140 (gate_optimize_bswap): New function.
1141 * tree.c (widest_int_cst_value): New function.
1142 * tree.h (widest_int_cst_value): Prototype added.
1143
fb4c4640
SB
11442009-06-14 Steven Bosscher <steven@gcc.gnu.org>
1145
1146 * cfgcleanup.c (old_insns_match_p): Remove code to substitute
1147 REG_EQUAL/REG_EQUIV notes.
1148
1d24fdd9
RG
11492009-06-14 Richard Guenther <rguenther@suse.de>
1150
1151 PR middle-end/40389
1152 * gimple.c (walk_stmt_load_store_addr_ops): The LHS of a call
1153 has its address taken if NRV was applied and it is addressable.
1154 * tree-ssa-structalias.c (get_constraint_for_address_of): New
1155 function split out from ...
1156 (get_constraint_for_1): ... here.
1157 (handle_rhs_call): Use it to mark the return slot escaped if
1158 it is addressable and NRV was applied.
1159
4b29c5e5
AH
11602009-06-13 Aldy Hernandez <aldyh@redhat.com>
1161
1162 * config/rs6000/rs6000-protos.h (altivec_resolve_overloaded_builtin):
1163 Change first argument type to location_t.
1164 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Same.
1165 Do not set input_location.
1166 Use loc instead of input_location throughout.
1167
e1e6dc73
RG
11682009-06-13 Richard Guenther <rguenther@suse.de>
1169
1d24fdd9 1170 PR tree-optimization/40421
e1e6dc73
RG
1171 * tree-predcom.c (should_unroll_loop_p): Remove.
1172 (tree_predictive_commoning_loop): Use can_unroll_loop_p.
1173
8012b923
MM
11742009-06-13 Michael Meissner <meissner@linux.vnet.ibm.com>
1175
1176 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1177 Add location argument.
1178
4c4bde29
AH
11792009-06-13 Aldy Hernandez <aldyh@redhat.com>
1180
1181 * config/alpha/alpha.c (alpha_build_builtin_va_list): Pass location to
1182 build_decl.
1183 * config/s390/s390.c (s390_build_builtin_va_list): Same.
1184 (s390_gimplify_va_arg): Pass location to create_artificial_label.
1185 * config/spu/spu-protos.h: Add location to
1186 spu_resolve_overloaded_builtin.
1187 * config/spu/spu.c (spu_build_builtin_va_list): Pass location to
1188 spu_build_builtin_va_list.
1189 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Add location
1190 argument. Pass location to build_function_call_vec.
1191 * config/sh/sh.c (sh_build_builtin_va_list): Pass location to
1192 build_decl.
1193 (emit_fpu_switch): Same.
1194 (sh_gimplify_va_arg_expr): Pass location to create_artificial_label.
1195 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Pass location
1196 to build_decl and create_artificial_label.
1197 (xtensa_gimplify_va_arg_expr): Same.
1198 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list): Same.
1199 (xstormy16_gimplify_va_arg_expr): Same.
1200 * config/iq2000/iq2000.c (iq2000_expand_prologue): Same.
1201 * config/arm/arm.c (arm_build_builtin_va_list): Same.
1202 * config/mips/mips.c (mips_build_builtin_va_list): Same.
1203 (mips16_build_function_stub): Same.
1204 (mips16_build_call_stub): Same.
1205
81beb031
RE
12062009-06-13 Richard Earnshaw <rearnsha@arm.com>
1207
1208 PR target/40327
1209 * arm/constraints.md (Pa, Pb): New constraints.
1210 * arm/arm.md (thumb1_addsi3): Support more complex additions. Add a
1211 split pattern to deal with them.
1212
98f6c600
JS
12132009-06-13 Joerg Sonnenberger <joerg@britannica.bec.de>
1214
1215 * doc/invoke.texi: Add missing option -Wp,OPTION in list,
1216 fix index entry for -Xpreprocessor.
1217
71856685
AH
12182009-06-12 Aldy Hernandez <aldyh@redhat.com>
1219
1220 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1221 Add location argument to build_decl call.
1222 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Same.
1223 (rs6000_init_builtins): Same.
1224 (spe_init_builtins): Same.
1225 (rs6000_gimplify_va_arg): Add location argument to
1226 create_artificial_label call.
1227
756b65f5
SB
12282009-06-12 Steven Bosscher <steven@gcc.gnu.org>
1229
1230 * timevar.def (TV_COMBINE_STACK_ADJUST): New timevar.
1231 * combine-stack-adj.c (pass_stack_adjustments): Use it.
1232 * Makefile.in: Fix GGC dependency for gcse.o.
1233
c2255bc4
AH
12342009-06-12 Aldy Hernandez <aldyh@redhat.com>
1235
1236 * tree-pretty-print.c (dump_generic_node): Dump column numbers.
1237 * gimple-pretty-print.c (dump_gimple_stmt): Same.
1238 * gimplify.c (gimplify_modify_expr): Set location for GIMPLE_ASSIGNs
1239 created.
1240 * c-parser.c (c_parser_binary_expression): Use current column while
1241 building binary operations.
1242 * common.opt (fshow-column): Enable by default.
1243 * tree-vrp.c (check_array_ref): Use warning_at.
1244 (check_array_bounds): Use location from call back if expr has no
1245 location.
1246 * tree.h: Add location argument to maybe_fold_*.
1247 * tree-ssa-ccp.c (ccp_fold): Pass location to maybe_fold_*.
1248 (maybe_fold_offset_to_array_ref): Add location argument and use it.
1249 (maybe_fold_offset_to_component_ref): Same.
1250 (maybe_fold_offset_to_reference): Same.
1251 (maybe_fold_offset_to_address): Same.
1252 (maybe_fold_stmt_indirect): Same.
1253 (maybe_fold_stmt_addition): Same.
1254 (fold_stmt_r): Pass location to maybe_fold_*.
1255 (fold_gimple_assign): Same.
1256 * c-tree.h: Add location argument to finish_decl,
1257 default_function_array_conversion, store_init_value.
1258 * c-decl.c (define_label): Use error_at.
1259 (c_make_fname_decl): Pass location to finish_decl.
1260 (finish_decl): New location argument.
1261 (build_compound_literal): Pass location to store_init_value.
1262 (grokdeclarator): Pass location to finish_decl.
1263 (grokfield): Same.
1264 * c-typeck.c (array_to_pointer_conversion): New location argument.
1265 (function_to_pointer_conversion): Same.
1266 (default_function_array_conversion): Same.
1267 (parser_build_unary_op): Pass location to overflow_warning.
1268 (parser_build_binary_op): Same. Use warning_at.
1269 (build_unary_op): Pass location to array_to_pointer_conversion.
1270 (build_c_cast): Pass location to digest_init.
1271 (build_modify_expr): New location argument.
1272 (convert_for_assignment): Same.
1273 (store_init_value): Same.
1274 (digest_init): Same.
1275 (output_init_element): Pass location to digest_init and
1276 array_to_pointer_conversion.
1277 (c_finish_return): Pass location to convert_for_assignment.
1278 * gimplify.c (gimplify_conversion): Pass location to
1279 maybe_fold_offset_to_address.
1280 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Pass location
1281 to maybe_fold_stmt_addition.
1282 * c-omp.c (c_finish_omp_atomic): Pass new location to
1283 build_modify_expr.
1284 (c_finish_omp_for): Same.
1285 * c-common.c (overflow_warning): New argument.
1286 * c-common.h: New argument to build_modify_expr, overflow_warning.
1287 * c-parser.c (c_parser_declaration_or_fndef): Pass location to
1288 finish_decl.
1289 (c_parser_initializer): Pass location to
1290 default_function_array_conversion.
1291 (c_parser_initelt): Same.
1292 (c_parser_initval): Same.
1293 (c_parser_asm_operands): Same.
1294 (c_parser_expr_no_commas): Same. Pass location to build_modify_expr.
1295 (c_parser_conditional_expression): Same.
1296 (c_parser_binary_expression): Add location info to stack. Use it.
1297 (c_parser_unary_expression): Pass location to
1298 default_function_array_conversion, parser_build_unary_op,
1299 build_indirect_ref, c_parser_postfix_expression_after_primary.
1300 (c_parser_postfix_expression_after_primary): New location argument.
1301 Use it.
1302 (c_parser_expression_conv): Pass location to
1303 default_function_array_conversion.
1304 (c_parser_expr_list): Same.
1305 (c_parser_omp_atomic): Same.
1306 (c_parser_omp_for_loop): Same.
1307 * c-tree.h: (struct c_declarator): Add comment to id_loc.
1308 (build_array_declarator): New argument.
1309 * c-decl.c (build_array_declarator): Add location argument.
1310 (grokdeclarator): Set id_loc for cdk_array.
1311 * c-parser.c (c_parser_direct_declarator_inner): Pass location to
1312 build_array_declarator.
1313 * tree.c (build_omp_clause): Add location argument.
1314 * tree.h (OMP_CLAUSE_HAS_LOCATION): New macro.
1315 (OMP_CLAUSE_LOCATION): New macro.
1316 (struct tree_omp_clause): Add location field.
1317 (build_omp_clause): Add argument.
1318 * testsuite/gcc.dg/gomp/for-1.c: Fix column.
1319 * cp/pt.c (tsubst_omp_for_iterator): Pass location to
1320 build_omp_clause.
1321 * cp/parser.c (cp_parser_omp_var_list_no_open): Same.
1322 (cp_parser_omp_clause_collapse): Same.
1323 (cp_parser_omp_clause_default): Same.
1324 (cp_parser_omp_clause_if): Same.
1325 (cp_parser_omp_clause_nowait): Same.
1326 (cp_parser_omp_clause_num_threads): Same.
1327 (cp_parser_omp_clause_ordered): Same.
1328 (cp_parser_omp_clause_schedule): Same.
1329 (cp_parser_omp_clause_untied): Same.
1330 (cp_parser_omp_for_loop): Same.
1331 (cp_parser_omp_parallel): Pass location to c_split_parallel_clauses.
1332 * c-tree.h (c_start_case): Add location argument.
1333 (c_process_expr_stmt): Same.
1334 (c_finish_goto_*): Same.
1335 * tree-parloops.c (initialize_reductions): Pass location to
1336 build_omp_clause.
1337 (create_parallel_loop): Same.
1338 * fortran/trans-openmp.c (gfc_trans_omp_variable_list): Same.
1339 (gfc_trans_omp_reduction_list): Same.
1340 (gfc_trans_omp_clauses): Same.
1341 (gfc_trans_omp_do): Same.
1342 * c-typeck.c (c_finish_goto_label): Same.
1343 (c_finish_goto_ptr): New location argument.
1344 (c_start_case): Same.
1345 (emit_side_effect_warnings): Same.
1346 (c_process_expr_stmt): Same.
1347 (c_finish_stmt_expr): Same.
1348 (c_finish_omp_clauses): Use error_at instead of error.
1349 * gimplify.c (gimplify_adjust_omp_clauses_1): Pass location to
1350 build_omp_clause.
1351 * c-omp.c (c_split_parallel_clauses): New location argument.
1352 * tree-nested.c (convert_nonlocal_reference_stmt): Pass location
1353 to build_omp_clause.
1354 (convert_local_reference_stmt): Same.
1355 (convert_gimple_call): Same.
1356 * c-common.h (c_split_parallel_clauses): New argument.
1357 * c-parser.c (c_parser_statement_after_labels): Pass location to
1358 c_finish_goto_label.
1359 (c_parser_switch_statement): Pass location to c_start_case.
1360 (c_parser_for_statement): Pass location to c_finish_expr_stmt,
1361 and c_process_expr_stmt.
1362 (c_parser_omp_variable_list): Add location argument.
c637b0fa 1363 (c_parser_omp_clause_collapse): Pass location to build_omp_clause.
c2255bc4
AH
1364 (c_parser_omp_clause_default): Same.
1365 (c_parser_omp_clause_if): Same.
1366 (c_parser_omp_clause_num_threads): Same.
1367 (-c_parser_omp_clause_ordered): Same.
1368 (c_parser_omp_clause_reduction): Pass location to
1369 c_parser_omp_variable_list.
1370 (c_parser_omp_clause_schedule): Pass location to build_omp_clause.
1371 (c_parser_omp_clause_untied): Same.
1372 (c_parser_omp_for_loop): Pass location to c_process_expr_stmt.
c637b0fa 1373 (c_parser_omp_parallel): Pass location to c_split_parallel_clauses.
c2255bc4
AH
1374
1375 * c-tree.h (check_for_loop_decls, undeclared_variable,
1376 build_component_ref, build_array_ref, build_external_ref,
1377 c_expr_sizeof_expr, c_expr_sizeof_type, parser_build_unary_op,
1378 build_conditional_expr, build_compound_expr, c_cast_expr,
1379 build_c_cast, build_asm_expr, c_end_compound_stmt, c_finish_stmt_expr,
1380 c_finish_return, c_finish_omp_parallel, c_finish_omp_task): New
1381 argument.
1382 * c-semantics.c (build_stmt): Same.
1383 (build_case_label): Same.
1384 * c-decl.c (c_finish_incomplete_decl): Pass location on down.
1385 (undeclared_variable): New argument.
1386 (make_label): Same.
1387 (lookup_label): Pass location on down.
1388 (define_label): Same.
1389 (finish_decl): Same.
1390 (build_compound_literal): Same.
1391 (finish_struct): Same.
1392 (finish_function): Do not set location here.
1393 (check_for_loop_decls): New argument.
1394 * tree.c (save_expr): Set location.
1395 (build_empty_stmt): New argument.
1396 * tree.h (build_empty_stmt): New argument to build_empty_stmt.
1397 (CAN_HAVE_LOCATION_P): Make sure we have a non empty node.
1398 * builtins.c (gimplify_va_arg_expr): Use locations.
1399 (expand_builtin_sync_operation): Same.
1400 * c-typeck.c (build_component_ref): New argument.
1401 (build_array_ref): Same.
1402 (build_external_ref): Same.
1403 (c_expr_sizeof_expr): Same.
1404 (c_expr_sizeof_type): Same.
1405 (parser_build_unary_op): Same.
1406 (build_conditional_expr): Same.
1407 (build_compound_expr): Pass location on down.
1408 (build_compound_expr): New argument.
1409 (build_c_cast): Same.
1410 (c_cast_expr): Same.
1411 (build_asm_expr): Same.
1412 (c_finish_return): Same.
1413 (c_process_expr_stmt): Pass location on down.
1414 (c_finish_stmt_expr): New argument.
1415 (push_clenaup): Same.
1416 (c_finish_omp_parallel): Same.
1417 (c_finish_omp_task): Same.
1418 * gimplify.c (gimplify_call_expr): Pass location on down.
1419 * c-omp.c (c_finish_omp_master): New argument.
1420 (c_finish_omp_critical): Same.
1421 (c_finish_omp_ordered): Same.
1422 (c_finish_omp_barrier): Same.
1423 (-c_finish_omp_taskwait): Same.
1424 (c_finish_omp_atomic): Same.
1425 (c_finish_omp_flush): Same.
1426 * tree-inline.c (copy_tree_body_r): Pass location on down.
1427 (inline_forbidden_p): Remove use of input_location.
1428 * c-gimplify.c (c_build_bind_expr): New argument.
1429 * c-common.c (c_common_truthvalue_conversion): Pass location on down.
1430 (c_sizeof_or_alignof_type): New argument.
1431 (c_alignof_expr): Same.
1432 (build_va_arg): Same.
1433 (c_add_case_label): Same.
1434 * c-common.h (c_sizeof_or_alignof_type, c_alignof_expr,
1435 c_sizeof, c_alignof, build_va_arg, build_stmt, build_case_label,
1436 c_build_bind_expr, objc_build_selector_expr, objc_build_throw_stmt,
1437 c_finish_omp_master, c_finish_omp_critical, c_finish_omp_ordered,
1438 c_finish_omp_barrier, c_finish_omp_atomic, c_finish_omp_flush,
1439 c_finish_omp_taskwait, c_finish_omp_for, c_split_parallel_clauses):
1440 New argument.
1441 * stub-objc.c (objc_build_selector_expr): Same.
1442 (objc_build_throw_stmt): Same.
1443 * c-parser.c (c_parser_declaration_or_fndef): Pass location on down.
1444 (c_parser_initelt): Same.
1445 (c_parser_compound_statement): Same.
1446 (c_parser_compound_statement_nostart): Same.
1447 (c_parser_label): Same.
1448 (c_parser_statement_after_labels): Same.
1449 (c_parser_if_body): Same.
1450 (c_parser_else_body): Same.
1451 (c_parser_if_statement): Same.
1452 (c_parser_switch_statement): Same.
1453 (c_parser_while_statement): Same.
1454 (c_parser_do_statement): Same.
1455 (c_parser_for_statement): Same.
1456 (c_parser_asm_statement): Same.
1457 (c_parser_conditional_expression): Same.
1458 (c_parser_binary_expression): Same.
1459 (c_parser_cast_expression): Same.
1460 (c_parser_unary_expression): Same.
1461 (c_parser_sizeof_expression): Same.
1462 (c_parser_alignof_expression): Same.
1463 (c_parser_postfix_expression): Same.
1464 (c_parser_expression): Same.
1465 (c_parser_objc_receiver): Same.
1466 (c_parser_omp_variable_list): Same.
1467 (c_parser_omp_structured_block): Same.
1468 (c_parser_omp_atomic): New argument.
1469 (c_parser_omp_barrier): Same.
1470 (c_parser_omp_critical): Same.
1471 (c_parser_omp_flush): Pass location on down.
1472 (c_parser_omp_for_loop): New argument.
1473 (c_parser_omp_for): Same.
1474 (c_parser_omp_master): Same.
1475 (c_parser_omp_ordered): Same.
1476 (c_parser_omp_sections_scope): Same.
1477 (c_parser_omp_sections): Same.
1478 (c_parser_omp_parallel): Same.
1479 (c_parser_omp_single): Same.
1480 (c_parser_omp_task): Same.
1481 (c_parser_omp_taskwait): Pass location on down.
1482 (c_parser_omp_construct): Same.
1483 (c_parser_omp_threadprivate): Same.
1484 * dwarf2asm.c, targhooks.c, optabs.c, tree.c, tree.h, target.h,
1485 builtins.c, omp-low.c, cgraphunit.c, tree-call-cdce.c,
1486 tree-ssa-alias.c, gimple-low.c, c-tree.h, expr.c, tree-parloops.c,
1487 c-decl.c, tree-eh.c, langhooks.c, function.c, stor-layout.c,
1488 c-typeck.c, gimplify.c, c-pragma.c, expmed.c, except.c, coverage.c,
1489 emit-rtl.c, cfgexpand.c, tree-mudflap.c, varasm.c, tree-nested.c,
1490 rtl.h, tree-inline.c, tree-profile.c, c-common.c, c-common.h,
1491 tree-switch-conversion.c, tree-cfg.c, ipa-struct-reorg.c, c-parser.c,
1492 config/i386/i386.c, stmt.c:
1493 Add location argument to the following function definitions and/or
1494 function calls: build_decl, objcp_start_struct, objcp_finish_struct,
1495 start_struct, finish_struct, PUSH_FIELD, create_artificial_label,
1496 cp_make_fname_decl, pushtag, implicitly_declare, c_make_fname_decl,
1497 build_compound_literal, parser_xref_tag, resolve_overloaded_builtin,
1498 do_case, c_finish_bc_stmt, build_compound_literal,
1499 build_function_call.
1500 * c-decl.c (build_compound_literal): Add location argument.
1501 Make all diagnostic calls use location.
1502 (start_struct): Same.
1503 (finish_struct): Same.
1504 (start_enum): Same.
1505 (build_enumerator): Same.
1506 (start_function): Same.
1507 (grokdeclarator): Make all diagnostic calls use location.
1508 (store_parm_decls_oldstyle): Same.
1509 * c-typeck.c (build_function_call): Add location argument.
1510 Make all diagnostic calls use location.
1511 (do_case): Same.
1512 (c_finish_bc_stmt): Same.
1513 * tree-nested.c (get_trampoline_type): Add argument.
1514 Pass location to build_decl.
1515 (lookup_tramp_for_decl): Pass location to get_trampoline_type.
1516 * rtl.h (RTL_LOCATION): New.
1517 * c-common.c (c_add_case_label): Add location argument.
1518 Make all diagnostic calls use location.
1519 * c-common.h: Add location argument to make_fname_decl, do_case,
1520 c_add_case_label, build_function_call, resolve_overloaded_builtin.
1521 * c-parser.c (c_parser_enum_specifier): Rename ident_loc to enum_loc.
1522 Set it appropriately for every case. Pass enum_loc to start_enum
1523 call. Pass value_loc first to build_enumerator. Pass enum_loc to
1524 parser_xref_tag.
1525 (c_parser_struct_or_union_specifier): Save location. Use it for
1526 start_struct, finish_struct, and parser_xref_tag.
1527
3d8b2a98
ILT
15282009-06-12 Ian Lance Taylor <iant@google.com>
1529
c637b0fa 1530 * fold-const.c (fold_unary): Rename local variable and to and_expr.
3d8b2a98
ILT
1531
1532 * c-opts.c (c_common_handle_option): For -Wc++-compat set
1533 cpp_opts->warn_cxx_operator_names.
1534
737142ce
AP
15352009-06-12 Andrew Pinski <andrew_pinski@playstation.sony.com>
1536
1537 PR tree-opt/38865
1538 * tree-ssa-sccvn.c (visit_reference_op_load): If vn_reference_lookup
1539 is returns NULL and OP is a VCE, look through the VCE.
1540
d3a0d55d
ILT
15412009-06-12 Ian Lance Taylor <iant@google.com>
1542
1543 PR bootstrap/40430
1544 * collect2.c (main): Use CONST_CAST2 in code inside #if
1545 LINK_ELIMINATE_DUPLICATE_LDIRECTORIES.
1546
f85882d8
JY
15472009-06-12 Joey Ye <joey.ye@intel.com>
1548
1549 PR middle-end/39146
1550 * cfgexpand.c (get_decl_align_unit): Update
1551 max_used_stack_slot_alignment with align instead of
1552 stack_alignment_needed.
1553
1554 * function.c (assign_stack_local_1): Update
1555 max_used_stack_slot_alignment with alignment_in_bits instead
1556 of stack_alignment_needed.
1557 (locate_and_pad_parm): Don't update max_used_stack_slot_alignment
1558 here.
1559
fc9f468b
JJ
15602009-06-12 Jakub Jelinek <jakub@redhat.com>
1561
1562 * dwarf2out.c (last_var_location_insn): New variable.
1563 (dwarf2out_end_epilogue): Clear last_var_location_insn.
1564 (dwarf2out_var_location): Don't record anything after last real
1565 insn. Only change labels if there were any real instructions
1566 in between last note and this one, or if changed sections.
1567
7c1db202
RH
15682009-06-11 Richard Henderson <rth@redhat.com>
1569
f85882d8 1570 * alpha.c (alpha_expand_prologue): Add a REF_CFA_REGISTER
15cb981a
RH
1571 note when storing the frame pointer in a register.
1572 (FRP): Don't redefine to nothing for epilogue.
1573 (alpha_expand_epilogue): Mark register and sp restores.
1574 (unicosmk_gen_dsib): Don't mark weird frame pointer adjust.
1575
7c1db202
RH
1576 * config/alpha/alpha.c (alpha_emit_setcc): Fix test for
1577 when gen_lowpart is needed.
1578
f2ae7631
RH
15792009-06-11 Richard Henderson <rth@redhat.com>
1580
42755c21
RH
1581 * dwarf2out.c (def_cfa_1): Likewise for DW_CFA_cfa_offset.
1582
f2ae7631
RH
1583 * dwarf2out.c (need_data_align_sf_opcode): New.
1584 (div_data_align): Move earlier.
1585 (def_cfa_1, reg_save): Use it.
1586
8ed0ce99
L
15872009-06-11 H.J. Lu <hongjiu.lu@intel.com>
1588
1589 * config/i386/i386.c (OPTION_MASK_ISA_CRC32_SET): New.
1590 (OPTION_MASK_ISA_CRC32_UNSET): Likewise.
1591 (ix86_handle_option): Handle OPT_mcrc32.
1592 (ix86_target_string): Add -mcrc32.
1593 (bdesc_args): Enable crc32 builtins with OPTION_MASK_ISA_CRC32.
1594
1595 * config/i386/i386.h (TARGET_CRC32): New.
1596
c637b0fa 1597 * config/i386/i386.md (sse4_2_crc32<mode>): Also check TARGET_CRC32.
8ed0ce99
L
1598 (sse4_2_crc32di): Likewise.
1599
c637b0fa 1600 * config/i386/i386.opt (mcrc32): New.
8ed0ce99
L
1601
1602 * doc/invoke.texi: Document -mcrc32.
1603
9fd68a1f
RH
16042009-06-11 Richard Henderson <rth@redhat.com>
1605
8ed0ce99 1606 * common.opt (gdwarf-): Accept a version number.
9fd68a1f
RH
1607 * doc/invoke.texi (gdwarf-): Update docs.
1608 * opth-gen.awk: Special case -gdwarf+ to OPT_gdwarfplus.
1609 * opts.c (common_handle_option) [OPT_gdwarf_]: Verify dwarf
1610 version level, and record it.
1611
1612 * dwarf2.h (DW_CIE_VERSION): Remove.
1613 * dwarf2out.c (DWARF_VERSION): Remove.
1614 (add_fde_cfi): Skip DW_CFA_set_loc addition for dwarf3.
1615 (output_call_frame_info): Use CIE version 3 for dwarf3,
1616 or if the return register column is out of range for version 1.
1617 (dwarf_stack_op_name): Add all dwarf3 values.
1618 (DEBUG_PUBTYPES_SECTION): New.
1619 (size_of_die) [dw_val_class_die_ref]: Handle DW_FORM_ref_addr
1620 encoding change for dwarf3.
1621 (output_die) [dw_val_class_die_ref]: Likewise.
1622 (output_compilation_unit_header): Emit correct version for dwarf3.
1623 (output_line_info): Likewise.
1624 (output_pubnames): Update for DWARF_VERSION removal.
1625 (output_aranges): Likewise.
1626 (gen_subprogram_die): Emit DW_OP_call_frame_cfa if emitting dwarf3.
1627 (dwarf2out_init): Don't ifdef DEBUG_PUBTYPES_SECTION.
1628 (dwarf2out_finish): Likewise.
1629
4de8ce3b
DD
16302009-06-11 David Daney <ddaney@caviumnetworks.com>
1631
1632 * system.h (gcc_assert, gcc_unreachable): Revert accidental commit
1633 in r148403.
1634
468059bc
DD
16352009-06-11 David Daney <ddaney@caviumnetworks.com>
1636
1637 PR c/39252
1638 * doc/extend.texi ( __builtin_unreachable): Document new builtin.
1639 * builtins.c (expand_builtin_unreachable): New function.
1640 (expand_builtin): Handle BUILT_IN_UNREACHABLE case.
1641 * builtins.def (BUILT_IN_UNREACHABLE): Add new builtin.
1642 * cfgcleanup.c (try_optimize_cfg): Delete empty blocks with no
1643 successors.
1644 * cfgrtl.c (rtl_verify_flow_info): Handle empty blocks when
1645 searching for missing barriers.
1646
b5a6e96f
FXC
16472009-06-11 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
1648
1649 * config/darwin.h (LINK_COMMAND_SPEC): Adjust spec to link libcov
1650 when -fprofile-generate* was passed.
1651 * config/darwin9.h (LINK_COMMAND_SPEC): Likewise.
1652
6be6462e
AG
16532009-06-11 Anthony Green <green@moxielogic.com>
1654
c637b0fa 1655 * config/moxie/moxie.md: Define length attribute for all instructions.
6be6462e
AG
1656 (rCC): Define.
1657 (*b<cond:code>): Support limited branch ranges for new PC-relative
1658 branch instructions.
1659 * config/moxie/moxie.h (HAS_LONG_UNCOND_BRANCH): Define.
1660
caaabe0a
JJ
16612009-06-11 Jakub Jelinek <jakub@redhat.com>
1662
e5219642
JJ
1663 * config/i386/i386.c (min_insn_size): Use get_attr_length
1664 for normal insns other than TYPE_MULTI, TYPE_OTHER and TYPE_FCMP.
1665 For __asm return 0.
1666
caaabe0a
JJ
1667 * config/i386/i386.c (ix86_pad_returns): Use emit_jump_insn_before
1668 instead of emit_insn_before.
1669
a567fa6a
ILT
16702009-06-10 Ian Lance Taylor <iant@google.com>
1671
1672 PR bootstrap/40408
1673 * graphite.c (add_conditions_to_domain): Change SWITCH_EXPR to
1674 GIMPLE_SWITCH.
1675
6a753d5f
RE
16762009-06-10 Revital Eres <eres@il.ibm.com>
1677
1678 * passes.c (init_optimization_passes): Reschedule
1679 predictive-commoning pass before complete unroll pass.
1680
a550d677
MJ
16812009-06-10 Martin Jambor <mjambor@suse.cz>
1682
1683 * cgraph.c (cgraph_node_can_be_local_p): New function.
1684 (cgraph_make_node_local): New function.
1685 * cgraph.h (cgraph_node_can_be_local_p): Declare.
1686 (cgraph_make_node_local): Declare.
1687
d8259b07
NF
16882009-06-10 Nathan Froyd <froydnj@codesourcery.com>
1689
1690 * tree.h (tree_base): Add packed_flag and user_align fields.
1691 Decrease size of spare field.
1692 (TYPE_USER_ALIGN): Use user_align from tree_base.
1693 (DECL_USER_ALIGN): Likewise.
1694 (TYPE_PACKED): Use packed_flag from tree_base.
1695 (DECL_PACKED): Likewise.
1696 (tree_type): Delete packed_flag and user_align fields. Widen
1697 precision field. Widen mode field and shuffle fields to align
1698 mode on an 8-bit boundary.
1699 (tree_decl_common): Delete decl_flag_1 and user_align fields.
1700 Renumber decl_flag_* fields. Fix comments. Widen
1701 decl_common_unused field.
c637b0fa 1702 (DECL_HAS_VALUE_EXPR_P): Adjust for renumbering of decl_flag_* fields.
d8259b07
NF
1703 (DECL_EXTERNAL): Likewise.
1704 (DECL_BIT_FIELD): Likewise.
1705 (DECL_NONADDRESSABLE_P): Likewise.
1706 (TYPE_DECL_SUPRESS_DEBUG): Likewise.
1707 * config/arm/arm-modes.def (XImode): Make it an INT_MODE.
1708
c2569604
ILT
17092009-06-10 Ian Lance Taylor <iant@google.com>
1710
1711 * vec.h (DEF_VEC_ALLOC_I): Use DEF_VEC_NONALLOC_FUNCS_I.
1712 (DEF_VEC_ALLOC_P): Use DEF_VEC_NONALLOC_FUNCS_P.
1713 (DEF_VEC_ALLOC_O): Use DEF_VEC_NONALLOC_FUNCS_O.
1714 (DEF_VEC_ALLOC_FUNC_P): Only define VEC_OP (T,A,alloc).
1715 (DEF_VEC_NONALLOC_FUNCS_P): New macro, broken out of old
1716 DEF_VEC_ALLOC_FUNC_P.
1717 (DEF_VEC_ALLOC_FUNC_O): Only define VEC_OP (T,A,alloc).
1718 (DEF_VEC_NONALLOC_FUNCS_O): New macro, broken out of old
1719 DEF_VEC_ALLOC_FUNC_O.
1720 (DEF_VEC_ALLOC_FUNC_I): Only define VEC_OP (T,A,alloc).
1721 (DEF_VEC_NONALLOC_FUNCS_I): New macro, broken out of old
1722 DEF_VEC_ALLOC_FUNC_I.
1723 (vec_stack_p_reserve, vec_stack_p_reserve_exact): Declare.
1724 (vec_stack_p_reserve_exact_1): Declare.
1725 (vec_stack_o_reserve, vec_stack_o_reserve_exact): Declare.
1726 (vec_stack_free): Declare.
1727 (VEC_stack_alloc): Define.
1728 (DEF_VEC_ALLOC_P_STACK, DEF_VEC_ALLOC_FUNC_P_STACK): Define.
1729 (DEF_VEC_ALLOC_O_STACK, DEF_VEC_ALLOC_FUNC_O_STACK): Define.
1730 (DEF_VEC_ALLOC_I_STACK, DEF_VEC_ALLOC_FUNC_I_STACK): Define.
1731 * vec.c (void_p): New type. Call DEF_VEC_P and DEF_VEC_ALLOC_P
1732 for void_p.
1733 (stack_vecs): New static variable.
1734 (vec_stack_p_reserve_exact_1): New function.
1735 (vec_stack_o_reserve_1): New static function.
1736 (vec_stack_p_reserve, vec_stack_p_reserve_exact): New functions.
1737 (vec_stack_o_reserve, vec_stack_o_reserve_exact): New functions.
1738 (vec_stack_free): New function.
1739 * df-scan.c (df_ref): Use DEF_VEC_P and DEF_VEC_ALLOC_P_STACK.
1740 (VEC_df_ref_stack_alloc): Define.
1741 (df_mw_hardreg_ptr): New type. Use DEF_VEC_P and
1742 DEF_VEC_ALLOC_P_STACK.
1743 (VEC_df_mw_hardreg_ptr_stack_alloc): Define.
1744 (struct df_collection_rec): Change _vec fields to VEC. Remove
1745 _use fields.
1746 (df_free_collection_rec): Adjust for new fields.
1747 (df_insn_rescan): Use new df_collection_rec fields.
1748 (df_notes_rescan, df_canonize_collection_rec): Likewise.
1749 (df_ref_create_structure, df_ref_record): Likewise.
1750 (df_get_conditional_uses, df_get_call_refs): Likewise.
1751 (df_insn_refs_collect, df_bb_refs_collect): Likewise.
1752 (df_bb_refs_record, df_record_entry_block_defs): Likewise.
1753 (df_record_exit_block_uses, df_bb_verify): Likewise.
c637b0fa 1754 (df_swap_refs): Change ref_vec parameter to VEC. Change all callers.
c2569604
ILT
1755 (df_sort_and_compress_refs): Change ref_vec parameter to VEC.
1756 Remove count parameter. Change return type to void. Change all
1757 callers.
1758 (df_sort_and_compress_mws): Change mw_vec parameter to VEC.
1759 Remove count parameter. Change return type to void. Change all
1760 callers.
1761 (df_install_refs): Change old_vec parameter to VEC. Remove count
1762 parameter. Change all callers.
1763 (df_install_mws): Change old_vec parameter to VEC. Remove count
1764 parameter. Change all callers.
1765 (df_refs_verify): Change new_rec parameter to VEC. Change call
1766 callers.
1767 (df_mws_verify): Likewise.
1768
e7aae3e8
AO
17692009-06-10 Alexandre Oliva <aoliva@redhat.com>
1770
1771 * gcc.c (compare_files): Cast munmap argumento to caddr_t.
1772
412ac8d5
L
17732009-06-10 H.J. Lu <hongjiu.lu@intel.com>
1774
1775 * doc/extend.texi: Add description for __builtin_ia32_crc32di.
1776
cceb575c
AG
17772009-06-10 Anthony Green <green@moxielogic.com>
1778
1779 * config/moxie/crti.asm: New file.
1780 * config/moxie/crtn.asm: New file.
1781 * config/moxie/moxie.c: New file.
1782 * config/moxie/moxie.h: New file.
1783 * config/moxie/sfp-machine.h: New file.
1784 * config/moxie/moxie-protos.h: New file.
1785 * config/moxie/t-moxie: Created.
1786 * config/moxie/t-moxie-softfp: Created.
1787 * config/moxie/moxie.md: Created.
1788 * config/moxie/constraints.md: Created.
1789 * config.gcc: Add moxie support.
1790 * doc/md.texi (Machine Constraints): Add moxie constraints.
1791 * doc/contrib.texi (Contributors): Mention moxie port.
1792 * doc/install.texi (Specific): Mention the moxie port.
1793
bf406687
ILT
17942009-06-09 Ian Lance Taylor <iant@google.com>
1795
1796 * system.h (HAVE_DESIGNATED_INITIALIZERS): Don't define if
1797 compiling with C++.
1798 * optabs.c (optab_table): Only use designated initializers if
1799 HAVE_DESIGNATED_INITIALIZERS is defined.
1800 (convert_optab_table): Likewise.
1801 (init_optabs): Always call init_insn_codes if
1802 HAVE_DESIGNATED_INITIALIZERS is not defined.
1803
744aa42f
ILT
18042009-06-09 Ian Lance Taylor <iant@google.com>
1805
1806 * targhooks.c (default_builtin_vectorized_function): Change fn
1807 parameter to unsigned int.
1808 (default_builtin_vectorized_conversion): Change code parameter to
1809 unsigned int.
1810 (default_builtin_reciprocal): Change fn parameter to unsigned int.
1811 * targhooks.h: Update declarations.
1812 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Change code
1813 parameter to unsigned int.
1814
1815 * c-typeck.c (comptypes_check_enum_int): New static function.
1816 (comptypes_internal): Add enum_and_int_p parameter. Change all
1817 callers.
1818 (comp_target_types): Add location parameter. Change all callers.
1819 (tagged_types_tu_compatible_p): Add enum_and_int_p parameter.
1820 Change all callers.
1821 (function_types_compatible_p, type_lists_compatible_p): Likewise.
1822 (build_conditional_expr): Add colon_loc parameter. Change all
1823 callers.
c637b0fa 1824 (convert_for_assignment): Add location parameter. Change all callers.
744aa42f
ILT
1825 * c-parser.c (c_parser_conditional_expression): Pass location of
1826 colon to build_conditional_expr.
1827 * c-tree.h (build_conditional_expr): Update declaration.
1828
bcbe3b25
SP
18292009-06-09 Sebastian Pop <sebastian.pop@amd.com>
1830
1831 * graphite.c: Revert previous patch.
1832
dc2a6925
SP
18332009-06-09 Sebastian Pop <sebastian.pop@amd.com>
1834
1835 PR bootstrap/40103
1836 * graphite.c: Remove pragma GCC diagnostic warning "-Wc++-compat".
1837
d81f5387
GS
18382009-06-09 Ghassan Shobaki <ghassan.shobaki@amd.com>
1839
8ed0ce99
L
1840 * tree-ssa-loop-prefetch.c
1841 (loop_prefetch_arrays): Fixed a portability problem in printf format
1842 string.
d81f5387 1843
8056eb4f
MJ
18442009-06-09 Martin Jambor <mjambor@suse.cz>
1845
1846 PR tree-optimization/40351
c637b0fa
UB
1847 * tree-sra.c (propagate_subacesses_accross_link): Check that a
1848 refrence to a potential artifical subaccess can be constructed.
8056eb4f 1849
bd9a3465
KK
18502009-06-08 Kaz Kojima <kkojima@gcc.gnu.org>
1851
1852 * config/sh/sh-protos.h (sh_optimization_options): Declare.
1853 (sh_override_options): Likewise.
1854 * config/sh/sh.c: Include params.h.
1855 (sh_optimization_options): New.
1856 (sh_override_options): Likewise.
1857 * config/sh/sh.c (OPTIMIZATION_OPTIONS): Use sh_optimization_options.
1858 (OVERRIDE_OPTIONS): Use sh_override_options.
1859
8845deab
JJ
18602009-06-08 Jakub Jelinek <jakub@redhat.com>
1861
1862 * dwarf2out.c (emit_cfa_remember): New variable.
1863 (add_fde_cfi): If emit_cfa_remember, recurse to add
1864 DW_CFA_remember_state first.
1865 (dwarf2out_begin_epilogue): Don't add_fde_cfi DW_CFA_remember_state,
1866 instead just set emit_cfa_remember.
1867
9ea81b0c
JH
18682009-06-08 Jan Hubicka <jh@suse.cz>
1869
1870 PR debug/40126
1871 * dwarf2out.c (dwarf2out_abstract_function): Free decl_loc_table.
1872
21ecdec5
JH
18732009-06-08 Jan Hubicka <jh@suse.cz>
1874
1875 PR middle-end/39834
c637b0fa
UB
1876 * cgraphunit.c (save_inline_function_body): Do not copy transform
1877 hooks for saved inline bodies.
21ecdec5
JH
1878 * ipa-passes.c (do_per_function): Do not add the hoks multiple times
1879 for given function.
1880
72e48218
AN
18812009-06-08 Adam Nemet <anemet@caviumnetworks.com>
1882
1883 * jump.c (returnjump_p): Handle delayed branches. Add missing
1884 function comment.
1885
6ce2002b
JH
18862009-06-08 Jan Hubicka <jh@suse.cz>
1887
1888 PR middle-end/40102
1889 * cgraph.c (cgraph_create_edge_including_clones): Also asume that the
1890 original node might've been modified.
1891 * tree-inline.c (copy_bb): Do not assume that all clones are the same.
1892
eb9ed98a
JJ
18932009-06-08 Jakub Jelinek <jakub@redhat.com>
1894
1895 * tree-object-size.c (addr_object_size): Add OSI argument.
1896 Handle also INDIRECT_REF with SSA_NAME inside of it as base address.
1897 (compute_builtin_object_size, expr_object_size): Adjust callers.
1898 (plus_stmt_object_size): Call addr_object_size instead of
1899 compute_builtin_object_size.
1900
db34470d 19012009-06-08 Ghassan Shobaki <ghassan.shobaki@amd.com>
8ed0ce99 1902 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
db34470d
GS
1903
1904 * tree-ssa-loop-prefetch.c
1905 (gather_memory_references): Introduced a counter for the number of
1906 memory references.
1907 (anything_to_prefetch_p): Introduced a counter for the number of
1908 prefetches.
1909 (is_loop_prefetching_profitable): New function with a cost model
1910 for prefetching.
1911 (loop_prefetch_arrays): Use the new cost model to determine if
1912 prefetching is profitable.
1913 * params.def (MIN_INSN_TO_PREFETCH_RATIO,
1914 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1915 * params.h (MIN_INSN_TO_PREFETCH_RATIO,
1916 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1917 * doc/invoke.texi (MIN_INSN_TO_PREFETCH_RATIO,
1918 PREFETCH_MIN_INSN_TO_MEM_RATIO): New parameters.
1919
eb7adebc
MM
19202009-06-08 Michael Matz <matz@suse.de>
1921
1922 PR debug/40012
eb7adebc
MM
1923 * cfgexpand.c (set_rtl): Store place also in DECL_RTL, if all
1924 partitions use the same.
1925 (expand_one_var): Deal with DECL_RTL sometimes begin set also
1926 for basevars of SSA_NAMEs.
1927 (expand_used_vars): Reset TREE_USED for basevars of SSA_NAMEs,
1928 to not expand them twice.
1929 (gimple_expand_cfg): Clear DECL_RTL for those decls that have
1930 multiple places.
1931
2153915d
AO
19322009-06-08 Alexandre Oliva <aoliva@redhat.com>
1933
1934 * common.opt (fcompare-debug=, fcompare-debug-second): New.
1935 (fdump-final-insns=, gtoggle): New.
1936 * doc/invoke.texi: Document them.
1937 * final.c (rest_of_clean_state): Dump final insn stream.
1938 * gcc.c (invoke_as): Hook in -fcompare-debug.
1939 (static_spec_functions): Add compare-debug-dump-opt,
1940 compare-debug-self-opt and compare-debug-auxbase-opt.
1941 (compare_debug, compare_debug_second, compare_debug_opt): New.
1942 (switches_debug_check, n_switches_debug_check): New.
1943 (debug_auxbase_opt, debug_check_temp_file): New.
1944 (process_command): Handle -fno-compare-debug, -fcompare-debug and
1945 -fcompare-debug=*.
1946 (do_self_spec): Handle arguments after switches.
1947 (do_spec_1): Add .gk extension to temp file basenames for compare.
1948 (check_live_switch): Take SWITCH_IGNORE into account, and earlier.
1949 (cc1_options): Use it instead of normal auxbase computation for
1950 the second compare-debug compilation.
1951 (compare_files): New.
1952 (main): Set up and implement compare debug mode.
1953 (compare_debug_dump_opt_spec_function): New.
1954 (compare_debug_self_opt_spec_function): New.
1955 (compare_debug_auxbase_opt_spec_function): New.
1956 * toplev.c (process_options): Handle flag_gtoggle,
1957 flag_dump_final_insns.
1958 * coverage.c (coverage_begin_output): Don't overwrite .gcno file
1959 during -fcompare-debug-second compilation.
1960
cdb88468
ILT
19612009-06-07 Ian Lance Taylor <iant@google.com>
1962
c637b0fa 1963 * dwarf2.h (enum dwarf_location_atom): Add INTERNAL_DW_OP_tls_addr.
cdb88468
ILT
1964 * dwarf2out.c (INTERNAL_DW_OP_tls_addr): Don't #define.
1965
1966 * c-common.c (c_do_switch_warnings): Don't exit early for -Wswitch
1967 with no default node. Change warning with %H to warning_at.
1968 Don't clear warn_switch around case checking.
1969 * doc/invoke.texi (Warning Options): Clarify distinction between
1970 -Wswitch and -Wswitch-enum.
1971
4fe8e1a2
BRF
19722009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1973
1974 * tree-pass.h (TODO_update_ssa_any): Document internal use only.
1975
69952c1d
BRF
19762009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1977
1978 * gbl-ctors.h: Add header guard.
1979
b2ad0284
BRF
19802009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1981
1982 * tree-flow.h (make_value_handle, set_value_handle, sort_vuses,
1983 sort_vuses_heap, vn_lookup_or_add, vn_lookup_or_add_with_stmt,
1984 vn_lookup_or_add_with_vuses, vn_add, vn_add_with_vuses,
1985 vn_lookup_with_stmt, vn_lookup, vn_lookup_with_vuses): Remove
1986 prototypes for removed functions.
1987 (expressions_equal_p): Move to ...
1988 * tree-ssa-sccvn.h: ... here and ...
1989 * matrix-reorg.c: ... adjust includes.
1990
c3df55f9
BRF
19912009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1992
1993 * ipa-struct-reorg.c (do_reorg_1): Fix whitespace in dump output.
1994
b5a7159f
BRF
19952009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
1996
1997 * c-decl.c (finish_decl): Use bool for variable was_incomplete.
1998 (finish_function): Remove erroneous whitespace.
1999
95bca6b0
BRF
20002009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2001
2cd713a0
BRF
2002 * tree-cfg.c (gimple_merge_blocks): Commentary typo fix.
2003 (verify_stmts): Print statement who's gimple_bb is set to a wrong BB
249eb506
BRF
2004
20052009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2006
2007 * errors.c (internal_error): Commentary typo fix.
2008 * gimple-iterator.c (gsi_insert_seq_on_edge): Ditto.
2009 * tree-ssa-pre.c: Ditto.
95bca6b0 2010
2cd713a0
BRF
20112009-06-07 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2012
2013 * basic-block.h (ENTRY_BLOCK, EXIT_BLOCK): Document that neither of
2014 them is supposed to hold actual statements.
2015
5bca4e80
ILT
20162009-06-06 Ian Lance Taylor <iant@google.com>
2017
2018 * doc/extend.texi (Attribute Syntax): Document that C++ labels on
2019 empty statements can now have attributes.
2020
47ac44d6
SZ
20212009-06-05 Shujing Zhao <pearly.zhao@oracle.com>
2022
2023 * config/mips/mips.c: Use REG_P and CONST_INT_P where applicable.
2024 * config/mips/mips.md: Ditto.
2025
19b905ce
NF
20262009-06-05 Nathan Froyd <froydnj@codesourcery.com>
2027
2028 * config/rs6000/eabi.asm (__eabi_convert): Don't define if
2029 _RELOCATABLE.
2030 (__eabi_uconvert): Likewise.
2031
16702e19
NF
20322009-06-05 Nathan Froyd <froydnj@codesourcery.com>
2033
2034 * config/rs6000/ppc-asm.h: Protect auto-host.h inclusion and
2035 CFI_* definitions with IN_GCC.
2036
a735afd1
DE
20372009-06-05 David Edelsohn <edelsohn@gnu.org>
2038
2039 * xcoffout.h (xcoffout_source_line): Update prototype.
2040
26a347c5
KG
20412009-06-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2042
2043 * builtins.c (do_mpc_ckconv, do_mpc_arg1): Use
2044 mpc_realref/mpc_imagref instead of MPC_RE/MPC_IM.
2045
9f706f23
JJ
20462009-06-05 Jakub Jelinek <jakub@redhat.com>
2047
2048 PR middle-end/40340
2049 * tree-ssa-live.c (remove_unused_scope_block_p): Don't prune
2050 inlined_function_outer_scope_p blocks for artificial inlines
2051 even at -g0/-g1.
2052 * tree.c (tree_nonartificial_location): Rewrite using
2053 block_nonartificial_location.
2054
8f439681
RE
20552009-06-05 Revital Eres <eres@il.ibm.com>
2056 Leehod Baruch <leehod@il.ibm.com>
2057
2058 * expr.c (expand_assignment): Expand MISALIGNED_INDIRECT_REF.
2059 (expand_expr_real_1): Remove comment.
2060 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
2061 Vectorize misaligned access when the target supports it.
c637b0fa 2062 (vect_supportable_dr_alignment): Check for unaligned access support.
8f439681
RE
2063 * tree-vect-stmts.c (vectorizable_store): Generate misaligned store
2064 and remove asset.
2065
b89f8e3c
JB
20662009-06-05 Julian Brown <julian@codesourcery.com>
2067
2068 * config/arm/ieee754-df.S (cmpdf2): Avoid writing below SP.
2069 * config/arm/ieee754-sf.S (cmpsf2): Likewise.
2070
47d1f191
RG
20712009-06-05 Richard Guenther <rguenther@suse.de>
2072
2073 PR bootstrap/40350
2074 * dwarf2out.c (dwarf2out_begin_function): Mark discriminator
2075 as possibly unused.
2076
9f706f23 20772009-06-05 Jakub Jelinek <jakub@redhat.com>
75707b28
JJ
2078
2079 * config/s390/s390.c (global_not_special_regno_p): New static inline.
2080 (save_gprs): Don't tell unwinder when a global register is saved.
2081 (s390_emit_epilogue): Emit needed epilogue unwind info.
2082
90f06248
AO
20832009-06-05 Alexandre Oliva <aoliva@redhat.com>
2084
2085 * dwarf2out.c (deferred_asm_name): New.
2086 (add_name_and_src_coords_attributes): Defer creation of
2087 DW_AT_MIPS_linkage_name attribute if DECL_ASSEMBLER_NAME was not
2088 computed yet.
2089 (move_linkage_attr): New.
2090 (dwarf2out_finish): Revisit deferrals and emit attributes at the
2091 right place.
2092
c10348e5
AO
20932009-06-05 Alexandre Oliva <aoliva@redhat.com>
2094
2095 * tree-nested.c (finalize_nesting_tree_1): Declare the
2096 frame_decl in the binding tree.
2097
6c52e687
CC
20982009-06-04 Cary Coutant <ccoutant@google.com>
2099
2100 * basic-block.h (struct basic_block_def): Add discriminator field.
2101 * dbxout.c (dbxout_source_line): Add new parameter. Change all
2102 callers.
2103 * debug.c (do_nothing_debug_hooks): Add additional entry.
2104 (debug_nothing_int_charstar_int): New function.
c637b0fa 2105 * debug.h (struct gcc_debug_hooks): Add parameter to source_line hook.
6c52e687
CC
2106 (debug_nothing_int_charstar_int): New declaration.
2107 * dwarf2out.c (dwarf2out_source_line): Add new parameter. Write
2108 discriminator value in .loc directive.
2109 * final.c (last_discriminator): New variable.
2110 (discriminator): New variable.
2111 (final_start_function): Initialize above variables, pass current
2112 discriminator to debug hook.
2113 (notice_source_line): Check for discriminator change.
2114 * gimple-pretty-print.c (dump_bb_header): Print discriminator value.
2115 * sdbout.c (sdbout_source_line): New parameter.
2116 * tree-cfg.c (struct locus_discrim_map): New structure type.
2117 (discriminator_per_locus): New hash table.
2118 (build_gimple_cfg): Allocate and free discriminator hash table.
2119 (make_edges): Call assign_discriminator.
2120 (locus_map_hash): New function.
2121 (locus_map_eq): New function.
2122 (next_discriminator_for_locus): New function.
2123 (same_line_p): New function.
2124 (assign_discriminator): New function.
2125 (make_cond_expr_edges): Call assign_discriminator.
2126 (make_gimple_switch_edges): Likewise.
2127 (first_non_label_stmt): New function.
2128 * vmsdbgout.c (vmsdbgout_source_line): Add new parameter. Change
2129 all callers.
2130 * xcoffout.c (xcoffout_source_line): Add new parameter.
2131
2132 * configure.ac (gcc_cv_as_discriminator): New configury check for
2133 gas support for discriminator.
2134 * configure: Regenerate.
2135 * config.in: Regenerate.
2136
e07e020b
RR
21372009-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2138
2139 * config/arm/arm.c (thumb2_legitimate_index_p): Initialize
2140 val after checking for integers.
2141
72fa3605
UB
21422009-06-04 Uros Bizjak <ubizjak@gmail.com>
2143
2144 * config/i386/i386.h (X86_64_MS_REGPARM_MAX): Rename from
2145 X64_REGPARM_MAX.
2146 (REGPARM_MAX): Use X86_64_MS_REGPARM_MAX.
2147 (X86_64_MS_SSE_REGPARM_MAX): Rename from X64_SSE_REGPARM_MAX.
2148 (SSE_REGPARM_MAX): Use X86_64_MS_SSE_REGPARM_MAX.
2149 * config/i386/i386.c: Use X86_64_MS_REGPARM_MAX instead of
2150 X64_REGPARM_MAX. Use X86_64_MS_SSE_REGPARM_MAX instead of
2151 X64_SSE_REGPARM_MAX.
2152 * config/i386/i386.md: Use X86_64_MS_SSE_REGPARM_MAX instead of
2153 X64_SSE_REGPARM_MAX.
2154
bdde878c
AO
21552009-06-04 Alexandre Oliva <aoliva@redhat.com>
2156
2157 * gcc.c (report_times_to_file): New.
2158 (execute): Implement it.
2159 (process_command): Support -time=.
2160 * doc/invoke.texi: Document it.
2161
2ce59df7
AO
21622009-06-04 Alexandre Oliva <aoliva@redhat.com>
2163
2164 * tree-ssa-live.c (remove_unused_scope_block_p): Keep variables
2165 that have value exprs.
2166
78bd9046
AO
21672009-06-04 Alexandre Oliva <aoliva@redhat.com>
2168
2169 * dwarf2asm.c (dw2_force_const_mem): Defer creation of
2170 declarations for constants until...
2171 (dw2_output_indirect_constant_1): ... this point.
2172
e63d4106
RE
21732009-06-04 Richard Earnshaw <rearnsha@arm.com>
2174
2175 PR target/10242
2176 * arm.md (arm_addsi3): Don't try to split an add with an
2177 eliminable register until after reload has completed.
2178
6bc7bc14
ILT
21792009-06-03 Ian Lance Taylor <iant@google.com>
2180
2181 * dummy-checksum.c (executable_checksum): Use EXPORTED_CONST.
2182 * genattrtab.c (write_length_unit_log): Likewise.
2183 * genchecksum.c (dosum): Likewise.
2184 * gengtype.c (write_rtx_next): Likewise.
2185 (finish_root_table, write_roots): Likewise.
2186 * gimple.c (gimple_ops_offset_): Likewise.
2187 * tree-nomudflap.c (gt_ggc_r_gt_tree_mudflap_h): Likewise.
2188 * config/arc/arc.c (arc_attribute_table): Likewise.
2189 * config/arm/arm.c (arm_attribute_table): Likewise.
2190 * config/avr/avr.c (avr_attribute_table): Likewise.
2191 * config/crx/crx.c (crx_attribute_table): Likewise.
2192 * config/m32r/m32r.c (m32r_attribute_table): Likewise.
2193 * config/m68hc11/m68hc11.c (m68hc11_attribute_table): Likewise.
2194 * config/mcore/mcore.c (mcore_attribute_table): Likewise.
2195 * config/rs6000/rs6000.c (rs6000_attribute_table): Likewise.
2196 * config/sh/sh.c (sh_attribute_table): Likewise.
2197 * config/sparc/sparc.c (sparc_attribute_table): Likewise.
2198 * config/spu/spu.c (spu_attribute_table): Likewise.
2199 * config/v850/v850.c (v850_attribute_table): Likewise.
2200
2201 * config/alpha/alpha.c (vms_attribute_table): Make static.
2202 * config/bfin/bfin.c (bfin_attribute_table): Likewise.
2203 * config/h8300/h8300.c (h8300_attribute_table): Likewise.
2204 * config/mips/mips.c (mips_attribute_table): Likewise.
2205
2206 * Makefile.in (dummy-checksum.o): Depend upon $(CONFIG_H) and
2207 $(SYSTEM_H).
2208 (cc1-checksum.o): Likewise.
2209
19d892fd
SE
22102009-06-03 Steve Ellcey <sje@cup.hp.com>
2211
2212 * config/ia64/vect.md (*movv2sf_internal): Handle big endian case.
2213
679f3354
JJ
22142009-06-03 Jakub Jelinek <jakub@redhat.com>
2215
ff35822b
JJ
2216 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Return generated
2217 insn if it is changing sp. Use gen_add3_insn instead of
2218 conditionally gen_addsi3 and gen_adddi3.
2219 (offset_below_red_zone_p): New static inline function.
2220 (rs6000_emit_epilogue): Emit needed epilogue unwind info.
2221 Use gen_add3_insn instead of conditionally gen_addsi3 and gen_adddi3.
2222 * config/rs6000/ppc-asm.h: Include auto-host.h.
2223 (CFI_STARTPROC, CFI_ENDPROC, CFI_DEF_CFA_REGISTER, CFI_OFFSET,
2224 CFI_RESTORE): Define.
2225 * config/rs6000/crtresxgpr.asm: Add unwind info.
2226 * config/rs6000/crtresxfpr.asm: Likewise.
2227 * config/rs6000/crtresgpr.asm: Likewise.
2228 * config/rs6000/crtresfpr.asm: Likewise.
2229 * config/rs6000/crtsavgpr.asm: Likewise.
2230 * config/rs6000/crtsavfpr.asm: Likewise.
2231
dc6707b8
UB
2232 * dwarf2out.c (output_cfi_directive): Pass 1 instead of 0 to second
2233 argument of DWARF2_FRAME_REG_OUT macros.
679f3354 2234
2e94c12d
JB
22352009-06-03 Julian Brown <julian@codesourcery.com>
2236
2237 * config/arm/arm.c (arm_hard_regno_mode_ok): Permit values of four
2238 words or less (including TImode) in core registers.
2239
3111cce0
RG
22402009-06-03 Richard Guenther <rguenther@suse.de>
2241
2242 PR middle-end/40328
2243 * fold-const.c (fold_convert): Fold the build COMPLEX_EXPR.
2244
5e1b50f6
AB
22452009-06-03 Andrey Belevantsev <abel@ispras.ru>
2246
2247 * statistics.c (statistics_counter_event): Do not record event
2248 in pass dump if its number == -1.
2249 (curr_statistics_hash): Add assert that we never get passes
2250 with static number == -1.
2251
6f11d690
RG
22522009-06-03 Richard Guenther <rguenther@suse.de>
2253 Andrey Belevantsev <abel@ispras.ru>
2254
2255 * cfgexpand.c (discover_nonconstant_array_refs_r): Make only
2256 non-BLKmode arrays addressable.
2257
88961471
MK
22582009-06-03 Maxim Kuvyrkov <maxim@codesourcery.com>
2259
2260 * config/m68k/linux.h (HAVE_GAS_BALIGN_AND_P2ALIGN): Move to ...
2261 * config/m68k/m68k.h: ... here.
2262 * testsuite/gcc.dg/falign-labels.c (dg-options): Don't restrict for
2263 m68k and fido.
2264
9961eb45
MJ
22652009-06-03 Martin Jambor <mjambor@suse.cz>
2266
2267 PR tree-optimization/40323
2268 * ipa-prop.c (get_ssa_def_if_simple_copy): Break if not single
2269 assignment.
2270
2f2c62a0
RG
22712009-06-03 Richard Guenther <rguenther@suse.de>
2272
2273 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
2274 consistently.
2275
d6ced3b7
SZ
22762009-06-03 Shujing Zhao <pearly.zhao@oracle.com>
2277
2278 * config/sh/predicates.md: Use REG_P, MEM_P, CONST_INT_P, LABEL_P,
2279 JUMP_P, CALL_P, NONJUMP_INSN_P, NOTE_P, BARRIER_P and
2280 JUMP_TABLE_DATA_P where applicable.
2281 * config/sh/sh.c: Ditto.
2282 * config/sh/sh.h: Ditto.
2283 * config/sh/sh.md: Ditto.
2284 * config/sh/symbian.c: Ditto.
2285
f3afc8a7
UB
22862009-06-03 Uros Bizjak <ubizjak@gmail.com>
2287
2288 * config/i386/driver-i386.c (describe_cache): Optimize
2289 concatenation of strings. Use snprintf instead of sprintf.
2290 (host_detect_local_cpu): Ditto. Ignore -march and -mtune for native
2291 target when not compiling with GCC.
2292
1964788a
KK
22932009-06-02 Kaz Kojima <kkojima@gcc.gnu.org>
2294
2295 * config/sh/sh.c: Revert last change.
2296 (sh_expand_epilogue): Emit a blockage insn before the frame
2297 pointer adjustment unconditionally.
2298
8633c315
RS
22992009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2300
2301 * config/pa/pa-hpux.h (LINK_SPEC): Remove "%<fwhole-program".
2302 * config/pa/pa-hpux10.h (LINK_SPEC): Likewise.
2303 * config/pa/pa-hpux11.h (LINK_SPEC): Likewise.
2304 * gcc.c (set_collect_gcc_options): Don't add -fwhole-program
2305 to COLLECT_GCC_OPTIONS.
2306
781a1758
RS
23072009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2308
2309 * collect2.c (target_system_root): New variable.
2310 (main): Handle --sysroot=.
2311 (ignore_library): Strip the sysroot from the library path.
2312
dfb636dc
RS
23132009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2314
2315 * Makefile.in (COLLECT2_OBJS): Add collect2-aix.o.
2316 (collect2.o): Depend on collect2-aix.h.
2317 (collect2-aix.o): New rule.
2318 * collect2-aix.h: New file.
2319 * collect2-aix.c: Likewise.
2320 * collect2.c: Include collect2-aix.h. Don't undefine
2321 OBJECT_FORMAT_COFF if CROSS_AIX_SUPPORT is defined.
2322 Guard native includes with #ifndef CROSS_DIRECTORY_STRUCTURE.
2323 Use TARGET_AIX_VERSION instead of _AIX51.
2324 * config/rs6000/aix43.h (TARGET_AIX_VERSION): Define.
2325 * config/rs6000/aix51.h (TARGET_AIX_VERSION): Likewise.
2326 * config/rs6000/aix52.h (TARGET_AIX_VERSION): Likewise.
2327 * config/rs6000/aix53.h (TARGET_AIX_VERSION): Likewise.
2328 * config/rs6000/aix61.h (TARGET_AIX_VERSION): Likewise.
2329
51136ae8
RS
23302009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2331
2332 * collect2.c (ignore_library): Avoid premature post-increment
2333 and null deference.
2334
7f142d33
RS
23352009-06-02 Richard Sandiford <r.sandiford@uk.ibm.com>
2336
2337 * Makefile.in (libgcc.mvars): Add TARGET_SYSTEM_ROOT.
2338 * config/rs6000/aix.h (LINK_SYSCALLS_SPEC): Add %R to the
2339 !CROSS_DIRECTORY_STRUCTURE alternative and use it for
2340 CROSS_DIRECTORY_STRUCTURE too.
2341 (LINK_LIBG_SPEC): Likewise.
2342 (LIB_SPEC): Add %R to sysroot paths.
2343 * config/rs6000/aix43.h (CPP_SPEC): Add %R to sysroot paths.
2344 (CPLUSPLUS_CPP_SPEC, LIB_SPEC): Likewise.
2345 * config/rs6000/aix51.h: As for aix43.h.
2346 * config/rs6000/aix52.h: Likewise.
2347 * config/rs6000/aix53.h: Likewise.
2348 * config/rs6000/aix61.h: Likewise.
2349 * config/rs6000/t-aix52 (SHLIB_LINK): Add $(TARGET_SYSTEM_ROOT)
2350 to the beginning of sysroot paths.
2351
9e74b7d2
AO
23522009-06-02 Alexandre Oliva <aoliva@redhat.com>
2353
2354 * print_rtl (print_rtx): Don't print modes in EXPR_LISTs and
2355 INSN_LISTs that are out of the REG_NOTE range.
2356
a9f6ecee
AO
23572009-06-02 Alexandre Oliva <aoliva@redhat.com>
2358
2359 * loop-unroll.c (struct iv_to_split): Add pointer to next.
2360 (struct var_to_expand): Likewise.
2361 (struct opt_info): Add head and tail for linked lists of the above.
2362 (analyze_insn_to_expand_var): Initialize next.
2363 (analyze_iv_to_split_insn): Likewise.
2364 (analyze_insns_in_loop): Create linked lists.
2365 (allocate_basic_variable): Simplify for use without hash table.
2366 (insert_var_expansion_initialization): Likewise, make it type-safer.
2367 (combine_var_copies_in_loop_exit): Likewise.
2368 (apply_opt_in_copies): Walk lists rather than hash tables.
2369 (release_var_copies): Simplified and inlined by hand into...
2370 (free_opt_info): ... this function.
2371
69596c69
RG
23722009-06-02 Richard Guenther <rguenther@suse.de>
2373
2374 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use DECL_SIZE
2375 for field decls.
2376
fe8a7779
AO
23772009-06-02 Alexandre Oliva <aoliva@redhat.com>
2378
2379 * cfgexpand.c (gimple_expand_cfg): Discard the source location
2380 only for builtins that are not overridden.
2381
1bcca2c5
AO
23822009-06-02 Alexandre Oliva <aoliva@redhat.com>
2383
2384 * gengtype.c (adjust_field_rtx_def): Add NOTE_INSN_DELETED_LABEL's
2385 label string.
2386
8588f797
AO
23872009-06-02 Alexandre Oliva <aoliva@redhat.com>
2388
2389 * df-core.c (df_ref_debug): Honor -fdump-noaddr.
2390
45f39d78
AO
23912009-06-02 Alexandre Oliva <aoliva@redhat.com>
2392
2393 * combine.c (move_deaths): Compare LUIDs within the same BB only.
2394
2aa7c49b
AO
23952009-06-02 Alexandre Oliva <aoliva@redhat.com>
2396
2397 * common.opt (fdump-unnumbered-links): New.
2398 * doc/invoke.texi (-fdump-unnumbered-links): Document it.
2399 * print-rtl.c (flag_dump_unnumbered_links): New.
2400 (print_rtx): Test it.
2401
55b2829b
RE
24022009-06-02 Richard Earnshaw <rearnsha@arm.com>
2403
2404 * arm.c (arm_get_frame_offsets): Prefer using r3 for padding a
2405 push/pop multiple to 8-byte alignment.
e63d4106 2406
6c0d7021
JJ
24072009-06-01 Jakub Jelinek <jakub@redhat.com>
2408
0aa34d44
JJ
2409 * config/i386/i386.c (queued_cfa_restores): New static variable.
2410 (ix86_add_cfa_restore_note, ix86_add_queued_cfa_restore_notes): New
2411 functions.
2412 (pro_epilogue_adjust_stack): Call ix86_add_queued_cfa_restore_notes.
2413 (ix86_emit_restore_reg_using_pop): Add RED_OFFSET argument.
2414 Set RTX_FRAME_RELATED_P immediately after adding a REG_CFA_* note.
2415 Call ix86_add_cfa_restore_note instead of adding REG_CFA_OFFSET
2416 note unconditionally.
2417 (ix86_emit_restore_regs_using_mov): Likewise.
2418 (ix86_emit_restore_sse_regs_using_mov): Likewise.
2419 (ix86_emit_restore_regs_using_pop): Add RED_OFFSET argument, pass
2420 it through to ix86_emit_restore_reg_using_pop.
2421 (ix86_emit_leave): Add RED_OFFSET argument. Call
2422 ix86_add_queued_cfa_restore_notes. Call ix86_add_cfa_restore_note
2423 instead of adding REG_CFA_OFFSET note unconditionally.
2424 (ix86_expand_epilogue): Compute RED_OFFSET, pass it down to
2425 the above functions. Call ix86_add_queued_cfa_restore_notes when
2426 needed.
2427
2428 * dwarf2out.c (dwarf2out_cfi_label): Add FORCE argument, if true,
2429 force output of the label even for dwarf2out_do_cfi_asm.
2430 (add_fde_cfi): If -g2 and above and cfi might change CFA,
2431 force creation of CFI label and chain DW_CFA_set_loc jumping to it
2432 for convert_cfa_to_fb_loc_list. Adjust other dwarf2out_cfi_label
2433 caller.
2434 (dwarf2out_stack_adjust, dwarf2out_frame_debug,
2435 dwarf2out_begin_epilogue, dwarf2out_frame_debug_restore_state): Adjust
2436 dwarf2out_cfi_label callers.
2437 * tree.h (dwarf2out_cfi_label): Adjust prototype.
2438 * config/arm/arm.c (thumb_pushpop, thumb1_output_function_prologue):
2439 Adjust dwarf2out_cfi_label callers.
2440 * config/vax/vax.c (vax_output_function_prologue): Likewise.
2441
604a6be9
JJ
2442 * config/i386/i386.h (struct machine_cfa_state,
2443 struct machine_function): Guard with ifndef USED_FOR_TARGET
2444 instead of not IN_LIBGCC2 and not in IN_TARGET_LIBS.
2445
df0026a7
JJ
2446 PR other/40024
2447 * emutls.c (__emutls_get_address): Change arr->size to mean number
2448 of allocated arr->data entries instead of # of slots + 1.
2449
6c0d7021
JJ
2450 PR middle-end/40316
2451 * recog.c (peep2_reinit_state): New function.
2452 (peephole2_init_state): Use it at the end of a basic block and also
2453 when seeing a RTX_FRAME_RELATED_P insn.
2454
49df2fb8
SE
24552009-06-01 Steve Ellcey <sje@cup.hp.com>
2456
2457 * ia64.md (floatdirf2, fix_truncrfdi, floatunsdirf,
2458 fixuns_truncrfdi2): New.
2459 (fix_truncxfdi2_alts, fixuns_truncxfdi2_alts,
2460 *nmaddsf4_alts, *nmadddf4_alts, *nmadddf4_truncsf_alts,
2461 *mulxf3_alts, *mulxf3_truncsf_alts, *mulxf3_truncdf_alts,
2462 *maddxf4_alts, *maddxf4_alts_truncsf, *maddxf4_alts_truncdf,
2463 *nmaddxf4_alts, *nmaddxf4_truncsf_alts, *nmaddxf4_truncdf_alts,
2464 *recip_approx): Remove.
2465 (divsi3 modsi3, udivsi3, umodsi3, divsi3_internal, divdi3,
2466 moddi3, udivdi3, umoddi3, divdi3_internal_lat, divdi3_internal_thr,
2467 divsf3, sqrtsf2, divdf3, sqrtdf2, divxf3, sqrtxf2): Modify and
2468 move to div.md.
2469 * div.md (fix_truncrfdi2_alts, fixuns_truncrfdi2_alt,
2470 setf_exp_rf): New.
2471
67165eb3
ILT
24722009-06-01 Ian Lance Taylor <iant@google.com>
2473
2474 * attribs.c (register_attribute): Use CONST_CAST.
2475 * collect2.c (main): Use CONST_CAST2.
2476 (scan_prog_file): Likewise.
2477 * gcc.c (process_command, main): Likewise.
2478 * toplev.c (toplev_main): Likewise.
2479
2480 * c-typeck.c (handle_warn_cast_qual): New static function,
2481 partially broken out of build_c_cast.
2482 (build_c_cast): Call handle_warn_cast_qual.
2483 * doc/invoke.texi (Warning Options): Document new effect of
2484 -Wcast-qual.
2485
e74fe492
AH
24862009-06-01 Aldy Hernandez <aldyh@redhat.com>
2487
2488 * diagnostic.c (diagnostic_build_prefix): Always print columns.
2489 (diagnostic_report_current_module): Print columns.
2490 * common.opt (flag_show_column): Enable by default.
2491
7eba2d1f
LM
24922009-06-01 Luis Machado <luisgpm@br.ibm.com>
2493
2494 * alias.c (find_base_term): Check for NULL term before returning.
2495
ee88d9aa
MK
24962009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
2497
2498 Revert due to PR40320:
ee88d9aa
MK
2499 2009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
2500 * calls.c (emit_library_call_value_1): Don't force_operand for move
2501 and push insns.
2502
324c9b02 25032009-06-01 Olivier Hainque <hainque@adacore.com>
40d0d9e4 2504 Eric Botcazou <ebotcazou@adacore.com>
324c9b02
OH
2505
2506 * tree.h (CONSTRUCTOR_BITFIELD_P): True if NODE, a FIELD_DECL, is
2507 to be processed as a bitfield for constructor output purposes.
2508 * output.h (initializer_constant_valid_for_bitfield_p): Declare
2509 new function.
2510 * varasm.c (oc_local_state): New type, output_constructor
2511 local state to support communication with helpers.
2512 (oc_outer_state): New type, output_constructor outer state of
2513 relevance in recursive calls.
2514 (output_constructor_array_range): New output_constructor helper,
2515 extracted code for an array range element.
2516 (output_constructor_regular_field): New output_constructor helper,
2517 extracted code for an element that is not a bitfield.
2518 (output_constructor_bitfield): New output_constructor helper,
2519 extracted code for a bitfield element. Accept an OUTER state
2520 argument for recursive processing. Recurse on record or array
2521 CONSTRUCTOR values, possibly past noop conversions.
62295314 2522 (initializer_constant_valid_for_bitfield_p): New predicate. Whether
324c9b02
OH
2523 VALUE is a valid constant-valued expression for use in a static
2524 bit-field initializer.
62295314
OH
2525 (output_constructor): Rework to use helpers. Accept and honor an
2526 OUTER state argument for recursive calls. Return total size. Be
324c9b02
OH
2527 prepared for nested constructors initializing bitfields.
2528 (output_constant): Feed OUTER in calls to output_constructor.
2529
0980d7fe
MK
25302009-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
2531
2532 * calls.c (emit_library_call_value_1): Don't force_operand for move
2533 and push insns.
2534
29661412
NC
25352009-06-01 Nick Clifton <nickc@redhat.com>
2536
2537 * doc/invoke.texi (IA-64 Options): Fix typo.
2538
e9dbe7bb
IR
25392009-06-01 Ira Rosen <irar@il.ibm.com>
2540
2541 PR tree-optimization/39129
2542 * tree-vect-loop-manip.c (conservative_cost_threshold): Change the
2543 printed message.
2544 (vect_do_peeling_for_loop_bound): Use
2545 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
2546 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
2547 (vect_loop_versioning): Likewise.
2548 (vect_create_cond_for_alias_checks): Fix indentation.
2549 * tree-vectorizer.h (struct _loop_vec_info): Fix indentation of the
2550 macros.
2551 (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT): Define.
2552 (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Likewise.
2553 * tree-vect-loop.c (vect_analyze_loop_form): Change "too many BBs" to
2554 "control flow in loop".
2555 (vect_estimate_min_profitable_iters): Use
2556 LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT and
2557 LOOP_REQUIRES_VERSIONING_FOR_ALIAS macros.
2558 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
2559 (vect_create_data_ref_ptr): Don't mention array dimension in printing.
2560 * tree-vect-stmts.c (vectorizable_store): Replace the check that the
2561 statement belongs to a group of strided accesses with the exact code
2562 check.
2563 (vectorizable_load): Likewise.
2564 * tree-vect-slp.c (vect_analyze_slp_instance): Spell out "basic block".
2565 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
2566
5ac69a80
GP
25672009-06-01 Gerald Pfeifer <gerald@pfeifer.com>
2568
2569 * config/freebsd-stdint.h: New file.
2570 * config.gcc (*-*-freebsd): Set use_gcc_stdint=wrap.
2571 Add freebsd-stdint.h to tm_file.
2572
54b2b460
RE
25732009-06-01 Richard Earnshaw <rearnsha@arm.com>
2574
2575 * arm/thumb2.md (thumb2_zero_extendhidi2): New insn and split.
2576 (thumb2_extendhidi2): Likewise.
2577
a7ca77cf
ILT
25782009-05-31 Ian Lance Taylor <iant@google.com>
2579
f3afc8a7 2580 * regstat.c (regstat_n_sets_and_refs): Remove duplicate definition.
c50d84e3
ILT
2581
25822009-05-31 Ian Lance Taylor <iant@google.com>
2583
f3afc8a7 2584 * Makefile.in (except.o): Depend upon gt-except.h, not gt-$(EXCEPT_H).
a7ca77cf
ILT
2585 (ipa-cp.o): Depend upon $(FIBHEAP_H) and $(PARAMS_H).
2586 (ipa-reference.o): Depend upon gt-ipa-reference.h.
2587
1aec401e
JM
25882009-05-31 Jason Merrill <jason@redhat.com>
2589
2590 * tree-pretty-print.c (print_call_name): Take the callee, not the
f3afc8a7 2591 call itself. Make non-static. Use dump_function_name for functions.
1aec401e
JM
2592 (dump_generic_node): Adjust.
2593 * diagnostic.h: Declare print_call_name.
2594 * gimple-pretty-print.c (dump_gimple_call): Use it.
2595
ed7910bb
KK
25962009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
2597
2598 * config/sh/sh.md (ashldi3_std): New define_expand.
2599 (ashldi3): Use it.
2600
47ea8d4e
KK
26012009-05-31 Kaz Kojima <kkojima@gcc.gnu.org>
2602
2603 PR target/40313
2604 * config/sh/sh.c: Include debug.h.
2605 (sh_expand_epilogue): Emit a blockage insn before the frame
2606 pointer adjustment also when dwarf2out_do_frame returns true.
2607
405e8b49
RE
26082009-05-31 Richard Earnshaw <rearnsha@arm.com>
2609
2610 * arm/thumb2.md (thumb2_extendsidi2): Add a split sub-pattern.
2611 (thumb2_extendqidi2): New pattern.
2612
71ece343
IR
26132009-05-31 Ira Rosen <irar@il.ibm.com>
2614
2615 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
2616 mark phis for renaming.
2617 * tree-vectorizer.c (vect_memsyms_to_rename): Remove.
2618 (vectorize_loops): Don't allocate and free vect_memsyms_to_rename.
2619 Call mark_sym_for_renaming.
2620 * tree-vectorizer.h (vect_memsyms_to_rename): Remove.
f3afc8a7
UB
2621 * tree-vect-loop.c (vect_transform_loop): Remove
2622 vect_memsyms_to_rename initialization and a call to
2623 mark_set_for_renaming.
71ece343 2624
b3041944
JJ
26252009-05-31 Jakub Jelinek <jakub@redhat.com>
2626
2627 PR middle-end/40304
2628 * config/i386/i386.c (pro_epilogue_adjust_stack): Mark insns
2629 frame related even if !set_cfa && style < 0.
2630
a1bda0d7
KT
26312009-05-30 Kai Tietz <kai.tietz@onevision.com>
2632
2633 * config/i386/mingw-tls.c: New file.
f3afc8a7
UB
2634 * config/i386/t-gthr-win32 (LIB2FUNCS_EXTRA): Add mingw-tls.c file.
2635 * gthr-win32.h (MINGW32_SUPPORTS_MT_EH): Define it for targets
2636 defining _WIN32 but not __CYGWIN__.
a1bda0d7 2637
acd26225
KG
26382009-05-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2639
2640 * configure.ac: Add MPC support.
2641
2642 * config.in, configure: Regenerate.
2643
cd9c1ca8
RH
26442009-05-29 Richard Henderson <rth@redhat.com>
2645
2646 * cfgcleanup.c (try_crossjump_to_edge): Only skip past
2647 NOTE_INSN_BASIC_BLOCK.
2648 * cfglayout.c (duplicate_insn_chain): Copy epilogue insn marks.
2649 Duplicate NOTE_INSN_EPILOGUE_BEG notes.
2650 * cfgrtl.c (can_delete_note_p): Allow NOTE_INSN_EPILOGUE_BEG
2651 to be deleted.
2652 * dwarf2out.c (struct cfa_loc): Change indirect field to bitfield,
2653 add in_use field.
2654 (add_cfi): Disable check redefining cfa away from drap.
2655 (lookup_cfa_1): Add remember argument; handle remember/restore.
2656 (lookup_cfa): Pass remember argument.
2657 (cfa_remember): New.
2658 (compute_barrier_args_size_1): Remove sibcall check.
2659 (dwarf2out_frame_debug_def_cfa): New.
2660 (dwarf2out_frame_debug_adjust_cfa): New.
2661 (dwarf2out_frame_debug_cfa_offset): New.
2662 (dwarf2out_frame_debug_cfa_register): New.
2663 (dwarf2out_frame_debug_cfa_restore): New.
2664 (dwarf2out_frame_debug): Handle REG_CFA_* notes.
2665 (dwarf2out_begin_epilogue): New.
2666 (dwarf2out_frame_debug_restore_state): New.
2667 (dw_cfi_oprnd1_desc): Handle DW_CFA_remember_state,
2668 DW_CFA_restore_state.
2669 (output_cfi_directive): Likewise.
2670 (convert_cfa_to_fb_loc_list): Likewise.
2671 (dw_cfi_oprnd1_desc): Handle DW_CFA_restore.
2672 * dwarf2out.h: Update.
2673 * emit-rtl.c (try_split): Don't split RTX_FRAME_RELATED_P.
2674 (copy_insn_1): Early out for null.
2675 * final.c (final_scan_insn): Call dwarf2out_begin_epilogue
2676 and dwarf2out_frame_debug_restore_state.
2677 * function.c (prologue, epilogue, sibcall_epilogue): Remove.
2678 (prologue_insn_hash, epilogue_insn_hash): New.
2679 (free_after_compilation): Adjust freeing accordingly.
2680 (record_insns): Create hash table if needed; push insns into
2681 hash instead of array.
2682 (maybe_copy_epilogue_insn): New.
2683 (contains): Search hash table instead of array.
2684 (sibcall_epilogue_contains): Remove.
2685 (thread_prologue_and_epilogue_insns): Split eh_return insns
2686 and mark them as epilogues.
2687 (reposition_prologue_and_epilogue_notes): Rewrite epilogue
2688 scanning in terms of basic blocks.
2689 * insn-notes.def (CFA_RESTORE_STATE): New.
2690 * jump.c (returnjump_p_1): Accept EH_RETURN.
2691 (eh_returnjump_p_1, eh_returnjump_p): New.
2692 * reg-notes.def (CFA_DEF_CFA, CFA_ADJUST_CFA, CFA_OFFSET,
2693 CFA_REGISTER, CFA_RESTORE): New.
2694 * rtl.def (EH_RETURN): New.
2695 * rtl.h (eh_returnjump_p, maybe_copy_epilogue_insn): Declare.
2696
2697 * config/bfin/bfin.md (UNSPEC_VOLATILE_EH_RETURN): Remove.
2698 (eh_return_internal): Use eh_return rtx; split w/ epilogue.
2699
2700 * config/i386/i386.c (gen_push): Update cfa state.
2701 (pro_epilogue_adjust_stack): Add set_cfa argument. When true,
2702 add a CFA_ADJUST_CFA note.
2703 (ix86_dwarf_handle_frame_unspec): Remove.
2704 (ix86_expand_prologue): Update cfa state.
2705 (ix86_emit_restore_reg_using_pop): New.
2706 (ix86_emit_restore_regs_using_pop): New.
2707 (ix86_emit_leave): New.
2708 (ix86_emit_restore_regs_using_mov): Add CFA_RESTORE notes.
2709 (ix86_expand_epilogue): Add notes for unwinding the epilogue.
2710 * config/i386/i386.h (struct machine_cfa_state): New.
2711 (ix86_cfa_state): New.
2712 * config/i386/i386.md (UNSPEC_EH_RETURN): Remove.
2713 (eh_return_internal): Merge from eh_return_<mode>,
2714 use eh_return rtx, split w/ epilogue.
2715
72b5577d
ILT
27162009-05-29 Ian Lance Taylor <iant@google.com>
2717
2718 * builtins.c (validate_gimple_arglist): Don't use va_arg with
2719 enum type.
2720 * calls.c (emit_library_call_value_1): Likewise.
2721
2722 * c-typeck.c (c_build_va_arg): New function.
2723 * c-tree.h (c_build_va_arg): Declare.
2724 * c-parser.c (c_parser_postfix_expression): Call c_build_va_arg
2725 instead of build_va_arg.
2726
7a2faca1
EB
27272009-05-29 Eric Botcazou <ebotcazou@adacore.com>
2728
2729 * tree-ssa-loop-ivopts.c (strip_offset_1) <MULT_EXPR>: New case.
2730 (force_expr_to_var_cost) <NEGATE_EXPR>: Likewise.
2731 (ptr_difference_cost): Use affine combinations to compute it.
2732 (difference_cost): Likewise.
2733 (get_computation_cost_at): Compute more accurate cost for addresses
2734 if the ratio is a multiplier allowed in addresses.
2735 For non-addresses, consider that an additional offset or symbol is
2736 added only once.
2737
725fd454
JJ
27382009-05-29 Jakub Jelinek <jakub@redhat.com>
2739
a0987204
JJ
2740 * config/i386/i386.c (ix86_decompose_address): Avoid useless
2741 0 displacement. Add 0 displacement if base is %[er]bp or %r13.
2742
725fd454
JJ
2743 * config/i386/i386.md (prefix_data16, prefix_rep): Set to 0 for
2744 TYPE_SSE{MULADD,4ARG,IADD1,CVT1} by default.
2745 (prefix_rex): For UNIT_MMX don't imply the prefix by default
2746 if MODE_DI.
2747 (prefix_extra): Default to 2 for TYPE_SSE{MULADD,4ARG} and
2748 to 1 for TYPE_SSE{IADD1,CVT1}.
2749 (prefix_vex_imm8): Removed.
2750 (length_vex): Only pass 1 as second argument to
2751 ix86_attr_length_vex_default if prefix_extra is 0.
2752 (modrm): For TYPE_INCDEC only set to 0 if not TARGET_64BIT.
2753 (length): For prefix vex computation use length_immediate
2754 attribute instead of prefix_vex_imm8.
2755 (cmpqi_ext_3_insn, cmpqi_ext_3_insn_rex64,
2756 addqi_ext_1, addqi_ext_1_rex64, *testqi_ext_0, andqi_ext_0,
2757 *andqi_ext_0_cc, *iorqi_ext_0, *xorqi_ext_0, *xorqi_cc_ext_1,
2758 *xorqi_cc_ext_1_rex64): Override modrm attribute to 1.
2759 (extendsidi2_rex64, extendhidi2, extendqidi2, extendhisi2,
2760 *extendhisi2_zext, extendqihi2, extendqisi2, *extendqisi2_zext): Emit
2761 a space in between the operands.
2762 (*anddi_1_rex64, *andsi_1): Likewise. Override prefix_rex to 1
2763 if one operand is 0xff and the other one si, di, bp or sp.
2764 (*andhi_1): Override prefix_rex to 1 if one operand is 0xff and the
2765 other one si, di, bp or sp.
2766 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Add mode attribute.
2767 (*ffssi_1, *ffsdi_1, ctzsi2, ctzdi2): Add
2768 type and mode attributes.
2769 (*bsr, *bsr_rex64, *bsrhi): Add type attribute.
2770 (*cmpfp_i_mixed, *cmpfp_iu_mixed): For TYPE_SSECOMI, clear
2771 prefix_rep attribute and set prefix_data16 attribute iff MODE_DF.
2772 (*cmpfp_i_sse, *cmpfp_iu_sse): Clear prefix_rep attribute and set
2773 prefix_data16 attribute iff MODE_DF.
2774 (*movsi_1): For TYPE_SSEMOV MODE_SI set prefix_data16 attribute.
2775 (fix_trunc<mode>di_sse): Set prefix_rex attribute.
2776 (*adddi_4_rex64, *addsi_4): Use const128_operand instead of
2777 constm128_operand in length_immediate computation.
2778 (*addhi_4): Likewise. Fix mode attribute to MODE_HI.
2779 (anddi_1_rex64): Use movzbl/movzwl instead of movzbq/movzwq.
2780 (*avx_ashlti3, sse2_ashlti3, *avx_lshrti3, sse2_lshrti3): Set
2781 length_immediate attribute to 1.
2782 (x86_fnstsw_1, x86_fnstcw_1, x86_fldcw_1): Fix length attribute.
2783 (*movdi_1_rex64): Override prefix_rex or prefix_data16 attributes
2784 for certain alternatives.
2785 (*movdf_nointeger, *movdf_integer_rex64, *movdf_integer): Override
2786 prefix_data16 attribute if MODE_V1DF.
2787 (*avx_setcc<mode>, *sse_setcc<mode>, *sse5_setcc<mode>): Set
2788 length_immediate to 1.
2789 (set_got_rex64, set_rip_rex64): Remove length attribute, set
2790 length_address to 4, set mode attribute to MODE_DI.
2791 (set_got_offset_rex64): Likewise. Set length_immediate to 0.
2792 (fxam<mode>2_i387): Set length attribute to 4.
2793 (*prefetch_sse, *prefetch_sse_rex, *prefetch_3dnow,
2794 *prefetch_3dnow_rex): Override length_address attribute.
2795 (sse4_2_crc32<mode>): Override prefix_data16 and prefix_rex
2796 attributes.
2797 * config/i386/predicates.md (ext_QIreg_nomode_operand): New predicate.
2798 (constm128_operand): Removed.
2799 * config/i386/i386.c (memory_address_length): For
2800 disp && !index && !base in 64-bit mode account for SIB byte if
2801 print_operand_address can't optimize disp32 into disp32(%rip)
2802 and UNSPEC doesn't imply (%rip) addressing. Add 1 to length
2803 for fs: or gs: segment.
2804 (ix86_attr_length_immediate_default): When checking if shortform
2805 is possible, truncate immediate to the length of the non-shortened
2806 immediate.
2807 (ix86_attr_length_address_default): Ignore MEM_P operands
2808 with X constraint.
2809 (ix86_attr_length_vex_default): Only check for DImode on
2810 GENERAL_REG_P operands.
2811 * config/i386/sse.md (<sse>_comi, <sse>_ucomi): Clear
2812 prefix_rep attribute, set prefix_data16 attribute iff MODE_DF.
2813 (sse_cvttps2pi): Clear prefix_rep attribute.
2814 (sse2_cvttps2dq, *sse2_cvtpd2dq, sse2_cvtps2pd): Clear prefix_data16
2815 attribute.
2816 (*sse2_cvttpd2dq): Don't clear prefix_rep attribute.
2817 (*avx_ashr<mode>3, ashr<mode>3, *avx_lshr<mode>3, lshr<mode>3,
2818 *avx_ashl<mode>3, ashl<mode>3): Set length_immediate attribute to 1
2819 iff operand 2 is const_int_operand.
2820 (*vec_dupv4si, avx_shufpd256_1, *avx_shufpd_<mode>,
2821 sse2_shufpd_<mode>): Set length_immediate attribute to 1.
2822 (sse2_pshufd_1): Likewise. Set prefix attribute to maybe_vex
2823 instead of vex.
2824 (sse2_pshuflw_1, sse2_pshufhw_1): Set length_immediate to 1 and clear
2825 prefix_data16.
2826 (sse2_unpckhpd, sse2_unpcklpd, sse2_storehpd, *vec_concatv2df): Set
2827 prefix_data16 attribute for movlpd and movhpd instructions.
2828 (sse2_loadhpd, sse2_loadlpd, sse2_movsd): Likewise. Override
2829 length_immediate for shufpd instruction.
2830 (sse2_movntsi, sse3_lddqu): Clear prefix_data16 attribute.
2831 (avx_cmpp<avxmodesuffixf2c><mode>3,
2832 avx_cmps<ssemodesuffixf2c><mode>3, *avx_maskcmp<mode>3,
2833 <sse>_maskcmp<mode>3, <sse>_vmmaskcmp<mode>3,
2834 avx_shufps256_1, *avx_shufps_<mode>, sse_shufps_<mode>,
f3afc8a7 2835 *vec_dupv4sf_avx, *vec_dupv4sf): Set length_immediate attribute to 1.
725fd454
JJ
2836 (*avx_cvtsi2ssq, *avx_cvtsi2sdq): Set length_vex attribute to 4.
2837 (sse_cvtsi2ssq, sse2_cvtsi2sdq): Set prefix_rex attribute to 1.
2838 (sse2_cvtpi2pd, sse_loadlps, sse2_storelpd): Override
2839 prefix_data16 attribute for the first alternative to 1.
2840 (*avx_loadlps): Override length_immediate for the first alternative.
2841 (*vec_concatv2sf_avx): Override length_immediate and prefix_extra
2842 attributes for second alternative.
2843 (*vec_concatv2sf_sse4_1): Override length_immediate and
2844 prefix_data16 attributes for second alternative.
2845 (*vec_setv4sf_avx, *avx_insertps, vec_extract_lo_<mode>,
2846 vec_extract_hi_<mode>, vec_extract_lo_v16hi,
2847 vec_extract_hi_v16hi, vec_extract_lo_v32qi,
2848 vec_extract_hi_v32qi): Set prefix_extra and length_immediate to 1.
2849 (*vec_setv4sf_sse4_1, sse4_1_insertps, *sse4_1_extractps): Set
2850 prefix_data16 and length_immediate to 1.
2851 (*avx_mulv2siv2di3, *avx_mulv4si3, sse4_2_gtv2di3): Set prefix_extra
2852 to 1.
2853 (*avx_<code><mode>3, *avx_eq<mode>3, *avx_gt<mode>3): Set
f3afc8a7 2854 prefix_extra attribute for variants that don't have 0f prefix alone.
725fd454
JJ
2855 (*avx_pinsr<ssevecsize>): Likewise. Set length_immediate to 1.
2856 (*sse4_1_pinsrb, *sse2_pinsrw, *sse4_1_pinsrd, *sse4_1_pextrb,
2857 *sse4_1_pextrb_memory, *sse2_pextrw, *sse4_1_pextrw_memory,
2858 *sse4_1_pextrd): Set length_immediate to 1.
2859 (*sse4_1_pinsrd): Likewise. Set prefix_extra to 1.
2860 (*sse4_1_pinsrq, *sse4_1_pextrq): Set prefix_rex and length_immediate
2861 to 1.
2862 (*vec_extractv2di_1_rex64_avx, *vec_extractv2di_1_rex64,
2863 *vec_extractv2di_1_avx, *vec_extractv2di_1_sse2): Override
2864 length_immediate to 1 for second alternative.
2865 (*vec_concatv2si_avx, *vec_concatv2di_rex64_avx): Override
2866 prefix_extra and length_immediate attributes for the first
2867 alternative.
2868 (vec_concatv2si_sse4_1): Override length_immediate to 1 for the
2869 first alternative.
2870 (*vec_concatv2di_rex64_sse4_1): Likewise. Override prefix_rex
2871 to 1 for the first and third alternative.
2872 (*vec_concatv2di_rex64_sse): Override prefix_rex to 1 for the second
2873 alternative.
2874 (*sse2_maskmovdqu, *sse2_maskmovdqu_rex64): Override length_vex
2875 attribute.
2876 (*sse_sfence, sse2_mfence, sse2_lfence): Override length_address
2877 attribute to 0.
2878 (*avx_phaddwv8hi3, *avx_phadddv4si3, *avx_phaddswv8hi3,
2879 *avx_phsubwv8hi3, *avx_phsubdv4si3, *avx_phsubswv8hi,
2880 *avx_pmaddubsw128, *avx_pmulhrswv8hi3, *avx_pshufbv16qi3,
2881 *avx_psign<mode>3): Set prefix_extra attribute to 1.
2882 (ssse3_phaddwv4hi3, ssse3_phadddv2si3, ssse3_phaddswv4hi3,
2883 ssse3_phsubwv4hi3, ssse3_phsubdv2si3, ssse3_phsubswv4hi3,
2884 ssse3_pmaddubsw, *ssse3_pmulhrswv4hi, ssse3_pshufbv8qi3,
2885 ssse3_psign<mode>3): Override prefix_rex attribute.
f3afc8a7 2886 (*avx_palignrti): Override prefix_extra and length_immediate to 1.
725fd454
JJ
2887 (ssse3_palignrti): Override length_immediate to 1.
2888 (ssse3_palignrdi): Override length_immediate to 1, override
2889 prefix_rex attribute.
f3afc8a7 2890 (abs<mode>2): Override prefix_rep to 0, override prefix_rex attribute.
725fd454
JJ
2891 (sse4a_extrqi): Override length_immediate to 2.
2892 (sse4a_insertqi): Likewise. Override prefix_data16 to 0.
2893 (sse4a_insertq): Override prefix_data16 to 0.
2894 (avx_blendp<avxmodesuffixf2c><avxmodesuffix>,
2895 avx_blendvp<avxmodesuffixf2c><avxmodesuffix>,
2896 avx_dpp<avxmodesuffixf2c><avxmodesuffix>, *avx_mpsadbw,
2897 *avx_pblendvb, *avx_pblendw, avx_roundp<avxmodesuffixf2c>256,
2898 avx_rounds<avxmodesuffixf2c>256): Override prefix_extra
2899 and length_immediate to 1.
2900 (sse4_1_blendp<ssemodesuffixf2c>, sse4_1_dpp<ssemodesuffixf2c>,
2901 sse4_2_pcmpestr, sse4_2_pcmpestri, sse4_2_pcmpestrm,
2902 sse4_2_pcmpestr_cconly, sse4_2_pcmpistr, sse4_2_pcmpistri,
2903 sse4_2_pcmpistrm, sse4_2_pcmpistr_cconly): Override prefix_data16
2904 and length_immediate to 1.
2905 (sse4_1_blendvp<ssemodesuffixf2c>): Override prefix_data16 to 1.
2906 (sse4_1_mpsadbw, sse4_1_pblendw): Override length_immediate to 1.
2907 (*avx_packusdw, avx_vtestp<avxmodesuffixf2c><avxmodesuffix>,
2908 avx_ptest256): Override prefix_extra to 1.
2909 (sse4_1_roundp<ssemodesuffixf2c>, sse4_1_rounds<ssemodesuffixf2c>):
2910 Override prefix_data16 and length_immediate to 1.
2911 (sse5_pperm_zero_v16qi_v8hi, sse5_pperm_sign_v16qi_v8hi,
2912 sse5_pperm_zero_v8hi_v4si, sse5_pperm_sign_v8hi_v4si,
2913 sse5_pperm_zero_v4si_v2di, sse5_pperm_sign_v4si_v2di,
2914 sse5_vrotl<mode>3, sse5_ashl<mode>3, sse5_lshl<mode>3): Override
2915 prefix_data16 to 0 and prefix_extra to 2.
2916 (sse5_rotl<mode>3, sse5_rotr<mode>3): Override length_immediate to 1.
2917 (sse5_frcz<mode>2, sse5_vmfrcz<mode>2): Don't override prefix_extra
2918 attribute.
2919 (*sse5_vmmaskcmp<mode>3, sse5_com_tf<mode>3,
2920 sse5_maskcmp<mode>3, sse5_maskcmp<mode>3, sse5_maskcmp_uns<mode>3):
2921 Override prefix_data16 and prefix_rep to 0, length_immediate to 1
2922 and prefix_extra to 2.
2923 (sse5_maskcmp_uns2<mode>3, sse5_pcom_tf<mode>3): Override
2924 prefix_data16 to 0, length_immediate to 1 and prefix_extra to 2.
2925 (*avx_aesenc, *avx_aesenclast, *avx_aesdec, *avx_aesdeclast,
2926 avx_vpermilvar<mode>3,
2927 avx_vbroadcasts<avxmodesuffixf2c><avxmodesuffix>,
2928 avx_vbroadcastss256, avx_vbroadcastf128_p<avxmodesuffixf2c>256,
2929 avx_maskloadp<avxmodesuffixf2c><avxmodesuffix>,
2930 avx_maskstorep<avxmodesuffixf2c><avxmodesuffix>):
2931 Override prefix_extra to 1.
2932 (aeskeygenassist, pclmulqdq): Override length_immediate to 1.
2933 (*vpclmulqdq, avx_vpermil<mode>, avx_vperm2f128<mode>3,
2934 vec_set_lo_<mode>, vec_set_hi_<mode>, vec_set_lo_v16hi,
2935 vec_set_hi_v16hi, vec_set_lo_v32qi, vec_set_hi_v32qi): Override
2936 prefix_extra and length_immediate to 1.
2937 (*avx_vzeroall, avx_vzeroupper, avx_vzeroupper_rex64): Override
2938 modrm to 0.
2939 (*vec_concat<mode>_avx): Override prefix_extra and length_immediate
2940 to 1 for the first alternative.
2941 * config/i386/mmx.md (*mov<mode>_internal_rex64): Override
2942 prefix_rep, prefix_data16 and/or prefix_rex attributes in certain
2943 cases.
2944 (*mov<mode>_internal_avx, *movv2sf_internal_rex64,
2945 *movv2sf_internal_avx, *movv2sf_internal): Override
2946 prefix_rep attribute for certain alternatives.
2947 (*mov<mode>_internal): Override prefix_rep or prefix_data16
2948 attributes for certain alternatives.
2949 (*movv2sf_internal_rex64_avx): Override prefix_rep and length_vex
2950 attributes for certain alternatives.
2951 (*mmx_addv2sf3, *mmx_subv2sf3, *mmx_mulv2sf3,
2952 *mmx_<code>v2sf3_finite, *mmx_<code>v2sf3, mmx_rcpv2sf2,
2953 mmx_rcpit1v2sf3, mmx_rcpit2v2sf3, mmx_rsqrtv2sf2, mmx_rsqit1v2sf3,
2954 mmx_haddv2sf3, mmx_hsubv2sf3, mmx_addsubv2sf3,
2955 *mmx_eqv2sf3, mmx_gtv2sf3, mmx_gev2sf3, mmx_pf2id, mmx_pf2iw,
2956 mmx_pi2fw, mmx_floatv2si2, mmx_pswapdv2sf2, *mmx_pmulhrwv4hi3,
2957 mmx_pswapdv2si2): Set prefix_extra attribute to 1.
2958 (mmx_ashr<mode>3, mmx_lshr<mode>3, mmx_ashl<mode>3): Set
2959 length_immediate to 1 if operand 2 is const_int_operand.
2960 (*mmx_pinsrw, mmx_pextrw, mmx_pshufw_1, *vec_dupv4hi,
f3afc8a7 2961 *vec_extractv2si_1): Set length_immediate attribute to 1.
725fd454
JJ
2962 (*mmx_uavgv8qi3): Override prefix_extra attribute to 1 if
2963 using old 3DNOW insn rather than SSE/3DNOW_A.
2964 (mmx_emms, mmx_femms): Clear modrm attribute.
2965
0674b9d0
MJ
29662009-05-29 Martin Jambor <mjambor@suse.cz>
2967
2968 * tree-sra.c: New implementation of SRA.
2969
2970 * params.def (PARAM_SRA_MAX_STRUCTURE_SIZE): Removed.
2971 (PARAM_SRA_MAX_STRUCTURE_COUNT): Removed.
2972 (PARAM_SRA_FIELD_STRUCTURE_RATIO): Removed.
2973 * params.h (SRA_MAX_STRUCTURE_SIZE): Removed.
2974 (SRA_MAX_STRUCTURE_COUNT): Removed.
2975 (SRA_FIELD_STRUCTURE_RATIO): Removed.
2976 * doc/invoke.texi (sra-max-structure-size): Removed.
2977 (sra-field-structure-ratio): Removed.
2978
616f21df
JJ
29792009-05-29 Jakub Jelinek <jakub@redhat.com>
2980
2981 PR middle-end/40291
2982 * builtins.c (expand_builtin_memcmp): Convert len to sizetype
2983 before expansion.
2984
da7ba240
AB
29852009-05-29 Andrey Belevantsev <abel@ispras.ru>
2986
2987 PR rtl-optimization/40101
2988 * sel-sched-ir.c (get_seqno_by_preds): Allow returning negative
2989 seqno. Adjust comment.
2990 * sel-sched.c (find_seqno_for_bookkeeping): Assert that when
2991 inserting bookkeeping before a jump, the jump is not scheduled.
2992 When no positive seqno found, provide a value. Add comment.
2993
71dcd609
RG
29942009-05-29 Richard Guenther <rguenther@suse.de>
2995
2996 * tree-ssa-alias.c (nonaliasing_component_refs_p): Remove
2997 short-cutting on the first component.
2998
a900ae6b
JJ
29992009-05-29 Jakub Jelinek <jakub@redhat.com>
3000
3001 PR middle-end/39958
3002 * omp-low.c (scan_omp_1_op): Call remap_type on TREE_TYPE
3003 for trees other than decls/types.
3004
821bb7f8
RG
30052009-05-29 Richard Guenther <rguenther@suse.de>
3006
3007 * tree-ssa-operands.c (get_expr_operands): Do not handle
3008 INDIRECT_REFs in the handled-component case. Remove
3009 unused get_ref_base_and_extent case.
3010 * tree-dfa.c (get_ref_base_and_extent): Avoid calling
3011 tree_low_cst and host_integerp where possible.
3012 * tree-ssa-structalias.c (equiv_class_label_eq): Check hash
3013 codes for equivalence.
3014 * dce.c (find_call_stack_args): Avoid redundant bitmap queries.
3015
e997fb9c
DB
30162009-05-29 David Billinghurst <billingd@gcc.gnu.org>
3017
3018 * config.gcc: Add i386/t-fprules-softfp and soft-fp/t-softfp
3019 to tmake_file for i[34567]86-*-cygwin*.
3020
58195b74
JJ
30212009-05-29 Jakub Jelinek <jakub@redhat.com>
3022
3023 PR target/40017
3024 * config/rs6000/rs6000-c.c (_Bool_keyword): New variable.
3025 (altivec_categorize_keyword, init_vector_keywords,
3026 rs6000_cpu_cpp_builtins): Define _Bool as conditional macro
3027 similar to bool.
3028
055df276
KT
30292009-05-29 Kai Tietz <kai.tietz@onevision.com>
3030
3031 * tree.c (handle_dll_attribute): Check if node is
3032 of kind FUNCTION_DECL for DECL_DECLARED_INLINE_P check.
3033
f5939ef3
RE
30342009-05-29 Richard Earnshaw <rearnsha@arm.com>
3035
3036 * config/arm/thumb2.md (thumb2_zero_extendsidi2): Add a split
3037 component.
3038 (thumb2_zero_extendqidi2): Likewise.
3039
c185de40
KK
30402009-05-28 Kaz Kojima <kkojima@gcc.gnu.org>
3041
3042 * config/sh/sh.c (sh_expand_t_scc): Use gen_xorsi3_movrt
3043 instead of gen_movrt.
3044 * config/sh/sh.md (movrt): Remove.
3045
bf3c6caf
SE
30462009-05-28 Steve Ellcey <sje@cup.hp.com>
3047
f3afc8a7 3048 * doc/invoke.texi (IA-64 Options):
bf3c6caf
SE
3049 Add -msdata, -mfused-madd, -mno-inline-float-divide,
3050 -mno-inline-int-divide, -mno-inline-sqrt, -msched-spec-ldc,
3051 -msched-spec-control-ldc, -msched-prefer-non-data-spec-insns,
3052 -msched-prefer-non-control-spec-insns,
3053 -msched-stop-bits-after-every-cycle,
3054 -msched-count-spec-in-critical-path,
3055 -msel-sched-dont-check-control-spec, -msched-fp-mem-deps-zero-cost
f3afc8a7 3056 -msched-max-memory-insns-hard-limit, -msched-max-memory-insns.
bf3c6caf
SE
3057 Remove -mt, -pthread, -msched-ldc, -mno-sched-control-ldc,
3058 and -msched-spec-verbose.
3059
8a66e987
JM
30602009-05-28 Joseph Myers <joseph@codesourcery.com>
3061
f3afc8a7 3062 * config/arm/lib1funcs.asm (__clear_cache): Define if L_clear_cache.
8a66e987
JM
3063 * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define to give an
3064 error if used.
3065 * config/arm/t-linux-eabi (LIB1ASMFUNCS): Add _clear_cache.
3066
b45d2719
RG
30672009-05-28 Richard Guenther <rguenther@suse.de>
3068
3069 * tree-ssa-alias.c (ao_ref_init): New function.
3070 (ao_ref_base): Likewise.
3071 (ao_ref_base_alias_set): Likewise.
3072 (ao_ref_alias_set): Likewise.
3073 (refs_may_alias_p_1): Change signature.
3074 (refs_may_alias_p): Adjust.
3075 (refs_anti_dependent_p): Likewise.
3076 (refs_output_dependent_p): Likewise.
3077 (call_may_clobber_ref_p_1): Change signature.
3078 (call_may_clobber_ref_p): Adjust.
3079 (stmt_may_clobber_ref_p_1): New function split out from ...
3080 (stmt_may_clobber_ref_p): ... here.
3081 (maybe_skip_until): Adjust signature.
3082 (get_continuation_for_phi): Likewise.
3083 (walk_non_aliased_vuses): Likewise.
3084 * tree-ssa-alias.h (struct ao_ref_s): New structure type.
3085 (ao_ref_init): Declare.
3086 (ao_ref_base): Likewise.
3087 (ao_ref_alias_set): Likewise.
3088 (stmt_may_clobber_ref_p_1): Likewise.
3089 (walk_non_aliased_vuses): Adjust.
3090 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): New function.
3091 (get_ref_from_reference_ops): remove.
3092 (vn_reference_lookup_2): Adjust signature.
3093 (vn_reference_lookup_3): Do not re-build trees. Handle unions.
f3afc8a7 3094 (vn_reference_lookup_pieces): Adjust signature, do not re-build trees.
b45d2719
RG
3095 (vn_reference_lookup): Adjust.
3096 (vn_reference_insert): Likewise.
3097 (vn_reference_insert_pieces): Adjust signature.
3098 (visit_reference_op_call): Adjust.
3099 * tree-ssa-pre.c (get_expr_type): Simplify.
3100 (phi_translate_1): Adjust.
3101 (compute_avail): Likewise.
3102 (translate_vuse_through_block): Do not re-build trees.
3103 (value_dies_in_block_x): Likewise.
3104 * tree-ssa-sccvn.h (struct vn_reference_s): Add type and alias-set
3105 fields.
3106 (vn_reference_lookup_pieces): Adjust declaration.
3107 (vn_reference_insert_pieces): Likewise.
3108
554223b6
BK
31092009-05-28 Benjamin Kosnik <bkoz@redhat.com>
3110
3111 * tree-ssa-copy.c (replace_exp_1): Move op for warning-free use
3112 with checking disabled.
3113
233215fe
DK
31142009-05-28 Dave Korn <dave.korn.cygwin@gmail.com>
3115
3116 PR target/37216
3117
3118 * configure.ac (HAVE_GAS_ALIGNED_COMM): Add autoconf test and
3119 macro definition for support of three-operand format aligned
3120 .comm directive in assembler on cygwin/pe/mingw target OS.
3121 * configure: Regenerate.
3122 * config.h: Regenerate.
3123
3124 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Use
3125 aligned form of .comm directive if -mpe-aligned-commons is in effect.
3126 * config/i386/cygming.opt (-mpe-aligned-commons): Add new option.
3127
3128 * doc/invoke.texi (-mpe-aligned-commons): Document new target option.
3129 * doc/tm.texi (ASM_OUTPUT_COMMON): Document zero size commons.
3130
24adb18f
IR
31312009-05-28 Ira Rosen <irar@il.ibm.com>
3132
3133 PR tree-optimization/40254
3134 * tree-data-ref.c (dr_analyze_innermost): Take POFFSET into account
3135 in analysis of basic blocks.
3136
2c5bfdf7
AN
31372009-05-28 Adam Nemet <anemet@caviumnetworks.com>
3138
3139 PR middle-end/33699
f3afc8a7 3140 * target.h (struct gcc_target): Fix indentation. Add const_anchor.
2c5bfdf7
AN
3141 * target-def.h (TARGET_CONST_ANCHOR): New macro.
3142 (TARGET_INITIALIZER): Use it.
3143 * cse.c (CHEAPER): Move it up to the other macros.
3144 (insert): Rename this ...
3145 (insert_with_costs): ... to this. Add cost parameters. Update
3146 function comment.
3147 (insert): New function. Call insert_with_costs.
3148 (compute_const_anchors, insert_const_anchor, insert_const_anchors,
3149 find_reg_offset_for_const, try_const_anchors): New functions.
3150 (cse_insn): Call try_const_anchors. Adjust cost of src_related
3151 when using a const-anchor. Call insert_const_anchors.
f3afc8a7 3152 * config/mips/mips.c (mips_set_mips16_mode): Set targetm.const_anchor.
2c5bfdf7
AN
3153 * doc/tm.texi (Misc): Document TARGET_CONST_ANCHOR.
3154
9e6aced0
AO
31552009-05-28 Alexandre Oliva <aoliva@redhat.com>
3156
3157 * tree-inline.c (remap_decls): Enable nonlocalized variables
3158 when not optimizing.
3159
89fbbe4e
AO
31602009-05-28 Alexandre Oliva <aoliva@redhat.com>
3161
3162 * tree-ssa-live.c (remove_unused_locals): Skip when not optimizing.
3163 Simplify other tests involving optimize.
3164
e455776a
TT
31652009-05-27 Tom Tromey <tromey@redhat.com>
3166
3167 * unwind-dw2.c (_Unwind_DebugHook): New function.
3168 (uw_install_context): Call _Unwind_DebugHook.
3169
cea32bca
TT
31702009-05-27 Tom Tromey <tromey@redhat.com>
3171
3172 * system.h (CONST_CAST2): Use C++ const_cast when compiled as C++
3173
c607156f
ILT
31742009-05-27 Ian Lance Taylor <iant@google.com>
3175
3176 * Makefile.in (LINKER, LINKER_FLAGS): Define.
3177 (LINKER_FOR_BUILD, BUILD_LINKERFLAGS): Define.
3178 (ALL_LINKERFLAGS): Define.
3179 (xgcc$(exeext)): Change $(COMPILER) to $(LINKER).
3180 (cpp$(exeext), cc1-dummy$(exeext), cc1$(exeext)): Likewise.
3181 (collect2$(exeext), mips-tfile, mips-tdump): Likewise.
3182 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
3183 (build/gen%$(build_exeext)): Change $(COMPILER_FOR_BUILD) to
3184 $(LINKER_FOR_BUILD).
3185 (build/gcov-iov$(build_exeext)): Likewise.
3186
ec0a1343
JB
31872009-05-27 Julian Brown <julian@codesourcery.com>
3188
3189 * gcse.c (target.h): Include.
3190 (can_assign_to_reg_without_clobbers_p): Check that the target allows
3191 copy of argument to a pseudo register.
3192
ac80ba07
DN
31932009-05-27 Diego Novillo <dnovillo@google.com>
3194
3195 * tree-ssa-live.c (dump_scope_block): Document arguments.
3196 (dump_scope_blocks): Document.
3197 (debug_scope_blocks): New.
3198 * tree-flow.h (debug_scope_blocks): Declare.
3199
d1803a17
DC
32002009-05-21 Denis Chertykov <denisc@overta.ru>
3201
f3afc8a7 3202 * doc/contrib.texi (Contributors): Add myself to the list.
d1803a17 3203
51fb7760 32042009-05-27 Olivier Hainque <hainque@adacore.com>
ceadb728
OH
3205
3206 * expr.c (target_align): New function. Alignment the TARGET of an
3207 assignment may be assume to have.
3208 (highest_pow2_factor_for_target): Use it instead of relying on
3209 immediate tree attributes of TARGET, not necessarily honored when
3210 intermediate bitfields are involved.
3211
634fa334
L
32122009-05-27 H.J. Lu <hongjiu.lu@intel.com>
3213
3214 PR target/40266
3215 * config/i386/driver-i386.c (host_detect_local_cpu): Support
3216 AVX, SSE4, AES, PCLMUL and POPCNT.
3217
65332587
DN
32182009-05-27 Diego Novillo <dnovillo@google.com>
3219
3220 * tree-pretty-print.c (dump_location): New.
3221 (dump_generic_node): Call it.
3222 Factor code to handle BLOCK nodes ...
3223 (dump_block_node): ... here.
3224
3e17e31d
RAE
32252009-05-27 Rafael Avila de Espindola <espindola@google.com>
3226
f3afc8a7
UB
3227 * Makefile.in (GCC_PLUGIN_H): New. Replace all uses of gcc-plugin.h
3228 with it.
3e17e31d
RAE
3229 * doc/plugins.texi: Document that gcc-plugin.h must be the first to be
3230 included.
3231 * gcc-plugin.h: Include config.h and system.h.
3232 (IN_GCC): Define if not defined.
3233
5e370570
HPN
32342009-05-27 Hans-Peter Nilsson <hp@axis.com>
3235
3236 PR middle-end/40249
3237 * Makefile.in (CRTSTUFF_CFLAGS): Replace -fno-inline-functions
3238 with -fno-inline.
3239
d000f0d9
SZ
32402009-05-27 Shujing Zhao <pearly.zhao@oracle.com>
3241
3242 * config/m32r/m32r.c: Use REG_P, MEM_P and CONST_INT_P where
3243 applicable.
3244 * config/m32r/m32r.h: Ditto.
3245 * config/m32r/m32r.md: Ditto.
3246 * config/m32r/predicates.md: Ditto.
3247
82f331ff
AO
32482009-05-27 Alexandre Oliva <aoliva@redhat.com>
3249
3250 * cgraph.c (dump_cgraph_node): Honor -fdump-noaddr.
3251
ae2392a9
BS
32522009-05-26 Basile Starynkevitch <basile@starynkevitch.net>
3253
3254 * doc/plugins.texi
3255 (Loading plugins): typo.
3256 (Plugin callbacks): Documented PLUGIN_INFO, PLUGIN_GGC_START,
3257 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
3258 (Interacting with the GCC Garbage Collector): Added new section.
3259 (Giving information about a plugin): Added new section for
3260 PLUGIN_INFO.
ae2392a9
BS
3261 * ggc.h (ggc_register_root_tab): Added declaration.
3262 * gcc-plugin.h (PLUGIN_GGC_START, PLUGIN_GGC_MARKING)
3263 (PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS): Added new events.
3264 (register_callback): Improved comment in declaration.
f3afc8a7
UB
3265 * ggc-common.c (const_ggc_root_tab_t) Added new typedef for vectors.
3266 (extra_root_vec) Added static variable for dynamic roots registration.
ae2392a9
BS
3267 (ggc_register_root_tab) Added new routine.
3268 (ggc_mark_roots) Added iteration inside extra_root_vec, and invoke
3269 PLUGIN_GGC_MARKING event.
3270 * ggc-zone.c: Include plugin.h.
3271 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
3272 * ggc-page.c: Include plugin.h.
3273 (ggc_collect): Invoke PLUGIN_GGC_START & PLUGIN_GGC_END events.
3274 * plugin.c (plugin_event_name): added names of PLUGIN_GGC_START,
3275 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS
3276 (register_callback): check lack of callbacks for
3277 pseudo-events. Added handling of PLUGIN_REGISTER_GGC_ROOTS,
3278 PLUGIN_GGC_START, PLUGIN_GGC_MARKING, PLUGIN_GGC_END.
3279 (invoke_plugin_callbacks): Handle PLUGIN_GGC_START,
3280 PLUGIN_GGC_MARKING, PLUGIN_GGC_END, PLUGIN_REGISTER_GGC_ROOTS.
3281 * Makefile.in (ggc-common.o, ggc-zone.o, ggc-page.o): Added
3282 dependency on plugin.h.
3283 (plugin.o): Added dependency on ggc.h...
3284
f0cfd3a8
RG
32852009-05-26 Richard Guenther <rguenther@suse.de>
3286
3287 PR middle-end/40248
3288 Revert
3289 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
3290 with mismatched comparison modes.
3291
3292 * expr.c (expand_expr_real_1): Expand the operand of a
3293 VIEW_CONVERT_EXPR in its natural mode.
3294
7980bfb8
ILT
32952009-05-26 Ian Lance Taylor <iant@google.com>
3296
3297 * Makefile.in (COMPILER, COMPILER_FLAGS): Define.
3298 (COMPILER_FOR_BUILD, BUILD_COMPILERFLAGS): Define.
3299 (ALL_COMPILERFLAGS): Define.
3300 (.c.o, xgcc$(exeext), cpp$(exeext)): Use $(COMPILER).
3301 (cc1-dummy$(exeext), cc1$(exeext)): Likewise.
3302 (collect2$(exeext), collect2.o): Likewise.
3303 (c-opts.o, c-cppbuiltin.o, c-pch.o, gcc.o, gccspec.o): Likewise.
3304 (gcc-options.o, version.o, prefix.o, toplev.o): Likewise.
3305 ($(out_object_file), mips-tfile, mips-tdump): Likewise.
3306 (libbackend.o, intl.o, cppdefault.o): Likewise.
3307 (gcov$(exeext), gcov-dump$(exeext)): Likewise.
3308 (build/%.o): Use $(COMPILER_FOR_BUILD).
3309 (build/gen%$(build_exeext)): Likewise.
3310 (build/gcov-iov$(build_exeext)): LIkewise.
3311 * config/t-darwin (darwin.o): Use $(COMPILER).
3312 (darwin-c.o, darwin-f.o, darwin-driver.o): Likewise.
3313 * config/t-sol2 (sol2-c.o): Likewise.
3314 (sol2.o): Likewise.
3315 * config/t-vxworks (vxworks.o): Likewise.
3316 * config/x-darwin (host-darwin.o): Likewise.
3317 * config/x-hpux (host-hpux.o): Likewise.
3318 * config/x-linux (host-linux.o): Likewise.
3319 * config/x-solaris (host-solaris.o): Likewise.
3320 * config/alpha/x-alpha (driver-alpha.o): Likewise.
3321 * config/arm/t-arm (arm-c.o): Likewise.
3322 * config/arm/t-pe (pe.o): Likewise.
3323 * config/arm/t-wince-pe (pe.o): Likewise.
3324 * config/i386/t-cygming (winnt.o): Likewise.
3325 (winnt-cxx.o, winnt-stubs.o, msformat-c.o): Likewise.
3326 * config/i386/t-cygwin (cygwin1.o): Likewise.
3327 (cygwin2.o): Likewise.
3328 * config/i386/t-i386 (i386-c.o): Likewise.
3329 * config/i386/t-interix (winnt.o): Likewise.
3330 * config/i386/t-netware (netware.o): Likewise.
3331 * config/i386/t-nwld (nwld.o): Likewise.
3332 * config/i386/x-darwin (host-i386-darwin.o): Likewise.
3333 * config/i386/x-i386 (driver-i386.o): Likewise.
3334 * config/i386/x-cygwin (host-cygwin.o): Likewise.
3335 * config/i386/x-mingw32 (host-mingw32.o): Likewise.
3336 * config/ia64/t-ia64 (ia64-c.o): Likewise.
3337 * config/m32c/t-m32c (m32c-pragma.o): Likewise.
3338 * config/mips/x-native (driver-native.o): Likewise.
3339 * config/rs6000/t-rs6000 (rs6000-c.o): Likewise.
3340 * config/rs6000/x-darwin (host-ppc-darwin.o): Likewise.
3341 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Likewise.
3342 * config/rs6000/x-rs6000 (driver-rs6000.o): Likewise.
3343 * config/score/t-score-elf (score7.o): Likewise.
3344 (score3.o): Likewise.
3345 * config/sh/t-sh (sh-c.o): Likewise.
3346 * config/sh/t-symbian (sh-c.o): Likewise.
3347 (symbian.o): Likewise.
3348 * config/spu/t-spu-elf (spu-c.o): Likewise.
3349 * config/v850/t-v850 (v850-c.o): Likewise.
3350 * config/v850/t-v850e (v850-c.o): Likewise.
3351
23977d3c
RG
33522009-05-26 Richard Guenther <rguenther@suse.de>
3353
3354 PR tree-optimization/40122
3355 * tree-ssa-ccp.c (ccp_fold): Fold vector CONSTRUCTORs to
3356 VECTOR_CSTs if possible.
3357 (fold_gimple_assign): Likewise.
3358
3d62b895
RG
33592009-05-26 Richard Guenther <rguenther@suse.de>
3360
3361 PR middle-end/40252
3362 * fold-const.c (fold_binary): Use the correct types for building
3363 rotates.
3364
12346147
RG
33652009-05-26 Richard Guenther <rguenther@suse.de>
3366
3367 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove
3368 redundant calls to merge_alias_info.
3369 (bump_vector_ptr): Likewise.
3370 * tree-ssa-copy.c (merge_alias_info): Remove.
3371 (replace_exp_1): Remove call to merge_alias_info.
3372 (propagate_tree_value): Likewise.
3373 (fini_copy_prop): Propagate points-to info.
3374 * tree-flow.h (merge_alias_info): Remove.
3375
807d5e6f
HS
33762009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
3377
3378 * config/picochip/picochip.C (PARAM_INLINE_CALL_COST): Remove.
3379
85057983
JH
33802009-05-25 Jan Hubicka <jh@suse.cz>
3381
3382 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
3383 * cgraph.h (struct inline_summary): New filed self_wize,
3384 size_inlining_benefit, self_time and time_inlining_benefit.
3385 (struct cgraph_global_info): Replace insns by time ans size fields.
3386 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
3387 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
3388 (ipcp_update_callgraph): Do not touch function bodies.
3389 * ipa-inline.c: Include except.h
3390 (MAX_TIME): New constant.
3391 (overall_insns): Remove.
3392 (leaf_node_p): New.
3393 (overall_size, max_benefit): New static variables.
3394 (cgraph_estimate_time_after_inlining): New function.
3395 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
3396 (cgraph_clone_inlined_nodes): Update size.
3397 (cgraph_mark_inline_edge): Update size.
3398 (cgraph_estimate_growth): Use size info.
3399 (cgraph_check_inline_limits): Check size.
3400 (cgraph_default_inline_p): Likewise.
3401 (cgraph_edge_badness): Compute badness based on benefit and size cost.
3402 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
3403 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
3404 and times.
85057983
JH
3405 (cgraph_decide_inlining): Likewise.
3406 (cgraph_decide_inlining_incrementally): Likewise; honor
3407 PARAM_EARLY_INLINING_INSNS.
3408 (likely_eliminated_by_inlining_p): New predicate.
3409 (estimate_function_body_sizes): New function.
3410 (compute_inline_parameters): Use it.
3411 * except.c (must_not_throw_labels): New function.
3412 * except.h (must_not_throw_labels): Declare.
3413 * tree-inline.c (init_inline_once): Kill inlining_weigths
3414 * tree-ssa-structalias.c: Avoid uninitialized warning.
3415 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
3416 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
3417 (PARAM_INLINE_CALL_COST): Remove.
3418 (PARAM_EARLY_INLINING_INSNS): New.
3419
01df5c8a
RG
34202009-05-25 Richard Guenther <rguenther@suse.de>
3421
3422 PR tree-optimization/36327
3423 * tree-ssa-alias.c (walk_non_aliased_vuses): Add second walker
f3afc8a7 3424 callback for reference translation or lookup at the point of may-defs.
01df5c8a
RG
3425 * tree-ssa-alias.h (walk_non_aliased_vuses): Adjust prototype.
3426 * tree-ssa-sccvn.c (get_ref_from_reference_ops): Bail out
3427 for union COMPONENT_REFs.
3428 (vn_reference_lookup_3): New callback. Lookup from memset
3429 and CONSTRUCTOR assignment, translate through struct copies.
3430 (vn_reference_lookup_pieces): Make sure to not free the
3431 passed operands array. Adjust walk_non_aliased_vuses call.
3432 (vn_reference_lookup): Adjust walk_non_aliased_vuses call,
3433 make sure we do not leak memory.
3434
6b8ed145
RG
34352009-05-25 Richard Guenther <rguenther@suse.de>
3436
3437 * tree-ssa-alias.h (dump_points_to_solution): Declare.
3438 * tree-inline.c (expand_call_inline): Reset the escaped and
3439 callused solutions.
3440 * tree-ssa-structalias.c (pass_build_ealias): New.
3441 * tree-pass.h (pass_build_ealias): Declare.
3442 * passes.c (init_optimization_passes): Add PTA during
3443 early optimizations.
3444 * tree-ssa-alias.c (dump_alias_info): Dump the ESCAPED
3445 and CALLUSED solutions.
3446 (dump_points_to_solution): New function, split out from ...
3447 (dump_points_to_info_for): ... here.
3448 * tree-parloops.c (parallelize_loops): Reset the escaped and
3449 callused solutions.
3450
0adcf178
RO
34512009-05-25 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3452
3453 PR bootstrap/40027
3454 * config/i386/i386.c (USE_HIDDEN_LINKONCE): Only define if missing.
3455 * config/i386/sol2.h [!TARGET_GNU_LD] (USE_HIDDEN_LINKONCE): Define.
3456
12aaf609
IR
34572009-05-25 Ira Rosen <irar@il.ibm.com>
3458
3459 PR tree-optimization/40238
3460 * tree-vect-stmts.c (vect_init_vector): Insert initialization
3461 statements after basic block's labels.
3462 * tree-vect-slp.c (vect_slp_transform_bb): Call destroy_bb_vec_info()
3463 to free the allocated memory.
3464
7f9a14e3
KK
34652009-05-24 Kaz Kojima <kkojima@gcc.gnu.org>
3466
3467 * gcc/config/sh/sh.c (sh_set_return_address): Mark store of
3468 return address with a USE.
3469
b842d478
RG
34702009-05-24 Richard Guenther <rguenther@suse.de>
3471
3472 PR middle-end/40233
3473 * tree.c (make_vector_type): Build the TYPE_DEBUG_REPRESENTATION_TYPEs
3474 array type from the main variant of the inner type.
3475
8db7b33f
JBG
34762009-05-24 Jan-Benedict Glaw <jbglaw@lug-owl.de>
3477
3478 * config/vax/vax-protos.h (legitimate_constant_address_p): Change
3479 definition to bool (from int) to un-break build.
3480 (legitimate_constant_p, vax_mode_dependent_address_p): Likewise.
3481
cff4e50d
PB
34822009-05-24 Paolo Bonzini <bonzini@gnu.org>
3483
3484 * tree-ssa-operands.h (push_stmt_changes, pop_stmt_changes,
3485 discard_stmt_changes): Delete.
3486 * tree-ssa-operands.c (scb_stack): Delete.
3487 (init_ssa_operands): Do not initialize it.
3488 (fini_ssa_operands): Do not free it.
3489 (push_stmt_changes, pop_stmt_changes, discard_stmt_changes): Delete.
3490
3491 * tree-cfg.c (replace_uses_by): Replace pop_stmt_changes with
3492 update_stmt, remove the others. Fix comments.
3493 * tree-dfa.c (optimize_stack_restore): Likewise.
3494 * tree-ssa-forwprop.c (forward_propagate_addr_expr): Likewise.
3495 * tree-ssa-loop-ivopts.c (rewrite_use): Likewise.
3496 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Likewise.
3497 * tree-ssa-ccp.c (optimize_stack_restore, execute_fold_all_builtins):
3498 Likewise.
3499 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
3500 * tree-ssa-dom.c (propagate_rhs_into_lhs): Likewise.
f3afc8a7
UB
3501 (dom_opt_finalize_block): Likewise, adjusting access to
3502 stmts_to_rescan.
cff4e50d
PB
3503 (optimize_stmt): Likewise, adjusting access to stmts_to_rescan.
3504 (stmts_to_rescan): Change item type to gimple.
3505 (tree_ssa_dominator_optimize): Change type of stmts_to_rescan.
3506
a70d6342
IR
35072009-05-24 Ira Rosen <irar@il.ibm.com>
3508
3509 * doc/passes.texi (Tree-SSA passes): Document SLP pass.
3510 * tree-pass.h (pass_slp_vectorize): New pass.
3511 * params.h (SLP_MAX_INSNS_IN_BB): Define.
3512 * timevar.def (TV_TREE_SLP_VECTORIZATION): Define.
3513 * tree-vectorizer.c (timevar.h): Include.
3514 (user_vect_verbosity_level): Declare.
3515 (vect_location): Fix comment.
3516 (vect_set_verbosity_level): Update user_vect_verbosity_level
3517 instead of vect_verbosity_level.
3518 (vect_set_dump_settings): Add an argument. Ignore user defined
3519 verbosity if dump flags require higher level of verbosity. Print to
3520 stderr only for loop vectorization.
3521 (vectorize_loops): Update call to vect_set_dump_settings.
3522 (execute_vect_slp): New function.
3523 (gate_vect_slp): Likewise.
3524 (struct gimple_opt_pass pass_slp_vectorize): New.
3525 * tree-vectorizer.h (struct _bb_vec_info): Define along macros to
3526 access its members.
3527 (vec_info_for_bb): New function.
3528 (struct _stmt_vec_info): Add bb_vinfo and a macro for its access.
3529 (VECTORIZATION_ENABLED): New macro.
3530 (SLP_ENABLED, SLP_DISABLED): Likewise.
3531 (vect_is_simple_use): Add bb_vec_info argument.
3532 (new_stmt_vec_info, vect_analyze_data_ref_dependences,
3533 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
3534 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
3535 vect_schedule_slp, vect_analyze_slp): Likewise.
3536 (vect_analyze_stmt): Add slp_tree argument.
3537 (find_bb_location): Declare.
3538 (vect_slp_analyze_bb, vect_slp_transform_bb): Likewise.
3539 * tree-vect-loop.c (new_loop_vec_info): Adjust function calls.
3540 (vect_analyze_loop_operations, vect_analyze_loop,
3541 get_initial_def_for_induction, vect_create_epilog_for_reduction,
3542 vect_finalize_reduction, vectorizable_reduction,
3543 vectorizable_live_operation, vect_transform_loop): Likewise.
3544 * tree-data-ref.c (dr_analyze_innermost): Update comment,
3545 skip evolution analysis if analyzing a basic block.
3546 (dr_analyze_indices): Likewise.
3547 (initialize_data_dependence_relation): Skip the test whether the
3548 object is invariant for basic blocks.
3549 (compute_all_dependences): Skip dependence analysis for data
3550 references in basic blocks.
3551 (find_data_references_in_stmt): Don't fail in case of invariant
3552 access in basic block.
3553 (find_data_references_in_bb): New function.
3554 (find_data_references_in_loop): Move code to
782dc37a 3555 find_data_references_in_bb and add a call to it.
a70d6342
IR
3556 (compute_data_dependences_for_bb): New function.
3557 * tree-data-ref.h (compute_data_dependences_for_bb): Declare.
3558 * tree-vect-data-refs.c (vect_check_interleaving): Adjust to the case
3559 that STEP is 0.
3560 (vect_analyze_data_ref_dependence): Check for interleaving in case of
3561 unknown dependence in basic block and fail in case of dependence in
3562 basic block.
3563 (vect_analyze_data_ref_dependences): Add bb_vinfo argument, get data
3564 dependence instances from either loop or basic block vectorization
3565 info.
3566 (vect_compute_data_ref_alignment): Check if it is loop vectorization
3567 before calling nested_in_vect_loop_p.
3568 (vect_compute_data_refs_alignment): Add bb_vinfo argument, get data
3569 dependence instances from either loop or basic block vectorization
3570 info.
3571 (vect_verify_datarefs_alignment): Likewise.
3572 (vect_enhance_data_refs_alignment): Adjust function calls.
3573 (vect_analyze_data_refs_alignment): Likewise.
3574 (vect_analyze_group_access): Fix printing. Skip different checks if
3575 DR_STEP is 0. Keep strided stores either in loop or basic block
3576 vectorization data structure. Fix indentation.
3577 (vect_analyze_data_ref_access): Fix comments, allow zero step in
3578 basic blocks.
3579 (vect_analyze_data_ref_accesses): Add bb_vinfo argument, get data
3580 dependence instances from either loop or basic block vectorization
3581 info.
3582 (vect_analyze_data_refs): Update comment. Call
3583 compute_data_dependences_for_bb to analyze basic blocks.
3584 (vect_create_addr_base_for_vector_ref): Check for outer loop only in
3585 case of loop vectorization. In case of basic block vectorization use
782dc37a 3586 data-ref itself as a base.
a70d6342
IR
3587 (vect_create_data_ref_ptr): In case of basic block vectorization:
3588 don't advance the pointer, add new statements before the current
3589 statement. Adjust function calls.
3590 (vect_supportable_dr_alignment): Support only aligned accesses in
3591 basic block vectorization.
3592 * common.opt (ftree-slp-vectorize): New flag.
3593 * tree-vect-patterns.c (widened_name_p): Adjust function calls.
3594 (vect_pattern_recog_1): Likewise.
3595 * tree-vect-stmts.c (process_use): Likewise.
3596 (vect_init_vector): Add new statements in the beginning of the basic
3597 block in case of basic block SLP.
3598 (vect_get_vec_def_for_operand): Adjust function calls.
3599 (vect_finish_stmt_generation): Likewise.
3600 (vectorizable_call): Add assert that it is loop vectorization, adjust
3601 function calls.
3602 (vectorizable_conversion, vectorizable_assignment): Likewise.
3603 (vectorizable_operation): In case of basic block SLP, take
3604 vectorization factor from statement's type and skip the relevance
3605 check. Adjust function calls.
3606 (vectorizable_type_demotion): Add assert that it is loop
3607 vectorization, adjust function calls.
3608 (vectorizable_type_promotion): Likewise.
3609 (vectorizable_store): Check for outer loop only in case of loop
3610 vectorization. Adjust function calls. For basic blocks, skip the
3611 relevance check and don't advance pointers.
3612 (vectorizable_load): Likewise.
3613 (vectorizable_condition): Add assert that it is loop vectorization,
3614 adjust function calls.
3615 (vect_analyze_stmt): Add argument. In case of basic block SLP, check
3616 that it is not reduction, get vector type, call only supported
782dc37a 3617 functions, skip loop specific parts.
a70d6342
IR
3618 (vect_transform_stmt): Check for outer loop only in case of loop
3619 vectorization.
3620 (new_stmt_vec_info): Add new argument and initialize bb_vinfo.
3621 (vect_is_simple_use): Fix comment, add new argument, fix conditions
3622 for external definition.
3623 * passes.c (pass_slp_vectorize): New pass.
3624 * tree-vect-slp.c (find_bb_location): New function.
3625 (vect_get_and_check_slp_defs): Add argument, adjust function calls,
3626 check for patterns only in loops.
3627 (vect_build_slp_tree): Add argument, adjust function calls, fail in
3628 case of multiple types in basic block SLP.
3629 (vect_mark_slp_stmts_relevant): New function.
3630 (vect_supported_load_permutation_p): Fix comment.
3631 (vect_analyze_slp_instance): Add argument. In case of basic block
3632 SLP, take vectorization factor from statement's type, check that
3633 unrolling factor is 1. Adjust function call. Save SLP instance in
3634 either loop or basic block vectorization structure. Return FALSE,
3635 if SLP failed.
3636 (vect_analyze_slp): Add argument. Get strided stores groups from
3637 either loop or basic block vectorization structure. Return FALSE
3638 if basic block SLP failed.
3639 (new_bb_vec_info): New function.
3640 (destroy_bb_vec_info, vect_slp_analyze_node_operations,
3641 vect_slp_analyze_operations, vect_slp_analyze_bb): Likewise.
3642 (vect_schedule_slp): Add argument. Get SLP instances from either
3643 loop or basic block vectorization structure. Set vectorization factor
3644 to be 1 for basic block SLP.
3645 (vect_slp_transform_bb): New function.
3646 * params.def (PARAM_SLP_MAX_INSNS_IN_BB): Define.
3647
0676c393
MM
36482009-05-23 Mark Mitchell <mark@codesourcery.com>
3649
3650 * final.c (shorten_branches): Do not align labels for jump tables.
3651 (final_scan_insn): Use JUMP_TABLE_DATA_P.
3652
94324dae
EB
36532009-05-23 Eric Botcazou <ebotcazou@adacore.com>
3654
3655 * doc/passes.texi: Standardize spelling of RTL, Tree and Tree SSA.
3656 Remove outdated reference to flow.c and fix nits.
3657 * doc/gccint.texi: Tweak RTL description.
3658 * doc/rtl.texi: Likewise.
3659
92bffc14
DC
36602009-05-23 Denis Chertykov <chertykov@gmail.com>
3661
3662 * config/avr/avr.c: Change my email address.
3663 * config/avr/avr.h: Likewise.
3664 * config/avr/avr.md: Likewise.
3665 * config/avr/avr-protos.h: Likewise.
3666 * config/avr/libgcc.S: Likewise.
3667
eec9405e
TS
36682009-05-22 Trevor Smigiel <Trevor_Smigiel@playstation.sony.com>
3669
3670 * config/spu/spu-protos.h (aligned_mem_p, spu_valid_mov): Remove.
3671 (spu_split_load, spu_split_store): Change return type to int.
3672 (spu_split_convert): Declare.
3673 * config/spu/predicates.md (spu_mem_operand): Remove.
3674 (spu_mov_operand): Update.
3675 (spu_dest_operand, shiftrt_operator, extend_operator): Define.
3676 * config/spu/spu.c (regno_aligned_for_load): Remove.
3677 (reg_aligned_for_addr, spu_expand_load): Define.
3678 (spu_expand_extv): Reimplement and handle MEM.
3679 (spu_expand_insv): Handle MEM.
3680 (spu_sched_reorder): Handle insn's with length 0.
3681 (spu_legitimate_address_p): Reimplement.
3682 (store_with_one_insn_p): Return TRUE for any mode with size
3683 larger than 16 bytes.
3684 (address_needs_split): Define.
3685 (spu_expand_mov): Call spu_split_load and spu_split_store for MEM
3686 operands.
3687 (spu_convert_move): Define.
782dc37a 3688 (spu_split_load): Use spu_expand_load and change all MEM's to TImode.
eec9405e
TS
3689 (spu_split_store): Change all MEM's to TImode.
3690 (spu_init_expanders): Preallocate registers that correspond to
3691 LAST_VIRTUAL_REG+1 and LAST_VIRTUAL_REG+2 and set them with
3692 mark_reg_pointer.
3693 (spu_split_convert): Define.
3694 * config/spu/spu.md (QHSI, QHSDI): New mode iterators.
3695 (_move<mode>, _movdi, _movti): Update predicate and condition.
3696 (load, store): Change to define_split.
3697 (extendqiti2, extendhiti2, extendsiti2, extendditi2): Simplify to
3698 extend<mode>ti2.
3699 (zero_extendqiti2, zero_extendhiti2, <v>lshr<mode>3_imm): Define.
3700 (lshr<mode>3, lshr<mode>3_imm, lshr<mode>3_re): Simplify to one
3701 define_insn_and_split of lshr<mode>3.
3702 (shrqbybi_<mode>, shrqby_<mode>): Simplify to define_expand.
3703 (<v>ashr<mode>3_imm): Define.
3704 (extv, extzv, insv): Allow MEM operands.
3705 (trunc_shr_ti<mode>, trunc_shr_tidi, shl_ext_<mode>ti,
3706 shl_ext_diti, sext_trunc_lshr_tiqisi, zext_trunc_lshr_tiqisi,
3707 sext_trunc_lshr_tihisi, zext_trunc_lshr_tihisi): Define for combine.
3708 (_spu_convert2): Change to define_insn_and_split and remove the
3709 corresponding define_peephole2.
3710 (stack_protect_set, stack_protect_test, stack_protect_test_si):
3711 Change predicates to memory_operand.
3712
7d31a807
MM
37132009-05-22 Mark Mitchell <mark@codesourcery.com>
3714
3715 * config/arm/thumb2.md: Add 16-bit multiply instructions.
7d31a807 3716
d021d274
MM
37172009-05-21 Michael Meissner <meissner@linux.vnet.ibm.com>
3718
3719 PR tree-optimization/40219
3720 * tree.c (iterative_hash_expr): Make sure the builtin function is
3721 a normal builtin function and not a front end or back end builtin
3722 before indexing into the built_in_decls array.
3723
4d7a65ea
RG
37242009-05-22 Richard Guenther <rguenther@suse.de>
3725
3726 PR middle-end/38964
3727 * alias.c (write_dependence_p): Do not use TBAA for answering
3728 anti-dependence or output-dependence.
782dc37a 3729 * tree-ssa-structalias.c (set_uids_in_ptset): Remove TBAA pruning code.
4d7a65ea
RG
3730 (emit_pointer_definition): Remove.
3731 (emit_alias_warning): Likewise.
3732 (find_what_var_points_to): Remove TBAA pruning code.
3733 (find_what_p_points_to): Likewise. Do not warn about strict-aliasing
3734 violations.
3735 (compute_points_to_sets): Remove code computing the set of
3736 dereferenced pointers.
3737 * tree-data-ref.c (dr_may_alias_p): Properly use the split
3738 oracle for querying anti and output dependencies.
3739 * tree-ssa-alias.c (refs_may_alias_p_1): Add argument specifying
3740 if TBAA may be applied.
3741 (refs_anti_dependent_p): New function.
3742 (refs_output_dependent_p): Likewise.
3743 * tree-ssa-alias.h (refs_anti_dependent_p): Declare.
3744 (refs_output_dependent_p): Likewise.
3745 * doc/tree-ssa.texi (Memory model): New section.
3746 * doc/c-tree.texi (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
3747 * doc/gimple.texi (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
3748 * cfgexpand.c (expand_gimple_basic_block): Do not handle
3749 GIMPLE_CHANGE_DYNAMIC_TYPE or CHANGE_DYNAMIC_TYPE_EXPR.
3750 * expr.c (expand_expr_real_1): Likewise.
3751 * gimple-low.c (lower_stmt): Likewise.
3752 * gimple-pretty-print.c (dump_gimple_stmt): Likewise.
3753 (dump_gimple_cdt): Remove.
3754 * gimple.c (gss_for_code): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
3755 (gimple_size): Likewise.
3756 (walk_gimple_op): Likewise.
3757 (is_gimple_stmt): Likewise.
3758 (walk_stmt_load_store_addr_ops): Likewise.
3759 (gimple_build_cdt): Remove.
3760 * gimple.def (GIMPLE_CHANGE_DYNAMIC_TYPE): Remove.
3761 * gimple.h (gimple_cdt_new_type): Remove.
3762 (gimple_cdt_new_type_ptr): Likewise.
3763 (gimple_cdt_set_new_type): Likewise.
3764 (gimple_cdt_location): Likewise.
3765 (gimple_cdt_location_ptr): Likewise.
3766 (gimple_cdt_set_location): Likewise.
3767 * gimplify.c (gimplify_expr): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
3768 * tree-cfg.c (remove_useless_stmts_1): Do not handle
3769 GIMPLE_CHANGE_DYNAMIC_TYPE.
3770 (verify_types_in_gimple_stmt): Likewise.
3771 * tree-inline.c (estimate_num_insns): Likewise.
3772 (expand_call_inline): Do not copy DECL_NO_TBAA_P.
3773 (copy_decl_to_var): Likewise.
3774 (copy_result_decl_to_var): Likewise.
3775 * tree-pretty-print.c (dump_generic_node): Do not handle
3776 CHANGE_DYNAMIC_TYPE_EXPR.
3777 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
3778 * tree-ssa-operands.c (get_expr_operands): Likewise.
3779 * tree-ssa-structalias.c (struct variable_info): Remove
3780 no_tbaa_pruning member.
3781 (new_var_info): Do not set it based on DECL_NO_TBAA_P.
3782 (unify_nodes): Do not copy it.
3783 (find_func_aliases): Do not handle GIMPLE_CHANGE_DYNAMIC_TYPE.
3784 (dump_solution_for_var): Do not dump no_tbaa_pruning state.
3785 (set_uids_in_ptset): Do not check it.
3786 (find_what_var_points_to): Likewise.
3787 (compute_tbaa_pruning): Remove.
3788 (compute_points_to_sets): Do not call it.
3789 * tree.c (walk_tree_1): Do not handle CHANGE_DYNAMIC_TYPE_EXPR.
3790 * tree.def (CHANGE_DYNAMIC_TYPE_EXPR): Remove.
3791 * tree.h (CHANGE_DYNAMIC_TYPE_NEW_TYPE): Remove.
3792 (CHANGE_DYNAMIC_TYPE_LOCATION): Likewise.
3793 (DECL_NO_TBAA_P): Likewise.
3794 (struct tree_decl_common): Move no_tbaa_flag to unused flags section.
3795 * omp-low.c (copy_var_decl): Do not copy DECL_NO_TBAA_P.
3796 (expand_omp_atomic_pipeline): Do not set it.
3797 * print-tree.c (print_node): Do not dump it.
3798 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
3799 redundant check.
3800
83a6ac60
VM
38012009-05-22 Vladimir Makarov <vmakarov@redhat.com>
3802
3803 PR target/39856
3804 * reg-stack.c (subst_stack_regs_pat): Remove gcc_assert for note
3805 for clobber.
3806
fe2978fb
MM
38072009-05-22 Mark Mitchell <mark@codesourcery.com>
3808
3809 * tree.c (handle_dll_attribute): Mark dllexport'd inlines as
3810 non-external.
3811
134ef638
BE
38122009-05-22 Ben Elliston <bje@au.ibm.com>
3813
3814 * Makefile.in (bversion.h, s-bversion): New targets.
3815 (TOPLEV_H): Add bversion.h.
3816 * toplev.h: Include "bversion.h".
3817 (ATTRIBUTE_GCC_DIAG): When building with checking disabled, use
3818 the __format__ attribute only if compiling with the same version
3819 of GCC as the sources (the "build version").
3820
52fc669d
BE
38212009-05-22 Ben Elliston <bje@au.ibm.com>
3822
3823 * c-format.c (handle_format_attribute): Fix comment typo.
3824
583ca921
SE
38252009-05-21 Steve Ellcey <sje@cup.hp.com>
3826
3827 PR target/37846
3828 * config/ia64/ia64.opt (mfused-madd): New.
3829 * config/ia64/ia64.h (TARGET_DEFAULT): Set MASK_FUSED_MADD.
3830 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3831 * config/ia64/ia64.md (maddsf4, msubsf4, nmaddsf4,
3832 madddf4, madddf4_trunc, msubdf4, msubdf4_trunc, nmadddf4,
3833 nmadddf4_truncsf, maddxf4, maddxf4_truncsf, maddxf4_truncdf,
3834 msubxf4, msubxf4_truncsf msubxf4_truncdf, nmaddxf4,
3835 nmaddxf4_truncsf, nmaddxf4_truncdf): Check TARGET_FUSED_MADD.
3836 * config/ia64/vect.md (addv2sf3, subv2sf3): Force fpma/fpms
3837 instruction if !TARGET_FUSED_MADD.
3838 (fpma, fpms): Remove colon from name.
3839
150e3929
RG
38402009-05-22 Richard Guenther <rguenther@suse.de>
3841
3842 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record
3843 TMR_ORIGINAL. Always either record TMR_SYMBOL or TMR_BASE.
3844 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
3845 TARGET_MEM_REF.
3846 (create_expression_by_pieces): Only convert if necessary.
3847 * gimplify.c (gimplify_expr): Handle TARGET_MEM_REF.
3848 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Handle INTEGER_CST.
3849
9a2b090c
AN
38502009-05-21 Adam Nemet <anemet@caviumnetworks.com>
3851
3852 * config/mips/mips.md (*extzv_trunc<mode>_exts): Turn into a
3853 regular pattern from a template and rename it ...
3854 (*extzv_truncsi_exts): ... to this.
3855
33b92c9d
RG
38562009-05-21 Richard Guenther <rguenther@suse.de>
3857
3858 * cgraph.h (struct cgraph_node): Remove inline_decl member.
3859 * ipa-inline.c (cgraph_mark_inline_edge): Do not check it.
3860 (cgraph_default_inline_p): Likewise.
3861 (cgraph_decide_inlining_incrementally): Likewise.
3862
cabf85c3
L
38632009-05-21 H.J. Lu <hongjiu.lu@intel.com>
3864 Uros Bizjak <ubizjak@gmail.com>
3865
3866 * config/i386/cpuid.h (bit_MOVBE): New.
3867
3868 * config/i386/driver-i386.c (host_detect_local_cpu): Check movbe.
3869
3870 * config/i386/i386.c (OPTION_MASK_ISA_MOVBE_SET): New.
3871 (OPTION_MASK_ISA_MOVBE_UNSET): Likewise.
3872 (ix86_handle_option): Handle OPT_mmovbe.
3873 (ix86_target_string): Add -mmovbe.
3874 (pta_flags): Add PTA_MOVBE.
3875 (processor_alias_table): Add PTA_MOVBE to "atom".
3876 (override_options): Handle PTA_MOVBE.
3877
3878 * config/i386/i386.h (TARGET_MOVBE): New.
3879
3880 * config/i386/i386.md (bswapsi2): Check TARGET_MOVBE.
3881 (*bswapsi_movbe): New.
3882 (*bswapdi_movbe): Likewise.
3883 (bswapdi2): Renamed to ...
3884 (*bswapdi_1): This.
3885 (bswapdi2): New expander.
3886
3887 * config/i386/i386.opt (mmovbe): New.
3888
3889 * doc/invoke.texi: Document -mmovbe.
3890
9fefa0aa
TG
38912009-05-21 Taras Glek <tglek@mozilla.com>
3892
3893 * plugin.c (try_init_one_plugin): Updated to new plugin_init API.
3894 * gcc-plugin.h (plugin_init): Updated signature.
3895 * gcc-plugin.h (plugin_name_args): Moved to this header.
cabf85c3
L
3896 * doc/plugins.texi (plugin_init): Updated documention to reflect
3897 API change.
9fefa0aa
TG
3898 * doc/plugins.texi (plugin_name_args): Added to documention.
3899
1ea9fe56
MM
39002009-05-21 Mark Mitchell <mark@codesourcery.com>
3901
3902 * config/arm/neon.md (*mul<mode>3add<mode>_neon): New pattern.
3903 (*mul<mode>3neg<mode>add<mode>_neon): Likewise.
3904
52f84254
SZ
39052009-05-21 Shujing Zhao <pearly.zhao@oracle.com>
3906
3907 * config/i386/i386.c: Use REG_P, MEM_P, CONST_INT_P, LABEL_P and
3908 JUMP_TABLE_DATA_P predicates where applicable.
3909 * config/i386/predicates.md: Ditto.
3910 * config/i386/sse.md: Ditto.
3911
a952487c
JJ
39122009-05-21 Jakub Jelinek <jakub@redhat.com>
3913
93cac287
JJ
3914 * config/i386/i386.md (adddi_4_rex64, addsi_4, addhi_4): For
3915 operand2 -128 override length_immediate attribute to 1.
3916 * config/i386/predicates.md (constm128_operand): New predicate.
3917
a952487c
JJ
3918 * config/i386/i386.c (memory_address_length): Handle %r12
3919 the same as %rsp and %r13 the same as %rbp. For %rsp and %rbp
3920 also check REGNO.
3921 (ix86_attr_length_address_default): For MODE_SI lea in 64-bit
3922 mode look through optional ZERO_EXTEND and SUBREG.
3923 * config/i386/i386.md (R12_REG): New define_constant.
3924 (prefix_data16): For sse unit set also for MODE_TI insns.
3925 (prefix_rex): For -m32 always return 0. For TYPE_IMOVX
3926 insns set if operand 1 is ext_QIreg_operand.
3927 (modrm): For TYPE_IMOV clear only if not MODE_DI. For
3928 TYPE_{ALU{,1},ICMP,TEST} insn clear if there is non-shortened
3929 immediate.
3930 (*movdi_extzv_1, zero_extendhidi2, zero_extendqidi2): Change
3931 mode from MODE_DI to MODE_SI.
3932 (movdi_1_rex64): Override modrm and length_immediate attributes
3933 only for movabs (TYPE_IMOV, alternative 2).
3934 (zero_extendsidi2_rex64): Clear prefix_0f attribute if TYPE_IMOVX.
3935 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit,
3936 *float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit,
3937 *float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit,
3938 *float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Set
3939 prefix_rex attribute if DImode.
3940 (*adddi_1_rex64, *adddi_2_rex64, *adddi_3_rex64, *adddi_5_rex64,
3941 *addsi_1, *addsi_1_zext, *addsi_2, *addsi_2_zext, *addsi_3,
3942 *addsi_3_zext, *addsi_5, *addhi_1_lea, *addhi_1, *addhi_2, *addhi_3,
3943 *addhi_5, *addqi_1_lea, *addqi_1): Override length_immediate
3944 attribute to 1 if TYPE_ALU and operand 2 is const128_operand.
3945 (pro_epilogue_adjust_stack_1, pro_epilogue_adjust_stack_rex64):
3946 Likewise. For TYPE_IMOV clear length_immediate attribute.
3947 (*ashldi3_1_rex64, *ashldi3_cmp_rex64, *ashldi3_cconly_rex64,
3948 *ashlsi3_1, *ashlsi3_1_zext, *ashlsi3_cmp, **ashlsi3_cconly,
3949 *ashlsi3_cmp_zext, *ashlhi3_1_lea, *ashlhi3_1, *ashlhi3_cmp,
3950 *ashlhi3_cconly, *ashlqi3_1_lea, *ashlqi3_1, *ashlqi3_cmp,
3951 *ashlqi3_cconly): Override length_immediate attribute to 0 if TYPE_ALU
3952 or one operand TYPE_ISHIFT.
3953 (*ashrdi3_1_one_bit_rex64, *ashrdi3_one_bit_cmp_rex64,
3954 *ashrdi3_one_bit_cconly_rex64, *ashrsi3_1_one_bit,
3955 *ashrsi3_1_one_bit_zext, *ashrsi3_one_bit_cmp,
3956 *ashrsi3_one_bit_cconly, *ashrsi3_one_bit_cmp_zext,
3957 *ashrhi3_1_one_bit, *ashrhi3_one_bit_cmp, *ashrhi3_one_bit_cconly,
3958 *ashrqi3_1_one_bit, *ashrqi3_1_one_bit_slp, *ashrqi3_one_bit_cmp,
3959 *ashrqi3_one_bit_cconly, *lshrdi3_1_one_bit_rex64,
3960 *lshrdi3_cmp_one_bit_rex64, *lshrdi3_cconly_one_bit_rex64,
3961 *lshrsi3_1_one_bit, *lshrsi3_1_one_bit_zext, *lshrsi3_one_bit_cmp,
3962 *lshrsi3_one_bit_cconly, *lshrsi3_cmp_one_bit_zext,
3963 *lshrhi3_1_one_bit, *lshrhi3_one_bit_cmp, *lshrhi3_one_bit_cconly,
3964 *lshrqi3_1_one_bit, *lshrqi3_1_one_bit_slp, *lshrqi2_one_bit_cmp,
3965 *lshrqi2_one_bit_cconly, *rotlsi3_1_one_bit_rex64, *rotlsi3_1_one_bit,
3966 *rotlsi3_1_one_bit_zext, *rotlhi3_1_one_bit, *rotlqi3_1_one_bit_slp,
3967 *rotlqi3_1_one_bit, *rotrdi3_1_one_bit_rex64, *rotrsi3_1_one_bit,
3968 *rotrsi3_1_one_bit_zext, *rotrhi3_one_bit, *rotrqi3_1_one_bit,
3969 *rotrqi3_1_one_bit_slp): Override length_immediate attribute to 0,
3970 set mode attribute, don't override length attribute.
3971 (*btsq, *btrq, *btcq, *btdi_rex64, *btsi): Set prefix_0f attribute
3972 to 1.
3973 (return_internal_long): Set length attribute to 2 instead of 1.
3974 (*strmovqi_rex_1, *strsetqi_rex_1, *rep_stosqi_rex64,
3975 *cmpstrnqi_nz_rex_1, *cmpstrnqi_rex_1, *strlenqi_rex_1): Clear
3976 prefix_rex attribute.
782dc37a
UB
3977 * config/i386/predicates.md (ext_QIreg_operand, const128_operand):
3978 New predicates.
3979 (memory_displacement_only_operand): Always return 0 for TARGET_64BIT.
a952487c 3980
64af62c2
RR
39812009-05-21 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3982
3983 * config/arm/thumb2.md (orsi_notsi_si): Fix typo in pattern.
3984
c166b898
ILT
39852009-05-20 Ian Lance Taylor <iant@google.com>
3986
3987 * tree.c (build_tree_list_vec_stat): New function.
3988 (ctor_to_vec): New function.
3989 (build_nt_call_vec): New function.
3990 (build_call_array): Change args to be a const pointer.
3991 (build_call_vec): New function.
3992 * tree.h (build_nt_call_vec): Declare.
3993 (build_tree_list_vec_stat): Declare.
3994 (build_tree_list_vec): Define.
3995 (build_call_array): Update declaration.
3996 (build_call_vec): Declare.
3997 (ctor_to_vec): Declare.
3998 * c-common.c (tree_vector_cache): New static variable.
3999 (make_tree_vector): New function.
4000 (release_tree_vector): New function.
4001 (make_tree_vector_single): New function.
4002 (make_tree_vector_copy): New function.
4003 * c-common.h (tree_vector_cache, make_tree_vector): Declare.
4004 (make_tree_vector_single, make_tree_vector_copy): Declare.
4005 * c-parser.c (cached_expr_list_1, cached_expr_list_2): Remove.
4006 (c_parser_expr_list): Don't manage cache here, instead call
4007 make_tree_vector.
4008 (c_parser_release_expr_list): Remove static function.
4009 (c_parser_vec_to_tree_list): Remove static function.
4010 (c_parser_attributes): Call build_tree_list_vec instead of
4011 c_parser_vec_to_tree_list. Call release_tree_vector instead of
4012 c_parser_release_expr_list.
4013 (c_parser_postfix_expression_after_primary): Likewise.
4014 (c_parser_objc_keywordexpr): Likewise.
4015
40449a90
SL
40162009-05-20 Sandra Loosemore <sandra@codesourcery.com>
4017
4018 * doc/tm.texi (Misc): Document TARGET_INVALID_PARAMETER_TYPE,
4019 TARGET_INVALID_RETURN_TYPE, TARGET_PROMOTED_TYPE, and
4020 TARGET_CONVERT_TO_TYPE.
4021 * hooks.c (hook_tree_const_tree_null): Define.
4022 * hooks.h (hook_tree_const_tree_null): Declare.
4023 * target.h (struct gcc_target): Add invalid_parameter_type,
4024 invalid_return_type, promoted_type, and convert_to_type fields.
4025 * target-def.h: (TARGET_INVALID_PARAMETER_TYPE): Define.
4026 (TARGET_INVALID_RETURN_TYPE): Define.
4027 (TARGET_PROMOTED_TYPE): Define.
4028 (TARGET_CONVERT_TO_TYPE): Define.
4029 (TARGET_INITIALIZER): Update for new fields.
4030 * c-decl.c (grokdeclarator): Check targetm.invalid_return_type.
4031 (grokparms): Check targetm.invalid_parameter_type.
4032 * c-typeck.c (default_conversion): Check targetm.promoted_type.
4033 * c-convert.c (convert): Check targetm.convert_to_type.
4034
642d97ff
AN
40352009-05-20 Adam Nemet <anemet@caviumnetworks.com>
4036
4037 * config/mips/mips.md (*extenddi_truncate<mode>,
4038 *extendsi_truncate<mode>): Emit exts if supported. Add attribute
4039 defintions.
4040 (*extendhi_truncateqi): New define_insn_and_sptit.
4041
776248b8
JJ
40422009-05-20 Jakub Jelinek <jakub@redhat.com>
4043
4044 PR middle-end/40204
4045 * fold-const.c (fold_binary) <case BIT_AND_EXPR>: Avoid infinite
782dc37a 4046 recursion if build_int_cst_type returns the same INTEGER_CST as arg1.
776248b8 4047
d98e8686
EB
40482009-05-20 Eric Botcazou <ebotcazou@adacore.com>
4049
4050 * fold-const.c (build_fold_addr_expr_with_type): Take the address of
4051 the operand of VIEW_CONVERT_EXPR.
4052
37c50435
L
40532009-05-20 H.J. Lu <hongjiu.lu@intel.com>
4054
4055 * config/i386/driver-i386.c (host_detect_local_cpu): Check
f3afc8a7 4056 extended family and model for Intel processors. Support Intel Atom.
37c50435 4057
dbb6088f
OH
40582009-05-20 Olivier Hainque <hainque@adacore.com>
4059
4060 * gstab.h (stab_code_type): Define, to be used instead of the
4061 __stab_debug_code enum, made anonymous. Add 2009 to the copyright
4062 notice.
4063 * dbxout.c (STAB_CODE_TYPE): Remove #define and replace use
4064 occurrences by stab_code_type.
4065 * mips-tfile.c (STAB_CODE_TYPE): Remove #define, unused.
4066
7ec49257
MJ
40672009-05-20 Martin Jambor <mjambor@suse.cz>
4068
4069 * tree-flow.h (insert_edge_copies_seq): Undeclare.
4070 (sra_insert_before): Likewise.
4071 (sra_insert_after): Likewise.
4072 (sra_init_cache): Likewise.
4073 (sra_type_can_be_decomposed_p): Likewise.
4074 * tree-mudflap.c (insert_edge_copies_seq): Copied here from tree-sra.c
4075 * tree-sra.c (sra_type_can_be_decomposed_p): Made static.
4076 (sra_insert_before): Likewise.
4077 (sra_insert_after): Likewise.
4078 (sra_init_cache): Likewise.
4079 (insert_edge_copies_seq): Made static and moved upwards.
4080
4081 * tree-complex.c (extract_component): Added VIEW_CONVERT_EXPR switch
4082 case.
4083
4084 * tree-flow-inline.h (contains_view_convert_expr_p): New function.
4085
4086 * ipa-prop.c (get_ssa_def_if_simple_copy): New function.
4087 (determine_cst_member_ptr): Call get_ssa_def_if_simple_copy to skip
4088 simple copies.
4089
0328ae4d
RG
40902009-05-20 Richard Guenther <rguenther@suse.de>
4091
4092 * expr.c (expand_expr_real_1): Avoid calling do_store_flag
4093 with mismatched comparison modes.
4094
a7994a57 40952009-05-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
782dc37a 4096
a7994a57 4097 * config/arm/arm.md (*arm_iorsi3): Refactored for only ARM.
782dc37a
UB
4098 (peephole ior (reg, int) -> mov, ior): Refactored for only ARM.
4099 * config/arm/thumb2.md (*thumb_andsi_not_shiftsi_si): Allow bic
4100 with shifts for Thumb2.
4101 (orsi_notsi): New for orn.
4102 (*thumb_orsi_notshiftsi_si): Allow orn with shifts.
4103 (*thumb2_iorsi3): Rewrite support for iorsi for Thumb2.
4104 * config/arm/arm.c (const_ok_for_op): Split case for IOR for Thumb2.
4105 (arm_gen_constant): Set can_invert for IOR and Thumb2, Add comments.
4106 Don't invert remainder for IOR.
a7994a57 4107
e36dc339
ZD
41082009-05-19 Zdenek Dvorak <ook@ucw.cz>
4109
4110 PR tree-optimization/40087
4111 * tree-ssa-loop-niter.c (number_of_iterations_ne_max,
4112 number_of_iterations_ne): Rename never_infinite argument.
4113 (number_of_iterations_lt_to_ne, number_of_iterations_lt,
4114 number_of_iterations_le): Handle pointer-type ivs when
4115 exit_must_be_taken is false.
4116 (number_of_iterations_cond): Do not always assume that
4117 exit_must_be_taken if the control variable is a pointer.
4118
5cfd5d9b
AP
41192009-05-19 Andrew Pinski <andrew_pinski@playstation.sony.com>
4120
4121 * c-typeck.c (build_binary_op): Allow % on integal vectors.
4122 * doc/extend.texi (Vector Extension): Document that % is allowed too.
4123
2f1c7156
L
41242009-05-19 H.J. Lu <hongjiu.lu@intel.com>
4125
4126 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Check
4127 ASM_OUTPUT_MAX_SKIP_PAD instead of ASM_OUTPUT_MAX_SKIP_ALIGN.
4128
7bb27074
MLI
41292009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4130
4131 PR c/40172
4132 * c.opt (Wlogical-op): Disabled by default.
4133 * c-opt (c_common_post_options): Do not enable Wlogical-op with
4134 Wextra.
4135 * doc/invoke.texi (Wlogical-op): Likewise.
4136
5aefc6a0
EB
41372009-05-19 Eric Botcazou <ebotcazou@adacore.com>
4138
4139 * tree-scalar-evolution.c (follow_ssa_edge_expr) <NOP_EXPR>: Turn
4140 into CASE_CONVERT.
4141 <PLUS_EXPR>: Strip useless type conversions instead of type nops.
4142 Propagate the type of the first operand.
4143 <ASSERT_EXPR>: Simplify.
4144 (follow_ssa_edge_in_rhs): Use gimple_expr_type to get the type.
4145 Rewrite using the RHS code as discriminant.
4146 <NOP_EXPR>: Turn into CASE_CONVERT.
4147 <PLUS_EXPR>: Propagate the type of the first operand.
4148
f3a83111
SE
41492009-05-19 Steve Ellcey <sje@cup.hp.com>
4150
4151 * config/ia64/ia64-protos.h (ia64_dconst_0_5): New.
4152 (ia64_dconst_0_375): New.
4153 * config/ia64/ia64.c (ia64_override_options): Remove
4154 -minline-sqrt-min-latency warning.
4155 (ia64_dconst_0_5_rtx, ia64_dconst_0_5): New.
4156 (ia64_dconst_0_375_rtx, ia64_dconst_0_375): New
4157 * config/ia64/ia64.md (*sqrt_approx): Remove.
4158 (sqrtsf2): Remove #if 0.
4159 (sqrtsf2_internal_thr): Rewrite and move to div.md.
4160 (sqrtdf): Remove assert.
4161 (sqrtdf2_internal_thr): Rewrite and move to div.md.
4162 (sqrtxf2): Remove #if 0.
4163 (sqrtxf2_internal_thr): Rewrite and move to div.md.
4164 * div.md (sqrt_approx_rf): New.
4165 (sqrtsf2_internal_thr): New implementation.
4166 (sqrtsf2_internal_lat): New.
4167 (sqrtdf2_internal_thr: New implementation.
4168 (sqrtxf2_internal): New implementation.
4169
1ffc7157
FXC
41702009-05-19 Francois-Xavier Coudert <fxcoudert@gmail.com>
4171 Hans-Peter Nilsson <hp@axis.com>
4172
4173 * defaults.h (UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE)
4174 (WCHAR_TYPE, MODIFIED_WCHAR_TYPE, PTRDIFF_TYPE, WINT_TYPE)
4175 (INTMAX_TYPE, UINTMAX_TYPE, SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE)
4176 (INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE)
4177 (UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE)
4178 (INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE)
4179 (UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE)
4180 (INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE)
4181 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE)
4182 (SIZE_TYPE, PID_TYPE, CHAR16_TYPE, CHAR32_TYPE): Move defaults here...
4183 * c-common.c: ...from here.
4184
db91d9ef
MLI
41852009-05-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
4186
f3afc8a7 4187 * c-common.c (warn_logical_operator): Remove unnecessary conditionals.
db91d9ef 4188
bbb9d91f
KG
41892009-05-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4190
4191 * builtins.c (do_mpc_arg1): Separate MPFR/MPC C rounding types.
4192
ce883f54
BE
41932009-05-19 Ben Elliston <bje@au.ibm.com>
4194
4195 * unwind-dw2-fde.c (fde_unencoded_compare): Replace type punning
4196 assignments with memcpy calls.
4197 (add_fdes): Likewise.
4198 (binary_search_unencoded_fdes): Likewise.
4199 (linear_search_fdes): Eliminate type puns.
4200
377f099a
RG
42012009-05-19 Richard Guenther <rguenther@suse.de>
4202
4203 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do
4204 not falsely claim to have propagated into all uses.
4205
848bc769
BE
42062009-05-19 Ben Elliston <bje@au.ibm.com>
4207
4208 * doc/invoke.texi (C Dialect Options): Update OpenMP specification
4209 version to v3.0.
4210
1bb99877
KK
42112009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
4212
4213 * config/sh/sh-protos.h (sh_legitimate_address_p): Remove.
4214 * config/sh/sh.c (sh_legitimate_address_p): Make static.
4215 (TARGET_LEGITIMATE_ADDRESS_P): New.
4216 * config/sh/sh.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4217 * config/sh/sh.md: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
4218
82725547
DS
42192009-05-18 Dodji Seketeli <dodji@redhat.com>
4220
4221 PR debug/40109
4222 * dwarf2out.c (gen_type_die_with_usage): Generate the DIE as a
4223 child of the containing namespace's DIE.
4224
f6a1e430
AN
42252009-05-18 Adam Nemet <anemet@caviumnetworks.com>
4226
4227 * config/mips/mips.md (*zero_extend<GPR:mode>_trunc<SHORT:mode>,
4228 *zero_extendhi_truncqi): Move after the zero_extend patterns.
4229 (*extenddi_truncate<mode>, *extendsi_truncate<mode>): Move after the
4230 extend patterns.
4231
6a90d232
L
42322009-05-18 H.J. Lu <hongjiu.lu@intel.com>
4233
4234 PR target/39942
4235 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Replace
4236 gen_align with gen_pad.
4237 (ix86_reorg): Check ASM_OUTPUT_MAX_SKIP_PAD instead of
4238 #ifdef ASM_OUTPUT_MAX_SKIP_ALIGN.
4239
4240 * config/i386/i386.h (ASM_OUTPUT_MAX_SKIP_PAD): New.
4241 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_PAD): Likewise.
4242
4243 * config/i386/i386.md (align): Renamed to ...
4244 (pad): This. Replace ASM_OUTPUT_MAX_SKIP_ALIGN with
4245 ASM_OUTPUT_MAX_SKIP_PAD.
4246
c4406f74
AS
42472009-05-18 Andreas Schwab <schwab@linux-m68k.org>
4248
06555043
AS
4249 * config.gcc: Fix variable syntax.
4250
c4406f74
AS
4251 PR target/39531
4252 * config/m68k/m68k.c (output_andsi3): Mask off sign bit copies
4253 before calling exact_log2.
4254 (output_iorsi3): Likewise.
4255 (output_xorsi3): Likewise.
4256
99052692
KK
42572009-05-18 Kaz Kojima <kkojima@gcc.gnu.org>
4258
4259 * config/sh/sh.c (expand_cbranchdi4): Use a scratch register
4260 for the none zero constant operand except for EQ and NE
4261 comprisons even when the first operand is R0.
4262
f4aa3848
AK
42632009-05-18 Andreas Krebbel <krebbel1@de.ibm.com>
4264
4265 * config/s390/2064.md: Remove trailing whitespaces.
4266 * config/s390/2084.md: Likewise.
4267 * config/s390/constraints.md: Likewise.
4268 * config/s390/fixdfdi.h: Likewise.
4269 * config/s390/libgcc-glibc.ver: Likewise.
4270 * config/s390/s390-modes.def: Likewise.
4271 * config/s390/s390-protos.h: Likewise.
4272 * config/s390/s390.c: Likewise.
4273 * config/s390/s390.h: Likewise.
4274 * config/s390/s390.md: Likewise.
4275 * config/s390/tpf-unwind.h: Likewise.
4276
ab7256e4
MK
42772009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4278
4279 * config/m68k/m68k.c (m68k_legitimize_address): Fix typo in signature.
4280
75df395f
MK
42812009-05-18 Maxim Kuvyrkov <maxim@codesourcery.com>
4282
4283 M68K TLS support.
4284 * configure.ac (m68k-*-*): Check if binutils support TLS.
4285 * configure: Regenerate.
4286 * config/m68k/predicates.md (symbolic_operand): Extend comment.
4287 * config/m68k/constraints.md (Cu): New constraint.
4288 * config/m68k/m68k.md (UNSPEC_GOTOFF): Remove.
4289 (UNSPEC_RELOC16, UNSPEC_RELOC32): New constants.
4290 (movsi): Handle TLS symbols.
4291 (addsi3_5200): Handle XTLS symbols, indent.
4292 * config/m68k/m68k-protos.h (m68k_legitimize_tls_address): Declare.
4293 (m68k_tls_reference_p): Declare.
4294 (m68k_legitimize_address): Declare.
4295 (m68k_unwrap_symbol): Declare.
4296 * config/m68k/m68k.opt (mxtls): New option.
4297 * config/m68k/m68k.c (ggc.h): Include.
4298 (m68k_output_dwarf_dtprel): Implement hook.
4299 (TARGET_HAVE_TLS, TARGET_ASM_OUTPUT_DWARF_DTPREL): Define.
4300 (m68k_expand_prologue): Load GOT pointer when function needs it.
4301 (m68k_illegitimate_symbolic_constant_p): Handle TLS symbols.
4302 (m68k_legitimate_constant_address_p): Same.
4303 (m68k_decompose_address): Handle TLS references.
4304 (m68k_get_gp): New static function.
4305 (enum m68k_reloc): New contants.
4306 (TLS_RELOC_P): New macro.
4307 (m68k_wrap_symbol): New static function.
4308 (m68k_unwrap_symbol): New function.
4309 (m68k_final_prescan_insn_1): New static function.
4310 (m68k_final_prescan_insn): New function.
4311 (m68k_move_to_reg, m68k_wrap_symbol_into_got_ref): New static
4312 functions.
4313 (legitimize_pic_address): Handle TLS references..
4314 (m68k_tls_get_addr, m68k_get_tls_get_addr)
4315 (m68k_libcall_value_in_a0_p)
4316 (m68k_call_tls_get_addr, m68k_read_tp, m68k_get_m68k_read_tp)
4317 (m68k_call_m68k_read_tp): Helper variables and functions for ...
4318 (m68k_legitimize_tls_address): Handle TLS references.
4319 (m68k_tls_symbol_p, m68k_tls_reference_p_1, m68k_tls_reference_p):
4320 New functions.
4321 (m68k_legitimize_address): Handle TLS symbols.
4322 (m68k_get_reloc_decoration): New static function.
4323 (m68k_output_addr_const_extra): Handle UNSPEC_RELOC16 and
4324 UNSPEC_RELOC32.
4325 (m68k_output_dwarf_dtprel): Implement hook.
4326 (print_operand_address): Handle UNSPEC_RELOC16 adn UNSPEC_RELOC32.
4327 (m68k_libcall_value): Return result in A0 instead of D0 when asked by
4328 m68k_call_* routines.
4329 (sched_attr_op_type): Handle TLS symbols.
4330 (gt-m68k.h): Include.
4331 * config/m68k/m68k.h (FINAL_PRESCAN_INSN): Define.
4332 (LEGITIMATE_PIC_OPERAND_P): Support TLS.
4333
8b75fc9b
MJ
43342009-05-18 Martin Jambor <mjambor@suse.cz>
4335
4336 * ipa-prop.c (ipa_check_stmt_modifications): Removed.
4337 (visit_store_addr_for_mod_analysis): New function.
4338 (ipa_detect_param_modifications): Use walk_stmt_load_store_addr_ops.
4339 (determine_cst_member_ptr): Use gimple_assign_single_p.
4340 (ipa_get_stmt_member_ptr_load_param): Use gimple_assign_single_p.
4341 (ipa_analyze_call_uses): Use !gimple_assign_rhs2 rather than number of
4342 operands. Don't check number of operands of a NOP_EXPR.
4343
f133d4a2
EF
43442009-05-18 Eric Fisher <joefoxreal@gmail.com>
4345
4346 * doc/tree-ssa.texi (SSA Operands): Fix a mistake.
4347
ae8af500
L
43482009-05-17 Manuel López-Ibáñez <manu@gcc.gnu.org>
4349
4350 PR c/40172
4351 * c-common.c (warn_logical_operator): Don't warn if one of
4352 expression isn't always true or false.
4353
25e8fde8
KT
43542009-05-17 Kai Tietz <kai.tietz@onevision.com>
4355
ae8af500
L
4356 * config/i386/biarch32.h: New file.
4357 * config.gcc: Add for target i386-w64-* the biarch32.h to tm_file.
25e8fde8 4358
ef67af22
AN
43592009-05-17 Adam Nemet <anemet@caviumnetworks.com>
4360
4361 * config/mips/mips.md (*zero_extend<mode>_trunchi,
4362 *zero_extend<mode>_truncqi): Merge these into ...
4363 (*zero_extend<GPR:mode>_trunc<SHORT:mode>): ... this new pattern.
4364 Name the pattern following this as *zero_extendhi_truncqi.
4365
e2d87023
BL
43662009-05-16 Brad Lucier <lucier@math.purdue.edu>
4367
4368 PR middle-end/39301
4369 * hwint.h: Add macro HOST_WIDEST_INT_PRINT.
4370 * bitmap.c (bitmap_descriptor): Make fields HOST_WIDEST_INT.
4371 (output_info): Make field HOST_WIDEST_INT.
4372 (print_statistics): Use HOST_WIDEST_INT_PRINT.
4373 (dump_bitmat_statistics): Same.
4374
428ddbf0
FXC
43752009-05-16 Francois-Xavier Coudert <fxcoudert@gmail.com>
4376
4377 * config.gcc (use_gcc_stdint): Set to wrap.
4378 * config/darwin.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
4379 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
4380 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
4381 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
4382 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
4383 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
4384 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
4385 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
4386
1ab8a8c2
JM
43872009-05-16 Joseph Myers <joseph@codesourcery.com>
4388
4389 * config.gcc (mips*-*-*): Support arch_32, arch_64, tune_32 and
4390 tune_64.
4391 * config/mips/mips.h (MIPS_ABI_DEFAULT, MULTILIB_ABI_DEFAULT):
4392 Move definitions earlier.
4393 (OPT_ARCH64, OPT_ARCH32): Define.
4394 (OPTION_DEFAULT_SPECS): Add entries for arch_32, arch_64, tune_32
4395 and tune_64.
4396
70544f44
RE
43972009-05-16 Richard Earnshaw <rearnsha@arm.com>
4398
4399 PR target/40153
4400 * arm.md (cstoresi_nltu_thumb1): Use a neg of ltu as the pattern name
4401 implies.
4402
6241ded1
RE
44032009-05-16 Richard Earnshaw <rearnsha@arm.com>
4404
4405 * arm.md (movdi2): Copy non-reg values to DImode registers.
4406
a99c6711
JJ
44072009-05-16 Jakub Jelinek <jakub@redhat.com>
4408
40a8f07a
JJ
4409 PR target/39942
4410 * final.c (label_to_max_skip): New function.
4411 (label_to_alignment): Only use LABEL_TO_ALIGNMENT if
4412 CODE_LABEL_NUMBER <= max_labelno.
4413 * output.h (label_to_max_skip): New prototype.
4414 * config/i386/i386.c (ix86_avoid_jump_misspredicts): Renamed to...
4415 (ix86_avoid_jump_mispredicts): ... this. Don't define if
4416 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined. Update comment.
4417 Handle CODE_LABELs with >= 16 byte alignment or with
4418 max_skip == (1 << align) - 1.
4419 (ix86_reorg): Don't call ix86_avoid_jump_mispredicts if
4420 ASM_OUTPUT_MAX_SKIP_ALIGN isn't defined.
4421
a99c6711
JJ
4422 PR target/39942
4423 * config/i386/x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Don't emit second
4424 .p2align 3 if MAX_SKIP is smaller than 7.
4425 * config/i386/linux.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4426
7e5487a2
ILT
44272009-05-15 Ian Lance Taylor <iant@google.com>
4428
4429 * alias.c (struct alias_set_entry_d): Rename from struct
4430 alias_set_entry. Change all uses.
4431 * except.c (struct call_site_record_d): Rename from struct
4432 call_site_record. Change all uses.
4433 * except.h (struct eh_region_d): Rename from struct eh_region.
4434 Change all uses.
4435 * gcse.c (struct hash_table_d): Rename from struct hash_table.
4436 Change all uses.
4437 * graphite.c (struct ivtype_map_elt_d): Rename fromstruct
4438 ivtype_map_elt. Change all uses.
4439 (struct rename_map_elt_d): Rename fromstruct rename_map_elt.
4440 Change all uses.
4441 (struct ifsese_d): Rename fromstruct ifsese. Change all uses.
4442 * graphite.h (struct name_tree_d): Rename from struct name_tree.
4443 Change all uses.
4444 (struct sese_d): Rename from struct sese. Change all uses.
782dc37a
UB
4445 * omega.h (struct eqn_d): Rename from struct eqn. Change all uses.
4446 (struct omega_pb_d): Rename from struct omega_pb. Change all uses.
7e5487a2
ILT
4447 * optabs.h (struct optab_d): Rename from struct optab. Change all
4448 uses.
4449 (struct convert_optab_d): Rename from struct convert_optab.
4450 Change all uses.
4451 * tree-pass.h (struct ipa_opt_pass_d): Rename fromstruct
4452 ipa_opt_pass. Change all uses.
4453 * tree-predcom.c (struct dref_d): Rename from struct dref. Change
4454 all uses.
4455
4456 * c-decl.c (pushtag): If -Wc++-compat, warn if the tag is already
4457 defined as a typedef.
4458 (grokdeclarator): If -Wc++-compat, warn if a typedef is already
4459 defined as a tag.
4460
a243fb4a
MLI
44612009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4462
4463 PR 16302
4464 * fold-const.c (make_range,build_range_check,merge_ranges): Move
4465 declaration to...
4466 (merge_ranges): Returns bool.
4467 * tree.h (make_range): .. to here.
4468 (build_range_check): Likewise.
4469 (merge_ranges): Likewise. Renamed from merge_ranges.
4470 * c-typeck.c (parser_build_binary_op): Update calls to
4471 warn_logical_operator.
4472 * c-common.c (warn_logical_operator): Add new warning.
4473 * c-common.h (warn_logical_operator): Update declaration.
4474
1b53c5f3
MLI
44752009-05-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
4476
782dc37a 4477 * ira-conflicts.c (add_insn_allocno_copies): Fix wrong conditional.
1b53c5f3 4478
c128599a
KG
44792009-05-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
4480
f9bab007
KG
4481 * doc/install.texi: Document MPC requirements, flags etc.
4482
c128599a
KG
4483 * builtins.c (do_mpc_arg1, fold_builtin_ccos): New.
4484 (fold_builtin_cexp): Ensure we get a complex REAL_TYPE.
4485 Evaluate constant arguments.
4486 (fold_builtin_carg): Ensure we get a complex REAL_TYPE.
4487 (fold_builtin_1): Likewise, also evaluate constant arguments.
4488 Remove superfluous break.
4489 (do_mpc_ckconv): New.
4490 * real.h: Include mpc.h.
4491 * toplev.c (print_version): Output MPC version info if available.
4492
d33e4b70
SL
44932009-05-15 Sandra Loosemore <sandra@codesourcery.com>
4494
782dc37a 4495 * fold-const.c (fold_convert_const_real_from_real): Check for overflow.
d33e4b70 4496
a02ab464
L
44972009-05-15 H.J. Lu <hongjiu.lu@intel.com>
4498
4499 * config/i386/i386.c (ix86_reorg): Call optimize_function_for_speed_p
4500 only once.
4501
796bda22
JH
45022009-05-15 Jan Hubicka <jh@suse.cz>
4503
4504 * doc/invoke.texi (max-early-inliner-iterations): New flag.
4505 * ipa-inline.c (enum inlining_mode): New INLINE_SIZE_NORECURSIVE.
4506 (try_inline): Fix return value.
4507 (cgraph_decide_inlining_incrementally): Honor new value.
4508 (cgraph_early_inlining): Handle indirect inlining.
4509 * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): New.
4510
d88e5c37
JH
45112009-05-15 Jan Hubicka <jh@suse.cz>
4512
4513 * cgraph.h (struct cgraph_node): Add finalized_by_frotnend flag.
4514 * cgraphunit.c (cgraph_finalize_function): Set it.
4515 (cgraph_expand_function): Use it.
4516
ae63687c
SL
45172009-05-15 Sandra Loosemore <sandra@codesourcery.com>
4518
4519 * real.c (encode_ieee_half): Define.
4520 (decode_ieee_half): Define.
4521 (ieee_half_format): Define.
4522 (arm_half_format): Define.
4523 * real.h (ieee_half_format): Declare.
4524 (arm_half_format): Declare.
4525
1bd74ad9
SL
45262009-05-15 Sandra Loosemore <sandra@codesourcery.com>
4527
4528 * optabs.c (prepare_float_lib_cmp): Test that the comparison,
4529 swapped, and reversed optabs exist before trying to use them.
4530
dc34db56
PB
45312009-05-15 Paul Brook <paul@codesourcery.com>
4532 Sandra Loosemore <sandra@codesourcery.com>
4533
dc34db56
PB
4534 * config/arm/arm.c (neon_vector_mem_operand): Handle element/structure
4535 loads. Allow PRE_DEC.
4536 (output_move_neon): Handle PRE_DEC.
4537 (arm_print_operand): Add 'A' for neon structure loads.
4538 * config/arm/arm-protos.h (neon_vector_mem_operand): Update prototype.
4539 * config/arm/neon.md (neon_mov): Update comment.
4540 * config/arm/constraints.md (Un, Us): Update neon_vector_mem_operand
4541 calls.
4542 (Um): New constraint.
4543
1d405d7b
JH
45442009-05-15 Jan Hubicka <jh@suse.cz>
4545
4546 Revert the following patch until testsuite fallout is fixed:
4547 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
4548 * cgraph.h (struct inline_summary): New filed self_wize,
4549 size_inlining_benefit, self_time and time_inlining_benefit.
4550 (struct cgraph_global_info): Replace insns by time ans size fields.
4551 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
4552 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
4553 (ipcp_update_callgraph): Do not touch function bodies.
4554 * ipa-inline.c: Include except.h
782dc37a 4555 (MAX_TIME): New constant.
1d405d7b
JH
4556 (overall_insns): Remove
4557 (overall_size, max_benefit): New static variables.
4558 (cgraph_estimate_time_after_inlining): New function.
4559 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
4560 (cgraph_clone_inlined_nodes): Update size.
4561 (cgraph_mark_inline_edge): Update size.
4562 (cgraph_estimate_growth): Use size info.
4563 (cgraph_check_inline_limits): Check size.
4564 (cgraph_default_inline_p): Likewise.
4565 (cgraph_edge_badness): Compute badness based on benefit and size cost.
4566 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
4567 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
4568 and times.
1d405d7b 4569 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
4570 (cgraph_decide_inlining_incrementally): Likewise; honor
4571 PARAM_EARLY_INLINING_INSNS.
1d405d7b
JH
4572 (likely_eliminated_by_inlining_p): New predicate.
4573 (estimate_function_body_sizes): New function.
4574 (compute_inline_parameters): Use it.
4575 * except.c (must_not_throw_labels): New function.
4576 * except.h (must_not_throw_labels): Declare.
4577 * tree-inline.c (init_inline_once): Kill inlining_weigths
4578 * tree-ssa-structalias.c: Avoid uninitialized warning.
4579 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
4580 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
4581 (PARAM_INLINE_CALL_COST): Remove.
4582 (PARAM_EARLY_INLINING_INSNS): New.
4583
7ffa47ca
RG
45842009-05-15 Richard Guenther <rguenther@suse.de>
4585
4586 * tree-ssa-pre.c (eliminate): Use TODO_update_ssa_only_virtuals,
4587 not TODO_update_ssa.
4588
828552ed
RG
45892009-05-15 Richard Guenther <rguenther@suse.de>
4590
4591 PR tree-optimization/39999
4592 * gimple.h (gimple_expr_type): Use the expression type looking
4593 through useless conversions.
4594 * tree-ssa-sccvn.c (vn_nary_op_lookup_stmt): Use gimple_expr_type.
4595 (vn_nary_op_insert_stmt): Likewise.
4596 (simplify_binary_expression): Likewise.
4597
248fc9f3
RG
45982009-05-15 Richard Guenther <rguenther@suse.de>
4599
4600 * common.opt (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
4601 New options, enabled by default.
4602 * doc/invoke.texi (-ftree-forwprop, -ftree-phiprop, -ftree-pta):
4603 Document.
4604 * tree-ssa-forwprop.c (gate_forwprop): Use flag_tree_forwprop.
4605 * tree-ssa-phiprop.c (gate_phiprop): Use flag_tree_phiprop.
4606 * tree-ssa-structalias.c (gate_tree_pta): New function.
4607 (pass_build_alias): Use it.
4608
16b29cc4
JM
46092009-05-15 Joseph Myers <joseph@codesourcery.com>
4610
4611 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Also
4612 recurse on an invariant address if a conversion from a pointer
4613 type to a wider integer type is involved.
4614
125cae84
JH
46152009-05-15 Jan Hubicka <jh@suse.cz>
4616
4617 * cgraph.c (dump_cgraph_node): Dump size/time/benefit.
4618 * cgraph.h (struct inline_summary): New filed self_wize,
4619 size_inlining_benefit, self_time and time_inlining_benefit.
4620 (struct cgraph_global_info): Replace insns by time ans size fields.
4621 * ipa-cp (ipcp_cloning_candidate_p): Base estimate on size
4622 (ipcp_estimate_growth, ipcp_insert_stage): Likewise.
4623 (ipcp_update_callgraph): Do not touch function bodies.
4624 * ipa-inline.c: Include except.h
782dc37a 4625 (MAX_TIME): New constant.
125cae84
JH
4626 (overall_insns): Remove
4627 (overall_size, max_benefit): New static variables.
4628 (cgraph_estimate_time_after_inlining): New function.
4629 (cgraph_estimate_size_after_inlining): Rewrite using benefits.
4630 (cgraph_clone_inlined_nodes): Update size.
4631 (cgraph_mark_inline_edge): Update size.
4632 (cgraph_estimate_growth): Use size info.
4633 (cgraph_check_inline_limits): Check size.
4634 (cgraph_default_inline_p): Likewise.
4635 (cgraph_edge_badness): Compute badness based on benefit and size cost.
4636 (cgraph_decide_recursive_inlining): Check size.
f3afc8a7
UB
4637 (cgraph_decide_inlining_of_small_function): Update size; dump sizes
4638 and times.
125cae84 4639 (cgraph_decide_inlining): Likewise.
00c5fa1b
EB
4640 (cgraph_decide_inlining_incrementally): Likewise; honor
4641 PARAM_EARLY_INLINING_INSNS.
125cae84
JH
4642 (likely_eliminated_by_inlining_p): New predicate.
4643 (estimate_function_body_sizes): New function.
4644 (compute_inline_parameters): Use it.
4645 * except.c (must_not_throw_labels): New function.
4646 * except.h (must_not_throw_labels): Declare.
4647 * tree-inline.c (init_inline_once): Kill inlining_weigths
4648 * tree-ssa-structalias.c: Avoid uninitialized warning.
4649 * params.def (PARAM_MAX_INLINE_INSNS_SINGLE): Reduce to 300.
4650 (PARAM_MAX_INLINE_INSNS_AUTO): Reduce to 60.
4651 (PARAM_INLINE_CALL_COST): Remove.
4652 (PARAM_EARLY_INLINING_INSNS): New.
4653 doc/invoke.texi (max-inline-insns-auto, early-inlining-insns): Update.
4654 (inline-call-cost): Remove.
4655 (early-inlining-insns): New.
4656
84fb43a1
EB
46572009-05-15 Eric Botcazou <ebotcazou@adacore.com>
4658
4659 * dbxout.c (dbxout_range_type): Add LOW and HIGH parameters. Use them
4660 for bounds.
4661 (print_int_cst_bounds_in_octal_p): Likewise.
4662 (dbxout_type): Adjust calls to above functions. Be prepared to deal
4663 with subtypes.
4664 * dwarf2out.c (base_type_die): Likewise.
4665 (is_subrange_type): Delete.
4666 (subrange_type_die): Add LOW and HIGH parameters. Use them for bounds.
4667 (modified_type_die): Call subrange_type_for_debug_p on subtypes.
f3afc8a7
UB
4668 * fold-const.c (fold_truth_not_expr) <CONVERT_EXPR>: Do not strip it
4669 if the destination type is boolean.
84fb43a1
EB
4670 (build_range_check): Do not special-case subtypes.
4671 (fold_sign_changed_comparison): Likewise.
4672 (fold_unary): Likewise.
4673 * langhooks-def.h (LANG_HOOKS_GET_SUBRANGE_BOUNDS): Define.
4674 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add LANG_HOOKS_GET_SUBRANGE_BOUNDS.
4675 * langhooks.h (lang_hooks_for_types): Add get_subrange_bounds.
f3afc8a7
UB
4676 * tree.c (subrange_type_for_debug_p): New predicate based on the
4677 former is_subrange_type.
84fb43a1
EB
4678 * tree.h (subrange_type_for_debug_p): Declare.
4679 * tree-chrec.c (avoid_arithmetics_in_type_p): Delete.
4680 (convert_affine_scev): Remove call to above function.
4681 (chrec_convert_aggressive): Likewise.
4682 * tree-ssa.c (useless_type_conversion_p_1): Do not specifically return
4683 false for conversions involving subtypes.
4684 * tree-vrp.c (vrp_val_max): Do not special-case subtypes.
4685 (vrp_val_min): Likewise.
4686 (needs_overflow_infinity): Likewise.
4687 (extract_range_from_unary_expr): Likewise.
4688
331d9186
PB
46892009-05-15 Paolo Bonzini <bonzini@gnu.org>
4690
e9351712
L
4691 * config/frv/frv.h: Clean up references to GO_IF_LEGITIMATE_ADDRESS.
4692 * config/frv/frv.c: Likewise.
4693 * config/s390/s390.c: Likewise.
4694 * config/sparc/sparc.h: Likewise.
4695 * config/i386/i386.h: Likewise.
4696 * config/i386/i386.c: Likewise.
4697 * config/crx/crx.c: Likewise.
4698 * config/m68hc11/m68hc11.h: Likewise.
4699 * config/iq2000/iq2000.c: Likewise.
4700 * config/mn10300/mn10300.h: Likewise.
4701 * config/mn10300/mn10300.c: Likewise.
4702 * config/m68k/m68k.c: Likewise.
4703 * config/rs6000/rs6000.c: Likewise.
4704 * config/rs6000/xcoff.h: Likewise.
4705 * config/rs6000/linux64.h: Likewise.
4706 * config/rs6000/sysv4.h: Likewise.
4707 * config/score/score3.c: Likewise.
4708 * config/score/score7.c: Likewise.
4709 * config/score/score.c: Likewise.
4710 * config/arm/arm.md: Likewise.
4711 * config/mips/mips.c: Likewise.
4712 * config/mips/mips.md: Likewise.
4713 * config/bfin/bfin.h: Likewise.
4714 * config/pa/pa.c: Likewise.
4715 * config/pa/constraints.md: Likewise.
4716
4717 * config/pdp11/pdp11-protos.h (legitimate_address_p): Delete.
4718 * config/pdp11/pdp11.c (legitimate_address_p): Delete.
4719 * config/pdp11/pdp11.h: Use memory_address_p instead.
331d9186 4720
09639a83
ILT
47212009-05-14 Ian Lance Taylor <iant@google.com>
4722
4723 * passes.c (finish_optimization_passes): Change i to int.
4724 * plugin.c (plugins_active_p): Change event to int.
4725 (dump_active_plugins): Likewise.
4726 * reginfo.c (invalid_mode_change_p): Change to to unsigned int.
4727 Add cast.
4728 * tree.c (tree_range_check_failed): Change c to unsigned int.
4729 (omp_clause_range_check_failed): Likewise.
4730 (build_common_builtin_nodes): Change mode to int. Add cast.
4731 * config/ia64/ia64.c (is_emitted): Change r to unsigned int.
4732 (ia64_hard_regno_rename_ok, ia64_eh_uses): Likewise.
4733
4734 * c-typeck.c (build_unary_op): If -Wc++-compat, warn about using
4735 ++ or -- with a variable of enum type.
4736
c04a56bf
SB
47372009-05-14 Steven Bosscher <steven@gcc.gnu.org>
4738
4739 PR driver/40144
4740 * opts.c (common_handle_option): Add OPT_fcse_skip_blocks as a no-op.
4741
237ee620
SB
47422009-05-14 Steven Bosscher <steven@gcc.gnu.org>
4743
4744 * store-motion.c: Do not include params.h
4745 * Makefile.in: Fix dependencies for various files.
4746
1154c4fa
SB
47472009-05-14 Steven Bosscher <steven@gcc.gnu.org>
4748
4749 * auto-inc-dec.c: Fix pass description, remove apparent
4750 accidental duplication.
4751
61c27353
L
47522009-05-14 H.J. Lu <hongjiu.lu@intel.com>
4753
4754 PR middle-end/40147
4755 * ipa-utils.h (memory_identifier_string): Moved to ...
4756 * tree.h (memory_identifier_string): Here. Add GTY(()).
4757
c6c3dba9
PB
47582009-05-14 Paolo Bonzini <bonzini@gnu.org>
4759
4760 * doc/tm.texi (TARGET_LEGITIMATE_ADDRESS_P): Refer mainly to this
4761 in the former documentation of...
4762 (GO_IF_LEGITIMATE_ADDRESS): ... this.
4763 * ira-conflicts.c (get_dup_num): Use address_operand.
4764 * targhooks.c (default_legitimate_address_p): New.
4765 * targhooks.h (default_legitimate_address_p): New.
4766 * reload.c (strict_memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]:
4767 Call hook.
4768 * recog.c (memory_address_p) [!GO_IF_LEGITIMATE_ADDRESS]: Call hook.
4769 * target.h (struct target): Add legitimate_address_p.
4770 * target-def.h (TARGET_LEGITIMATE_ADDRESS_P): New.
4771 (TARGET_INITIALIZER): Include it.
4772
4773 * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4774 * config/alpha/alpha-protos.h (alpha_legitimate_address_p): Remove.
4775 * config/alpha/alpha.c (alpha_legitimate_address_p): Make static.
4776 (TARGET_LEGITIMATE_ADDRESS_P): New.
4777
4778 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4779 (REG_OK_STRICT_P): Delete.
4780 * config/frv/frv-protos.h (frv_legitimate_address_p): Rename to...
4781 (frv_legitimate_address_p_1): ... this.
4782 * config/frv/frv.c (frv_legitimate_address_p): Forward to...
4783 (frv_legitimate_address_p_1): ... the renamed old
4784 frv_legitimate_address_p.
4785 * config/frv/predicates.md: Adjust calls to frv_legitimate_address_p.
4786 (TARGET_LEGITIMATE_ADDRESS_P): New.
4787
4788 * config/s390/s390.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4789 * config/s390/s390-protos.h (legitimate_address_p): Remove.
4790 * config/s390/s390.c (legitimate_address_p): Rename to...
4791 (s390_legitimate_address_p): ... this, make static.
4792 (legitimize_address): Adjust call.
4793 (TARGET_LEGITIMATE_ADDRESS_P): New.
4794 * config/s390/constraints.md ("e"): Call strict_memory_address_p.
4795
4796 * config/m32c/m32c.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4797 * config/m32c/m32c-protos.h (m32c_legitimate_address_p): Remove.
4798 * config/m32c/m32c.c (m32c_legitimate_address_p): Make static.
4799 (TARGET_LEGITIMATE_ADDRESS_P): New.
4800
4801 * config/spu/spu.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4802 * config/spu/spu-protos.h (spu_legitimate_address): Remove.
4803 * config/spu/spu.c (spu_legitimate_address): Rename to...
4804 (spu_legitimate_address_p): ... this, make static.
4805 (TARGET_LEGITIMATE_ADDRESS_P): New.
4806
4807 * config/sparc/sparc.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4808 * config/sparc/sparc-protos.h (legitimate_address_p): Remove.
4809 * config/sparc/sparc.c (legitimate_address_p): Rename to...
4810 (sparc_legitimate_address_p): ... this, make static and return bool.
4811 (legitimize_address): Adjust call.
4812 (TARGET_LEGITIMATE_ADDRESS_P): New.
4813
4814 * config/i386/i386.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4815 * config/i386/i386-protos.h (legitimate_address_p): Remove.
4816 * config/i386/i386.c (legitimate_address_p): Rename to...
4817 (ix86_legitimate_address_p): ... this, make static.
4818 (constant_address_p): Move after it, adjust call.
4819 (TARGET_LEGITIMATE_ADDRESS_P): New.
4820
4821 * config/avr/avr.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4822 * config/avr/avr-protos.h (legitimate_address_p): Remove.
4823 * config/avr/avr.c (legitimate_address_p): Rename to...
4824 (avr_legitimate_address_p): ... this, make static.
4825 (legitimize_address): Adjust call.
4826 (TARGET_LEGITIMATE_ADDRESS_P): New.
4827
4828 * config/crx/crx.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4829 * config/crx/crx-protos.h (crx_legitimate_address_p): Remove.
4830 * config/crx/crx.c (crx_legitimate_address_p): Make static.
4831 (TARGET_LEGITIMATE_ADDRESS_P): New.
4832
4833 * config/xtensa/xtensa.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4834 * config/xtensa/xtensa-protos.h (xtensa_legitimate_address_p): Remove.
4835 * config/xtensa/xtensa.c (xtensa_legitimate_address_p): Make static.
4836 (TARGET_LEGITIMATE_ADDRESS_P): New.
4837
4838 * config/stormy16/stormy16.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4839 * config/stormy16/stormy16-protos.h (xstormy16_legitimate_address_p):
4840 Remove.
4841 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p):
4842 Make static.
4843 (TARGET_LEGITIMATE_ADDRESS_P): New.
4844
4845 * config/m68hc11/m68hc11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4846 * config/m68hc11/m68hc11-protos.h (m68hc11_go_if_legitimate_address):
4847 Remove.
4848 * config/m68hc11/m68hc11.c (m68hc11_go_if_legitimate_address):
4849 Rename to...
4850 (m68hc11_legitimate_address_p): ... this, make static.
4851 (go_if_legitimate_address_internal): Rename to...
4852 (m68hc11_legitimate_address_p_1): ... this.
4853 (legitimize_address): Adjust call.
4854 (TARGET_LEGITIMATE_ADDRESS_P): New.
4855
4856 * config/iq2000/iq2000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
782dc37a
UB
4857 * config/iq2000/iq2000-protos.h (iq2000_legitimate_address_p): Remove.
4858 * config/iq2000/iq2000.c (iq2000_legitimate_address_p): Make static.
c6c3dba9
PB
4859 (TARGET_LEGITIMATE_ADDRESS_P): New.
4860
4861 * config/mn10300/mn10300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4862 * config/mn10300/mn10300-protos.h (legitimate_address_p): Remove.
4863 * config/mn10300/mn10300.c (legitimate_address_p): Rename to...
4864 (mn10300_legitimate_address_p): ... this, make static.
4865 (TARGET_LEGITIMATE_ADDRESS_P): New.
4866
4867 * config/m68k/m68k.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4868 * config/m68k/m68k-protos.h (m68k_legitimate_address_p): Remove.
4869 * config/m68k/m68k.c (m68k_legitimate_address_p): Make static.
4870 (TARGET_LEGITIMATE_ADDRESS_P): New.
4871
4872 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4873 (REG_OK_STRICT_FLAG, REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P): Delete.
4874 (INT_REG_OK_FOR_BASE_P, INT_REG_OK_FOR_INDEX_P): Move above.
4875 * config/rs6000/rs6000.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4876 * config/rs6000/rs6000-protos.h (rs6000_legitimate_address): Remove.
4877 * config/rs6000/rs6000.c (rs6000_legitimate_address): Rename to...
4878 (rs6000_legitimate_address_p): ... this, make static.
4879 (TARGET_LEGITIMATE_ADDRESS_P): New.
4880 (REG_MODE_OK_FOR_BASE_P): Delete.
4881 (rs6000_legitimize_reload_address): Use INT_REG_OK_FOR_BASE_P.
4882
4883 * config/picochip/picochip.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4884 * config/picochip/picochip-protos.h (picochip_legitimate_address_p):
4885 Delete.
4886 * config/picochip/picochip.c (picochip_legitimate_address_p): Make
4887 static, adjust types.
4888 (TARGET_LEGITIMATE_ADDRESS_P): New.
4889
4890 * config/score/score.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4891 * config/score/score.c (score_address_p): Rename to...
4892 (score_legitimate_address_p): ... this.
4893 (TARGET_LEGITIMATE_ADDRESS_P): New.
4894 * config/score/score3.c (score3_address_p): Rename to...
4895 (score3_legitimate_address_p): ... this.
4896 * config/score/score7.c (score7_address_p): Rename to...
4897 (score7_legitimate_address_p): ... this.
4898
4899 * config/arm/arm.h (ARM_GO_IF_LEGITIMATE_ADDRESS,
4900 THUMB2_GO_IF_LEGITIMATE_ADDRESS, THUMB1_GO_IF_LEGITIMATE_ADDRESS,
4901 GO_IF_LEGITIMATE_ADDRESS): Delete.
4902 * config/arm/arm-protos.h (thumb1_legitimate_address_p,
4903 thumb2_legitimate_address_p): Delete.
4904 (arm_legitimate_address_p): Rename to...
4905 (arm_legitimate_address_outer_p): ... this.
4906 * config/arm/constraints.md ("Uq"): Adjust call.
4907 * config/arm/predicates.md (arm_extendqisi_mem_op): Likewise.
f3afc8a7
UB
4908 * config/arm/arm.c (arm_legitimate_address_p): New, rename old one
4909 to...
c6c3dba9 4910 (arm_legitimate_address_outer_p): ... this.
f3afc8a7
UB
4911 (thumb1_legitimate_address_p, thumb2_legitimate_address_p): Make
4912 static.
c6c3dba9
PB
4913 (TARGET_LEGITIMATE_ADDRESS_P): New.
4914
4915 * config/mips/mips.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4916 * config/mips/mips-protos.h (mips_legitimate_address_p): Remove.
4917 * config/mips/mips.c (mips_legitimate_address_p): ... Make static.
4918 (TARGET_LEGITIMATE_ADDRESS_P): New.
4919
4920 * config/vax/vax.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4921 * config/vax/vax-protos.h (legitimate_address_p): Remove.
4922 * config/vax/vax.c (legitimate_address_p): Rename to...
4923 (vax_legitimate_address_p): ... this, make static.
4924 (TARGET_LEGITIMATE_ADDRESS_P): New.
4925
4926 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4927 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Remove.
4928 * config/h8300/h8300.c (h8300_legitimate_address_p): ... Make static.
4929 (TARGET_LEGITIMATE_ADDRESS_P): New.
4930
4931 * config/mmix/mmix.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4932 * config/mmix/mmix-protos.h (mmix_legitimize_address): Remove.
4933 * config/mmix/mmix.c (mmix_legitimate_address): Rename to...
4934 (mmix_legitimate_address_p): ... this, make static.
4935 (TARGET_LEGITIMATE_ADDRESS_P): New.
4936
4937 * config/bfin/bfin.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
4938 * config/bfin/bfin-protos.h (bfin_legitimate_address_p): Remove.
4939 * config/bfin/bfin.c (bfin_legitimate_address_p): ... Make static.
4940 (TARGET_LEGITIMATE_ADDRESS_P): New.
4941
3bd0d9c8
PB
49422009-05-14 Paolo Bonzini <bonzini@gnu.org>
4943
4944 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Remove handling
4945 of MODE_COMPLEX_INT.
4946
fe049033
RO
49472009-05-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4948
4949 * config/alpha/alpha.c (alpha_initialize_trampoline): Change 0 to
4950 LCT_NORMAL in function call.
4951 * mips-tdump.c (print_file_desc): Add cast to enum type.
4952 * mips-tfile.c (add_ext_symbol): Add casts to enum types.
4953 (mark_stabs): Add casts to enum types.
4954 (parse_stabs_common): Add casts to enum types.
16f7ad42 4955
b0907a6c
AN
49562009-05-13 Adam Nemet <anemet@caviumnetworks.com>
4957
4958 * config/mips/mips.c (mips_print_operand) <REG, MEM, default>:
4959 Check for invalid values of LETTER.
4960
d1c8e08a
TG
49612009-05-13 Taras Glek <tglek@mozilla.com>
4962
f3afc8a7
UB
4963 * attribs.c (register_attribute): moved out attribute registration
4964 into register_attribute.
4965 * doc/plugins.texi: Documented register_attribute and
4966 PLUGIN_ATTRIBUTES.
16f7ad42
TG
4967 * gcc-plugin.h: Added forward decl for register_attribute.
4968 * gcc-plugin.h (plugins_event): Added PLUGIN_ATTRIBUTES.
4969 * plugin.c (register_callback, invoke_plugin_callbacks): Added
4970 PLUGIN_ATTRIBUTES boilerplate.
d1c8e08a 4971
4ed7f970
DK
49722009-05-14 Dave Korn <dave.korn.cygwin@gmail.com>
4973
4974 * config/i386/msformat-c.c (ms_printf_length_specs): Use enumeration
4975 values even in sentinel and empty entries.
4976 (ms_printf_flag_specs): Likewise.
4977 (ms_scanf_flag_specs): Likewise.
4978 (ms_strftime_flag_specs): Likewise.
4979 (ms_print_char_table): Likewise.
4980 (ms_scan_char_table): Likewise.
4981 (ms_time_char_table): Likewise.
4982
3d8fa148
DK
49832009-05-13 Doug Kwan <dougkwan@google.com>
4984
4985 * tree-ssa-sccvn.c (compare_ops): Stabilize qsort.
4986
f06257d3
AN
49872009-05-13 Adam Nemet <anemet@caviumnetworks.com>
4988
4989 * config/mips/mips.md (store): Add attributes for QI and HI.
4990 Update comment.
4991 (truncdisi2, truncdihi2, truncdiqi2): Merge these into ...
4992 (truncdi<mode>2): ... this new pattern.
4993
fb201767
BH
49942009-05-13 Brad Hards <bradh@kde.org>
4995
4996 * Makefile.in (TEXI_GCCINT_FILES): Add plugins.texi.
4997
c7bda60e 49982009-05-14 Jakub Jelinek <jakub@redhat.com>
efc3527a
BE
4999 Ben Elliston <bje@au.ibm.com>
5000
5001 PR middle-end/40035
5002 * dse.c (check_mem_read_rtx): Guard against width == -1.
5003
ce985b43
MM
50042009-05-13 Michael Matz <matz@suse.de>
5005
5006 PR middle-end/39976
5007 * tree-outof-ssa.c (maybe_renumber_stmts_bb): New function.
5008 (trivially_conflicts_p): New function.
5009 (insert_backedge_copies): Use it.
5010
7de1d221
JJ
50112009-05-13 Janis Johnson <janis187@us.ibm.com>
5012
5013 * c-pragma.c (enum pragma_switch_t): Prefix constants with PRAGMA_.
5014 (handle_stdc_pragma): Use new enum constant names.
5015 (handle_pragma_float_const_decimal64): Ditto.
5016
bfefafc6
ILT
50172009-05-13 Ian Lance Taylor <iant@google.com>
5018
5019 * Makefile.in (build/gencheck.o): Depend upon all-tree.def, not
5020 tree.def.
5021
286c4fcb
NS
50222009-05-13 Nathan Sidwell <nathan@codesourcery.com>
5023
5024 * config/m68k/t-uclinux (M68K_MLIB_CPU): Check for FL_UCLINUX.
5025 * config/m68k/m68k-devices.def: Add FL_UCLINUX to 68020 and 54455
5026 multilibs.
5027 * config/m68k/m68k.h (FL_UCLINUX): Define.
5028
ebaa6ea7
JH
50292009-05-13 Jan Hubicka <jh@suse.cz>
5030
5031 * options.c (gfc_post_options): -fwhole-program imply -fwhole-file.
5032
2b703e1a
KK
50332009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
5034
5035 * config/sh/sh.h (OVERRIDE_OPTIONS): Clear flag_schedule_insns
5036 unless -fschedule-insns is specified.
5037
c3537723
KK
50382009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
5039
5040 PR target/39561
5041 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Don't set
5042 TARGET_EXPAND_CBRANCHDI4.
5043 * config/sh/sh.md (cbranchdi4): Don't check TARGET_EXPAND_CBRANCHDI4.
5044 * config/sh/sh.opt (mexpand-cbranchdi): Remove.
5045 (cmpeqdi): Fix comment.
5046
cdeed45a
KK
50472009-05-12 Kaz Kojima <kkojima@gcc.gnu.org>
5048
5049 * config/sh/sh-protos.h (sh_legitimate_index_p): Declare.
5050 (sh_legitimate_address_p): Likewise.
5051 * config/sh/sh.c (sh_legitimate_index_p): New.
5052 (sh_legitimate_address_p): Likewise.
5053 * config/sh/sh.h (REG_OK_FOR_BASE_P): Add STRICT parameter.
5054 (REG_OK_FOR_INDEX_P, SUBREG_OK_FOR_INDEX_P): Likewise.
5055 (MODE_DISP_OK_4, MODE_DISP_OK_8): Remove.
5056 (MAYBE_BASE_REGISTER_RTX_P): New macro.
5057 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
5058 (BASE_REGISTER_RTX_P): Use MAYBE_BASE_REGISTER_RTX_P.
5059 (INDEX_REGISTER_RTX_P): Use MAYBE_INDEX_REGISTER_RTX_P.
5060 (GO_IF_LEGITIMATE_INDEX): Use sh_legitimate_index_p.
5061 (GO_IF_LEGITIMATE_ADDRESS): Use sh_legitimate_address_p.
5062
02f0b13a
JH
50632009-05-12 Jan Hubicka <jh@suse.cz>
5064
5065 * tree-inline.c (estimate_operator_cost): Add operands;
5066 when division happens by constant, it is cheap.
5067 (estimate_num_insns): Loads and stores are not having cost of 0;
5068 EH magic stuff is cheap; when computing runtime cost of switch,
5069 use log2 base of amount of its cases; builtin_expect has cost of 0;
5070 compute cost for moving return value of call.
5071 (init_inline_once): Initialize time_based flags.
5072 * tree-inline.h (eni_weights_d): Add time_based flag.
5073
ecb7f6de
PB
50742009-05-12 Paolo Bonzini <bonzini@gnu.org>
5075
5076 * df-core.c: Update head documentation.
5077
c24151ce
MM
50782009-05-12 Michael Meissner <meissner@linux.vnet.ibm.com>
5079
5080 PR bootstrap/40118
5081 * rs6000.c (rs6000_generate_compare): Use op1b instead of
5082 shadowing exisiting variable op1.
5083
fbdf817d
UB
50842009-05-12 Uros Bizjak <ubizjak@gmail.com>
5085
704bf7c8 5086 PR target/37179
fbdf817d
UB
5087 * config/i386/driver-i386.c (processor_signatures): New enum.
5088 (SIG_GEODE): Move from vendor_signatures to processor_signatures.
5089 (host_detect_local_cpu): For SIG_AMD vendor, check for SIG_GEODE
5090 processor signature to detect geode processor.
5091
5e8d1826
PB
50922009-05-12 Paolo Bonzini <bonzini@gnu.org>
5093
5094 Revert:
5095
5096 2009-05-12 Paolo Bonzini <bonzini@gnu.org>
5097
5098 * optabs.c (prepare_cmp_insn): Temporarily disable test that
5099 causes spurious differences between trunk and cond-optab branch.
5100
f90b7a5a
PB
51012009-05-12 Paolo Bonzini <bonzini@gnu.org>
5102
fbdf817d
UB
5103 * dojump.c (compare_from_rtx): Delete.
5104 * expmed.c (emit_store_flag): Only try cstore_optab. Canonicalize
5105 any MODE_CC mode to the cstorecc4 pattern. Use prepare_operand, fail
f90b7a5a
PB
5106 if the comparison does not satisfy the predicate; test predicates for
5107 operands 2 and 3 of a cstore pattern. Don't try cstore optab
5108 further if one existing pattern fails.
fbdf817d 5109 * expr.h (compare_from_rtx): Delete.
f90b7a5a 5110 (prepare_operand): Declare it.
fbdf817d 5111 * optabs.c: Change "lib call" to "libcall" throughout.
f90b7a5a 5112 (bcc_gen_fctn, setcc_gen_code, trap_rtx,
fbdf817d
UB
5113 HAVE_conditional_trap, emit_cmp_insn): Delete.
5114 (can_compare_p): Delete cmp_optab case.
f90b7a5a 5115 (prepare_float_lib_cmp): Return an rtx and a machine mode.
fbdf817d
UB
5116 Accept other parameters by value.
5117 (prepare_operand): Make non-static.
5118 (prepare_cmp_insn): Return an rtx and a machine mode. Accept
5119 other parameters by value. Try to widen operands here based on
5120 an optab_methods argument and looking at cbranch_optab.
5121 (emit_cmp_and_jump_insn_1): Accept test and mode, remove widening
5122 loop. Use cbranch_optab directly.
5123 (emit_cmp_and_jump_insns): Fix comment. Adjust call to
5124 prepare_cmp_insn and emit_cmp_and_jump_insn_1, remove obsolete
5125 assertion.
5126 (emit_conditional_move, emit_conditional_add): Inline what's needed
5127 of compare_from_rtx, using new prepare_cmp_insn for the rest.
5128 (init_optabs): Init cmp_optab with UNKNOWN, cbranch_optab
5129 with COMPARE. Move cmov_optab and cstore_optab above
5130 with cbranch_optab, move cmp_optab down with ucmp_optab,
5131 remove tst_otpab. Do not initialize trap_rtx.
5132 (gen_cond_trap): Do it here. Use ctrap_optab. Test predicate
f90b7a5a
PB
5133 for trap code. Do not check HAVE_conditional_trap. Use
5134 prepare_cmp_insn. Accept no predicate for operand 3.
fbdf817d
UB
5135 * optabs.h (OTI_cmp): Mark as used only for libcalls.
5136 (OTI_ctrap, ctrap_optab): New.
5137 (tst_optab): Delete.
5138 (bcc_gen_fctn, setcc_gen_code, emit_cmp_insn): Delete.
5139 * ifcvt.c (find_if_header): Replace HAVE_conditional_trap
5140 with lookup of ctrap_optab.
f3afc8a7
UB
5141 * genopinit.c (cmp_optab, tst_optab, bcc_gen_fctn, setcc_gen_code):
5142 Delete.
fbdf817d
UB
5143 (ctrap_optab): New.
5144
5145 * combine.c (combine_simplify_rtx, simplify_set): Do not
5146 special case comparing against zero for cc0 machines.
f90b7a5a
PB
5147 * simplify-rtx.c (simplify_binary_operation_1): Never remove
5148 COMPARE on cc0 machines.
5149 (simplify_relational_operation): Return a new expression when
5150 a COMPARE could be removed.
fbdf817d
UB
5151 * final.c (final_scan_insn): Compare cc_status values
5152 against LHS of a (compare FOO (const_int 0)) cc0 source.
5153 Also check if cc_status.value is the full compare.
f90b7a5a 5154
fbdf817d
UB
5155 * doc/md.texi (bCC, sCC, tstMM, cmpMM): Delete.
5156 (cstoreMM4): Document.
f90b7a5a 5157 (conditional_trap): Document ctrapMM4 instead.
fbdf817d 5158 (sync_compare_and_swapMM): Refer to cbranchcc4.
f90b7a5a
PB
5159 (Dependent Patterns): Eliminate obsolete information referring to
5160 the old jump optimization phase.
fbdf817d 5161 (Canonicalization): Include cbranchcc4 case, omit canonicalization
f90b7a5a
PB
5162 of compares with 0 on cc0 machines.
5163 (Jump Patterns): Refer to MODE_CC jump patterns preferably,
5164 avoiding references to cc0. Remove text about storing operands
5165 in cmpMM.
5166 * doc/tm.texi (Condition Codes): Include blurb on different
5167 condition code representations, separate into subsections for
5168 CC0, MODE_CC and conditional execution.
5169
fbdf817d
UB
5170 * config/alpha/alpha-protos.h (alpha_emit_conditional_branch,
5171 alpha_emit_setcc): Accept operands and a machine mode.
5172 * config/alpha/alpha.c (alpha_emit_conditional_branch):
5173 Get code/op0/op1 from operands, use machine mode argument
5174 instead of alpha_compare.fp_p. Emit the branch here.
5175 (alpha_emit_setcc): Likewise, and return boolean.
5176 (alpha_emit_conditional_move): Likewise. Assert that
5177 cmp_op_mode == cmp_mode, and simplify accordingly.
5178 * config/alpha/alpha.h (struct alpha_compare, alpha_compare): Delete.
5179 * config/alpha/alpha.md (cmpdf, cmptf, cmpdi, bCC, sCC): Delete.
5180 (cbranchdf4, cbranchtf4, cbranchdi4, cstoredf4, cstoretf4,cstoredi4):
5181 Delete.
5182 (stack probe test): Use cbranchdi4.
5183 * config/alpha/predicates.md (alpha_cbranch_operator): New.
5184
5185 * config/arc/arc.c (gen_compare_reg): Do not emit cmp.
5186 * config/arc/arc.h (movsicc, movsfcc): Use it.
5187 (movdicc, *movdicc_insn, movdfcc, *movdfcc_insn): Remove.
5188 (cbranchsi4, cstoresi4): New.
5189 (cmpsi, bCC and sCC expanders): Remove.
5190
5191 * config/arm/arm.c (arm_compare_op0, arm_compare_op1): Delete.
5192 * config/arm/arm.h (arm_compare_op0, arm_compare_op1): Delete.
5193 * config/arm/predicates.md (arm_comparison_operator): Only include
5194 floating-point operators if there is a hardware floating-point unit.
5195 * config/arm/arm.md (cbranchsi4, cstoresi4): Enable for TARGET_32BIT,
5196 deferring to cbranch_cc and cstore_cc respectively.
5197 (cbranchsf4, cbranchdf4, cbranchdi4, cstoresf4, cstoredf4, cstoredi4,
5198 cbranch_cc, cstore_cc): New.
5199 (movsicc, movsfcc, movdfcc): Do not use arm_compare_op0 and
f90b7a5a 5200 arm_compare_op1.
fbdf817d
UB
5201 (bCC, sCC, cmpsi, cmpsf, cmpdf, cmpdi): Delete.
5202
5203 * config/avr/avr-protos.h (out_tstsi, out_tsthi): Adjust prototype.
5204 * config/avr/avr.c (out_tstsi, out_tsthi): Get the tested operand
5205 as an argument.
5206 (adjust_insn_length): Adjust calls.
5207 (avr_reorg): Handle (compare (foo) (const_int 0)).
5208 * config/avr/avr.md (tstqi, tsthi, tstsi): Remove.
5209 (*negated_tstqi, *negated_tsthi, *negated_tstsi): Unmacroize.
5210 (*reversed_tsthi, *reversed_tstsi): Add a scratch for simplicity.
5211 (cmpqi, cmphi, cmpsi): Prepend asterisk, fuse tst[qhs]i here.
5212 (bCC): Remove.
5213 (cbranchqi4, cbranchhi4, cbranchsi4): New.
f90b7a5a
PB
5214 (tst -> sbrc/sbrs peephole2, cpse peephole): Wrap RHS with COMPARE.
5215
fbdf817d
UB
5216 * config/bfin/bfin.md (cmpbi, cmpsi, bCC, sCC): Delete.
5217 (cbranchsi4, cstorebi4, cstoresi4): New.
f90b7a5a 5218 (movbisi): This insn is duplicate, split it to zero_extend.
fbdf817d
UB
5219 * config/bfin/bfin.c (bfin_compare_op0, bfin_compare_op1): Delete
5220 (bfin_gen_compare): Do not use them. Emit VOIDmode SET, not BImode.
5221 (bfin_optimize_loop): Use cbranch expander.
5222 * config/bfin/bfin.h (bfin_compare_op0, bfin_compare_op1): Delete.
5223 * config/bfin/predicates.md (bfin_cbranch_operator): Rename to...
5224 (bfin_bimode_comparison_operator): ... this.
5225 (bfin_direct_comparison_operator): New.
f90b7a5a 5226
fbdf817d
UB
5227 * config/cris/cris.c (cris_normal_notice_update_cc): Look
5228 inside (compare FOO (const_int 0)).
5229 (cris_rtx_costs): Handle ZERO_EXTRACT.
5230 * config/cris/cris.md (tstdi, tst<mode>, cmpdi): Delete.
5231 (*tstdi_non_v32): Fold in *cmpdi_non_v32.
5232 (*tstdi_v32): Delete.
5233 (*cmpdi_non_v32): Add M alternative for operand 1.
5234 (cmpsi, cmp<mode>): Make private.
5235 (*tstsi, *tst<mode>_cmp, *tst<mode>_non_cmp, *btst): Wrap LHS
5236 with COMPARE.
5237 (cbranch<mode>4, cbranchdi4, cstore<mode>4): New.
5238
5239 * config/crx/crx.md (cstore<mode>4, cbranchcc4): New.
5240 (cmp<mode>, bCOND_internal, b<code>, s<code>): Delete.
5241 (cbranch<mode>4, sCOND_internal): Use ordered_comparison_operator.
f90b7a5a
PB
5242 (cc_reg_operand): New.
5243 (any_cond): Delete.
fbdf817d
UB
5244 * config/crx/crx.c (crx_compare_op0, crx_compare_op1,
5245 crx_expand_compare, crx_expand_branch, crx_expand_scond): Delete.
5246 * config/crx/crx.h (crx_compare_op0, crx_compare_op1): Delete.
5247 * config/crx/crx-protos.h (crx_expand_compare, crx_expand_branch,
5248 crx_expand_scond): Delete.
5249
5250 * config/fr30/fr30.md (cmp<mode>, bCC): Delete.
5251 (cbranchsi4): New.
5252 * config/fr30/fr30.c (fr30_compare_op0, fr30_compare_op1): Delete
5253 * config/fr30/fr30.h (fr30_compare_op0, fr30_compare_op1): Delete.
5254
5255 * config/frv/frv.md (cbranchsi4, cbranchsf4, cbranchdf4,
5256 cstoresi4, cstoresf4, cstoredf4): New.
5257 (cmpdi, cmpsi, cmpsf, cmpdf, bCC, sCC): Remove.
5258 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
5259 Receive the entire operands array.
5260 * config/frv/frv.h (frv_compare_op0, frv_compare_op1): Delete.
5261 * config/frv/frv.c (frv_compare_op0, frv_compare_op1): Delete.
5262 * config/frv/frv-protos.h (frv_emit_cbranch, frv_emit_scc):
5263 Get test/op0/op1 from the operands array.
5264 (frv_emit_cond_move): Get test/op0/op1 from the test_rtx.
5265
5266 * config/h8300/h8300-protos.h (h8300_expand_branch): Accept operands.
5267 (h8300_expand_store): New.
5268 * config/h8300/h8300.c (h8300_rtx_costs): Handle (compare FOO
5269 (const_int 0)).
5270 (h8300_expand_branch): Emit compare here. Adjust for new arguments.
5271 (h8300_expand_store): New.
5272 * config/h8300/h8300.md (btst combine patterns): Wrap with COMPARE
5273 or do not try to produce (set (cc0) REG).
5274 (peepholes): Wrap arguments with COMPARE. Add a peephole to
5275 change a compare into a move to a scratch register. Disable some
5276 peepholes when comparing with zero.
5277 (tstsi, tsthi, tstsi, cmpqi): Make private.
5278 (cmphi): Delete.
5279 (bCC, sCC): Delete.
5280 (cbranchqi4, cbranchhi4, cbranchsi4, cstoreqi4, cstorehi4,
5281 cstoresi4): New.
f90b7a5a
PB
5282
5283 * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_int_addcc,
5284 ix86_expand_fp_movcc): Set ix86_compare_op0 and ix86_compare_op1.
5285 (ix86_emit_i387_log1p): Use gen_cbranchxf4.
5286 (ix86_emit_i387_log1p): Use cbranchxf2.
5287 (ix86_expand_setcc): Return void.
5288 * config/i386/i386-protos.h (ix86_expand_setcc): Return void.
5289 * config/i386/i386.md (cmpti, cmpdi, cmpsi, cmphi, cmpqi, cmpxf,
5290 cmp<MODEF>, cmpcc): Remove.
fbdf817d
UB
5291 (cbranchti4, cbranchdi4, cbranchsi4, cbranchhi4, cbranchqi4,
5292 cbranchxf4, cbranch<MODEF>4, cbranchcc4, cstoredi4, cstoresi4,
5293 cstorehi4, cstoreqi4, cstorexf4, cstore<MODEF>4, cstorecc): New.
f90b7a5a
PB
5294 (sCC and bCC expanders): Remove.
5295 (stack_protect_test): Use cbranchcc4.
5296
fbdf817d
UB
5297 * config/ia64/ia64-protos.h (ia64_compare_op0, ia64_compare_op1):
5298 Delete.
5299 (ia64_expand_compare): Accept three rtx by reference and return void.
5300 * config/ia64/ia64.c (ia64_compare_op0, ia64_compare_op1): Delete.
5301 (ia64_expand_compare): Replace op0/op1 with *op0/*op1. Get code
5302 from *expr. Update *expr with the BImode comparison to do.
5303 * config/ia64/ia64.md (cmpbi, cmpsi, cmpdi, cmpsf, cmpdf, cmpxf,
5304 cmptf, bCC, sCC, conditional_trap): Delete.
5305 (cbranchbi4, cbranchsi4, cbranchdi4, cbranchsf4, cbranchdf4,
5306 cbranchxf4, cbranchtf4, cstorebi4, cstoresi4, cstoredi4, cstoresf4,
5307 cstoredf4, cstorexf4, cstoretf4, ctrapbi4, ctrapsi4, ctrapdi4,
5308 ctrapsf4, ctrapdf4, ctrapxf4, ctraptf4): New.
5309 * config/ia64/predicates.md (ia64_cbranch_operator): New.
5310
5311 * config/iq2000/iq2000-protos.h (gen_conditional_branch): Change
5312 type of last argument.
5313 * config/iq2000/iq2000.c (branch_cmp, branch_type): Remove.
5314 (gen_conditional_branch): Get code/cmp0/cmp1 from operands,
5315 use machine mode argument instead of branch_type. Remove dead
5316 code for floating-point comparisons.
5317 * config/iq2000/iq2000.h (branch_cmp, branch_type): Remove.
5318 * config/iq2000/iq2000.md (cmpsi, cmpdi, cmpsf, cmpdf, tstsi, bCC):
5319 Remove.
5320 (cbranchsi4, cstoresi4): New.
5321 * config/iq2000/predicates.md (reg_or_const_operand): New.
5322
5323 * config/m32c/m32c.md (cbranch splitter): Use match_op_dup.
5324 * config/m32c/m32c.md (any_cond, gl_cond): Delete.
5325 (b<code>_op): Rewrite to...
5326 (bcc_op): ... this, using match_operator.
5327 (s<code>_op): Rewrite to...
5328 (scc_op): ... this, using match_operator.
5329 (s<code>_24_op): Rewrite to...
5330 (scc_op_24): ... this, using match_operator.
5331 (s<code>_<mode>): Rewrite to...
5332 (cstore<mode>4): ... this, using match_operator.
5333 (s<code>_<mode>_24): Rewrite to...
5334 (cstore<mode>4_24): ... this, using match_operator.
5335 * config/m32c/m32c-protos.h (m32c_cmp_flg_0, m32c_pend_compare,
5336 m32c_unpend_compare, m32c_expand_scc): Delete.
5337 * config/m32c/m32c.c (compare_op0, compare_op1, m32c_cmp_flg_0,
5338 m32c_pend_compare, m32c_unpend_compare, m32c_expand_scc): Delete.
5339 (m32c_expand_movcc): Change NE to EQ if necessary.
5340 (m32c_init_libfuncs): Modify cstore optab instead of setcc_gen_code.
5341
5342 * config/m32r/m32r-protos.h (gen_cond_store): New.
5343 * config/m32r/m32r.c (m32r_compare_op0, m32r_compare_op1): Delete.
5344 (gen_cond_store): New, from sCC patterns.
5345 (m32r_expand_block_move): Use cbranchsi4.
5346 * config/m32r/m32r.h (m32r_compare_op0, m32r_compare_op1): Delete.
5347 * config/m32r/m32r.md (cmpsi, bCC, sCC): Delete.
5348 (cbranchsi4, cstoresi4): New.
5349
5350 * config/m68hc11/m68hc11.c (m68hc11_compare_op0, m68hc11_compare_op1):
5351 Delete.
5352 (m68hc11_rtx_costs_1, m68hc11_rtx_costs): Handle ZERO_EXTRACT.
f90b7a5a 5353 (m68hc11_notice_update_cc): Look into a compare with 0.
fbdf817d
UB
5354 * config/m68hc11/m68hc11.h (m68hc11_compare_op0, m68hc11_compare_op1):
5355 Delete.
5356 * config/m68hc11/m68hc11.md (tstsi, tsthi, tstqi, cmpsi,
5357 cmphi, cmpqi, bCC): Delete.
5358 (cbranchsi4, cbranchhi4, cbranchqi4): New.
5359 (tstqi_1, tstqi_z_used, tstqi_1, bitcmpqi, bitcmpqi_z_used,
5360 bitcmpqi_12, bitcmphi, various splits and peephole2s): Wrap cc0<-reg
5361 sets with COMPARE.
5362
5363 * config/m68k/predicates.md (m68k_cstore_comparison_operator,
5364 const0_operand, const1_operand, m68k_subword_comparison_operand): New.
5365 * config/m68k/constraints.md (H): New.
5366 * config/m68k/m68k.md (tstdi): Remove define_expand, use name for
5367 the define_insn below.
5368 (tstsi, tsthi, tst<FP:mode>, cmphi, cmpqi, cmp<FP:mode>): Delete.
5369 (*tstsi_internal_68020_cf, *tstsi_internal, *tsthi_internal,
5370 *tstqi_internal, tst<mode>_6881, tst<mode>_cf, many unnamed
5371 patterns): Wrap RHS with COMPARE.
5372 (tst<FP>_68881, tst<FP>_cf): Use const0_operand.
5373 (*cmpdi_internal): Name this pattern.
5374 (cmpdi): Change to define_insn.
5375 (cbranchdi4, cstoredi4, cbranchsi4, cstoresi4, cbranchhi4, cstorehi4,
5376 cbranchqi4, cstoreqi4, cbranch<FP:mode>4, cstore<FP:mode>4): New.
5377 (scc0_di, scc0_di_5200, scc_di): Use the ordered_comparison_operator
5378 predicate.
5379 (seq, sne, sgt, sgtu, slt, sltu, sge, sgeu, sle, sleu, sordered,
5380 sunordered, suneq, sunge, sungt, sunle, sunlt, sltgt): Delete
5381 (conditional_trap): Change to...
5382 (ctrapdi4, ctrapsi4, ctraphi4, ctrapqi4): ... these.
5383 (*conditional_trap): Use the ordered_comparison_operator and
5384 const1_operand predicates.
5385 * config/m68k/m68k.c (m68k_last_compare_had_fp_operands): Delete.
5386 (m68k_expand_prologue): Use ctrapsi4 instead of cmpsi+conditional_trap.
5387 (m68k_rtx_costs): Look for ZERO_EXTRACT in a COMPARE.
5388 * config/m68k/m68k.h (m68k_last_compare_had_fp_operands): Delete.
5389
5390 * config/mcore/mcore-protos.h (arch_compare_op0, arch_compare_op1,
5391 mcore_modify_comparison, mcore_gen_compare_reg): Remove.
5392 (mcore_gen_compare): New.
5393 * config/mcore/mcore.c (arch_compare_op0, arch_compare_op1): Delete.
5394 (mcore_modify_comparison, mcore_gen_compare_reg): Fold into...
5395 (mcore_gen_compare): ... this.
5396 * config/mcore/mcore.md (cmpsi, bCC, sCC): Remove.
5397 (cbranchsi4, cstoresi4): New, using mcore_gen_compare.
5398 (stack probe pattern): Use cbranchsi4.
5399
5400 * config/mips/predicates.md (mips_cstore_operator): New.
5401 * config/mips/mips-ps-3d.md (movv2sfcc): Do not use cmp_operands.
5402 * config/mips/mips.md (any_cond): Delete.
5403 (conditional_trap): Rename to ctrap<GPR:mode>4. Adjust predicates,
5404 always succeed.
5405 (fixuns_truncdfsi2, fixuns_truncdfdi2, fixuns_truncsfsi2,
5406 fixuns_truncsfdi2): Use cbranch patterns.
5407 (cmp<GPR:mode>, cmp<SCALARF:mode>): Delete.
5408 (b<code>): Change to cbranch<GPR:mode>4 and cbranch<SCALARF:mode>4.
5409 Adjust call to mips_expand_conditional_branch.
5410 (seq, sne, slt<u>, sle<u>, sgt<u>, sge<u>): Change to
5411 cstore<GPR:mode>4.
5412 * config/mips/mips-protos.h (mips_expand_conditional_branch,
5413 mips_expand_scc, mips_expand_conditional_trap): Adjust prototypes.
5414 * config/mips/mips.c (cmp_operands): Delete.
5415 (mips_emit_compare): Get comparison operands from *op0/*op1.
5416 (mips_expand_scc): Get code/op0/op1/target from operands. Assert
5417 that it succeeds. Use op0/op1 instead of cmp_operands.
5418 (mips_expand_conditional_branch, mips_expand_conditional_move,
5419 mips_expand_conditional_trap): Likewise.
5420 (mips_block_move_loop): Use cbranch patterns.
5421 * config/mips/mips.h (cmp_operands): Delete.
5422
5423 * config/mmix/mmix.c (mmix_valid_comparison): Delete.
5424 (mmix_gen_compare_reg): Just return a register in the right CC mode.
5425 * config/mmix/mmix.h (mmix_compare_op0, mmix_compare_op1): New.
5426 * config/mmix/mmix.md (cmpdi, cmpdf): Remove.
5427 (*cmpcc_folded): Rename to...
5428 (*cmpdi_folded): this.
5429 (*cmpcc): Rename to...
5430 (*cmps): ... this.
5431 (movdfcc, movdicc): Adjust for new semantics of mmix_gen_compare_reg.
5432 (bCC): Remove.
5433 (cbranchdi4): New.
5434 (cbranchdf4): New. Handle invalid comparisons here.
5435 * config/mmix/predicates.md (float_comparison_operator): New.
5436
5437 * config/mn10300/mn10300.c (mn10300_rtx_costs): Consider 0 and
5438 zero_extract to be cheap in (compare (zero_extract) (const_int 0).
5439 * config/mn10300/mn10300.md (tst): Delete.
5440 (*tst_extqisi_am33, *tst_extqisi, *tst_exthisi_am33, *tst_exthisi):
5441 Name these patterns and wrap RHS in a compare.
5442 (*cmpsi): Make this pattern private. Include tst.
5443 (*cmpsf): Make this pattern private.
5444 (and and zero_extract cc0 set): Wrap RHS in a COMPARE.
5445 (compare with zero peepholes): Likewise.
5446 (bCC): Remove.
5447 (cbranchsi4, cbranchsf4): New.
5448 (casesi): Use cbranchsi4.
5449
5450 * config/pa/pa.c (hppa_compare_op0, hppa_compare_op1,
5451 hppa_branch_type): Delete.
5452 (return_addr_rtx): Use cbranchsi4.
5453 (emit_bcond_fp): Accept all operands. Replace CODE with NE.
5454 Emit CCFPmode comparison here.
5455 (gen_cmp_fp): Delete, now part of emit_bcond_fp.
5456 * config/pa/pa.h (enum cmp_type, hppa_compare_op0, hppa_compare_op1,
5457 hppa_branch_type): Delete.
5458 * config/pa/pa.md (cmpdi, cmpsi, cmpsf, cmpdf, sCC, bCC): Delete.
5459 (movsicc, movdicc): Remove references to hppa_compare_op0,
5460 hppa_compare_op1 and compare_from_rtx.
5461 (cbranchdi4, cbranchsi4, cbranchsf4, cbranchdf4, cstoresi4): New.
5462 (casesi): Use cbranchsi4.
5463
5464 * config/pdp11/pdp11-protos.h (output_jump): Change prototype.
5465 * config/pdp11/pdp11.c (output_jump): Embed opcodes here.
5466 * config/pdp11/pdp11.md (register_or_const0_operand): New.
5467 (cmpdf, cmphi, cmpqi): Make private. Add tst alternatives.
5468 (cmpsi, tstsi, tstdf, tsthi, tstqi): Delete.
5469 (bCC): Delete.
5470 (cbranchdf4, cbranchhi4, cbranchqi4): New.
5471 (*branch, *branch_inverted): New.
5472
5473 * config/picochip/picochip.md (cbranchhi4): Use
5474 ordered_comparison_operator.
5475 (cmphi, bCC): Remove.
5476
5477 * config/rs6000/predicates.md (rs6000_cbranch_operator): New.
5478 (trap_comparison_operator): Delete.
5479 * config/rs6000/rs6000-protos.h (rs6000_emit_sCOND,
5480 rs6000_emit_cbranch): Accept mode and operands.
5481 * config/rs6000/rs6000.c (rs6000_compare_op0, rs6000_compare_op1,
5482 rs6000_compare_fp_p): Delete.
5483 (rs6000_generate_compare): Accept mode and comparison. Extract code
5484 and op0/op1 from there. Replace references to rs6000_compare_op0
5485 and rs6000_compare_op1.
5486 (rs6000_emit_sCOND): Adjust call to rs6000_generate_compare and
5487 extract result from passed operands.
5488 (rs6000_emit_cbranch): Adjust call to rs6000_generate_compare and
5489 extract loc from passed operands.
5490 (rs6000_emit_cmove): Likewise.
5491 * config/rs6000/rs6000.h (rs6000_compare_op0, rs6000_compare_op1,
5492 rs6000_compare_fp_p): Delete.
5493 * config/rs6000/rs6000.md (cmp<GPR>, cmp<FP>, bCC, sCC): Delete.
5494 (cbranch<GPR>4, cbranch<FP>4): New.
5495 (cstore<mode>4): New. Consolidate here all choices about when to use
5496 portable or specialized sCC sequences.
5497 (stack_protect_test): Use cbranchsi4.
5498 (conditional_trap): Replace with ctrap<GPR>4.
5499 (conditional trap insn): Replace trap_comparison_operator with
5500 ordered_comparison_operator.
5501
5502 * config/s390/s390.c (s390_compare_op0, s390_compare_op1): Delete.
5503 (s390_emit_prologue): Use ctrap.
5504 * config/s390/s390.h (s390_compare_op0, s390_compare_op1): Delete.
5505 * config/s390/predicates.md (s390_eqne_operator, s390_scond_operator):
5506 New predicates replacing...
5507 * config/s390/s390.md (COMPARE, SCOND): ... these iterators.
5508 (cmp<GPR>, cmp<FP>, cmpcc): Delete.
5509 (trunc patterns): Use emit_cmp_and_jump_insns instead of cmp/branch.
5510 (add<mode>cc): Do not use s390_compare_op0/op1.
5511 (s<code>): Change to...
5512 (cstore<mode>4): ... this. Do not use s390_compare_op0/op1.
5513 (seq): Change to...
5514 (cstorecc4): ... this. Handle EQ or NE equally.
5515 (*sne): Un-privatize for use in cstorecc4.
5516 (b<code>): Change to...
5517 (cbranch<GPR>4, cbranch<FP>4, cbranchcc4): ... these.
5518 (conditional_trap): Replace with...
5519 (ctrap<GPR>4, ctrap<FP>4): ... these.
5520 (stack_protect): Use cbranchcc4.
5521
5522 * config/score/score-conv.h (cmp_op0, cmp_op1): Delete.
5523 * config/score/score-protos.h (score_gen_cmp): Delete.
5524 * config/score/score.c (cmp_op0, cmp_op1, score_gen_cmp): Delete.
5525 (score_block_move-loop): Use cbranchsi4.
5526 * config/score/score.md (cbranchsi4): New.
5527 (cmpsi, bCC): Delete.
5528 * config/score/score3.c (cmp_op0, cmp_op1, score3_gen_cmp): Delete.
5529 (score3_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
5530 * config/score/score7.c (cmp_op0, cmp_op1, score7_gen_cmp): Delete.
5531 (score7_movsicc): Use ops[1] operands instead of cmp_op0/cmp_op1.
5532 * config/score/score3.h (score3_gen_cmp): Delete.
5533 * config/score/score7.h (score7_gen_cmp): Delete.
5534
5535 * config/sh/sh-protos.h (prepare_scc_operands): Rename to...
5536 (sh_emit_scc_to_t): ... this. Return void.
5537 (from_compare): Rename to...
5538 (sh_emit_compare_and_branch): ... this.
5539 (sh_emit_compare_and_set): New.
5540 (sh_expand_t_scc): Accept operands.
5541 * config/sh/predicates.md (sh_float_comparison_operator): New.
5542 * config/sh/sh.c (sh_compare_op0, sh_compare_op1): Delete.
5543 (prepare_scc_operands): Rename to...
5544 (sh_emit_scc_to_t): ... this. Return void. Get op0/op1 from
5545 arguments.
5546 (sh_emit_cheap_store_flag): New.
f90b7a5a 5547 (sh_emit_set_t_insn): New.
fbdf817d
UB
5548 (from_compare): Rename to...
5549 (sh_emit_compare_and_branch): ... this. Accept mode. Rewrite
5550 handling of TARGET_SH2E floating point to avoid recursive call.
5551 Generate branch here.
5552 (sh_emit_compare_and_set): New.
5553 (sh_expand_t_scc): Get op0/op1 from arguments.
5554 (sh_emit_cheap_store_flag): New.
5555 * config/sh/sh.md (cbranchdi4, cbranchsi4): Include -mno-cbranchdi
5556 cases.
f90b7a5a 5557 (cbranchdi4_i): Use an "I08" constraint instead of an "i" constraint.
fbdf817d
UB
5558 (cmpsi, cmpdi, cmpsf, cmpdf): Delete.
5559 (movsicc, movdicc): Do nothing when it recreated operands from
5560 sh_compare_*. Use sh_emit_cheap_store_flag. Adjust call to
5561 prepare_scc_operands (now sh_emit_scc_to_t).
5562 (udivdi3): Use cstoresi4.
5563 (beq_media, bne_media, bge_media, bgtu_media, bgeu_media, beq,
5564 bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu, bunordered): Delete.
5565 (cbranchint4_media, cbranchfp4_media): New.
5566 (casesi): Use cbranchdi4.
5567 (seq, slt, sle, sgt, sge, sgtu, sltu, sgeu, sne, sleu, sunordered):
5568 Delete.
5569 (cstore4_media, cstoresi4, cstoredi4, cstoresf4, cstoredf4): New.
5570 (movnegt): Remove second operand.
5571 (cbranchsf4, cbranchdf4): New.
5572 (stack_protect): Use cbranchdi4/cbranchsi4.
5573
5574 * config/sparc/sparc.c (sparc_compare_op0, sparc_compare_op1): Delete.
5575 (gen_compare_reg): Accept comparison, extract part of it to...
5576 (gen_compare_reg_1): ... this.
5577 (gen_compare_operator): Delete.
5578 (gen_v9_scc): Accept separate destination, comparison code and arms.
5579 Do not use sparc_compare_op0/sparc_compare_op1.
5580 (emit_scc_insn, emit_conditional_branch_insn): New.
5581 (emit_v9_brxx): Make static. Remove useless assertion.
5582 (sparc_emit_float_lib_cmp): Return RTL instead of calling
5583 emit_cmp_insn.
5584 (sparc_expand_compare_and_swap_12): Use gen_compare_reg_1+cbranchcc4.
5585 * config/sparc/sparc-protos.h (gen_compare_reg,
f90b7a5a
PB
5586 sparc_emit_float_lib_cmp): Adjust prototype.
5587 (emit_scc_insn, emit_conditional_branch_insn): New.
5588 (gen_v9_scc, emit_v9_brxx_insn, gen_compare_operator): Delete.
fbdf817d
UB
5589 * config/sparc/sparc.h (sparc_compare_op0, sparc_compare_op1): Delete.
5590 * config/sparc/sparc.md (P, I, F, V32, V32I, V64, V64I): Move all
5591 iterators to the top.
5592 (cmpsi, cmpdi, cmpsf, cmpdf, cmptf, seqsi_special_extend,
5593 snesi_special_extend, sCC, bCC, seqdi_special_trunc,
f90b7a5a 5594 snedi_special_trunc): Delete.
fbdf817d 5595 (seqdi_special, snedi_special): Use expansion of seqdi_special_trunc
f90b7a5a 5596 and snedi_special_trunc.
fbdf817d
UB
5597 (cstoresi4, cstoredi4, cstore<F:mode>4, cbranchcc4, cbranchsi4,
5598 cbranchdi4, cbranch<F:mode>4): New.
5599 (mov<I:mode>cc, mov<F:mode>cc): Handle sparc_emit_float_lib_cmp
5600 here. Use gen_compare_reg instead of gen_compare_operator.
5601 (conditional_trap): Replace with...
5602 (ctrapsi4, ctrapdi4): ... this.
5603 (stack_protect_test): Use cbranchcc4.
5604
5605 * config/spu/spu-protos.h (spu_emit_branch_or_set): Change second
5606 argument to rtx.
5607 * config/spu/spu.c (spu_compare_op0, spu_compare_op1): Remove.
5608 (spu_emit_branch_or_set): Get code/op0/op1 from second argument.
5609 Change spu_compare_op0/op1 to op0/op1 throughout. Get target
5610 from operands[0] or operands[3] depending on is_set.
5611 * config/spu/spu.h (spu_compare_op0, spu_compare_op1): Remove.
5612 * config/spu/spu.md (cmp<mode:VQHSI>, cmp<mode:DTI>, cmp<mode:VSF>,
5613 cmpdf, bCC), sCC: Remove.
5614 (cbranch<mode:VQHSI>4, cbranch<mode:DTI>, cbranch<mode:VSF>4,
5615 cbranchdf4, cstore<mode:VQHSI>4, cstore<mode:DTI>, cstore<mode:VSF>4,
5616 cstoredf4): New.
5617 (mov<mode>cc): Accept ordered_comparison_operator, adjust call to
5618 spu_emit_branch_or_set.
5619
5620 * config/stormy16/stormy16-protos.h (xstormy16_emit_cbranch):
5621 Add two arguments.
5622 * config/stormy16/stormy16.h (xstormy16_compare_op0,
5623 xstormy16_compare_op1): Delete.
5624 * config/stormy16/stormy16.c (xstormy16_compare_op0,
5625 xstormy16_compare_op1): Delete.
5626 (xstormy16_emit_cbranch): Get op0/op1 from the new arguments.
5627 Adjust calls.
5628 * config/stormy16/stormy16.md (cbranchsi4, cbranchhi4): New.
5629 (cmphi, cmpsi, bCC): Remove.
5630
5631 * config/v850/v850.md (tstsi, cmpsi): Fold into...
5632 (*cmpsi): ... this one.
5633 (cbranchsi4, cstoresi4): New.
5634 (bCC expanders): Delete.
5635 (sCC insns): Fold into...
5636 (*setcc): ... this one.
5637 (casesi): Do not use gen_cmpsi and gen_bgtu.
f90b7a5a
PB
5638 (various splits): Wrap "naked" RHS of a cc0 set with COMPARE.
5639 (movsicc): Simplify.
5640 * config/v850/v850.c (v850_rtx_costs): Handle ZERO_EXTRACT in COMPARE.
5641
fbdf817d
UB
5642 * config/vax/vax-protos.h (cond_name): New.
5643 (vax_output_conditional_branch): Remove.
5644 * config/vax/vax.c (cond_name): New.
5645 (vax_output_conditional_branch): Remove.
5646 * config/vax/vax.h (PRINT_OPERAND): Dispatch %c to cond_name.
5647 * config/vax/vax.md (tst<VAXint>, tst<VAXfp>): Remove.
5648 (cmp<VAXint>, cmp<VAXfp>): Privatize. Add constraints for tst.
5649 (bit<VAXint>): Wrap source with (compare).
5650 (b<code> and following unnamed pattern): Rename to *branch and
5651 *branch_reversed. Change macroization to match_operator.
5652 (cbranch<VAXint>4, cbranch<VAXfp>4): New.
5653
5654 * config/xtensa/predicates.md (xtensa_cstoresi_operator): New.
5655 * config/xtensa/xtensa-protos.h (xtensa_expand_conditional_branch):
5656 Change last argument to machine_mode.
5657 (xtensa_expand_scc): Add machine_mode argument.
5658 * config/xtensa/xtensa.c (branch_cmp, branch_type): Remove.
5659 (gen_conditional_move, xtensa_expand_conditional_branch,
5660 xtensa_expand_scc, xtensa_expand_conditional_move): Use mode
5661 instead of branch_type, fetch cmp0/cmp1/test_code from operands[].
5662 Adjust operand numbers.
5663 * config/xtensa/xtensa.h (enum cmp_type, branch_cmp, branch_type):
5664 Delete.
5665 * config/xtensa/xtensa.md (any_cond, any_scc): Delete.
5666 (cmpsi, cmpsf, b<code>, s<code>): Delete.
5667 (cbranchsi4, cbranchsf4, cstoresi4, cstoresf4): New.
f90b7a5a 5668
16670495
PB
56692009-05-12 Paolo Bonzini <bonzini@gnu.org>
5670
5671 * optabs.c (prepare_cmp_insn): Temporarily disable test that
5672 causes spurious differences between trunk and cond-optab branch.
5673
4a4a4e99
AO
56742009-05-12 Alexandre Oliva <aoliva@redhat.com>
5675
5676 PR target/37137
5677 * doc/install.texi (STAGE1_TFLAGS, BUILD_CONFIG): Document.
5678
72b9acff
AO
56792009-05-12 Alexandre Oliva <aoliva@redhat.com>
5680
5681 * tree.c (iterative_hash_pointer): Delete.
5682 (iterative_hash_expr): Short-circuit handling of NULL pointer.
5683 Hash UIDs and versions of SSA names. Don't special-case built-in
5684 function declarations.
5685
b7dd69ac
ILT
56862009-05-11 Ian Lance Taylor <iant@google.com>
5687
5688 PR bootstrap/40103
5689 * graphite.c: Force -Wc++-compat to only be a warning before
5690 #including "cloog/cloog.h".
5691
ed102b70
MJ
56922009-05-11 Martin Jambor <mjambor@suse.cz>
5693
5694 * ipa-cp.c (ipcp_cloning_candidate_p): Add missing return false.
5695
08f1af2e
JH
56962009-05-11 Jan Hubicka <jh@suse.cz>
5697
5698 * tree-ssa-loop-ivcanon.c: Include target.h
5699 (struct loop_size): new structure.
5700 (constant_after_peeling): New predicate.
5701 (tree_estimate_loop_size): New function.
5702 (estimated_unrolled_size): Rewrite for new estimates.
5703 (try_unroll_loop_completely): Use new estimates.
5704 * Makefile.in (tree-ssa-loop-ivcanon.o): Add dependenc on target.h
5705
a7d39bd3
AP
57062009-05-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
5707
5708 * config/spu/spu-c.c (spu_categorize_keyword): Update for recent
5709 libcpp interface change.
5710 (spu_macro_to_expand): Likewise.
5711
f5a1f0d0
PB
57122009-05-11 Paolo Bonzini <bonzini@gnu.org>
5713
5714 PR tree-optimization/40026
5715 * gimplify.c (gimplify_init_constructor): Change initial conditional
5716 to assertion. Rewrite TREE_OPERAND (*expr_p, 1) after
5717 optimize_compound_literals_in_ctor.
5718
c260f01f
NS
57192009-05-11 Nathan Sidwell <nathan@codesourcery.com>
5720
5721 * config/m68k/m68k-devices.def (52274, 52277, 5301x, 5225x, 51xx):
5722 New devices.
5723 * doc/invoke.texi (M680x0 Options): Document new coldfire cpus.
5724
df398a37
L
57252009-05-11 H.J. Lu <hongjiu.lu@intel.com>
5726
5727 * tree-vect-data-refs.c (vect_analyze_group_access): Use
5728 HOST_WIDE_INT for gap.
5729
4da39468
IR
57302009-05-11 Ira Rosen <irar@il.ibm.com>
5731
5732 PR tree-optimization/40074
5733 * tree-vect-data-refs.c (vect_analyze_group_access): Take gaps into
5734 account in group size and step comparison.
5735
4effdf02
RG
57362009-05-11 Richard Guenther <rguenther@suse.de>
5737
5738 * passes.c (init_optimization_passes): Strip now incorrect comment.
5739 (execute_function_todo): Do not set PROP_alias.
5740 * tree-pass.h (PROP_alias): Remove.
5741 * tree-ssa-structalias.c (pass_build_alias): Do not provide PROP_alias.
5742 * tree-if-conv.c (pass_if_conversion): Do not require PROP_alias.
5743 * tree-nrv.c (pass_return_slot): Likewise.
5744 * tree-object-size.c (pass_object_sizes): Likewise.
5745 * tree-ssa-dom.c (pass_dominator): Likewise.
5746 (pass_phi_only_cprop): Likewise.
5747 * tree-ssa-dse.c (pass_dse): Likewise.
5748 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
5749 (pass_cselim): Likewise.
5750 * tree-ssa-pre.c (pass_pre): Likewise.
5751 (pass_fre): Likewise.
5752 * tree-ssa-reassoc.c (pass_reassoc): Likewise.
5753 * tree-ssa-sink.c (pass_sink_code): Likewise.
5754 * tree-stdarg.c (pass_stdarg): Likewise.
5755 * tree-tailcall.c (pass_tail_calls): Likewise.
5756 * tree-vrp.c (pass_vrp): Likewise.
5757
24b97832
ILT
57582009-05-10 Ian Lance Taylor <iant@google.com>
5759
5760 * basic-block.h (enum profile_status): Break out of struct
5761 control_flow_graph.
5762 * cgraph.h (struct inline_summary): Break out of struct
5763 cgraph_local_info.
5764 * cgraphunit.c (enum cgraph_order_sort_kind): New enum, broken out
5765 of struct cgraph_order_sort.
fbdf817d 5766 * combine.c (enum undo_kind): New enum, broken out of struct undo.
24b97832
ILT
5767 * cse.c (struct branch_path): Break out of struct
5768 cse_basic_block_data.
5769 * except.h (enum eh_region_type): Break out of struct eh_region.
5770 * gcc.c (enum add_del): Break out of struct modify_target.
fbdf817d 5771 * genrecog.c (enum decision_type): Break out of struct decision_test.
24b97832
ILT
5772 * ggc-page.c (struct ggc_pch_ondisk): Break out of struct
5773 ggc_pch_data.
fbdf817d
UB
5774 * matrix-reorg.c (struct free_info): Break out of struct matrix_info.
5775 * regmove.c (enum match_use): New enum, broken out of struct match.
24b97832
ILT
5776 * sched-int.h (enum post_call_group): New enum, broken out of
5777 struct deps.
5778 (struct deps_reg): Break out of struct deps.
5779 * target.h (struct asm_int_op): Break out of struct gcc_target.
5780 * tree-eh.c (struct goto_queue_node): Break out of struct
5781 leh_tf_state.
5782 * tree-inline.h (enum copy_body_cge_which): Break out of
5783 copy_body_data.
5784 * tree-pass.h (enum opt_pass_type): Break out of struct opt_pass.
5785
5786 * c-decl.c (in_struct, struct_types): New static variables.
5787 (pushtag): Add loc parameter. Change all callers.
5788 (lookup_tag): Add ploc parameter. Change all callers.
5789 (check_compound_literal_type): New function.
5790 (parser_xref_tag): Add loc parameter. Change all callers. If
5791 -Wc++-compat, warn about struct/union/enum types defined within a
5792 struct or union.
5793 (start_struct): Add enclosing_in_struct, enclosing_struct_types,
5794 and loc parameters. Change all callers. Change error calls to
5795 error_at, using loc. For a redefinition, if the location of the
5796 original definition is known, report it. Set in_struct and
fbdf817d 5797 struct_types. If -Wc++-compat warn if in sizeof, typeof, or alignof.
24b97832
ILT
5798 (finish_struct): Add new parameters enclosing_in_struct and
5799 enclosing_struct_types. Change all callers. Set
5800 C_TYPE_DEFINED_IN_STRUCT for all struct/union/enum types defined
5801 in the struct. If in a struct, add this struct to struct_types.
5802 (start_enum): Add loc parameter. Change all callers. Use
5803 error_at for errors, using loc. For a redefinition, if the
5804 location of the original definition is known, report it. If in a
5805 struct, add this enum type to struct_types. If -Wc++-compat warn
5806 if in sizeof, typeof, or alignof.
fbdf817d
UB
5807 * c-parser.c (disable_extension_diagnostics): Disable -Wc++-compat.
5808 (enable_extension_diagnostics): Reenable -Wc++-compat if appropriate.
24b97832
ILT
5809 (c_parser_enum_specifier): Get enum location for start_enum.
5810 (c_parser_struct_or_union_specifier): Get struct location for
5811 start_struct. Save in_struct and struct_types status between
5812 start_struct and finish_struct.
5813 (c_parser_cast_expression): Get location of cast.
5814 (c_parser_alignof_expression): Get location of type.
5815 (c_parser_postfix_expression): Likewise.
5816 (c_parser_postfix_expression_after_paren_type): Add type_loc
fbdf817d
UB
5817 parameter. Change all callers. Call check_compound_literal_type.
5818 Use type_loc for error about variable size type.
5819 * c-typeck.c (build_external_ref): If -Wc++-compat, warn about a use
5820 of an enum constant from an enum type defined in a struct or union.
24b97832
ILT
5821 (c_cast_expr): Add loc parameter. Change all callers. If
5822 -Wc++-compat, warn about defining a type in a cast.
5823 * c-tree.h (C_TYPE_DEFINED_IN_STRUCT): Define.
5824 (start_enum, start_struct, finish_struct): Update declarations.
5825 (parser_xref_tag, c_cast_expr): Update declarations.
5826 (check_compound_literal_type): Declare.
5827
7a2738fa
BE
58282009-05-11 Ben Elliston <bje@au.ibm.com>
5829
5830 * config/rs6000/rs6000-c.c (altivec_categorize_keyword): Update
5831 for recent libcpp interface change.
5832 (rs6000_macro_to_expand): Likewise.
5833
af618949
MM
58342009-05-10 Michael Matz <matz@suse.de>
5835
5836 PR target/40031
5837 * config/arm/arm.c (require_pic_register): Emit on entry edge,
5838 not at entry of function.
5839
b7d7a473
RG
58402009-05-10 Richard Guenther <rguenther@suse.de>
5841
5842 PR tree-optimization/40081
5843 Revert
5844 * tree-sra.c (instantiate_element): Instantiate scalar replacements
5845 using the main variant of the element type. Do not fiddle with
5846 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
5847
5848 * tree-sra.c (sra_type_can_be_decomposed_p): Do not decompose
5849 structs with volatile fields.
5850
078c3644
JH
58512009-05-10 Jan Hubicka <jh@suse.cz>
5852
5853 * tree-inline.c (delete_unreachable_blocks_update_callgraph): Declare.
fbdf817d
UB
5854 (estimate_move_cost): Assert that it does not get called for
5855 VOID_TYPE_P.
078c3644
JH
5856 (estimate_num_insns): Skip VOID types in argument handling.
5857 (optimize_inline_calls): Delete unreachable blocks and verify that
5858 callgraph is valid.
5859
39ff5a96
JH
58602009-05-10 Jan Hubicka <jh@suse.cz>
5861
5862 * cgraphbuild.c (record_reference): Use cgraph_mark_address_taken_node.
5863 * cgraph.c (cgraph_mark_address_taken_node): New function.
5864 (dump_cgraph_node): Dump new flag.
5865 * cgraph.h (struct cgraph_node): Add address_taken.
5866 (cgraph_mark_address_taken_node): New function.
39ff5a96
JH
5867 * ipa.c (cgraph_postorder): Prioritize functions with address taken
5868 since new direct calls can be born.
5869
9a0c6187
JM
58702009-05-10 Joseph Myers <joseph@codesourcery.com>
5871
5872 * c-lex.c (c_lex_with_flags): Expect cpp_hashnode in
5873 tok->val.node.node.
5874
4b685e14
JH
58752009-05-10 Jan Hubicka <jh@suse.cz>
5876
5877 PR middle-end/40084
fb0be169
EB
5878 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Take old_call
5879 argument; rewrite.
4b685e14
JH
5880 (cgraph_update_edges_for_call_stmt): Take old_decl argument.
5881 * cgraph.h (cgraph_update_edges_for_call_stmt): Update prototype.
5882 * tree-inline.c (copy_bb): Set frequency correctly.
fb0be169
EB
5883 (fold_marked_statements): Update call to
5884 cgraph_update_edges_for_call_stmt.
4b685e14 5885
29d08eba
JM
58862009-05-10 Joseph Myers <joseph@codesourcery.com>
5887
5888 * config/arc/arc.c (arc_handle_interrupt_attribute): Use %qE for
5889 identifiers in diagnostics.
5890 * config/arm/arm.c (arm_handle_fndecl_attribute,
5891 arm_handle_isr_attribute): Likewise.
5892 * config/avr/avr.c (avr_handle_progmem_attribute,
782dc37a 5893 avr_handle_fndecl_attribute, avr_handle_fntype_attribute): Likewise.
29d08eba
JM
5894 * config/bfin/bfin.c (handle_int_attribute,
5895 bfin_handle_longcall_attribute, bfin_handle_l1_text_attribute,
5896 bfin_handle_l1_data_attribute, bfin_handle_longcall_attribute,
5897 bfin_handle_l1_text_attribute, bfin_handle_l1_data_attribute):
5898 Likewise.
5899 * config/darwin.c (darwin_handle_kext_attribute,
5900 darwin_handle_weak_import_attribute): Likewise.
5901 * config/h8300/h8300.c (h8300_handle_fndecl_attribute,
5902 h8300_handle_eightbit_data_attribute,
5903 h8300_handle_tiny_data_attribute): Likewise.
5904 * config/i386/i386.c (ix86_handle_cconv_attribute,
782dc37a 5905 ix86_handle_abi_attribute, ix86_handle_struct_attribute): Likewise.
29d08eba
JM
5906 * config/i386/winnt.c (ix86_handle_shared_attribute,
5907 ix86_handle_selectany_attribute): Likewise.
5908 * config/ia64/ia64.c (ia64_handle_model_attribute): Likewise.
5909 * config/m32c/m32c.c (function_vector_handler): Likewise.
5910 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute,
5911 m68hc11_handle_fntype_attribute): Likewise.
5912 * config/m68k/m68k.c (m68k_handle_fndecl_attribute): Likewise.
5913 * config/mcore/mcore.c (mcore_handle_naked_attribute): Likewise.
5914 * config/mips/mips.c (mips_insert_attributes,
5915 mips_merge_decl_attributes, mips_expand_builtin): Likewise.
5916 * config/rs6000/rs6000.c (rs6000_handle_longcall_attribute,
5917 rs6000_handle_struct_attribute): Likewise.
5918 * config/sh/sh.c (sh_insert_attributes,
5919 sh_handle_resbank_handler_attribute,
5920 sh_handle_interrupt_handler_attribute,
5921 sh2a_handle_function_vector_handler_attribute,
5922 sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
5923 Likewise.
5924 * config/sh/symbian.c (sh_symbian_mark_dllimport): Likewise.
5925 * config/spu/spu.c (spu_handle_fndecl_attribute,
5926 spu_handle_vector_attribute): Likewise.
5927 * config/stormy16/stormy16.c
5928 (xstormy16_handle_interrupt_attribute): Likewise.
5929 * config/v850/v850-c.c (ghs_pragma_section): Likewise.
5930 * config/v850/v850.c (v850_handle_interrupt_attribute): Likewise.
5931
f41c4af3
JM
59322009-05-10 Joseph Myers <joseph@codesourcery.com>
5933
782dc37a 5934 * pretty-print.h (struct pretty_print_info): Add translate_identifiers.
f41c4af3
JM
5935 (pp_translate_identifiers): New.
5936 (pp_identifier): Only conditionally translate identifier to locale
5937 character set.
5938 * pretty-print.c (pp_construct): Set pp_translate_identifiers.
5939 (pp_base_tree_identifier): Only conditionally translate identifier
5940 to locale character set.
5941 * c-pretty-print.c (M_): Define.
5942 (pp_c_type_specifier, pp_c_primary_expression): Mark English
5943 fragments for conditional translation with M_.
5944 * tree-pretty-print.c (maybe_init_pretty_print): Disable
5945 identifier translation.
5946
896d7dbd
RG
59472009-05-10 Richard Guenther <rguenther@suse.de>
5948
5949 PR tree-optimization/40081
5950 * tree-sra.c (instantiate_element): Instantiate scalar replacements
5951 using the main variant of the element type. Do not fiddle with
5952 TREE_THIS_VOLATILE or TREE_SIDE_EFFECTS.
5953
9a23acef
JH
59542009-05-09 Jan Hubicka <jh@suse.cz>
5955
5956 PR middle-end/40080
5957 * cgraphunit.c (cgraph_materialize_all_clones): Do not redirect
5958 indirect calls; verify cgraph afterwards.
5959
d563610d
JH
59602009-05-09 Jan Hubicka <jh@suse.cz>
5961
5962 PR bootstrap/40082
5963 * ipa.c (update_inlined_to_pointer): New function.
5964 (cgraph_remove_unreachable_nodes): Use it.
5965
f08a18d0
JH
59662009-05-09 Jan Hubicka <jh@suse.cz>
5967
5968 * tree-eh.c (struct leh_state): Remove prev_try.
5969 (lower_try_finally, lower_catch, lower_eh_filter, lower_cleanup): Do
5970 not track prev_try.
5971 * except.c (gen_eh_region_cleanup, duplicate_eh_regions,
5972 copy_eh_region_1, copy_eh_region, redirect_eh_edge_to_label,
5973 remove_eh_handler_and_replace, foreach_reachable_handler,
5974 verify_eh_region, verify_eh_tree): Remove tracking of prev_try pointer.
5975 * except.h (struct eh_region): Remove eh_region_u_cleanup.
5976 (gen_eh_region_cleanup): Update prototype.
5977
0afd7219
JH
59782009-05-09 Jan Hubicka <jh@suse.cz>
5979
5980 PR middle-end/40043
5981 * except.c (copy_eh_region): Always set prev_try.
5982 (redirect_eh_edge_to_label): Find outer try.
5983 (foreach_reachable_handler): When looking for prev try
5984 handle case where previous try is not going to be taken.
5985
ad6c0864
MM
59862009-05-07 Michael Meissner <meissner@linux.vnet.ibm.com>
5987
5988 PR tree-optimization/40049
5989 * tree-vect-stmts.c (vectorizable_operation): If the machine has
5990 only vector/vector shifts, convert the type of the constant to the
5991 appropriate type to avoid building incorrect trees, which
5992 eventually have problems with garbage collection.
5993
c94f9067
JM
59942009-05-08 Joseph Myers <joseph@codesourcery.com>
5995
5996 * fold-const.c (fold_binary): Do not fold multiplication by 1 or
5997 -1 for complex floating-point types if honoring signed zeros.
5998
9187e02d
JH
59992009-05-08 Jan Hubicka <jh@suse.cz>
6000
20acb8a2
EB
6001 * cgraphbuild.c (compute_call_stmt_bb_frequency): Accept function
6002 argument; handle correctly when profile is absent.
9187e02d
JH
6003 (build_cgraph_edges): Update.
6004 (rebuild_cgraph_edges): Update.
20acb8a2
EB
6005 * cgraph.c: Do not include varray.h.
6006 (cgraph_set_call_stmt_including_clones): New function.
6007 (cgraph_create_edge_including_clones): Likewise
6008 (cgraph_update_edges_for_call_stmt_node): New static cfunction.
9187e02d
JH
6009 (cgraph_update_edges_for_call_stmt): Handle clones.
6010 (cgraph_remove_node): Handle clone tree.
6011 (cgraph_remove_node_and_inline_clones): New function.
6012 (dump_cgraph_node): Dump clone tree.
6013 (cgraph_clone_node): Handle clone tree.
20acb8a2 6014 (clone_function_name): Bring here from tree-inline.c.
9187e02d 6015 (cgraph_create_virtual_clone): New function.
20acb8a2
EB
6016 * cgraph.h (ipa_replace_map): Move here from ipa.h.
6017 (cgraph_clone_info): New function.
9187e02d 6018 (strut cgraph_node): Add clone_info and new clone tree pointers.
20acb8a2
EB
6019 (cgraph_remove_node_and_inline_clones,
6020 cgraph_set_call_stmt_including_clones,
6021 cgraph_create_edge_including_clones,
6022 cgraph_create_virtual_clone): Declare.
9187e02d
JH
6023 (cgraph_function_versioning): Use VEC argument.
6024 (compute_call_stmt_bb_frequency): Update prototype.
6025 (cgraph_materialize_all_clones): New function.
6026 * ipa-cp.c (ipcp_update_cloned_node): Remove.
6027 (ipcp_create_replace_map): Update to VECtors.
6028 (ipcp_update_callgraph): Use virtual clones.
6029 (ipcp_update_bb_counts, ipcp_update_edges_counts): Remove.
6030 (ipcp_update_profiling): Do not update local profiling.
6031 (ipcp_insert_stage): Use VECtors and virtual clones.
6032 * cgraphunit.c (verify_cgraph_node): Verify clone tree.
6033 (clone_of_p): New function.
6034 (cgraph_preserve_function_body_p): Use clone tree.
6035 (cgraph_optimize): Materialize clones.
6036 (cgraph_function_versioning): Update for VECtors.
6037 (save_inline_function_body): Use clone tree.
20acb8a2
EB
6038 (cgraph_materialize_clone): New function.
6039 (cgraph_materialize_all_clones): Likewise.
9187e02d
JH
6040 * ipa-inline.c (cgraph_default_inline_p): Use analyzed flags.
6041 * ipa.c: Include gimple.h.
6042 (cgraph_remove_unreachable_nodes): Use clone tree.
20acb8a2
EB
6043 * ipa-prop.c (ipa_note_param_call): Update call to
6044 compute_call_stmt_bb_frequencycall.
9187e02d 6045 * ipa-prop.h (ipa_replace_map): Move to cgraph.h.
20acb8a2 6046 * tree-inline.c: Do not include varray.h or gt-tree-inline.h.
9187e02d
JH
6047 (copy_bb): Handle updating of clone tree; add new edge when new call
6048 appears.
6049 (expand_call_inline): Be strict about every call having edge.
6050 (clone_fn_id_num, clone_function_name): Move to cgraph.c.
6051 (delete_unreachable_blocks_update_callgraph): New function.
20acb8a2
EB
6052 (tree_function_versioning): Use VECtors; always remove unreachable
6053 blocks and fold conditionals.
6054 * tree-inline.h: Do not include varray.h.
9187e02d
JH
6055 (tree_function_versioning): Remove.
6056 * Makefile.in (GTFILES): Remove tree-inline.c
6057 * passes.c (do_per_function): Do only functions having body.
20acb8a2
EB
6058 * ipa-struct-reorg.c (do_reorg_1, collect_data_accesses): Handle clone
6059 tree.
9187e02d 6060
9b86d6bb
L
60612009-05-08 H.J. Lu <hongjiu.lu@intel.com>
6062 Andrew Morrow <acm@google.com>
6063
6064 PR c/36892
6065 * c-common.c (c_common_attribute_table): Permit deprecated
6066 attribute to take an optional argument.
6067 (handle_deprecated_attribute): If the optional argument to
6068 __attribute__((deprecated)) is not a string ignore the attribute
6069 and emit a warning.
6070
6071 * c-decl.c (grokdeclarator): Updated warn_deprecated_use call.
6072 * c-typeck.c (build_component_ref): Likewise.
6073 (build_external_ref): Likewise.
6074
6075 * toplev.c (warn_deprecated_use): Add an attribute argument.
6076 Emit the message associated with __attribute__((deprecated)).
6077
6078 * toplev.h (warn_deprecated_use): Updated.
6079
6080 * doc/extend.texi: Document new optional parameter to
6081 __attribute__((deprecated))
6082
82ad047f
ME
60832009-05-08 Michael Eager <eager@eagercon.com>
6084
6085 * config/rs6000/rs6000.md (*movdf_softfloat32): replace
6086 !TARGET_DOUBLE_FLOAT with TARGET_SINGLE_FLOAT.
6087
788d3075
RG
60882009-05-08 Richard Guenther <rguenther@suse.de>
6089
6090 PR tree-optimization/40062
6091 * tree-scalar-evolution.c (follow_ssa_edge_in_condition_phi):
6092 Avoid exponential behavior.
6093
00952e97
PB
60942009-05-08 Paolo Bonzini <bonzini@gnu.org>
6095
6096 PR rtl-optimization/33928
6097 PR 26854
6098 * fwprop.c (use_def_ref, get_def_for_use, bitmap_only_bit_bitween,
6099 process_uses, build_single_def_use_links): New.
6100 (update_df): Update use_def_ref.
6101 (forward_propagate_into): Use get_def_for_use instead of use-def
6102 chains.
6103 (fwprop_init): Call build_single_def_use_links and let it initialize
6104 dataflow.
6105 (fwprop_done): Free use_def_ref.
6106 (fwprop_addr): Eliminate duplicate call to df_set_flags.
6107 * df-problems.c (df_rd_simulate_artificial_defs_at_top,
6108 df_rd_simulate_one_insn): New.
6109 (df_rd_bb_local_compute_process_def): Update head comment.
6110 (df_chain_create_bb): Use the new RD simulation functions.
6111 * df.h (df_rd_simulate_artificial_defs_at_top,
6112 df_rd_simulate_one_insn): New.
6113 * opts.c (decode_options): Enable fwprop at -O1.
6114 * doc/invoke.texi (-fforward-propagate): Document this.
6115
2ca862e9
JM
61162009-05-08 Joseph Myers <joseph@codesourcery.com>
6117
6118 PR c/24581
6119 * c-typeck.c (build_binary_op): Handle arithmetic between one real
6120 and one complex operand specially.
6121 * tree-complex.c (some_nonzerop): Do not identify a real value as
6122 zero if flag_signed_zeros.
6123
3e807ffc
PB
61242009-05-08 Paolo Bonzini <bonzini@gnu.org>
6125
6126 PR rtl-optimization/33928
7925c06c 6127 * loop-invariant.c (record_use): Fix && vs. || mishap.
3e807ffc 6128
1bfdbb29
PB
61292009-05-08 Paolo Bonzini <bonzini@gnu.org>
6130
6131 PR rtl-optimization/33928
e913423f
EB
6132 * loop-invariant.c (struct use): Add addr_use_p.
6133 (struct def): Add n_addr_uses.
6134 (struct invariant): Add cheap_address.
6135 (create_new_invariant): Set cheap_address.
6136 (record_use): Accept df_ref. Set addr_use_p and update n_addr_uses.
6137 (record_uses): Pass df_ref to record_use.
6138 (get_inv_cost): Do not add inv->cost to comp_cost for cheap addresses
6139 used only as such.
1bfdbb29 6140
702cb2a0
KK
61412009-05-08 Kaz Kojima <kkojima@gcc.gnu.org>
6142
6143 * config/sh/sh.c: Do not include c-pragma.h.
6144
5e8df753
AP
61452009-05-07 Andrew Pinski <andrew_pinski@playstation.sony.com>
6146
6147 * config/spu/spu.c: Remove include of c-common.h.
6148
6ec637a4
JJ
61492009-05-07 Janis Johnson <janis187@us.ibm.com>
6150
6151 PR c/39037
6152 * c-common.h (mark_valid_location_for_stdc_pragma,
6153 valid_location_for_stdc_pragma_p, set_float_const_decimal64,
6154 clear_float_const_decimal64, float_const_decimal64_p): New.
6155 * c.opt (Wunsuffixed-float-constants): New.
6156 * c-lex.c (interpret_float): Use pragma FLOAT_CONST_DECIMAL64 for
6157 unsuffixed float constant, handle new warning.
6158 * c-cppbuiltin.c (c_cpp_builtins): Use cast for double constants.
6159 * c-decl.c (c_scope): New flag float_const_decimal64.
6160 (set_float_const_decimal64, clear_float_const_decimal64,
6161 float_const_decimal64_p): New.
6162 (push_scope): Set new flag.
6163 * c-parser.c (c_parser_translation_unit): Mark when it's valid
6164 to use STDC pragmas.
6165 (c_parser_external_declaration): Ditto.
6166 (c_parser_compound_statement_nostart): Ditto.
6167 * c-pragma.c (valid_location_for_stdc_pragma,
6168 mark_valid_location_for_stdc_pragma,
6169 valid_location_for_stdc_pragma_p, handle_stdc_pragma,
6170 handle_pragma_float_const_decimal64): New.
6171 (init_pragma): Register new pragma FLOAT_CONST_DECIMAL64.
6172 * cp/semantics.c (valid_location_for_stdc_pragma_p,
6173 set_float_const_decimal64, clear_float_const_decimal64,
6174 float_const_decimal64_p): New dummy functions.
6175 * doc/extend.texi (Decimal Float): Remove statement that the
6176 pragma, and suffix for double constants, are not supported.
6177 * doc/invoke.texi (Warning Options): List new option.
6178 (-Wunsuffixed-float-constants): New.
6179
45b9b2e9
SB
61802009-05-08 Steven Bosscher <steven@gcc.gnu.org>
6181
6182 * config/i386/i386.c: Do not include c-common.h.
6183
e71da632
MH
61842009-05-07 Mark Heffernan <meheff@google.com>
6185
6186 * doc/invoke.texi (Debugging Options): Document change of debugging
6187 dump location.
e913423f 6188 * opts.c (decode_options): Make dump_base_name relative to
e71da632
MH
6189 aux_base_name directory.
6190
fe4c7bc6
HS
61912009-05-07 Hariharan Sandanagobalane <hariharan@picochip.com>
6192
6193 * config/picochip/picochip.h (NO_DOLLAR_IN_LABEL): Added.
6194 * config/picochip/libgccExtras/divmod15.asm : Removed redefiniton.
6195
3b3e44eb
RAE
61962009-05-07 Rafael Avila de Espindola <espindola@google.com>
6197
6198 * Makefile.in (install-plugin): Simplify a bit.
6199
fac41238
PB
62002009-05-07 Paolo Bonzini <bonzini@gnu.org>
6201
6202 * Makefile.in (OBJS-common): Add regcprop.o.
6203 (regcprop.o): New.
6204 * timevar.def (TV_CPROP_REGISTERS): New.
6205 * regrename.c (regrename_optimize): Return 0.
6206 (rest_of_handle_regrename): Delete.
6207 (pass_rename_registers): Point to regrename_optimize.
6208 (struct value_data_entry, struct value_data,
6209 kill_value_one_regno, kill_value_regno, kill_value,
6210 set_value_regno, init_value_data, kill_clobbered_value,
6211 kill_set_value, kill_autoinc_value, copy_value,
6212 mode_change_ok, maybe_mode_change, find_oldest_value_reg,
6213 replace_oldest_value_reg, replace_oldest_value_addr,
6214 replace_oldest_value_mem, copyprop_hardreg_forward_1,
6215 debug_value_data, validate_value_data): Move...
6216 * regcprop.c: ... here.
6217 (rest_of_handle_cprop): Delete.
6218 (pass_cprop_hardreg): Point to copyprop_hardreg_forward.
6219
472e0df9
JJ
62202009-05-07 Jakub Jelinek <jakub@redhat.com>
6221
6222 PR middle-end/40057
6223 * dojump.c (prefer_and_bit_test): Use immed_double_const instead of
6224 GEN_INT for 1 << bitnum.
6225 (do_jump) <case BIT_AND_EXPR>: Use build_int_cst_wide_type instead of
6226 build_int_cst_type.
6227
0d50d55a
UB
62282009-05-07 Uros Bizjak <ubizjak@gmail.com>
6229
6230 * doc/md.texi (Standard Pattern Names For Generation) [sync_nand]:
7925c06c 6231 Remove wrong description of "nand" operation.
0d50d55a 6232
22f597f1
RG
62332009-05-06 Richard Guenther <rguenther@suse.de>
6234 Adam Nemet <anemet@caviumnetworks.com>
6235
6236 * gimple.def (GIMPLE_ASSIGN): Fix incorrect information in the
6237 comment. Add that if LHS is not a gimple register, then RHS1 has
6238 to be a single object (GIMPLE_SINGLE_RHS).
6239
641cac0b
AN
62402009-05-06 Adam Nemet <anemet@caviumnetworks.com>
6241
6242 * expr.c (get_def_for_expr): Move it up in the file.
6243 (store_field): When expanding a bit-field store, look at the
6244 defining gimple stmt for the masking conversion.
6245
5a5c6435
JJ
62462009-05-06 Janis Johnson <janis187@us.ibm.com>
6247
6248 PR middle-end/39986
6249 * dfp.c (encode_decimal32, decode_decimal32, encode_decimal64,
6250 decode_decimal64, encode_decimal128, decode_decimal128): Avoid
6251 32-bit memcpy into long.
6252
96474f36
JJ
62532009-05-06 Jakub Jelinek <jakub@redhat.com>
6254
6255 * dwarf2out.c (new_reg_loc_descr): Don't ever create DW_OP_regX.
6256 (one_reg_loc_descriptor): Create DW_OP_regX here instead of calling
6257 new_reg_loc_descr.
6258 (loc_by_reference): If loc is DW_OP_regX, change it into DW_OP_bregX 0
6259 instead of appending DW_OP_deref*.
6260
529ff441
MM
62612009-05-06 Michael Matz <matz@suse.de>
6262
6263 PR middle-end/40021
6264 * cfgexpand.c (maybe_cleanup_end_of_block): New static function.
6265 (expand_gimple_cond): Use it to cleanup CFG and superfluous jumps.
6266
9419a9fd
RAE
62672009-05-06 Rafael Avila de Espindola <espindola@google.com>
6268
6269 * Makefile.in (install-plugin): Fix srcdir handling.
6270
fff1894c
AB
62712009-05-06 Andrey Belevantsev <abel@ispras.ru>
6272
6273 * tree-ssa.c (execute_update_address_taken): Handle TARGET_MEM_REF
6274 when processing for not_regs_needed bitmap.
6275 * gimple.c (walk_stmt_load_store_addr_ops): When visiting address,
6276 handle TARGET_MEM_REF in lhs. Check TMR_BASE for NULL while
6277 handling it for rhs.
6278
700ae70c
L
62792009-05-06 H.J. Lu <hongjiu.lu@intel.com>
6280
ab3426a7 6281 * config/i386/i386.md (unnamed inc/dec peephole): Use
aa016ff7 6282 optimize_insn_for_size_p instead of optimize_size.
700ae70c
L
6283 * config/i386/predicates.md (incdec_operand): Likewise.
6284 (aligned_operand): Likewise.
6285 * config/i386/sse.md (divv8sf3): Likewise.
6286 (sqrtv8sf2): Likewise.
6287
67341fb5
L
62882009-05-06 H.J. Lu <hongjiu.lu@intel.com>
6289
6290 * config/i386/i386.c (ix86_build_signbit_mask): Make it static.
6291
6292 * config/i386/i386-protos.h (ix86_build_signbit_mask): Removed.
6293
87946f42
L
62942009-05-06 H.J. Lu <hongjiu.lu@intel.com>
6295
6296 * config/i386/i386.md (*avx_<code><mode>3_finite): Replace
6297 ssemodesuffixf2c with avxmodesuffixf2c.
6298
1202aec1
JM
62992009-05-06 Joseph Myers <joseph@codesourcery.com>
6300
6301 PR c/40032
aa016ff7 6302 * c-decl.c (grokdeclarator): Handle incomplete type of unnamed field.
1202aec1 6303
6e57a01d
JJ
63042009-05-05 Jakub Jelinek <jakub@redhat.com>
6305
6306 * tree.h: Remove DECL_BY_REFERENCE from private_flag comment.
6307 (struct tree_base): Adjust spacing for 8 bit boundaries.
6308 (struct tree_decl_common): Add decl_by_reference_flag bit.
6309 (DECL_BY_REFERENCE): Adjust.
6310 * print-tree.c (print_node): For VAR_DECL, PARM_DECL or RESULT_DECL,
6311 print DECL_BY_REFERENCE bit.
6312 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Revert last change.
6313 * dwarf2out.c (loc_by_reference, gen_decl_die): Check
6314 DECL_BY_REFERENCE for all VAR_DECLs, not just non-static ones.
6315 (gen_variable_die): Likewise. Check TREE_PRIVATE/TREE_PROTECTED
6316 unconditionally.
6317
32f579f6
JJ
6318 PR middle-end/39666
6319 * gimplify.c (gimplify_switch_expr): If case labels cover the whole
6320 range of the type, but default label is missing, add it with one
6321 of the existing labels instead of adding a new label for it.
6322
617ab743
JM
63232009-05-05 Joseph Myers <joseph@codesourcery.com>
6324
6325 * dwarf.h: Remove.
6326
bf016de8
RAE
63272009-05-05 Rafael Avila de Espindola <espindola@google.com>
6328
6329 * Makefile.in (enable_plugin, plugin_includedir): New.
6330 (install): Depend on install-plugin.
6331 (PLUGIN_HEADERS): New.
6332 (install-plugin): New.
6333 * config.gcc: Add vxworks-dummy.h to tm_file for x86 and x86-64.
6334
7f8fdb9f
RG
63352009-05-05 Richard Guenther <rguenther@suse.de>
6336
6337 PR tree-optimization/40022
6338 * tree-ssa-phiprop.c (struct phiprop_d): Exchange vop_stmt for
6339 the only vuse.
6340 (phivn_valid_p): Fix tuplification error, simplify.
6341 (phiprop_insert_phi): Add dumps.
6342 (propagate_with_phi): Simplify.
6343
8d972839
RG
63442009-05-05 Richard Guenther <rguenther@suse.de>
6345
6346 PR middle-end/40023
aa016ff7 6347 * builtins.c (gimplify_va_arg_expr): Properly build the address.
8d972839 6348
66ba9b0b
SZ
63492009-05-05 Shujing Zhao <pearly.zhao@oracle.com>
6350
6351 * tree.h (strip_float_extensions): Remove duplicate declaration.
aa016ff7
UB
6352 (build_low_bits_mask, debug_fold_checksum, expand_function_end,
6353 expand_function_start, stack_protect_prologue, stack_protect_epilogue,
6354 block_ultimate_origin): Rearrange the declarations line to match the
6355 comment that indicates the .c file which the functions are defined.
6356 (dwarf2out_*, set_decl_rtl): Add comment.
6357 (get_base_address): Adjust comment.
6358 (change_decl_assembler_name, maybe_fold_*, build_addr): Rearrange the
6359 declarations line and add comment.
6360 (is_builtin_name): Add blank after function name, for clarity.
66ba9b0b 6361
4f1e4960
JM
63622009-05-04 Joseph Myers <joseph@codesourcery.com>
6363
6364 * attribs.c (decl_attributes): Use %qE for identifiers in
6365 diagnostics.
6366 * cgraphunit.c (verify_cgraph_node): Translate function names to
6367 locale character set in diagnostics.
6368 * coverage.c (get_coverage_counts): Use %qE for identifiers in
6369 diagnostics.
6370 * doc/invoke.texi (-finstrument-functions-exclude-function-list):
6371 Document that functions are named in UTF-8.
6372 * expr.c (expand_expr_real_1): Translate function names to locale
6373 character set in diagnostics.
6374 * gimplify.c (omp_notice_variable, omp_is_private,
6375 gimplify_scan_omp_clauses): Use %qE for identifiers in
6376 diagnostics.
6377 * langhooks.c (lhd_print_error_function): Translate function names
6378 to locale character set.
6379 * langhooks.h (decl_printable_name): Document that return value is
6380 in internal character set.
6381 * stmt.c: Include pretty-print.h
6382 (tree_conflicts_with_clobbers_p): Use %qE for identifiers in
6383 diagnostics.
6384 (resolve_operand_name_1): Translate named operand name to locale
6385 character set.
6386 * stor-layout.c (finalize_record_size): Use %qE for identifiers in
6387 diagnostics.
6388 * toplev.c (announce_function): Translate function names to locale
6389 character set.
6390 (warn_deprecated_use): Use %qE for identifiers in diagnostics.
6391 (default_tree_printer): Use pp_identifier or translate identifiers
6392 to locale character set. Mark "<anonymous>" for translation.
6393 * tree-mudflap.c (mx_register_decls, mudflap_finish_file): Use %qE
6394 for identifiers in diagnostics.
6395 * tree.c (handle_dll_attribute): Use %qE for identifiers in
6396 diagnostics.
6397 * varasm.c (output_constructor): Use %qE for identifiers in
6398 diagnostics.
6399
40540e68
RAE
64002009-05-04 Rafael Avila de Espindola <espindola@google.com>
6401
6402 * configure.ac: use ` ` instead of $()
6403 * configure: Regenerate.
6404
33fc884c
BE
64052009-05-05 Ben Elliston <bje@au.ibm.com>
6406
6407 * config/pa/linux-atomic.c: Eliminate conditional include of
6408 errno.h on non-LP64 systems to simplify build requirements.
6409
88388a52
JM
64102009-05-04 Joseph Myers <joseph@codesourcery.com>
6411
6412 * c-common.c (handle_mode_attribute): Use %qE for identifiers in
6413 diagnostics.
6414 * c-decl.c (check_bitfield_type_and_width): Make orig_name a tree
6415 and pass value to identifier_to_locale.
6416 (warn_variable_length_array): Make name a tree.
6417 (grokdeclarator): Separate diagnostic texts for named and unnamed
6418 declarators. Use %qE for named declarators.
6419 * c-parser.c (c_lex_one_token): Use %qE for identifiers in
6420 diagnostics.
6421 * c-pragma.c (pop_alignment, handle_pragma_pack): Use %qE for
6422 identifiers in diagnostics.
6423 * c-typeck.c (push_member_name, start_init): Pass identifiers to
6424 identifier_to_locale. Mark "anonymous" strings for translation.
6425
960c5c79
ME
64262009-05-04 Michael Eager <eager@eagercon.com>
6427
6428 * config/rs6000/rs6000.c (rs6000_legitimate_address): Allow
aa016ff7 6429 address for DImode/DFmode only if double-precision FP regs.
960c5c79 6430
d083fbba
ME
64312009-05-04 Michael Eager <eager@eagercon.com>
6432
6433 * config/rs6000/rs6000.c (rs6000_libcall_value): Add
6434 TARGET_SINGLE_FLOAT check.
6435
c3ba8d32
ME
64362009-05-04 Michael Eager <eager@eagercon.com>
6437
6438 * config/rs6000/xilinx.h: Add CPP_SPEC for -mxilinx-fpu options.
6439
edce9f18
ME
64402009-05-04 Michael Eager <eager@eagercon.com>
6441
6442 * gcc/config.gcc: (powerpc-xilinx-eabi*): Add tm t-xilinx
6443 * config/rs6000/t-xilinx: New
6444
506d7b68
PB
64452009-05-04 Paolo Bonzini <bonzini@gnu.org>
6446
e913423f 6447 * doc/tm.texi (LEGITIMIZE_ADDRESS): Revise documentation.
506d7b68
PB
6448 * gcc/defaults.h (LEGITIMIZE_ADDRESS): Delete.
6449 * gcc/explow.c (memory_address): Use target hook.
6450 * gcc/targhooks.c (default_legitimize_address): New.
6451 * gcc/targhooks.h (default_legitimize_address): New.
6452 * gcc/target.h (legitimize_address): New.
6453 * gcc/target-def.h (TARGET_LEGITIMIZE_ADDRESS): New.
6454 (TARGET_INITIALIZER): Include it.
6455 * gcc/system.h (LEGITIMIZE_ADDRESS): Poison.
6456
6457 * config/bfin/bfin-protos.h (legitimize_address): Remove.
6458 * config/bfin/bfin.c (legitimize_address): Remove.
6459 * config/bfin/bfin.h (LEGITIMIZE_ADDRESS): Remove.
aa016ff7
UB
6460 * config/m68hc11/m68hc11-protos.h (m68hc11_legitimize_address):
6461 Remove.
506d7b68
PB
6462 * config/m68hc11/m68hc11.c (m68hc11_legitimize_address): Remove.
6463 * config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Remove.
6464
6465 * gcc/config/arm/arm.h (LEGITIMIZE_ADDRESS, ARM_LEGITIMIZE_ADDRESS,
6466 THUMB_LEGITIMIZE_ADDRESS, THUMB2_LEGITIMIZE_ADDRESS): Delete.
6467 * gcc/config/s390/s390.h (LEGITIMIZE_ADDRESS): Delete.
6468 * gcc/config/m32c/m32c.h (LEGITIMIZE_ADDRESS): Delete.
6469 * gcc/config/sparc/sparc.h (LEGITIMIZE_ADDRESS): Delete.
6470 * gcc/config/m32r/m32r.h (LEGITIMIZE_ADDRESS): Delete.
6471 * gcc/config/i386/i386.h (LEGITIMIZE_ADDRESS): Delete.
6472 * gcc/config/sh/sh.h (LEGITIMIZE_ADDRESS): Delete.
6473 * gcc/config/avr/avr.h (LEGITIMIZE_ADDRESS): Delete.
6474 * gcc/config/m68hc11/m68hc11.h (LEGITIMIZE_ADDRESS): Delete.
6475 * gcc/config/iq2000/iq2000.h (LEGITIMIZE_ADDRESS): Delete.
6476 * gcc/config/mn10300/mn10300.h (LEGITIMIZE_ADDRESS): Delete.
6477 * gcc/config/m68k/m68k.h (LEGITIMIZE_ADDRESS): Delete.
6478 * gcc/config/score/score.h (LEGITIMIZE_ADDRESS): Delete.
6479 * gcc/config/pa/pa.h (LEGITIMIZE_ADDRESS): Delete.
6480 * gcc/config/mips/mips.h (LEGITIMIZE_ADDRESS): Delete.
6481 * gcc/config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Delete.
6482 * gcc/config/frv/frv.h (LEGITIMIZE_ADDRESS): Delete.
6483 * gcc/config/spu/spu.h (LEGITIMIZE_ADDRESS): Delete.
6484 * gcc/config/xtensa/xtensa.h (LEGITIMIZE_ADDRESS): Delete.
6485 * gcc/config/cris/cris.h (LEGITIMIZE_ADDRESS): Delete.
6486 * gcc/config/rs6000/rs6000.h (LEGITIMIZE_ADDRESS): Delete.
6487 * gcc/config/picochip/picochip.h (LEGITIMIZE_ADDRESS): Delete.
6488
6489 * gcc/config/s390/s390-protos.h (legitimize_address): Delete.
6490 * gcc/config/m32c/m32c-protos.h (m32c_legitimize_address): Delete.
6491 * gcc/config/sparc/sparc-protos.h (legitimize_address): Delete.
6492 * gcc/config/i386/i386-protos.h (legitimize_address): Delete.
6493 * gcc/config/avr/avr-protos.h (legitimize_address): Delete.
6494 * gcc/config/mn10300/mn10300-protos.h (legitimize_address): Delete.
6495 * gcc/config/score/score-protos.h (score_legitimize_address): Delete.
6496 * gcc/config/arm/arm-protos.h (arm_legitimize_address,
6497 (thumb_legitimize_address): Delete.
6498 * gcc/config/pa/pa-protos.h (hppa_legitimize_address): Delete.
6499 * gcc/config/mips/mips-protos.h (mips_legitimize_address): Delete.
6500 * gcc/config/alpha/alpha-protos.h (alpha_legitimize_address): Delete.
6501 * gcc/config/frv/frv-protos.h (frv_legitimize_address): Delete.
6502 * gcc/config/spu/spu-protos.h (spu_legitimize_address): Delete.
aa016ff7
UB
6503 * gcc/config/xtensa/xtensa-protos.h (xtensa_legitimize_address):
6504 Delete.
6505 * gcc/config/rs6000/rs6000-protos.h (rs6000_legitimize_address):
6506 Delete.
506d7b68
PB
6507
6508 * config/arm/arm.c (arm_legitimize_address): Maybe call Thumb version.
6509 * config/m32c/m32c.c (m32c_legitimize_address): Standardize.
6510 * config/m32r/m32r.c (m32r_legitimize_address): New.
6511 * config/m68k/m68k.c (m68k_legitimize_address): New.
6512 * config/score/score.c (score_legitimize_address): Standardize.
6513 * config/score/score3.c (score3_legitimize_address): Standardize.
6514 * config/score/score3.h (score3_legitimize_address): Adjust.
6515 * config/score/score7.c (score7_legitimize_address): Standardize.
6516 * config/score/score7.h (score7_legitimize_address): Adjust.
6517 * config/sh/sh.c (sh_legitimize_address): New.
6518 * config/iq2000/iq2000.c (iq2000_legitimize_address): New.
6519
6520 * gcc/config/s390/s390.c (legitimize_address): Rename to...
6521 (s390_legitimize_address): ... this.
6522 * gcc/config/sparc/sparc.c (legitimize_address): Rename to...
6523 (sparc_legitimize_address): ... this.
6524 * gcc/config/i386/i386.c (legitimize_address): Rename to...
6525 (ix86_legitimize_address): ... this.
6526 * gcc/config/avr/avr.c (legitimize_address): Rename to...
6527 (avr_legitimize_address): ... this.
6528 * gcc/config/mn10300/mn10300.c (legitimize_address): Rename to...
6529 (mn10300_legitimize_address): ... this.
6530 * config/alpha/alpha.c (alpha_legitimize_address): Wrap...
6531 (alpha_legitimize_address_1): ... the old alpha_legitimize_address.
6532 (alpha_expand_mov): Adjust call.
6533
6534 * config/frv/frv.c (frv_legitimize_address): Return x on failure.
6535 * config/spu/spu.c (spu_legitimize_address): Likewise.
6536 * config/xtensa/xtensa.c (xtensa_legitimize_address): Likewise.
6537 * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
6538
a3af5087
JM
65392009-05-04 Joseph Myers <joseph@codesourcery.com>
6540
6541 * intl.c (locale_encoding, locale_utf8): New.
6542 (gcc_init_libintl): Initialize locale_encoding and locale_utf8.
6543 * intl.h (locale_encoding, locale_utf8): Declare.
6544 * pretty-print.c: Include ggc.h. Include iconv.h if HAVE_ICONV.
6545 (pp_base_tree_identifier, decode_utf8_char, identifier_to_locale):
6546 New.
6547 * pretty-print.h (pp_identifier): Call identifier_to_locale on ID
6548 argument.
6549 (pp_tree_identifier): Define to call pp_base_tree_identifier.
6550 (pp_base_tree_identifier): Declare as function.
6551 (identifier_to_locale): Declare.
6552 * Makefile.in (pretty-print.o): Update dependencies.
aa016ff7 6553 * varasm.c (finish_aliases_1): Use %qE for identifiers in diagnostics.
a3af5087 6554
ea5cd5f1
RG
65552009-05-04 Richard Guenther <rguenther@suse.de>
6556
6557 PR middle-end/40015
6558 * builtins.c (fold_builtin_memory_op): Do not decay to element
6559 type if the size matches the whole array.
6560
ddc2690a
KH
65612009-05-04 Kazu Hirata <kazu@codesourcery.com>
6562
6563 * expmed.c (synth_mult): When trying out a shift, pass the result
6564 of a signed shift.
6565
ef268d34
KH
65662009-05-04 Kazu Hirata <kazu@codesourcery.com>
6567
6568 * expmed.c (shiftsub_cost): Rename to shiftsub0_cost.
6569 (shiftsub1_cost): New.
6570 (init_expmed): Compute shiftsub1_cost.
6571 (synth_mult): Optimize multiplications by constants of the form
6572 -(2^^m-1) for some constant positive integer m.
6573
255d3827
RG
65742009-05-03 Richard Guenther <rguenther@suse.de>
6575
6576 PR c/39983
6577 * c-typeck.c (array_to_pointer_conversion): Do not built
6578 ADDR_EXPRs of arrays of pointer-to-element type.
6579 * c-gimplify.c (c_gimplify_expr): Revert change fixing
6580 up wrong ADDR_EXPRs after-the-fact.
6581 * c-common.c (strict_aliasing_warning): Strip pointer
6582 conversions for obtaining the original type.
6583 * builtins.c (fold_builtin_memset): Handle array types.
6584 (fold_builtin_memory_op): Handle folded POINTER_PLUS_EXPRs
6585 and array types
6586
16c33770
RG
65872009-05-03 Richard Guenther <rguenther@suse.de>
6588
6589 PR middle-end/23329
6590 * tree-ssa.c (useless_type_conversion_p_1): Use get_deref_alias_set.
6591 Do not lose casts from array types with unknown extent to array
6592 types with known extent.
6593 * tree-ssa-copy.c (may_propagate_copy): Remove hack checking for
6594 alias set compatibility.
6595
62a67c94
MLI
65962009-05-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
6597
6598 * flags.h (extra_warnings): Delete.
6599 * toplev.c (process_options): Handle Wuninitialized here.
6600 * opts.c (extra_warnings): Delete.
6601 (set_Wextra): Delete.
6602 (common_handle_option): -Wextra can be handled automatically.
6603 * c-opts.c (c_common_handle_option): Delete obsolete code.
6604 (c_common_post_options): Simplify comment.
6605 * common.opt (W): Add Var.
6606 (Wextra): Add Var.
6607 (Wuninitialized): Initialize to -1.
6608
8c7926c4
AN
66092009-05-03 Adam Nemet <anemet@caviumnetworks.com>
6610 Richard Guenther <rguenther@suse.de>
6611
6612 * expr.c (get_def_for_expr): New function.
6613 (expand_expr_real_1) <PLUS_EXPR, MINUS_EXPR>: Adjust to work with
6614 SSA rather than trees.
6615 <MULT_EXPR>: Likewise. Use subexp0 and subexp1 instead of
6616 TREE_OPERAND (exp, 0) and TREE_OPERAND (exp, 1).
6617
fa5da7de
JM
66182009-05-03 Joseph Myers <joseph@codesourcery.com>
6619
6620 * c-common.c (reswords): Add _Imaginary.
6621 * c-common.c (enum rid): Add RID_IMAGINARY.
6622
2ddd5020
PB
66232009-05-03 Paolo Bonzini <bonzini@gnu.org>
6624
6625 * tree.h (TYPE_VECTOR_OPAQUE): Fix documentation.
6626 Patch by Richard Guenther.
6627
aea88c05
AS
66282009-05-03 Anatoly Sokolov <aesok@post.ru>
6629
6630 * defaults.h (FRAME_POINTER_REQUIRED): Provide default.
6631 * doc/tm.texi (FRAME_POINTER_REQUIRED): Revise documentation.
6632 * config/alpha/alpha.h (FRAME_POINTER_REQUIRED): Delete.
6633 * config/s390/s390.h (FRAME_POINTER_REQUIRED): Delete.
6634 * config/spu/spu.h (FRAME_POINTER_REQUIRED): Delete.
6635 * config/sh/sh.h (FRAME_POINTER_REQUIRED): Delete.
6636 * config/pdp11/pdp11.h (FRAME_POINTER_REQUIRED): Delete.
6637 * config/stormy16/stormy16.h (FRAME_POINTER_REQUIRED): Delete.
6638 * config/m68hc11/m68hc11.h (FRAME_POINTER_REQUIRED): Delete.
6639 * config/iq2000/iq2000.h (FRAME_POINTER_REQUIRED): Delete.
6640 * config/mn10300/mn10300.h (FRAME_POINTER_REQUIRED): Delete.
6641 * config/ia64/ia64.h (FRAME_POINTER_REQUIRED): Delete.
6642 * config/m68k/m68k.h (FRAME_POINTER_REQUIRED): Delete.
6643 * config/rs6000/rs6000.h (FRAME_POINTER_REQUIRED): Delete.
6644 * config/picochip/picochip.h (FRAME_POINTER_REQUIRED): Delete.
6645 * config/mcore/mcore.h (FRAME_POINTER_REQUIRED): Delete.
6646 * config/h8300/h8300.h (FRAME_POINTER_REQUIRED): Delete.
6647 * config/v850/v850.h (FRAME_POINTER_REQUIRED): Delete.
6648
85e59f3a
RG
66492009-05-02 Richard Guenther <rguenther@suse.de>
6650
6651 PR tree-optimization/39940
6652 * tree-ssa-pre.c (eliminate): Make sure we may propagate before
6653 doing so.
6654
4636b850
RG
66552009-05-02 Richard Guenther <rguenther@suse.de>
6656
6657 PR middle-end/40001
6658 * tree-ssa.c (execute_update_addresses_taken): Properly check
6659 if we can mark a variable DECL_GIMPLE_REG_P.
6660 * gimple.c (is_gimple_reg): Re-order check for DECL_GIMPLE_REG_P
6661 back to the end of the function.
6662 (is_gimple_reg_type): Remove complex type special casing.
6663 * gimplify.c (gimplify_bind_expr): Do not set DECL_GIMPLE_REG_P
6664 if not optimizing.
6665
5e10cb5a
BE
66662009-05-02 Ben Elliston <bje@au.ibm.com>
6667
6668 * doc/collect2.texi (Collect2): Document search path behaviour
6669 when configured with --with-ld.
6670
048bf48b
JH
66712009-05-02 Jan Hubicka <jh@suse.cz>
6672
6673 * tree-ssa-coalesce.c (coalesce_cost): Do not take ciritical
6674 parameter; update callers.
aa016ff7
UB
6675 (coalesce_cost_edge): EH edges are costier because they needs
6676 splitting even if not critical and even more costier when there are
6677 multiple EH predecestors.
048bf48b 6678
d5c5f9ab
JH
66792009-05-02 Jan Hubicka <jh@suse.cz>
6680
6681 * except.c (remove_eh_handler_and_replace): Handle updating after
6682 removing TRY blocks.
6683
2ed1959a
EB
66842009-05-02 Eric Botcazou <ebotcazou@adacore.com>
6685
6686 * store-motion.c (compute_store_table): Add ENABLE_CHECKING guard.
6687
d363a7e7
SB
66882009-05-02 Steven Bosscher <steven@gcc.gnu.org>
6689
6690 * varasm.c: Do not include c-pragma.h.
6691 * attribs.c: Do not incude c-common.h.
6692
9c3d55b4
MM
66932009-05-01 Michael Matz <matz@suse.de>
6694
6695 * calls.c (initialize_argument_information): Handle SSA names like
6696 decls with a non MEM_P DECL_RTL.
6697
ea264ca5
SB
66982009-05-01 Steven Bosscher <steven@gcc.gnu.org>
6699
6700 * ipa-reference.c: Do not include c-common.h, include splay-tree.h.
6701 * ipa-utils.c: Likewise.
6702 * ipa-type-escape.c: Likewise.
6703 * cgraphunit.c Do not include c-common.h.
6704 * ipa-pure-const.c: Likewise.
6705 * tree-if-conv.c: Likewise.
6706 * matrix-reorg.c: Do not include c-common.h and c-tree.h.
6707 * ipa-struct-reorg.c: Likewise.
6708 * tree-nomudflap.c: Likewise.
6709 * tree-ssa-structalias.c: Likewise.
6710
6c5d4d1a
SB
67112009-05-01 Steven Bosscher <steven@gcc.gnu.org>
6712
6713 * store-motion.c: Many cleanups to make this pass a first-class
6714 citizen instead of an appendix to gcse load motion. Add TODO list
6715 to make this pass faster/cleaner/better.
6716
6717 (struct ls_expr): Post gcse.c-split cleanups.
6718 Rename to st_expr. Rename "loads" field to "antic_stores". Rename
6719 "stores" field to "avail_stores".
6720 (pre_ldst_mems): Rename to store_motion_mems.
6721 (pre_ldst_table): Rename to store_motion_mems_table.
6722 (pre_ldst_expr_hash): Rename to pre_st_expr_hash, update users.
6723 (pre_ldst_expr_eq): Rename to pre_st_expr_eq, update users.
6724 (ldst_entry): Rename to st_expr_entry, update users.
6725 (free_ldst_entry): Rename to free_st_expr_entry, update users.
6726 (free_ldst_mems): Rename to free_store_motion_mems, update users.
aa016ff7
UB
6727 (enumerate_ldsts): Rename to enumerate_store_motion_mems,
6728 update caller.
6c5d4d1a
SB
6729 (first_ls_expr): Rename to first_st_expr, update users.
6730 (next_ls_expr): Rename to next_st_expr, update users.
6731 (print_ldst_list): Rename to print_store_motion_mems. Print names of
6732 fields properly for store motion instead of names inherited from load
6733 motion in gcse.c.
6734 (ANTIC_STORE_LIST, AVAIL_STORE_LIST): Remove.
6735 (LAST_AVAIL_CHECK_FAILURE): Explain what this is. Undefine when we
6736 are done with it.
6737
6738 (ae_kill): Rename to st_kill, update users.
6739 (ae_gen): Rename to st_avloc, update users.
6740 (transp): Rename to st_transp, update users.
6741 (pre_insert_map): Rename to st_insert_map, update users.
6742 (pre_delete_map): Rename to st_delete_map, update users.
6743 (insert_store, build_store_vectors, free_store_memory,
6744 one_store_motion_pass): Update for abovementioned changes.
6745
6746 (gcse_subst_count, gcse_create_count): Remove.
6747 (one_store_motion_pass): New statistics counters "n_stores_deleted"
6748 and "n_stores_created", local variables.
6749
6750 (extract_mentioned_regs, extract_mentioned_regs_1): Rewrite to
6751 use for_each_rtx.
6752
6753 (regvec, compute_store_table_current_insn): Remove.
6754 (reg_set_info, reg_clear_last_set): Remove.
6755 (compute_store_table): Use DF caches instead of local dataflow
6756 solvers.
6757
b02cec6e
JM
67582009-05-01 Joseph Myers <joseph@codesourcery.com>
6759
6760 * c-objc-common.c (c_tree_printer): Print identifiers with
6761 pp_identifier, not pp_string. Mark "({anonymous})" for
6762 translation.
6763 * c-pretty-print.c (pp_c_ws_string): New.
6764 (pp_c_cv_qualifier, pp_c_type_specifier,
6765 pp_c_specifier_qualifier_list, pp_c_parameter_type_list,
6766 pp_c_storage_class_specifier, pp_c_function_specifier,
6767 pp_c_attributes, pp_c_bool_constant, pp_c_constant,
6768 pp_c_primary_expression, pp_c_postfix_expression,
6769 pp_c_unary_expression, pp_c_shift_expression,
6770 pp_c_relational_expression, pp_c_equality_expression,
6771 pp_c_logical_and_expression, pp_c_logical_or_expression): Mostly
6772 use pp_string and pp_c_ws_string in place of pp_identifier and
6773 pp_c_identifier for non-identifiers. Mark English strings for
6774 translation.
6775 * c-pretty-print.h (pp_c_ws_string): Declare.
6776
cd533689
PP
67772009-04-30 Paul Pluzhnikov <ppluzhnikov@google.com>
6778 Roland McGrath <roland@redhat.com>
6779
aa016ff7 6780 * configure.ac (HAVE_LD_BUILDID): New check for ld --build-id support.
cd533689
PP
6781 (ENABLE_LD_BUILDID): New configuration option.
6782 * gcc.c [HAVE_LD_BUILDID and ENABLE_LD_BUILDID]
6783 (LINK_BUILDID_SPEC): New macro.
6784 (init_spec): If defined, prepend it between LINK_EH_SPEC and
6785 link_spec.
6786 * doc/install.texi: Document --enable-linker-build-id option.
6787 * configure: Rebuild.
6788 * config.in: Rebuild.
6789
ba6adec4
AN
67902009-04-30 Adam Nemet <anemet@caviumnetworks.com>
6791
6792 * config/mips/mips.h (FRAME_GROWS_DOWNWARD,
6793 MIPS_GP_SAVE_AREA_SIZE): Define new macros.
6794 (STARTING_FRAME_OFFSET): Return 0 if FRAME_GROWS_DOWNWARD. Use
6795 MIPS_GP_SAVE_AREA_SIZE.
6796 * config/mips/mips.c (struct mips_frame_info): Update comment
6797 before arg_pointer_offset and hard_frame_pointer_offset.
6798 (mips_compute_frame_info): Update diagram before function: to
6799 correctly use stack_pointer_rtx for fp_sp_offset and gp_sp_offset, to
6800 indicate the position of frame_pointer_rtx with -fstack-protector and
6801 to show args_size. Don't allocate cprestore area for leaf functions
6802 if FRAME_GROWS_DOWNWARD. Use MIPS_GP_SAVE_AREA_SIZE to set
6803 cprestore_size.
6804 (mips_initial_elimination_offset): Update for FRAME_GROWS_DOWNWARD.
6805
48f5b722
MM
68062009-04-30 Michael Matz <matz@suse.de>
6807
ba6adec4
AN
6808 PR tree-optimization/39955
6809 * config/rs6000/rs6000.c (rs6000_check_sdmode): Also check SSA_NAMEs.
48f5b722 6810
b65d6744
DK
68112009-04-30 Dave Korn <dave.korn.cygwin@gmail.com>
6812
6813 * ira.c (setup_cover_and_important_classes): Use safe macro
6814 REG_CLASS_FOR_CONSTRAINT instead of calling regclass_for_constraint
6815 directly.
6816 * genpreds.c (write_tm_preds_h): Output suitable definition of
6817 REG_CLASS_FOR_CONSTRAINT.
6818
f136c8ae
RAE
68192009-04-30 Rafael Avila de Espindola <espindola@google.com>
6820
6821 * alloc-pool.c (alloc_pool_descriptor): Use an insert_opion value
6822 instead of an int.
6823 * bitmap.c (bitmap_descriptor): Likewise.
6824 * ggc-common.c (loc_descriptor): Likewise.
6825 * varray.c (varray_descriptor): Likewise.
6826 * vec.c (vec_descriptor): Likewise.
6827
43fcece8 68282009-04-30 Eric Botcazou <ebotcazou@adacore.com>
35debead
EB
6829
6830 * Makefile.in (dce.o): Add $(EXCEPT_H).
6831 * dce.c: Include except.h and delete redundant vector definitions.
6832 (deletable_insn_p): Return false for non-call insns that can throw
6833 if DF is running.
6834
df35c271
SB
68352009-04-30 Steven Bosscher <steven@gcc.gnu.org>
6836
6837 * gcse.c (ae_gen): Remove.
6838 (can_assign_to_reg_p): Rename to can_assign_to_reg_without_clobbers_p
6839 and make non-static function to make it available in store-motion.c.
6840 Update call sites with search-and-replace.
6841 (enumerate_ldsts, reg_set_info, reg_clear_last_set, store_ops_ok,
6842 extract_mentioned_regs, extract_mentioned_regs_helper,
6843 find_moveable_store, compute_store_table, load_kills_store, find_loads,
6844 store_killed_in_insn, store_killed_after, store_killed_before,
6845 build_store_vectors, insert_insn_start_basic_block, insert-store,
6846 remove_reachable_equiv_notes, replace_store_insn, delete_store,
6847 free_store_memory, one_store_motion_pass, gate_rtl_store_motion,
6848 execute_rtl_store_motion, pass_rtl_store_motion): Move to...
6849 * store-motion.c: ...new file. Also copy data structures from gcse.c
6850 and clean up to remove parts not used by store motion.
6851 * rtl.h (can_assign_to_reg_without_clobbers_p): Add prototype.
6852 * Makefile.in (store-motion.o): New rule. Add to OBJS-common.
6853
f711a87a
RR
68542009-04-30 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6855
6856 PR target/38571
6857 * config/arm/arm.h (FUNCTION_BOUNDARY): Set to 16 for thumb
6858 when optimizing for size.
6859
fa5ed76e
HPN
68602009-04-30 Hans-Peter Nilsson <hp@axis.com>
6861
6862 * gcse.c (gcse_constant_p): Fix typo in last change.
6863
0acbbdb0
RAE
68642009-04-30 Rafael Avila de Espindola <espindola@google.com>
6865
6866 * plugin.c: Include plugin-version.h only if ENABLE_PLUGIN is defined.
6867
82f5c05d
AK
68682009-04-30 Andreas Krebbel <krebbel1@de.ibm.com>
6869
6870 * gcse.c (gcse_constant_p): Make sure the constant is sharable.
6871
6d8f135b
JW
68722009-04-29 James E. Wilson <wilson@codesourcery.com>
6873
6874 * config/mips/mips.c (mips_add_offset): Use gen_int_mode for
6875 CONST_HIGH_PART result.
6876
c21ca196
AS
68772009-04-29 Anatoly Sokolov <aesok@post.ru>
6878
6879 * config/avr/avr.c (initial_elimination_offset): Rename to
6880 avr_initial_elimination_offset.
6881 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p,
6882 change return type to bool.
6883 (avr_can_eliminate): New function.
6884 * config/avr/avr.h (CAN_ELIMINATE): Use avr_can_eliminate.
6885 (FRAME_POINTER_REQUIRED): Use avr_frame_pointer_required_p.
6886 (INITIAL_ELIMINATION_OFFSET): Use avr_initial_elimination_offset.
0d50d55a 6887 * config/avr/avr-protos.h (initial_elimination_offset): Rename to
c21ca196
AS
6888 avr_initial_elimination_offset.
6889 (frame_pointer_required_p): Rename to avr_frame_pointer_required_p.
6890 (avr_initial_elimination_offset): Define.
6891
2a34bece 68922009-04-29 Eric Botcazou <ebotcazou@adacore.com>
aa016ff7 6893 Steven Bosscher <steven@gcc.gnu.org>
2a34bece
EB
6894
6895 PR rtl-optimization/39938
6896 * Makefile.in (cfgrtl.o): Add $(INSN_ATTR_H).
6897 * cfgrtl.c: Include insn-attr.h.
6898 (rest_of_pass_free_cfg): New function.
6899 (pass_free_cfg): Use rest_of_pass_free_cfg as execute function.
6900 * resource.c (init_resource_info): Remove call to df_analyze.
6901
5dc7911e
RG
69022009-04-29 Richard Guenther <rguenther@suse.de>
6903
6904 PR target/39943
6905 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Only
6906 allow conversion to signed integers.
6907
1fe479fd
RG
69082009-04-29 Richard Guenther <rguenther@suse.de>
6909
6910 * tree-cfg.c (verify_gimple_assign_binary): Allow vector
6911 shifts of floating point vectors if the shift amount is
6912 a constant multiple of the element size.
6913
8e001680
AK
69142009-04-29 Andreas Krebbel <krebbel1@de.ibm.com>
6915 Michael Matz <matz@suse.de>
6916
6917 PR middle-end/39927
6918 PR bootstrap/39929
6919 * tree-outof-ssa.c (emit_partition_copy): New function.
6920 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
6921 insert_part_to_rtx_on_edge): Perform the partition base var
6922 copy using emit_partition_copy.
6923 (insert_value_copy_on_edge): Convert constants to the right mode.
6924 (insert_rtx_to_part_on_edge): Add UNSIGNEDSRCP parameter.
6925 (elim_create): Pass the sign of the src to insert_rtx_to_part_on_edge.
6926
e50e3081
BS
69272009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
6928
6929 * config/bfin/bfin.c (bfin_optimize_loop): If we need a scratch reg,
6930 scan backwards to try to find a constant to initialize it.
6931
4e5d521b
BS
6932 * config/bfin/bfin.c (bfin_optimize_loop): When looking for the last
6933 insn before the loop_end instruction, don't look past labels.
6934
7c90021d
RG
69352009-04-29 Richard Guenther <rguenther@suse.de>
6936
6937 PR middle-end/39937
6938 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Do not
6939 loose type conversions.
6940 (forward_propagate_addr_expr): Fix tuplification bug. Remove
6941 stmts only if there are no uses of its definition.
6942
97a988bc
BS
69432009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
6944
6945 * config/bfin/bfin.h (splitting_loops): Declare.
6946 * config/bfin/bfin-protos.h (WA_05000257, WA_05000283, WA_05000315):
6947 Reorder bit definitions to be ascending.
6948 (WA_LOAD_LCREGS, ENABLE_WA_LOAD_LCREGS): New macros.
6949 * config/bfin/bfin.c (splitting_loops): New variable.
6950 (bfin_cpus): Add WA_LOAD_LCREGS as needed.
6951 (struct loop_info): Remove members INIT and LOOP_INIT.
6952 (bfin_optimize_loop): Don't set them. Reorder the code that generates
aa016ff7
UB
6953 the LSETUP sequence. Allow LC to be loaded from any register, but
6954 also add a case to push/pop a PREG scratch if ENABLE_WA_LOAD_LCREGS.
97a988bc
BS
6955 (bfin_reorg_loops): When done, split all BB_ENDs with splitting_loops
6956 set to 1.
6957 * config/bfin/bfin.md (loop_end splitter): Use splitting_loops instead
6958 of reload_completed.
aa016ff7 6959
97a988bc
BS
6960 From Jie Zhang:
6961 * config/bfin/bfin.md (movsi_insn): Refine constraints.
6962
0c463e16
RAE
69632009-04-29 Rafael Avila de Espindola <espindola@google.com>
6964
6965 * Makefile.in (PLUGIN_VERSION_H): New.
6966 (OBJS-common): Remove plugin-version.o.
6967 (plugin.o): Depend on (PLUGIN_VERSION_H).
6968 (plugin-version.o): Remove.
6969 * configure: Regenerate
6970 * configure.ac: Create plugin-version.h.
6971 * gcc-plugin.h (plugin_gcc_version): Remove.
6972 (plugin_default_version_check): Change signature.
6973 * plugin-version.c: Remove.
6974 * plugin.c: Include plugin-version.h.
6975 (str_plugin_gcc_version_name): Remove.
6976 (try_init_one_plugin): Pass gcc version to plugin_init.
6977 (plugin_default_version_check): Both gcc and plugin versions are now
6978 arguments.
6979
307e7eab
BS
69802009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
6981
6982 * config/bfin/bfin.c (bfin_optimize_loop): Unify handling of
6983 problematic last insns. Test for TYPE_CALL rather than CALL_P.
aa016ff7
UB
6984 Remove special case testing for last insn of inner loops. Don't fail
6985 if the loop ends with a jump, emit an extra nop instead.
307e7eab 6986
c5d96723
BS
6987 * config/bfin/bfin.c (bfin_register_move_cost): Test for subsets of
6988 DREGS rather than comparing directly. Remove code that tries to
6989 account for latencies.
6990
de0b4ad5
RG
69912009-04-29 Richard Guenther <rguenther@suse.de>
6992
6993 PR tree-optimization/39941
6994 * tree-ssa-pre.c (eliminate): Schedule update-ssa after
6995 eliminating an indirect call.
6996
3a19701a
RG
69972009-04-29 Richard Guenther <rguenther@suse.de>
6998
6999 * tree-cfg.c (verify_types_in_gimple_reference): Add require_lvalue
7000 parameter. Allow invariants as base if !require_lvalue.
7001 (verify_gimple_assign_single): Adjust.
7002
a0a31d1e
BS
70032009-04-29 Bernd Schmidt <bernd.schmidt@analog.com>
7004
7005 * config/bfin/bfin.md (sp_or_sm, spm_string, spm_name): New macro.
7006 (ss<spm_name>hi3, ss<spm_name>hi3_parts, ss<spm_name>hi3_low_parts,
aa016ff7
UB
7007 ss<spm_name_hi3_high_parts): New patterns, replacing ssaddhi3,
7008 ssubhi3, ssaddhi3_parts and sssubhi3_parts.
a0a31d1e
BS
7009 (flag_mulhi3_parts): Produce a HImode output rather than trying to set
7010 a VEC_SELECT.
aa016ff7
UB
7011 * config/bfin/bfin.c (bfin_expand_builtin,
7012 case BFIN_BUILTIN_CPLX_SQU): Adjust accordingly.
a0a31d1e 7013
795bd26a
RG
70142009-04-28 Richard Guenther <rguenther@suse.de>
7015
7016 * tree-vect-loop.c (get_initial_def_for_induction): Use
7017 correct types for pointer increment.
7018
04be270f
KG
70192009-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7020
7021 * toplev.c (print_version): Update GMP version string calculation.
7022
e1a3b85c
EB
70232009-04-28 Eric Botcazou <ebotcazou@adacore.com>
7024
7025 PR rtl-optimization/39938
7026 * resource.c (init_resource_info): Add call to df_analyze.
7027
8224166e
UB
70282009-04-28 Uros Bizjak <ubizjak@gmail.com>
7029
7030 * config/alpha/alpha.md (usegp): Cast the result of
7031 alpha_find_lo_sum_using_gp to enum attr_usegp.
7032 * config/alpha/alpha.c (override_options): Remove end-of-structure
7033 marker element from cpu_table. Use array size of cpu_table to handle
7034 -mcpu and -mtune options.
7035 (tls_symbolic_operand_type): Change 0 to TLS_MODEL_NONE.
7036
c5f0fe67
JM
70372009-04-28 Joseph Myers <joseph@codesourcery.com>
7038
7039 * config.gcc (powerpc*-*-* | rs6000-*-*): Add
7040 rs6000/option-defaults.h to tm_file. Support cpu_32, cpu_64,
7041 tune_32 and tune_64.
7042 * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
7043 support on PowerPC.
7044 * config/rs6000/rs6000.h (OPTION_DEFAULT_SPECS): Move to ...
7045 * config/rs6000/option-defaults.h: ... here. New file.
7046 (OPT_64, OPT_32): Define.
7047 (MASK_64BIT): Define to 0 if not already defined.
7048 (OPT_ARCH64, OPT_ARCH32): Define.
7049 (OPTION_DEFAULT_SPECS): Add entries for cpu_32, cpu_64, tune_32
7050 and tune_64.
7051
0c48a567
RR
70522009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7053
7054 * config/arm/arm.c (arm_override_options): Emit error on using
7055 fpa with AAPCS.
7056
f1028b9d
UB
70572009-04-28 Uros Bizjak <ubizjak@gmail.com>
7058
7059 PR rtl-optimization/39914
7060 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
7061 registers for allocnos created from user-defined variables only
7062 when not optimizing.
7063
e0dd989a
RG
70642009-04-28 Richard Guenther <rguenther@suse.de>
7065
7066 PR middle-end/39937
7067 * fold-const.c (fold_binary): Use distribute_real_division only
7068 on float types.
7069
9a17c91d
SE
70702009-04-28 Steve Ellcey <sje@cup.hp.com>
7071
7072 * config.gcc (hppa*64*-*-hpux11*): Set use_gcc_stdint and
7073 add hpux-stdint.h to tm_file.
7074 (hppa[12]*-*-hpux11*): Ditto.
7075 (ia64*-*-hpux*): Ditto.
7076 * config/hpux-stdint.h: New.
60839f5d 7077 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Set
9a17c91d 7078 __STDC_EXT__ for all compiles.
60839f5d
EB
7079 * config/pa/pa-hpux.h: Ditto.
7080 * config/pa/pa-hpux10.h: Ditto.
7081 * config/pa/pa-hpux11.h: Ditto.
9a17c91d 7082
af04e659
CM
70832009-04-28 Catherine Moore <clm@codesourcery.com>
7084
7085 * debug.h (set_name): Add comment.
7086
04ef80ce
AP
70872009-04-28 Andrew Pinski <pinskia@gmail.com>
7088
7089 PR target/39929
7090 * config/darwin.c (machopic_gen_offset): Check
7091 currently_expanding_to_rtl if current_ir_type returns IR_GIMPLE.
7092 * config/arm/arm.c (require_pic_register): Likewise.
7093
65ad77af
PB
70942009-04-28 Paolo Bonzini <bonzini@gnu.org>
7095
8224166e
UB
7096 * config/m32c/m32c.c (TARGET_PROMOTE_FUNCTION_RETURN,
7097 m32c_promote_function_return, TARGET_PROMOTE_PROTOTYPES,
7098 m32c_promote_prototypes): Delete.
65ad77af 7099
1b15a008
MM
71002009-04-28 Michael Matz <matz@suse.de>
7101
7102 PR middle-end/39922
7103 * tree-outof-ssa.c (insert_value_copy_on_edge): Don't convert
7104 constants.
7105
7569a6cc
RG
71062009-04-28 Richard Guenther <rguenther@suse.de>
7107
f1028b9d 7108 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Fix type error.
7569a6cc 7109
ead204d9
RR
71102009-04-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7111
7112 * config/arm/arm-cores.def: Add support for arm1156t2f-s.
7113 * doc/invoke.texi (ARM Options): Document support for arm1156t2f-s.
7114 * config/arm/arm-tune.md: Regenerate.
7115
f2c45f08 71162009-04-28 Alexander Monakov <amonakov@ispras.ru>
60839f5d 7117
f2c45f08
AM
7118 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not attempt to delete a
7119 block if there are complex incoming edges.
7120 (sel_merge_blocks): Remove useless assert.
7121 (sel_redirect_edge_and_branch): Check that edge was redirected.
7122 * sel-sched-ir.h (_eligible_successor_edge_p): Remove assert.
7123 (sel_find_rgns): Delete declaration.
7124 * sel-sched.c (purge_empty_blocks): Attempt to remove first block of
7125 the region when it is not a preheader.
7126
7a00d767
UB
71272009-04-28 Uros Bizjak <ubizjak@gmail.com>
7128
7129 PR c/39323
7130 * config/alpha/elf.h (MAX_OFILE_ALIGNMENT): Sync with elfos.h
7131
448ee662
RG
71322009-04-28 Richard Guenther <rguenther@suse.de>
7133
7134 * tree.h (SSA_NAME_VALUE): Remove.
7135 (struct tree_ssa_name): Remove value_handle member.
7136 * tree-vrp.c (execute_vrp): Initialize/free the value-handle
7137 array for jump threading.
7138 * tree-ssa-propagate.c (ssa_prop_init): Do not initialize
7139 SSA_NAME_VALUEs.
7140 * print-tree.c (print_node): Do not dump SSA_NAME_VALUEs.
7141 * tree-flow.h (threadedge_initialize_values): Declare.
7142 (threadedge_finalize_values): Likewise.
7143 * tree-ssa-threadedge.c (ssa_name_values): New global variable.
7144 (SSA_NAME_VALUE): Define.
7145 (threadedge_initialize_values): New function.
7146 (threadedge_finalize_values): Likewise.
7147 * tree-ssa-dom.c (ssa_name_values): New global variable.
7148 (SSA_NAME_VALUE): Define.
f1028b9d 7149 (tree_ssa_dominator_optimize): Initialize/free the value-handle array.
448ee662 7150
8644a673
IR
71512009-04-28 Ira Rosen <irar@il.ibm.com>
7152
7153 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
7154 Use REPORT_VECTORIZED_LOCATIONS instead
7155 REPORT_VECTORIZED_LOOPS.
7156 * tree-vectorizer.c (vect_verbosity_level): Make static.
7157 (vect_loop_location): Rename to vect_location.
7158 (vect_set_verbosity_level): Update comment.
7159 (vect_set_dump_settings): Use REPORT_VECTORIZED_LOCATIONS
7160 and vect_location.
7161 (vectorize_loops): Fix comment. Use REPORT_VECTORIZED_LOCATIONS
7162 and vect_location. Use REPORT_UNVECTORIZED_LOCATIONS
7163 instead REPORT_UNVECTORIZED_LOOPS.
fbdf817d
UB
7164 * tree-vectorizer.h (enum vect_def_type): Rename vect_invariant_def
7165 and vect_loop_def to vect_external_def and vect_internal_def.
8644a673 7166 (enum verbosity_levels): Rename REPORT_VECTORIZED_LOOPS
7a00d767 7167 and REPORT_UNVECTORIZED_LOOPS to REPORT_VECTORIZED_LOCATIONS and
8644a673
IR
7168 REPORT_UNVECTORIZED_LOCATIONS.
7169 (enum vect_relevant): Update comment. Rename vect_unused_in_loop
7170 and vect_used_in_loop and to vect_unused_in_scope and
7171 vect_used_in_scope.
7172 (STMT_VINFO_RELEVANT_P): Use vect_unused_in_scope.
7173 (vect_verbosity_level): Remove declaration.
7174 (vect_analyze_operations): Likewise.
7175 (vect_analyze_stmt): Declare.
7176 * tree-vect-loop.c (vect_determine_vectorization_factor): Use
7177 REPORT_UNVECTORIZED_LOCATIONS.
7178 (vect_get_loop_niters): Fix indentation.
7179 (vect_analyze_loop_form): Use REPORT_UNVECTORIZED_LOCATIONS.
7180 (vect_analyze_loop_operations): New function.
7181 (vect_analyze_loop): Call vect_analyze_loop_operations instead of
7182 vect_analyze_operations.
7183 (vect_is_simple_reduction): Use new names.
7184 (vectorizable_live_operation, vect_transform_loop): Likewise.
fbdf817d
UB
7185 * tree-vect-data-refs.c (vect_check_interleaving): Add a return value
7186 to specify whether the data references can be a part of interleaving
7187 chain.
8644a673
IR
7188 (vect_analyze_data_ref_dependence): Use new names.
7189 (vect_analyze_data_refs_alignment, vect_analyze_data_refs): Likewise.
7190 (vect_create_addr_base_for_vector_ref): Remove redundant code.
7191 * tree-vect-patterns.c (widened_name_p): Use new names.
7192 (vect_recog_dot_prod_pattern): Likewise.
7193 * tree-vect-stmts.c (vect_stmt_relevant_p): Use new names.
7194 (process_use, vect_mark_stmts_to_be_vectorized,
7195 vect_model_simple_cost, vect_model_store_cost,
7196 vect_get_vec_def_for_operand, vect_get_vec_def_for_stmt_copy,
7197 vectorizable_call, vectorizable_conversion, vectorizable_assignment,
7198 vectorizable_operation, vectorizable_type_demotion,
7199 vectorizable_type_promotion, vectorizable_store, vectorizable_load,
7200 vectorizable_condition): Likewise.
7201 (vect_analyze_operations): Split into vect_analyze_loop_operations
7202 and ...
7203 (vect_analyze_stmt): ... new function.
7204 (new_stmt_vec_info): Use new names.
7205 (vect_is_simple_use): Use new names and fix comment.
7206 * tree-vect-slp.c (vect_get_and_check_slp_defs): Use new names.
7207 (vect_build_slp_tree, vect_analyze_slp, vect_schedule_slp): Likewise.
7208
b91322f2
UB
72092009-04-28 Uros Bizjak <ubizjak@gmail.com>
7210
7211 PR target/39911
7212 * config/i386/i386.c (print_operand) ['Z']: Handle floating point
7213 and integer modes for x87 operands. Do not ICE for unsupported size,
7214 generate error instead. Generate error for unsupported operand types.
7215 ['z']: Do not handle HImode memory operands specially. Warning
7216 for floating-point operands. Fallthru to 'Z' for unsupported operand
7217 types. Do not ICE for unsupported size, generate error instead.
7218 (output_387_binary_op): Use %Z to output operands.
7219 (output_fp_compare): Ditto.
7220 (output_387_reg_move): Ditto.
7221
b2ed71b6
BE
72222009-04-28 Ben Elliston <bje@au.ibm.com>
7223
7224 PR c++/35652
7225 Revert:
7226
7227 2009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
7228
7229 * builtins.c (c_strlen): Do not warn here.
7230 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
7231 * c-common.c (pointer_int_sum): Take an explicit location.
7232 Warn about offsets out of bounds.
7233 * c-common.h (pointer_int_sum): Adjust declaration.
7234
81f40b79
ILT
72352009-04-27 Ian Lance Taylor <iant@google.com>
7236
7237 * collect2.c (is_ctor_dtor): Change type of ret field in struct
7238 names to symkind.
7239 * dce.c (run_fast_df_dce): Change type of old_flags to int.
7240 * df-core.c (df_set_flags): Change return type to int. Change
7241 type of old_flags to int.
7242 (df_clear_flags): Likewise.
7243 * df-scan.c (df_def_record_1): Change 0 to VOIDmode.
7244 (df_get_conditional_uses): Likewise.
7245 * df.h (df_set_flags, df_clear_flags): Update declarations.
7246 * dwarf2out.c (struct indirect_string_node): Change type of form
7247 field to enum dwarf_form.
7248 (AT_string_form): Change return type to enum dwarf_form.
7249 * fixed-value.c (fixed_compare): Add cast to enum type.
7250 * fwprop.c (update_df): Change 0 to VOIDmode.
7251 * gensupport.c: Change 0 to UNKNOWN.
7252 * gimple.h (gimple_cond_code): Add cast to enum type.
7253 * haifa-sched.c (reemit_notes): Add cast to enum type.
7254 * hooks.c (hook_int_void_no_regs): Remove function.
7255 * hooks.h (hook_int_void_no_regs): Remove declaration.
7256 * optabs.c (expand_widen_pattern_expr): Change 0 to VOIDmode.
7a00d767 7257 * predict.c (combine_predictions_for_insn): Add casts to enum type.
81f40b79
ILT
7258 * real.c (real_arithmetic): Add cast to enum type.
7259 (real_compare): Likewise.
7260 * target.h (struct gcc_target): Change return type of
7261 branch_target_register_class to enum reg_class.
7262 * target-def.h (TARGET_BRANCH_TARGET_REGISTER_CLASS): Define as
7263 default_branch_target_register_class.
7a00d767 7264 * targhooks.c (default_branch_target_register_class): New function.
81f40b79 7265 * targhooks.h (default_branch_target_register_class): Declare.
7a00d767 7266 * tree-data-ref.c (print_direction_vector): Add cast to enum type.
81f40b79
ILT
7267 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Remove
7268 cast to int.
7269 * tree-vect-loop.c (vect_create_epilog_for_reduction): Change 0 to
7270 ERROR_MARK.
7271 * tree-vect-slp.c (vect_build_slp_tree): Change 0 to
7272 vect_uninitialized_def. Change 0 to ERROR_MARK.
7273 * tree-vect-stmts.c (supportable_widening_operation): Don't
7274 initialize icode1 and icode2.
7a00d767 7275 * tree-vectorizer.h (enum vect_def_type): Add vect_uninitialized_def.
81f40b79
ILT
7276 * config/sol2-c.c (cmn_err_length_specs): Change 0 to FMT_LEN_none
7277 and to STD_C89.
7278 (cmn_err_flag_specs): Change 0 to STD_C89.
7279 (cmn_err_char_table): Likewise.
7280 * config/arm/arm.c (get_arm_condition_code): Change type of code
7281 to enum arm_cond_code.
7282 (IWMMXT_BUILTIN): Change 0 to UNKNOWN.
7283 (IWMMXT_BUILTIN2): Likewise.
7284 (neon_builtin_type_bits): Don't define typedef.
7285 (neon_builtin_datum): Change type of bits field to int.
7286 (arm_expand_neon_args): Add cast to enum type.
7287 * config/ia64/ia64.c (tls_symbolic_operand_type): Change 0 to
7288 TLS_MODEL_NONE.
7289 * config/i386/i386.c (bdesc_multi_arg): Change 0 to UNKNOWN. Add
7290 casts to enum type.
7291 * config/mips/mips.c (LOONGSON_BUILTIN_ALIAS): Change 0 to
7292 MIPS_FP_COND_f.
7293 * config/mips/mips.md (jal_macro): Return enum constant.
7294 (single_insn): Likewise.
7295 * config/rs6000/rs6000.c (bdesc_altivec_preds): Change 0 to
7296 CODE_FOR_nothing.
7297 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
7298 casts to enum type.
7299 * config/s390/s390.c (s390_tune_flags): Change type to int.
7300 (s390_arch_flags): Likewise.
7a00d767 7301 (s390_handle_arch_option): Change flags field of struct pta to int.
81f40b79
ILT
7302 * config/s390/s390.h (s390_tune_flags): Update declaration.
7303 (s390_arch_flags): Likewise.
7304 * config/sh/sh.c (prepare_move_operands): Compare
7305 tls_symbolic_operand result with enum constant.
7306 (sh_reorg): Change PUT_MODE to PUT_REG_NOTE_KIND.
7307 (sh_expand_prologue): Add cast to enum type.
7308 (sh_expand_epilogue): Likewise.
7309 (tls_symbolic_operand): Change return type to enum tls_model.
7310 (fpscr_set_from_mem): Add cast to enum type.
7311 (legitimize_pic_address): Compare tls_symbolic_operand result with
7312 enum constant.
7313 (sh_target_reg_class): Change return type to enum reg_class.
7314 * config/sh/sh.h (OVERRIDE_OPTIONS): Change CPU_xxx to
7315 PROCESSOR_xxx.
7a00d767
UB
7316 * config/sh/sh-protos.h (tls_symbolic_operand): Update declaration.
7317 * config/sparc/sparc.c (sparc_override_options): Add cast to enum type.
81f40b79
ILT
7318 * config/sparc/sparc.md (empty_delay_slot): Return enum constant.
7319 (pic, calls_alloca, calls_eh_return, leaf_function): Likewise.
7320 (delayed_branch, tls_call_delay): Likewise.
7321 (eligible_for_sibcall_delay): Likewise.
7322 (eligible_for_return_delay): Likewise.
7323 * config/spu/spu.c (expand_builtin_args): Add cast to enum type.
7324 (spu_expand_builtin_1): Likewise.
7325
7326 * c-typeck.c (convert_for_assignment): Issue -Wc++-compat warnings
7327 for all types of conversions.
7328 (output_init_element): Issue -Wc++-compat warning if needed when
7329 initializing a bitfield with enum type.
7330 * c-parser.c (c_parser_expression): Set original_type to
7331 original_type of right hand operand of comman operator.
7332
e4ae5e77
RW
73332009-04-27 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7334
7335 * doc/c-tree.texi (Types, Functions, Expression trees): Fix
7336 grammar nits.
7a00d767 7337 * doc/cfg.texi (Maintaining the CFG, Liveness information): Likewise.
e4ae5e77
RW
7338 * doc/cpp.texi (Standard Predefined Macros)
7339 (Implementation-defined behavior): Likewise.
7a00d767 7340 * doc/extend.texi (Function Attributes, Type Attributes): Likewise.
e4ae5e77
RW
7341 * doc/gimple.texi (GIMPLE Exception Handling)
7342 (@code{GIMPLE_ASSIGN}): Likewise.
7a00d767 7343 * doc/install.texi (Prerequisites, Configuration, Specific): Likewise.
e4ae5e77
RW
7344 * doc/invoke.texi (Warning Options, Optimize Options)
7345 (AVR Options, Darwin Options): Likewise.
7346 (Optimize Options): Reformulate -fwhole-program description.
7347 * doc/loop.texi (Lambda): Likewise.
7348 * doc/md.texi (Output Template, Define Constraints)
7349 (Standard Names, Insn Splitting): Likewise.
7350 * doc/options.texi (Option properties): Likewise.
7351 * doc/passes.texi (Tree-SSA passes): Likewise.
7352 * doc/rtl.texi (Side Effects, Assembler, Insns): Likewise.
7353 * doc/tm.texi (Register Classes, Old Constraints, Scalar Return)
7354 (File Names and DBX): Likewise.
7355 * doc/trouble.texi (Incompatibilities): Likewise.
7356
1883802f 73572009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
6e37f6d4
TS
7358
7359 * spu.c (spu_machine_dependent_reorg): Make sure branch label on hint
7360 instruction is correct.
7361
1883802f 73622009-04-27 Trevor Smigiel <trevor_smigiel@playstation.sony.com>
5345cf68
TS
7363
7364 Allow non-constant arguments to conversion intrinsics.
7365 * spu-protos.h (exp2_immediate_p, spu_gen_exp2): Declare.
7366 * predicates.md (spu_inv_exp2_operand, spu_exp2_operand): New.
7367 * spu.c (print_operand): Handle 'v' and 'w'.
7368 (exp2_immediate_p, spu_gen_exp2): Define.
7369 * spu-builtins.def (spu_convts, spu_convtu, spu_convtf_0,
7370 spu_convtf_1): Update parameter descriptions.
7a00d767 7371 * spu-builtins.md (spu_csflt, spu_cuflt, spu_cflts, spu_cfltu): Update.
5345cf68
TS
7372 * constraints.md ('v', 'w'): New.
7373 * spu.md (UNSPEC_CSFLT, UNSPEC_CFLTS, UNSPEC_CUFLT, UNSPEC_CFLTU):
7374 Remove.
7375 (i2f, I2F): New define_mode_attr.
7376 (floatsisf2, floatv4siv4sf2, fix_truncsfsi2, fix_truncv4sfv4si2,
7377 floatunssisf2, floatunsv4siv4sf2, fixuns_truncsfsi2,
7378 fixuns_truncv4sfv4si2): Update to use mode attribute.
7379 (float<mode><i2f>2_mul, float<mode><i2f>2_div,
7380 fix_trunc<mode><f2i>2_mul, floatuns<mode><i2f>2_mul,
7381 floatuns<mode><i2f>2_div, fixuns_trunc<mode><f2i>2_mul): New
7382 patterns for combine.
7383
5f39ad47
SB
73842009-04-27 Steven Bosscher <steven@gcc.gnu.org>
7385
7386 * dbgcnt.def (cprop1, cprop2, gcse, jump_bypass): Remove
7387 (cprop, hoist, pre, store_motion): New debug counters.
7388 * tree-pass.h (pass_tracer): Move to list of gimple passes, it
7389 is not an RTL pass anymore.
7390 (pass_profiling): Remove extern decl for pass removed in 2005.
7391 (pass_gcse, pass_jump_bypass): Remove.
7392 * final.c (rest_of_clean_state): Set flag_rerun_cse_after_global_opts
7393 to 0 for clean state.
7394 * toplev.h (flag_rerun_cse_after_global_opts): Add extern declaration.
7395 * cse.c (gate_handle_cse_after_global_opts,
7396 rest_of_handle_cse_after_global_opts): New functions.
7397 (pass_cse_after_global_opts): New pass, does local CSE.
7398 * timevar.def (TV_GCSE, TV_CPROP1, TV_CPROP2, TV_BYPASS): Remove.
7399 (TV_CPROP): New timevar.
7400 * gcse.c (flag_rerun_cse_after_global_opts): New global variable.
7401 (run_jump_opt_after_gcse, max_gcse_regno): Remove global vars.
7402 (gcse_main, recompute_all_luids): Remove.
7403 (compute_hash_table_work): Call max_reg_num instead of reading
7404 max_gcse_regno.
7405 (cprop_jump): Don't set run_jump_opt_after_gcse.
7406 (constprop_register): Always allow to alter jumps.
7407 (cprop_insn): Likewise.
7408 (do_local_cprop): Likewise.
7409 (local_cprop_pass): Likewise. Return non-zero if something changed.
7410 (cprop): Remove function, fold interesting bits into one_cprop_pass.
7411 (find_implicit_sets): Add note about missed optimization opportunity.
7412 (one_cprop_pass): Rewrite to be "the" CPROP pass, called from the
7413 pass_rtl_cprop execute function.
7414 Don't bother tracking the pass number, each pass gets its own dumpfile
7415 now anyway.
7416 Always allow to alter jumpsand bypass jumps.
7417 (bypass_block): Don't ignore regno >= max_gcse_regno, find_bypass_set
7418 will just find no suitable set.
7419 (pre_edge_insert): Fix dumping, this function is for PRE only.
7420 (one_pre_gcse_pass): Rewrite to be "the" PRE pass, called from the
7421 pass_rtl_pre execute function.
7422 (hoist_code): Return non-zero if something changed. Keep track of
7423 substitutions and insertions for statistics gathering similar to PRE.
7424 (one_code_hoisting_pass): Rewrite to be "the" code hoisting pass,
7425 called from the pass_rtl_hoist execute function. Show pass statistics.
7426 (compute_store_table): Use max_reg_num directly instead of using the
7427 formerly global max_gcse_regno.
7428 (build_store_vectors): Likewise.
7429 (replace_store_insn): Fix dumping.
7430 (store_motion): Rename to ...
7431 (one_store_motion_pass): ... this. Rewrite to be "the" STORE_MOTION
7432 pass, called from the pass_rtl_store_motion execute function. Keep
7433 track of substitutions and insertions for statistics gathering similar
7434 to PRE.
7435 (bypass_jumps): Remove, fold interesting bits into ...
7436 (one_cprop_pass): ... this. Rewrite to be "the" CPROP pass, called
7437 from the pass_rtl_cprop execute function.
7438 (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
7439 pass_jump_bypass): Remove.
7440 (gate_handle_gcse, rest_of_handle_gcse): Remove.
7441 (gate_rtl_cprop, execute_rtl_cprop, pass_rtl_cprop): New.
7442 (gate_rtl_pre, execute_rtl_pre, pass_rtl_pre): New.
7443 (gate_rtl_hoist, execute_rtl_hoist, pass_rtl_hoist): New.
7444 (gate_rtl_store_motion, execute_rtl_store_motion,
7445 pass_rtl_store_motion): New.
7446 * common.opt: Remove flag_cse_skip_blocks, adjust documentation to
7447 make it clear that -fcse-skip-blocks is a no-op for backward compat.
7448 * passes.c (init_optimization_passes): Remove pass_gcse and
7449 pass_jump_bypass. Schedule cprop, pre, hoist, cprop, store_motion,
7450 and cse_after_global_opts in place of pass_gcse. Schedule cprop
7451 instead of pass_jump_bypass.
7452
c685de4a
RG
74532009-04-27 Richard Guenther <rguenther@suse.de>
7454
7455 PR middle-end/39928
7456 * gimplify.c (gimplify_expr): If we are required to create
7457 a temporary make sure it ends up as register.
7458
72d41f29
L
74592009-04-27 H.J. Lu <hongjiu.lu@intel.com>
7460
7461 PR target/39903
7462 * config/i386/i386.c (construct_container): Don't call
7463 gen_reg_or_parallel with BLKmode on X86_64_SSE_CLASS,
7464 X86_64_SSESF_CLASS and X86_64_SSEDF_CLASS.
7465
e97809c6
MM
74662009-04-27 Michael Matz <matz@suse.de>
7467
7468 * ssaexpand.h (struct ssaexpand): Member 'values' is a bitmap.
7469 (get_gimple_for_ssa_name): Adjust, lookup using SSA_NAME_DEF_STMT.
7470 * tree-ssa-live.h: (find_replaceable_exprs): Return a bitmap.
7471 (dump_replaceable_exprs): Take a bitmap.
7472 * cfgexpand.c (gimple_cond_pred_to_tree): Handle bitmap instead of
7473 array.
7474 (expand_gimple_basic_block): Likewise.
7475 * tree-ssa-ter.c (struct temp_expr_table_d): Make
7476 replaceable_expressions member a bitmap.
7477 (free_temp_expr_table): Pass back and deal with bitmap, not gimple*.
7478 (mark_replaceable): Likewise.
7479 (find_replaceable_in_bb, dump_replaceable_exprs): Likewise.
7480 * tree-outof-ssa.c (remove_ssa_form): 'values' is a bitmap.
7481
211ca15c
RG
74822009-04-27 Richard Guenther <rguenther@suse.de>
7483
7484 * tree-cfg.c (remove_useless_stmts): Verify stmts afterwards.
7485 (verify_stmts): Dispatch to gimple/type verification code.
7486 * tree-inline.c (remap_gimple_op_r): Work around C++ FE
7487 issue with call argument types.
7488
fca5f3d1
MM
74892009-04-27 Michael Matz <matz@suse.de>
7490
7491 * tree-into-ssa.c (regs_to_rename, mem_syms_to_rename): Remove.
7492 (init_update_ssa, delete_update_ssa, update_ssa): Remove references
7493 to above.
7494
a1fa3e79 74952009-04-27 Richard Sandiford <rdsandiford@googlemail.com>
8224166e 7496 Eric Botcazou <ebotcazou@adacore.com>
a1fa3e79
EB
7497
7498 * resource.c (find_basic_block): Use BLOCK_FOR_INSN to look up
7499 a label's basic block.
7500 (mark_target_live_regs): Tidy and rework obsolete comments.
7501 Change back DF problem to LIVE. If a label starts a basic block,
7502 assume that all registers that used to be live then still are.
7503 (init_resource_info): If a label starts a basic block, set its
7504 BLOCK_FOR_INSN accordingly.
7505 (fini_resource_info): Undo the setting of BLOCK_FOR_INSN.
7506
33b223c0
RG
75072009-04-27 Richard Guenther <rguenther@suse.de>
7508
7509 * tree-flow-inline.h (function_ann): Remove.
7510 (get_function_ann): Likewise.
7511 * tree-dfa.c (create_function_ann): Remove.
7512 * tree-flow.h (struct static_var_ann_d): Remove.
7513 (struct function_ann_d): Likewise.
7514 (union tree_ann_d): Remove fdecl member.
7515 (function_ann_t): Remove.
7516 (function_ann, get_function_ann, create_function_ann): Remove
7517 declarations.
7518
e3136fa2
UB
75192009-04-27 Uros Bizjak <ubizjak@gmail.com>
7520
7521 * config/alpha/alpha.c (code_for_builtin): Declare as enum insn_code.
7522
f87c9042
JH
75232009-04-27 Jan Hubicka <jh@suse.cz>
7524
7525 * ipa-pure-const.c (struct funct_state_d): New fields
7526 state_previously_known, looping_previously_known; remove
7527 state_set_in_source.
7528 (analyze_function): Use new fields.
7529 (propagate): Avoid assumption that state_set_in_source imply
7530 nonlooping.
7531
7532 * tree-ssa-loop-niter.c (finite_loop_p): New function.
7533 * tree-ssa-loop-ivcanon.c (empty_loop_p): Use it.
7534 * cfgloop.h (finite_loop_p): Declare.
7535
33abd718
MM
75362009-04-26 Michael Matz <matz@suse.de>
7537
e3136fa2 7538 * tree-flow.h (tree_ann_common_d): Remove aux and value_handle members.
33abd718 7539
ddc34084
MM
75402009-04-26 Michael Matz <matz@suse.de>
7541
7542 * tree-pass.h (pass_del_ssa, pass_mark_used_blocks,
7543 pass_free_cfg_annotations, pass_free_datastructures): Remove decls.
7544 * gimple-low.c (mark_blocks_with_used_vars, mark_used_blocks,
7545 pass_mark_used_blocks): Remove.
7546 * tree-optimize.c (pass_free_datastructures,
7547 execute_free_cfg_annotations, pass_free_cfg_annotations): Remove.
7548 * passes.c (init_optimization_passes): Don't call
7549 pass_mark_used_blocks, remove dead code.
7550
1fec7ed4
L
75512009-04-26 H.J. Lu <hongjiu.lu@intel.com>
7552
7553 * tree-outof-ssa.c (rewrite_trees): Add ATTRIBUTE_UNUSED.
7554 * tree-ssa-live.h (register_ssa_partition): Likewise.
7555
4e3825db
MM
75562009-04-26 Michael Matz <matz@suse.de>
7557
7558 Expand from SSA.
7559 * builtins.c (fold_builtin_next_arg): Handle SSA names.
7560 * tree-ssa-copyrename.c (rename_ssa_copies): Use ssa_name() directly.
7561 * tree-ssa-coalesce.c (create_outofssa_var_map): Mark only useful
7562 SSA names.
7563 (compare_pairs): Swap cost comparison.
7564 (coalesce_ssa_name): Don't use change_partition_var.
7565 * tree-nrv.c (struct nrv_data): Add modified member.
7566 (finalize_nrv_r): Set it.
7567 (tree_nrv): Use it to update statements.
7568 (pass_nrv): Require PROP_ssa.
7569 * tree-mudflap.c (mf_decl_cache_locals,
7570 mf_build_check_statement_for): Use make_rename_temp.
7571 (pass_mudflap_2): Require PROP_ssa, run ssa update at finish.
7572 * alias.c (find_base_decl): Handle SSA names.
7573 * emit-rtl (set_reg_attrs_for_parm): Make non-static.
7574 (component_ref_for_mem_expr): Don't leak SSA names into RTL.
7575 * rtl.h (set_reg_attrs_for_parm): Declare.
7576 * tree-optimize.c (pass_cleanup_cfg_post_optimizing): Rename
7577 to "optimized", remove unused locals at finish.
7578 (execute_free_datastructures): Make global, call
7579 delete_tree_cfg_annotations.
7580 (execute_free_cfg_annotations): Don't call
7581 delete_tree_cfg_annotations.
7582
7583 * ssaexpand.h: New file.
7584 * expr.c (toplevel): Include ssaexpand.h.
e3136fa2 7585 (expand_assignment): Handle SSA names the same as register variables.
4e3825db
MM
7586 (expand_expr_real_1): Expand SSA names.
7587 * cfgexpand.c (toplevel): Include ssaexpand.h.
7588 (SA): New global variable.
7589 (gimple_cond_pred_to_tree): Fold TERed comparisons into predicates.
7590 (SSAVAR): New macro.
7591 (set_rtl): New helper function.
7592 (add_stack_var): Deal with SSA names, use set_rtl.
7593 (expand_one_stack_var_at): Likewise.
7594 (expand_one_stack_var): Deal with SSA names.
7595 (stack_var_size_cmp): Use code (SSA_NAME / DECL) as tie breaker
7596 before unique numbers.
7597 (expand_stack_vars): Use set_rtl.
7598 (expand_one_var): Accept SSA names, add asserts for them, feed them
7599 to above subroutines.
7600 (expand_used_vars): Expand all partitions (without default defs),
7601 then only the local decls (ignoring those expanded already).
7602 (expand_gimple_cond): Remove edges when jumpif() expands an
7603 unconditional jump.
7604 (expand_gimple_basic_block): Don't clear EDGE_EXECUTABLE here,
7605 or remove abnormal edges. Ignore insns setting the LHS of a TERed
7606 SSA name.
7607 (gimple_expand_cfg): Call into rewrite_out_of_ssa, initialize
7608 members of SA; deal with PARM_DECL partitions here; expand
7609 all PHI nodes, free tree datastructures and SA. Commit instructions
7610 on edges, clear EDGE_EXECUTABLE and remove abnormal edges here.
7611 (pass_expand): Require and destroy PROP_ssa, verify SSA form, flow
7612 info and statements at start, collect garbage at finish.
7613 * tree-ssa-live.h (struct _var_map): Remove partition_to_var member.
7614 (VAR_ANN_PARTITION) Remove.
7615 (change_partition_var): Don't declare.
7616 (partition_to_var): Always return SSA names.
7617 (var_to_partition): Only accept SSA names.
7618 (register_ssa_partition): Only check argument.
7619 * tree-ssa-live.c (init_var_map): Don't allocate partition_to_var
7620 member.
7621 (delete_var_map): Don't free it.
7622 (var_union): Only accept SSA names, simplify.
7623 (partition_view_init): Mark only useful SSA names as used.
7624 (partition_view_fini): Only deal with SSA names.
7625 (change_partition_var): Remove.
7626 (dump_var_map): Use ssa_name instead of partition_to_var member.
7627 * tree-ssa.c (delete_tree_ssa): Don't remove PHI nodes on RTL
7628 basic blocks.
7629 * tree-outof-ssa.c (toplevel): Include ssaexpand.h and expr.h.
7630 (struct _elim_graph): New member const_dests; nodes member vector of
7631 ints.
7632 (set_location_for_edge): New static helper.
7633 (create_temp): Remove.
7634 (insert_partition_copy_on_edge, insert_part_to_rtx_on_edge,
e3136fa2 7635 insert_value_copy_on_edge, insert_rtx_to_part_on_edge): New functions.
4e3825db
MM
7636 (new_elim_graph): Allocate const_dests member.
7637 (clean_elim_graph): Truncate const_dests member.
7638 (delete_elim_graph): Free const_dests member.
7639 (elim_graph_size): Adapt to new type of nodes member.
7640 (elim_graph_add_node): Likewise.
7641 (eliminate_name): Likewise.
7642 (eliminate_build): Don't take basic block argument, deal only with
7643 partition numbers, not variables.
7644 (get_temp_reg): New static helper.
7645 (elim_create): Use it, deal with RTL temporaries instead of trees.
7646 (eliminate_phi): Adjust all calls to new signature.
7647 (assign_vars, replace_use_variable, replace_def_variable): Remove.
7648 (rewrite_trees): Only do checking.
7649 (edge_leader, stmt_list, leader_has_match, leader_match): Remove.
7650 (same_stmt_list_p, identical_copies_p, identical_stmt_lists_p,
7651 init_analyze_edges_for_bb, fini_analyze_edges_for_bb,
7652 contains_tree_r, MAX_STMTS_IN_LATCH,
7653 process_single_block_loop_latch, analyze_edges_for_bb,
7654 perform_edge_inserts): Remove.
7655 (expand_phi_nodes): New global function.
7656 (remove_ssa_form): Take ssaexpand parameter. Don't call removed
7657 functions, initialize new parameter, remember partitions having a
7658 default def.
7659 (finish_out_of_ssa): New global function.
7660 (rewrite_out_of_ssa): Make global. Adjust call to remove_ssa_form,
7661 don't reset in_ssa_p here, don't disable TER when mudflap.
7662 (pass_del_ssa): Remove.
7663 * tree-flow.h (struct var_ann_d): Remove out_of_ssa_tag and
7664 partition members.
7665 (execute_free_datastructures): Declare.
7666 * Makefile.in (SSAEXPAND_H): New variable.
7667 (tree-outof-ssa.o, expr.o, cfgexpand.o): Depend on SSAEXPAND_H.
7668 * basic-block.h (commit_one_edge_insertion): Declare.
7669 * passes.c (init_optimization_passes): Move pass_nrv and
7670 pass_mudflap2 before pass_cleanup_cfg_post_optimizing, remove
7671 pass_del_ssa, pass_free_datastructures, pass_free_cfg_annotations.
7672 * cfgrtl.c (commit_one_edge_insertion): Make global, don't declare.
7673 (redirect_branch_edge): Deal with super block when expanding, split
7674 out jump patching itself into ...
7675 (patch_jump_insn): ... here, new static helper.
7676
17c665a9
MM
76772009-04-26 Michael Matz <matz@suse.de>
7678
7679 * tree-ssa-copyrename.c (rename_ssa_copies): Don't iterate
7680 beyond num_ssa_names.
7681 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
7682 * tree-ssa-coalesce.c (create_outofssa_var_map): Likewise.
7683
92061771
JJ
76842009-04-26 Jakub Jelinek <jakub@redhat.com>
7685
ce372372
JJ
7686 PR inline-asm/39543
7687 * fwprop.c (forward_propagate_asm): New function.
7688 (forward_propagate_and_simplify): Propagate also into __asm, if it
7689 doesn't increase the number of referenced registers.
7690
92061771
JJ
7691 PR c/39889
7692 * stmt.c (warn_if_unused_value): Look through NON_LVALUE_EXPR.
7693
76942009-04-26 Jakub Jelinek <jakub@redhat.com>
77f2a970
JJ
7695
7696 * tree-nested.c (get_nonlocal_vla_type): If not optimizing, call
7697 note_nonlocal_vla_type for nonlocal VLAs.
7698 (note_nonlocal_vla_type, note_nonlocal_block_vlas,
7699 contains_remapped_vars, remap_vla_decls): New functions.
7700 (convert_nonlocal_reference_stmt): If not optimizing, call
7701 note_nonlocal_block_vlas on GIMPLE_BIND block vars.
7702 (nesting_copy_decl): Return {VAR,PARM,RESULT}_DECL unmodified
7703 if it wasn't found in var_map.
7704 (finalize_nesting_tree_1): Call remap_vla_decls. If outermost
7705 GIMPLE_BIND doesn't have gimple_bind_block, chain debug_var_chain
7706 to BLOCK_VARS (DECL_INITIAL (root->context)) instead of calling
7707 declare_vars.
7708 * gimplify.c (nonlocal_vlas): New variable.
7709 (gimplify_var_or_parm_decl): Add debug VAR_DECLs for non-local
7710 referenced VLAs.
7711 (gimplify_body): Create and destroy nonlocal_vlas.
a9548ddf 7712
4561e242
JJ
7713 * dwarf2out.c (loc_descr_plus_const): New function.
7714 (build_cfa_aligned_loc, tls_mem_loc_descriptor,
7715 mem_loc_descriptor, loc_descriptor_from_tree_1,
7716 descr_info_loc, gen_variable_die): Use it.
7717
a9548ddf
JJ
7718 * tree.h (DECL_BY_REFERENCE): Note that it is also valid for
7719 !TREE_STATIC VAR_DECLs.
7720 * dwarf2out.c (loc_by_reference, gen_decl_die): Handle
7721 DECL_BY_REFERENCE on !TREE_STATIC VAR_DECLs.
7722 (gen_variable_die): Likewise. Don't look at TREE_PRIVATE if
7723 DECL_BY_REFERENCE is valid.
7724 * dbxout.c (DECL_ACCESSIBILITY_CHAR): Don't look at TREE_PRIVATE
7725 for PARM_DECLs, RESULT_DECLs or !TREE_STATIC VAR_DECLs.
7726 * tree-nested.c (get_nonlocal_debug_decl, get_local_debug_decl):
7727 Copy DECL_BY_REFERENCE.
7728 (struct nesting_copy_body_data): New type.
7729 (nesting_copy_decl): New function.
7730 (finalize_nesting_tree_1): Remap types of debug_var_chain variables,
7731 if they have variable length.
7732
10555d08
MM
77332009-04-26 Michael Matz <matz@suse.de>
7734
7735 * tree-sra.c (sra_build_assignment): Don't use into_ssa mode,
7736 mark new temporaries for renaming.
7737
e11187cc
JM
77382009-04-26 Joseph Myers <joseph@codesourcery.com>
7739
7740 PR c/39581
7741 * c-decl.c (global_bindings_p): Return negative value.
7742 (c_variable_size): New. Based on variable_size from
7743 stor-layout.c.
7744 (grokdeclarator): Call c_variable_size not variable_size.
7745
f6a51d31
UB
77462009-04-26 Uros Bizjak <ubizjak@gmail.com>
7747
7748 * config/i386/i386.c (print_operand) ['z']: Fix typo.
7749
4b97723d
KT
77502009-04-26 Kai Tietz <kai.tietz@onevision.com>
7751
7752 * config/i386/mingw-w64.h (STANDARD_INCLUDE_DIR):
7753 Redefine it to just use mingw/include.
7754 (ASM_SPEC): Rules for -m32 and -m64.
7755 (LINK_SPEC): Use Likewise.
7756 (SPEC_32): New define.
7757 (SPEC_64): Likewise.
7758 (SUB_LINK_SPEC): Likewise.
7759 (MULTILIB_DEFAULTS): New define.
7760 * config/i386/t-mingw-w64 (MULTILIB_OPTIONS):
7761 Add multilib options.
7762 (MULTILIB_DIRNAMES): Likewise.
7763 (MULTILIB_OSDIRNAMES): Likewise.
7764 (LIBGCC): Likewise.
7765 (INSTALL_LIBGCC): Likewise.
7766
991d6621
JM
77672009-04-26 Joseph Myers <joseph@codesourcery.com>
7768
7769 PR c/39556
7770 * c-tree.h (enum c_inline_static_type): New.
7771 (record_inline_static): Declare.
7772 * c-decl.c (struct c_inline_static, c_inline_statics,
7773 record_inline_static, check_inline_statics): New.
7774 (pop_file_scope): Call check_inline_statics.
7775 (start_decl): Call record_inline_static instead of pedwarning
7776 directly for static in inline function.
7777 * c-typeck.c (build_external_ref): Call record_inline_static
7778 instead of pedwarning directly for static referenced in inline
7779 function.
7780
4a81774c
SB
77812009-04-26 Steven Bosscher <steven@gcc.gnu.org>
7782
7783 * df-scan.c (df_insn_rescan): Salvage insn's LUID if the insn is
7784 not new but only being rescanned.
7785 * gcse.c (uid_cuid, max_uid, INSN_CUID, max_cuid, struct reg_set,
7786 reg_set_table, REG_SET_TABLE_SLOP, reg_set_in_block,
7787 alloc_reg_set_mem, free_reg_set_mem, record_one_set,
7788 record_set_info, compute_set, grealloc): Remove.
7789 (recompute_all_luids): New function.
7790 (gcse_main): Don't compute sets, and don't do related memory
7791 allocations/free-ing. If something changed before the end of the
7792 pass, update LUIDs using recompute_all_luids.
7793 (alloc_gcse_mem): Don't compute LUIDs. Don't allocate reg_set memory.
7794 (free_gcse_mem): Don't free it either.
7795 (oprs_unchanged_p, load_killed_in_block, record_last_reg_set_info):
7796 Use the df insn LUIDs.
7797 (load_killed_in_block): Likewise.
7798 (compute_hash_table_work): Don't compute reg_set_in_block.
7799 (compute_transp): Use DF_REG_DEF_CHAINs.
7800 (local_cprop_pass): Don't use compute_sets and related functions.
7801 (one_cprop_pass, pre_gcse, one_pre_gcse_pass, one_code_hoisting_pass):
7802 Use get_max_uid() instead of max_cuid.
7803 (insert_insn_end_basic_block, pre_insert_copy_insn,
7804 update_ld_motion_stores): Don't try to
7805 keep reg_set tables up to date.
7806 (pre_insert_copies): Use df insn LUIDs.
7807 (sbitmap pre_redundant_insns): Replace with uses of INSN_DELETED_P.
7808 (reg_set_info): Don't use extra bitmap argument.
7809 (compute_store_table): Don't compute reg_set_in_block. Use DF scan
7810 information to compute regs_set_in_block.
7811 (free_store_memory, store_motion): Don't nullify reg_set_in_block.
7812 (bypass_jumps): Don't use compute_sets and friends.
7813
e8f99a9d
RW
78142009-04-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
7815
7816 PR testsuite/39710
7817 * opts.c (undocumented_msg): Do not leave blank even with
7818 ENABLE_CHECKING.
7819
6895bac8
JM
78202009-04-25 Joseph Myers <joseph@codesourcery.com>
7821
7822 * c-decl.c (build_enumerator): Allow values folding to integer
7823 constants but not integer constant expressions with a pedwarn if
7824 pedantic.
7825
24070fcb
JM
78262009-04-25 Joseph Myers <joseph@codesourcery.com>
7827
7828 PR c/39582
7829 * c-typeck.c (c_expr_sizeof_type): Create a C_MAYBE_CONST_EXPR
7830 with non-null C_MAYBE_CONST_EXPR_PRE if size of a variable-length
7831 type is an integer constant.
7832
d6d89aa1
UB
78332009-04-25 Uros Bizjak <ubizjak@gmail.com>
7834
7835 PR target/39897
7836 * config/i386/i386.c (print_operand) ['z']: Revert handling of
7837 HImode operands.
7838
92f6fd0b
JM
78392009-04-25 Joseph Myers <joseph@codesourcery.com>
7840
7841 PR c/39564
7842 * c-decl.c (grokdeclarator): Diagnose declarations of functions
7843 with variably modified return type and no storage class
7844 specifiers, except for the case of nested functions. Distinguish
7845 extern declarations of functions with variably modified return
7846 types from those of objects with variably modified types.
7847
a3710436
JH
78482009-04-25 Jan Hubicka <jh@suse.cz>
7849
7850 * tree.c (list_equal_p): New function.
7851 * tree.h (list_equal_p): Declare.
7852 * coretypes.h (edge_def, edge, const_edge, basic_block_def
7853 basic_block_def, basic_block, const_basic_block): New.
7854 * tree-eh.c (make_eh_edge): EH edges are not abnormal.
7855 (redirect_eh_edge): New function.
7856 (make_eh_edge_update_phi): EH edges are not abnormal.
7857 * except.c: Include tree-flow.h.
7858 (list_match): New function.
7859 (eh_region_replaceable_by_p): New function.
7860 (replace_region): New function.
7861 (hash_type_list): New function.
7862 (hash_eh_region): New function.
7863 (eh_regions_equal_p): New function.
7864 (merge_peers): New function.
7865 (remove_unreachable_regions): Verify EH tree when checking;
7866 merge peers.
7867 (copy_eh_region_1): New function.
7868 (copy_eh_region): New function.
7869 (push_reachable_handler): New function.
7870 (build_post_landing_pads, dw2_build_landing_pads): Be ready for
7871 regions without label but with live RESX.
7872 * except.h (redirect_eh_edge_to_label): New.
7873 * tree-flow.h (redirect_eh_edge): New.
7874 * coretypes.h (edge_def, edge, const_edge, basic_block_def
7875 basic_block_def, basic_block, const_basic_block): Remove.
7876 * Makefile.in (except.o): Add dependency on tree-flow.h
7877 * tree-cfg.c (gimple_redirect_edge_and_branch): Handle EH edges.
7878 * basic-block.h (edge, const_edge, basic_block, const_basic_block):
7879 Remove.
7880
3764d512
EB
78812009-04-25 Eric Botcazou <ebotcazou@adacore.com>
7882
7883 PR bootstrap/39645
7884 * config/sparc/sparc.c (sparc_gimplify_va_arg): Set TREE_ADDRESSABLE
7885 on the destination of memcpy.
7886
1c62e8f2
PB
78872009-04-25 Paolo Bonzini <bonzini@gnu.org>
7888
7889 * doc/tm.texi (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
7890 REGNO_MODE_OK_FOR_REG_BASE_P, REGNO_MODE_CODE_OK_FOR_BASE_P,
7891 REGNO_OK_FOR_INDEX_P): Mention strict/nonstrict difference.
7892
496a4ef5
JH
78932009-04-25 Jan Hubicka <jh@suse.cz>
7894
7895 * tree-eh.c (tree_remove_unreachable_handlers): Handle shared labels.
7896 (tree_empty_eh_handler_p): Allow non-EH predecestors; allow region
7897 to be reached by different label than left.
7898 (update_eh_edges): Update comment; remove edge_to_remove if possible
7899 and return true if suceeded.
7900 (cleanup_empty_eh): Accept sharing map; handle shared regions.
7901 (cleanup_eh): Compute sharing map.
7902 * except.c (remove_eh_handler_and_replace): Add argument if we should
7903 update regions.
7904 (remove_unreachable_regions): Update for label sharing.
7905 (label_to_region_map): Likewise.
7906 (get_next_region_sharing_label): New function.
7907 (remove_eh_handler_and_replace): Add update_catch_try parameter; update
7908 prev_try pointers.
7909 (remove_eh_handler): Update.
7910 (remove_eh_region_and_replace_by_outer_of): New function.
7911 * except.h (struct eh_region): Add next_region_sharing_label.
7912 (remove_eh_region_and_replace_by_outer_of,
7913 get_next_region_sharing_label): Declare.
7914 * tree-cfgcleanup.c (tree_forwarder_block_p): Simplify.
7915
79162009-04-25 Jan Hubicka <jh@suse.cz>
7917
7918 * tree-cfg.c (split_critical_edges): Split also edges where we can't
7919 insert code even if they are not critical.
7920
79212009-04-25 Jan Hubicka <jh@suse.cz>
7922
7923 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
7924 (gimple_can_remove_branch_p): EH edges won't remove branch by
7925 redirection.
7926 * tree-inline.c (update_ssa_across_abnormal_edges): Do handle
7927 updating of non-abnormal EH edges.
7928 * tree-cfg.c (gimple_can_merge_blocks_p): EH edges are unmergable.
7929 (gimple_can_remove_branch_p): EH edges are unremovable by redirection.
7930 (split_critical_edges): Split also edges where emitting code on them
7931 will lead to splitting later.
7932
a3a5e3d1
UB
79332009-04-25 Uros Bizjak <ubizjak@gmail.com>
7934 H.J. Lu <hongjiu.lu@intel.com>
7935
7936 PR target/39590
7937 * configure.ac (HAVE_AS_IX86_FILDQ): On x86 targets check whether
7938 the configured assembler supports fildq and fistpq mnemonics.
7939 (HAVE_AS_IX86_FILDS): Rename from HAVE_GAS_FILDS_FISTS.
7940 * configure: Regenerated.
7941 * config.in: Ditto.
7942
7943 * config/i386/i386.c (print_operand): Handle 'Z'.
7944 ['z']: Remove handling of special fild/fist suffixes.
7945 (output_fix_trunc): Use '%Z' to output suffix of fist{,p,tp} insn.
7946 * config/i386/i386.md (*floathi<mode>2_i387): Use '%Z' to output
7947 suffix of fild insn.
7948 (*floatsi<mode>2_vector_mixed): Ditto.
7949 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Ditto.
7950 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Ditto.
7951 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp): Ditto.
7952 (*float<SSEMODEI24:mode><X87MODEF:mode>2_i387): Ditto.
7953 * config/i386/gas.h (GAS_MNEMONICS): Remove.
7954
23750d7f
BE
79552009-04-25 Ben Elliston <bje@au.ibm.com>
7956
7957 * genrecog.c (validate_pattern): Do not warn for VOIDmode CALLs as
7958 the source of a set operation.
7959
e6ff3083
AS
79602009-04-25 Anatoly Sokolov <aesok@post.ru>
7961
7962 * target.h (struct gcc_target): Add case_values_threshold field.
7963 * target-def.h (TARGET_CASE_VALUES_THRESHOLD): New.
7964 (TARGET_INITIALIZER): Use TARGET_CASE_VALUES_THRESHOLD.
7965 * targhooks.c (default_case_values_threshold): New function.
7966 * targhooks.h (default_case_values_threshold): Declare function.
7967 * stmt.c (expand_case): Use case_values_threshold target hook.
7968 * expr.h (case_values_threshold): Remove declartation.
7969 * expr.c (case_values_threshold): Remove function.
7970 * doc/tm.texi (CASE_VALUES_THRESHOLD): Revise documentation.
7971
7972 * config/avr/avr.h (CASE_VALUES_THRESHOLD): Remove macro.
7973 * config/avr/avr.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
7974 (avr_case_values_threshold): Declare as static.
7975 * config/avr/avr-protos.h (avr_case_values_threshold): Remove.
7976
7977 * config/avr/mn10300.h (CASE_VALUES_THRESHOLD): Remove macro.
7978 * config/avr/mn10300.c (TARGET_CASE_VALUES_THRESHOLD): Define macro.
7979 (mn10300_case_values_threshold): New function.
7980
569c72fc
L
79812009-04-24 H.J. Lu <hongjiu.lu@intel.com>
7982
7983 * ira.c (setup_cover_and_important_classes): Add enum cast.
7984
ff3cb468
VM
79852009-04-24 Vladimir Makarov <vmakarov@redhat.com>
7986
7987 * genpreds.c (write_enum_constraint_num): Output definition of
7988 CONSTRAINT_NUM_DEFINED_P macro.
7989 * ira.c (setup_cover_and_important_classes): Use
7990 CONSTRAINT_NUM_DEFINED_P instead of CONSTRAINT__LIMIT in #ifdef.
7991
4f7be849
DD
79922009-04-24 DJ Delorie <dj@redhat.com>
7993
7994 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Test
7995 __SH2A_SINGLE_ONLY__ also.
7996
735b94a7
SE
79972009-04-24 Steve Ellcey <sje@cup.hp.com>
7998
7999 * config/ia64/ia64.md (movfs_internal): Allow flt constants.
8000 (movdf_internal): Ditto.
8001 * config/ia64/ia64.c (ia64_legitimate_constant_p): Allow
8002 SFmode and DFmode constants.
8003 (ia64_print_operand): Add 'G' format for printing
8004 floating point constants.
8005
77a30264
RG
80062009-04-24 Richard Guenther <rguenther@suse.de>
8007
8008 * tree-vrp.c (extract_range_from_binary_expr): Handle overflow
8009 from unsigned additions.
8010
2b6da65c
JM
80112009-04-24 Joseph Myers <joseph@codesourcery.com>
8012
8013 * c-typeck.c (set_init_index): Allow array designators that are
8014 not integer constant expressions with a pedwarn if pedantic.
8015
f5a17c43
BS
80162009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
8017
8018 * simplify-rtx.c (simplify_binary_operation_1, case AND): Result is
8019 zero if no overlap in nonzero bits between the operands.
8020
32e8bb8e
ILT
80212009-04-24 Ian Lance Taylor <iant@google.com>
8022
8023 * combine.c (record_value_for_reg): Change 0 to VOIDmode, twice.
8024 (record_dead_and_set_regs): Likewise.
8025 * df.h (struct df_mw_hardreg): Change flags field to int.
8026 (struct df_base_ref): Likewise.
8027 (struct df): Change changeable_flags field to int.
8028 * df-scan.c (df_defs_record): Change clobber_flags to int.
8029 * dwarf2.h (enum dwarf_tag): Make lo_user and hi_user values enum
8030 constants rather than #define macros.
8031 (enum dwarf_attribute, enum dwarf_location_atom): Likewise.
8032 (enum dwarf_type, enum dwarf_endianity_encoding): Likewise.
8033 (enum dwarf_calling_convention): Likewise.
8034 (enum dwarf_line_number_x_ops): Likewise.
8035 (enum dwarf_call_frame_info): Likewise.
8036 (enum dwarf_source_language): Likewise.
8037 * dwarf2out.c (int_loc_descriptor): Add cast to enum type.
8038 (add_calling_convention_attribute): Likewise.
a3a5e3d1
UB
8039 * fold-const.c (fold_undefer_overflow_warnings): Add cast to enum type.
8040 (combine_comparisons): Change compcode to int. Add cast to enum type.
32e8bb8e
ILT
8041 * genrecog.c (maybe_both_true_2): Change c to int.
8042 (write_switch): Likewise. Add cast to enum type.
8043 * gimplify.c (gimplify_omp_for): Handle return values from
8044 gimplify_expr using MIN rather than bitwise or.
8045 (gimplify_expr): Add cast to enum type.
8046 * ipa-prop.c (update_jump_functions_after_inlining): Change
8047 IPA_BOTTOM to IPA_JF_UNKNOWN.
a3a5e3d1
UB
8048 * ira.c (setup_class_subset_and_memory_move_costs): Change mode to int.
8049 Add casts to enum type.
32e8bb8e
ILT
8050 (setup_cover_and_important_classes): Change cl to int. Add casts
8051 to enum type.
8052 (setup_class_translate): Change cl and mode to int.
8053 (ira_init_once): Change mode to int.
8054 (free_register_move_costs): Likewise.
8055 (setup_prohibited_mode_move_regs): Add casts to enum type.
8056 * langhooks.c (add_builtin_function_common): Rework assertion that
8057 value fits bitfield.
8058 * mcf.c (add_fixup_edge): Change type parameter to edge_type.
8059 * omega.c (omega_do_elimination): Avoid math on enum types.
8060 * optabs.c (expand_vec_shift_expr): Remove casts to int.
8061 * opts.c (set_debug_level): Change 2 to enum constant. Use new
8062 int local to handle integral_argment value.
8063 * regmove.c (try_auto_increment): Change PUT_MODE to
8064 PUT_REG_NOTE_KIND.
8065 * reload.c (push_secondary_reload): Add casts to enum type.
8066 (secondary_reload_class, find_valid_class): Likewise.
8067 * reload1.c (emit_input_reload_insns): Likewise.
8068 * rtl.h (NOTE_VAR_LOCATION_STATUS): Likewise.
8069 * sel-sched.c (init_hard_regs_data): Change cur_mode to int.
8070 * sel-sched-ir.c (hash_with_unspec_callback): Change 0 to enum
8071 constant.
8072 * tree.c (build_common_builtin_nodes): Add casts to enum type.
8073 * tree-complex.c (complex_lattice_t): Typedef to int rather than
8074 enum type.
8075 (expand_complex_libcall): Add casts to enum type.
8076 * tree-into-ssa.c (get_ssa_name_ann): Change 0 to enum constant.
8077 * tree-vect-loop.c (vect_model_reduction_cost): Compare reduc_code
8078 with ERROR_MARK, not NUM_TREE_CODES.
8079 (vect_create_epilog_for_reduction): Likewise.
8080 (vectorizable_reduction): Don't initialize epiloc_reduc_code.
a3a5e3d1 8081 When not using it, set it to ERROR_MARK rather than NUM_TREE_CODES.
32e8bb8e
ILT
8082 * tree-vect-patterns.c (vect_pattern_recog_1): Change vec_mode to
8083 enum machine_mode.
8084 * tree-vect-stmts.c (new_stmt_vec_info): Change 0 to
8085 vect_unused_in_loop. Change 0 to loop_vect.
a3a5e3d1 8086 * tree-vectorizer.c (vect_set_verbosity_level): Add casts to enum type.
32e8bb8e
ILT
8087 * var-tracking.c (get_init_value): Change return type to enum
8088 var_init_status.
8089 * vec.h (DEF_VEC_FUNC_P) [iterate]: Cast 0 to type T.
8090 * config/arm/arm.c (fp_model_for_fpu): Change to array to enum
8091 arm_fp_model.
8092 (arm_override_options): Add casts to enum type.
8093 (arm_emit_tls_decoration): Likewise.
8094 * config/i386/i386.c (ix86_function_specific_restore): Add casts
8095 to enum type.
8096 * config/i386/i386-c.c (ix86_pragma_target_parse): Likewise.
8097 * config/ia64/ia64.c (ia64_expand_compare): Change magic to int.
8098 * config/rs6000/rs6000.c (rs6000_override_options): Add casts to
8099 enum type.
8100 * config/s390/s390.c (code_for_builtin_64): Change to array of
8101 enum insn_code.
8102 (code_for_builtin_31): Likewise.
8103 (s390_expand_builtin): Change code_for_builtin to enum insn_code
8104 const *.
8105 * config/sparc/sparc.c (sparc_override_options): Change value
8106 field in struct code_model to enum cmodel. In initializer change
8107 0 to NULL and add cast to enum type.
8108
8109 * c-typeck.c (build_modify_expr): Add lhs_origtype parameter.
8110 Change all callers. Issue a -Wc++-compat warning using
8111 lhs_origtype if necessary.
8112 (convert_for_assignment): Issue -Wc++-compat warnings about
8113 invalid conversions to enum type on assignment.
8114 * c-common.h (build_modify_expr): Update declaration.
8115
ac4fc08a
NC
81162009-04-24 Nick Clifton <nickc@redhat.com>
8117
8118 * config/iq2000/iq2000.c (function_arg): Handle TImode values.
8119 (function_arg_advance): Likewise.
8120 * config/iq2000/iq2000.md (movsi_internal2): Fix the length of the
8121 5th alternative.
8122
f22e891a
AK
81232009-04-24 Andreas Krebbel <krebbel1@de.ibm.com>
8124
8125 * config/s390/constraints.md ('I', 'J'): Fix condition.
8126
ad58aabe
DN
81272009-04-24 Diego Novillo <dnovillo@google.com>
8128
8129 * gengtype-parse.c (parse_error): Add newline after message.
8130
879a4a01
L
81312009-04-24 H.J. Lu <hongjiu.lu@intel.com>
8132
8133 * config/i386/sse.md (avxmodesuffixs): Removed.
8134 (*avx_pinsr<avxmodesuffixs>): Renamed to ...
8135 (*avx_pinsr<ssevecsize>): This.
8136
f63426af
BS
81372009-04-24 Bernd Schmidt <bernd.schmidt@analog.com>
8138
8139 * loop-iv.c (replace_single_def_regs): Look for REG_EQUAL notes;
8140 follow chains of regs with a single definition, and allow expressions
8141 that are function_invariant_p.
ce72fe6c 8142 (simple_rhs_p): Allow expressions that are function_invariant_p.
f63426af 8143
30349c74
PB
81442009-04-24 Paolo Bonzini <bonzini@gnu.org>
8145
8146 PR middle-end/39867
8147 * fold-const.c (fold_cond_expr_with_comparison): When folding
8148 > and >= to MAX, make sure the MAX uses the same type as the
8149 comparison's operands.
8150
8d8256c1
NC
81512009-04-24 Nick Clifton <nickc@redhat.com>
8152
8153 * config/frv/frv.c (frv_frame_access): Do not use reg+reg
8154 addressing for DImode accesses.
8155 (frv_print_operand_address): Handle PLUS case.
a3a5e3d1 8156 * config/frv/frv.h (FIXED_REGISTERS): Mark link register as fixed.
8d8256c1 8157
6216f94e
JJ
81582009-04-24 Jakub Jelinek <jakub@redhat.com>
8159
8160 PR rtl-optimization/39794
8161 * alias.c (canon_true_dependence): Add x_addr argument.
8162 * rtl.h (canon_true_dependence): Adjust prototype.
8163 * cse.c (check_dependence): Adjust canon_true_dependence callers.
8164 * cselib.c (cselib_invalidate_mem): Likewise.
8165 * gcse.c (compute_transp): Likewise.
8166 * dse.c (scan_reads_nospill): Likewise.
8167 (record_store, check_mem_read_rtx): Likewise. For non-const-or-frame
8168 addresses pass base->val_rtx as mem_addr, for const-or-frame addresses
8169 canon_base_addr of the group, plus optional offset.
8170 (struct group_info): Rename canon_base_mem to
8171 canon_base_addr.
8172 (get_group_info): Set canon_base_addr to canon_rtx of base, not
8173 canon_rtx of base_mem.
8174
6de7a512
PB
81752009-04-23 Paolo Bonzini <bonzini@gnu.org>
8176
8177 * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
8178 Use memory_address_p instead of GO_IF_LEGITIMATE_ADDRESS.
8179
4a3a2376
UW
81802009-04-23 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8181
8182 * config/spu/spu-builtins.h: Delete file.
8183
8184 * config/spu/spu.h (enum spu_builtin_type): Move here from
8185 spu-builtins.h.
8186 (struct spu_builtin_description): Likewise. Add GTY marker.
8187 Do not use enum spu_function_code or enum insn_code.
8188 (spu_builtins): Add extern declaration.
8189
8190 * config/spu/spu.c: Do not include "spu-builtins.h".
8191 (enum spu_function_code, enum spu_builtin_type_index,
8192 V16QI_type_node, V8HI_type_node, V4SI_type_node, V2DI_type_node,
8193 V4SF_type_node, V2DF_type_node, unsigned_V16QI_type_node,
8194 unsigned_V8HI_type_node, unsigned_V4SI_type_node,
8195 unsigned_V2DI_type_node): Move here from spu-builtins.h.
8196 (spu_builtin_types): Make static. Add GTY marker.
8197 (spu_builtins): Add extern declaration with GTY marker.
8198 Include "gt-spu.h".
8199
8200 * config/spu/spu-c.c: Do not include "spu-builtins.h".
8201 (spu_resolve_overloaded_builtin): Do not use spu_function_code.
8202 Check programmatically whether all parameters are scalar.
8203
8204 * config/spu/t-spu-elf (spu.o, spu-c.o): Update dependencies.
8205
bbaba73f
EB
82062009-04-23 Eric Botcazou <ebotcazou@adacore.com>
8207
8208 * gimplify.c (gimplify_modify_expr_rhs) <VAR_DECL>: Do not do a direct
8209 assignment from the constructor either if the target is volatile.
8210
ee93c1c6
DJ
82112009-04-23 Daniel Jacobowitz <dan@codesourcery.com>
8212
8213 * config/arm/arm.md (insv): Do not share operands[0].
8214
b2f21330
NS
82152009-04-23 Nathan Sidwell <nathan@codesourcery.com>
8216
8217 * config/vxlib-tls.c (active_tls_threads): Delete.
8218 (delete_hook_installed): New.
8219 (tls_delete_hook): Don't delete the delete hook.
8220 (tls_destructor): Delete it here.
8221 (__gthread_set_specific): Adjust installing the delete hook.
8222 (tls_delete_hook): Use __gthread_enter_tsd_dtor_context and
8223 __gthread_leave_tsd_dtor_context.
8224
4782dfa7
RAE
82252009-04-23 Rafael Avila de Espindola <espindola@google.com>
8226
8227 * c-format.c (gcc_tdiag_char_table): Add support for %E.
8228
bf758008
UB
82292009-04-23 Uros Bizjak <ubizjak@gmail.com>
8230
8231 * config/alpha/alpha.c (alpha_legitimize_reload_address): Add cast to
8232 enum type.
8233 (alpha_rtx_costs): Ditto.
8234 (emit_unlikely_jump): Use add_reg_note.
8235 (emit_frame_store_1): Ditto.
8236 (alpha_expand_prologue): Ditto.
8237 (alpha_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
8238 * config/alpha/alpha.c (Unicos/Mk address splitter): Use add_reg_note.
8239
7323a100
NC
82402009-04-23 Nick Clifton <nickc@redhat.com>
8241
8242 * config/v850/v850.md (epilogue): Remove suppressed code.
8243 (return): Rename to return_simple and remove test of frame size.
8244 * config/v850/v850.c (expand_epilogue): Rename call to gen_return
8245 to gen_return_simple.
8246
360032ba
JY
82472009-04-22 Jing Yu <jingyu@google.com>
8248
8249 PR testsuite/39781
8250 * config/arm/arm.h: Define HANDLE_PRAGMA_PACK_PUSH_POP.
8251
53650abe
AP
82522009-04-22 Andrew Pinski <andrew_pinski@playstation.sony.com>
8253
8254 PR C/31499
8255 * c-typeck.c (process_init_element): Treat VECTOR_TYPE like ARRAY_TYPE
8256 and RECORD_TYPE/UNION_TYPE. When outputing the actual element and the
8257 value is a VECTOR_CST, the element type is the element type of the
8258 vector.
8259
89043e8a
DD
82602009-04-22 DJ Delorie <dj@redhat.com>
8261
8262 * config/m32c/m32c.h: Update GTY annotations to new syntax.
8263
023f059b
JJ
82642009-04-22 Jakub Jelinek <jakub@redhat.com>
8265
8266 * alias.c (find_base_term): Move around LO_SUM case, so that
8267 CONST falls through into PLUS/MINUS handling.
8268
2c0eba5a
JJ
8269 PR c/39855
8270 * fold-const.c (fold_binary) <case LSHIFT_EXPR>: When optimizing
8271 into 0, use omit_one_operand.
8272
9a461028
BE
82732009-04-23 Ben Elliston <bje@au.ibm.com>
8274
8275 * config/rs6000/linux-unwind.h (get_regs): Remove type
8276 puns. Change the type of `pc' to an array of unsigned ints and
8277 update all users. Constify frame24.
8278
653e2568
DD
82792009-04-22 DJ Delorie <dj@redhat.com>
8280
8281 * config/m32c/m32c.c (m32c_special_page_vector_p): Move
8282 declarations before code.
8283 (current_function_special_page_vector): Likewise.
8284 (m32c_expand_insv): Silence a warning.
8285
60839f5d 82862009-04-21 Taras Glek <tglek@mozilla.com>
d1b38208
TG
8287
8288 * alias.c: Update GTY annotations to new syntax.
8289 * basic-block.h: Likewise.
8290 * bitmap.h: Likewise.
8291 * c-common.h: Likewise.
8292 * c-decl.c: Likewise.
8293 * c-parser.c: Likewise.
8294 * c-pragma.c: Likewise.
8295 * c-tree.h: Likewise.
8296 * cfgloop.h: Likewise.
8297 * cgraph.h: Likewise.
8298 * config/alpha/alpha.c: Likewise.
8299 * config/arm/arm.h: Likewise.
8300 * config/avr/avr.h: Likewise.
8301 * config/bfin/bfin.c: Likewise.
8302 * config/cris/cris.c: Likewise.
8303 * config/darwin.c: Likewise.
8304 * config/frv/frv.c: Likewise.
8305 * config/i386/i386.c: Likewise.
8306 * config/i386/i386.h: Likewise.
8307 * config/i386/winnt.c: Likewise.
8308 * config/ia64/ia64.h: Likewise.
8309 * config/iq2000/iq2000.c: Likewise.
8310 * config/mips/mips.c: Likewise.
8311 * config/mmix/mmix.h: Likewise.
8312 * config/pa/pa.c: Likewise.
8313 * config/pa/pa.h: Likewise.
8314 * config/rs6000/rs6000.c: Likewise.
8315 * config/s390/s390.c: Likewise.
8316 * config/sparc/sparc.c: Likewise.
8317 * config/xtensa/xtensa.c: Likewise.
8318 * cselib.h: Likewise.
8319 * dbxout.c: Likewise.
8320 * dwarf2out.c: Likewise.
8321 * except.c: Likewise.
8322 * except.h: Likewise.
8323 * fixed-value.h: Likewise.
8324 * function.c: Likewise.
8325 * function.h: Likewise.
8326 * gimple.h: Likewise.
8327 * integrate.c: Likewise.
8328 * optabs.c: Likewise.
8329 * output.h: Likewise.
8330 * real.h: Likewise.
8331 * rtl.h: Likewise.
8332 * stringpool.c: Likewise.
8333 * tree-data-ref.c: Likewise.
8334 * tree-flow.h: Likewise.
8335 * tree-scalar-evolution.c: Likewise.
8336 * tree-ssa-address.c: Likewise.
8337 * tree-ssa-alias.h: Likewise.
8338 * tree-ssa-operands.h: Likewise.
8339 * tree.c: Likewise.
8340 * tree.h: Likewise.
8341 * varasm.c: Likewise.
8342 * varray.h: Likewise.
8343 * vec.h: Likewise.
bf758008 8344 * coretypes.h: Do not define GTY macro if it is already defined.
d1b38208
TG
8345 * doc/gty.texi: Update GTY documentation to new syntax.
8346 * gengtype-lex.l: Enforce attribute-like syntax for GTY
8347 annotations on structs.
8348 * gengtype-parse.c: Likewise.
8349
a123d175
MH
83502009-04-22 Mark Heffernan <meheff@google.com>
8351
bf758008 8352 * gcc.c (LINK_COMMAND_SPEC): Link with gcov with -fprofile-generate=.
a123d175 8353
4c7c486a
KH
83542009-04-22 Kazu Hirata <kazu@codesourcery.com>
8355
8356 * config/arm/arm.c (arm_rtx_costs_1): Use power_of_two_operand
8357 where appropriate.
8358
6e782a29
KH
83592009-04-22 Kazu Hirata <kazu@codesourcery.com>
8360
8361 * config/arm/arm.c (arm_size_rtx_costs): Treat a PLUS with a shift
8362 the same as a PLUS without a shift. Increase the cost of a
8363 CONST_INT in MULT.
8364
38d2336a
MLI
83652009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8366
8367 * Makefile.in: Update dependencies.
bf758008 8368 * errors.c (warning): Remove unused parameter 'opt'. Returns 'void'.
38d2336a
MLI
8369 * errors.h: Remove bogus comment about compatibility.
8370 (warning): Update declaration.
8371 * genautomata.c: Update all calls to warning.
8372 * gimple.c: Do not include errors.h. Include toplev.h.
8373 * tree-ssa-structalias.c: Do not include errors.h.
8374 * omega.c: Likewise.
8375 * tree-ssa-reassoc.c: Likewise.
8376 * config/spu/spu-c.c: Likewise.
8377 * config/spu/t-spu-elf: Update dependencies.
8378
aea4deba
RG
83792009-04-22 Richard Guenther <rguenther@suse.de>
8380
8381 PR tree-optimization/39824
8382 * tree-ssa-ccp.c (fold_const_aggregate_ref): For INDIRECT_REFs
8383 make sure the types are compatible.
8384
cfc93532
MLI
83852009-04-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8386
8387 PR c++/14875
8388 * c-common.c (c_parse_error): Take a token_flags parameter.
8389 Use token_type for the token type instead.
8390 Pass token_flags to cpp_type2name.
8391 * c-common.h (c_parse_error): Update declaration.
8392 * c-parser.c (c_parser_error): Pass 0 as token flags.
8393
8632d02a
AB
83942009-04-22 Andrey Belevantsev <abel@ispras.ru>
8395
8396 PR rtl-optimization/39580
8397 * sel-sched-ir.c (insert_in_history_vect): Remove incorrect gcc_assert.
8398
4c33221c
UW
83992009-04-22 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8400
8401 * function.c (expand_function_end): Do not emit a jump to the "naked"
8402 return label for fall-through returns.
8403 * except.c (sjlj_emit_function_exit): Always place the call to the
8404 unregister function at the location installed by expand_function_end.
8405
9925bce0
RG
84062009-04-22 Richard Guenther <rguenther@suse.de>
8407
8408 PR tree-optimization/39845
8409 * tree-switch-conversion.c (build_arrays): Add new referenced vars.
8410 (gen_inbound_check): Likewise.
8411
24a40b35
NS
84122009-04-22 Nathan Sidwell <nathan@codesourcery.com>
8413
8414 * gthr-vxworks.h (struct __gthread_once_t): Add alignment and
8415 padding for PPC.
8416 (__GTHREAD_ONCE_INIT): Adjust ppc initializer.
8417 * config/vxlib.c (__gthread_once): Add race guard for PPC.
8418
6c34a092
PB
84192009-04-22 Paolo Bonzini <bonzini@gnu.org>
8420
8421 * config/sh/sh.c (shift_insns_rtx, shiftcosts, gen_shifty_op,
8422 sh_dynamicalize_shift_p, shl_and_scr_length): Truncate
8423 shift counts to avoid out-of-bounds array accesses.
8424
baa48dfa
PB
84252009-04-22 Paolo Bonzini <bonzini@gnu.org>
8426
8427 * config/sparc/sparc.h (POINTER_SIZE): Fix comment.
8428 (Pmode): Move above.
8429
7d83f4f5
UB
84302009-04-22 Uros Bizjak <ubizjak@gmail.com>
8431
8432 * config/alpha/alpha.c: Use REG_P, MEM_P, CONST_INT_P, JUMP_P,
8433 NONJUMP_INSN_P, CALL_P, LABEL_P and NOTE_P predicates instead of
8434 GET_CODE macro. Use IN_RANGE macro where appropriate.
8435 * config/alpha/alpha.h: Ditto.
8436 * config/alpha/alpha.md: Ditto.
8437 * config/alpha/constraints.md: Ditto.
8438 * config/alpha/predicates.md: Ditto.
8439
3ad606bc
PB
84402009-04-22 Paolo Bonzini <bonzini@gnu.org>
8441
8442 * defaults.h (GO_IF_MODE_DEPENDENT_ADDRESS): Provide empty default.
8443 * config/frv/frv.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8444 * config/s390/s390.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8445 * config/m32c/m32c.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8446 * config/spu/spu.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8447 * config/i386/i386.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8448 * config/sh/sh.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8449 * config/pdp11/pdp11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8450 * config/avr/avr.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8451 * config/crx/crx.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8452 * config/fr30/fr30.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8453 * config/m68hc11/m68hc11.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8454 * config/cris/cris.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8455 * config/iq2000/iq2000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8456 * config/mn10300/mn10300.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8457 * config/ia64/ia64.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8458 * config/m68k/m68k.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8459 * config/picochip/picochip.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8460 * config/arc/arc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8461 * config/mcore/mcore.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8462 * config/score/score.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8463 * config/arm/arm.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8464 * config/pa/pa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8465 * config/mips/mips.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8466 * config/v850/v850.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8467 * config/mmix/mmix.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8468 * config/bfin/bfin.h (GO_IF_MODE_DEPENDENT_ADDRESS): Delete.
8469
3cabd6d1
LB
84702009-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
8471
8472 * cfghooks.c (tidy_fallthru_edges): Remove find_basic_blocks
8473 references from comments.
8474 * cfgbuild.c: (count_basic_blocks): Delete.
8475 (find_basic_blocks_1): Delete.
8476 (find_basic_blocks): Delete.
8477 * except.c (finish_eh_generation): Make static. Move comment from
7d83f4f5 8478 except.h here. Remove find_basic_blocks references from comments.
3cabd6d1
LB
8479 * except.h (finish_eh_generation): Delete.
8480 * basic-block.h (find_basic_blocks): Delete.
8481 * config/sh/sh.c (sh_output_mi_thunk): Delete a "#if 0" block.
8482
270d1bcd
DK
84832009-04-22 Dave Korn <dave.korn.cygwin@gmail.com>
8484
8485 * sdbout.c (sdbout_symbol): Pass VOIDmode to eliminate_regs.
8486 (sdbout_parms): Likewise.
8487
b757d36f
KK
84882009-04-21 Kaz Kojima <kkojima@gcc.gnu.org>
8489
8490 * config/sh/sh.c (prepare_cbranch_operands): Use
8491 LAST_AND_UNUSED_RTX_CODE instead of CODE_FOR_nothing.
8492 (expand_cbranchdi4): Likewise.
8493 (from_compare): Add cast to enum type.
8494 (expand_cbranchsi4): Use add_reg_note.
8495 (output_stack_adjust, push, pop, sh_expand_prologue): Likewise.
8496 (sh_insn_length_adjustment): Use sh_cpu_attr instead of sh_cpu.
8497 (sh_initialize_trampoline): Change 0 to LCT_NORMAL in function call.
8498 (sh_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
8499 * config/sh/sh.md (cbranchsi4): Use LAST_AND_UNUSED_RTX_CODE
8500 instead of CODE_FOR_nothing.
8501 (cbranchdi4): Likewise. Fix the order of arguments for
8502 gen_rtx_fmt_ee.
8503 (push_fpscr): Use add_reg_note.
8504 (pop_fpscr, movdf_i4+1, reload_outdf__RnFRm+3, reload_outdf__RnFRm+4,
8505 reload_outdf__RnFRm+5, fpu_switch+1, fpu_switch+2): Likewise.
8506
ad41bd84
JM
85072009-04-21 Joseph Myers <joseph@codesourcery.com>
8508
8509 * ABOUT-GCC-NLS, ChangeLog, ChangeLog-1997, ChangeLog-1998,
8510 ChangeLog-1999, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
8511 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
8512 ChangeLog-2007, ChangeLog-2008, ChangeLog.dataflow, ChangeLog.lib,
8513 ChangeLog.ptr, ChangeLog.tree-ssa, ChangeLog.tuples, FSFChangeLog,
8514 FSFChangeLog.10, FSFChangeLog.11, LANGUAGES, ONEWS, acinclude.m4,
8515 config/alpha/gnu.h, config/alpha/libgcc-alpha-ldbl.ver,
8516 config/alpha/t-osf4, config/alpha/t-vms, config/alpha/va_list.h,
8517 config/alpha/x-vms, config/arc/t-arc,
8518 config/arm/README-interworking, config/arm/arm-c.c,
8519 config/arm/gentune.sh, config/arm/libgcc-bpabi.ver,
8520 config/arm/t-arm, config/arm/t-arm-elf, config/arm/t-arm-softfp,
8521 config/arm/t-bpabi, config/arm/t-linux, config/arm/t-linux-eabi,
8522 config/arm/t-netbsd, config/arm/t-pe, config/arm/t-strongarm-elf,
8523 config/arm/t-symbian, config/arm/t-vxworks, config/arm/t-wince-pe,
8524 config/avr/t-avr, config/bfin/elf.h, config/bfin/libgcc-bfin.ver,
8525 config/bfin/linux.h, config/bfin/t-bfin, config/bfin/t-bfin-elf,
8526 config/bfin/t-bfin-linux, config/bfin/t-bfin-uclinux,
8527 config/bfin/uclinux.h, config/cris/mulsi3.asm, config/cris/t-cris,
8528 config/cris/t-elfmulti, config/crx/t-crx,
8529 config/darwin-ppc-ldouble-patch.def, config/darwin-sections.def,
8530 config/divmod.c, config/fr30/t-fr30, config/frv/libgcc-frv.ver,
8531 config/frv/t-frv, config/frv/t-linux, config/h8300/genmova.sh,
8532 config/h8300/t-h8300, config/i386/athlon.md,
8533 config/i386/darwin-libgcc.10.4.ver,
8534 config/i386/darwin-libgcc.10.5.ver, config/i386/libgcc-glibc.ver,
8535 config/i386/mach.h, config/i386/netbsd.h, config/i386/t-crtpc,
8536 config/i386/t-cygming, config/i386/t-cygwin, config/i386/t-i386,
8537 config/i386/t-linux64, config/i386/t-nwld,
8538 config/i386/t-rtems-i386, config/i386/t-sol2-10,
8539 config/i386/x-mingw32, config/ia64/div.md, config/ia64/elf.h,
8540 config/ia64/ia64.opt, config/ia64/libgcc-glibc.ver,
8541 config/ia64/libgcc-ia64.ver, config/ia64/linux.h,
8542 config/ia64/sysv4.h, config/ia64/t-hpux, config/ia64/t-ia64,
8543 config/iq2000/abi, config/iq2000/lib2extra-funcs.c,
8544 config/iq2000/t-iq2000, config/libgcc-glibc.ver,
8545 config/m32r/libgcc-glibc.ver, config/m32r/t-linux,
8546 config/m32r/t-m32r, config/m68hc11/t-m68hc11,
8547 config/m68k/t-floatlib, config/m68k/t-linux, config/m68k/t-mlibs,
8548 config/m68k/t-uclinux, config/mcore/t-mcore,
8549 config/mcore/t-mcore-pe, config/mips/20kc.md, config/mips/4130.md,
8550 config/mips/5400.md, config/mips/5500.md, config/mips/crti.asm,
8551 config/mips/crtn.asm, config/mips/irix-crti.asm,
8552 config/mips/irix-crtn.asm, config/mips/libgcc-mips16.ver,
8553 config/mips/mips-dsp.md, config/mips/mips-dspr2.md,
8554 config/mips/mips-fixed.md, config/mips/sb1.md,
8555 config/mips/sr71k.md, config/mips/t-elf, config/mips/t-gofast,
8556 config/mips/t-iris6, config/mips/t-isa3264,
8557 config/mips/t-libgcc-mips16, config/mips/t-linux64,
8558 config/mips/t-mips, config/mips/t-r3900, config/mips/t-rtems,
8559 config/mips/t-sb1, config/mips/t-sde, config/mips/t-sdemtk,
8560 config/mips/t-slibgcc-irix, config/mips/t-sr71k, config/mips/t-st,
8561 config/mips/t-vr, config/mips/t-vxworks, config/mmix/t-mmix,
8562 config/mn10300/t-linux, config/mn10300/t-mn10300,
8563 config/pa/pa32-regs.h, config/pa/t-hpux-shlib, config/pa/t-linux,
8564 config/pa/t-linux64, config/pa/t-pa64, config/pdp11/t-pdp11,
8565 config/picochip/libgccExtras/clzsi2.asm,
8566 config/picochip/t-picochip, config/rs6000/darwin-ldouble-format,
8567 config/rs6000/darwin-libgcc.10.4.ver,
8568 config/rs6000/darwin-libgcc.10.5.ver,
8569 config/rs6000/libgcc-ppc-glibc.ver, config/rs6000/ppc-asm.h,
8570 config/rs6000/t-aix43, config/rs6000/t-aix52,
8571 config/rs6000/t-darwin, config/rs6000/t-fprules,
8572 config/rs6000/t-fprules-fpbit, config/rs6000/t-linux64,
8573 config/rs6000/t-lynx, config/rs6000/t-netbsd,
8574 config/rs6000/t-ppccomm, config/rs6000/t-ppcendian,
8575 config/rs6000/t-ppcgas, config/rs6000/t-rs6000,
8576 config/rs6000/t-rtems, config/rs6000/t-spe,
8577 config/rs6000/t-vxworks, config/s390/libgcc-glibc.ver,
8578 config/score/t-score-elf, config/sh/divcost-analysis,
8579 config/sh/libgcc-glibc.ver, config/sh/t-netbsd, config/sh/t-sh,
8580 config/sh/t-sh64, config/sh/t-superh, config/sh/t-symbian,
8581 config/sparc/libgcc-sparc-glibc.ver, config/sparc/sol2-bi.h,
8582 config/sparc/sol2-gas.h, config/sparc/sol2-gld-bi.h,
8583 config/sparc/t-elf, config/sparc/t-linux64, config/sparc/t-sol2,
8584 config/stormy16/stormy-abi, config/stormy16/t-stormy16,
8585 config/t-darwin, config/t-libunwind, config/t-libunwind-elf,
8586 config/t-linux, config/t-lynx, config/t-slibgcc-elf-ver,
8587 config/t-slibgcc-sld, config/t-sol2, config/t-vxworks,
8588 config/udivmod.c, config/udivmodsi4.c, config/v850/t-v850,
8589 config/v850/t-v850e, config/xtensa/t-xtensa, diagnostic.def,
8590 gdbinit.in, glimits.h, gstab.h, gsyms.h, java/ChangeLog,
8591 java/ChangeLog.ptr, java/ChangeLog.tree-ssa, libgcc-std.ver,
8592 limitx.h, version.c, xcoff.h: Add copyright and license notices.
8593 * config/h8300/genmova.sh: Include copyright and license notices
8594 in generated output.
8595 * config/h8300/mova.md: Regenerate.
8596 * doc/install.texi2html: Include word "Copyright" in copyright
8597 notice and use name "Free Software Foundation, Inc.".
8598 * ChangeLog, ChangeLog-2000, ChangeLog-2001, ChangeLog-2002,
8599 ChangeLog-2003, ChangeLog-2004, ChangeLog-2005, ChangeLog-2006,
8600 ChangeLog-2007, ChangeLog-2008: Correct dates.
8601
ca80e52b
EB
86022009-04-21 Eric Botcazou <ebotcazou@adacore.com>
8603
8604 * c-common.c (c_common_truthvalue_conversion): Use LOCATION to build
8605 NE_EXPR operations as well.
8606 * c-parser.c (c_parser_condition): Do not set location information on
8607 the condition.
8608 (c_parser_conditional_expression): Likewise.
8609 (c_parser_binary_expression): Set location information on operators.
8610 * c-typeck.c (build_unary_op) <TRUTH_NOT_EXPR>: Reset the location if
8611 TRUTH_NOT_EXPR has been folded.
8612 * fold-const.c (fold_truth_not_expr): Copy location information from
8613 the incoming expression to the outgoing one.
8614 * gimplify.c (shortcut_cond_r): Add locus parameter. Pass it to
8615 recursive calls on the LHS of the operator but pass that of the
8616 operator to recursive calls on the RHS of the operator. Set it
8617 on the COND_EXPR.
8618 (shortcut_cond_expr): Set the locus of the operator on the second
8619 COND_EXPR and that of the expression on the first in degenerate cases.
8620 Pass the locus of the expression to calls to shortcut_cond_r.
8621 Set the locus of the 'then' block on the associated jump, if any.
8622 (gimplify_boolean_expr): Add locus parameter. Set it on the COND_EXPR.
8623 (gimplify_expr) <TRUTH_ANDIF_EXPR>: Pass the locus of the outer
8624 expression to call to gimplify_boolean_expr.
8625
35091630
KT
86262009-04-21 Kai Tietz <kai.tietz@onevision.com>
8627
8628 * config.gcc: Add additional configuration for
8629 i686-w64-mingw* and x86_64-w64-mingw* triplet.
8630 * config/i386/mingw-w64.h: New mingw-w64 specific header.
8631 (CPP_SPEC): Redefine for allowing -municode option.
8632 (STARTFILE_SPEC): Likewise.
8633 * config/i386/t-mingw-w64: New.
8634 * config/i386/mingw-w64.opt: New.
8635 (municode): Add new target option.
8636 * doc/invoke.texi (municode): Add documentation for new option.
8637
0267afc4
ILT
86382009-04-21 Ian Lance Taylor <iant@google.com>
8639
8640 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8641 Correct test for number of arguments.
8642 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8643
2ba9daa7
AS
86442009-04-21 Andreas Schwab <schwab@linux-m68k.org>
8645
8646 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Use enum for second
8647 argument of emit_library_call.
8648
ad8a1ac0
RG
86492009-04-21 Richard Guenther <rguenther@suse.de>
8650
8651 PR middle-end/39829
8652 * gimple.c (walk_stmt_load_store_addr_ops): Catch addresses
8653 inside VIEW_CONVERT_EXPRs.
8654
7156c8ab
MJ
86552009-04-21 Martin Jambor <mjambor@suse.cz>
8656
8657 * tree-switch-conversion.c (build_constructors): Split a long line.
8658 (constructor_contains_same_values_p): New function.
7d83f4f5
UB
8659 (build_one_array): Create assigns of constants if possible, do not
8660 call mark_sym_for_renaming, call update_stmt.
7156c8ab
MJ
8661 (build_arrays): Call make_ssa_name (create_tmp_var ()) instead of
8662 make_rename_temp. Do not call mark_symbols_for_renaming, call
8663 update_stmt.
8664 (gen_def_assigns): Do not call mark_symbols_for_renaming or
8665 find_new_referenced_vars, call update_stmt.
8666 (gen_inbound_check): Use create_tmp_var and create ssa names manually
8667 instead of calling make_rename_temp. Do not call
8668 find_new_referenced_vars or mark_symbols_for_renaming, call
8669 update_stmt.
8670
2970ccb3
RG
86712009-04-21 Richard Guenther <rguenther@suse.de>
8672
8673 PR tree-optimization/39827
7d83f4f5 8674 * tree-ssa-phiprop.c (propagate_with_phi): Check SSA_NAME is in range.
2970ccb3
RG
8675 (tree_ssa_phiprop): Pass the correct array size.
8676
47f402d1
UB
86772009-04-21 Uros Bizjak <ubizjak@gmail.com>
8678
8679 * config/alpha/alpha.md (tune): Add cast to enum attr_tune.
8680
1e4ae551
MLI
86812009-04-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8682
8683 PR 16202
8684 * c-typeck.c (lvalue_p): Move declaration ...
8685 * c-common.h (lvalue_p): ... to here.
8686 * c-common.c (candidate_equal_p): New.
8687 (add_tlist): Use it.
8688 (merge_tlist): Use it.
8689 (warn_for_collisions_1): Likewise.
8690 (warning_candidate_p): Accept more candidates.
8691 (verify_tree): A warning candidate can be an expression. Use
8692 candidate_equal_p.
8693
244609a6
BE
86942009-04-21 Ben Elliston <bje@au.ibm.com>
8695
8696 PR target/5267
8697 * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
8698 for -mcall-eabi, -mcall-aixdesc, -mcall-freebsd and -mcall-openbsd
8699 options. Remove -mcall-solaris documentation.
8700
9c650d90
MLI
87012009-04-21 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
8702
8703 PR c++/13358
8704 * doc/invoke.texi (-Wlong-long): Update description.
8705 * c-lex (interpret_integer): Only warn if there was no previous
8706 overflow and -Wlong-long is enabled.
8707 * c-decl.c (declspecs_add_type): Drop redundant flags.
8708 * c.opt (Wlong-long): Init to -1.
8709 * c-opts.c (sanitize_cpp_opts): Synchronize cpp's warn_long_long
8710 and front-end warn_long_long. Wlong-long only depends on other
8711 flags if it is uninitialized.
8712 * c-parser.c (disable_extension_diagnostics): warn_long_long is
8713 the same for CPP and FE.
8714 (restore_extension_diagnostics): Likewise.
8715
bbbbb16a
ILT
87162009-04-20 Ian Lance Taylor <iant@google.com>
8717
8718 Fix enum conversions which are invalid in C++:
47f402d1
UB
8719 * auto-inc-dec.c (attempt_change): Change 0 to SET in function call.
8720 * calls.c (store_one_arg): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
8721 * cse.c (hash_rtx_cb): Change 0 to VOIDmode in function call.
8722 * dbgcnt.c (dbg_cnt_set_limit_by_name): Add cast to enum type.
47f402d1 8723 * dbxout.c (dbxout_symbol): Change 0 to VOIDmode in function call.
bbbbb16a 8724 (dbxout_parms): Likewise.
47f402d1 8725 * df-core.c (df_set_flags): Change changeable_flags parameter to int.
bbbbb16a
ILT
8726 (df_clear_flags): Likewise.
8727 * df-problems.c (df_rd_bb_local_compute_process_def): Change
8728 top_flag parameter to int.
8729 (df_chain_create_bb_process_use): Likewise.
47f402d1
UB
8730 (df_chain_add_problem): Change chain_flags parameter to unsigned int.
8731 Remove cast.
bbbbb16a
ILT
8732 * df-scan.c (df_ref_create): Change ref_flags parameter to int.
8733 (df_ref_create_structure, df_def_record_1): Likewise.
8734 (df_defs_record, df_uses_record, df_get_call_refs): Likewise.
8735 (df_notes_rescan): Change 0 to VOIDmode in function call.
8736 (df_get_call_refs, df_insn_refs_collect): Likewise.
8737 (df_bb_regs_collect): Likewise.
8738 (df_entry_block_defs_collect): Likewise.
8739 (df_exit_block_uses_collect): Likewise.
8740 * df.h: Update declarations.
8741 * double-int.c (double_int_divmod): Add cast to enum type.
8742 * dse.c (replace_inc_dec): Reverse parameters to gen_int_mode.
8743 * dwarf2out.c (new_reg_loc_descr): Add casts to enum type.
8744 (based_loc_descr): Likewise.
8745 (loc_descriptor_from_tree_1): Change first_op and second_op to
8746 enum dwarf_location_atom. Add cast to enum type.
8747 * expmed.c (init_expmed): Change 0 to SET in function call.
47f402d1 8748 * expr.c (init_expr_target): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
8749 (expand_expr_real_1): Change 0 to EXPAND_NORMAL in function call.
8750 (do_store_flag): Likewise.
8751 * fixed-value.h (struct fixed_value): Change mode to enum
8752 machine_mode.
47f402d1 8753 * function.c (assign_parms): Change 0 to VOIDmode in function call.
bbbbb16a
ILT
8754 * genautomata.c (insert_automaton_decl): Change 1 to INSERT in
8755 function call.
8756 (insert_insn_decl, insert_decl, insert_state): Likewise.
8757 (automata_list_finish): Likewise.
8758 * genrecog.c (process_define_predicate): Add cast to enum type.
8759 * gensupport.c (init_predicate_table): Add cast to enum type.
8760 * gimple.c (gimple_build_return): Change 0 to ERROR_MARK in
8761 function call.
8762 (gimple_build_call_1, gimple_build_label): Likewise.
8763 (gimple_build_goto, gimple_build_asm_1): Likewise.
8764 (gimple_build_switch_1, gimple_build_cdt): Likewise.
47f402d1 8765 * gimple.h (GIMPLE_CHECK): Change 0 to ERROR_MARK in function call.
bbbbb16a
ILT
8766 (enum fallback): Rename from enum fallback_t.
8767 (fallback_t): Typedef as int.
8768 * gimple-low.c (lower_builtin_setjmp): Change TSI_SAME_STMT to
8769 GSI_SAME_STMT in function call.
8770 * ira.c (setup_class_subset_and_memory_move_costs): Add casts to
8771 enum type.
8772 (setup_reg_class_relations): Likewise.
47f402d1 8773 (setup_reg_class_nregs): Change cl to int. Add casts to enum type.
bbbbb16a
ILT
8774 (setup_prohibited_class_mode_regs): Add cast to enum type.
8775 (setup_prohibited_mode_move_regs): Likewise.
47f402d1 8776 * ira-costs.c (record_reg_classes): Change rclass to enum reg_class.
bbbbb16a
ILT
8777 (record_address_regs): Change i to enum reg_class.
8778 * lists.c (alloc_EXPR_LIST): Add cast to enum type.
8779 * machmode.h (GET_MODE_CLASS): Cast value to enum mode_class.
8780 (GET_MODE_WIDER_MODE): Cast value to enum machine_mode.
8781 (GET_MODE_2XWIDER_MODE): Likewise.
8782 (GET_CLASS_NARROWEST_MODE): Likewise.
8783 * omp-low.c (expand_omp_for): Add cast to enum type.
8784 * optabs.c (debug_optab_libfuncs): Add casts to enum type.
8785 * opts.c (enable_warning_as_error): Change kind to diagostic_t.
8786 * postreload.c (reload_cse_simplify_operands): Change rclass local
8787 to enum reg_class.
8788 * predict.c (combine_predictions_for_insn): Change best_predictor
8789 and predictor to enum br_predictor.
8790 (combine_predictions_for_bb): Likewise.
8791 (build_predict_expr): Change assignment to PREDICT_EXPR_OUTCOME to
8792 use SET_PREDICT_EXPR_OUTCOME.
47f402d1 8793 * real.c (real_arithmetic): Change icode to code in function call.
bbbbb16a
ILT
8794 * reginfo.c (init_move_cost): Add casts to enum type.
8795 (init_reg_sets_1, init_fake_stack_mems): Likewise.
8796 * regmove.c (regclass_compatible_p): Change class0 and class1 to
8797 enum reg_class.
8798 * reload.c (find_valid_class): Add casts to enum type.
8799 (push_reload): Change 0 to NO_REGS in function call.
8800 (find_reloads): Change this_alternative to array of enum
8801 reg_class. Remove some now-unnecessary casts.
8802 (make_memloc): Change 0 to VOIDmode in function call.
8803 * reload1.c (reload): Change 0 to VOIDmode in function call.
8804 (eliminate_regs_1, elimination_effects): Likewise.
8805 (eliminate_regs_in_insn): Likewise.
8806 (emit_input_reload_insns): Add cast to enum type.
8807 (delete_output_reload): Change 0 to VOIDmode in function call.
8808 * reorg.c (insn_sets_resource_p): Convert include_delayed_effects
8809 to enum type in function call.
8810 * tree.h (PREDICT_EXPR_OUTCOME): Add cast to enum type.
8811 (SET_PREDICT_EXPR_OUTCOME): Define.
47f402d1 8812 * tree-dump.c (get_dump_file_info): Change phase parameter to int.
bbbbb16a
ILT
8813 (get_dump_file_name, dump_begin, dump_enabled_p): Likewise.
8814 (dump_initialized_p, dump_flag_name, dump_end): Likewise.
8815 (dump_function): Likewise.
8816 * tree-dump.h: Update declarations.
8817 * tree-pass.h: Update declarations.
8818 * varasm.c (assemble_integer): Change mclass to enum mode_class.
8819 * config/arm/arm.c (thumb_legitimize_reload_address): Add cast to
8820 enum type.
8821 (arm_rtx_costs_1): Correct parenthesization.
8822 (arm_rtx_costs): Add casts to enum type.
8823 (adjacent_mem_locations): Reverse arguments to const_ok_for_op.
8824 (vfp_emit_fstmd): Use add_rg_note.
8825 (emit_multi_reg_push, emit_sfm): Likewise.
8826 (thumb_set_frame_pointer): Likewise.
8827 (arm_expand_prologue): Likewise.
8828 (arm_regno_class): Change return type to enum reg_class.
8829 (thumb1_expand_prologue): Use add_reg_note.
8830 * config/arm/arm-protos.h (arm_regno_class): Update declaration.
8831 * config/arm/arm.h (INITIALIZE_TRAMPOLINE): Change 0 to LCT_NORMAL
8832 in function call.
8833 * config/arm/gentune.sh: Add cast to enum type.
8834 * config/arm/arm-tune.md: Rebuild.
8835 * config/i386/i386.c (ix86_expand_prologue): Use add_reg_note.
8836 (ix86_split_fp_branch, predict_jump): Likewise.
8837 (ix86_expand_multi_arg_builtin): Change sub_code from enum
8838 insn_code to enum rtx_code.
8839 (ix86_builtin_vectorized_function): Add cast to enum type.
8840 * config/i386/i386.md (truncdfsf2): Change slot to enum
8841 ix86_stack_slot.
8842 (truncxf<mode>2, isinf<mode>2): Likewise.
8843 * config/i386/i386-c.c (ix86_pragma_target_parse): Add cast to
8844 enum type.
8845 * config/ia64/ia64.c (ia64_split_tmode_move): Use add_reg_note.
8846 (spill_restore_mem, do_spill, ia64_expand_prologue): Likewise.
8847 (insert_bundle_state): Change 1 to INSERT in function call.
8848 (ia64_add_bundle_selector_before): Likewise.
8849 * config/ia64/ia64.md (cpu attr): Add cast to enum type.
8850 (save_stack_nonlocal): Change 0 to LCT_NORMAL in function call.
8851 (restore_stack_nonlocal): Likewise.
8852 * config/mips/mips.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL in
8853 function call.
8854 * config/mips/mips.c (mips_binary_cost): Change 0 to SET in
8855 function call.
8856 (mips_rtx_costs): Likewise.
8857 (mips_override_options): Add casts to enum type.
8858 * config/mips/sdemtk.h (MIPS_ICACHE_SYNC): Change 0 to LCT_NORMAL
8859 in function call.
8860 * config/pa/pa.c (legitimize_pic_address): Use add_reg_note.
8861 (store_reg, set_reg_plus_d): Likewise.
8862 (hppa_expand_prologue, hppa_profile_hook): Likewise.
8863 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
8864 cast to enum type.
8865 (altivec_expand_vec_set_builtin): Change 0 to EXPAND_NORMAL in
8866 function call.
8867 (emit_unlikely_jump): Use add_reg_note.
8868 (rs6000_emit_allocate_stack): Likewise.
8869 (rs6000_frame_related, rs6000_emit_prologue): Likewise.
8870 (output_toc): Change 1 to INSERT in function call.
8871 (output_profile_hook): Change 0 to LCT_NORMAL in function call.
8872 (rs6000_initialize_trampoline): Likewise.
8873 (rs6000_init_dwarf_reg_sizes_extra): Change 0 to EXPAND_NORMAL in
8874 function call.
8875 * config/s390/s390.c (s390_rtx_costs): Add cast to enum type.
8876 (s390_expand_movmem): Change 0 to OPTAB_DIRECT in function call.
8877 (s390_expand_setmem, s390_expand_cmpmem): Likewise.
8878 (save_gprs): Use add_reg_note.
8879 (s390_emit_prologue): Likewise.
47f402d1 8880 (s390_expand_builtin): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
8881 * config/sparc/sparc.c (sparc_expand_prologue): Use add_reg_note.
8882 (sparc_fold_builtin): Add cast to enum type.
8883 * config/spu/spu.c (spu_emit_branch_or_set): Change ior_code to
8884 enum insn_code.
8885 (spu_expand_prologue): Use add_reg_note.
47f402d1 8886 (expand_builtin_args): Change 0 to EXPAND_NORMAL in function call.
bbbbb16a
ILT
8887
88882009-04-20 Ian Lance Taylor <iant@google.com>
8889
8890 * c-parser.c (c_parser_attributes): Change VEC back to tree list.
8891 (c_parser_postfix_expression_after_primary): Get VEC for list of
8892 arguments. Get original types of arguments. Call
8893 build_function_call_vec.
8894 (cached_expr_list_1, cached_expr_list_2): New static variables.
8895 (c_parser_expr_list): Change return type to VEC *. Add
8896 p_orig_types parameter. Change all callers.
8897 (c_parser_release_expr): New static function.
8898 (c_parser_vec_to_tree_list): New static function.
8899 * c-typeck.c (build_function_call): Rewrite to build a VEC and
8900 call build_function_call_vec.
8901 (build_function_call_vec): New function, based on old
8902 build_function_call.
8903 (convert_arguments): Remove nargs and argarray parameters. Change
8904 values to a VEC. Add origtypes parameter.
47f402d1 8905 (build_modify_expr): Add rhs_origtype parameter. Change all callers.
bbbbb16a
ILT
8906 (convert_for_assignment): Add origtype parameter. Change all
8907 callers. If warn_cxx_compat, check for conversion to an enum
8908 type when calling a function.
8909 (store_init_value): Add origtype parameter. Change all callers.
8910 (digest_init): Likewise.
8911 (struct init_node): Add origtype field.
8912 (add_pending_init): Add origtype parameter. Change all callers.
8913 (output_init_element): Likewise.
8914 (output_pending_init_elements): Pass origtype from init_node to
8915 output_init_element.
f28a61ab 8916 (process_init_element): Pass origtype from c_expr to
bbbbb16a
ILT
8917 output_init_element.
8918 (c_finish_return): Add origtype parameter. Change all callers.
8919 * c-common.c (sync_resolve_size): Change params to VEC *. Change
8920 caller.
8921 (sync_resolve_params): Likewise.
47f402d1 8922 (sync_resolve_return): Change params to first_param. Change caller.
bbbbb16a 8923 (resolve_overloaded_builtins): Change params to VEC *. Change
47f402d1 8924 callers. Save first parameter around call to build_function_call_vec.
bbbbb16a
ILT
8925 * c-decl.c (finish_decl): Add origtype parameter. Change all
8926 callers. Call build_function_call_vec rather than
8927 build_function_call for cleanup.
8928 * c-tree.h: Update declarations.
8929 * c-common.h: Update declarations.
8930 * stub-objc.c (objc_rewrite_function_call): Change parameter from
8931 params to first_param.
8932 * target.h (struct gcc_target): Change resolve_overloaded_builtin
8933 params parameter from tree to void *.
8934 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8935 Change arglist parameter to have type void *, and to be a pointer
8936 to a VEC.
8937 * config/rs6000/rs6000-protos.h
8938 (altivec_resolve_overloaded_builtin): Update declaration.
8939 * config/spu/spu-c.c (spu_resolved_overloaded_builtin): Change
8940 fnargs parameter to have type void *, and to be a pointer to a
8941 VEC. Call build_function_call_vec instead of
8942 build_function_call.
47f402d1 8943 * config/spu/spu-protos.h (spu_expand_builtin): Update declaration.
bbbbb16a 8944
6ff078d4 89452009-04-20 Joey Ye <joey.ye@intel.com>
60839f5d 8946 Xuepeng Guo <xuepeng.guo@intel.com>
6ff078d4
JY
8947 H.J. Lu <hongjiu.lu@intel.com>
8948
8949 * config/i386/atom.md: Add bypasses with ix86_dep_by_shift_count.
8950
8951 * config/i386/i386.c (LEA_SEARCH_THRESHOLD): New macro.
8952 (IX86_LEA_PRIORITY): Likewise.
8953 (distance_non_agu_define): New function.
8954 (distance_agu_use): Likewise.
8955 (ix86_lea_for_add_ok): Likewise.
8956 (ix86_dep_by_shift_count): Likewise.
8957
8958 * config/i386/i386.md: Call ix86_lea_for_add_ok to decide we
8959 should split for LEA.
8960
8961 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Declare new
8962 function.
8963 (ix86_dep_by_shift_count): Likewise.
8964
87a5b4cc
RG
89652009-04-20 Richard Guenther <rguenther@suse.de>
8966
8967 * expr.c (handled_component_p): Move ...
8968 * tree.h (handled_component_p): ... here.
8969 * tree.def: Re-order BIT_FIELD_REF, COMPONENT_REF,
8970 ARRAY_REF, ARRAY_RANGE_REF, VIEW_CONVERT_EXPR, IMAGPART_EXPR
8971 and REALPART_EXPR to be in one group.
8972
438c239d
RG
89732009-04-20 Richard Guenther <rguenther@suse.de>
8974
8975 * basic-block.h (get_all_dominated_blocks): Declare.
8976 * dominance.c (get_all_dominated_blocks): New function.
8977 * tree-cfg.c (get_all_dominated_blocks): Remove.
8978 (remove_edge_and_dominated_blocks): Adjust.
8979 * tree-ssa-phiprop.c (tree_ssa_phiprop_1): Fold in ...
8980 (tree_ssa_phiprop): ... here. Use get_all_dominated_blocks
8981 instead of recursing.
8982
fed5ae11
DK
89832009-04-20 Doug Kwan <dougkwan@google.com>
8984
8985 * cgraph.h (cgraph_node_ptr): New type for vector functions.
8986 (struct cgraph_node_set_def): New type.
8987 (cgraph_node_set) New type. Also declare vector functions.
8988 (struct cgraph_node_set_element_def): New type.
8989 (cgraph_node_set_element): Ditto.
8990 (cgraph_node_set_iterator): New iterator type.
8991 (cgraph_node_set_new, cgraph_node_set_find, cgraph_node_set_add,
8992 cgraph_node_set_remove, dump_cgraph_node_set,
8993 debug_cgraph_node_set): New prototypes.
8994 (csi_end_p, csi_next, csi_node, csi_start, cgraph_node_in_set_p,
8995 cgraph_node_set_size): New inlines.
8996 * tree-pass.h (struct cgraph_node_set_def): New decl to avoid
8997 including cgraph.h.
8998 (struct ipa_opt_pass): Add struct cgraph_node_set_def
8999 argument to function 'write_summary'.
9000 * ipa.c: Include ggc.h.
9001 (hash_cgraph_node_set_element,
9002 eq_cgraph_node_set_element, cgraph_node_set_new,
9003 cgraph_node_set_add, cgraph_node_set_remove,
9004 cgraph_node_set_find, dump_cgraph_node_set,
9005 debug_cgraph_node_set): New functions.
9006 * Makefile.in (ipa.o): Add dependency on GGC_H.
9007
c4551b28
IR
90082009-04-20 Ira Rosen <irar@il.ibm.com>
9009
9010 PR tree-optimization/39675
2ba9daa7 9011 * tree-vect-loop.c (vect_transform_loop): Remove currently redundant
47f402d1
UB
9012 check of the return code of vect_schedule_slp. Check that
9013 stmt_vec_info still exists for the statement, before checking its
9014 vectorization type.
c4551b28 9015
21a495fb
MM
90162009-04-20 Michael Matz <matz@suse.de>
9017
9018 * Makefile.in (generated_files): Take out $(simple_generated_c).
9019
8e208874
DK
90202009-04-19 Dave Korn <dave.korn.cygwin@gmail.com>
9021
9022 * config/i386/cygwin-stdint.h (INTPTR_TYPE): Remove "long".
9023 (UINTPTR_TYPE): Likewise.
9024
a45e580b
JM
90252009-04-19 Joseph Myers <joseph@codesourcery.com>
9026
9027 PR c/37481
9028 * c-typeck.c (digest_init): Check for initializing an array with a
9029 string literal.
9030
20845d35
JM
90312009-04-19 Joseph Myers <joseph@codesourcery.com>
9032
9033 PR c/19771
9034 * c-semantics.c (pop_stmt_list): Propagate
9035 STATEMENT_LIST_HAS_LABEL to parent statement list.
9036
28143fdd
AN
90372009-04-19 Adam Nemet <anemet@caviumnetworks.com>
9038
9039 * config/mips/mips.h (mips_tune_attr): New macro.
9040 * config/mips/mips.md (cpu): Use it.
9041
da377db9
JM
90422009-04-19 Joseph Myers <joseph@codesourcery.com>
9043
9044 PR c/38243
9045 * c-decl.c (shadow_tag_warned): Diagnose use of restrict when
9046 declaring a tag.
9047
3baf459d
DN
90482009-04-19 Diego Novillo <dnovillo@google.com>
9049
9050 * toplev.c (compile_file): Move call to coverage_finish ...
9051 * cgraphunit.c (ipa_passes): ... here.
9052 Call cgraph_process_new_functions.
9053 * ipa-utils.c (get_base_var): Handle CONSTRUCTOR.
9054 * Makefile.in (cgraphunit.o): Add dependency on COVERAGE_H.
9055
b6fa5b01
JH
90562009-04-19 Jan Hubicka <jh@suse.cz>
9057
47f402d1
UB
9058 * cgraph.c (cgraph_create_edge, cgraph_set_call_stmt): Set proper
9059 cfun.
b6fa5b01
JH
9060 (dump_cgraph_node): Dump can throw external flag.
9061 * ipa-pure-const.c (propagate): Fix propagation of nothrow flags.
9062
ca409efd
MLI
90632009-04-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
9064
9065 PR c/32061
9066 PR c++/36954
9067 * doc/invoke.texi: Add -Wlogical-op to -Wextra.
9068 * common.opt (Wlogical-op): Move from here...
9069 * c.opt (Wlogical-op): ... to here.
9070 * c-typeck.c (parser_build_binary_op): Update call to
9071 warn_logical_operator.
9072 * c-opts.c (c_common_post_options): Enable warn_logical_op with
9073 extra_warnings.
9074 * c-common.c (warn_logical_op): Update.
9075 * c-common.h (warn_logical_op): Update declaration.
9076
9db4cdd3
EB
90772009-04-19 Eric Botcazou <ebotcazou@adacore.com>
9078
9079 * tree.c (protected_set_expr_location): Fix formatting.
9080
f37acdf9
JM
90812009-04-18 Joseph Myers <joseph@codesourcery.com>
9082
9083 PR c/27676
9084 * c-typeck.c (readonly_warning): new.
9085 (build_unary_op, build_modify_expr): Use readonly_warning for
9086 storing into something readonly but not const-qualified.
9087
2b4b7036
JM
90882009-04-18 Joseph Myers <joseph@codesourcery.com>
9089
9090 PR c/22367
9091 * c-typeck.c (build_unary_op): Check for taking address of
9092 expression of type void.
9093
3ce62965
JM
90942009-04-18 Joseph Myers <joseph@codesourcery.com>
9095
9096 PR c/35210
9097 * c-typeck.c (build_function_call): Check for calling a function
9098 with qualified void return types. Call require_complete_type when
9099 generating a trap.
9100
2505c5ed
JH
91012009-04-18 Jan Hubicka <jh@suse.cz>
9102
9103 * cgraph.c (cgraph_make_edge, dump_cgraph_node, cgraph_set_call_stmt):
9104 Set nothrow flag.
9105 * cgraph.h (struct function): Reduce loop_nest to 30 bits; add
9106 can_throw_external flag.
9107 * ipa-reference.c (ipa_utils_reduced_inorder): Update call.
9108 * ipa-pure-const.c (ignore_edge): New function.
9109 (propagate): Compute order for NOTHROW computation; set NOTHROWs
9110 only over can_throw_external edges.
9111 (local_pure_const): Add nothrow flag.
9112 * ipa-utils.c (searchc): Add ignore_edge callback.
9113 (ipa_utils_reduced_inorder): Add ignore_edge callback.
9114 * ipa-utils.h (ipa_utils_reduced_inorder): Update prototype.
9115 (set_nothrow_function_flags): Update cgraph.
9116 * tree-cfg.c (verify_stmt): Relax nothrow checking when in IPA mode.
9117
2586ba4b
RG
91182009-04-18 Richard Guenther <rguenther@suse.de>
9119
9120 PR middle-end/39804
9121 * tree-ssa-ccp.c (fold_stmt_1): New function factored from ...
9122 (fold_stmt): ... this and ...
9123 (fold_stmt_inplace): ... this.
9124 (fold_stmt_1): Fold references in calls and asms.
9125 * tree-cfg.c (remove_useless_stmts_cond): Use fold_stmt.
9126
1eefab17
KH
91272009-04-18 Kazu Hirata <kazu@codesourcery.com>
9128
9129 * tree-vrp.c (ssa_name_nonzero_p): Remove.
9130 * tree.h: Remove the prototype for ssa_name_nonzero_p.
9131
aa424b01
KH
91322009-04-18 Kazu Hirata <kazu@codesourcery.com>
9133
9134 * tree.c (function_args_count): Remove.
9135 * tree.h: Remove the prototype for function_args_count.
9136
613a896b
KH
91372009-04-18 Kazu Hirata <kazu@codesourcery.com>
9138
9139 * tree-iterator.c (expr_only): Remove.
9140 * tree.h: Remove the prototype for expr_only.
9141
579e694c
KH
91422009-04-18 Kazu Hirata <kazu@codesourcery.com>
9143
9144 * reginfo.c (cannot_change_mode_set_regs): Remove.
9145 * rtl.h: Remove the prototype for cannot_change_mode_set_regs.
9146
ee7e3ad3
AS
91472009-04-08 Anatoly Sokolov <aesok@post.ru>
9148
9149 * config/avr/avr.md (*rotlsi3_8, *rotlsi3_16, *rotlsi3_24 ): Check
9150 whether operands 0 and 1 overlaps.
9151
92ef7fb1
MLI
91522009-04-18 Manuel López-Ibáñez <manu@gcc.gnu.org>
9153
9154 PR middle-end/36902
9155 * tree-vrp.c (check_array_ref): Pass a location_t instead of a
9156 pointer. Use warning_at instead of warning.
9157 (search_for_addr_array): Likewise.
9158 (check_array_bounds): Likewise.
9159 (check_all_array_refs): Check that the incoming edge is not in the
9160 list of edges to be removed.
9161 (check_all_array_refs): Avoid the temporal pointer.
9162 (vrp_visit_cond_stmt): Fix typo.
9163 (simplify_switch_using_ranges): Handle the case where the switch
9164 index is an integer constant.
9165
0e097268
AN
91662009-04-18 Adam Nemet <anemet@caviumnetworks.com>
9167
9168 * config/mips/mips.c (mips_final_postscan_insn): Make it static.
9169
c782f1dd
KH
91702009-04-18 Kazu Hirata <kazu@codesourcery.com>
9171
9172 * doc/extend.texi, doc/invoke.texi: Fix typos.
9173
668fb0e8
CC
91742009-04-17 Cary Coutant <ccoutant@google.com>
9175
9176 * tree-flow-inline.h (get_lineno): Fix inverted test.
9177
4d4014c1
DN
91782009-04-17 Diego Novillo <dnovillo@google.com>
9179
9180 * tree-ssa-pre.c (create_expression_by_pieces): Remove
9181 assertion for AVAIL_OUT.
9182
2984e1b6
MF
91832009-04-17 Mike Frysinger <vapier@gentoo.org>
9184
9185 PR target/38627
9186 * config/sh/lib1funcs.asm [__ELF__ && __linux__]: Add .note.GNU-stack.
9187 * config/sh/linux-atomic.asm: Likewise.
9188
9994a182
DN
91892009-04-17 Diego Novillo <dnovillo@google.com>
9190
9191 * except.c (debug_eh_tree): New.
9192 (struct eh_region, struct eh_status): Move ...
9193 * except.h: ... here.
9194 (add_type_for_runtime): Declare extern.
9195 (lookup_type_for_runtime): Likewise.
9196 (debug_eh_tree): Declare.
9197 * Makefile.in (GTFILES): List except.h before except.c
9198
07485407
DN
91992009-04-17 Diego Novillo <dnovillo@google.com>
9200
47f402d1 9201 * omp-low.c (create_omp_child_function): Set DECL_CONTEXT for DECL.
07485407
DN
9202 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
9203 * tree-dfa.c (find_referenced_vars_in): Factor out of ...
9204 (find_vars_r): ... here.
9205 * tree-flow.h (find_referenced_vars_in): Declare.
9206 * tree-ssa-pre.c (create_expression_by_pieces): Assert
9207 that AVAIL_OUT exists for BLOCK.
9208 * Makefile.in (CGRAPH_H): Add dependency on cif-code.def
9209 (tree-loop-distribution.o): Fix dependency on TREE_VECTORIZER_H.
9210 (tree-parloops.o): Likewise.
9211
4e53d196
SB
92122009-04-17 Simon Baldwin <simonb@google.com>
9213
9214 * toplev.c (default_tree_printer): Add handling for %E format.
9215
413d3aa8
DN
92162009-04-17 Diego Novillo <dnovillo@google.com>
9217
47f402d1
UB
9218 * tree-pretty-print.c (dump_generic_node): Add break after
9219 TREE_BINFO handler. Handle COMPLEX_TYPE, REAL_TYPE and
9220 FIXED_POINT_TYPE. Handle NULL TREE_TYPEs. Handle METHOD_TYPE and
9221 FUNCTION_TYPE together. Call print_struct_decl when printing
9222 structures and TDF_SLIM is not given.
413d3aa8
DN
9223 (print_struct_decl): Fix logic for detecting recursion.
9224
5a691e98
RAE
92252009-04-17 Rafael Avila de Espindola <espindola@google.com>
9226
9227 PR 31567
9228 * gcc.c (create_at_file): New.
9229 (compile_input_file_p): New.
9230 (do_spec_1): Use @args files for %i. Use create_at_file for %o.
9231 * main.c (main): Update call to toplev_main.
9232 * toplev.c (toplev_main): Change signature. Call expandargv.
9233 * toplev.h (toplev_main): Change signature.
9234
9eacf7a6
EB
92352009-04-17 Eric Botcazou <ebotcazou@adacore.com>
9236
9237 * dwarf2out.c (field_byte_offset): Use the type size as the field size
9238 if the latter is not constant.
9239
58298177
DE
92402009-04-17 David Edelsohn <edelsohn@gnu.org>
9241
9242 * dbxout.c (xcoff_debug_hooks): Add set_name_debug_nothing.
9243
5b4c43d7
EB
92442009-04-17 Eric Botcazou <ebotcazou@adacore.com>
9245
9246 * dbxout.c (dbxout_block): Reinstate test on TREE_USED.
9247 * tree-ssa-live.c (remove_unused_scope_block_p): Update TREE_USED bit.
9248
b51605c4
RG
92492009-04-17 Richard Guenther <rguenther@suse.de>
9250
9251 * tree-ssa-structalias.c (get_constraint_for_component_ref):
9252 Handle component references view-converting an invariant address.
9253
9e3be889
AN
92542009-04-17 Adam Nemet <anemet@caviumnetworks.com>
9255
9256 * doc/tm.texi (TARGET_DEFAULT_TARGET_FLAGS,
9257 TARGET_MIN_ANCHOR_OFFSET, TARGET_MAX_ANCHOR_OFFSET,
9258 TARGET_HAVE_SRODATA_SECTION, TARGET_HAVE_TLS,
9259 TARGET_UNWIND_TABLES_DEFAULT, TARGET_TERMINATE_DW2_EH_FRAME_INFO):
9260 Use @deftypevr rather than @deftypevar.
9261
7c3e9dc3
RG
92622009-04-17 Richard Guenther <rguenther@suse.de>
9263
47f402d1 9264 * tree-ssa-forwprop.c (get_prop_dest_stmt): Clean up tuplification.
7c3e9dc3
RG
9265 (get_prop_source_stmt): Likewise.
9266 (can_propagate_from): Likewise.
9267
aca600aa
AS
92682009-04-17 Andrew Stubbs <ams@codesourcery.com>
9269
9270 * configure.ac: Add new AC_SUBST for TM_ENDIAN_CONFIG,
9271 TM_MULTILIB_CONFIG and TM_MULTILIB_EXCEPTIONS_CONFIG.
9272 (--with-multilib-list): Add default value.
9273 * configure: Regenerate.
9274 * Makefile.in (TM_ENDIAN_CONFIG): Define.
9275 (TM_MULTILIB_CONFIG, TM_MULTILIB_EXCEPTIONS_CONFIG): Define.
9276 * config.gcc (sh-*-*): Switch to using TM_ENDIAN_CONFIG,
9277 TM_MULTILIB_CONFIG, and TM_MULTILIB_EXCEPTIONS_CONFIG.
9278 Don't add default cpu to multilib list unnecessarily, but do enable
9279 the relevant compiler option..
9280 Add support for --with-multilib-list=<blank> and
9281 --with-multilib-list=!<somelib> to supress unwanted multilibs.
9282 * config/sh/t-sh (DEFAULT_ENDIAN, OTHER_ENDIAN): New variables.
9283 (MULTILIB_ENDIAN, MULTILIB_CPUS): Delete variables.
9284 (MULTILIB_OPTIONS): Redefine using OTHER_ENDIAN and
9285 TM_MULTILIB_CONFIG.
9286 (MULTILIB_EXCEPTIONS): Add TM_MULTILIB_EXCEPTIONS_CONFIG.
9287 (MULTILIB_OSDIRNAMES): New variable.
9288 * config/sh/t-1e: Delete file.
9289 * config/sh/t-mlib-sh1: Delete file.
9290 * config/sh/t-mlib-sh2: Delete file.
9291 * config/sh/t-mlib-sh2a: Delete file.
9292 * config/sh/t-mlib-sh2a-nofpu: Delete file.
9293 * config/sh/t-mlib-sh2a-single: Delete file.
9294 * config/sh/t-mlib-sh2a-single-only: Delete file.
9295 * config/sh/t-mlib-sh2e: Delete file.
9296 * config/sh/t-mlib-sh3e: Delete file.
9297 * config/sh/t-mlib-sh4: Delete file.
9298 * config/sh/t-mlib-sh4-nofpu: Delete file.
9299 * config/sh/t-mlib-sh4-single: Delete file.
9300 * config/sh/t-mlib-sh4-single-only: Delete file.
9301 * config/sh/t-mlib-sh4a: Delete file.
9302 * config/sh/t-mlib-sh4a-nofpu: Delete file.
9303 * config/sh/t-mlib-sh4a-single: Delete file.
9304 * config/sh/t-mlib-sh4a-single-only: Delete file.
9305 * config/sh/t-mlib-sh4al: Delete file.
9306 * config/sh/t-mlib-sh5-32media: Delete file.
9307 * config/sh/t-mlib-sh5-32media-nofpu: Delete file.
9308 * config/sh/t-mlib-sh5-64media: Delete file.
9309 * config/sh/t-mlib-sh5-64media-nofpu: Delete file.
9310 * config/sh/t-mlib-sh5-compact: Delete file.
9311 * config/sh/t-mlib-sh5-compact-nofpu: Delete file.
9312 * config/sh/t-linux: Don't override MULTILIB_EXCEPTIONS.
9313 * doc/install.texi (Options specification): Add
9314 --with-multilib-list and --with-endian.
9315
cf8aba7f
RAE
93162009-04-17 Rafael Avila de Espindola <espindola@google.com>
9317
9318 * Makefile.in (REVISION_s): Always include quotes. Change ifdef to use
9319 REVISION_c.
9320 (OBJS-common): Add plugin-version.o.
9321 (plugin-version.o): New.
9322 * gcc-plugin.h (plugin_gcc_version): New.
9323 (plugin_default_version_check): New.
9324 (plugin_init_func, plugin_init): Add version argument.
9325 * plugin-version.c: New.
9326 * plugin.c (str_plugin_gcc_version_name): New.
9327 (try_init_one_plugin): Read plugin_gcc_version from the plugin and
9328 pass it to the init function.
9329 (plugin_default_version_check): New.
9330
61e20b90
RG
93312009-04-17 Richard Guenther <rguenther@suse.de>
9332
9333 * tree-ssa-alias.c (refs_may_alias_p_1): Do not use TBAA
9334 for decl-vs-decl disambiguation.
9335
90c6fd8a
AK
93362009-04-17 Andreas Krebbel <krebbel1@de.ibm.com>
9337
9338 * config/s390/s390.h (s390_tune_attr): New macro definition.
9339 * config/s390/s390.md (cpu attribute): Map to s390_tune_attr.
9340
9fe9fe04
RG
93412009-04-17 Richard Guenther <rguenther@suse.de>
9342
9343 * tree-ssa-ccp.c (struct fold_stmt_r_data): Remove.
9344 (fold_stmt_r): Likewise.
9345 (maybe_fold_reference): New function.
9346 (fold_gimple_assign): Handle cases fold_stmt_r did.
9347 (fold_stmt): Do not use fold_stmt_r.
9348 (fold_stmt_inplace): Likewise.
9349
7e673273
RG
93502009-04-17 Richard Guenther <rguenther@suse.de>
9351
9352 * tree-ssa-dom.c (gimple_assign_unary_useless_conversion_p): Remove.
9353 (record_equivalences_from_stmt): Remove useless checks and
9354 simplifications.
9355 * tree-ssa-pre.c (eliminate): Avoid converting a constant if
9356 the type is already suitable.
9357
fabf2749
PB
93582009-04-17 Paolo Bonzini <bonzini@gnu.org>
9359
9360 * config/sh/sh.h (FUNCTION_VALUE): Fix call to sh_promote_prototypes.
9361
68f7b061
UB
93622009-04-17 Uros Bizjak <ubizjak@gmail.com>
9363
9364 * config/arm/sfp-machine.h (__gcc_CMPtype): New typedef.
9365 (CMPtype): Define as __gcc_CMPtype.
9366
532bfb0a
AJ
93672009-04-17 Aurelien Jarno <aurelien@aurel32.net>
9368
9369 * config.gcc: Add soft-fp/t-softfp and i386/t-linux to tmake_file
9370 for i[34567]86-*-kfreebsd*-gnu*, x86_64-*-kfreebsd*-gnu*.
9371
e3ac77ff
RG
93722009-04-17 Richard Guenther <rguenther@suse.de>
9373
9374 PR tree-optimization/39746
9375 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Remove
9376 special-casing for builtins and static variable use/def.
9377 (call_may_clobber_ref_p_1): Likewise.
9378
7072a650
ILT
93792009-04-16 Ian Lance Taylor <iant@google.com>
9380
9381 * df.h: Include "timevar.h".
9382 (struct df_problem): Change tv_id field to timevar_id_t.
9383 * tree-pass.h: Include "timevar.h".
9384 (struct opt_pass): Change tv_id field to timevar_id_t.
9385 * timevar.h (timevar_id_t): Define TV_NONE.
9386 * passes.c (execute_one_ipa_transform_pass): Check for tv_id !=
9387 TV_NONE rather than tv_id != 0.
9388 (execute_one_pass): Likewise.
9389 * Makefile.in (DF_H): Add $(TIMEVAR_H).
9390 (TREE_PASS_H): Define. Change all instances of tree-pass.h in
9391 dependencies to $(TREE_PASS_H).
9392 * bt-load.c (pass_branch_target_load_optimize1): Set tv_id field
9393 to TV_NONE.
9394 (pass_branch_target_load_optimize2): Likewise.
9395 * cfglayout.c (pass_into_cfg_layout_mode): Likewise.
9396 (pass_outof_cfg_layout_mode): Likewise.
9397 * cgraphbuild.c (pass_remove_cgraph_callee_edges): Likewise.
9398 (pass_rebuild_cgraph_edges): Likewise.
9399 (pass_remove_cgraph_callee_edges): Likewise.
9400 * df-core.c (pass_df_initialize_opt): Likewise.
9401 (pass_df_initialize_no_opt): Likewise.
9402 (pass_df_finish): Likewise.
9403 * emit-rtl.c (pass_unshare_all_rtl): Likewise.
9404 * except.c (pass_set_nothrow_function_flags): Likewise.
9405 (pass_convert_to_eh_region_ranges): Likewise.
9406 * final.c (pass_compute_alignments): Likewise.
9407 * function.c (pass_instantiate_virtual_regs): Likewise.
9408 (pass_init_function): Likewise.
9409 (pass_leaf_regs): Likewise.
9410 (pass_match_asm_constraints): Likewise.
9411 * gimple-low.c (pass_lower_cf): Likewise.
9412 (pass_mark_used_blocks): Likewise.
9413 * init-regs.c (pass_initialize_regs): Likewise.
9414 * integrate.c (pass_initial_value_sets): Likewise.
9415 * ira.c (pass_ira): Likewise.
9416 * jump.c (pass_cleanup_barriers): Likewise.
9417 * omp-low.c (pass_expand_omp): Likewise.
9418 (pass_lower_omp): Likewise.
9419 * matrix-reorg.c (pass_ipa_matrix_reorg): Likewise.
9420 * recog.c (pass_split_all_insns): Likewise.
9421 (pass_split_after_reload): Likewise.
9422 (pass_split_before_regstack): Likewise.
9423 (pass_split_before_sched2): Likewise.
9424 (pass_split_for_shorten_branches): Likewise.
9425 * reginfo.c (pass_reginfo_init): Likewise.
9426 (pass_subregs_of_mode_init): Likewise.
9427 (pass_subregs_of_mode_finish): Likewise.
9428 * passes.c (pass_postreload): Likewise.
9429 * stack-ptr-mod.c (pass_stack_ptr_mod): Likewise.
9430 * tree-cfg.c (pass_remove_useless_stmts): Likewise.
9431 (pass_warn_function_return): Likewise.
9432 (pass_warn_function_noreturn): Likewise.
9433 * tree-complex.c (pass_lower_complex): Likewise.
9434 (pass_lower_complex_O0): Likewise.
9435 * tree-if-conv.c (pass_if_conversion): Likewise.
9436 * tree-into-ssa.c (pass_build_ssa): Likewise.
9437 * tree-mudflap.c (pass_mudflap_1): Likewise.
9438 (pass_mudflap_2): Likewise.
9439 * tree-nomudflap.c (pass_mudflap_1): Likewise.
9440 (pass_mudflap_2): Likewise.
9441 * tree-nrv.c (pass_return_slot): Likewise.
9442 * tree-object-size.c (pass_object_sizes): Likewise.
9443 * tree-optimize.c (pass_all_optimizations): Likewise.
9444 (pass_early_local_passes): Likewise.
9445 (pass_all_early_optimizations): Likewise.
9446 (pass_cleanup_cfg): Likewise.
9447 (pass_cleanup_cfg_post_optimizing): Likewise.
9448 (pass_free_datastructures): Likewise.
9449 (pass_free_cfg_annotations): Likewise.
9450 (pass_fixup_cfg): Likewise.
9451 (pass_init_datastructures): Likewise.
9452 * tree-ssa.c (pass_early_warn_uninitialized): Likewise.
9453 (pass_late_warn_uninitialized): Likewise.
9454 (pass_update_address_taken): Likewise.
9455 * tree-ssa-ccp.c (pass_fold_builtins): Likewise.
9456 * tree-ssa-math-opts.c (pass_cse_reciprocals): Likewise.
9457 (pass_cse_sincos): Likewise.
9458 (pass_convert_to_rsqrt): Likewise.
9459 * tree-ssa-structalias.c (pass_build_alias): Likewise.
9460 * tree-stdarg.c (pass_stdarg): Likewise.
9461 * tree-tailcall.c (pass_tail_recursion): Likewise.
9462 (pass_tail_calls): Likewise.
9463 * tree-vect-generic.c (pass_lower_vector): Likewise.
9464 (pass_lower_vector_ssa): Likewise.
9465 * tree-vectorizer.c (pass_ipa_increase_alignment): Likewise.
9466
0051ef59
JM
94672009-04-16 Joseph Myers <joseph@codesourcery.com>
9468
9469 * config/mips/mips.c (mips_rtx_cost_data): Use SOFT_FP_COSTS in
9470 XLR entry.
9471 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC, MIPS_ARCH_FLOAT_SPEC):
9472 Handle -march=xlr.
9473 * config/mips/xlr.md (ir_xlr_alu): Also accept insn types move,
9474 logical and signext.
9475
b3f8558a
KK
94762009-04-16 Kaz Kojima <kkojima@gcc.gnu.org>
9477
9478 PR target/39767
9479 * config/sh/predicates.md (arith_operand): Check if the operand
9480 of TRUNCATE is a REG.
9481
f57597d9
KH
94822009-04-16 Kazu Hirata <kazu@codesourcery.com>
9483
9484 * cfgrtl.c (delete_insn_chain_and_edges): Remove.
9485 * rtl.h: Remove the prototype for delete_insn_chain_and_edges.
9486
b172d063
KH
94872009-04-16 Kazu Hirata <kazu@codesourcery.com>
9488
9489 * tree-iterator.c (tsi_split_statement_list_after,
9490 tsi_split_statement_list_before): Remove.
9491 * tree-iterator.h: Remove the prototypes for
532bfb0a 9492 tsi_split_statement_list_after and tsi_split_statement_list_before.
b172d063 9493
78fe4f1f
KH
94942009-04-16 Kazu Hirata <kazu@codesourcery.com>
9495
9496 * tree-ssa-propagate.c (stmt_makes_single_load): Remove.
9497 * tree-ssa-propagate.h: Remove the prototype for
9498 stmt_makes_single_load.
9499
43dd3201
KH
95002009-04-16 Kazu Hirata <kazu@codesourcery.com>
9501
9502 * emit-rtl.c (set_mem_attrs_from_reg): Remove.
9503 * rtl.h: Remove the prototype for set_mem_attrs_from_reg.
9504
4252a4aa
KH
95052009-04-16 Kazu Hirata <kazu@codesourcery.com>
9506
9507 * tree-iterator.c (EXPR_LAST_BODY): Remove.
9508
bfb69968
KH
95092009-04-16 Kazu Hirata <kazu@codesourcery.com>
9510
9511 * except.c (eh_region_outer_p): Remove.
9512 * except.h: Remove the prototype for eh_region_outer_p.
9513
c7db7fa5
KH
95142009-04-16 Kazu Hirata <kazu@codesourcery.com>
9515
9516 * function.c (current_function_assembler_name): Remove.
9517 * function.h: Remove the prototype for
9518 current_function_assembler_name.
9519
efc0b2bd
ILT
95202009-04-16 Ian Lance Taylor <iant@google.com>
9521
532bfb0a 9522 * rtlanal.c (alloc_reg_note): New function, broken out of add_reg_note.
efc0b2bd
ILT
9523 (add_reg_note): Call alloc_reg_note.
9524 * rtl.h (alloc_reg_note): Declare.
9525 * combine.c (try_combine): Use alloc_reg_note.
9526 (recog_for_combine, move_deaths): Likewise.
9527 (distribute_notes): Use alloc_reg_note and add_reg_note.
9528 * haifa-sched.c (sched_create_recovery_edges): Use add_reg_note.
9529 * combine-stack-adj.c (adjust_frame_related_expr): Likewise.
9530 * reload1.c (eliminate_regs_1): Use alloc_reg_note.
9531
6080348f
VM
95322009-04-16 Vladimir Makarov <vmakarov@redhat.com>
9533
9534 PR rtl-optimization/39762
9535 * ira-int.h (ira_register_move_cost, ira_may_move_in_cost,
9536 ira_may_move_out_cost): Add comments about way of their usage.
532bfb0a 9537 (ira_get_register_move_cost, ira_get_may_move_cost): New functions.
2ba9daa7 9538
6080348f
VM
9539 * ira-conflicts.c (process_regs_for_copy): Use function
9540 ira_get_register_move_cost instead of global
9541 ira_register_move_cost.
9542
9543 * ira-color.c (update_copy_costs, calculate_allocno_spill_cost,
9544 color_pass, move_spill_restore, update_curr_costs): Ditto.
9545
9546 * ira-lives.c (process_single_reg_class_operands): Ditto.
9547
9548 * ira-emit.c (emit_move_list): Ditto.
9549
9550 * ira-costs.c (copy_cost): Don't call ira_init_register_move_cost.
9551 (record_reg_classes): Ditto. Use functions
9552 ira_get_register_move_cost and ira_get_may_move_cost instead of
9553 global vars ira_register_move_cost, ira_may_move_out_cost and
9554 ira_may_move_in_cost.
9555 (record_address_regs): Don't call ira_init_register_move_cost.
9556 Use function ira_get_may_move_cost instead of global
9557 ira_may_move_in_cost.
9558 (process_bb_node_for_hard_reg_moves): Use function
532bfb0a 9559 ira_get_register_move_cost instead of global ira_register_move_cost.
6080348f 9560 (ira_costs): Don't call ira_init_register_move_cost.
2ba9daa7 9561
646bea10
RG
95622009-04-16 Richard Guenther <rguenther@suse.de>
9563
9564 * tree-cfg.c (verify_gimple_assign_binary):
9565 Allow POINTER_PLUS_EXPR-like PLUS_EXPR for vectors.
9566 * ipa-struct-reorg.c (gen_size): Fold the built expressions.
9567 (create_general_new_stmt): Note that this function is broken.
9568
02e819ff
RAE
95692009-04-16 Rafael Avila de Espindola <espindola@google.com>
9570
9571 * common.opt (fhelp): Add Var(help_flag).
9572 * gcc-plugin.h (plugin_info): Add help.
9573 * plugin.c (plugin_name_args): Add help.
9574 (register_plugin_info): Set plugin->help.
9575 (print_help_one_plugin): New.
9576 (print_plugins_help): New.
9577 * plugin.h (print_plugins_help): New.
9578 * toplev.c (toplev_main): Call print_plugins_help if needed.
9579
ccacdf06
RG
95802009-04-16 Richard Guenther <rguenther@suse.de>
9581
9582 * gimple.c (gimple_copy): Do not clear addresses_taken bitmap.
9583 (gimple_ior_addresses_taken_1): New function.
9584 (gimple_ior_addresses_taken): Likewise.
9585 * gimple.h (struct gimple_statement_with_ops_base): Remove
9586 addresses_taken member.
9587 (gimple_ior_addresses_taken): Declare.
9588 (gimple_addresses_taken, gimple_addresses_taken_ptr,
9589 gimple_set_addresses_taken): Remove.
9590 * ipa-reference.c (mark_address): New function.
9591 (scan_stmt_for_static_refs): Use it for marking addresses taken.
9592 * tree-ssa-operands.c (add_to_addressable_set): Rename to ...
9593 (mark_address_taken): ... this. Just set TREE_ADDRESSABLE.
9594 (gimple_add_to_addresses_taken): Remove.
9595 (get_tmr_operands): Call mark_address_taken.
9596 (get_asm_expr_operands): Likewise.
9597 (get_expr_operands): Likewise.
9598 (build_ssa_operands): Do not clear the addresses_taken bitmap.
9599 (free_stmt_operands): Do not free it.
9600 * tree-ssa.c (delete_tree_ssa): Likewise.
9601 (execute_update_addresses_taken): Use gimple_ior_addresses_taken.
9602
346ef3fa
RG
96032009-04-16 Richard Guenther <rguenther@suse.de>
9604
9605 * gimple.h (walk_stmt_load_store_addr_ops): Declare.
9606 (walk_stmt_load_store_ops): Likewise.
9607 * gimple.c (get_base_loadstore): New function.
9608 (walk_stmt_load_store_addr_ops): Likewise.
9609 (walk_stmt_load_store_ops): Likewise.
9610 * ipa-pure-const.c (check_op): Simplify.
9611 (check_load, check_store): New functions.
9612 (check_stmt): Use walk_stmt_load_store_ops.
9613 * ipa-reference.c (mark_load): Adjust signature.
9614 (mark_store): Likewise.
9615 (scan_stmt_for_static_refs): Use walk_stmt_load_store_addr_ops.
9616
44e9f006
RAE
96172009-04-16 Rafael Avila de Espindola <espindola@google.com>
9618
9619 * gcc-plugin.h (plugin_event): Add PLUGIN_INFO.
9620 (plugin_info): New.
9621 * opts.c (common_handle_option): Don't call print_version.
9622 * plugin.c (plugin_name_args): Add version.
9623 (register_plugin_info): New.
9624 (register_callback): Handle PLUGIN_INFO.
9625 (try_init_one_plugin): New.
9626 (init_one_plugin): Use try_init_one_plugin. Only free plugin_name_args
9627 if failed to init.
9628 (finalize_one_plugin): New.
9629 (finalize_plugins): New.
9630 (print_one_plugin): New.
9631 (print_plugins_versions): New.
9632 * plugin.h (print_plugins_versions): New.
9633 (finalize_plugins): New.
9634 * toplev.c (compile_file): Don't call initialize_plugins.
9635 (print_version): Call print_plugins_versions.
9636 (toplev_main): Call initialize_plugins. Print version if needed.
9637 Call finalize_plugins.
9638
41fd0f9b
RAE
96392009-04-16 Rafael Avila de Espindola <espindola@google.com>
9640
9641 * common.opt (fversion): New.
9642 * gcc.c (print_version): New.
9643 (process_command): Don't print the version. Just set print_version.
9644 (main): Print version. Call subprocesses if print_version and
9645 verbose_flag are set.
9646 * opts.c (common_handle_option): Handle OPT_fversion.
9647
550918ca 96482009-04-16 Richard Guenther <rguenther@suse.de>
532bfb0a 9649 Ira Rosen <irar@il.ibm.com>
550918ca
RG
9650
9651 PR tree-optimization/39698
9652 * tree-vect-loop.c (get_initial_def_for_reduction): Use the
9653 type of the reduction variable. Only generate the def if
9654 it is needed.
9655
9656 * omp-low.c (expand_omp_for_generic): When converting to a pointer
9657 make sure to first convert to an integer of the same precision.
9658 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Retain
9659 the type of the evolution correctly in computing the new
9660 induction variable base.
9661
54634841
RG
96622009-04-16 Richard Guenther <rguenther@suse.de>
9663
9664 PR middle-end/39625
9665 * tree-cfg.c (make_blocks): Split statements with to-be
9666 abnormal SSA names on the lhs.
9667
b6fc2cdb
PB
96682009-04-16 Paolo Bonzini <bonzini@gnu.org>
9669
9670 * c-common.c (vector_targets_convertible_p, vector_types_convertible_p):
9671 Use TYPE_VECTOR_OPAQUE instead of targetm.vector_opaque_p.
9672 * c-typeck.c (really_start_incremental_init): Likewise.
9673 * target-def.h (TARGET_VECTOR_OPAQUE_P): Remove.
9674 (TARGET_INITIALIZER): Remove it.
9675 * target.h (struct target): Remove vector_opaque_p.
9676 * tree.c (build_opaque_vector_type): New.
9677 * tree.h (TYPE_VECTOR_OPAQUE): New.
9678 (build_opaque_vector_type): Declare.
9679 * doc/tm.texi (TARGET_VECTOR_OPAQUE_P): Remove.
9680 * config/rs6000/rs6000.c (build_opaque_vector_type,
9681 rs6000_is_vector_type, TARGET_VECTOR_OPAQUE_P): Remove.
9682 (rs6000_init_builtins): Use build_opaque_vector_type for
9683 opaque_V4SI_type_node.
9684
a417cdd9
CM
96852009-04-15 Catherine Moore <clm@codesourcery.com>
9686
532bfb0a
AJ
9687 * debug.h (set_name): Declare.
9688 * dwarf2out.c (dwarf2out_set_name): Declare.
9689 (dwarf2_debug_hooks): Add set_name.
9690 (find_AT_string): New.
9691 (add_AT_string): Call find_AT_string.
9692 (dwarf2out_set_name): New.
9693 * cp/decl.c (grokdeclarator): Call set_name.
9694 * vmsdbgout.c (vmsdbg_debug_hooks): Add set_name_debug_nothing.
9695 * debug.c (do_nothing_debug_hooks): Likewise.
9696 * dbxout.c (dbx_debug_hooks): Likewise.
9697 * sdbout.c (sdb_debug_hooks): Likewise.
a417cdd9 9698
60839f5d 96992009-04-15 Michael Eager <eager@eagercon.com>
2c5cac98 9700
532bfb0a
AJ
9701 * config/rs6000/rs6000.c (rs6000_function_value): Set function return
9702 reg for single-precision FPU.
9703 * config/rs6000/rs6000.md (movsi_internal1): Only for
9704 !TARGET_SINGLE_FPU.
9705 (movsi_internal1_single): New. Add pattern to move SI values to/from
2c5cac98
ME
9706 single-precision FP regs.
9707
ada39f0b
RG
97082009-04-15 Richard Guenther <rguenther@suse.de>
9709
9710 * omp-low.c (lower_rec_input_clauses): Build correct address
9711 expressions.
9712 (expand_omp_for_generic): Fix multiplication type.
532bfb0a 9713 * tree-loop-distribution.c (build_size_arg): Build a size_t argument.
ada39f0b
RG
9714 (generate_memset_zero): Fix types.
9715 * tree-profile.c (prepare_instrumented_value): Correctly
9716 widen a pointer.
9717
6866c6e8
ILT
97182009-04-15 Ian Lance Taylor <iant@google.com>
9719
9720 * c.opt (Wenum-compare): Enable for C and Objc. Initialize to -1.
9721 * c-opts.c (c_common_handle_option): For C, set warn_enum_compare
9722 for -Wall and for -Wc++-compat.
9723 (c_common_post_options): For C++, set warn_enum_compare if not
9724 already set.
9725 * c-tree.h (struct c_expr): Add field original_type.
9726 (build_external_ref): Update declaration.
9727 * c-parser.c (c_parser_braced_init): Set original_type.
9728 (c_parser_initelt): Likewise.
9729 (c_parser_expr_no_commas): Likewise.
9730 (c_parser_conditional_expression): Likewise.
9731 (c_parser_cast_expression): Likewise.
9732 (c_parser_unary_expression): Likewise. Pull setting of
9733 original_code to top of function.
9734 (c_parser_sizeof_expression): Set original_type.
9735 (c_parser_alignof_expression): Likewise.
9736 (c_parser_postfix_expression): Likewise. Pull setting of
9737 original_code to top of function.
532bfb0a 9738 (c_parser_postfix_expression_after_paren_type): Set original_type.
6866c6e8
ILT
9739 (c_parser_postfix_expression_after_primary): Likewise.
9740 (c_parser_expression): Likewise.
9741 * c-typeck.c (build_external_ref): Add type parameter. Change all
9742 callers.
9743 (c_expr_sizeof_expr): Set original_type field.
9744 (parser_build_unary_op): Likewise.
9745 (parser_build_binary_op): Likewise. Optionally warn about
9746 comparisons of enums of different types.
9747 (digest_init): Set original_type field.
9748 (really_start_incremental_init): Likewise.
9749 (push_init_level, pop_init_level): Likewise.
9750 * doc/invoke.texi (Warning Options): -Wenum-compare now
9751 supported in C.
9752
f116fecf
RG
97532009-04-15 Richard Guenther <rguenther@suse.de>
9754
9755 * tree-ssa-pre.c (eliminate): When replacing a PHI node carry
9756 out a necessary conversion.
9757 * tree-ssa-sccvn.c (run_scc_vn): Also assign value-ids to
9758 names we didn't value number.
9759 * tree-mudflap.c (mf_build_check_statement_for): Use correct types.
9760
25e20805
RG
97612009-04-15 Richard Guenther <rguenther@suse.de>
9762
9763 PR tree-optimization/39764
9764 * tree-ssa-ccp.c (get_value): Canonicalize value with
9765 canonicalize_float_value.
9766
90cc3676
JH
97672009-04-15 Jan Hubicka <jh@suse.cz>
9768
9769 * builtins.def (va_start, va_end, va_copy): Fix my previous commit.
9770 Wrong version of patch.
9771
6d14c006
JH
97722009-04-15 Jan Hubicka <jh@suse.cz>
9773
9774 * builtins.def (va_start, va_end, va_copy): Mark nothrow.
9775
5afaa917
NS
97762009-04-15 Nathan Sidwell <nathan@codesourcery.com>
9777
9778 * config/rs6000/rs6000.c (rs6000_init_builtins): Set TYPE_NAME of
9779 our distinct integral and vector types.
9780
3b482fca
RAE
97812009-04-15 Rafael Avila de Espindola <espindola@google.com>
9782
9783 * class.c (build_vtbl_ref_1): Remove call to assemble_external.
9784 * init.c (build_vtbl_address): Remove call to assemble_external.
9785
6cd1d2e2
DJ
97862009-04-14 Daniel Jacobowitz <dan@codesourcery.com>
9787
9788 * config/rs6000/rs6000.c (rs6000_dwarf_register_span): Fix debug
9789 output for other floating point modes.
9790
dab71827
DN
97912009-04-14 Diego Novillo <dnovillo@google.com>
9792
9793 * diagnostic.c (diagnostic_report_diagnostic): Do not
9794 warn about loaded plugins for DK_ERROR and DK_WARNING.
9795 * c-decl.c (declspecs_add_type): Move call to
9796 invoke_plugin_callbacks ...
9797 * c-parser.c (c_parser_declspecs): ... here.
9798 * plugin.c (dump_active_plugins): Tidy output.
9799
68a607d8
DN
98002009-04-14 Diego Novillo <dnovillo@google.com>
9801 Le-Chun Wu <lcwu@google.com>
9802
9803 * configure.ac: Add --enable-plugin support.
9804 Define ENABLE_PLUGIN and PLUGINLIBS when specified.
9805 * Makefile.in (PLUGIN_H): Define.
9806 Export ENABLE_PLUGIN and GMPINC to site.exp.
9807 Add PLUGINLIBS to link command.
9808 Add/modify dependencies for plugin.o and files including plugin.h.
9809 (plugin.o): New.
9810 * config.in: Regenerate.
2ba9daa7 9811
68a607d8
DN
9812 * opts.c (common_handle_option): Handle OPT_fplugin_ and
9813 OPT_fplugin_arg_.
9814
98152009-04-14 Le-Chun Wu <lcwu@google.com>
9816
9817 * tree-pass.h (register_one_dump_file): Add a prototype for
9818 register_one_dump_file.
9819 * toplev.c (compile_file): Call initialize_plugins.
9820 (do_compile): Call invoke_plugin_callbacks.
9821 (toplev_main): Call invoke_plugin_callbacks.
9822 * common.opt: Add -fplugin= and -fplugin-arg-.
9823 * gcc-plugin.h: New public header file for plugins to include.
9824 * plugin.c: New source file.
9825 * plugin.h: New internal header file.
9826 * passes.c (register_one_dump_file): Make it external.
2ba9daa7 9827
68a607d8
DN
9828 * c-parser.c (c_parser_declspecs): Call invoke_plugin_callbacks.
9829
98302009-04-14 Diego Novillo <dnovillo@google.com>
9831
9832 * doc/plugins.texi: New.
9833 * doc/gccint.texi: Add reference to Plugins chapter.
9834 * doc/invoke.texi: Document -fplugin and -fplugin-arg
9835 * diagnostic.c (diagnostic_report_diagnostic): Warn about
9836 loaded plugins, if any.
9837 * timevar.def (TV_PLUGIN_INIT): Define.
9838 (TV_PLUGIN_RUN): Define.
9839 * plugin.c: Include timevar.h
9840 (plugins_active_p): New.
9841 (dump_active_plugins): New.
9842 (debug_active_plugins): New.
9843
50617257
JM
98442009-04-14 Joseph Myers <joseph@codesourcery.com>
9845
9846 * config/sol2.h (LINK_ARCH32_SPEC_BASE): Use %R with absolute
9847 library paths.
9848 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Likewise.
9849
b32f6fff
KH
98502009-04-14 Kazu Hirata <kazu@codesourcery.com>
9851
9852 * config/arm/arm.c (arm_rtx_costs_1): Treat a minus with a shift
9853 the same as a minus without a shift.
9854
85d04fa2
NC
98552009-04-14 Nick Clifton <nickc@redhat.com>
9856
9857 * config/stormy16/stormy16.md (ineqbranch_1): Do not assume that
9858 comparisons with small integers will always produce a short
9859 branch.
9860
e495a0c8
RAE
98612009-04-14 Rafael Avila de Espindola <espindola@google.com>
9862
9863 Merge:
e495a0c8
RAE
9864 2008-12-19 Diego Novillo <dnovillo@google.com>
9865
532bfb0a 9866 * cgraph.c (dump_cgraph_node): Show memory address of NODE.
e495a0c8 9867
ad41bd84 98682009-04-14 Richard Guenther <rguenther@suse.de>
587aa063
RG
9869
9870 * tree-cfg.c (verify_gimple_assign_unary): Adjust vector code
9871 verification.
9872 (verify_gimple_assign_binary): Likewise. Handle shifts and
9873 rotates correctly.
9874 (verify_gimple_phi): Print the mismatched argument position.
9875 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
9876 Fix types.
9877 (vect_update_init_of_dr): Likewise.
9878 * matrix-reorg.c (transform_access_sites): Do what the
9879 comment suggests.
9880 * omp-low.c (expand_omp_atomic_pipeline): Use the correct types.
9881
60839f5d 98822009-04-13 Michael Eager <eager@eagercon.com>
9eca1774
ME
9883
9884 * config/rs6000/rs6000-c.c: generate defines if rs6000_xilinx_fpu:
9885 _XFPU, _XFPU_SP_LITE, _XFPU_SP_FULL, _XFPU_DP_LITE, _XFPU_DP_FULL
9886 * config/rs6000/xilinx.h: New. Spec for powerpc-xilinx-eabi
2ba9daa7 9887 * config.gcc (powerpc-xilinx-eabi): add xilinx.h to tm_file,
9eca1774
ME
9888 remove duplicate config
9889
b0e2d008
DR
98902009-04-13 Dwarakanath Rajagopal <dwarak.rajagopal@amd.com>
9891
9892 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Dump
9893 file_name:line_number type locator of the call site.
2ba9daa7 9894
1244a8b7
VM
98952009-04-13 Vladimir Makarov <vmakarov@redhat.com>
9896
9897 * genautomata.c: Put blank after comma.
9898 (automaton_decls): New.
9899 (struct unit_usage): Add comments to member next.
9900 (store_alt_unit_usage): Keep the list ordered.
9901 (unit_present_on_list_p, equal_alternatives_p): New.
9902 (check_regexp_units_distribution): Check units distribution
9903 correctness correctly.
9904 (main): Don't write automata if error is found. Return correct
9905 exit code.
2ba9daa7 9906
1244a8b7
VM
9907 * config/m68k/cf.md (cfv4_ds): Remove.
9908 (cfv4_pOEP1, cfv4_sOEP1, cfv4_pOEP2,cfv4_sOEP2, cfv4_pOEP3,
9909 cfv4_sOEP3): Assign to cfv4_oep instead of cfv4_ds.
9910
9911 * config/rs6000/power4.md (lsuq_power4, iq_power4, fpq_power4,
9912 power4-load-ext, power4-store, power4-store-update,
9913 power4-fpstore, power4-fpstore-update, power4-two, power4-three,
9914 power4-insert, power4-compare, power4-lmul-cmp, power4-imul-cmp,
9915 power4-lmul, , power4-imul, power4-imul3, power4-sdiv,
9916 power4-sqrt, power4-isync): Modify reservation to make correct
9917 unit distribution to automata.
9918
9919 * config/rs6000/power5.md (iq_power5, fpq_power5, power5-store,
9920 power5-store-update, power5-two, power5-three, power5-lmul,
9921 power5-imul, power5-imul3, power5-sdiv, power5-sqrt): Ditto.
2ba9daa7 9922
f7dd1864
AN
99232009-04-13 Adam Nemet <anemet@caviumnetworks.com>
9924
9925 * except.c (pass_set_nothrow_function_flags): Set name and add
9926 TODO_dump_func.
9927 (set_nothrow_function_flags): Mention in the dump file when
9928 changing a function to nothrow.
9929
59a1171f
OS
99302009-04-13 Ozkan Sezer <sezeroz@gmail.com>
9931
9932 PR/39066
9933 * gbl-ctors.h (DO_GLOBAL_CTORS_BODY): Use __SIZE_TYPE__
9934 instead of unsigned long.
9935
934c2060
RR
99362009-04-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9937
f7dd1864
AN
9938 * config/arm/arm.c (return_used_this_function): Remove.
9939 (arm_output_function_prologue): Remove use of
934c2060 9940 return_used_this_function.
f7dd1864 9941 (output_return_instruction): Replace use of
934c2060
RR
9942 return_used_this_function
9943 by cfun->machine->return_used_this_function.
f7dd1864
AN
9944 (arm_output_epilogue): Likewise.
9945 (arm_output_function_epilogue): Likewise.
9946 (thumb_unexpanded_epilogue): Likewise.
9947 * config/arm/arm.h (struct machine_function):
934c2060 9948 New member return_used_this_function.
f7dd1864 9949
ae5cc016
MM
99502009-04-12 Mark Mitchell <mark@codesourcery.com>
9951
9952 * doc/install.texi: Correct description of default directory for
9953 --with-gxx-include-dir.
9954
a0ce68df 99552009-04-12 Eric Botcazou <ebotcazou@adacore.com>
849d624b
EB
9956
9957 * fold-const.c (build_range_check): Properly deal with enumeral and
9958 boolean base types.
9959
3906a4a1
SB
99602009-04-12 Steven Bosscher <steven@gcc.gnu.org>
9961
9962 * doc/invoke.texi (max_gcse_passes): Remove documentation.
9963 * params.def (PARAM_MAX_GCSE_PASSES): Remove.
9964 * params.h (MAX_GCSE_PASSES): Remove.
9965 * gcse.c (gcse_main): Run CPROP1, PRE or HOIST, and CPROP2
9966 in sequence. Remove ability to run multiple passes.
9967 (bypass_jumps): Report run as third CPROP pass.
9968
efaadb93
AN
99692009-04-12 Adam Nemet <anemet@caviumnetworks.com>
9970
9971 PR middle-end/39651
9972 * except.c (can_throw_external): Look at each insn in a SEQUENCE
9973 when deciding whether the whole SEQUENCE can throw.
9974
4c48007b
UB
99752009-04-12 Uros Bizjak <ubizjak@gmail.com>
9976
9977 PR target/39740
9978 * config/alpha/predicates.md (local_symbolic_operand): Return 1 for
9979 offseted label references.
9980
b4104018
JH
99812009-04-11 Jan Hubicka <jh@suse.cz>
9982
9983 * tree-ssa-pre.c (eliminate): Fix call of update_stmt.
9984
32848948
RG
99852009-04-11 Richard Guenther <rguenther@suse.de>
9986
9987 PR middle-end/39732
9988 * tree-inline.c (declare_return_variable): Mark DECL_BY_REFERENCE
9989 return variables as TREE_ADDRESSABLE.
9990
8810712e
RG
99912009-04-11 Richard Guenther <rguenther@suse.de>
9992
9993 PR tree-optimization/39713
9994 * tree-ssa-sccvn.c (vn_get_expr_for): Make sure built
9995 reference trees have SSA_NAME operands.
9996
fa78c0c1
RG
99972009-04-11 Richard Guenther <rguenther@suse.de>
9998
9999 PR c/39712
10000 * c-gimplify.c (c_gimplify_expr): Adjust check for mismatched
10001 address expressions.
10002
4d722130
DK
100032009-04-11 Dave Korn <dave.korn.cygwin@gmail.com>
10004
10005 * config/i386/cygwin-stdint.h (INT_LEAST32_TYPE): Update to
10006 match changes in Cygwin 1.7
10007 (UINT_LEAST32_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE,
10008 UINT_FAST16_TYPE, UINT_FAST32_TYPE): Likewise.
10009
567a90f5
PB
100102009-04-10 Paolo Bonzini <bonzini@gnu.org>
10011
10012 PR tree-optimization/39701
10013 * doc/invoke.texi (Optimization Options): Document change in
10014 meaning and initialization of -fdelete-null-pointer-checks.
10015
1ad2f450
L
100162009-04-10 H.J. Lu <hongjiu.lu@intel.com>
10017
10018 PR middle-end/39701
10019 * common.opt (-fdelete-null-pointer-checks): Initialize to 1.
10020
10021 * opts.c (decode_options): Don't set flag_delete_null_pointer_checks
10022 here.
10023
10024 * doc/invoke.texi: Update -fdelete-null-pointer-checks.
10025
1afc5373
CF
100262009-04-10 Chao-ying Fu <fu@mips.com>
10027
10028 * doc/tm.texi (Instruction Output): Document
10029 TARGET_ASM_FINAL_POSTSCAN_INSN.
10030 * target.h (final_postscan_insn): New field in asm_out.
10031 * target-def.h (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
10032 (TARGET_ASM_OUT): Add TARGET_ASM_FINAL_POSTSCAN_INSN.
10033 * final.c (final_scan_insn): Call
10034 targetm.asm_out.final_postscan_insn after outputting
10035 an asm macro and a normal instruction.
10036
10037 * config/mips/mips.h (FINAL_PRESCAN_INSN): New define.
10038 * config/mips/mips-protos.h (mips_final_prescan_insn): Declare.
10039 * config/mips/mips.c (mips_at_reg_p): New for_each_rtx callback.
10040 (mips_final_prescan_insn, mips_final_postscan_insn): New functions.
10041 (TARGET_ASM_FINAL_POSTSCAN_INSN): New define.
10042
4d35e75c
PB
100432009-04-10 Paolo Bonzini <bonzini@gnu.org>
10044
10045 PR middle-end/39701
1ad2f450
L
10046 * fold-const.c (tree_single_nonzero_warnv_p): Pass non-static
10047 variables as non-NULL even with -fdelete-null-pointer-checks.
4d35e75c 10048
62c49b83
L
100492009-04-10 H.J. Lu <hongjiu.lu@intel.com>
10050
10051 * config/rs6000/darwin-vecsave.asm: Remove extra "*/".
10052
80558628
L
100532009-04-09 H.J. Lu <hongjiu.lu@intel.com>
10054
10055 PR target/39678
10056 * config/i386/i386.c (classify_argument): Handle SCmode with
10057 (bit_offset % 64) != 0.
10058
8c70d28b
SL
100592009-04-09 Sandra Loosemore <sandra@codesourcery.com>
10060
10061 * doc/invoke.texi (Optimize Options): Add cross-reference to
10062 -Q --help=optimizers examples.
10063
e1ff19bf
BE
100642009-04-10 Ben Elliston <bje@au.ibm.com>
10065
10066 PR target/36800
10067 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Do not set
10068 regalign for the reg == fpr and TDmode case.
10069
52daca75
DA
100702009-04-09 David Ayers <ayers@fsfe.org>
10071
10072 PR objc/29200
10073 * objc/objc-act.c (warn_with_method): Remove helper function.
10074 (check_duplicates): Call warning and inform directly.
10075 (really_start_method): Likewise.
10076
b45f0e58
PB
100772009-04-09 Paolo Bonzini <bonzini@gnu.org>
10078
10079 * expmed.c (expand_divmod): Always use a comparison for a division
10080 by a large unsigned integer.
10081
1ad2f450
L
10082 * fold-const.c (tree_single_nonzero_warnv_p): Always treat decls
10083 for things others than variables or functions as nonzero.
b45f0e58 10084
748086b7
JJ
100852009-04-09 Nick Clifton <nickc@redhat.com>
10086
10087 * unwind-compat.c: Change copyright header to refer to version
10088 3 of the GNU General Public License with version 3.1 of the
10089 GCC Runtime Library Exception and to point readers at the
7a715bba 10090 COPYING3 and COPYING3.RUNTIME files and the FSF's license web page.
748086b7
JJ
10091 * config/alpha/crtfastmath.c: Likewise.
10092 * config/alpha/linux-unwind.h: Likewise.
10093 * config/alpha/qrnnd.asm: Likewise.
10094 * config/alpha/vms-crt0-64.c: Likewise.
10095 * config/alpha/vms-crt0.c: Likewise.
10096 * config/alpha/vms-dwarf2.asm: Likewise.
10097 * config/alpha/vms-dwarf2eh.asm: Likewise.
10098 * config/alpha/vms-psxcrt0-64.c: Likewise.
10099 * config/alpha/vms-psxcrt0.c: Likewise.
10100 * config/alpha/vms_tramp.asm: Likewise.
10101 * config/arc/initfini.c: Likewise.
10102 * config/arc/lib1funcs.asm: Likewise.
10103 * config/arm/bpabi-v6m.S: Likewise.
10104 * config/arm/bpabi.S: Likewise.
10105 * config/arm/bpabi.c: Likewise.
10106 * config/arm/crti.asm: Likewise.
10107 * config/arm/crtn.asm: Likewise.
10108 * config/arm/ieee754-df.S: Likewise.
10109 * config/arm/ieee754-sf.S: Likewise.
10110 * config/arm/lib1funcs.asm: Likewise.
10111 * config/arm/libunwind.S: Likewise.
10112 * config/arm/linux-atomic.c: Likewise.
10113 * config/arm/mmintrin.h: Likewise.
10114 * config/arm/pr-support.c: Likewise.
10115 * config/arm/unaligned-funcs.c: Likewise.
10116 * config/arm/unwind-arm.c: Likewise.
10117 * config/arm/unwind-arm.h: Likewise.
10118 * config/avr/libgcc.S: Likewise.
10119 * config/bfin/crti.s: Likewise.
10120 * config/bfin/crtlibid.s: Likewise.
10121 * config/bfin/crtn.s: Likewise.
10122 * config/bfin/lib1funcs.asm: Likewise.
10123 * config/bfin/linux-unwind.h: Likewise.
10124 * config/cris/arit.c: Likewise.
10125 * config/cris/cris_abi_symbol.c: Likewise.
10126 * config/darwin-64.c: Likewise.
10127 * config/darwin-crt2.c: Likewise.
10128 * config/darwin-crt3.c: Likewise.
10129 * config/darwin.h: Likewise.
10130 * config/dbxelf.h: Likewise.
10131 * config/dfp-bit.c: Likewise.
10132 * config/dfp-bit.h: Likewise.
10133 * config/elfos.h: Likewise.
10134 * config/fixed-bit.c: Likewise.
10135 * config/fixed-bit.h: Likewise.
10136 * config/fp-bit.c: Likewise.
10137 * config/fp-bit.h: Likewise.
10138 * config/fr30/crti.asm: Likewise.
10139 * config/fr30/crtn.asm: Likewise.
10140 * config/fr30/lib1funcs.asm: Likewise.
10141 * config/freebsd-spec.h: Likewise.
10142 * config/frv/cmovd.c: Likewise.
10143 * config/frv/cmovh.c: Likewise.
10144 * config/frv/cmovw.c: Likewise.
10145 * config/frv/frvbegin.c: Likewise.
10146 * config/frv/frvend.c: Likewise.
10147 * config/frv/lib1funcs.asm: Likewise.
10148 * config/glibc-stdint.h: Likewise.
10149 * config/h8300/clzhi2.c: Likewise.
10150 * config/h8300/crti.asm: Likewise.
10151 * config/h8300/crtn.asm: Likewise.
10152 * config/h8300/ctzhi2.c: Likewise.
10153 * config/h8300/fixunssfsi.c: Likewise.
10154 * config/h8300/lib1funcs.asm: Likewise.
10155 * config/h8300/parityhi2.c: Likewise.
10156 * config/h8300/popcounthi2.c: Likewise.
10157 * config/i386/ammintrin.h: Likewise.
10158 * config/i386/att.h: Likewise.
10159 * config/i386/avxintrin.h: Likewise.
10160 * config/i386/biarch64.h: Likewise.
10161 * config/i386/bmmintrin.h: Likewise.
10162 * config/i386/cpuid.h: Likewise.
10163 * config/i386/cross-stdarg.h: Likewise.
10164 * config/i386/crtfastmath.c: Likewise.
10165 * config/i386/crtprec.c: Likewise.
10166 * config/i386/cygming-crtbegin.c: Likewise.
10167 * config/i386/cygming-crtend.c: Likewise.
10168 * config/i386/cygwin.asm: Likewise.
10169 * config/i386/emmintrin.h: Likewise.
10170 * config/i386/gmm_malloc.h: Likewise.
10171 * config/i386/gthr-win32.c: Likewise.
10172 * config/i386/i386.h: Likewise.
10173 * config/i386/immintrin.h: Likewise.
10174 * config/i386/linux-unwind.h: Likewise.
10175 * config/i386/linux64.h: Likewise.
10176 * config/i386/mm3dnow.h: Likewise.
10177 * config/i386/mmintrin-common.h: Likewise.
10178 * config/i386/mmintrin.h: Likewise.
10179 * config/i386/nmmintrin.h: Likewise.
10180 * config/i386/pmm_malloc.h: Likewise.
10181 * config/i386/pmmintrin.h: Likewise.
10182 * config/i386/smmintrin.h: Likewise.
10183 * config/i386/sol2-c1.asm: Likewise.
10184 * config/i386/sol2-ci.asm: Likewise.
10185 * config/i386/sol2-cn.asm: Likewise.
10186 * config/i386/sol2-gc1.asm: Likewise.
10187 * config/i386/tmmintrin.h: Likewise.
10188 * config/i386/unix.h: Likewise.
10189 * config/i386/w32-unwind.h: Likewise.
10190 * config/i386/wmmintrin.h: Likewise.
10191 * config/i386/x86-64.h: Likewise.
10192 * config/i386/x86intrin.h: Likewise.
10193 * config/i386/xmmintrin.h: Likewise.
10194 * config/ia64/crtbegin.asm: Likewise.
10195 * config/ia64/crtend.asm: Likewise.
10196 * config/ia64/crtfastmath.c: Likewise.
10197 * config/ia64/crti.asm: Likewise.
10198 * config/ia64/crtn.asm: Likewise.
10199 * config/ia64/fde-glibc.c: Likewise.
10200 * config/ia64/lib1funcs.asm: Likewise.
10201 * config/ia64/linux-unwind.h: Likewise.
10202 * config/ia64/quadlib.c: Likewise.
10203 * config/ia64/unwind-ia64.c: Likewise.
10204 * config/linux.h: Likewise.
10205 * config/m32c/m32c-lib1.S: Likewise.
10206 * config/m32c/m32c-lib2-trapv.c: Likewise.
10207 * config/m32c/m32c-lib2.c: Likewise.
10208 * config/m32r/initfini.c: Likewise.
10209 * config/m68hc11/larith.asm: Likewise.
10210 * config/m68hc11/m68hc11-crt0.S: Likewise.
10211 * config/m68k/cf.md: Likewise.
10212 * config/m68k/crti.s: Likewise.
10213 * config/m68k/crtn.s: Likewise.
10214 * config/m68k/lb1sf68.asm: Likewise.
10215 * config/m68k/linux-unwind.h: Likewise.
10216 * config/mcore/crti.asm: Likewise.
10217 * config/mcore/crtn.asm: Likewise.
10218 * config/mcore/lib1.asm: Likewise.
10219 * config/mips/linux-unwind.h: Likewise.
10220 * config/mips/loongson.h: Likewise.
10221 * config/mips/mips16.S: Likewise.
10222 * config/mmix/crti.asm: Likewise.
10223 * config/mmix/crtn.asm: Likewise.
10224 * config/pa/fptr.c: Likewise.
10225 * config/pa/hpux-unwind.h: Likewise.
10226 * config/pa/lib2funcs.asm: Likewise.
10227 * config/pa/linux-atomic.c: Likewise.
10228 * config/pa/linux-unwind.h: Likewise.
10229 * config/pa/milli64.S: Likewise.
10230 * config/pa/quadlib.c: Likewise.
10231 * config/pa/stublib.c: Likewise.
10232 * config/picochip/libgccExtras/adddi3.asm: Likewise.
10233 * config/picochip/libgccExtras/ashlsi3.asm: Likewise.
10234 * config/picochip/libgccExtras/ashlsi3.c: Likewise.
10235 * config/picochip/libgccExtras/ashrsi3.asm: Likewise.
10236 * config/picochip/libgccExtras/ashrsi3.c: Likewise.
10237 * config/picochip/libgccExtras/cmpsi2.asm: Likewise.
10238 * config/picochip/libgccExtras/divmod15.asm: Likewise.
10239 * config/picochip/libgccExtras/divmodhi4.asm: Likewise.
10240 * config/picochip/libgccExtras/divmodsi4.asm: Likewise.
10241 * config/picochip/libgccExtras/longjmp.asm: Likewise.
10242 * config/picochip/libgccExtras/lshrsi3.asm: Likewise.
10243 * config/picochip/libgccExtras/lshrsi3.c: Likewise.
10244 * config/picochip/libgccExtras/parityhi2.asm: Likewise.
10245 * config/picochip/libgccExtras/popcounthi2.asm: Likewise.
10246 * config/picochip/libgccExtras/setjmp.asm: Likewise.
10247 * config/picochip/libgccExtras/subdi3.asm: Likewise.
10248 * config/picochip/libgccExtras/ucmpsi2.asm: Likewise.
10249 * config/picochip/libgccExtras/udivmodhi4.asm: Likewise.
10250 * config/picochip/libgccExtras/udivmodsi4.asm: Likewise.
10251 * config/rs6000/750cl.h: Likewise.
10252 * config/rs6000/altivec.h: Likewise.
10253 * config/rs6000/biarch64.h: Likewise.
10254 * config/rs6000/crtresfpr.asm: Likewise.
10255 * config/rs6000/crtresgpr.asm: Likewise.
10256 * config/rs6000/crtresxfpr.asm: Likewise.
10257 * config/rs6000/crtresxgpr.asm: Likewise.
10258 * config/rs6000/crtsavfpr.asm: Likewise.
10259 * config/rs6000/crtsavgpr.asm: Likewise.
10260 * config/rs6000/darwin-asm.h: Likewise.
10261 * config/rs6000/darwin-fallback.c: Likewise.
10262 * config/rs6000/darwin-fpsave.asm: Likewise.
10263 * config/rs6000/darwin-ldouble.c: Likewise.
10264 * config/rs6000/darwin-tramp.asm: Likewise.
10265 * config/rs6000/darwin-unwind.h: Likewise.
10266 * config/rs6000/darwin-vecsave.asm: Likewise.
10267 * config/rs6000/darwin-world.asm: Likewise.
10268 * config/rs6000/e500crtres32gpr.asm: Likewise.
10269 * config/rs6000/e500crtres64gpr.asm: Likewise.
10270 * config/rs6000/e500crtres64gprctr.asm: Likewise.
10271 * config/rs6000/e500crtrest32gpr.asm: Likewise.
10272 * config/rs6000/e500crtrest64gpr.asm: Likewise.
10273 * config/rs6000/e500crtresx32gpr.asm: Likewise.
10274 * config/rs6000/e500crtresx64gpr.asm: Likewise.
10275 * config/rs6000/e500crtsav32gpr.asm: Likewise.
10276 * config/rs6000/e500crtsav64gpr.asm: Likewise.
10277 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
10278 * config/rs6000/e500crtsavg32gpr.asm: Likewise.
10279 * config/rs6000/e500crtsavg64gpr.asm: Likewise.
10280 * config/rs6000/e500crtsavg64gprctr.asm: Likewise.
10281 * config/rs6000/eabi-ci.asm: Likewise.
10282 * config/rs6000/eabi-cn.asm: Likewise.
10283 * config/rs6000/eabi.asm: Likewise.
10284 * config/rs6000/linux-unwind.h: Likewise.
10285 * config/rs6000/linux64.h: Likewise.
10286 * config/rs6000/paired.h: Likewise.
10287 * config/rs6000/paired.md: Likewise.
10288 * config/rs6000/ppc64-fp.c: Likewise.
10289 * config/rs6000/ppu_intrinsics.h: Likewise.
10290 * config/rs6000/rs6000.h: Likewise.
10291 * config/rs6000/si2vmx.h: Likewise.
10292 * config/rs6000/sol-ci.asm: Likewise.
10293 * config/rs6000/sol-cn.asm: Likewise.
10294 * config/rs6000/spe.h: Likewise.
10295 * config/rs6000/spu2vmx.h: Likewise.
10296 * config/rs6000/sysv4.h: Likewise.
10297 * config/rs6000/tramp.asm: Likewise.
10298 * config/rs6000/vec_types.h: Likewise.
10299 * config/s390/linux-unwind.h: Likewise.
10300 * config/s390/tpf-unwind.h: Likewise.
10301 * config/score/crti.asm: Likewise.
10302 * config/score/crtn.asm: Likewise.
10303 * config/sh/crt1.asm: Likewise.
10304 * config/sh/crti.asm: Likewise.
10305 * config/sh/crtn.asm: Likewise.
10306 * config/sh/divtab-sh4-300.c: Likewise.
10307 * config/sh/divtab-sh4.c: Likewise.
10308 * config/sh/divtab.c: Likewise.
10309 * config/sh/lib1funcs-4-300.asm: Likewise.
10310 * config/sh/lib1funcs-Os-4-200.asm: Likewise.
10311 * config/sh/lib1funcs.asm: Likewise.
10312 * config/sh/lib1funcs.h: Likewise.
10313 * config/sh/linux-atomic.asm: Likewise.
10314 * config/sh/linux-unwind.h: Likewise.
10315 * config/sh/shmedia.h: Likewise.
10316 * config/sh/sshmedia.h: Likewise.
10317 * config/sh/ushmedia.h: Likewise.
10318 * config/sparc/crtfastmath.c: Likewise.
10319 * config/sparc/linux-unwind.h: Likewise.
10320 * config/sparc/sol2-c1.asm: Likewise.
10321 * config/sparc/sol2-ci.asm: Likewise.
10322 * config/sparc/sol2-cn.asm: Likewise.
10323 * config/spu/divmodti4.c: Likewise.
10324 * config/spu/divv2df3.c: Likewise.
10325 * config/spu/float_disf.c: Likewise.
10326 * config/spu/float_unsdidf.c: Likewise.
10327 * config/spu/float_unsdisf.c: Likewise.
10328 * config/spu/float_unssidf.c: Likewise.
10329 * config/spu/mfc_multi_tag_release.c: Likewise.
10330 * config/spu/mfc_multi_tag_reserve.c: Likewise.
10331 * config/spu/mfc_tag_release.c: Likewise.
10332 * config/spu/mfc_tag_reserve.c: Likewise.
10333 * config/spu/mfc_tag_table.c: Likewise.
10334 * config/spu/multi3.c: Likewise.
10335 * config/spu/spu_internals.h: Likewise.
10336 * config/spu/spu_intrinsics.h: Likewise.
10337 * config/spu/spu_mfcio.h: Likewise.
10338 * config/spu/vec_types.h: Likewise.
10339 * config/spu/vmx2spu.h: Likewise.
10340 * config/stormy16/stormy16-lib2.c: Likewise.
10341 * config/svr4.h: Likewise.
10342 * config/sync.c: Likewise.
10343 * config/v850/lib1funcs.asm: Likewise.
10344 * config/vxlib-tls.c: Likewise.
10345 * config/vxlib.c: Likewise.
10346 * config/vxworks-dummy.h: Likewise.
10347 * config/xtensa/crti.asm: Likewise.
10348 * config/xtensa/crtn.asm: Likewise.
10349 * config/xtensa/ieee754-df.S: Likewise.
10350 * config/xtensa/ieee754-sf.S: Likewise.
10351 * config/xtensa/lib1funcs.asm: Likewise.
10352 * config/xtensa/lib2funcs.S: Likewise.
10353 * config/xtensa/linux-unwind.h: Likewise.
10354 * config/xtensa/unwind-dw2-xtensa.c: Likewise.
10355 * config/xtensa/unwind-dw2-xtensa.h: Likewise.
10356 * coretypes.h: Likewise.
10357 * crtstuff.c: Likewise.
10358 * defaults.h: Likewise.
10359 * dwarf2.h: Likewise.
10360 * emutls.c: Likewise.
10361 * gbl-ctors.h: Likewise.
10362 * gcov-io.h: Likewise.
10363 * ginclude/float.h: Likewise.
10364 * ginclude/iso646.h: Likewise.
10365 * ginclude/stdarg.h: Likewise.
10366 * ginclude/stdbool.h: Likewise.
10367 * ginclude/stddef.h: Likewise.
10368 * ginclude/stdfix.h: Likewise.
10369 * ginclude/stdint-gcc.h: Likewise.
10370 * ginclude/tgmath.h: Likewise.
10371 * gthr-aix.h: Likewise.
10372 * gthr-dce.h: Likewise.
10373 * gthr-gnat.c: Likewise.
10374 * gthr-gnat.h: Likewise.
10375 * gthr-lynx.h: Likewise.
10376 * gthr-mipssde.h: Likewise.
10377 * gthr-nks.h: Likewise.
10378 * gthr-posix.c: Likewise.
10379 * gthr-posix.h: Likewise.
10380 * gthr-posix95.h: Likewise.
10381 * gthr-rtems.h: Likewise.
10382 * gthr-single.h: Likewise.
10383 * gthr-solaris.h: Likewise.
10384 * gthr-tpf.h: Likewise.
10385 * gthr-vxworks.h: Likewise.
10386 * gthr-win32.h: Likewise.
10387 * gthr.h: Likewise.
10388 * libgcc2.c: Likewise.
10389 * libgcc2.h: Likewise.
10390 * libgcov.c: Likewise.
10391 * tsystem.h: Likewise.
10392 * typeclass.h: Likewise.
10393 * unwind-c.c: Likewise.
10394 * unwind-compat.h: Likewise.
10395 * unwind-dw2-fde-compat.c: Likewise.
10396 * unwind-dw2-fde-darwin.c: Likewise.
10397 * unwind-dw2-fde-glibc.c: Likewise.
10398 * unwind-dw2-fde.c: Likewise.
10399 * unwind-dw2-fde.h: Likewise.
10400 * unwind-dw2.c: Likewise.
10401 * unwind-dw2.h: Likewise.
10402 * unwind-generic.h: Likewise.
10403 * unwind-pe.h: Likewise.
10404 * unwind-sjlj.c: Likewise.
10405 * unwind.inc: Likewise.
10406 * config/arm/neon-gen.ml: Change generated copyright header to
10407 refer to version 3 of the GNU General Public License with
10408 version 3.1 of the GCC Runtime Library Exception and to point
10409 readers at the COPYING3 and COPYING3.RUNTIME files and the
10410 FSF's license web page.
10411 * config/arm/arm_neon.h: Regenerate.
10412
104132009-04-09 Jakub Jelinek <jakub@redhat.com>
10414
10415 * config/cris/cris.md: Change copyright header to refer to version
10416 3 of the GNU General Public License.
10417 * doc/install.texi2html: Change copyright header to refer to version
10418 3 of the GNU General Public License and to point readers at the
10419 COPYING3 file and the FSF's license web page.
10420 * config/vax/linux.h: Likewise.
10421
4a77c72b
PB
104222009-04-09 Paolo Bonzini <bonzini@gnu.org>
10423
1ad2f450
L
10424 * config/i386/i386.md (cmpcc): New.
10425 * config/i386/sync.md (sync_compare_and_swap*): Set FLAGS_REG.
10426 (sync_compare_and_swap_cc*): Delete.
10427
10428 * config/s390/s390.c (s390_compare_emitted): Remove.
10429 (s390_emit_compare): Handle MODE_CC s390_compare_op0 like
10430 s390_compare_emitted used to be handled. Assert that modes match.
10431 (s390_emit_compare_and_swap): Use s390_emit_compare, do not
10432 refer to sync_compare_and_swap_ccsi.
10433 * config/s390/s390.h (s390_compare_emitted): Remove.
10434 * config/s390/s390.md (seq): Look for MODE_CC s390_compare_op0
10435 instead of s390_compare_emitted.
10436 (stack_protect_test, sync_compare_and_swap_cc): Set s390_compare_op0
10437 instead of s390_compare_emitted.
10438 * config/s390/s390.md (cmpcc): New.
10439 (sync_compare_and_swapqi, sync_compare_and_swaphi): Clobber
10440 CC_REGNUM, do not pretend it's set.
10441 (sync_compare_and_swap_cc*): Delete.
10442 * config/s390/predicates.md (cc_reg_operand): New.
10443
10444 * expr.c (sync_compare_and_swap_cc): Delete.
10445 * optabs.h (sync_compare_and_swap_cc): Delete.
10446 * optabs.c (prepare_cmp_insn): Ignore which specific CCmode
10447 is being used with can_compare_p.
10448 (emit_cmp_and_jump_insn_1): Likewise when looking in the optab.
10449 (find_cc_set): New.
10450 (expand_bool_compare_and_swap): Do not use sync_compare_and_swap_cc,
10451 look for a MODE_CC set instead. Use emit_store_flag.
10452 (expand_compare_and_swap_loop): Likewise, with some additional
10453 complication to avoid a force_reg when useless. Use
10454 emit_cmp_and_jump_insns.
10455 * genopinit.c (optabs): Delete sync_compare_and_swap_cc.
10456 * doc/md.texi (sync_compare_and_swap_cc): Merge with
10457 sync_compare_and_swap documentation.
4a77c72b 10458
0c0efb33
JH
104592009-04-09 Jan Hubicka <jh@suse.cz>
10460
10461 * except.c (find_prev_try): Break out from ....
10462 (duplicate_eh_regions): ... here; properly update prev_try pointers
10463 when duplication part of tree.
10464 (dump_eh_tree): Improve dumping.
10465 (verify_eh_region): New.
10466 (verify_eh_tree): Use it.
10467
22a65a54
RG
104682009-04-06 Richard Guenther <rguenther@suse.de>
10469
10470 * c-gimplify.c (c_gimplify_expr): Fix the invalid GENERIC
10471 &ARRAY addresses by adjusting their types and prepending
10472 a conversion.
10473 * tree-cfg.c (verify_gimple_assign_single): Verify that
10474 addresses are correct.
10475
f76968e6
RG
104762009-04-09 Richard Guenther <rguenther@suse.de>
10477
10478 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Move non-constant
10479 indices into an array reference if possible.
10480 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
10481 Fold POINTER_PLUS_EXPR statements with invariant address.
10482
c90c5fb5
AM
104832009-04-09 Alan Modra <amodra@bigpond.net.au>
10484
10485 PR target/39634
10486 * config.gcc (powerpc64-*-linux*): Always build biarch.
10487
17cede2e
JM
104882009-04-09 Joseph Myers <joseph@codesourcery.com>
10489
10490 PR c/39613
10491 * c-typeck.c (do_case): If case label is not an INTEGER_CST, fold
10492 it and pedwarn if this results in an INTEGER_CST.
10493
a3337ea2
KG
104942009-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10495
10496 * doc/install.texi: Update minimum GMP version. Remove obsolete
10497 text in MPFR section.
10498
ce9ba79b
JJ
104992009-04-08 Jakub Jelinek <jakub@redhat.com>
10500
10501 * dwarf2out.c (class_scope_p): New static inline.
10502 (class_or_namespace_scope_p): Use it.
10503 (gen_variable_die): Use DW_TAG_member tag for static data member
10504 declarations instead of DW_TAG_variable.
10505
4f0ae266
JJ
10506 PR middle-end/39573
10507 * omp-low.c (expand_omp_taskreg): Finalize taskreg static local_decls
10508 variables.
10509
d27f0ddc
RG
105102009-04-08 Richard Guenther <rguenther@suse.de>
10511
10512 * tree-ssa-sccvn.c (valueize_refs): Do not continue to
10513 valueize random data.
10514
557cc596
DE
105152009-04-08 David Edelsohn <edelsohn@gnu.org>
10516
10517 * config.gcc (aix tm_file): Add aix-stdint.h.
10518 (aix tm clause use_gcc_stdint): Set to wrap.
10519 * config/rs6000/aix-stdint.h: New file.
2ba9daa7 10520
75ccc1e7
RG
105212009-04-08 Richard Guenther <rguenther@suse.de>
10522
10523 PR middle-end/36291
10524 * tree-dfa.c (add_referenced_var): Do not recurse into
10525 global initializers.
10526 * tree-ssa-ccp.c (get_symbol_constant_value): Add newly
10527 exposed variables.
10528 (fold_const_aggregate_ref): Likewise.
10529
c6963675
PB
105302009-04-08 Paolo Bonzini <bonzini@gnu.org>
10531
6c44cf79
L
10532 * recog.c (ordered_comparison_operator): New.
10533 * gensupport.c (std_preds): Add it.
c6963675
PB
10534 * doc/md.texi (Machine-Independent Predicates): Document it.
10535
6d07ad98
JH
105362009-04-08 Jan Hubicka <jh@suse.cz>
10537
10538 * tree-eh.c (cleanup_eh): When not optimizing, do not try EH merging.
10539 * function.h (rtl_eh): Remove exception_handler_label_map.
10540 * except.c (ehl_hash, ehl_eq, add_ehl_entry,
10541 remove_exception_handler_label, for_each_eh_label_1): Remove.
10542 (rtl_remove_unreachable_regions): Remove.
10543 (convert_from_eh_region_ranges): Do not remove unreachable regions.
10544 (find_exception_handler_labels): Don't build the hashtable.
10545 (maybe_remove_eh_handler): Remove.
10546 (for_each_eh_label): Rewrite to walk the tree.
10547 (rest_of_handle_eh): Do not cleanup cfg prior EH construction.
10548 * except.h (maybe_remove_eh_handler): Remove.
10549 * passes.c (init_optimization_passes): Schedule second EH cleanup
10550 before out-of-ssa.
10551 * cfgrtl.c (rtl_delete_block, rtl_merge_blocks,
10552 cfg_layout_merge_blocks): Do not call maybe_remove_eh_handler.
10553
7ddf71e3
PB
105542009-04-08 Paolo Bonzini <bonzini@gnu.org>
10555
10556 * genoutput.c (validate_optab_operands): New.
10557 (gen_insn, gen_expand): Call it.
10558
10559 * genflags.c (gen_insn): Detect misused iterators.
10560 (main): Pass line_no to gen_insn, exit with status 1 on error.
10561
10562 * genextract.c (line_no): Make global.
10563 (VEC_safe_set_locstr): Change assertion to error message.
10564 (main): Exit with status 1 on error.
10565
4d84fe7c
JM
105662009-04-08 Joseph Myers <joseph@codesourcery.com>
10567
10568 PR c/39614
10569 PR c/39673
10570 * c-common.h (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
10571 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
10572 EXPR_INT_CONST_OPERANDS): Remove duplicate definitions.
10573 * c-convert.c (convert): Do not call fold on results of conversion
10574 functions when the result is a C_MAYBE_CONST_EXPR.
10575 * c-parser.c (c_parser_postfix_expression): Do not fold condition
10576 of __builtin_choose_expr.
10577 * c-typeck.c (remove_c_maybe_const_expr): New.
10578 (build_unary_op, build_conditional_expr, build_compound_expr,
10579 build_binary_op, c_objc_common_truthvalue_conversion): Call
10580 remove_c_maybe_const_expr on any input C_MAYBE_CONST_EXPR with
10581 integer operands.
10582
60839f5d 105832009-04-08 Bingfeng Mei <bmei@broadcom.com>
d1d1c602 10584
2ba9daa7 10585 * fold-const.c (const_binop): Combine two VECTOR_CST under operation
6c44cf79 10586 CODE to produce a new one. Add a prototype to use fold_convert_const
d1d1c602 10587
8e481a2c
DS
105882009-04-08 Danny Smith <dannysmith@users.sourceforge.net>
10589
10590 PR bootstrap/39660
10591 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address): Don't
10592 mix declarations and code.
10593
ee618c17
BE
105942009-04-08 Ben Elliston <bje@au.ibm.com>
10595
10596 * gcc.c: Replace `CC' with `GCC' throughout.
10597
f2a758a2
L
105982009-04-07 H.J. Lu <hongjiu.lu@intel.com>
10599
10600 * doc/invoke.texi: Document Atom support.
10601
6ea2bd47
JM
106022009-04-07 Jason Merrill <jason@redhat.com>
10603
10604 PR c++/25185
10605 * c-common.h, c-common.c: Add flag_pretty_templates.
10606 * c-opts.c (c_common_handle_option): Set it.
10607 * c.opt: Add -fno-pretty-templates.
10608 * doc/invoke.texi (C++ Dialect Options): Likewise.
10609
fcb82ab0
UB
106102009-04-07 Uros Bizjak <ubizjak@gmail.com>
10611
10612 * config/ia64/ia64.c (ia64_builtins): Add IA64_BUILTIN_HUGE_VALQ.
10613 (ia64_init_builtins): Handle IA64_BUILTIN_HUGE_VALQ.
10614 (ia64_expand_builtin): Likewise.
10615
dc5e7298
MJ
106162009-04-07 Martin Jambor <mjambor@suse.cz>
10617
10618 * tree-ssa-alias.c (refs_may_alias_p_1): Check for
10619 is_gimple_min_invariant rather than CONSTANT_CLASS_P so that invariant
10620 ADDR_EXPRS are include too.
10621
0609b355
RG
106222009-04-07 Richard Guenther <rguenther@suse.de>
10623
10624 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Non-aliased
10625 decls are only used if passes as parameters or if they are
10626 local statics and the call is not to a builtin.
10627 (call_may_clobber_ref_p_1): Likewise.
10628
d8e535fa
PB
106292009-04-07 Paolo Bonzini <bonzini@gnu.org>
10630
10631 * expr.c (do_store_flag): Remove last argument. Simplify code
10632 to avoid duplication of tests already done by can_compare_p.
10633 (expand_expr_real_1): Adjust caller.
10634
c3c64f50
PB
106352009-04-07 Paolo Bonzini <bonzini@gnu.org>
10636
fcb82ab0
UB
10637 * optabs.c (can_compare_p): Test the predicate of a
10638 cbranch and cstore pattern.
c3c64f50 10639
9a53bc17
PB
106402009-04-07 Paolo Bonzini <bonzini@gnu.org>
10641
fcb82ab0
UB
10642 * expr.c (convert_move): Use emit_store_flag instead of
10643 "emulating" it.
9a53bc17 10644
67b8f1c1
PB
106452009-04-07 Paolo Bonzini <bonzini@gnu.org>
10646
fcb82ab0
UB
10647 * config/i386/i386.c (ix86_compare_emitted): Remove.
10648 (ix86_expand_compare, ix86_expand_branch): Handle MODE_CC
10649 ix86_compare_op0 like ix86_compare_emitted used to be handled.
10650 * config/i386/i386.h (ix86_compare_emitted): Remove.
10651 * config/i386/i386.md (stack_protect_test): Set ix86_compare_op0
10652 instead of ix86_compare_emitted.
10653 * config/i386/sync.md (sync_compare_and_swap_cc): Likewise.
67b8f1c1 10654
44509946
AS
106552009-04-07 Andrew Stubbs <ams@codesourcery.com>
10656
10657 * config.gcc (sh-*-*): Add sysroot-suffix.h to tm_file.
10658 Add t-sysroot-suffix to tmake_file.
10659 * config/print-sysroot-suffix.sh: New file.
10660 * config/t-sysroot-suffix: New file.
10661
ca22d882
BE
106622009-04-07 Ben Elliston <bje@au.ibm.com>
10663
10664 * libgcc2.c (INFINITY): Use __builtin_huge_val, not __builtin_inf,
10665 as the latter produces a warning when the target does not support
10666 infinity.
10667
95aac11b
BE
106682009-04-07 Ben Elliston <bje@au.ibm.com>
10669
10670 * dfp.c: Replace type punning assignments with memcpy throughout.
10671 * Makefile.in (dfp.o-warn): Remove.
2ba9daa7 10672
633dd061
AM
106732009-04-07 Alan Modra <amodra@bigpond.net.au>
10674
10675 PR target/39634
10676 * config.gcc: Merge powerpc-*-linux* and powerpc64-*-linux*.
10677 Include soft-fp/t-softfp after rs6000/t-linux64.
10678
fe0a25ec
EB
106792009-04-06 Eric Botcazou <ebotcazou@adacore.com>
10680
10681 * stor-layout.c (set_sizetype): Use the full precision of their
10682 machine mode for bitsize types.
10683
0c011bc3
L
106842009-04-06 H.J. Lu <hongjiu.lu@intel.com>
10685
10686 * config/i386/i386.md: Revert 2 accidental checkins.
10687
b6837b94 106882009-04-06 Joey Ye <joey.ye@intel.com>
60839f5d 10689 Xuepeng Guo <xuepeng.guo@intel.com>
b6837b94
JY
10690 H.J. Lu <hongjiu.lu@intel.com>
10691
10692 Atom pipeline model, tuning and insn selection.
10693 * config.gcc (atom): Add atom config options and target.
10694
10695 * config/i386/atom.md: New.
10696
10697 * config/i386/i386.c (atom_cost): New cost.
10698 (m_ATOM): New macro flag.
10699 (initial_ix86_tune_features): Set m_ATOM.
10700 (x86_accumulate_outgoing_args): Likewise.
10701 (x86_arch_always_fancy_math_387): Likewise.
10702 (processor_target): Add Atom cost.
10703 (cpu_names): Add Atom cpu name.
10704 (override_options): Set Atom ISA.
10705 (ix86_issue_rate): New case PROCESSOR_ATOM.
10706 (ix86_adjust_cost): Likewise.
10707
10708 * config/i386/i386.h (TARGET_ATOM): New target macro.
10709 (ix86_tune_indices): Add X86_TUNE_OPT_AGU.
10710 (TARGET_OPT_AGU): New target option.
10711 (target_cpu_default): Add TARGET_CPU_DEFAULT_atom.
10712 (processor_type): Add PROCESSOR_ATOM.
10713
10714 * config/i386/i386.md (cpu): Add new value "atom".
10715 (use_carry, movu): New attr.
10716 (atom.md): Include atom.md.
10717 (adddi3_carry_rex64): Set attr "use_carry".
10718 (addqi3_carry): Likewise.
10719 (addhi3_carry): Likewise.
10720 (addsi3_carry): Likewise.
10721 (*addsi3_carry_zext): Likewise.
10722 (subdi3_carry_rex64): Likewise.
10723 (subqi3_carry): Likewise.
10724 (subhi3_carry): Likewise.
10725 (subsi3_carry): Likewise.
10726 (x86_movdicc_0_m1_rex64): Likewise.
10727 (*x86_movdicc_0_m1_se): Likewise.
10728 (x86_movsicc_0_m1): Likewise.
10729 (*x86_movsicc_0_m1_se): Likewise.
10730 (*adddi_1_rex64): Emit add insn as much as possible.
10731 (*addsi_1): Likewise.
10732 (return_internal): Set atom_unit.
10733 (return_internal_long): Likewise.
10734 (return_pop_internal): Likewise.
10735 (*rcpsf2_sse): Set atom_sse_attr attr.
10736 (*qrt<mode>2_sse): Likewise.
10737 (*prefetch_sse): Likewise.
10738
10739 * config/i386/i386-c.c (ix86_target_macros_internal): New case
10740 PROCESSOR_ATOM.
10741 (ix86_target_macros_internal): Likewise.
10742
10743 * config/i386/sse.md (cpu): Set attr "atom_sse_attr".
10744 (*prefetch_sse_rex): Likewise.
10745 (sse_rcpv4sf2): Likewise.
10746 (sse_vmrcpv4sf2): Likewise.
10747 (sse_sqrtv4sf2): Likewise.
10748 (<sse>_vmsqrt<mode>2): Likewise.
10749 (sse_ldmxcsr): Likewise.
10750 (sse_stmxcsr): Likewise.
10751 (*sse_sfence): Likewise.
10752 (sse2_clflush): Likewise.
10753 (*sse2_mfence): Likewise.
10754 (*sse2_lfence): Likewise.
10755 (avx_movup<avxmodesuffixf2c><avxmodesuffix>): Set attr "movu".
10756 (<sse>_movup<ssemodesuffixf2c>): Likewise.
10757 (avx_movdqu<avxmodesuffix>): Likewise.
10758 (avx_lddqu<avxmodesuffix>): Likewise.
10759 (sse2_movntv2di): Change attr "type" to "ssemov".
10760 (sse2_movntsi): Likewise.
10761 (rsqrtv8sf2): Change attr "type" to "sseadd".
10762 (sse3_addsubv2df3): Set attr "atom_unit".
10763 (sse3_h<plusminus_insn>v4sf3): Likewise.
10764 (*sse2_pmaddwd): Likewise.
10765 (*vec_extractv2di_1_rex64): Likewise.
10766 (*vec_extractv2di_1_avx): Likewise.
10767 (sse2_psadbw): Likewise.
10768 (ssse3_phaddwv8hi3): Likewise.
10769 (ssse3_phaddwv4hi3): Likewise.
10770 (ssse3_phadddv4si3): Likewise.
10771 (ssse3_phadddv2si3): Likewise.
10772 (ssse3_phaddswv8hi3): Likewise.
10773 (ssse3_phaddswv4hi3): Likewise.
10774 (ssse3_phsubwv8hi3): Likewise.
10775 (ssse3_phsubwv4hi3): Likewise.
10776 (ssse3_phsubdv4si3): Likewise.
10777 (ssse3_phsubdv2si3): Likewise.
10778 (ssse3_phsubswv8hi3): Likewise.
10779 (ssse3_phsubswv4hi3): Likewise.
10780 (ssse3_pmaddubsw128): Likewise.
10781 (sse3_pmaddubsw: Likewise.
10782 (ssse3_palignrti): Likewise.
10783 (ssse3_palignrdi): Likewise.
10784
53e350d3
GP
107852009-04-06 Gerald Pfeifer <gerald@pfeifer.com>
10786
10787 * doc/install.texi (Specific): Fix two cross-references to MinGW.
10788
439ef907
RG
107892009-04-06 Richard Guenther <rguenther@suse.de>
10790
10791 PR tree-optimization/28868
10792 * tree-ssa-pre.c (inserted_phi_names): New bitmap to keep track
10793 of which PHI results we inserted.
10794 (insert_into_preds_of_block): Record inserted PHIs.
10795 (eliminate): Eliminate redundant PHI nodes.
10796 (init_pre): Init inserted_phi_names.
10797
4bad83f5
RG
107982009-04-06 Richard Guenther <rguenther@suse.de>
10799
10800 PR tree-optimization/39643
10801 * tree-ssa-ccp.c (ccp_fold): Fold REALPART_EXPRs and
10802 IMAGPART_EXPRs of complex constants.
10803 (execute_fold_all_builtins): If we folded a call queue
10804 TODO_update_address_taken.
10805
570c4247
JH
108062009-04-06 Jan Hubicka <jh@suse.cz>
10807
10808 PR middle-end/39659
10809 * except.c (remove_unreachable_regions): Propagate may_contain_throw
10810 flag.
10811
a460d7a1
AS
108122009-04-06 Andrew Stubbs <ams@codesourcery.com>
10813
10814 * config/sh/lib1funcs.asm (ic_invalidate): Move ICBI out of the
10815 delay slot.
10816 (ic_invalidate_array): Likewise.
10817
60839f5d 108182009-04-06 Hariharan Sandanagobalane <hariharan@picochip.com>
6bdf8c2e
HS
10819
10820 * calls.c (emit_library_call_value_1): Fix a problem with parameter
10821 alignment for library calls.
10822
7d253f6e
DS
108232009-04-06 Danny Smith <dannysmith@users.sourceforge.net>
10824
10825 * config.gcc (mingw32 tm_file): Add mingw-stdint.h.
10826 (mingw32 tm clause use_gcc_stdint): Set to wrap.
10827 * config/i386/mingw-stdint.h: New file.
10828
941c3614
RB
108292009-04-05 Richard Guenther <rguenther@suse.de>
10830
10831 PR tree-optimization/39648
10832 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Work around
10833 our &A vs. &A[0] IL deficiencies.
10834
12633413
JH
108352009-04-04 Jan Hubicka <jh@suse.cz>
10836
941c3614
RB
10837 * except.c (sjlj_find_directly_reachable_regions): Be ready for
10838 removed toplevel regions.
12633413
JH
10839 (sjlj_mark_call_sites): Likewise.
10840
bb2aaded
DK
108412009-04-04 Dave Korn <dave.korn.cygwin@gmail.com>
10842
10843 * config.gcc (cygwin tm_file): Add cygwin-stdint.h.
10844 (cygwin tm clause use_gcc_stdint): Set to wrap.
10845 * config/i386/cygwin-stdint.h: New file.
10846
86290011
RG
108472009-04-04 Richard Guenther <rguenther@suse.de>
10848
10849 * Makefile.in (tree-ssa-copy.o): Add $(CFGLOOP_H) dependency.
10850 * tree-ssa-copy.c (init_copy_prop): Do not propagate through
10851 single-argument PHIs if we are in loop-closed SSA form.
10852 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Pass extra guards
10853 for the pre-condition.
10854 (slpeel_tree_peel_loop_to_edge): Likewise.
10855 (vect_build_loop_niters): Take an optional sequence to append stmts.
10856 (vect_generate_tmps_on_preheader): Likewise.
10857 (vect_do_peeling_for_loop_bound): Take extra guards for the
10858 pre-condition.
10859 (vect_do_peeling_for_alignment): Adjust. Unconditionally apply
10860 the cost model check.
10861 (vect_loop_versioning): Take stmt and stmt list to put pre-condition
7a715bba 10862 guards if we are going to peel. Do not apply versioning in that case.
86290011
RG
10863 * tree-vectorizer.h (vect_loop_versioning): Adjust declaration.
10864 (vect_do_peeling_for_loop_bound): Likewise.
10865 * tree-vect-loop.c (vect_transform_loop): If we are peeling for
10866 loop bound only record extra pre-conditions, do not apply loop
10867 versioning.
10868
5eeeac64
RG
108692009-04-04 Richard Guenther <rguenther@suse.de>
10870
10871 * tree-ssa-operands.c (pop_stmt_changes): Remove automatic
10872 renaming code.
10873
1ff7d06b
JH
108742009-04-04 Jan Hubicka <jh@suse.cz>
10875
10876 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
10877 last_basic_block for size of bb->index indexed array.
10878 * bt-load.c (compute_defs_uses_and_gen, compute_kill,
10879 compute_out, link_btr_uses, build_btr_def_use_webs,
10880 build_btr_def_use_webs, migrate_btr_defs): Likewise.
10881
14925fcd
JH
108822009-04-04 Jan Hubicka <jh@suse.cz>
10883
10884 * except.c (remove_eh_handler_and_replace): Break out from ...
10885 (remove_eh_handler): ... here.
10886 (bring_to_root): New function.
10887 (remove_unreachable_regions): Collect MUST_NOT_THROW, unify runtime
10888 handled ones, bring others to root of tree.
10889
4e6d1743
JH
108902009-04-04 Jan Hubicka <jh@suse.cz>
10891
4cb735f7
JH
10892 * tree-eh.c (tree_empty_eh_handler_p): Pattern match more curefully.
10893 (all_phis_safe_to_merge): New function.
10894 (update_info): New structure.
10895 (make_eh_edge_and_update_phi, update_eh_edges): New functions.
10896 (cleanup_empty_eh): Update SSA if possible.
4e6d1743 10897
c6803d43
RG
108982009-04-04 Richard Guenther <rguenther@suse.de>
10899
10900 * tree-ssa.c (verify_ssa): With -O0 we do not need VOPs.
10901 * tree-ssa-operands.c (append_vdef): Do not append VOPs at -O0.
10902 (append_vuse): Likewise.
10903
54f5943c
JJ
109042009-04-04 Jakub Jelinek <jakub@redhat.com>
10905
10906 * unwind-dw2.h (_Unwind_FrameState): Add REG_UNDEFINED enum value.
10907 * unwind-dw2.c (execute_cfa_program): Set how to REG_UNDEFINED
10908 instead of REG_UNSAVED for DW_CFA_undefined.
10909 (uw_update_context_1): Handle REG_UNDEFINED the same as REG_UNSAVED.
10910 (uw_update_context): If RA column is REG_UNDEFINED, mark it as
10911 outermost frame.
10912
aad2bccb
RE
109132009-04-04 Richard Earnshaw <rearnsha@arm.com>
10914
10915 PR target/39501
10916 * arm.md (movsfcc): Disable if not TARGET_HARD_FLOAT.
10917 * testsuite/gcc.c-torture/execute/pr39501.c: New file.
10918 * testsuite/gcc.c-torture/execute/pr39501.x: New file.
10919
aa7069aa
RG
109202009-04-04 Richard Guenther <rguenther@suse.de>
10921
10922 PR tree-optimization/8781
10923 PR tree-optimization/37892
10924 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Declare.
10925 * tree-ssa-sccvn.c (vn_reference_fold_indirect): New function.
10926 (valueize_refs): Call it for *& valueizations.
10927 (shared_reference_ops_from_ref): Rename to ...
10928 (valueize_shared_reference_ops_from_ref): ... this and valueize.
10929 (shared_reference_ops_from_call): Rename to ...
10930 (valueize_shared_reference_ops_from_call): ... this and valueize.
10931 (vn_reference_lookup): Update.
10932 (visit_reference_op_call): Likewise.
10933 * tree-ssa-pre.c (phi_translate_1): Fold *&.
10934 (eliminate): Value-replace the call address in call statements.
10935
cd15ad3e
RG
109362009-04-04 Richard Guenther <rguenther@suse.de>
10937
10938 PR tree-optimization/39636
10939 * tree-ssa-forwprop.c
10940 (forward_propagate_addr_into_variable_array_index): Check for
10941 GIMPLE_ASSIGN before accessing the rhs code.
10942
462f3262
JM
109432009-04-03 Jason Merrill <jason@redhat.com>
10944
10945 * stor-layout.c (set_sizetype): Set TYPE_CANONICAL.
10946
6adb807e
SE
109472009-04-03 Steve Ellcey <sje@cup.hp.com>
10948
10949 * config/ia64/ia64.md (extendsfdf2, extendsfxf2, extenddfxf2,
10950 truncdfsf2, truncxfsf2, truncxfdf2, floatdixf2, fix_truncsfdi2,
10951 fix_truncdfdi2, fix_truncxfdi2, fix_truncxfdi2_alts, floatunsdisf2,
10952 floatunsdidf2, floatunsdixf2, fixuns_truncsfdi2, fixuns_truncdfdi2,
10953 fixuns_truncxfdi2, fixuns_truncxfdi2_alts, divsi3_internal,
10954 smuldi3_highpart, umuldi3_highpart, ctzdi2, *getf_exp_xf,
10955 divdi3_internal_lat, divdi3_internal_thr, mulditi3, *mulditi3_internal,
10956 umulditi3, *umulditi3_internal, addsf3, mulsf3, abssf2, negsf2,
10957 *nabssf2, sminsf3, smaxsf3, *maddsf4, *msubsf4, *nmulsf3, *nmaddsf4,
10958 *nmaddsf4_alts, divsf3, *sqrt_approx, sqrtsf2, sqrtsf2_internal_thr,
10959 adddf3, *adddf3_trunc, muldf3, *muldf3_trunc, absdf2, negdf2, *nabsdf2,
10960 smindf3, smaxdf3, *madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc,
10961 *nmuldf3, *nmuldf3_trunc, *nmadddf4, *nmadddf4_alts, *nmadddf4_truncsf,
10962 *nmadddf4_truncsf_alts, divdf3, sqrtdf2, sqrtdf2_internal_thr, divxf3,
10963 sqrtxf2, sqrtxf2_internal_thr, *recip_approx):
10964 Use fr_reg_or_fp01_operand instead of fr_register_operand
10965
10966 * config/ia64/div.md (extend<mode>rf2, truncrf<mode>2,
10967 recip_approx_rf, divsf3_internal_thr, divsf3_internal_lat,
10968 divdf3_internal_thr, divdf3_internal_lat divxf3_internal): Ditto.
10969
174b3107
VM
109702009-04-03 Vladimir Makarov <vmakarov@redhat.com>
10971
b844e5d8
L
10972 PR rtl-optimization/39607
10973 PR rtl-optimization/39631
7a715bba
UB
10974
10975 Revert:
2ba9daa7 10976
174b3107
VM
10977 2009-03-30 Vladimir Makarov <vmakarov@redhat.com>
10978 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
10979 instead of DF_LR_OUT.
10980 * ira-lives.c (process_bb_node_lives): Ditto.
10981 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
10982 instead of DF_LR_{OUT,IN}.
10983 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
10984 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
10985
535b544a
SB
109862009-04-03 Steven Bosscher <steven@gcc.gnu.org>
10987
10988 * omp-low.c (pass_expand_omp): Don't claim to provide PROP_gimple_lomp.
10989 (execute_lower_omp): Always run but take the short way out if -fopenmp
10990 is not given.
10991 (gate_lower_omp): Remove, forcing the pass manager to always run the
10992 pass and always set PROP_gimple_lomp.
10993 (pass_lower_omp): Remove gate function.
10994 * matrix-reorg.c (pass_ipa_matrix_reorg): Don't claim to provide
10995 PROP_trees. Instead, require it.
10996 * ipa-cp.c (pass_ipa_cp): Likewise.
10997 * ipa-inline.c (pass_early_inline): Don't claim to provide PROP_cfg.
10998 (pass_ipa_early_inline, pass_inline_parameters, pass_ipa_inline): Idem.
10999 * tree-profile.c (pass_tree_profile): Don't claim to provide PROP_cfg
11000 and PROP_gimple_leh.
11001
5006671f
RG
110022009-04-03 Richard Guenther <rguenther@suse.de>
11003
11004 PR middle-end/13146
11005 PR tree-optimization/23940
11006 PR tree-optimization/33237
11007 PR middle-end/33974
11008 PR middle-end/34093
11009 PR tree-optimization/36201
11010 PR tree-optimization/36230
11011 PR tree-optimization/38049
11012 PR tree-optimization/38207
11013 PR tree-optimization/38230
11014 PR tree-optimization/38301
11015 PR tree-optimization/38585
11016 PR middle-end/38895
11017 PR tree-optimization/38985
11018 PR tree-optimization/39299
11019 * tree-ssa-structalias.h: Remove.
11020 * tree-ssa-operands.h (NULL_USE_OPERAND_P): Make of type use_operand_p.
11021 (NULL_DEF_OPERAND_P): Make of type def_operand_p.
11022 (struct vuse_element_d): Remove.
11023 (struct vuse_vec_d): Likewise.
11024 (VUSE_VECT_NUM_ELEM, VUSE_VECT_ELEMENT_NC, VUSE_ELEMENT_PTR_NC,
11025 VUSE_ELEMENT_VAR_NC, VUSE_VECT_ELEMENT, VUSE_ELEMENT_PTR,
11026 SET_VUSE_VECT_ELEMENT, SET_VUSE_ELEMENT_VAR, SET_VUSE_ELEMENT_PTR,
11027 VUSE_ELEMENT_VAR): Likewise.
11028 (struct voptype_d): Likewise.
11029 (NUM_VOP_FREE_BUCKETS): Likewise.
11030 (struct ssa_operands): Remove vop_free_buckets and mpt_table fields.
11031 (struct stmt_operands_d): Remove.
11032 (VUSE_OP_PTR, VUSE_OP, SET_VUSE_OP, VUSE_NUM, VUSE_VECT,
11033 VDEF_RESULT_PTR, VDEF_RESULT, VDEF_OP_PTR, VDEF_OP, SET_VDEF_OP,
11034 VDEF_NUM, VDEF_VECT): Likewise.
11035 (copy_virtual_operands): Remove.
11036 (operand_build_cmp): Likewise.
11037 (create_ssa_artificial_load_stmt): Likewise.
11038 (enum ssa_op_iter_type): Remove ssa_op_iter_vdef.
11039 (struct ssa_operand_iterator_d): Remove vuses, vdefs, mayusesm
11040 vuse_index and mayuse_index members. Pack and move done and iter_type
11041 members to the front.
11042 (SSA_OP_VMAYUSE): Remove.
11043 (SSA_OP_VIRTUAL_USES): Adjust.
11044 (FOR_EACH_SSA_VDEF_OPERAND): Remove.
11045 (unlink_stmt_vdef): Declare.
11046 (add_to_addressable_set): Remove.
11047 * tree-vrp.c (stmt_interesting_for_vrp): Adjust.
11048 (vrp_visit_stmt): Likewise.
11049 * doc/tree-ssa.texi (Alias analysis): Update.
11050 * doc/invoke.texi (max-aliased-vops): Remove docs.
11051 (avg-aliased-vops): Likewise.
11052 * tree-into-ssa.c (syms_to_rename): Remove.
11053 (need_to_update_vops_p): Likewise.
11054 (need_to_initialize_update_ssa_p): Rename to ...
11055 (update_ssa_initialized_fn): ... this. Track function we are
11056 initialized for.
11057 (symbol_marked_for_renaming): Simplify.
11058 (add_new_name_mapping): Do not set need_to_update_vops_p.
11059 (dump_currdefs): Use SYMS_TO_RENAME.
11060 (rewrite_update_stmt): Always walk all uses/defs.
11061 (dump_update_ssa): Adjust.
11062 (init_update_ssa): Take function argument. Track what we are
11063 initialized for.
11064 (delete_update_ssa): Reset SYMS_TO_RENAME and update_ssa_initialized_fn.
11065 (create_new_def_for): Initialize for cfun, assert we are initialized
11066 for cfun.
11067 (mark_sym_for_renaming): Simplify.
11068 (mark_set_for_renaming): Do not initialize update-ssa.
11069 (need_ssa_update_p): Simplify. Take function argument.
11070 (name_mappings_registered_p): Assert we ask for the correct function.
11071 (name_registered_for_update_p): Likewise.
11072 (ssa_names_to_replace): Likewise.
11073 (release_ssa_name_after_update_ssa): Likewise.
11074 (update_ssa): Likewise. Use SYMS_TO_RENAME.
11075 (dump_decl_set): Do not print a newline.
11076 (debug_decl_set): Do it here.
11077 (dump_update_ssa): And here.
11078 * tree-ssa-loop-im.c (move_computations): Adjust.
11079 (movement_possibility): Likewise.
11080 (determine_max_movement): Likewise.
11081 (gather_mem_refs_stmt): Likewise.
11082 * tree-dump.c (dequeue_and_dump): Do not handle SYMBOL_MEMORY_TAG
11083 or NAME_MEMORY_TAG.
11084 * tree-complex.c (update_all_vops): Remove.
11085 (expand_complex_move): Adjust.
11086 * tree-ssa-loop-niter.c (chain_of_csts_start): Use NULL_TREE.
11087 Simplify test for memory referencing statement. Exclude
11088 non-invariant ADDR_EXPRs.
11089 * tree-pretty-print.c (dump_generic_node): Do not handle memory tags.
11090 * tree-loop-distribution.c (generate_memset_zero): Adjust.
11091 (rdg_flag_uses): Likewise.
11092 * tree-tailcall.c (suitable_for_tail_opt_p): Remove memory-tag
11093 related code.
11094 (tree_optimize_tail_calls_1): Also split the
11095 edge from the entry block if we have degenerate PHI nodes in
11096 the first basic block.
11097 * tree.c (init_ttree): Remove memory-tag related code.
11098 (tree_code_size): Likewise.
11099 (tree_node_structure): Likewise.
11100 (build7_stat): Re-write to be build6_stat.
11101 * tree.h (MTAG_P, TREE_MEMORY_TAG_CHECK, TMR_TAG): Remove.
11102 (SSA_VAR_P): Adjust.
11103 (struct tree_memory_tag): Remove.
11104 (struct tree_memory_partition_tag): Likewise.
11105 (union tree_node): Adjust.
11106 (build7): Re-write to be build6.
11107 * tree-pass.h (pass_reset_cc_flags): Remove.
11108 (TODO_update_address_taken): New flag.
11109 (pass_simple_dse): Remove.
11110 * ipa-cp.c (ipcp_update_callgraph): Update SSA form.
11111 * params.h (MAX_ALIASED_VOPS): Remove.
11112 (AVG_ALIASED_VOPS): Likewise.
11113 * omp-low.c (expand_omp_taskreg): Update SSA form.
11114 * tree-ssa-dse.c (dse_optimize_stmt): Properly query if the rhs
11115 aliases the lhs in a copy stmt.
11116 * tree-ssa-dse.c (struct address_walk_data): Remove.
11117 (memory_ssa_name_same): Likewise.
11118 (memory_address_same): Likewise.
11119 (get_kill_of_stmt_lhs): Likewise.
11120 (dse_possible_dead_store_p): Simplify, use the oracle. Handle
11121 unused stores. Look through PHI nodes into post-dominated regions.
11122 (dse_optimize_stmt): Simplify. Properly remove stores.
11123 (tree_ssa_dse): Compute dominators.
11124 (execute_simple_dse): Remove.
11125 (pass_simple_dse): Likewise.
11126 * ipa-reference.c (scan_stmt_for_static_refs): Open-code
11127 gimple_loaded_syms and gimple_stored_syms computation.
11128 * toplev.c (dump_memory_report): Dump alias and pta stats.
11129 * tree-ssa-sccvn.c (vn_reference_compute_hash): Simplify.
11130 (vn_reference_eq): Likewise.
11131 (vuses_to_vec, copy_vuses_from_stmt, vdefs_to_vec,
11132 copy_vdefs_from_stmt, shared_lookup_vops, shared_vuses_from_stmt,
11133 valueize_vuses): Remove.
11134 (get_def_ref_stmt_vuses): Simplify. Rename to ...
11135 (get_def_ref_stmt_vuse): ... this.
11136 (vn_reference_lookup_2): New function.
11137 (vn_reference_lookup_pieces): Use walk_non_aliased_vuses for
11138 walking equivalent vuses. Simplify.
11139 (vn_reference_lookup): Likewise.
11140 (vn_reference_insert): Likewise.
11141 (vn_reference_insert_pieces): Likewise.
11142 (visit_reference_op_call): Simplify.
11143 (visit_reference_op_load): Likewise.
11144 (visit_reference_op_store): Likewise.
11145 (init_scc_vn): Remove shared_lookup_vuses initialization.
11146 (free_scc_vn): Remove shared_lookup_vuses freeing.
11147 (sort_vuses, sort_vuses_heap): Remove.
11148 (get_ref_from_reference_ops): Export.
11149 * tree-ssa-sccvn.h (struct vn_reference_s): Replace vuses
11150 vector with single vuse pointer.
11151 (vn_reference_lookup_pieces, vn_reference_lookup,
11152 vn_reference_insert, vn_reference_insert_pieces): Adjust prototypes.
11153 (shared_vuses_from_stmt): Remove.
11154 (get_ref_from_reference_ops): Declare.
11155 * tree-ssa-loop-manip.c (slpeel_can_duplicate_loop_p): Adjust.
11156 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Remove
11157 memory-tag related code.
11158 * tree-ssa-ccp.c (get_symbol_constant_value): Remove memory-tag code.
11159 (likely_value): Add comment, skip static-chain of call statements.
11160 (surely_varying_stmt_p): Adjust.
11161 (gimplify_and_update_call_from_tree): Likewise.
11162 (execute_fold_all_builtins): Do not rebuild alias info.
11163 (gimplify_and_update_call_from_tree): Properly update VOPs.
11164 * tree-ssa-loop-ivopts.c (get_ref_tag): Remove.
11165 (copy_ref_info): Remove memory-tag related code.
11166 * tree-call-cdce.c (tree_call_cdce): Rename the VOP.
11167 * ipa-pure-const.c (check_decl): Remove memory-tag related code.
11168 (check_stmt): Open-code gimple_loaded_syms and gimple_stored_syms
11169 computation.
11170 * tree-ssa-dom.c (gimple_p): Remove typedef.
11171 (eliminate_redundant_computations): Adjust.
11172 (record_equivalences_from_stmt): Likewise.
11173 (avail_expr_hash): Likewise.
11174 (avail_expr_eq): Likewise.
7a715bba 11175 * tree-ssa-propagate.c (update_call_from_tree): Properly update VOPs.
5006671f
RG
11176 (stmt_makes_single_load): Likewise.
11177 (stmt_makes_single_store): Likewise.
11178 * tree-ssa-alias.c: Rewrite completely.
11179 (debug_memory_partitions, dump_mem_ref_stats, debug_mem_ref_stats,
11180 debug_mem_sym_stats, dump_mem_sym_stats_for_var,
11181 debug_all_mem_sym_stats, debug_mp_info, update_mem_sym_stats_from_stmt,
11182 delete_mem_ref_stats, create_tag_raw, dump_points_to_info,
11183 dump_may_aliases_for, debug_may_aliases_for, new_type_alias):
11184 Remove public functions.
11185 (pass_reset_cc_flags): Remove.
11186 (pass_build_alias): Move ...
11187 * tree-ssa-structalias.c (pass_build_alias): ... here.
11188 * tree-ssa-alias.c (may_be_aliased): Move ...
11189 * tree-flow-inline.h (may_be_aliased): ... here.
11190 tree-ssa-alias.c (struct count_ptr_d, count_ptr_derefs,
11191 count_uses_and_derefs): Move ...
11192 * gimple.c: ... here.
11193 * gimple.h (count_uses_and_derefs): Declare.
11194 * tree-ssa-alias.c (dump_alias_stats, ptr_deref_may_alias_global_p,
11195 ptr_deref_may_alias_decl_p, ptr_derefs_may_alias_p,
11196 same_type_for_tbaa, nonaliasing_component_refs_p, decl_refs_may_alias_p,
11197 indirect_ref_may_alias_decl_p, indirect_refs_may_alias_p,
11198 ref_maybe_used_by_call_p, ref_maybe_used_by_stmt_p,
11199 call_may_clobber_ref_p, stmt_may_clobber_ref_p, maybe_skip_until,
11200 get_continuation_for_phi, walk_non_aliased_vuses, walk_aliased_vdefs):
11201 New functions.
11202 * tree-dfa.c (refs_may_alias_p): Move ...
11203 * tree-ssa-alias.c (refs_may_alias_p): ... here. Extend.
11204 * tree-ssa-alias.h: New file.
11205 * tree-ssa-sink.c (is_hidden_global_store): Adjust.
11206 (statement_sink_location): Likewise.
11207 * opts.c (decode_options): Do not adjust max-aliased-vops or
11208 avg-aliased-vops values.
11209 * timevar.def (TV_TREE_MAY_ALIAS): Remove.
11210 (TV_CALL_CLOBBER): Likewise.
11211 (TV_FLOW_SENSITIVE): Likewise.
11212 (TV_FLOW_INSENSITIVE): Likewise.
11213 (TV_MEMORY_PARTITIONING): Likewise.
11214 (TV_ALIAS_STMT_WALK): New timevar.
11215 * tree-ssa-loop-ivcanon.c (empty_loop_p): Adjust.
11216 * tree-ssa-address.c (create_mem_ref_raw): Use build6.
11217 (get_address_description): Remove memory-tag related code.
11218 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Adjust.
11219 * treestruct.def (TS_MEMORY_TAG, TS_MEMORY_PARTITION_TAG): Remove.
11220 * tree-eh.c (cleanup_empty_eh): Do not leave stale SSA_NAMEs
11221 and immediate uses in statements. Document.
11222 * gimple-pretty-print.c (dump_gimple_mem_ops): Adjust.
11223 (dump_symbols): Remove.
11224 (dump_gimple_mem_ops): Do not dump loaded or stored syms.
11225 * alias.c (get_deref_alias_set): New function split out from ...
11226 (get_alias_set): ... here.
11227 * alias.h (get_deref_alias_set): Declare.
11228 * tree-vect-data-refs.c (vect_create_data_ref_ptr): Remove unused
11229 type parameter. Remove restrict pointer handling. Create a
11230 ref-all pointer in case type-based alias sets do not conflict.
11231 (vect_analyze_data_refs): Remove SMT related code.
11232 * tree-vect-stmts.c (vectorizable_store): Re-instantiate TBAA assert.
11233 (vectorizable_load): Likewise.
11234 * tree-data-ref.h (struct dr_alias): Remove symbol_tag field.
11235 (DR_SYMBOL_TAG, DR_VOPS): Remove.
11236 * tree-data-ref.c (dr_may_alias_p): Use the alias-oracle.
11237 Ignore vops and SMTs.
11238 (dr_analyze_alias): Likewise..
11239 (free_data_ref): Likewise.
11240 (create_data_ref): Likewise.
11241 (analyze_all_data_dependences): Likewise.
11242 (get_references_in_stmt): Adjust.
11243 * tree-flow-inline.h (gimple_aliases_computed_p,
11244 gimple_addressable_vars, gimple_call_clobbered_vars,
11245 gimple_call_used_vars, gimple_global_var, may_aliases, memory_partition,
11246 factoring_name_p, mark_call_clobbered, clear_call_clobbered,
11247 compare_ssa_operands_equal, symbol_mem_tag, set_symbol_mem_tag,
11248 gimple_mem_ref_stats): Remove.
11249 (gimple_vop): New function.
11250 (op_iter_next_use): Remove vuses and mayuses cases.
11251 (op_iter_next_def): Remove vdefs case.
11252 (op_iter_next_tree): Remove vuses, mayuses and vdefs cases.
11253 (clear_and_done_ssa_iter): Do not set removed fields.
11254 (op_iter_init): Likewise. Skip vuse and/or vdef if requested.
11255 Assert we are not iterating over vuses or vdefs if not also
11256 iterating over uses or defs.
11257 (op_iter_init_use): Likewise.
11258 (op_iter_init_def): Likewise.
11259 (op_iter_next_vdef): Remove.
11260 (op_iter_next_mustdef): Likewise.
11261 (op_iter_init_vdef): Likewise.
11262 (compare_ssa_operands_equal): Likewise.
11263 (link_use_stmts_after): Handle vuse operand.
11264 (is_call_used): Use is_call_clobbered.
11265 (is_call_clobbered): Global variables are always call clobbered,
11266 query the call-clobbers bitmap.
11267 (mark_call_clobbered): Ignore global variables.
11268 (clear_call_clobbered): Likewise.
11269 * tree-ssa-coalesce.c (create_outofssa_var_map): Adjust
11270 virtual operands sanity check.
11271 * tree.def (NAME_MEMORY_TAG, SYMBOL_MEMORY_TAG, MEMORY_PARTITION_TAG):
11272 Remove.
11273 (TARGET_MEM_REF): Remove TMR_TAG operand.
11274 * tree-dfa.c (add_referenced_var): Initialize call-clobber state.
11275 Remove call-clobber related code.
11276 (remove_referenced_var): Likewise. Do not clear mpt or symbol_mem_tag.
11277 (dump_variable): Do not dump SMTs, memory stats, may-aliases or
11278 partitions or escape reason.
11279 (get_single_def_stmt, get_single_def_stmt_from_phi,
11280 get_single_def_stmt_with_phi): Remove.
11281 (dump_referenced_vars): Tidy.
11282 (get_ref_base_and_extent): Allow bare decls.
11283 (collect_dfa_stats): Adjust.
11284 * graphite.c (rename_variables_in_stmt): Adjust.
11285 (graphite_copy_stmts_from_block): Likewise.
11286 (translate_clast): Likewise.
11287 * tree-ssa-pre.c (struct bb_bitmap_sets): Add expr_dies bitmap.
11288 (EXPR_DIES): New.
11289 (translate_vuse_through_block): Use the oracle.
11290 (phi_translate_1): Adjust.
11291 (value_dies_in_block_x): Use the oracle. Cache the outcome
11292 in EXPR_DIES.
11293 (valid_in_sets): Check if the VUSE for
11294 a REFERENCE is available.
11295 (eliminate): Do not remove stmts during elimination,
11296 instead queue and remove them afterwards.
11297 (do_pre): Do not rebuild alias info.
11298 (pass_pre): Run TODO_rebuild_alias before PRE.
11299 * tree-ssa-live.c (remove_unused_locals): Remove memory-tag code.
11300 * tree-sra.c (sra_walk_function): Use gimple_references_memory_p.
11301 (mark_all_v_defs_stmt): Remove.
11302 (mark_all_v_defs_seq): Adjust.
11303 (sra_replace): Likewise.
11304 (scalarize_use): Likewise.
11305 (scalarize_copy): Likewise.
11306 (scalarize_init): Likewise.
11307 (scalarize_ldst): Likewise.
11308 (todoflags): Remove.
11309 (tree_sra): Do not rebuild alias info.
11310 (tree_sra_early): Adjust.
11311 (pass_sra): Run TODO_update_address_taken before SRA.
11312 * tree-predcom.c (set_alias_info): Remove.
11313 (prepare_initializers_chain): Do not call it.
11314 (mark_virtual_ops_for_renaming): Adjust.
11315 (mark_virtual_ops_for_renaming_list): Remove.
11316 (initialize_root_vars): Adjust.
11317 (initialize_root_vars_lm): Likewise.
11318 (prepare_initializers_chain): Likewise.
11319 * tree-ssa-copy.c (may_propagate_copy): Remove memory-tag related code.
11320 (may_propagate_copy_into_stmt): Likewise.
11321 (merge_alias_info): Do nothing for now.
11322 (propagate_tree_value_into_stmt): Adjust.
11323 (stmt_may_generate_copy): Likewise.
11324 * tree-ssa-forwprop.c (tidy_after_forward_propagate_addr): Do
11325 not mark symbols for renaming.
11326 (forward_propagate_addr_expr): Match up push/pop_stmt_changes
11327 with the same statement, make sure to update the new pointed-to one.
11328 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not copy
11329 call statements, do not mark symbols for renaming.
11330 (mark_operand_necessary): Dump something.
11331 (ref_may_be_aliased): New function.
11332 (mark_aliased_reaching_defs_necessary_1): New helper function.
11333 (mark_aliased_reaching_defs_necessary): Likewise.
11334 (mark_all_reaching_defs_necessary_1): Likewise.
11335 (mark_all_reaching_defs_necessary): Likewise.
11336 (propagate_necessity): Do not process virtual PHIs. For
11337 non-aliased loads mark all reaching definitions as necessary.
11338 For aliased loads and stores mark the immediate dominating
11339 aliased clobbers as necessary.
11340 (visited): New global static.
11341 (perform_tree_ssa_dce): Free visited bitmap after propagating
11342 necessity.
11343 (remove_dead_phis): Perform simple dead virtual PHI removal.
11344 (remove_dead_stmt): Properly unlink virtual operands when
11345 removing stores.
11346 (eliminate_unnecessary_stmts): Schedule PHI removal after
11347 stmt removal.
11348 * tree-ssa-ter.c (is_replaceable_p): Adjust.
11349 (process_replaceable): Likewise.
11350 (find_replaceable_in_bb): Likewise.
11351 * tree-ssa.c (verify_ssa_name): Verify all VOPs are
11352 based on the single gimple vop.
11353 (verify_flow_insensitive_alias_info): Remove.
11354 (verify_flow_sensitive_alias_info): Likewise.
11355 (verify_call_clobbering): Likewise.
11356 (verify_memory_partitions): Likewise.
11357 (verify_alias_info): Likewise.
11358 (verify_ssa): Adjust..
11359 (execute_update_addresses_taken): Export. Update SSA
11360 manually. Optimize only when optimizing. Use a local bitmap.
11361 (pass_update_address_taken): Remove TODO_update_ssa, add
11362 TODO_dump_func.
11363 (pass_update_address_taken): Just use TODO_update_address_taken.
11364 (init_tree_ssa): Do not initialize addressable_vars.
11365 (verify_ssa): Verify new VUSE / VDEF properties.
11366 Verify that all stmts definitions have the stmt as SSA_NAME_DEF_STMT.
11367 Do not call verify_alias_info.
11368 (delete_tree_ssa): Clear the VUSE, VDEF operands.
11369 Do not free the loaded and stored syms bitmaps. Reset the escaped
11370 and callused solutions. Do not free addressable_vars.
11371 Remove memory-tag related code.
11372 (warn_uninitialized_var): Aliases are always available.
11373 * tree-ssa-loop-prefetch.c (gather_memory_references): Adjust.
11374 * lambda-code.c (can_put_in_inner_loop): Adjust.
11375 (can_put_after_inner_loop): Likewise.
11376 (perfect_nestify): Likewise.
11377 * tree-vect-stmts.c (vect_stmt_relevant_p): Adjust.
11378 (vect_gen_widened_results_half): Remove CALL_EXPR handling.
11379 (vectorizable_conversion): Do not mark symbols for renaming.
11380 * tree-inline.c (remap_gimple_stmt): Clear VUSE/VDEF.
11381 (expand_call_inline): Unlink the calls virtual operands before
11382 replacing it.
11383 (tree_function_versioning): Do not call update_ssa if we are not
11384 updating clones. Simplify.
11385 * tree-ssa-phiprop.c (phivn_valid_p): Adjust.
11386 (propagate_with_phi): Likewise..
11387 * tree-outof-ssa.c (create_temp): Remove memory tag and call
11388 clobber code. Assert we are not aliased or global.
11389 * tree-flow.h: Include tree-ssa-alias.h
11390 (enum escape_type): Remove.
11391 (struct mem_sym_stats_d): Likewise.
11392 (struct mem_ref_stats_d): Likewise.
11393 (struct gimple_df): Add vop member. Remove global_var,
11394 call_clobbered_vars, call_used_vars, addressable_vars,
11395 aliases_compted_p and mem_ref_stats members. Add syms_to_rename,
11396 escaped and callused members.
11397 (struct ptr_info_def): Remove all members, add points-to solution
11398 member pt.
11399 (struct var_ann_d): Remove in_vuse_list, in_vdef_list,
11400 call_clobbered, escape_mask, mpt and symbol_mem_tag members.
11401 * Makefile.in (TREE_FLOW_H): Add tree-ssa-alias.h.
11402 (tree-ssa-structalias.o): Remove tree-ssa-structalias.h.
11403 (tree-ssa-alias.o): Likewise.
11404 (toplev.o): Add tree-ssa-alias.h
11405 (GTFILES): Remove tree-ssa-structalias.h, add tree-ssa-alias.h.
11406 * gimple.c (gimple_set_bb): Fix off-by-one error.
11407 (is_gimple_reg): Do not handle memory tags.
11408 (gimple_copy): Also copy virtual operands.
11409 Delay updating the statement. Do not reset loaded and stored syms.
11410 (gimple_set_stored_syms): Remove.
11411 (gimple_set_loaded_syms): Likewise.
11412 (gimple_call_copy_skip_args): Copy the virtual operands
11413 and mark the new statement modified.
11414 * tree-ssa-structalias.c (may_alias_p): Remove.
11415 (set_uids_in_ptset): Take the alias set to prune with as
11416 parameter. Fold in the alias test of may_alias_p.
11417 (compute_points_to_sets): Compute whether a ptr is dereferenced
11418 in a local sbitmap.
11419 (process_constraint): Deal with &ANYTHING on the lhs, reject all
11420 other ADDRESSOF constraints on the lhs.
11421 (get_constraint_for_component_ref): Assert that we don't get
11422 ADDRESSOF constraints from the base of the reference.
11423 Properly generate UNKNOWN_OFFSET for DEREF if needed.
11424 (struct variable_info): Remove collapsed_to member.
11425 (get_varinfo_fc): Remove.
11426 (new_var_info): Do not set collapsed_to.
11427 (dump_constraint): Do not follow cycles.
11428 (dump_constraint_graph): Likewise.
11429 (build_pred_graph): Likewise.
11430 (build_succ_graph): Likewise.
11431 (rewrite_constraints): Likewise.
11432 (do_simple_structure_copy): Remove.
11433 (do_rhs_deref_structure_copy): Remove.
11434 (do_lhs_deref_structure_copy): Remove.
11435 (collapse_rest_of_var): Remove.
11436 (do_structure_copy): Re-implement.
11437 (pta_stats): New global variable.
11438 (dump_pta_stats): New function.
11439 (struct constraint_expr): Make offset signed.
11440 (UNKNOWN_OFFSET): Define special value.
11441 (dump_constraint): Dump UNKNOWN_OFFSET as UNKNOWN.
11442 (solution_set_expand): New helper function split out from ...
11443 (do_sd_constraint): ... here.
11444 (solution_set_add): Handle UNKNOWN_OFFSET. Handle negative offsets.
11445 (do_ds_constraint): Likewise.
11446 (do_sd_constraint): Likewise. Do not special-case ESCAPED = *ESCAPED
11447 and CALLUSED = *CALLUSED.
11448 (set_union_with_increment): Make inc argument signed.
11449 (type_safe): Remove.
11450 (get_constraint_for_ptr_offset): Handle unknown and negative
11451 constant offsets.
11452 (first_vi_for_offset): Handle offsets before start. Bail
11453 out early for offsets beyond the variable extent.
11454 (first_or_preceding_vi_for_offset): New function.
11455 (init_base_vars): Add ESCAPED = ESCAPED + UNKNOWN_OFFSET constraint.
11456 Together with ESCAPED = *ESCAPED this properly computes reachability.
11457 (find_what_var_points_to): New function.
11458 (find_what_p_points_to): Implement in terms of find_what_var_points_to.
11459 (pt_solution_reset, pt_solution_empty_p, pt_solution_includes_global,
11460 pt_solution_includes_1, pt_solution_includes, pt_solutions_intersect_1,
11461 pt_solutions_intersect): New functions.
11462 (compute_call_used_vars): Remove.
11463 (compute_may_aliases): New main entry into PTA computation.
11464 * gimple.h (gimple_p): New typedef.
11465 (struct gimple_statement_base): Remove references_memory_p.
11466 (struct gimple_statement_with_memory_ops_base): Remove
11467 vdef_ops, vuse_ops, stores and loads members. Add vdef and vuse
11468 members.
11469 (gimple_vuse_ops, gimple_set_vuse_ops, gimple_vdef_ops,
11470 gimple_set_vdef_ops, gimple_loaded_syms, gimple_stored_syms,
11471 gimple_set_references_memory): Remove.
11472 (gimple_vuse_op, gimple_vdef_op, gimple_vuse, gimple_vdef,
11473 gimple_vuse_ptr, gimple_vdef_ptri, gimple_set_vuse, gimple_set_vdef):
11474 New functions.
11475 * tree-cfg.c (move_block_to_fn): Fix off-by-one error.
11476 (verify_expr): Allow RESULT_DECL.
11477 (gimple_duplicate_bb): Do not copy virtual operands.
11478 (gimple_duplicate_sese_region): Adjust.
11479 (gimple_duplicate_sese_tail): Likewise.
11480 (mark_virtual_ops_in_region): Remove.
11481 (move_sese_region_to_fn): Do not call it.
11482 * passes.c (init_optimization_passes): Remove pass_reset_cc_flags
11483 and pass_simple_dse.
11484 (execute_function_todo): Handle TODO_update_address_taken,
11485 call execute_update_addresses_taken for TODO_rebuild_alias.
11486 (execute_todo): Adjust.
11487 (execute_one_pass): Init dump files early.
11488 * ipa-struct-reorg.c (finalize_var_creation): Do not mark vars
11489 call-clobbered.
11490 (create_general_new_stmt): Clear vops.
11491 * tree-ssa-reassoc.c (get_rank): Adjust.
11492 * tree-vect-slp.c (vect_create_mask_and_perm): Do not mark
11493 symbols for renaming.
11494 * params.def (PARAM_MAX_ALIASED_VOPS): Remove.
11495 (PARAM_AVG_ALIASED_VOPS): Likewise.
11496 * tree-ssanames.c (init_ssanames): Allocate SYMS_TO_RENAME.
11497 (duplicate_ssa_name_ptr_info): No need to copy the shared bitmaps.
7a715bba 11498 * tree-ssa-operands.c: Simplify for new virtual operand representation.
5006671f
RG
11499 (operand_build_cmp, copy_virtual_operands,
11500 create_ssa_artificial_load_stmt, add_to_addressable_set,
11501 gimple_add_to_addresses_taken): Remove public functions.
11502 (unlink_stmt_vdef): New function.
11503
457d1d00
AM
115042009-04-03 Alan Modra <amodra@bigpond.net.au>
11505
11506 * config.gcc (powerpc-*-linux*): Merge variants.
11507
e19da24c 115082009-04-02 Chao-ying Fu <fu@mips.com>
60839f5d 11509 James Grosbach <james.grosbach@microchip.com>
e19da24c
CF
11510
11511 * config/mips/mips.c (mips_frame_info): Add acc_mask, num_acc,
11512 num_cop0_regs, acc_save_offset, cop0_save_offset, acc_sp_offset,
11513 cop0_sp_offset.
11514 (machine_function): Add interrupt_handler_p, use_shadow_register_set_p,
11515 keep_interrupts_masked_p, use_debug_exception_return_p.
11516 (mips_attribute_table): Add interrupt, use_shadow_register_set,
11517 keep_interrupts_masked, use_debug_exception_return.
11518 (mips_interrupt_type_p, mips_use_shadow_register_set_p,
11519 mips_keep_interrupts_masked_p, mips_use_debug_exception_return_p):
11520 New functions.
11521 (mips_function_ok_for_sibcall): Return false for interrupt handlers.
11522 (mips_print_operand): Process COP0 registers to print $0 .. $31
11523 correctly for GAS to process.
11524 (mips_interrupt_extra_call_saved_reg_p): New function.
11525 (mips_cfun_call_saved_reg_p): For interrupt handlers, we need to check
11526 extra registers.
11527 (mips_cfun_might_clobber_call_saved_reg_p): Likewise.
11528 (mips_compute_frame_info): Add supports for interrupt context that
11529 includes doubleword accumulators and COP0 registers.
11530 (mips_for_each_saved_acc): New function.
11531 (mips_for_each_saved_gpr_and_fpr): Change the function name from
11532 mips_for_each_saved_reg.
11533 (mips_save_reg): Save accumulators.
11534 (mips_kernel_reg_p): A new for_each_rtx callback.
11535 (mips_expand_prologue): Support interrupt handlers.
11536 (mips_restore_reg): Restore accumulators.
11537 (mips_expand_epilogue): Support interrupt handlers.
11538 (mips_can_use_return_insn): Return false for interrupt handlers.
11539 (mips_epilogue_uses): New function.
11540 * config/mips/mips.md (UNSPEC_ERET, UNSPEC_DERET, UNSPEC_DI,
11541 UNSPEC_EHB, UNSPEC_RDPGPR, UNSPEC_COP0): New UNSPEC.
11542 (mips_eret, mips_deret, mips_di, mips_ehb, mips_rdpgpr,
11543 cop0_move): New instructions.
11544 * config/mips/mips-protos.h (mips_epilogue_uses): Declare.
11545 * config/mips/mips.h (K0_REG_NUM, K1_REG_NUM, KERNEL_REG_P): New
11546 defines.
11547 (COP0_STATUS_REG_NUM, COP0_CAUSE_REG_NUM, COP0_EPC_REG_NUM):
11548 New defines.
11549 (CAUSE_IPL, SR_IPL, SR_EXL, SR_IE): New defines.
11550 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): For
11551 interrupt handlers, we use K0 as the temporary register.
11552 (EPILOGUE_USES): Change to a function call.
11553 * config/mips/sde.h (MIPS_EPILOGUE_TEMP_REGNUM): For interrupt
11554 handlers, we use K0 as the temporary register.
2ba9daa7 11555
e19da24c
CF
11556 * doc/extend.texi (Function Attributes): Document interrupt,
11557 use_shadow_register_set, keep_interrupts_masked,
11558 use_debug_exception_return for MIPS attributes.
11559
aa1ca044
AM
115602009-04-03 Alan Modra <amodra@bigpond.net.au>
11561
11562 * config.gcc (powerpc64-*-gnu*): Add rs6000/default64.h to tm_file.
11563 Remove a number of t-files from tmake_file.
11564 * config/rs6000/sysv4.opt (mprototype): Name variable target_prototype.
11565 * config/rs6000/sysv4.h (TARGET_PROTOTYPE): Define.
11566 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
11567 target_prototype, not TARGET_PROTOTYPE.
11568 (LINK_OS_GNU_SPEC): Define.
11569 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Delete tramp.S
11570 and darwin-ldoubdle.c.
11571
14fdc613
MM
115722009-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
11573
11574 PR driver/39293
11575 * gcc.c (save_temps_flag): Add support for -save-temps=obj.
11576 (cpp_options): Ditto.
11577 (default_compilers): Ditto.
11578 (display_help): Ditto.
11579 (process_command): Ditto.
11580 (do_spec_1): Ditto.
11581 (set_input): Use lbasename instead of duplicate code.
11582 (save_temps_prefix): New static for -save-temps=obj.
11583 (save_temps_length): Ditto.
2ba9daa7 11584
14fdc613
MM
11585 * doc/invoke.texi (-save-temps=obj): Document new variant to
11586 -save-temps switch.
11587
d3aa398e
JL
115882009-04-02 Jeff Law <law@redhat.com>
11589
11590 * reload1.c (fixup_eh_region_notes): Remove write-only "trap_count"
11591 variable.
11592
83f0ccb8
L
115932009-04-02 H.J. Lu <hongjiu.lu@intel.com>
11594
11595 * configure.ac: Support -Bstatic/-Bdynamic for linker version > 2.
11596 * configure: Regenerated.
11597
dcb6e951
RAE
115982009-04-02 Rafael Avila de Espindola <espindola@google.com>
11599
11600 * c-decl.c (merge_decls): Make sure newdecl and olddecl don't
11601 share the argument list.
11602
d85478c2
RAE
116032009-04-02 Rafael Avila de Espindola <espindola@google.com>
11604
11605 Merge
11606
11607 2009-02-12 Diego Novillo <dnovillo@google.com>
11608
83f0ccb8
L
11609 * varpool.c (debug_varpool): New.
11610 * cgraph.h (debug_varpool): Declare.
d85478c2 11611
34f42a49
JH
116122009-04-02 Jan Hubicka <jh@suse.cz>
11613
11614 * passes.c (init_optimization_passes): Remove two copies of ehcleanup
11615 pass.
11616
a4747b4a
L
116172009-04-02 H.J. Lu <hongjiu.lu@intel.com>
11618
11619 * config/i386/i386.c (ix86_abi): Move initialization to ...
11620 (override_options): Here.
11621
63a9de54
CB
116222009-04-02 Christian Bruel <christian.bruel@st.com>
11623
11624 * config/sh/sh.c (sh_dwarf_register_span): New function.
11625 (TARGET_DWARF_REGISTER_SPAN): Define.
11626 * config/sh/sh-protos.h (sh_dwarf_register_span): Declare.
2ba9daa7 11627
2f0fa28e
IR
116282009-04-02 Ira Rosen <irar@il.ibm.com>
11629
11630 PR tree-optimization/39595
2ba9daa7 11631 * tree-vect-slp.c (vect_build_slp_tree): Check that the size of
2f0fa28e
IR
11632 interleaved loads group is not greater than the SLP group size.
11633
bbf7ce11
RAE
116342009-04-02 Rafael Avila de Espindola <espindola@google.com>
11635
11636 * builtins.c (is_builtin_name): New.
11637 (called_as_built_in): Use is_builtin_name.
11638 * tree.h (is_builtin_name): New.
11639 * varasm.c (incorporeal_function_p): Use is_builtin_name
11640
47e4dfcf
AS
116412009-04-02 Andrew Stubbs <ams@codesourcery.com>
11642
11643 * config/sh/linux-unwind.h: Disable when inhibit_libc is defined.
11644
d0940d56
DS
116452009-04-02 Dodji Seketeli <dodji@redhat.com>
11646
11647 PR c++/26693
532bfb0a 11648 * c-decl.c (clone_underlying_type): Move this ...
d0940d56
DS
11649 * c-common.c (set_underlying_type): ... here.
11650 Also, make sure the function properly sets TYPE_STUB_DECL() on
11651 the newly created typedef variant type.
11652 * c-common.h (is_typedef_decl, set_underlying_type): Declare ...
7a715bba
UB
11653 * c-common.c (is_typedef_decl, set_underlying_type): ... new entry
11654 points.
d0940d56 11655
bf1cbdc6
RG
116562009-04-02 Richard Guenther <rguenther@suse.de>
11657
11658 PR tree-optimization/37221
11659 * tree-flow.h (degenerate_phi_result): Declare.
11660 * tree-ssa-dom.c (degenerate_phi_result): Export.
11661 * tree-scalar-evolution.c (analyze_initial_condition): If
11662 the initial condition is defined by a degenerate PHI node
11663 use the degenerate value.
11664
87cfb32c
EB
116652009-04-01 Eric Botcazou <ebotcazou@adacore.com>
11666
11667 PR rtl-optimization/39588
11668 * combine.c (merge_outer_ops): Do not set the constant when this
11669 is not necessary.
11670 (simplify_shift_const_1): Do not modify it either in this case.
11671
bbb6eae8
SB
116722009-04-01 Steven Bosscher <steven@gcc.gnu.org>
11673
11674 * config/ia64/ia64.c (ia64_handle_option): Inform user that Itanium1
11675 tuning is deprecated if -mtune value is set to an Itanium1 variant.
11676
839a3b8a
JJ
116772009-04-01 Janis Johnson <janis187@us.ibm.com>
11678
11679 PR c/29027
11680 * c-lex.c (interpret_float): Default (no suffix) is double.
11681
667e8acb
XDL
116822009-04-1 Xinliang David Li <davidxl@google.com>
11683
11684 * config/i386/i386.c (legitimate_constant_p): Recognize
11685 all one vector constant.
11686
60839f5d 116872009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11688
60839f5d 11689 * config/vax/vax.c: Add #includes to silence warnings.
c4e75102
MT
11690 Change #include order to silence two warnings.
11691
60839f5d 116922009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11693
60839f5d 11694 * config/vax/linux.h (TARGET_DEFAULT): Add the MASK_QMATH flag bit.
c4e75102
MT
11695 (ASM_SPEC): Pass -k to the assembler for PIC code.
11696
60839f5d 116972009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11698
60839f5d
EB
11699 * config.gcc: Add vax-*-linux* to the switch.
11700 * config/vax/linux.h: New file. (TARGET_VERSION,
c4e75102
MT
11701 TARGET_OS_CPP_BUILTINS, TARGET_DEFAULT, CPP_SPEC, LINK_SPEC): Define.
11702
60839f5d 117032009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11704
60839f5d 11705 * config/vax/vax.c (vax_output_int_move, adjacent_operands_p):
c4e75102 11706 Use predicate macros instead of GET_CODE() == foo.
60839f5d 11707 * config/vax/vax.md (movsi_2, movstrictqi, and<mode>3, ashrsi3,
c4e75102
MT
11708 ashlsi3, rotrsi3, <unnamed>): Likewise.
11709
60839f5d 117102009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11711
60839f5d 11712 * config/vax/builtins.md (jbbssiqi, jbbssihi, jbbssisi, jbbcciqi,
c4e75102 11713 jbbccihi, jbbccisi): Remova trailing whitespace.
60839f5d
EB
11714 * config/vax/constraints.md: Likewise.
11715 * config/vax/elf.h: (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
11716 * config/vax/openbsd1.h (OBSD_OLD_GAS): Likewise.
11717 * config/vax/predicates.md: Likewise.
11718 * config/vax/vax.c (print_operand_address, vax_output_int_move,
c4e75102 11719 vax_expand_addsub_di_operands, adjacent_operands_p): Likewise.
60839f5d
EB
11720 * config/vax/vax.h: Likewise.
11721 * config/vax/vax.md (nonlocal_goto): Likewise.
c4e75102 11722
60839f5d 117232009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11724
60839f5d 11725 * config/vax/vax.c (vax_float_literal, vax_output_int_move)
c4e75102
MT
11726 (indirectable_address_p, adjacent_operands_p): Add spaces around
11727 braces.
60839f5d 11728 * config/vax/vax-protos.h (adjacent_operands_p): Likewise.
c4e75102 11729
60839f5d 117302009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11731
60839f5d 11732 * config/vax/vax.c (legitimate_constant_address_p,
c4e75102
MT
11733 legitimate_constant_p, indirectable_address_p, nonindexed_address_p,
11734 index_term_p, reg_plus_index_p, legitimate_address_p,
11735 vax_mode_dependent_address_p): Update comments to match functions
11736 modified by the recent int->bool conversion.
11737
60839f5d 117382009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11739
60839f5d
EB
11740 * config/vax/builtins.md: Update copyright message.
11741 * config/vax/constraints.md: Likewise.
11742 * config/vax/netbsd-elf.h: Likewise.
11743 * config/vax/predicates.md: Likewise.
11744 * config/vax/vax-protos.h: Likewise.
11745 * config/vax/vax.c: Likewise.
11746 * config/vax/vax.h: Likewise.
11747 * config/vax/vax.md: Likewise.
11748 * config/vax/vax.opt: Likewise.
c4e75102 11749
60839f5d 117502009-04-01 Jan-Benedict Glaw <jbglaw@jbglaw-dev.homezone.telefonica.de>
c4e75102 11751
60839f5d 11752 * config/vax/builtins.md (ffssi2, ffssi2_internal,
c4e75102 11753 sync_lock_test_and_set<mode>, sync_lock_release<mode>): Fix indention.
60839f5d
EB
11754 * config/vax/constraints.md (B, R): Likewise.
11755 * config/vax/predicates.md (external_memory_operand,
c4e75102 11756 nonimmediate_addsub_di_operand): Likewise.
60839f5d
EB
11757 * config/vax/vax.c (vax_output_int_add): Likewise.
11758 * config/vax/vax.md (movsi, movsi_2, mov<mode>, call_value,
c4e75102
MT
11759 untyped_call): Likewise.
11760
60839f5d 117612009-04-01 Matt Thomas <matt@3am-software.com>
c4e75102 11762
7a715bba
UB
11763 * config/vax/predicates.md: New file.
11764 (symbolic_operand, local_symbolic_operand, external_symbolic_operand,
c4e75102
MT
11765 external_const_operand, nonsymbolic_operand, external_memory_operand,
11766 indirect_memory_operand, indexed_memory_operand,
11767 illegal_blk_memory_operand, illegal_addsub_di_memory_operand,
11768 nonimmediate_addsub_di_operand, general_addsub_di_operand): New
11769 predicate.
7a715bba
UB
11770 * config/vax/constraints.md: New file.
11771 (Z0, U06, U08, U16, CN6, S08, S16, I, J, K, L, M, N, O, G, Q, B, R, T):
11772 New constraint.
11773 * config/vax/builtins.md: New file.
11774 (ffssi2, ffssi2_internal, sync_lock_test_and_set<mode>, jbbssiqi,
11775 jbbssihi, jbbssisi, sync_lock_release<mode>, jbbcciqi, jbbccihi,
11776 jbbccisi): Define.
c4e75102
MT
11777 * config/vax/vax.opt (mqmath): Add option.
11778 * config/vax/vax.md (isfx): Extend with DI.
11779 (VAXintQH, VAXintQHSD): Define.
11780 (tst<mode>, cmp<mode>, *bit<mode>, movmemhi1, truncsiqi2, truncsihi2,
11781 mulsidi3, add<mode>3, sub<mode>, mul<mode>3, div<mode>3, and<mode>,
11782 and<mode>_const_int, ior<mode>3, xor<mode>3, neg<mode>2,
11783 one_cmpl<mode>2, ashlsi3, lshrsi3, rotlsi3): Update constraints.
11784 (movdi): Update constraints and use vax_output_int_move().
11785 (movsi, movsi_2, pushlclsymreg, pushextsymreg, movlclsymreg,
11786 movextsymreg, adddi3, adcdi3, subdi3, sbcdi3, pushextsym, movextsym,
11787 pushlclsym, movlclsym, movaddr<mode>, pushaddr<mode>,
11788 nonlocal_goto): New.
11789 (mov<mode>): Extend accepted operand types.
11790 (subdi3_old): Rename from subdi3, change update constraints and use
11791 a new implementation.
60839f5d 11792 * config/vax/vax.h (PCC_BITFIELD_TYPE_MATTERS): Add space.
c4e75102
MT
11793 (FRAME_POINTER_CFA_OFFSET, IRA_COVER_CLASSES, CLASS_MAX_NREGS,
11794 MOVE_RATIO, CLEAR_RATIO): Define.
11795 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P,
11796 CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Delete.
11797 (PRINT_OPERAND): Redefine using a function instead of inlined code.
60839f5d 11798 * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Define.
c4e75102
MT
11799 (split_quadword_operands): Make static and really allow variable
11800 splitting.
11801 (print_operand_address): Update for PIC generation.
11802 (print_operand, vax_builtin_setjmp_frame_value, vax_output_int_subtract,
11803 indexable_address_p, fixup_mathdi_operand,
11804 vax_expand_addsub_di_operands, adjacent_operands_p): New.
11805 (vax_float_literal, legitimate_constant_p,
11806 indirectable_constant_address_p, index_term_p,
11807 reg_plus_index_p): Return bool instead of int.
11808 (vax_rtx_costs): Fix cost for CONST_INT, indent and use HOST_WIDE_INT
11809 where needed.
11810 (vax_output_int_move, vax_output_int_add): Extend to allow PIC
11811 generation.
11812 (vax_output_conditional_branch): Indent.
11813 (legitimate_constant_address_p, indirectable_constant_address_p,
11814 indirectable_address_p, nonindexed_address_p, legitimate_address_p,
11815 vax_mode_dependent_address_p): Return bool instead of int, update for
11816 PIC generation.
11817 * config/vax/vax-protos.h (legitimate_constant_address_p,
11818 legitimate_constant_p, legitimate_address_p,
11819 vax_mode_dependent_address_p): Change declaration to bool.
11820 (legitimate_pic_operand_p, adjacent_operands_p, print_operand,
11821 vax_expand_addsub_di_operands, vax_output_int_subtract,
11822 vax_output_movmemsi): Declare.
11823 (split_quadword_operands, vax_float_literal): Delete declaration.
11824 * config/vax/netbsd-elf.h (CC1_SPEC, CC1PLUS_SPEC) Define.
11825 * config/vax/elf.h (NO_EXTERNAL_INDIRECT_ADDRESS,
11826 VAX_CC1_AND_CC1PLUS_SPEC, ASM_PREFERRED_EH_DATA_FORMAT,
11827 ASM_OUTPUT_DWARF_PCREL): Define.
11828 (ASM_SPEC): Change definition to allow PIC generation.
11829
9332c6eb
L
118302009-04-01 Steve Ellcey <sje@cup.hp.com>
11831
11832 * doc/sourcebuild.texi: Update front-end requirements.
11833
d93e052c
JJ
118342009-04-01 Jakub Jelinek <jakub@redhat.com>
11835
11836 PR target/39226
11837 * config/rs6000/rs6000.md (andsi3_internal5_nomc,
11838 anddi3_internal2_nomc, anddi3_internal3_nomc): Removed.
11839 (booldi3_internal3): Use boolean_or_operator instead of
11840 boolean_operator.
11841
6ccb2a4a
JM
118422009-04-01 Joseph Myers <joseph@codesourcery.com>
11843
11844 PR c/39605
11845 * c-decl.c (grokdeclarator): Pedwarn for file-scope array
11846 declarator whose size is not an integer constant expression but
11847 folds to an integer constant, then treat it as a constant
11848 subsequently.
11849
299b87f8
RG
118502009-04-01 Richard Guenther <rguenther@suse.de>
11851
11852 * fold-const.c (fold_plusminus_mult_expr): Do not fold
11853 i * 4 + 2 to (i * 2 + 1) * 2.
11854
b85eb797
JJ
118552009-04-01 Jakub Jelinek <jakub@redhat.com>
11856
11857 PR c/37772
11858 * c-parser.c (c_parser_asm_statement): Skip until close paren and
11859 return if c_parser_asm_string_literal returned NULL.
11860
235e1fe8
NC
118612009-04-01 Nick Clifton <nickc@redhat.com>
11862
11863 * config/m32c/m32c.h (LIBGCC2_UNITS_PER_WORD): Define if not
11864 already defined.
11865 * config/m32c/t-m32c (LIB2FUNCS_EXTRA): Add m32c-lib2-trapv.c.
11866 * config/m32c/m32c-lib2.c: Remove unused typedefs. Rename the
11867 other typedefs to avoid conflicts with libgcc2.c. Define labels
11868 to gain 16-bit bit-manipulation functions from libgcc2.c and then
11869 include it.
11870 * config/m32c/m32c-lib2-trapv.c: New file. Define labels
11871 to gain 16-bit trapping arithmetic functions from libgcc2.c and
11872 then include it.
11873
d6868399
RAE
118742009-04-01 Rafael Avila de Espindola <espindola@google.com>
11875
7a715bba
UB
11876 * varasm.c (default_function_rodata_section): Declare DOT as
11877 const char*.
d6868399 11878
73d21f56 118792009-04-01 Kai Tietz <kai.tietz@onevision.com>
60839f5d 11880 Andrey Galkin <agalkin@hypercom.com>
73d21f56
KT
11881
11882 PR/39492
11883 * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
11884 Make object_name unique for each process.
11885
03742a9b
JJ
118862009-04-01 Jakub Jelinek <jakub@redhat.com>
11887
11888 PR other/39591
11889 * omp-low.c (remove_exit_barrier): Don't optimize if there are any
11890 addressable variables in the parallel that could go out of scope while
11891 running queued tasks.
11892
4223ff5f
AS
118932009-04-01 Anatoly Sokolov <aesok@post.ru>
11894
11895 * config/avr/avr.h (avr_case_values_threshold): Remove declaration.
11896 (CASE_VALUES_THRESHOLD): Redefine.
11897 * config/avr/avr.c (avr_override_options): Remove initialization of
11898 avr_case_values_threshold variable.
11899 (avr_case_values_threshold): Remove variable. Add new function.
11900 * config/avr/avr-protos.h (avr_case_values_threshold): Declare.
11901 * config/avr/avr.opt (mno-tablejump): Remove option.
11902 * doc/invoke.texi (AVR Options): Remove -mno-tablejump.
11903
e893f6f3
DD
119042009-04-01 DJ Delorie <dj@redhat.com>
11905
11906 * varasm.c (default_function_rodata_section): Don't assume
11907 anything about where the first '.' in the section name is.
11908
b246d100
AM
119092009-04-01 Alan Modra <amodra@bigpond.net.au>
11910
11911 * config/rs6000/rs6000.c (rs6000_emit_stack_reset): Delete redundant
11912 rs6000_emit_stack_tie.
11913
d3e37a9e
ILT
119142009-03-31 Ian Lance Taylor <iant@google.com>
11915
11916 * tree-eh.c (tree_remove_unreachable_handlers): Compare
11917 gimple_code with GIMPLE_RESX, not RESX.
11918
c1b61fca
JM
119192009-03-31 Joseph Myers <joseph@codesourcery.com>
11920
11921 * c-common.c (c_get_ident): New.
7a715bba 11922 (c_common_nodes_and_builtins): Call it for type names that may be NULL.
c1b61fca 11923
c2d2ad48
BE
119242009-04-01 Ben Elliston <bje@au.ibm.com>
11925
11926 * config/rs6000/sysv4.opt (msdata): Improve option description.
11927
13d1a6e7
SE
119282009-03-31 Steve Ellcey <sje@cup.hp.com>
11929
11930 * config/ia64/ia64.md (divsf3_internal_lat): Remove.
11931 (divdf3_internal_lat): Remove.
11932 (divxf3_internal_lat): Remove.
11933 (divxf3_internal_thr): Remove.
11934 (divxf): Use divxf3_internal.
11935 * config/ia64/div.md (divsf3_internal_lat): New.
11936 (divdf3_internal_lat): New.
11937 (divxf3_internal): New.
11938
207bf79d
JM
119392009-03-31 Joseph Myers <joseph@codesourcery.com>
11940
11941 PR c/448
11942 * Makefile.in (USE_GCC_STDINT): Define.
11943 (stmp-int-hdrs): Install stdint.h if applicable.
11944 * c-common.c (CHAR16_TYPE): Define in terms of UINT_LEAST16_TYPE
11945 if known.
11946 (CHAR32_TYPE): Define in terms of UINT_LEAST32_TYPE if known.
11947 (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE, INT64_TYPE,
11948 UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
11949 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
11950 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
11951 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
11952 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
11953 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
11954 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
11955 (c_common_nodes_and_builtins): Initialize
11956 underlying_wchar_type_node. Do not initialize
11957 signed_wchar_type_node or unsigned_wchar_type_node. Initialize
11958 nodes for new types.
11959 (c_stddef_cpp_builtins): Define macros for new types.
11960 * c-common.h (CTI_SIGNED_WCHAR_TYPE, CTI_UNSIGNED_WCHAR_TYPE):
11961 Remove.
11962 (CTI_UNDERLYING_WCHAR_TYPE, CTI_SIG_ATOMIC_TYPE, CTI_INT8_TYPE,
11963 CTI_INT16_TYPE, CTI_INT32_TYPE, CTI_INT64_TYPE, CTI_UINT8_TYPE,
11964 CTI_UINT16_TYPE, CTI_UINT32_TYPE, CTI_UINT64_TYPE,
11965 CTI_INT_LEAST8_TYPE, CTI_INT_LEAST16_TYPE, CTI_INT_LEAST32_TYPE,
11966 CTI_INT_LEAST64_TYPE, CTI_UINT_LEAST8_TYPE, CTI_UINT_LEAST16_TYPE,
11967 CTI_UINT_LEAST32_TYPE, CTI_UINT_LEAST64_TYPE, CTI_INT_FAST8_TYPE,
11968 CTI_INT_FAST16_TYPE, CTI_INT_FAST32_TYPE, CTI_INT_FAST64_TYPE,
11969 CTI_UINT_FAST8_TYPE, CTI_UINT_FAST16_TYPE, CTI_UINT_FAST32_TYPE,
11970 CTI_UINT_FAST64_TYPE, CTI_INTPTR_TYPE, CTI_UINTPTR_TYPE): Define.
11971 (signed_wchar_type_node, unsigned_wchar_type_node): Remove.
11972 (underlying_wchar_type_node, sig_atomic_type_node, int8_type_node,
11973 int16_type_node, int32_type_node, int64_type_node,
11974 uint8_type_node, uint16_type_node, c_uint32_type_node,
11975 c_uint64_type_node, int_least8_type_node, int_least16_type_node,
11976 int_least32_type_node, int_least64_type_node,
11977 uint_least8_type_node, uint_least16_type_node,
11978 uint_least32_type_node, uint_least64_type_node,
11979 int_fast8_type_node, int_fast16_type_node, int_fast32_type_node,
11980 int_fast64_type_node, uint_fast8_type_node, uint_fast16_type_node,
11981 uint_fast32_type_node, uint_fast64_type_node, intptr_type_node,
11982 uintptr_type_node): Define.
11983 * c-cppbuiltin.c (builtin_define_constants,
11984 builtin_define_type_minmax): New.
11985 (builtin_define_stdint_macros): Define more macros.
11986 (c_cpp_builtins): Define more limit macros.
11987 (type_suffix): New.
11988 (builtin_define_type_max): Define in terms of
11989 builtin_define_type_minmax. Remove is_long parameter. All
11990 callers changed.
11991 * config.gcc (use_gcc_stdint): Define.
11992 (tm_file): Add glibc-stdint.h for targets using glibc or uClibc.
11993 Add newlib-stdint.h for generic targets.
11994 * config/glibc-stdint.h, config/newlib-stdint.h,
11995 ginclude/stdint-gcc.h, ginclude/stdint-wrap.h: New.
11996 * config/m32c/m32c.h (UINTPTR_TYPE): Define.
11997 * config/score/score.h (UINTPTR_TYPE): Define.
11998 * config/sol2.h (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE,
11999 INT32_TYPE, INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE,
12000 UINT64_TYPE, INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
12001 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
12002 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
12003 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
12004 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
12005 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Define.
12006 * config/spu/spu.h (STDINT_LONG32): Define.
12007 * configure.ac (use_gcc_stdint): Substitute.
12008 * configure: Regenerate.
12009 * doc/cpp.texi (__SIG_ATOMIC_TYPE__, __INT8_TYPE__,
12010 __INT16_TYPE__, __INT32_TYPE__, __INT64_TYPE__, __UINT8_TYPE__,
12011 __UINT16_TYPE__, __UINT32_TYPE__, __UINT64_TYPE__,
12012 __INT_LEAST8_TYPE__, __INT_LEAST16_TYPE__, __INT_LEAST32_TYPE__,
12013 __INT_LEAST64_TYPE__, __UINT_LEAST8_TYPE__, __UINT_LEAST16_TYPE__,
12014 __UINT_LEAST32_TYPE_, __UINT_LEAST64_TYPE__, __INT_FAST8_TYPE__,
12015 __INT_FAST16_TYPE__, __INT_FAST32_TYPE__, __INT_FAST64_TYPE__,
12016 __UINT_FAST8_TYPE__, __UINT_FAST16_TYPE__, __UINT_FAST32_TYPE__,
12017 __UINT_FAST64_TYPE__, __INTPTR_TYPE__, __UINTPTR_TYPE__,
12018 __WINT_MAX__, __SIZE_MAX__, __PTRDIFF_MAX__, __UINTMAX_MAX__,
12019 __SIG_ATOMIC_MAX__, __INT8_MAX__, __INT16_MAX__, __INT32_MAX__,
12020 __INT64_MAX__, __UINT8_MAX__, __UINT16_MAX__, __UINT32_MAX__,
12021 __UINT64_MAX__, __INT_LEAST8_MAX__, __INT_LEAST16_MAX__,
12022 __INT_LEAST32_MAX__, __INT_LEAST64_MAX__, __UINT_LEAST8_MAX__,
12023 __UINT_LEAST16_MAX__, __UINT_LEAST32_MAX__, __UINT_LEAST64_MAX__,
12024 __INT_FAST8_MAX__, __INT_FAST16_MAX__, __INT_FAST32_MAX__,
12025 __INT_FAST64_MAX__, __UINT_FAST8_MAX__, __UINT_FAST16_MAX__,
12026 __UINT_FAST32_MAX__, __UINT_FAST64_MAX__, __INTPTR_MAX__,
12027 __UINTPTR_MAX__, __WCHAR_MIN__, __WINT_MIN__, __SIG_ATOMIC_MIN__,
12028 __INT8_C, __INT16_C, __INT32_C, __INT64_C, __UINT8_C, __UINT16_C,
12029 __UINT32_C, __UINT64_C, __INTMAX_C, __UINTMAX_C): Document.
12030 * doc/tm.texi (SIG_ATOMIC_TYPE, INT8_TYPE, INT16_TYPE, INT32_TYPE,
12031 INT64_TYPE, UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE,
12032 INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
12033 INT_LEAST64_TYPE, UINT_LEAST8_TYPE, UINT_LEAST16_TYPE,
12034 UINT_LEAST32_TYPE, UINT_LEAST64_TYPE, INT_FAST8_TYPE,
12035 INT_FAST16_TYPE, INT_FAST32_TYPE, INT_FAST64_TYPE,
12036 UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
12037 UINT_FAST64_TYPE, INTPTR_TYPE, UINTPTR_TYPE): Document.
12038
ed853664
BS
120392009-03-31 Bernd Schmidt <bernd.schmidt@analog.com>
12040
12041 * loop-iv.c (suitable_set_for_replacement): Renamed from
12042 simplify_using_assignment; changed to return bool and to accept new
12043 args DEST and SRC. Return true iff we find a source/destination pair
12044 that can be used to make a replacement, and fill SRC and DEST if so.
12045 Remove arg ALTERED. Don't deal with altered regs here. All callers
12046 changed.
12047 (simplify_using_initial_values): Deal with altered regs here and track
12048 more precisely the effect they have on the validity of our expression.
12049
1569e190
BS
12050 * loop-iv.c (simplify_using_condition): A condition of the form
12051 (EQ REG CONST) can be used to simply make a substitution.
12052 (simplify_using_initial_values): Keep track of conditions we have seen
12053 and keep using them to simplify new expressions, while applying the
12054 same substitutions to them as to the expression.
12055
1d1eb80c
BS
12056 * simplify-rtx.c (simplify_relational_operation_1): Simplify
12057 (LTU (PLUS a C) C) or (LTU (PLUS a C) a) to (GEU a -C); likewise with
12058 GEU/LTU reversed.
12059
28af33b0
BS
12060 * loop-iv.c (determine_max_iter): New arg OLD_NITER. All callers
12061 changed. Use this when trying to improve the upper bound.
12062 Generate the comparison by using simplify_gen_relational.
12063
b30321cd
BS
12064 * loop-iv.c (simple_rhs_p): Allow more kinds of expressions.
12065
60081874
BS
12066 * loop-iv.c (replace_single_def_regs, replace_in_expr): New static
12067 functions.
2ba9daa7 12068 (simplify_using_assignment, simplify_using_initial_values): Call
60081874
BS
12069 replace_in_expr to make replacements. Call replace_single_def_regs
12070 once on the initial version of the expression.
12071
bebc6e07
RR
120722009-03-31 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12073
fcb82ab0 12074 PR target/27237
bebc6e07 12075 * doc/invoke.texi (ARM Options): Update documentation for -mthumb.
2ba9daa7 12076
6b12efe9
RG
120772009-03-31 Richard Guenther <rguenther@suse.de>
12078
12079 PR middle-end/31029
12080 * fold-const.c (fold_binary): Fold X +- Y CMP X to Y CMP 0 for
12081 equality comparisons. Fold C - X CMP X if C % 2 == 1.
12082
108f6c2f
RG
120832009-03-31 Richard Guenther <rguenther@suse.de>
12084
12085 * tree.h (div_if_zero_remainder): Declare.
12086 * fold-const.c (div_if_zero_remainder): Export.
12087 * tree-ssa-forwprop.c
12088 (forward_propagate_addr_into_variable_array_index): Handle
12089 constant array index addition outside of the variable index.
12090
8f612190
JM
120912009-03-31 Joseph Myers <joseph@codesourcery.com>
12092
12093 PR target/39592
12094 * config/i386/i386.md (*floatunssi<mode>2_1, two unnamed
12095 define_splits, floatunssi<mode>2): Require x87 conversions from
12096 DImode to be permitted.
12097
47580d22
JM
120982009-03-31 Joseph Myers <joseph@codesourcery.com>
12099
12100 PR preprocessor/15638
12101 * c-common.c (c_cpp_error): Handle CPP_DL_FATAL.
12102
ba4d8f9d
RG
121032009-03-31 Richard Guenther <rguenther@suse.de>
12104
12105 PR middle-end/23401
12106 PR middle-end/27810
12107 * tree.h (DECL_GIMPLE_FORMAL_TEMP_P): Remove.
12108 (struct tree_decl_with_vis): Remove gimple_formal_temp member.
12109 * tree-eh.c (lower_eh_constructs_2): Move LHS assignment to
12110 a separate statement.
12111 * gimplify.c (pop_gimplify_context): Remove formal temp handling.
12112 (lookup_tmp_var): Likewise.
12113 (is_gimple_formal_tmp_or_call_rhs): Remove.
12114 (is_gimple_reg_or_call_rhs): Rename to ...
12115 (is_gimple_reg_rhs_or_call): ... this.
12116 (is_gimple_mem_or_call_rhs): Rename to ...
12117 (is_gimple_mem_rhs_or_call): ... this.
12118 (internal_get_tmp_var): Use is_gimple_reg_rhs_or_call. Set
12119 DECL_GIMPLE_REG_P only if is_formal is true.
12120 (gimplify_compound_lval): Use is_gimple_reg. Remove workaround
12121 for non-proper post-modify expression gimplification.
12122 (gimplify_self_mod_expr): For post-modify expressions gimplify
12123 the lvalue to a minimal lvalue.
12124 (rhs_predicate_for): Remove formal temp case.
12125 (gimplify_modify_expr_rhs): Likewise.
12126 (gimplify_addr_expr): Use is_gimple_reg.
12127 (gimplify_expr): Remove formal temp cases.
12128 (gimple_regimplify_operands): Likewise.
12129 * tree-ssa-pre.c (get_or_alloc_expr_for): Treat EXC_PTR_EXPR
12130 and FILTER_EXPR like constants.
12131 * gimple.c (walk_gimple_op): Fix val_only initialization, use
12132 is_gimple_reg.
12133 (is_gimple_formal_tmp_rhs): Remove.
12134 (is_gimple_reg_rhs): Remove special casing.
12135 (is_gimple_mem_rhs): Fix.
12136 (is_gimple_reg): Move DECL_GIMPLE_REG_P handling earlier.
12137 (is_gimple_formal_tmp_var): Remove.
12138 (is_gimple_formal_tmp_reg): Likewise.
12139 (is_gimple_min_lval): Allow invariant component ref parts.
12140 * gimple.h (is_gimple_formal_tmp_rhs, is_gimple_formal_tmp_var,
12141 is_gimple_formal_tmp_reg): Remove declarations.
12142 * tree-cfg.c (verify_expr): Verify that variables with address
12143 taken do not have DECL_GIMPLE_REG_P set.
12144 * tree-mudflap.c (mf_build_check_statement_for): Use
12145 force_gimple_operand instead of gimplify_expr.
12146
8de9b877
AZ
121472009-03-31 Ayal Zaks <zaks@il.ibm.com>
12148
12149 * modulo-sched.c (sms_schedule_by_order): Pass the actual
12150 schedulable rows to compute_split_row.
12151
b5e3caf2
BE
121522009-03-31 Ben Elliston <bje@au.ibm.com>
12153
12154 PR target/31635
12155 * config/rs6000/rs6000.c (rs6000_handle_option): Handle
12156 OPT_mvrsave.
12157
9752c4ad
AM
121582009-03-31 Alan Modra <amodra@bigpond.net.au>
12159
12160 * doc/invoke.texi (RS/6000 and PowerPC Options):Document mtls-markers.
12161 * configure.ac (HAVE_AS_TLS_MARKERS): New gas feature check.
12162 * configure: Regenerate.
12163 * config.in: Regenerate.
12164 * config/rs6000/rs6000.opt (mtls-markers): Add.
12165 * config/rs6000/rs6000.h (TARGET_TLS_MARKERS): Define.
12166 * config/rs6000/rs6000.md (tls_gd_aix, tls_gd_sysv): Add splitter.
12167 (tls_ld_aix, tls_ld_sysv): Likewise.
12168 (tls_gd, tls_gd_call_aix, tls_gd_call_sysv): New insns.
12169 (tls_ld, tls_ld_call_aix, tls_ld_call_sysv): Likewise.
12170
b597d1b6
AM
121712009-03-31 Alan Modra <amodra@bigpond.net.au>
12172
12173 * config/spu/spu.c (spu_expand_prologue): Delete redundant code.
12174
a203a221
JH
121752009-03-30 Jan Hubicka <jh@suse.cz>
12176
b597d1b6
AM
12177 * tree-eh.c (make_eh_edges): Set probability 100% to first edge
12178 out of RESX.
12179 (tree_remove_unreachable_handlers): Cleanup EH predecestor
12180 detection and label handling.
a203a221 12181
5b0c0b2c
VM
121822009-03-30 Vladimir Makarov <vmakarov@redhat.com>
12183
12184 * ira-int.h (ira_allocno): Rename left_conflicts_num to
12185 left_conflicts_size.
12186 (ALLOCNO_LEFT_CONFLICTS_NUM): Rename to
12187 ALLOCNO_LEFT_CONFLICTS_SIZE.
12188
12189 * ira-color.c (allocno_spill_priority, push_allocno_to_stack,
12190 remove_allocno_from_bucket_and_push,
12191 allocno_spill_priority_compare, push_allocnos_to_stack,
12192 setup_allocno_available_regs_num): Use ALLOCNO_LEFT_CONFLICTS_SIZE
12193 instead of ALLOCNO_LEFT_CONFLICTS_NUM.
12194 (setup_allocno_left_conflicts_num): Ditto. Rename to
12195 setup_allocno_left_conflicts_size.
12196 (put_allocno_into_bucket): Use ALLOCNO_LEFT_CONFLICTS_SIZE
12197 instead of ALLOCNO_LEFT_CONFLICTS_NUM and
12198 setup_allocno_left_conflicts_size instead of
12199 setup_allocno_left_conflicts_num.
12200
12201 * ira-build.c (ira_create_allocno): Use
12202 ALLOCNO_LEFT_CONFLICTS_SIZE instead of
12203 ALLOCNO_LEFT_CONFLICTS_NUM.
2ba9daa7 12204
9a48a93f
VM
122052009-03-30 Vladimir Makarov <vmakarov@redhat.com>
12206
12207 * reload.c (push_reload, find_dummy_reload): Use df_get_live_out
12208 instead of DF_LR_OUT.
12209
12210 * ira-lives.c (process_bb_node_lives): Ditto.
12211
12212 * ira-color.c (ira_loop_edge_freq): Use df_get_live_{out,in}
12213 instead of DF_LR_{OUT,IN}.
12214
12215 * ira-emit.c (generate_edge_moves, add_ranges_and_copies): Ditto.
12216
12217 * ira-build.c (create_bb_allocnos, create_loop_allocnos): Ditto.
12218
4c936d4f
JH
122192009-03-30 Jan Hubicka <jh@suse.cz>
12220
12221 * except.c (label_to_region_map): Fix thinko.
12222
f4d9f129
SE
122232009-03-30 Steve Ellcey <sje@cup.hp.com>
12224
12225 PR middle-end/38237
12226 * tree.h (tree_find_value): New declaration.
12227 * tree.c (tree_find_value): New function.
12228 * varasm.c (assemble_external): Avoid duplicate entries on lists.
12229
b3f27c15
JJ
122302009-03-30 Jakub Jelinek <jakub@redhat.com>
12231
12232 PR debug/39563
12233 * c-decl.c (struct c_binding): Add locus field.
12234 (bind): Add locus argument, set locus field from it.
12235 (pop_scope): For b->nested VAR_DECL or FUNCTION_DECL,
12236 add a DECL_EXTERNAL copy of b->decl to current BLOCK_VARS.
12237 (push_file_scope, pushtag, pushdecl, pushdecl_top_level,
12238 implicitly_declare, undeclared_variable, lookup_label,
12239 declare_label, c_make_fname_decl, c_builtin_function,
12240 c_builtin_function_ext_scope, store_parm_decls_newstyle): Adjust
12241 bind callers.
12242
ad41bd84 122432009-03-30 H.J. Lu <hongjiu.lu@intel.com>
680e8a00
L
12244
12245 PR target/38781
12246 * config/i386/i386.c (classify_argument): Check total size of
12247 structure.
12248
133f9369
MJ
122492009-03-30 Martin Jambor <mjambor@suse.cz>
12250
12251 * ipa-prop.h (jump_func_type): Rename IPA_UNKNOWN, IPA_CONST,
12252 IPA_CONST_MEMBER_PTR, and IPA_PASS_THROUGH to IPA_JF_UNKNOWN,
12253 IPA_JF_CONST, IPA_JF_CONST_MEMBER_PTR, and IPA_JF_PASS_THROUGH
12254 respectively.
12255
12256 * tree-dfa.c (get_ref_base_and_extent): Return -1 maxsize if
12257 seen_variable_array_ref while also traversing a union.
12258
12259 * tree-inline.c (optimize_inline_calls): Do not call
12260 cgraph_node_remove_callees.
12261 * cgraphbuild.c (remove_cgraph_callee_edges): New function.
12262 (pass_remove_cgraph_callee_edges): New variable.
12263 * passes.c (init_optimization_passes): Add
12264 pass_remove_cgraph_callee_edges after early inlining and before all
12265 late intraprocedural passes.
12266
12267 * omp-low.c (expand_omp_taskreg): Always set current_function_decl.
12268
1190f2eb
PB
122692009-03-30 Paolo Bonzini <bonzini@gnu.org>
12270
12271 * config/sparc/sparc.md (*nand<V64mode>_vis, *nand<V32mode>_vis):
12272 Fix typos in names.
12273
fedc1775
PB
122742009-03-30 Paolo Bonzini <bonzini@gnu.org>
12275
fcb82ab0
UB
12276 * combine.c (simplify_comparison): Use have_insn_for.
12277 * dojump.c (do_jump): Likewise.
fedc1775 12278
65c5ae8b
PB
122792009-03-30 Paolo Bonzini <bonzini@gnu.org>
12280
12281 * config/sparc/sparc.c (sparc_compare_emitted): Remove.
12282 (gen_compare_reg, emit_v9_brxx_insn): Handle MODE_CC
12283 sparc_compare_op0 like sparc_compare_emitted used to be handled.
12284 (sparc_expand_compare_and_swap_12): Set sparc_compare_op0
12285 instead of sparc_compare_emitted.
12286 * config/sparc/sparc.h (sparc_compare_emitted): Remove.
12287 * config/sparc/sparc.md (stack_protect_test): Set sparc_compare_op0
12288 instead of sparc_compare_emitted.
12289
d25aa7ab
PB
122902009-03-30 Paolo Bonzini <bonzini@gnu.org>
12291
12292 * bb-reorder.c (partition_hot_cold_basic_blocks): Do not
12293 enter/exit cfglayout mode.
12294 (pass_partition_block): Require it.
12295 * combine.c (find_single_use, reg_dead_at_p): Use CFG.
12296 (combine_instructions): Track basic blocks instead of labels.
12297 (update_cfg_for_uncondjump): New.
12298 (try_combine): Use it. Update jumps after rescanning.
12299 (pass_combine): Require PROP_cfglayout.
12300 * passes.c (pass_outof_cfg_layout_mode): Move after regmove.
12301
9c9e26f5
PB
123022009-03-30 Paolo Bonzini <bonzini@gnu.org>
12303
fcb82ab0
UB
12304 * cfglayout.c (pass_into_cfg_layout_mode, pass_outof_cfg_layout_mode):
12305 Provide/destroy PROP_cfglayout respectively.
12306 * gcse.c (pass_jump_bypass, pass_gcse): Require it.
12307 * tree-pass.h (PROP_cfglayout): New.
9c9e26f5 12308
28ddeea1
PB
123092009-03-30 Paolo Bonzini <bonzini@gnu.org>
12310
12311 * fold-const.c (const_binop, fold_convert_const_real_from_fixed,
12312 fold_convert_const_fixed_from_fixed,
12313 fold_convert_const_fixed_from_int,
12314 fold_convert_const_fixed_from_real, fold_negate_const): Do not
12315 set TREE_CONSTANT_OVERFLOW.
12316 * tree.def: Remove mention of TREE_CONSTANT_OVERFLOW.
12317 * tree.h (TREE_CONSTANT_OVERFLOW): Delete.
12318
ebfd146a
IR
123192009-03-30 Ira Rosen <irar@il.ibm.com>
12320
12321 * tree-vect-loop-manip.c: New file.
12322 * tree-vectorizer.c: Update documentation and included files.
12323 (vect_loop_location): Make extern.
12324 (rename_use_op): Move to tree-vect-loop-manip.c
2ba9daa7
AS
12325 (rename_variables_in_bb, rename_variables_in_loop,
12326 slpeel_update_phis_for_duplicate_loop,
ebfd146a
IR
12327 slpeel_update_phi_nodes_for_guard1,
12328 slpeel_update_phi_nodes_for_guard2, slpeel_make_loop_iterate_ntimes,
12329 slpeel_tree_duplicate_loop_to_edge_cfg, slpeel_add_loop_guard,
12330 slpeel_can_duplicate_loop_p, slpeel_verify_cfg_after_peeling,
2ba9daa7 12331 set_prologue_iterations, slpeel_tree_peel_loop_to_edge,
ebfd146a
IR
12332 find_loop_location): Likewise.
12333 (new_stmt_vec_info): Move to tree-vect-stmts.c.
12334 (init_stmt_vec_info_vec, free_stmt_vec_info_vec, free_stmt_vec_info,
12335 get_vectype_for_scalar_type, vect_is_simple_use,
12336 supportable_widening_operation, supportable_narrowing_operation):
12337 Likewise.
12338 (bb_in_loop_p): Move to tree-vect-loop.c.
2ba9daa7
AS
12339 (new_loop_vec_info, destroy_loop_vec_info,
12340 reduction_code_for_scalar_code, report_vect_op,
ebfd146a
IR
12341 vect_is_simple_reduction, vect_is_simple_iv_evolution): Likewise.
12342 (vect_can_force_dr_alignment_p): Move to tree-vect-data-refs.c.
12343 (vect_supportable_dr_alignment): Likewise.
12344 * tree-vectorizer.h (tree-data-ref.h): Include.
12345 (vect_loop_location): Declare.
12346 Reorganize function declarations according to the new file structure.
12347 * tree-vect-loop.c: New file.
2ba9daa7 12348 * tree-vect-analyze.c: Remove. Move functions to tree-vect-data-refs.c,
ebfd146a
IR
12349 tree-vect-stmts.c, tree-vect-slp.c, tree-vect-loop.c.
12350 * tree-vect-data-refs.c: New file.
12351 * tree-vect-patterns.c (timevar.h): Don't include.
12352 * tree-vect-stmts.c: New file.
2ba9daa7 12353 * tree-vect-transform.c: Remove. Move functions to tree-vect-stmts.c,
ebfd146a 12354 tree-vect-slp.c, tree-vect-loop.c.
2ba9daa7
AS
12355 * Makefile.in (OBJS-common): Remove tree-vect-analyze.o and
12356 tree-vect-transform.o. Add tree-vect-data-refs.o, tree-vect-stmts.o,
ebfd146a
IR
12357 tree-vect-loop.o, tree-vect-loop-manip.o, tree-vect-slp.o.
12358 (tree-vect-analyze.o): Remove.
12359 (tree-vect-transform.o): Likewise.
12360 (tree-vect-data-refs.o): Add rule.
2ba9daa7 12361 (tree-vect-stmts.o, tree-vect-loop.o, tree-vect-loop-manip.o,
ebfd146a
IR
12362 tree-vect-slp.o): Likewise.
12363 (tree-vect-patterns.o): Remove redundant dependencies.
12364 (tree-vectorizer.o): Likewise.
12365 * tree-vect-slp.c: New file.
12366
40a1cfba
RW
123672009-03-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12368
12369 * optc-gen.awk: Warn if an option flag has multiple different
12370 help strings.
12371
a9a7a9a2
SP
123722009-03-30 Sebastian Pop <sebastian.pop@amd.com>
12373
12374 * doc/invoke.texi (-floop-interchange, -floop-strip-mine,
12375 -floop-block): Document dependences on PPL, CLooG and Graphite.
12376
8ce94e44
JM
123772009-03-30 Joseph Myers <joseph@codesourcery.com>
12378
12379 PR rtl-optimization/323
12380 * c-common.c (c_fully_fold, convert_and_check,
12381 c_common_truthvalue_conversion): Handle EXCESS_PRECISION_EXPR.
12382 (c_fully_fold_internal): Disallow EXCESS_PRECISION_EXPR.
12383 * c-common.def (EXCESS_PRECISION_EXPR): New.
12384 * c-cppbuiltin.c (builtin_define_float_constants): Define
12385 constants with enough digits for long double.
12386 * c-lex.c (interpret_float): Interpret constant with excess
12387 precision where appropriate.
12388 * c-opts.c (c_common_post_options): Set
12389 flag_excess_precision_cmdline. Give an error for
12390 -fexcess-precision=standard for C++ for processors where the
12391 option is significant.
12392 * c-parser.c (c_parser_conditional_expression): Handle excess
12393 precision in condition.
12394 * c-typeck.c (convert_arguments): Handle arguments with excess
12395 precision.
12396 (build_unary_op): Move excess precision outside operation.
12397 (build_conditional_expr): Likewise.
12398 (build_compound_expr): Likewise.
12399 (build_c_cast): Do cast on operand of EXCESS_PRECISION_EXPR.
12400 (build_modify_expr): Handle excess precision in RHS.
12401 (convert_for_assignment): Handle excess precision in converted
12402 value.
12403 (digest_init, output_init_element, process_init_element): Handle
12404 excess precision in initializer.
12405 (c_finish_return): Handle excess precision in return value.
12406 (build_binary_op): Handle excess precision in operands and add
12407 excess precision as needed for operation.
12408 * common.opt (-fexcess-precision=): New option.
12409 * config/i386/i386.h (X87_ENABLE_ARITH, X87_ENABLE_FLOAT): New.
12410 * config/i386/i386.md (float<SSEMODEI24:mode><X87MODEF:mode>2):
12411 For standard excess precision, output explicit conversion to and
12412 truncation from XFmode.
12413 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1,
12414 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387_with_temp,
12415 *float<SSEMODEI24:mode><X87MODEF:mode>2_i387, two unnamed
12416 define_splits, floatdi<X87MODEF:mode>2_i387_with_xmm, two unnamed
12417 define_splits, *floatunssi<mode>2_1, two unnamed define_splits,
12418 floatunssi<mode>2, add<mode>3, sub<mode>3, mul<mode>3, divdf3,
12419 divsf3, *fop_<mode>_comm_i387, *fop_<mode>_1_i387,
12420 *fop_<MODEF:mode>_2_i387, *fop_<MODEF:mode>_3_i387,
12421 *fop_df_4_i387, *fop_df_5_i387, *fop_df_6_i387, two unnamed
12422 define_splits, sqrt<mode>2): Disable where appropriate for
12423 standard excess precision.
12424 * convert.c (convert_to_real): Do not shorten arithmetic to type
12425 for which excess precision would be used.
12426 * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Define.
12427 * doc/invoke.texi (-fexcess-precision=): Document option.
12428 (-mfpmath=): Correct index entry.
12429 * flags.h (enum excess_precision, flag_excess_precision_cmdline,
12430 flag_excess_precision): New.
12431 * langhooks.c (lhd_post_options): Set
12432 flag_excess_precision_cmdline.
12433 * opts.c (common_handle_option): Handle -fexcess-precision=.
12434 * toplev.c (flag_excess_precision_cmdline, flag_excess_precision,
12435 init_excess_precision): New.
12436 (lang_dependent_init_target): Call init_excess_precision.
12437 * tree.c (excess_precision_type): New.
12438 * tree.h (excess_precision_type): Declare.
12439
1e57bf47
JM
124402009-03-30 Joseph Myers <joseph@codesourcery.com>
12441
12442 PR c/35235
12443 * c-typeck.c (build_component_ref): Do not copy qualifiers from
12444 non-lvalue to component.
12445
148e4216
JM
124462009-03-29 Joseph Myers <joseph@codesourcery.com>
12447
12448 PR preprocessor/34695
12449 * Makefile.in (c-opts.o): Depend on c-tree.h.
12450 * c-common.c: Move down include of diagnostic.h.
12451 (done_lexing, c_cpp_error): New.
12452 * c-common.h (done_lexing): Declare.
12453 * c-decl.c (c_write_global_declarations): Don't check cpp_errors
12454 (parse_in).
12455 * c-opts.c: Include c-tree.h.
12456 (c_common_init_options): Set preprocessor error callback.
12457 (c_common_handle_option): Do not set preprocessor
12458 inhibit_warnings, warnings_are_errors, warn_system_headers,
12459 pedantic_errors or inhibit_warnings flags.
12460 (c_common_post_options): Do not check cpp_errors (parse_in).
12461 (c_common_finish): Do not output dependencies if there were
12462 errors. Do not check return value of cpp_finish.
12463 * c-ppoutput.c (pp_file_change): Set input_location.
12464 * c-tree.h (c_cpp_error): Declare.
12465 * diagnostic.c (diagnostic_set_info_translated): Also initialize
12466 override_column.
12467 (diagnostic_build_prefix): Check override_column.
12468 * diagnostic.h (diagnostic_info): Add override_column field.
12469 (diagnostic_override_column): Define.
12470
2ec5deb5
PB
124712009-03-28 Paolo Bonzini <bonzini@gnu.org>
12472
ba20e309
UB
12473 * c-common.c (c_expand_expr, c_staticp): Remove.
12474 * c-common.def (COMPOUND_LITERAL_EXPR): Delete.
12475 * c-common.h (emit_local_var, c_staticp, COMPOUND_LITERAL_EXPR_DECL,
12476 COMPOUND_LITERAL_EXPR_DECL_EXPR): Remove.
12477 * c-gimplify.c (gimplify_compound_literal_expr,
12478 optimize_compound_literals_in_ctor): Remove.
12479 (c_gimplify_expr): Remove COMPOUND_LITERAL_EXPR handling.
12480 * c-objc-common.h (LANG_HOOKS_STATICP): Remove.
12481 * c-semantics.c (emit_local_var): Remove.
12482
12483 * langhooks-def.h (lhd_expand_expr): Remove.
12484 * langhooks.c (lhd_expand_expr): Remove.
12485 * langhooks.h (LANG_HOOKS_DEF): Remove LANG_HOOKS_EXPAND_EXPR.
12486
12487 * expr.c (expand_expr_real_1): Move COMPOUND_LITERAL_EXPR
12488 handling from c-semantics.c; don't call into langhook.
12489 (expand_expr_addr_expr_1): Check that we don't get non-GENERIC trees.
12490 * gimplify.c (gimplify_compound_literal_expr,
12491 optimize_compound_literals_in_ctor): Move from c-gimplify.c.
12492 (gimplify_init_constructor): Call optimize_compound_literals_in_ctor.
12493 (gimplify_modify_expr_rhs, gimplify_expr): Handle COMPOUND_LITERAL_EXPR
12494 as was done in c-gimplify.c.
12495 * tree.c (staticp): Move COMPOUND_LITERAL_EXPR handling from c_staticp.
12496 * tree.h (COMPOUND_LITERAL_EXPR_DECL, COMPOUND_LITERAL_EXPR_DECL_EXPR):
12497 Move from c-common.h.
12498 * tree.def (COMPOUND_LITERAL_EXPR): Move from c-common.def.
2ec5deb5
PB
12499
12500 * tree.c (staticp): Do not call langhook.
12501 * langhooks.c (lhd_staticp): Delete.
12502 * langhooks-def.h (lhd_staticp): Delete prototype.
12503 (LANG_HOOKS_STATICP): Delete.
12504 (LANG_HOOKS_INITIALIZER): Delete LANG_HOOKS_STATICP.
12505
ba20e309
UB
12506 * doc/c-tree.texi (Expression nodes): Refer to DECL_EXPRs
12507 instead of DECL_STMTs.
2ec5deb5 12508
928c19bb
JM
125092009-03-29 Joseph Myers <joseph@codesourcery.com>
12510
12511 PR c/456
12512 PR c/5675
12513 PR c/19976
12514 PR c/29116
12515 PR c/31871
12516 PR c/35198
12517 * builtins.c (fold_builtin_sincos): Build COMPOUND_EXPR in
12518 void_type_node.
12519 (fold_call_expr): Return a NOP_EXPR from folding rather than the
12520 contained expression.
ba20e309 12521 * c-common.c (c_fully_fold, c_fully_fold_internal, c_save_expr): New.
928c19bb
JM
12522 (c_common_truthvalue_conversion): Use c_save_expr. Do not fold
12523 conditional expressions for C.
12524 (decl_constant_value_for_optimization): Move from
ba20e309 12525 decl_constant_value_for_broken_optimization in c-typeck.c. Check
928c19bb
JM
12526 whether optimizing and that the expression is a VAR_DECL not of
12527 array type instead of doing such checks in the caller. Do not
12528 check pedantic. Call gcc_unreachable for C++.
12529 * c-common.def (C_MAYBE_CONST_EXPR): New.
12530 * c-common.h (c_fully_fold, c_save_expr,
12531 decl_constant_value_for_optimization): New prototypes.
12532 (C_MAYBE_CONST_EXPR_PRE, C_MAYBE_CONST_EXPR_EXPR,
12533 C_MAYBE_CONST_EXPR_INT_OPERANDS, C_MAYBE_CONST_EXPR_NON_CONST,
12534 EXPR_INT_CONST_OPERANDS): Define.
12535 * c-convert.c (convert): Strip nops from expression.
12536 * c-decl.c (groktypename): Take extra parameters expr and
12537 expr_const_operands. Update call to grokdeclarator.
12538 (start_decl): Update call to grokdeclarator. Add statement for
12539 expressions used in type of decl.
12540 (grokparm): Update call to grokdeclarator.
12541 (push_parm_decl): Update call to grokdeclarator.
12542 (build_compound_literal): Add parameter non_const and build a
12543 C_MAYBE_COSNT_EXPR if applicable.
12544 (grokdeclarator): Take extra parameters expr and
12545 expr_const_operands. Track expressions used in declaration
12546 specifiers and declarators. Fold array sizes and track whether
12547 they are constant expressions and whether they are integer
12548 constant expressions.
12549 (parser_xref_tag): Set expr and expr_const_operands fields in
12550 return value.
12551 (grokfield): Update call to grokdeclarator.
12552 (start_function): Update call to grokdeclarator.
12553 (build_null_declspecs): Set expr and expr_const_operands fields in
12554 return value.
12555 (declspecs_add_type): Handle expressions in typeof specifiers.
12556 * c-parser.c (c_parser_declspecs): Set expr and
12557 expr_const_operands fields for declaration specifiers.
12558 (c_parser_enum_specifier): Likewise.
12559 (c_parser_struct_or_union_specifier): Likewise.
12560 (c_parser_typeof_specifier): Likewise. Update call to
12561 groktypename. Fold expression as needed. Return expressions with
12562 type instead of adding statements.
12563 (c_parser_attributes): Update calls to c_parser_expr_list.
12564 (c_parser_statement_after_labels): Fold expression before passing
12565 to objc_build_throw_stmt.
12566 (c_parser_condition): Fold expression.
12567 (c_parser_asm_operands): Fold expression.
12568 (c_parser_conditional_expression): Use c_save_expr. Update call
12569 to build_conditional_expr.
12570 (c_parser_alignof_expression): Update call to groktypename.
12571 (c_parser_postfix_expression): Preserve C_MAYBE_CONST_EXPR as
12572 original_code. Fold expression argument of va_arg. Create
12573 C_MAYBE_CONST_EXPR to preserve side effects of expressions in type
12574 argument to va_arg. Update calls to groktypename. Fold array
12575 index for offsetof. Verify that first argument to
12576 __builtin_choose_expr has integer type.
12577 (c_parser_postfix_expression_after_paren_type): Update calls to
12578 groktypename and build_compound_literal. Handle expressions with
12579 side effects in type name.
12580 (c_parser_postfix_expression_after_primary): Update call to
12581 c_parser_expr_list. Set original_code for calls to
12582 __builtin_constant_p.
12583 (c_parser_expr_list): Take extra parameter fold_p. Fold
12584 expressions if requested.
12585 (c_parser_objc_type_name): Update call to groktypename.
12586 (c_parser_objc_synchronized_statement): Fold expression.
12587 (c_parser_objc_receiver): Fold expression.
12588 (c_parser_objc_keywordexpr): Update call to c_parser_expr_list.
12589 (c_parser_omp_clause_num_threads, c_parser_omp_clause_schedule,
12590 c_parser_omp_atomic, c_parser_omp_for_loop): Fold expressions.
12591 * c-tree.h (CONSTRUCTOR_NON_CONST): Define.
12592 (struct c_typespec): Add elements expr and expr_const_operands.
12593 (struct c_declspecs): Add elements expr and expr_const_operands.
12594 (groktypename, build_conditional_expr, build_compound_literal):
12595 Update prototypes.
12596 (in_late_binary_op): Declare.
12597 * c-typeck.c (note_integer_operands): New function.
12598 (in_late_binary_op): New variable.
12599 (decl_constant_value_for_broken_optimization): Move to c-common.c
12600 and rename to decl_constant_value_for_optimization.
12601 (default_function_array_conversion): Do not strip nops.
12602 (default_conversion): Do not call
12603 decl_constant_value_for_broken_optimization.
12604 (build_array_ref): Do not fold result.
12605 (c_expr_sizeof_expr): Fold operand. Use C_MAYBE_CONST_EXPR for
12606 result when operand is a VLA.
12607 (c_expr_sizeof_type): Update call to groktypename. Handle
12608 expressions included in type name. Use C_MAYBE_CONST_EXPR for
12609 result when operand names a VLA type.
12610 (build_function_call): Update call to build_compound_literal.
12611 Only fold result for calls to __builtin_* functions. Strip
12612 NOP_EXPR from INTEGER_CST returned from such functions. Fold
12613 the function designator.
12614 (convert_arguments): Fold arguments. Update call to
12615 convert_for_assignment.
12616 (build_unary_op): Handle increment and decrement of
12617 C_MAYBE_CONST_EXPR. Move lvalue checks for increment and
12618 decrement earlier. Fold operand of increment and decrement.
12619 Handle address of C_MAYBE_CONST_EXPR. Only fold expression being
12620 built for integer operand. Wrap returns that are INTEGER_CSTs
12621 without being integer constant expressions or that have integer
12622 constant operands without being INTEGER_CSTs.
12623 (lvalue_p): Handle C_MAYBE_CONST_EXPR.
12624 (build_conditional_expr): Add operand ifexp_bcp. Track whether
12625 result is an integer constant expression or can be used in
12626 unevaluated parts of one and avoid folding and wrap as
12627 appropriate. Fold operands before possibly doing -Wsign-compare
12628 warnings.
12629 (build_compound_expr): Wrap result for C99 if operands can be used
12630 in integer constant expressions.
12631 (build_c_cast): Update call to digest_init. Do not ignore
12632 overflow from casting floating-point constants to integers. Wrap
12633 results that could be confused with integer constant expressions,
12634 null pointer constants or floating-point constants.
12635 (c_cast_expr): Update call to groktypename. Handle expressions
12636 included in type name.
12637 (build_modify_expr): Handle modifying a C_MAYBE_CONST_EXPR. Fold
12638 lhs inside possible SAVE_EXPR. Fold RHS before assignment.
12639 Update calls to convert_for_assignment.
12640 (convert_for_assignment): Take new parameter
12641 null_pointer_constant. Do not strip nops or call
12642 decl_constant_value_for_broken_optimization. Set
12643 in_late_binary_op for conversions to boolean.
12644 (store_init_value): Update call to digest_init.
12645 (digest_init): Take new parameter null_pointer_constant. Do not
12646 call decl_constant_value_for_broken_optimization. pedwarn for
12647 initializers not constant expressions. Update calls to
12648 convert_for_assignment.
12649 (constructor_nonconst): New.
12650 (struct constructor_stack): Add nonconst element.
12651 (really_start_incremental_init, push_init_level, pop_init_level):
12652 Handle constructor_nonconst and nonconst element.
12653 (set_init_index): Call constant_expression_warning for array
12654 designators.
12655 (output_init_element): Fold value. Set constructor_nonconst as
12656 applicable. pedwarn for initializers not constant expressions.
12657 Update call to digest_init. Call constant_expression_warning
12658 where constant initializers are required.
12659 (process_init_element): Use c_save_expr.
12660 (c_finish_goto_ptr): Fold expression.
12661 (c_finish_return): Fold return value. Update call to
12662 convert_for_assignment.
12663 (c_start_case): Fold switch expression.
12664 (c_process_expr_stmt): Fold expression.
12665 (c_finish_stmt_expr): Create C_MAYBE_CONST_EXPR as needed to
ba20e309 12666 ensure statement expression is not evaluated in constant expression.
928c19bb
JM
12667 (build_binary_op): Track whether results are integer constant
12668 expressions or may occur in such, disable folding and wrap results
12669 as applicable. Fold operands for -Wsign-compare warnings unless
12670 in_late_binary_op.
12671 (c_objc_common_truthvalue_conversion): Handle results folded to
12672 integer constants that are not integer constant expressions.
12673 * doc/extend.texi: Document when typeof operands are evaluated,
12674 that condition of __builtin_choose_expr is an integer constant
12675 expression, and more about use of __builtin_constant_p in
12676 initializers.
12677
5babbcc0
RG
126782009-03-29 Richard Guenther <rguenther@suse.de>
12679
12680 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Properly
12681 propagate addresses of array references.
12682
0340f2ba
SB
126832009-03-29 Steven Bosscher <steven@gcc.gnu.org>
12684
12685 * regmove.c (perhaps_ends_bb_p): Remove.
12686 (optimize_reg_copy_1): Don't call perhaps_ends_bb_p. Get basic block
12687 from INSN and check that the main loop stays within that basic block.
12688 (optimize_reg_copy_1, optimize_reg_copy_3, fixup_match_2): Likewise.
12689 (regmove_forward_pass): Split out from regmove_optimize. Use
12690 FOR_EACH_BB and FOR_BB_INSNS instead of traversing the insns stream.
12691 (regmove_backward_pass): Split out from regmove_optimize. Use
12692 FOR_EACH_BB_REVERSE and FOR_BB_INSNS_REVERS_SAFE.
12693 (regmove_optimize): Simplify.
12694
eeae74a1
L
126952009-03-29 H.J. Lu <hongjiu.lu@intel.com>
12696
12697 PR target/39545
12698 * config/i386/i386.c (classify_argument): Ignore flexible array
12699 member in struct and warn ABI change.
12700
a24078b2
L
127012009-03-29 H.J. Lu <hongjiu.lu@intel.com>
12702
12703 * config/i386/i386-protos.h (ix86_agi_dependent): New.
12704
12705 * config/i386/i386.c (ix86_agi_dependent): Rewrite.
12706 (ix86_adjust_cost): Updated.
12707
a8da523f
JH
127082009-03-29 Jan Hubicka <jh@suse.cz>
12709
12710 PR middle-end/28850
12711 * tree-pass.h (pass_cleanup_eh): New function.
12712 (remove_unreachable_regions): Break code handling RTL
12713 to rtl_remove_unreachable_regions; remove ERT_MUST_NOT_THROW
12714 that can not be reached by runtime.
12715 (can_be_reached_by_runtime): New function.
12716 (label_to_region_map): New function.
12717 (num_eh_regions): New function.
12718 (rtl_remove_unreachable_regions): New function.
12719 (convert_from_eh_region_ranges): Call rtl_remove_unreachable_regions.
12720 (remove_eh_region): New function.
12721 * except.h: Include sbitmap and vecprim.
12722 (remove_eh_region, remove_unreachable_regions, label_to_region_map,
12723 num_eh_regions): Declare.
12724 * passes.c (init_optimization_passes): Schedule cleanup_eh.
ba20e309 12725 * Makefile.in (EXCEPT_H): New; replace all uses of except.h by it.
a8da523f
JH
12726 * tree-eh.c (tree_remove_unreachable_handlers): New function.
12727 (tree_empty_eh_handler_p): New function.
12728 (cleanup_empty_eh): New function.
12729 (cleanup_eh): New function.
12730 (pass_cleanup_eh): New function.
12731
98f358e5
JH
127322009-03-29 Jan Hubicka <jh@suse.cz>
12733
12734 * except.c (verify_eh_tree): Fix handling of fun!=cfun; be ready
12735 for removed regions.
12736
13a9fa44
JH
127372009-03-29 Jan Hubicka <jh@suse.cz>
12738
12739 * except.c (dump_eh_tree): Dump all datastructures.
12740
e38cf733
JH
127412009-03-29 Jan Hubicka <jh@suse.cz>
12742
12743 * except.c (duplicate_eh_regions_0): Handle AKA bitmap.
12744 (duplicate_eh_regions_1): Likewise.
12745 (duplicate_eh_regions): Likewise; cleanup code gorwing the region
12746 vector; call EH verification.
12747 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
12748 Be ready for region being removed.
12749
12802c2b
JH
127502009-03-29 Jan Hubicka <jh@suse.cz>
12751
12752 * bitmap.c (bitmap_last_set_bit): New function.
12753 * bitmap.h (bitmap_last_set_bit): Declare.
12754
4ea80a41
DA
127552009-03-29 David Ayers <ayers@fsfe.org>
12756
12757 PR objc/27377
12758 * c-typeck.c (build_conditional_expr): Emit ObjC warnings
12759 by calling objc_compare_types and surpress warnings about
12760 incompatible C pointers that are compatible ObjC pointers.
2ba9daa7 12761
4ea80a41 127622009-03-29 Adam Nemet <anemet@caviumnetworks.com>
3dc9eaa6
AN
12763
12764 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Don't
12765 call initialize_inline_failed.
12766 (initialize_inline_failed): Move it from here ...
12767 * cgraph.c (initialize_inline_failed): ... to here.
12768 (cgraph_create_edge): Call initialize_inline_failed rather than
12769 setting inline_failed directly.
12770
7fb0ee07
BE
127712009-03-29 Ben Elliston <bje@au.ibm.com>
12772
12773 PR target/32542
12774 * sysv4.opt (msdata): Improve comment.
12775 * linux64.h (ASM_SPEC32): Do not pass -memb when -msdata is given.
12776 * sysv4.h (SVR4_ASM_SPEC): Likewise.
12777
0be77bf2
BE
127782009-03-29 Ben Elliston <bje@au.ibm.com>
12779
12780 PR target/30451
12781 * config/rs6000/rs6000.md (*movti_ppc64): Correct the order of
12782 load and store attributes.
12783
593812b6
BE
127842009-03-29 Ben Elliston <bje@au.ibm.com>
12785
12786 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_HUGE_VALQ.
12787 (ix86_init_builtins): Add built-in function __builtin_huge_valq.
12788 (ix86_expand_builtin): Handle IX86_BUILTIN_HUGE_VALQ.
12789 * doc/extend.texi (X86 Built-in Functions): Add index entries for
12790 __builtin_infq and __builtin_huge_valq.
12791
8272d11d
AS
127922009-03-28 Anatoly Sokolov <aesok@post.ru>
12793
12794 * config/avr/avr.c (avr_mcu_t): Add atmega8c1, atmega16c1 and
12795 atmega8m1 devices.
12796 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
12797 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.)
12798
74fe548b
XDL
127992009-03-28 Xinliang David Li <davidxl@google.com>
12800
2ba9daa7 12801 * tree-ssa-ccp.c (ccp_finalize): Add dbg_count support.
74fe548b
XDL
12802 (do_dbg_cnt): New function.
12803
33977f81
JH
128042009-03-28 Jan Hubicka <jh@suse.cz>
12805
12806 Merge from pretty-ipa:
12807
12808 2009-03-27 Jan Hubicka <jh@suse.cz>
ba20e309 12809
33977f81
JH
12810 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
12811 * tree-pass.h (function_called_by_processed_nodes_p): Declare.
12812 * passes.c (function_called_by_processed_nodes_p): New.
12813 * ipa-pure-const.c (check_call): Fix handling of operands.
12814 (analyze_function): Dump debug output for skipped bodies.
12815 (local_pure_const): Use function_called_by_processed_nodes_p.
12816 * dwarf2out.c (reference_to_unused): Use output.
12817 * passes.c (do_per_function_toporder): Likewise.
12818
12819 2008-11-12 Jan Hubicka <jh@suse.cz>
12820
12821 * tree-pass.h (pass_fixup_cfg, pass_local_pure_const): Declare.
12822 * ipa-pure-const.c (funct_state_d): Add can throw field; make
12823 state_set_in_source enum
12824 (check_decl): Ignore memory tags; do not set fake looping flags;
12825 dump diagnostics.
12826 (check_operand, check_tree, check_rhs_var, check_lhs_var,
12827 get_asm_expr_operands, scan_function_op, scan_function_stmt): Remove.
12828 (check_call, analyze_function): Rewrite.
12829 (check_stmt): New.
12830 (add_new_function): Update call of analyze_function.
12831 (generate_summary): Add call of analyze_function.
12832 (propagate): Propagate can_throw; handle state_set_in_source correctly.
12833 (local_pure_const): New function.
12834 (pass_local_pure_const): New pass.
12835 * ipa-inline.c (inline_transform): Set after_inlining.
12836 * tree-eh.c (stmt_can_throw_external): New.
12837 * tree-optimize.c (execute_fixup_cfg): Do not set after_inlining;
12838 work with aliasing built.
12839 * tree-flow.h (stmt_can_throw_external): New.
12840 * passes.c (init_optimization_passes): Schedule fixup_cfg pass early;
12841 and local pure/const pass in early and late optimization queue.
ba20e309 12842
617f3897
MJ
128432009-03-28 Martin Jambor <mjambor@suse.cz>
12844
12845 * fold-const.c (get_pointer_modulus_and_residue): New parameter
12846 allow_func_align.
12847 (fold_binary): Allow function decl aligment consideration is the
12848 second argument is integer constant one.
12849 * tree-ssa-forwprop.c (simplify_bitwise_and): New function.
12850 (tree_ssa_forward_propagate_single_use_vars): Handle assing statements
12851 with BIT_AND_EXPR on the RHS by calling simplify_bitwise_and.
12852
fe89fbc5
JH
128532009-03-28 Jan Hubicka <jh@suse.cz>
12854
12855 * dwarf2out.c (dwarf2out_begin_prologue): Use crtl->nothrow
12856 * tree-eh.c (stmt_could_throw_p): Remove check for WEAK decls.
12857 * function.h (rtl_data): Add nothrow flag.
12858 * except.c (set_nothrow_function_flags): Use crtl->nothrow;
12859 set DECL_NOTHROW for AVAILABLE functions.
12860
574872ff
JJ
128612009-03-28 Jakub Jelinek <jakub@redhat.com>
12862
b3bf8855
JJ
12863 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If macro
12864 following vector keyword has expansion starting with pixel or bool
12865 keyword, expand vector to __vector and pixel or bool to __pixel or
12866 __bool.
12867
574872ff
JJ
12868 PR c++/39554
12869 * opts.c (warning_disallowed_functions, warn_disallowed_functions,
12870 warn_if_disallowed_function_p): Removed.
12871 (common_handle_option): Don't handle OPT_Wdisallowed_function_list_.
12872 * c-parser.c (c_parser_postfix_expression_after_primary): Don't call
12873 warning_if_disallowed_function_p.
12874 * flags.h (warn_if_disallowed_function_p,
12875 warn_disallowed_functions): Removed.
12876 * common.opt (Wdisallowed-function-list=): Removed.
12877 * doc/invoke.texi (-Wdisallowed-function-list=): Removed.
12878
b005da11
RG
128792009-03-28 Richard Guenther <rguenther@suse.de>
12880
12881 PR tree-optimization/38723
12882 * tree-ssa-pre.c (compute_avail): Add all default definitions to
12883 the entry block.
12884
1de812a6
JH
128852009-03-28 Jan Hubicka <jh@suse.cz>
12886
12887 * tree-ssa-structalias.c (ipa_pta_execute): Fix bogus node->analyzed
12888 test introduced by my previous patch.
12889
fbb789d4
RG
128902009-03-28 Richard Guenther <rguenther@suse.de>
12891
12892 * tree-ssa-copy.c (copy_prop_visit_phi_node): Do not leave
12893 the PHIs value undefined.
12894
6f1873a1
JH
128952009-03-28 Jan Hubicka <jh@suse.cz>
12896
12897 * tree-pass.h (pass_fixup_cfg): New pass.
12898 * ipa-inline.c (inline_transform): Set
12899 always_inline_functions_inlined/after_inlining.
12900 * tree-optimize.c (execute_fixup_cfg): Do not set them here.
12901 (pass_fixup_cfg): New pass.
12902 * passes.c (init_optimization_passes): Add fixup_cfg.
12903
17021bc8
RG
129042009-03-28 Richard Guenther <rguenther@suse.de>
12905
12906 PR tree-optimization/38458
12907 * tree-ssa-copy.c (copy_prop_visit_phi_node): For the first
12908 argument use the arguments copy-of value.
12909
e8114fba
RG
129102009-03-28 Richard Guenther <rguenther@suse.de>
12911
12912 PR tree-optimization/38180
12913 * tree-ssa-ccp.c (get_default_value): Simplify.
12914 (likely_value): Likewise.
12915 (surely_varying_stmt_p): Properly handle VOP case.
12916 (ccp_initialize): Likewise.
12917 (ccp_fold): Handle propagating through *&.
12918 (fold_const_aggregate_ref): Also handle decls.
12919
257eb6e3
JH
129202009-03-28 Jan Hubicka <jh@suse.cz>
12921
12922 * cgraph.c (dump_cgraph_node): Add replace output flag by process.
12923 * cgraph.h (cgraph_node): Likewise.
12924 * cgraphunit.c (cgraph_process_new_functions): Set process flag.
12925 (cgraph_reset_node): Use process flag.
12926 (cgraph_mark_functions_to_output): Likewise.
12927 (cgraph_expand_function): Likewise.
12928 (cgraph_expand_all_functions): Likewise.
12929 (cgraph_output_in_order): Likewise.
12930 * dwarf2out.c (reference_to_unused): Likewise.
12931 * passes.c do_per_function_toporder): Likewise.
12932
61a05df1
JH
129332009-03-28 Jan Hubicka <jh@suse.cz>
12934
12935 Bring from lto-branch:
ba20e309 12936
61a05df1
JH
12937 2008-09-03 Doug Kwan <dougkwan@google.com>
12938
12939 * cgraphbuild.c (initialize_inline_failed): Use cgraph_inline_failed_t
12940 enums instead of reason strings.
12941 * cgraph.c (cgraph_create_edge): Same.
12942 (cgraph_inline_failed_string): New function.
12943 * cgraph.h (cgraph_inline_failed_t): New enum type.
12944 (cgraph_inline_failed_string): New prototype.
12945 (struct cgraph_edge): Change type of INLINED_FAILED from constant
12946 char pointer to cgraph_inline_failed_t.
12947 (cgraph_inline_p): Adjust prototype to use cgraph_inline_failed_t.
12948 (cgraph_default_inline_p): Ditto.
60839f5d 12949 * cgraphunit.c (cgraph_inline_p): Change type of parameter REASON
61a05df1
JH
12950 to cgraph_inline_failed_t pointer.
12951 * cif-code.def: New file.
12952 * ipa-inline.c (cgraph_mark_inline_edge): Use an enum instead of a
12953 reason string.
12954 (cgraph_check_inline_limits): Change type of REASON to pointer to
12955 cgraph_inline_failed_t. Replace reason strings with enums.
12956 (cgraph_default_inline_p): Ditto.
12957 (cgraph_recursive_inlining_p): Ditto.
12958 (update_caller_keys): Change type of FAILED_REASON to
12959 cgraph_inline_failed_t.
12960 (cgraph_set_inline_failed): Change type of REASON to pointer to
12961 cgraph_inline_failed_t. Call cgraph_inline_failed_string to
12962 convert enums to strings for text output.
12963 (cgraph_decide_inlining_of_small_function): Change FAILED_REASON
12964 to be of type cgraph_inline_failed_t. Replace reason strings with
12965 enums. Call cgraph_inline_failed_string to covert enums
12966 to strings for text output.
12967 (cgraph_decide_inlining): Replace reason strings with enums.
12968 (cgraph_decide_inlining_incrementally): Change type of FAILED_REASON
12969 to cgraph_inline_failed_t type. Call cgraph_inline_failed_string
12970 for text output.
12971 * tree-inline.c (expand_call_inline): Change type of REASON
12972 to cgraph_inline_failed_t. Replace reason strings with enums.
12973 Call cgraph_inline_failed_string for text output.
12974 * Makefile.in (CGRAPH_H): Add cif-code.def to dependencies.
12975 (cgraph.o): Ditto.
12976
144e8aac
JH
129772009-03-28 Jan Hubicka <jh@suse.cz>
12978
12979 * cgraph.c (cgraph_node, cgraph_remove_node, dump_cgraph_node,
12980 cgraph_clone_node): Remove master clone handling.
12981 (cgraph_is_master_clone, cgraph_master_clone): Remove.
12982 * cgraph.h (master_clone): Remove.
12983 (cgraph_is_master_clone, cgraph_master_clone): Remove.
12984 * ipa-type-escape.c (type_escape_execute): Remove use of master clone.
12985 (tree-ssa-structalias.c (ipa_pta_execute): Likewise.
12986
4a371c8d
JH
129872009-03-28 Jan Hubicka <jh@suse.cz>
12988
12989 * cgraph.c (cgraph_function_body_availability): Functions declared
12990 inline are always safe to assume that it is not going to be replaced.
12991
6cdb0ee3
RG
129922009-03-28 Richard Guenther <rguenther@suse.de>
12993
12994 PR tree-optimization/38513
12995 * tree-ssa-pre.c (eliminate): Remove redundant stores.
12996 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle
12997 EXC_PTR_EXPR and FILTER_EXPR.
12998 (get_ref_from_reference_ops): Likewise.
12999
8ca1fd76
RG
130002009-03-28 Richard Guenther <rguenther@suse.de>
13001
13002 PR tree-optimization/38968
13003 * tree-vect-analyze.c (vect_compute_data_ref_alignment):
13004 Use FLOOR_MOD_EXPR to compute misalignment.
13005
a254e44d
RG
130062009-03-28 Richard Guenther <rguenther@suse.de>
13007
13008 PR tree-optimization/37795
13009 * tree.h (combine_comparisons): Declare.
13010 * fold-const.c (combine_comparisons): Export.
13011 * tree-ssa-ifcombine.c (ifcombine_ifandif): Optimize two successive
13012 comparisons.
13013 (ifcombine_iforif): Use combine_comparisons.
13014
a8ee227c
JH
130152009-03-28 Jan Hubicka <jh@suse.cz>
13016
13017 * tree-eh.c (inlinable_call_p): New function.
13018 (make_eh_edges): Use it.
13019 (verify_eh_edges): Use it.
13020 (stmt_can_throw_external, stmt_can_throw_internal): Use it.
13021 * except.c (reachable_next_level): Add inlinable_function argument
13022 (sjlj_find_directly_reachable_regions): Update.
13023 (add_reachable_handler): Do not set saw_any_handlers.
13024 (reachable_next_level): Handle MUST_NOT_THROW more curefully.
13025 (foreach_reachable_handler, can_throw_internal_1, can_throw_external_1):
13026 Add new inlinable call parameter.
13027 (can_throw_internal, can_throw_external): Update.
13028 * except.h (can_throw_internal_1, can_throw_external_1,
13029 foreach_reachable_handler): Update declaration.
13030
52c0e446
JM
130312009-03-28 Joseph Myers <joseph@codesourcery.com>
13032
13033 * config/arm/t-arm-coff, config/h8300/coff.h,
13034 config/i386/i386-aout.h, config/i386/i386-coff.h,
13035 config/libgloss.h, config/m68k/coff.h, config/m68k/m68k-aout.h,
13036 config/pdp11/2bsd.h, config/rs6000/aix41.h,
13037 config/rs6000/aix41.opt, config/rs6000/t-newas, config/sh/coff.h,
13038 fix-header.c, fixproto, gen-protos.c, protoize.c, scan-decls.c,
13039 scan-types.sh, scan.c, scan.h, sort-protos, sys-protos.h,
13040 sys-types.h: Remove.
13041 * Makefile.in: Remove protoize and fixproto support and references
13042 in comments.
13043 (SYSCALLS.c.X-warn, TARGET_GETGROUPS_T, STMP_FIXPROTO,
13044 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, FIXPROTO_DEFINES):
13045 Remove.
13046 (ALL_HOST_OBJS): Remove $(PROTO_OBJS).
13047 (MOSTLYCLEANFILES): Remove protoize$(exeext) and
13048 unprotoize$(exeext).
13049 (rest.encap): Don't depend on $(STMP_FIXPROTO)
13050 (.PHONY): Don't depend on proto.
13051 (libgcc-support): Don't depend on $(STMP_FIXPROTO).
13052 (proto, PROTO_OBJS, protoize$(exeext), unprotoize$(exeext),
13053 protoize.o, unprotoize.o, SYSCALLS.c.X, test-protoize-simple,
13054 deduced.h, GEN_PROTOS_OBJS, build/gen-protos$(build_exeext),
13055 build/gen-protos.o, build/scan.o, xsys-protos.h,
13056 build/fix-header$(build_exeext), build/fix-header.o,
13057 build/scan-decls.o, fixhdr.ready, stmp-fixproto,
13058 stmp-install-fixproto): Remove.
13059 (mostlyclean): Don't remove xsys-protos.hT, SYSCALLS.c.X,
13060 SYSCALLS.c or fixproto files.
13061 (install-common): Don't install protoize.
13062 (install-headers-tar, install-headers-cpio, install-headers-cp):
13063 Don't depend on $(STMP_FIXPROTO).
13064 (install-mkheaders): Don't depend on $(STMP_FIXPROTO). Don't
13065 install fixproto files or write out fixproto settings.
13066 (uninstall): Don't uninstall protoize.
13067 * config.gcc (use_fixproto): Remove.
13068 (arm-*-coff*, armel-*-coff*, h8300-*-*, i[34567]86-*-aout*,
13069 i[34567]86-*-coff*, m68k-*-aout*, m68k-*-coff*, pdp11-*-bsd,
13070 rs6000-ibm-aix4.[12]*, powerpc-ibm-aix4.[12]*, sh-*-*): Remove.
13071 * config/m32r/t-linux (STMP_FIXPROTO): Remove.
13072 * config/m68k/m68k.c: Remove M68K_TARGET_COFF-conditional code.
13073 * config/mips/t-iris (FIXPROTO_DEFINES): Remove.
13074 * config/pa/t-pa-hpux (FIXPROTO_DEFINES): Remove.
13075 * config/pdp11/pdp11.c: Remove TWO_BSD-conditional code.
13076 * config/t-svr4 (FIXPROTO_DEFINES): Remove.
13077 * config/t-vxworks (STMP_FIXPROTO): Remove.
13078 * configure.ac (AC_TYPE_GETGROUPS, TARGET_GETGROUPS_T,
13079 STMP_FIXPROTO): Remove.
13080 * config.in, configure: Regenerate.
13081 * crtstuff.c (gid_t, uid_t): Don't undefine.
13082 * doc/install.texi: Change m68k-coff to m68k-elf in example.
13083 (arm-*-coff, arm-*-aout: Remove target entries.
13084 (*-ibm-aix*): Mention removal of support for AIX 4.2 and older.
13085 Remove mention of AIX 4.1.
13086 (m68k-*-*): Remove mention of m68k-*-aout and m68k-*-coff*.
13087 * doc/invoke.texi (Running Protoize): Remove.
13088 * doc/trouble.texi (Actual Bugs): Remove mention of fixproto.
13089 (Protoize Caveats): Remove.
13090 * tsystem.h: Update comments on headers assumed to exist.
13091
20a07f44
VM
130922009-03-27 Vladimir Makarov <vmakarov@redhat.com>
13093
13094 * genautomata.c: Add a new year to the copyright. Add a new
13095 reference.
13096 (struct insn_reserv_decl): Add comments for member bypass_list.
13097 (find_bypass): Remove.
13098 (insert_bypass): New.
13099 (process_decls): Use insert_bypass.
13100 (output_internal_insn_latency_func): Output all bypasses with the
13101 same input insn in one switch case.
13102
13103 * rtl.def (define_bypass): Describe bypass choice.
13104 * doc/md.texi (define_bypass): Ditto.
13105
3a0d06c1
RB
131062009-03-27 Richard Guenther <rguenther@suse.de>
13107
13108 * gimplify.c (mark_addressable): Export.
13109 * tree-flow.h (mark_addressable): Declare.
13110 * tree-ssa-loop-manip.c (create_iv): Mark the base addressable.
13111 * tree-ssa.c (verify_phi_args): Verify that address taken
13112 variables have TREE_ADDRESSABLE set.
13113
131142009-03-27 Richard Guenther <rguenther@suse.de>
13115
13116 * fold-const.c (build_fold_addr_expr_with_type_1): Rename back to ...
13117 (build_fold_addr_expr_with_type): ... this. Remove in_fold handling.
13118 Do not mark decls TREE_ADDRESSABLE.
13119 (build_fold_addr_expr): Adjust.
13120 (fold_addr_expr): Remove.
13121 (fold_unary): Use build_fold_addr_expr.
13122 (fold_comparison): Likewise.
13123 (split_address_to_core_and_offset): Likewise.
13124 * coverage.c (tree_coverage_counter_addr): Mark the array decl
13125 TREE_ADDRESSABLE.
13126 * gimplify.c (mark_addressable): Do not exclude RESULT_DECLs.
13127 (gimplify_modify_expr_to_memcpy): Mark source and destination
13128 addressable.
13129 * omp-low.c (create_omp_child_function): Mark the object decl
13130 TREE_ADDRESSABLE.
13131 (lower_rec_input_clauses): Mark the var we take the address of
13132 TREE_ADDRESSABLE.
13133 (lower_omp_taskreg): Mark the sender decl TREE_ADDRESSABLE.
13134
2ac26e15
L
131352009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13136
13137 PR middle-end/39315
13138 * cfgexpand.c (expand_one_stack_var_at): Change alignment
13139 limit to MAX_SUPPORTED_STACK_ALIGNMENT.
13140
472c7fbd
RG
131412009-03-27 Richard Guenther <rguenther@suse.de>
13142
13143 PR tree-optimization/39120
13144 * tree-ssa-structalias.c (handle_rhs_call): Fill out return
13145 constraints.
13146 (handle_lhs_call): Process return constraints. Add escape
13147 constraints if necessary.
13148 (handle_const_call): Fill out return constraints. Make nested
13149 case more precise. Avoid consttmp if possible.
13150 (handle_pure_call): Fill out return constraints. Avoid
13151 callused if possible.
13152 (find_func_aliases): Simplify call handling.
13153
131542009-03-27 Richard Guenther <rguenther@suse.de>
13155
13156 PR tree-optimization/39120
13157 * tree-ssa-structalias.c (do_sd_constraint): Do not use CALLUSED
13158 as a representative.
13159 (solve_graph): Do propagate CALLUSED.
13160 (handle_pure_call): Use a scalar constraint from CALLUSED for
13161 the return value.
13162 (find_what_p_points_to): CALLUSED shall not appear in poins-to
13163 solutions.
13164
d9223014
L
131652009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13166
13167 PR c/39323
13168 * c-common.c (handle_aligned_attribute): Properly check alignment
13169 overflow. Use (1U << i) instead of (1 << i).
13170
ba20e309 13171 * emit-rtl.c (get_mem_align_offset): Use "unsigned int" for align.
d9223014
L
13172
13173 * expr.h (get_mem_align_offset): Updated.
13174
13175 * tree.h (tree_decl_common): Change align to "unsigned int" and
13176 move it before pointer_alias_set.
13177
689b689c
L
131782009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13179 Jakub Jelinek <jakub@redhat.com>
13180
13181 PR target/38034
13182 * config/ia64/sync.md (cmpxchg_rel_<mode>): Replace input
13183 gr_register_operand with gr_reg_or_0_operand.
13184 (cmpxchg_rel_di): Likewise.
13185 (sync_lock_test_and_set<mode>): Likewise.
13186
c619e982
L
131872009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13188
13189 * jump.c (rtx_renumbered_equal_p): Use subreg_get_info.
13190 (true_regnum): Likewise.
13191
13192 * rtlanal.c (subreg_info): Moved to ...
13193 * rtl.h (subreg_info): Here. New.
13194 (subreg_get_info): New.
13195
13196 * rtlanal.c (subreg_get_info): Make it extern.
13197
51212b32
L
131982009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13199
13200 PR target/39472
13201 * config/i386/i386.c (ix86_abi): New.
13202 (override_options): Handle -mabi=.
ba20e309 13203 (ix86_function_arg_regno_p): Replace DEFAULT_ABI with ix86_abi.
51212b32
L
13204 (ix86_call_abi_override): Likewise.
13205 (init_cumulative_args): Likewise.
13206 (function_arg_advance): Likewise.
13207 (function_arg_64): Likewise.
13208 (function_arg): Likewise.
13209 (ix86_pass_by_reference): Likewise.
13210 (ix86_function_value_regno_p): Likewise.
13211 (ix86_build_builtin_va_list_abi): Likewise.
13212 (setup_incoming_varargs_64): Likewise.
13213 (is_va_list_char_pointer): Likewise.
13214 (ix86_init_machine_status): Likewise.
ba20e309 13215 (ix86_reg_parm_stack_space): Use enum calling_abi on call_abi.
51212b32
L
13216 (ix86_function_type_abi): Return enum calling_abi. Rewrite
13217 for 64bit. Replace DEFAULT_ABI with ix86_abi.
ba20e309 13218 (ix86_function_abi): Make it static and return enum calling_abi.
51212b32
L
13219 (ix86_cfun_abi): Return enum calling_abi. Replace DEFAULT_ABI
13220 with ix86_abi.
13221 (ix86_fn_abi_va_list): Updated.
13222
13223 * config/i386/i386.h (ix86_abi): New.
13224 (STACK_BOUNDARY): Replace DEFAULT_ABI with ix86_abi.
13225 (CONDITIONAL_REGISTER_USAGE): Likewise.
13226 (CUMULATIVE_ARGS): Change call_abi type to enum calling_abi.
13227 (machine_function): Likewise.
13228
13229 * config/i386/i386.md (untyped_call): Replace DEFAULT_ABI
13230 with ix86_abi.
13231 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Likewise.
13232 (STACK_BOUNDARY): Likewise.
13233 * config/i386/mingw32.h (EXTRA_OS_CPP_BUILTINS): Likewise.
13234
13235 * config/i386/i386.opt (mabi=): New.
13236
13237 * config/i386/i386-protos.h (ix86_cfun_abi): Changed to
13238 return enum calling_abi.
13239 (ix86_function_type_abi): Likewise.
13240 (ix86_function_abi): Removed.
13241
13242 * doc/invoke.texi: Document -mabi= option for x86.
13243
7338ea63
KG
132442009-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13245
13246 * builtins.c (real_dconstp): Delete.
13247 (fold_builtin_logarithm): Remove inaccurate log(e) special case.
13248
68599f33
DS
132492009-03-27 Dodji Seketeli <dodji@redhat.com>
13250 Jakub Jelinek <jakub@redhat.com>
13251
13252 PR debug/37959
13253 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_explicit attribute.
13254 (gen_subprogram_die): When a function is explicit, generate the
13255 DW_AT_explicit attribute.
13256 * langhooks.h (struct lang_hooks_for_decls): Add
13257 function_decl_explicit_p langhook.
13258 * langhooks-def.h (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Define.
13259 (LANG_HOOKS_DECLS): Add LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P.
13260
9f5e9983
JJ
132612009-03-27 Jakub Jelinek <jakub@redhat.com>
13262
64d7685c
JJ
13263 * builtins.c (fold_builtin_memory_op): Optimize memmove
13264 into memcpy if we can prove source and destination don't overlap.
13265
9f5e9983
JJ
13266 * tree-inline.c: Include gt-tree-inline.h.
13267 (clone_fn_id_num): New variable.
13268 (clone_function_name): New function.
13269 (tree_function_versioning): Use it.
13270 * Makefile.in (GTFILES): Add tree-inline.c.
13271
e54d52a8
MM
132722009-03-27 Mark Mitchell <mark@codesourcery.com>
13273
13274 * BASE-VER: Change to 4.5.0.
13275
e9d51dc6
XDL
132762009-03-27 Xinliang David Li <davidxl@google.com>
13277
13278 PR tree-optimization/39557
13279 * tree-ssa.c (warn_uninitialized_vars): free postdom info.
13280
4577cea1
XDL
132812009-03-27 Xinliang David Li <davidxl@google.com>
13282
13283 PR tree-optimization/39548
2ba9daa7 13284 * tree-ssa-copy.c (copy_prop_visit_phi_node): Add copy
4577cea1
XDL
13285 candidate check.
13286
0f7464f4
L
132872009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13288
13289 * c-common.c (pointer_int_sum): Use %wd on return from
13290 tree_low_cst.
13291
a8847a7f
L
132922009-03-27 H.J. Lu <hongjiu.lu@intel.com>
13293
13294 * c-common.c (pointer_int_sum): Use HOST_WIDE_INT_PRINT_DEC
13295 on return from tree_low_cst.
13296
b0957daf
AP
132972009-03-27 Andrew Pinski <andrew_pinski@playstation.sony.com>
13298
13299 PR c++/36799
ba20e309
UB
13300 * ginclude/stdarg.h (va_copy): Define also for
13301 __GXX_EXPERIMENTAL_CXX0X__.
b0957daf 13302
a5f805df
MLI
133032009-03-27 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
13304
13305 PR c++/35652
13306 * builtins.h (c_strlen): Do not warn here.
13307 * c-typeck.c (build_binary_op): Adjust calls to pointer_int_sum.
13308 * c-common.c (pointer_int_sum): Take an explicit location.
13309 Warn about offsets out of bounds.
13310 * c-common.h (pointer_int_sum): Adjust declaration.
13311
6f401211
RW
133122009-03-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13313
a5f805df
MLI
13314 * doc/invoke.texi (i386 and x86-64 Windows Options): Fix texinfo
13315 markup glitch.
6f401211 13316
5a59b39e
JJ
133172009-03-26 Jakub Jelinek <jakub@redhat.com>
13318
13319 PR c++/39554
13320 * opts.c (warn_if_disallowed_function_p): Don't assume
13321 get_callee_fndecl must return non-NULL.
13322
d5f89b53
VM
133232009-03-26 Vladimir Makarov <vmakarov@redhat.com>
13324
13325 PR rtl-optimization/39522
13326 * reload1.c (reload_as_needed): Invalidate reg_last_reload_reg too
13327 when reg_reloaded_valid is set.
13328
61238a79
UW
133292009-03-26 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13330
13331 * config/spu/divv2df3.c: New file.
13332 * config/spu/t-spu-elf (LIB2FUNCS_STATIC_EXTRA): Add it.
13333 (DPBIT_FUNCS): Filter out _div_df.
13334
03f8829b
BS
133352009-03-26 Bernd Schmidt <bernd.schmidt@analog.com>
13336
13337 * config/bfin/bfin.c (bfin_optimize_loop): If the LSETUP goes before
13338 a jump insn, count that jump in the distance to the loop start.
13339
9fdcdc74
KK
133402009-03-25 Kaz Kojima <kkojima@gcc.gnu.org>
13341
13342 PR target/39523
13343 * config/sh/sh.c (calc_live_regs): Fix condition for global
13344 registers except PIC_OFFSET_TABLE_REGNUM.
13345
46994828
KT
133462009-03-25 Kai Tietz <kai.tietz@onevision.com>
13347
13348 PR/39518
13349 * doc/invoke.texi (-mconsole): New.
13350 (-mcygwin): New.
13351 (-mno-cygwin): New.
13352 (-mdll): New.
13353 (-mnop-fun-dllimport): New.
13354 (-mthread): New.
13355 (-mwin32): New.
13356 (-mwindows): New.
13357 (sub section "i386 and x86-64 Windows Options"): New.
13358
60839f5d 133592009-03-25 Ralf Corsépius <ralf.corsepius@rtems.org>
370017b4
RC
13360
13361 * config/arm/rtems-elf.h: Remove LINK_GCC_C_SEQUENCE_SPEC.
13362 * config/rs6000/t-rtems: Remove MULTILIB_EXTRA_OPTS.
13363
ae560440
RG
133642009-03-25 Richard Guenther <rguenther@suse.de>
13365
13366 PR middle-end/39497
13367 * Makefile.in (dfp.o-warn): Use -fno-strict-aliasing instead
13368 of -Wno-error.
13369
cd510f15
AM
133702009-03-25 Andrey Belevantsev <abel@ispras.ru>
13371
13372 * config/ia64/ia64.c (ia64_set_sched_flags): Zero spec_info->mask when
13373 neither of haifa/selective schedulers are working.
13374
44ab0f0e
RW
133752009-03-25 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13376
13377 * doc/invoke.texi (Debugging Options): Fix description of
13378 -fno-merge-debug-strings.
13379
ad9646c7
HPN
133802009-03-24 Hans-Peter Nilsson <hp@axis.com>
13381
e6142656
HPN
13382 * config/cris/libgcc.ver: New version-script.
13383 * config/cris/t-linux (SHLIB_MAPFILES): Use it.
13384
ad9646c7
HPN
13385 * configure.ac <GAS features, nop mnemonic>: Add pattern
13386 crisv32-*-* for "nop".
ba20e309 13387 <GAS features, Thread-local storage>: Add item for CRIS and CRIS v32.
ad9646c7
HPN
13388 * configure: Regenerate.
13389
09ac4473
IR
133902009-03-24 Ira Rosen <irar@il.ibm.com>
13391
13392 PR tree-optimization/39529
13393 * tree-vect-transform.c (vect_create_data_ref_ptr): Call
13394 mark_sym_for_renaming for the tag copied to the new vector
13395 pointer.
13396
d94a427e
AL
133972009-03-24 Arthur Loiret <aloiret@debian.org>
13398
ba20e309 13399 * config.host (alpha*-*-linux*): Use driver-alpha.o and alpha/x-alpha.
d94a427e
AL
13400 * config/alpha/linux.h (host_detect_local_cpu): Declare, add to
13401 EXTRA_SPEC_FUNCTIONS.
13402 (MCPU_MTUNE_NATIVE_SPECS, DRIVER_SELF_SPECS): New macros.
13403 * config/alpha/driver-alpha.c, config/alpha/x-alpha: New.
13404 * doc/invoke.texi (DEC Alpha Options): Document 'native' value for
13405 -march and -mtune options.
13406
60839f5d 134072009-03-24 Ralf Corsépius <ralf.corsepius@rtems.org>
722d07aa
RC
13408
13409 * config/m68k/t-rtems: Add m5329 multilib.
13410
603f5959
DS
134112009-03-24 Dodji Seketeli <dodji@redhat.com>
13412 Jakub Jelinek <jakub@redhat.com>
13413
13414 PR debug/39524
13415 * dwarf2out.c (gen_variable_die): Avoid adding duplicate declaration
13416 nodes.
13417
c5cdb03f
JJ
134182009-03-23 Jakub Jelinek <jakub@redhat.com>
13419
13420 PR c/39495
13421 * c-parser.c (c_parser_omp_for_loop): Call c_parser_binary_expression
13422 instead of c_parser_expression_conv, if original_code isn't one of the
13423 4 allowed comparison codes, fail.
13424
3691626c
RG
134252009-03-23 Richard Guenther <rguenther@suse.de>
13426
13427 * cgraph.h (struct cgraph_node): Reorder fields for 64-bit hosts.
13428 * tree.h (struct tree_type): Likewise.
13429 * reload.h (struct insn_chain): Likewise.
13430 * dwarf2out.c (struct dw_loc_descr_struct): Likewise.
13431 * function.h (struct function): Likewise.
13432 * tree-ssa-structalias.c (struct equiv_class_label): Likewise.
13433
88ccb72a
JJ
134342009-03-23 Jakub Jelinek <jakub@redhat.com>
13435
13436 PR tree-optimization/39516
13437 * lambda-code.c (perfect_nestify): Fix type of the uboundvar variable.
13438
60839f5d 134392009-03-23 Bingfeng Mei <bmei@broadcom.com>
a583a67e 13440
2ba9daa7 13441 * config.gcc (need_64bit_hwint): Make clear that need_64bit_hwint
a583a67e
BM
13442 should be set true if BITS_PER_WORD of target is bigger than 32
13443
f82162f8
HPN
134442009-03-22 Hans-Peter Nilsson <hp@axis.com>
13445
13446 * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC):
13447 Translate -B-options to -rpath-link. Correct existing
13448 rpath-link and conditionalize on !nostdlib.
13449
048fd785
RW
134502009-03-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13451
13452 * doc/extend.texi (Function Attributes, Variable Attributes):
13453 Fix typos.
13454 * doc/invoke.texi (Debugging Options, Optimize Options)
13455 (i386 and x86-64 Options, MCore Options): Likewise.
13456
6e75c1a9
JJ
134572009-03-20 Jakub Jelinek <jakub@redhat.com>
13458
13459 PR debug/37890
13460 * dwarf2out.c (gen_namespace_die): Add context_die argument and use
13461 it for block local namespace aliases.
13462 (gen_decl_die): Pass context_die to gen_namespace_die.
13463
ea1199ee
JJ
134642009-03-19 Jakub Jelinek <jakub@redhat.com>
13465
13466 PR c/39495
13467 * c-omp.c (c_finish_omp_for): Allow NE_EXPR with TREE_TYPE (decl)'s
13468 minimum or maximum value.
13469
58929c10
AO
134702009-03-19 Alexandre Oliva <aoliva@redhat.com>
13471
13472 * reginfo.c (globalize_reg): Recompute derived reg sets.
13473
60839f5d 134742009-03-19 Ozkan Sezer <sezeroz@gmail.com>
234952b3
OS
13475
13476 PR target/39063
13477 * libgcc2.c (mprotect): Do not use signed arguments for
13478 VirtualProtect, use DWORD arguments. Also fix the 'may
13479 be used uninitialized' warning for the np variable.
13480
f57c2f04
JJ
134812009-03-19 Jakub Jelinek <jakub@redhat.com>
13482
13483 PR target/39496
13484 * config/i386/i386.c (ix86_function_regparm): Don't optimize local
13485 functions using regparm calling conventions when not optimizing.
13486 (ix86_function_sseregparm): Similarly for sseregparm calling
13487 conventions.
13488
9e517d61
LF
134892009-03-19 Li Feng <nemokingdom@gmail.com>
13490
13491 PR middle-end/39500
13492 * tree-data-ref.c (analyze_subscript_affine_affine): There is no
13493 dependence if the first conflict is after niter iterations.
13494
8ef20026
HPN
134952009-03-19 Hans-Peter Nilsson <hp@axis.com>
13496
13497 PR middle-end/38609
13498 * config/cris/cris.h (FRAME_POINTER_REQUIRED): Force for all
13499 functions with dynamic stack-pointer adjustments.
13500
64e4a1a6
BE
135012009-03-19 Ben Elliston <bje@au.ibm.com>
13502
13503 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix -msdata-data
13504 option; change to -msdata=data.
13505
9a0f3e86
RW
135062009-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13507
13508 * c.opt: Unify help texts for -Wdeprecated, -Wsystem-headers,
13509 and -fopenmp.
13510
09bc5979
EB
135112009-03-18 Eric Botcazou <ebotcazou@adacore.com>
13512
13513 PR target/35180
13514 * config/sparc/sparc.md (do_builtin_setjmp_setup): Prettify asm output.
13515
332459cd
SL
135162009-03-18 Sandra Loosemore <sandra@codesourcery.com>
13517
13518 * doc/invoke.texi (Code Gen Options): Expand discussion of
13519 -fno-common.
13520
8f5929e1
JJ
135212009-03-18 Jakub Jelinek <jakub@redhat.com>
13522
13523 * dse.c (struct group_info): Reorder fields for 64-bit hosts.
13524 * matrix-reorg.c (struct matrix_info): Likewise.
13525 * tree-ssa-loop-ivopts.c (struct ivopts_data): Likewise.
13526 * rtl.h (struct mem_attrs): Likewise.
13527 * df.h (struct df): Likewise.
13528 * tree-data-ref.h (struct data_dependence_relation): Likewise.
13529 * ira-int.h (struct ira_allocno): Likewise.
13530 * df-scan.c (struct df_collection_rec): Likewise.
13531 * ira.c (struct equivalence): Likewise.
13532 * function.c (struct temp_slot): Likewise.
13533 * cfgloop.h (struct loop): Likewise.
13534
d130d647
JJ
13535 PR debug/39485
13536 * function.c (use_register_for_decl): When not optimizing, disregard
13537 register keyword for variables with types containing methods.
13538
9968d233
SP
135392009-03-18 Sebastian Pop <sebastian.pop@amd.com>
13540
13541 PR middle-end/39447
13542 * graphite.c (exclude_component_ref): Renamed contains_component_ref_p.
13543 (is_simple_operand): Call contains_component_ref_p before calling data
13544 reference analysis that would fail on COMPONENT_REFs.
13545
13546 * tree-vrp.c (search_for_addr_array): Fix formatting.
13547
69484bfd
RG
135482009-03-18 Richard Guenther <rguenther@suse.de>
13549
13550 * tree-vect-transform.c (vect_loop_versioning): Fold the
13551 generated comparisons.
13552 * tree-vectorizer.c (set_prologue_iterations): Likewise.
13553 (slpeel_tree_peel_loop_to_edge): Likewise.
13554
66811228
RW
135552009-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
13556
0631b69f
RW
13557 PR middle-end/37805
13558 * opts.c (print_specific_help): In addition to `undocumented',
13559 accept `separate' and `joined' flags if passed alone. Describe
13560 output by the first matched one of those.
13561 (common_handle_option): Skip over empty strings.
13562 * gcc.c (display_help): Fix help string for `--help='.
13563 * doc/invoke.texi (Option Summary, Overall Options): With
13564 `--help=', classes and qualifiers can both be repeated, but
13565 only the latter can be negated. One should not pass only
13566 negated qualifiers. Fix markup and examples.
13567
66811228
RW
13568 Revert
13569 2008-10-14 Jakub Jelinek <jakub@redhat.com>
13570 PR middle-end/37805
13571 * opts.c (common_handle_option): Don't ICE on -fhelp=joined
13572 and -fhelp=separate.
13573
3c072c6b
JY
135742009-03-17 Jing Yu <jingyu@google.com>
13575
13576 PR middle-end/39378
80c65208
JY
13577 * function.h (struct rtl_data): Move is_thunk from here...
13578 (struct function): ...to here.
13579 * cp/method.c (use_thunk): Change is_thunk from crtl to cfun.
3c072c6b
JY
13580 * varasm.c (assemble_start_function): Change is_thunk from crtl to
13581 cfun.
80c65208
JY
13582 * config/alpha/alpha.c (alpha_sa_mask): Change is_thunk from crtl to
13583 cfun.
13584 (alpha_does_function_need_gp, alpha_start_function): Likewise.
13585 (alpha_output_function_end_prologue): Likewise.
13586 (alpha_end_function, alpha_output_mi_thunk_osf): Likewise.
13587 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likewise.
13588 (rs6000_output_function_epilogue): Likewise.
13589 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Likewise.
3c072c6b 13590
9ade279b
UB
135912009-03-17 Uros Bizjak <ubizjak@gmail.com>
13592
13593 PR target/39482
13594 * config/i386/i386.md (*truncdfsf_mixed): Avoid combining registers
13595 from different units in a single alternative.
13596 (*truncdfsf_i387): Ditto.
13597 (*truncxfsf2_mixed): Ditto.
13598 (*truncxfdf2_mixed): Ditto.
13599
16e60c17
JJ
136002009-03-17 Jakub Jelinek <jakub@redhat.com>
13601
98381eb4
JJ
13602 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Allow
13603 non-NAMESPACE_DECL IMPORTED_DECL_ASSOCIATED_DECL.
13604
df5deb18
JJ
13605 PR debug/39474
13606 * tree-ssa-live.c (remove_unused_locals): Don't remove local
13607 unused non-artificial variables when not optimizing.
13608
a3f596ba
JJ
13609 PR debug/39471
13610 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): Emit
13611 DW_TAG_imported_module even if decl is IMPORTED_DECL with
13612 NAMESPACE_DECL in its DECL_INITIAL.
13613
6b2b8871
JJ
13614 PR middle-end/39443
13615 * optabs.c (set_user_assembler_libfunc): New function.
13616 * expr.h (set_user_assembler_libfunc): New prototype.
13617 * c-common.c: Include libfuncs.h.
13618 (set_builtin_user_assembler_name): Call set_user_assembler_libfunc
13619 for memcmp, memset, memcpy, memmove and abort.
13620 * Makefile.in (c-common.o): Depend on libfuncs.h.
13621
16e60c17
JJ
13622 PR debug/39412
13623 * dwarf2out.c (gen_inlined_enumeration_type_die,
13624 gen_inlined_structure_type_die, gen_inlined_union_type_die,
13625 gen_tagged_type_instantiation_die): Removed.
13626 (gen_decl_die): For TYPE_DECL_IS_STUB with non-NULL decl_origin
13627 do nothing.
13628
4d936aca
JJ
136292009-03-17 Janis Johnson <janis187@us.ibm.com>
13630
13631 PR testsuite/38526
13632 * Makefile.in (site.exp): Rename TEST_GCC_EXEC_PREFIX and comment
13633 its use.
13634 (check-%): Don't set GCC_EXEC_PREFIX when invoking runtest.
13635 (check-parallel-%): Ditto.
13636 (check-consistency): Ditto.
13637
4e9b2e50
KT
136382009-03-17 Kai Tietz <kai.tietz@onevision.com>
13639
13640 * ipa-struct-reorg.c (create_general_new_stmt): Initialize
13641 local variable rhs by NULL_TREE.
13642
21440b2d
L
136432009-03-17 H.J. Lu <hongjiu.lu@intel.com>
13644
13645 PR target/39477
9ade279b 13646 * doc/extend.texi: Correct register behavior for regparm on Intel 386.
21440b2d 13647
d8905c6a
L
136482009-03-17 H.J. Lu <hongjiu.lu@intel.com>
13649
13650 PR target/39476
9ade279b 13651 * config/i386/i386.c (ix86_function_regparm): Rewrite for 64bit.
d8905c6a
L
13652
136532009-03-17 H.J. Lu <hongjiu.lu@intel.com>
435a61d3
L
13654
13655 PR target/39473
13656 * config/i386/i386.c (ix86_expand_call): Check extra clobbers
13657 for ms->sysv ABI calls only in 64bit mode.
13658
13659 * config/i386/i386.md (untyped_call): Support 32bit.
13660
cdcabece
L
136612009-03-16 H.J. Lu <hongjiu.lu@intel.com>
13662
13663 * doc/extend.texi: Replace x86_65 with x86_64.
13664
97b4ba9f
JJ
136652009-03-16 Jakub Jelinek <jakub@redhat.com>
13666
13667 PR tree-optimization/39455
13668 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Fix types
13669 mismatches for POINTER_TYPE_P (type).
13670 (number_of_iterations_le): Likewise.
13671
60839f5d 136722009-03-16 Hariharan Sandanagobalane <hariharan@picochip.com>
83c191e1
HS
13673
13674 * config/picochip/picochip.c: Removed profiling support.
13675 * config/picochip/picochip.md: Removed profiling instruction.
13676 * config/picochip/picochip.h: Removed profiling builtin.
13677
f38095f3
JM
136782009-03-16 Joseph Myers <joseph@codesourcery.com>
13679
13680 * doc/install.texi (--with-host-libstdcxx): Document.
13681
2cb4817b
AS
136822009-03-14 Anatoly Sokolov <aesok@post.ru>
13683
13684 PR target/34299
13685 * config/avr/avr.c (avr_handle_fndecl_attribute): Move code for
13686 generate a warning if the function name does not begin with
13687 "__vector" and the function has either the 'signal' or 'interrupt'
13688 attribute, from here to ...
13689 (avr_declare_function_name): ...here. New function.
13690 * config/avr/avr.h (ASM_DECLARE_FUNCTION_NAME): Redefine.
13691 * config/avr/avr-protos.h (avr_declare_function_name): Declare.
13692
39b2ac74
JJ
136932009-03-14 Jakub Jelinek <jakub@redhat.com>
13694
13695 PR bootstrap/39454
13696 * cse.c (fold_rtx): Don't modify original const_arg1 when
13697 canonicalizing SHIFT_COUNT_TRUNCATED shift count, do it on a
13698 separate variable instead.
13699 * rtlanal.c (nonzero_bits1) <case ASHIFTRT>: Don't assume anything
13700 from out of range shift counts.
13701 (num_sign_bit_copies1) <case ASHIFTRT, case ASHIFT>: Similarly.
13702
ad41bd84 137032009-03-13 Catherine Moore <clm@codesourcery.com>
f7a82dee 13704
60839f5d 13705 * config/i386/x-mingw32 (host-mingw32.o): Replace
f7a82dee
CM
13706 diagnostic.h with $(DIAGNOSTIC_H).
13707
ad41bd84 137082009-03-12 Jakub Jelinek <jakub@redhat.com>
03a18198
JJ
13709
13710 PR target/39431
13711 * config/i386/predicates.md (cmpxchg8b_pic_memory_operand): New
13712 predicate.
13713 * config/i386/sync.md (sync_compare_and_swap<mode>,
13714 sync_compare_and_swap_cc<mode>): For DImode with -m32 -fpic check
13715 if operands[1] is cmpxchg8b_pic_memory_operand, if not force address
13716 into a register.
13717 (sync_double_compare_and_swapdi_pic,
13718 sync_double_compare_and_swap_ccdi_pic): Require operand 1 to be
13719 cmpxchg8b_pic_memory_operand instead of just memory_operand.
13720
122c59c7
L
137212009-03-12 H.J. Lu <hongjiu.lu@intel.com>
13722
13723 PR target/39445
9ade279b 13724 * config/i386/i386.c (ix86_expand_push): Don't set memory alignment.
122c59c7 13725
cec8874f
L
137262009-03-12 H.J. Lu <hongjiu.lu@intel.com>
13727
13728 PR target/39327
13729 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
13730 (avx_addsubv4df3): Likewise.
13731 (*avx_addsubv4sf3): Likewise.
13732 (sse3_addsubv4sf3): Likewise.
13733
bbb52802
L
137342009-03-12 H.J. Lu <hongjiu.lu@intel.com>
13735
13736 PR target/38824
9ade279b 13737 * config/i386/i386.md: Compare REGNO on the new peephole2 patterns.
bbb52802 13738
a812fb07
VM
137392009-03-12 Vladimir Makarov <vmakarov@redhat.com>
13740
13741 PR debug/39432
13742 * ira-int.h (struct allocno): Fix comment for calls_crossed_num.
13743 * ira-conflicts.c (ira_build_conflicts): Prohibit call used
13744 registers for allocnos created from user-defined variables.
13745
4caab5ba
UW
137462009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13747
13748 PR target/39181
13749 * config/spu/spu.c (spu_expand_mov): Handle invalid subregs
13750 of non-integer mode as well.
13751
498e51ca
AN
137522009-03-11 Adam Nemet <anemet@caviumnetworks.com>
13753
13754 * gimplify.c (gimplify_call_expr): Don't set CALL_CANNOT_INLINE_P
13755 for functions for which the parameter types are unknown.
13756
9bfaf89d
JJ
137572009-03-11 Jakub Jelinek <jakub@redhat.com>
13758
13759 PR target/39137
9ade279b 13760 * cfgexpand.c (get_decl_align_unit): Use LOCAL_DECL_ALIGNMENT macro.
9bfaf89d
JJ
13761 * defaults.h (LOCAL_DECL_ALIGNMENT): Define if not yet defined.
13762 * config/i386/i386.h (LOCAL_DECL_ALIGNMENT): Define.
13763 * config/i386/i386.c (ix86_local_alignment): For
13764 -m32 -mpreferred-stack-boundary=2 use 32-bit alignment for
13765 long long variables on the stack to avoid dynamic realignment.
13766 Allow the first argument to be a decl rather than type.
13767 * doc/tm.texi (LOCAL_DECL_ALIGNMENT): Document.
13768
18a3bdcb
NC
137692009-03-11 Nick Clifton <nickc@redhat.com>
13770
13771 PR target/5362
40190a76
NC
13772 * config/mcore/mcore.opt: Remove deprecated m4align and m8align
13773 options.
13774 Add description to mno-lsim option.
13775 * config/mcore/mcore.h: Remove comment about deprecated m4align
13776 option.
13777 (TARGET_DEFAULT): Remove deprecated MASK_M8ALIGN.
13778 * doc/invoke.texi: Add description of mno-lsim and
13779 mstack-increment options.
13780
18a3bdcb
NC
13781 * config/fr30/fr30.opt: Document the -mno-lsim option.
13782 * doc/invoke.texi: Add descriptions of the FR30's -msmall-model
13783 and -mno-lsim options.
13784
dc215785
UW
137852009-03-11 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13786
13787 * fold-const.c (fold_comparison): Only call fold_inf_compare
13788 if the mode supports infinities.
13789
7716876b
JM
137902009-03-11 Jason Merrill <jason@redhat.com>
13791
13792 PR debug/39086
13793 * tree-nrv.c (tree_nrv): Don't do this optimization if the front
13794 end already did. Notice GIMPLE_CALL modifications of the result.
13795 Don't copy debug information from an ignored decl or a decl from
13796 another function.
13797
ddef83d2
RG
137982009-03-10 Richard Guenther <rguenther@suse.de>
13799 Nathan Froyd <froydnj@codesourcery.com>
13800
13801 PR middle-end/37850
9ade279b 13802 * libgcc2.c (__mulMODE3): Use explicit assignments to form the result.
ddef83d2
RG
13803 (__divMODE3): Likewise.
13804
9a9ba8d9
JJ
138052009-03-09 Jakub Jelinek <jakub@redhat.com>
13806
13807 PR tree-optimization/39394
13808 * gimplify.c (gimplify_type_sizes): Gimplify DECL_SIZE and
13809 DECL_SIZE_UNIT of variable length FIELD_DECLs.
13810
929b7fc3
AK
138112009-03-09 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
13812
13813 * recog.c (verfiy_changes): Disallow renaming of hard regs in
13814 inline asms for register asm ("") declarations.
13815
1803581d
EB
138162009-03-09 Eric Botcazou <ebotcazou@adacore.com>
13817
13818 * fold-const.c (fold_unary): Fix comment.
13819
8454d27e
JH
138202009-03-07 Jan Hubicka <jh@suse.cz>
13821
13822 PR target/39361
969a5433
JJ
13823 * tree-inline.c (setup_one_parameter): Do replacement of const
13824 argument by constant in SSA form.
8454d27e 13825
3a695389
UW
138262009-03-07 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13827
13828 PR middle-end/38028
13829 * function.c (assign_parm_setup_stack): Use STACK_SLOT_ALIGNMENT to
13830 determine alignment passed to assign_stack_local.
13831 (assign_parms_unsplit_complex): Likewise.
13832 * except.c (sjlj_build_landing_pads): Likewise.
13833
9f0e7885
JJ
138342009-03-06 Jakub Jelinek <jakub@redhat.com>
13835
65401a0b
JJ
13836 PR middle-end/39360
13837 * tree-flow.h (add_referenced_var): Return bool instead of void.
13838 * tree-dfa.c (add_referenced_var): Return result of
13839 referenced_var_check_and_insert call.
13840 * tree-inline.c (expand_call_inline): Call add_referenced_var instead
13841 of referenced_var_check_and_insert.
13842
9f0e7885 13843 PR debug/39372
9ade279b 13844 * dwarf2out.c (add_abstract_origin_attribute): Return origin_die.
9f0e7885
JJ
13845 (gen_variable_die): Emit DW_AT_location on abstract static variable's
13846 DIE, don't emit it if abstract origin already has it.
13847 * tree-cfg.c (remove_useless_stmts_bind): GIMPLE_BINDs with any
13848 BLOCK_NONLOCALIZED_VARS in its gimple_bind_block aren't useless.
13849
3b664bd1
JBG
138502009-03-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13851
ba20e309 13852 * genpreds.c (needs_variable): Fix parentheses at variable name
3b664bd1
JBG
13853 detection.
13854 (write_tm_constrs_h): Indent generated code.
13855
d8f8ca80
RR
138562009-03-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13857
13858 * doc/extend.texi (Function Attributes): Add documentation
13859 for isr attributes.
13860
6c3d550c
JJ
138612009-03-06 Jakub Jelinek <jakub@redhat.com>
13862
13863 PR debug/39387
13864 * dwarf2out.c (dwarf2out_imported_module_or_decl_1): For IMPORTED_DECL
13865 take locus from its DECL_SOURCE_LOCATION instead of input_location.
13866
f9e96751
BS
138672009-03-05 Bernd Schmidt <bernd.schmidt@analog.com>
13868
13869 * config/bfin/bfin.c (bfin_discover_loop): When retrying fails, mark
13870 the loop as bad.
13871
ee0ee7e2
JJ
138722009-03-05 Jakub Jelinek <jakub@redhat.com>
13873
13874 PR debug/39379
13875 * tree-cfg.c (remove_useless_stmts_bind): Don't remove GIMPLE_BINDs
13876 with blocks containing IMPORTED_DECLs in BLOCK_VARS.
13877
6c6094f1
UB
138782009-03-05 Uros Bizjak <ubizjak@gmail.com>
13879
13880 * config/i386/i386.md (R8_REG, R9_REG): New constants.
13881 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Use named
13882 constants instead of magic numbers.
13883 (HARD_REGNO_CALLER_SAVE_MODE): Ditto.
13884 (QI_REG_P): Ditto.
13885 * config/i386/i386.c (x86_64_int_parameter_registers): Ditto.
13886 (x86_64_ms_abi_int_parameter_registers): Ditto.
13887 (x86_64_int_return_registers): Ditto.
09f8a8d3 13888 (ix86_maybe_switch_abi): Ditto.
6c6094f1
UB
13889 (ix86_expand_call): Ditto for clobbered_registers array.
13890 (ix86_hard_regno_mode_ok): Ditto.
13891 (x86_extended_QIreg_mentioned_p): Ditto.
13892
b267bd41
R
138932009-03-05 J"orn Rennecke <joern.rennecke@arc.com>
13894
6c6094f1 13895 PR tree-optimization/39349
1f3ad3f0
R
13896 * cse.c (cse_insn): Fix loop to stop at VOIDmode.
13897
b267bd41
R
13898 * combine.c (gen_lowpart_for_combine): Use omode when generating
13899 clobber.
13900
1242bc9d
R
139012009-03-04 J"orn Rennecke <joern.rennecke@arc.com>
13902
6c6094f1 13903 PR rtl-optimization/39235
1242bc9d
R
13904 * loop-iv.c (get_simple_loop_desc): Use XCNEW.
13905
48f03606
ZD
139062009-03-04 Zdenek Dvorak <ook@ucw.cz>
13907
13908 * graphite.c (nb_reductions_in_loop): Update simple_iv arguments.
13909
b505e785
RG
139102009-03-04 Richard Guenther <rguenther@suse.de>
13911
13912 PR tree-optimization/39362
13913 * tree-ssa-sccvn.c (visit_use): Stores and copies from SSA_NAMEs
13914 that occur in abnormal PHIs should be varying.
13915
f017bf5e
ZD
139162009-03-04 Zdenek Dvorak <ook@ucw.cz>
13917
13918 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop):
13919 Extend comments.
13920 (simple_iv): Take loop as an argument instead of statement.
13921 * tree-scalar-evolution.h (simple_iv): Declaration changed.
13922 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update calls
13923 to simple_iv.
13924 * tree-ssa-loop-ivopts.c (determine_biv_step, find_givs_in_stmt_scev):
13925 Ditto.
13926 * tree-parloops.c (loop_parallel_p, canonicalize_loop_ivs): Ditto.
13927 * matrix-reorg.c (analyze_transpose): Ditto.
13928 * tree-data-ref.c (dr_analyze_innermost): Ditto.
13929 * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
13930 * tree-predcom.c (ref_at_iteration): Ditto.
13931 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Ditto.
13932
6a66f28e
RG
139332009-03-04 Richard Guenther <rguenther@suse.de>
13934
13935 PR tree-optimization/39358
13936 * tree-ssa-structalias.c (do_sd_constraint): Fix check for
13937 escaped_id and callused_id.
13938 (solve_graph): Likewise.
13939
57e454ee
RG
139402009-03-04 Richard Guenther <rguenther@suse.de>
13941
13942 PR tree-optimization/39339
13943 * tree-sra.c (try_instantiate_multiple_fields): Make it
13944 no longer ICE on the above.
13945
a6fe9ed4
JM
139462009-03-03 Joseph Myers <joseph@codesourcery.com>
13947
13948 * emit-rtl.c (adjust_address_1): Reduce offset to a signed value
13949 that fits within Pmode.
13950
dc672951
SE
139512009-03-03 Steve Ellcey <sje@cup.hp.com>
13952
13953 PR middle-end/10109
13954 * tm.texi (LIBCALL_VALUE): Update description.
13955
8b9d598f
SE
139562009-03-03 Steve Ellcey <sje@cup.hp.com>
13957
13958 PR middle-end/34443
13959 * doc/extend.texi (section): Update description.
13960
13e4e36e
L
139612009-03-03 H.J. Lu <hongjiu.lu@intel.com>
13962
13963 PR middle-end/39345
13964 * tree-inline.c (remapped_type): New.
13965 (can_be_nonlocal): Call remapped_type instead of remap_type.
13966
067dd3c9
JJ
139672009-03-03 Jakub Jelinek <jakub@redhat.com>
13968
13969 PR fortran/39354
13970 * gimplify.c (goa_stabilize_expr): Handle tcc_comparison,
13971 TRUTH_ANDIF_EXPR and TRUTH_ORIF_EXPR.
13972
9bd9f738
RG
139732009-03-03 Richard Guenther <rguenther@suse.de>
13974
13975 PR middle-end/39272
13976 * tree.c (tree_nonartificial_location): New function.
13977 * tree.h (tree_nonartificial_location): Declare.
13978 * builtins.c (expand_builtin_memory_chk): Provide location
13979 of the call location for artificial function pieces.
13980 (maybe_emit_chk_warning): Likewise.
13981 (maybe_emit_sprintf_chk_warning): Likewise.
13982 (maybe_emit_free_warning): Likewise.
13983 * expr.c (expand_expr_real_1): Likewise.
13984
f07049c8
JJ
139852009-03-03 Jakub Jelinek <jakub@redhat.com>
13986
13987 PR tree-optimization/39343
13988 * tree-ssa-ccp.c (maybe_fold_offset_to_address): Don't check if
13989 COMPONENT_REF t has ARRAY_TYPE.
13990
7d4fba4a
SP
139912009-03-02 Sebastian Pop <sebastian.pop@amd.com>
13992
13993 PR middle-end/39335
13994 * tree-parloops.c (canonicalize_loop_ivs): Call fold_convert
13995 when the type precision of the induction variable should be
13996 larger than the type precision of nit.
13997 (gen_parallel_loop): Update use of canonicalize_loop_ivs.
13998 * graphite.c (graphite_loop_normal_form): Same.
13999 * tree-flow.h (canonicalize_loop_ivs): Update declaration.
14000
78168632
UB
140012009-03-02 Uros Bizjak <ubizjak@gmail.com>
14002
14003 * config/i386/i386.md (ST?_REG, MM?_REG): New constants.
14004 (*call_1_rex64_ms_sysv): Use named constants instead of magic
6c6094f1 14005 numbers to describe clobbered registers.
78168632 14006 (*call_value_0_rex64_ms_sysv): Ditto.
6c6094f1
UB
14007 * config/i386/mmx.md (mmx_emms): Ditto.
14008 (mmx_femms): Ditto.
78168632 14009
63553059
RS
140102009-03-02 Richard Sandiford <rdsandiford@googlemail.com>
14011
14012 * config/mips/mips.c (mips_mdebug_abi_name): Fix the handling
14013 of ABI_64.
14014
500a1f85
UW
140152009-03-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14016
14017 * config/spu/spu.c (TARGET_SECTION_TYPE_FLAGS): Define.
14018 (spu_section_type_flags): New function.
14019
962aae34
UB
140202009-03-02 Uros Bizjak <ubizjak@gmail.com>
14021
14022 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not copy
14023 reg_class_contents of FLOAT_REGS into a temporary.
14024
6dfb529c 140252009-03-02 Richard Guenther <rguenther@suse.de>
962aae34 14026 Ira Rosen <irar@il.ibm.com>
6dfb529c
RG
14027
14028 PR tree-optimization/39318
14029 * tree-vect-transform.c (vectorizable_call): Transfer the EH region
14030 information to the vectorized statement.
14031
6b5629db
UB
140322009-03-01 Uros Bizjak <ubizjak@gmail.com>
14033
434426d2
UB
14034 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Do not shadow "i"
14035 variable. Use defined names instead of magic constants for REX SSE
14036 registers.
6b5629db 14037
14e5b285
RG
140382009-03-01 Richard Guenther <rguenther@suse.de>
14039
14040 PR tree-optimization/39331
14041 * omp-low.c (lower_send_shared_vars): Do not receive new
14042 values for the reference of DECL_BY_REFERENCE parms or results.
14043
526d73ab
JH
140442009-03-01 Jan Hubicka <jh@suse.cz>
14045
14046 PR debug/39267
14047 * tree.h (BLOCK_NONLOCALIZED_VARS, BLOCK_NUM_NONLOCALIZED_VARS,
14048 BLOCK_NONLOCALIZED_VAR): New macros.
14049 (tree_block): Add nonlocalized_vars.
f4ea99bd
EB
14050 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die,
14051 gen_decl_die): Add origin argument. Allow generation of die with
14052 origin at hand only.
526d73ab 14053 (gen_member_die, gen_type_die_with_usage, force_decl_die,
f4ea99bd
EB
14054 declare_in_namespace, gen_namescpace_die, dwarf2out_decl): Update use
14055 of gen_*.
526d73ab
JH
14056 (gen_block_die): Fix checking for unused blocks.
14057 (process_scope_var): Break out from .... ; work with origins only.
14058 (decls_for_scope) ... here; process nonlocalized list.
14059 (dwarf2out_ignore_block): Look for nonlocalized vars.
f4ea99bd
EB
14060 * tree-ssa-live.c (remove_unused_scope_block_p): Look for nonlocalized
14061 vars.
526d73ab
JH
14062 (dump_scope_block): Dump them.
14063 * tree-inline.c (remap_decls): Handle nonlocalized vars.
14064 (remap_block): Likewise.
14065 (can_be_nonlocal): New predicate.
14066 (copy_bind_expr, copy_gimple_bind): Update use of remap_block.
14067
7a9d3fe8
RW
140682009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14069
14070 * configure: Regenerate.
14071
b3cdf3cb
RW
140722009-03-01 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
14073
a16d1645 14074 * optc-gen.awk: No need to duplicate option flags twice.
9ade279b 14075 Reuse help texts for duplicate options which do not have any.
a16d1645 14076
1156c176
RW
14077 * gcc.c (display_help): Document --version.
14078
033505fc
RW
14079 * gcc.c (main): If print_help_list and verbose_flag, ensure
14080 driver output comes before subprocess output.
14081
4d077054
RW
14082 * optc-gen.awk: Assign all remaining fields to help string,
14083 space-separated, for multi-line help in *.opt.
14084
a072f1cf
RW
14085 * doc/invoke.texi (Warning Options): -Wsync-nand is C/C++ only.
14086 -Wno-pedantic-ms-format is for MinGW targets only.
14087
b3cdf3cb
RW
14088 * doc/options.texi (Option file format): Fix bad indentation,
14089 restoring dropped sentence.
14090
a3aadcc5
JH
140912009-02-28 Jan Hubicka <jh@suse.cz>
14092
14093 * tree-inline.c (tree_function_versioning): Output debug info.
14094
1cf5abb3
JH
140952009-02-28 Jan Hubicka <jh@suse.cz>
14096
14097 PR debug/39267
14098 * tree-inline.c (setup_one_parameter): Do not copy propagate
14099 arguments when not optimizing.
14100
c4d3f42f
L
141012009-02-28 H.J. Lu <hongjiu.lu@intel.com>
14102
14103 PR target/39327
14104 * config/i386/sse.md (avx_addsubv8sf3): Correct item bits.
14105 (avx_addsubv4df3): Likewise.
14106 (*avx_addsubv4sf3): Likewise.
14107 (sse3_addsubv4sf3): Likewise.
14108 (*avx_addsubv2df3): Likewise.
14109 (sse3_addsubv2df3): Likewise.
14110 (avx_unpckhps256): Correct item selectors.
14111 (avx_unpcklps256): Likewise.
14112 (avx_unpckhpd256): Likewise.
14113 (avx_unpcklpd256): Likewise.
14114
eb50f5f4
JH
141152009-02-28 Jan Hubicka <jh@suse.cz>
14116
14117 * tree-inline.c (expand_call_inline): Avoid duplicate declarations of
14118 static vars.
14119 (copy_arguments_for_versioning): If var is declared don't declare it.
14120 (tree_function_versioning): First setup substitutions and then copy
14121 args.
14122
26140130
JH
141232009-02-27 Jan Hubicka <jh@suse.cz>
14124
14125 PR debug/39267
14126 * cgraph.h (varpool_output_debug_info): Remove.
14127 * cgraphunit.c (varpool_output_debug_info): Remove.
14128 * dwarf2out.c (deferred_locations_struct): New struct
14129 (deferred_locations): New type.
14130 (deferred_locations_list): New static var.
14131 (deffer_location): New function.
14132 (gen_variable_die): Use it.
14133 (decls_for_scope): Output info on local static vars.
14134 (dwarf2out_finish): Process deferred locations.
14135 * varpool.c (varpool_output_debug_info): Remove.
14136
cff7525f
JH
141372009-02-27 Jan Hubicka <jh@suse.cz>
14138
14139 PR debug/39267
14140 * tree.h (TREE_PROTECTED): Fix comment.
14141 (BLOCK_HANDLER_BLOCK): Remove.
14142 (struct tree_block): Remove handler_block add body_block.
14143 (inlined_function_outer_scope_p): New.
14144 (is_body_block): Remove.
14145 * dbxout.c (dbxout_block): Remove BLOCK_HANDLER_BLOCK.
14146 * dwarf2out.c (is_inlined_entry_point): Remove.
14147 (add_high_low_attributes): Use inlined_function_outer_scope_p.
f10a1c6c
EB
14148 (gen_block_die): Use is_inlined_entry_point check. Remove body block
14149 code.
cff7525f
JH
14150 * langhooks.h (struct lang_hooks): Remove no_bodu_blocks.
14151 * gimplify.c (gimplify_expr): Gimplify body blocks.
f10a1c6c
EB
14152 * tree-ssa-live.c (remove_unused_scope_block_p): Allow removing wrapper
14153 block with multiple subblocks.
cff7525f
JH
14154 (dump_scope_block): Prettier output; dump more flags and info.
14155 (dump_scope_blocks): New.
14156 (remove_unused_locals): Use dump_scope_blocks.
14157 * tree-flow.h (dump_scope_blocks): Declare.
14158 * tree-cfg.c (execute_build_cfg): Dump scope blocks.
14159 * stmt.c (is_body_block): Remove.
14160 * tree-inline.c (remap_block): Copy BODY_BLOCK info.
14161 * langhooks-def.h (LANG_HOOKS_NO_BODY_BLOCKS): Remove.
14162
c20993b9
SP
141632009-02-27 Sebastian Pop <sebastian.pop@amd.com>
14164
14165 PR middle-end/39308
2ba9daa7 14166 * graphite.c (graphite_loop_normal_form): Do not call
c20993b9
SP
14167 number_of_iterations_exit from a gcc_assert.
14168
e3cba5e5
AK
141692009-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
14170
60839f5d 14171 * config/s390/s390.c (s390_swap_cmp): Look for conditional
e3cba5e5
AK
14172 jumps if COND is NULL.
14173 (find_cond_jump): New function.
14174 (s390_z10_optimize_cmp): Handling for reg-reg compares added.
60839f5d 14175 * config/s390/s390.md: Remove z10_cobra attribute value.
e3cba5e5 14176
9dadeeb8
UB
141772009-02-26 Uros Bizjak <ubizjak@gmail.com>
14178
14179 * config/alpha/alpha.h (alpha_expand_mov): Return false if
14180 force_const_mem returns NULL_RTX.
14181
625d3251
EB
141822009-02-26 Jan Hubicka <jh@suse.cz>
14183
14184 PR debug/39267
14185 * cgraph.h (varpool_output_debug_info): Remove.
14186 * cgraphunit.c (varpool_output_debug_info): Remove.
14187 * dwarf2out.c (deferred_locations_struct): New struct
14188 (deferred_locations): New type.
14189 (deferred_locations_list): New static var.
14190 (deffer_location): New function.
14191 (gen_variable_die): Use it.
14192 (decls_for_scope): Output info on local static vars.
14193 (dwarf2out_finish): Process deferred locations.
14194 * varpool.c (varpool_output_debug_info): Remove.
14195
38432148 141962009-02-25 H.J. Lu <hongjiu.lu@intel.com>
8592acaf
L
14197
14198 PR rtl-optimization/39241
14199 * jump.c (rtx_renumbered_equal_p): Remove 2 superfluous calls
14200 to subreg_offset_representable_p.
14201
62d049cf
PB
142022009-02-25 Paolo Bonzini <bonzini@gnu.org>
14203
14204 * regmove.c (regmove_optimize): Conform to struct rtl_opt_pass
14205 execute function prototype. Get f and nregs from max_reg_num
14206 and get_insns. Remove the first backward pass as it's dead,
14207 guard the forward pass by flag_expensive_optimizations.
14208 (rest_of_handle_regmove): Delete.
14209 (pass_regmove): Replace it with regmove_optimize.
14210
f618d33e
MJ
142112009-02-25 Martin Jambor <mjambor@suse.cz>
14212
14213 PR tree-optimization/39259
14214 * tree-inline.c (initialize_cfun): Remove asserts for calls_setjmp and
6c6094f1 14215 calls_alloca function flags.
f618d33e
MJ
14216 (copy_bb): Set calls_setjmp and alls_alloca function flags if such
14217 calls are detected.
14218
c8a05f7c
PB
142192009-02-25 Paolo Bonzini <bonzini@gnu.org>
14220
14221 * regmove.c (discover_flags_reg, flags_set_1, mark_flags_life_zones,
14222 flags_set_1_rtx, flags_set_1_set): Delete.
14223 (regmove_optimize): Do not call mark_flags_life_zones.
14224
6d2538f5
JB
142252009-02-24 Julian Brown <julian@codesourcery.com>
14226
14227 PR target/35965
14228 * config/arm/arm.c (require_pic_register): Only set
14229 cfun->machine->pic_reg once per function.
14230
a2fa6772
SL
142312009-02-24 Sandra Loosemore <sandra@codesourcery.com>
14232
14233 * doc/invoke.texi (Link Options): Document an easier way to pass
9dadeeb8 14234 options that take arguments to the GNU linker using -Xlinker and -Wl.
a2fa6772 14235
5472de36
SE
142362009-02-24 Steve Ellcey <sje@cup.hp.com>
14237
14238 PR target/33785
14239 * doc/tm.texi (TARGET_C99_FUNCTIONS): Fix description.
14240
844216f3
RG
142412009-02-24 Richard Guenther <rguenther@suse.de>
14242
14243 PR debug/39285
14244 * dwarf2out.c (gen_enumeration_type_die): Handle CONST_DECLs.
14245
71adbef3 142462009-02-24 Richard Guenther <rguenther@suse.de>
8592acaf 14247 Zdenek Dvorak <ook@ucw.cz>
71adbef3
RG
14248
14249 PR tree-optimization/39233
14250 * tree-ssa-loop-ivopts.c (add_candidate_1): Do not except pointers
14251 from converting them to a generic type.
14252
f1a558e0
SP
142532009-02-23 Sebastian Pop <sebastian.pop@amd.com>
14254
14255 PR tree-optimization/39260
14256 * graphite.c (harmful_stmt_in_bb): Stop a SCoP when the basic block
14257 contains a condition with a real type.
14258 (build_scop_conditions_1): Conditions are always last_stmt of a bb.
14259
d8028f2c
JM
142602009-02-23 Jason Merrill <jason@redhat.com>
14261
14262 PR c++/38880
14263 * varasm.c (initializer_constant_valid_p) [PLUS_EXPR]: Check
14264 narrowing_initializer_constant_valid_p.
2ba9daa7 14265 (narrowing_initializer_constant_valid_p): Don't return
d8028f2c
JM
14266 null_pointer_node for adding a pointer to itself.
14267
9283b513
JH
142682009-02-23 Jan Hubicka <jh@suse.cz>
14269
14270 PR c/12245
9dadeeb8
UB
14271 * ggc.h (htab_create_ggc): Use ggc_free to free hashtable when
14272 resizing.
9283b513 14273
61e04322
JH
142742009-02-23 Jan Hubicka <jh@suse.cz>
14275
9dadeeb8
UB
14276 PR tree-optimization/37709
14277 * tree.c (block_ultimate_origin): Move here from dwarf2out.
14278 * tree.h (block_ultimate_origin): Declare.
14279 * dwarf2out.c (block_ultimate_origin): Move to tree.c
61e04322
JH
14280 * tree-ssa-live.c (remove_unused_scope_block_p):
14281 Eliminate blocks containig no instructions nor live variables nor
14282 nested blocks.
14283 (dump_scope_block): New function.
14284 (remove_unused_locals): Enable removal of dead blocks by default;
9dadeeb8 14285 enable dumping at TDF_DETAILS.
61e04322 14286
38432148 142872009-02-21 H.J. Lu <hongjiu.lu@intel.com>
5339d3ea
L
14288
14289 * config/i386/i386.c (classify_argument): Don't allow COImode
14290 and OImode.
14291 (function_arg_advance_32): Don't allow OImode.
14292 (function_arg_32): Likewise.
14293 (function_value_32): Likewise.
14294 (return_in_memory_32): Likewise.
14295 (function_arg_64): Remove OImode comment.
14296
38432148 142972009-02-21 H.J. Lu <hongjiu.lu@intel.com>
f161e158
L
14298
14299 PR target/39261
14300 * config/i386/i386.c (ix86_expand_vector_init_one_nonzero): Use
14301 ix86_expand_vector_set for V4DImode in 64bit mode only.
14302 (ix86_expand_vector_init_one_var): Likewise.
14303
dcd739a6
SP
143042009-02-21 Sebastian Pop <sebastian.pop@amd.com>
14305
14306 * graphite.c (graphite_trans_loop_block): Adjust tile size to 51.
14307
6c3b938d
RS
143082009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
14309
8e361f23 14310 PR bootstrap/39257
6c3b938d
RS
14311 * loop-iv.c: Revert last change.
14312 * emit-rtl.c: Likewise.
14313
38432148 143142009-02-21 H.J. Lu <hongjiu.lu@intel.com>
4c64d3dd
L
14315
14316 PR target/39256
14317 * config/i386/i386.c (type_natural_mode): Remove an extra
14318 space in the warning message.
14319 (function_value_32): Handle 32-byte vector modes.
14320 (return_in_memory_32): Likewise.
14321
2ec62529
RS
143222009-02-21 Richard Sandiford <rdsandiford@googlemail.com>
14323
14324 * loop-iv.c (truncate_value): New function.
14325 (iv_subreg, get_iv_value, iv_number_of_iterations): Use it instead
14326 of lowpart_subreg.
14327 (lowpart_subreg): Move to...
14328 * emit-rtl.c: ...here.
14329
ecb8c3cc 143302009-02-21 Danny Smith <dannysmith@users.sourceforge.net>
f814e489 14331
ecb8c3cc
DS
14332 * config/i386/winnt.c (i386_pe_asm_output_aligned_decl_common): Revert
14333 accidental and undocumented change at revision 140860.
14334
ae46a823
JM
143352009-02-21 Joseph Myers <joseph@codesourcery.com>
14336
14337 * config/arm/arm.c (arm_gimplify_va_arg_expr): Update prototype to
14338 take gimple_seq * arguments.
14339 (arm_mangle_type): Use CONST_CAST_TREE on type argument passed to
14340 types_compatible_p langhook.
14341
07d8efe3 143422009-02-20 Mark Mitchell <mark@codesourcery.com>
f814e489 14343 Joseph Myers <joseph@codesourcery.com>
07d8efe3
MM
14344
14345 * config/arm/arm.c (arm_builtin_va_list): New function.
14346 (arm_expand_builtin_va_start): Likewise.
14347 (arm_gimplify_va_arg_expr): Likewise.
14348 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
14349 (TARGET_BUILD_BUILTIN_VA_START): Likewise.
14350 (TARGET_BUILD_BUILTIN_VA_ARG_EXPR): Likewise.
14351 (va_list_type): New variable.
14352 (arm_mangle_type): Mangle va_list_type appropriately.
14353
b1fb9f56
JJ
143542009-02-20 Jakub Jelinek <jakub@redhat.com>
14355
14356 PR middle-end/39157
14357 * Makefile.in (loop-invariant.o): Depend on $(PARAMS_H).
14358 * params.h (LOOP_INVARIANT_MAX_BBS_IN_LOOP): Define.
14359 * params.def (loop-invariant-max-bbs-in-loop): New parameter.
14360 * opts.c (decode_options): Set loop-invariant-max-bbs-in-loop
14361 parameter to 1000 for -O1 by default.
14362 * doc/invoke.texi (loop-invariant-max-bbs-in-loop): Document new
14363 parameter.
14364 * loop-invariant.c: Include params.h.
14365 (move_loop_invariants): Don't call move_single_loop_invariants on
14366 very large loops.
14367
5bc0807c
JM
143682009-02-20 Jaka Mocnik <jaka@xlab.si>
14369
14370 * calls.c (emit_library_call_value_1): Use slot_offset instead of
14371 offset when calculating bounds for indexing stack_usage_map. Fixes
14372 a buffer overflow with certain target setups.
14373
c69cd1f5
JJ
143742009-02-20 Jakub Jelinek <jakub@redhat.com>
14375
14376 PR target/39240
14377 * calls.c (expand_call): Clear try_tail_call if caller and callee
14378 disagree in promotion of function return value.
14379
09812622
JJ
143802009-02-19 Jakub Jelinek <jakub@redhat.com>
14381
14382 PR target/39175
14383 * c-common.c (c_determine_visibility): If visibility changed and
14384 DECL_RTL has been already set, call make_decl_rtl to update symbol
14385 flags.
14386
68017cb4
L
143872009-02-19 H.J. Lu <hongjiu.lu@intel.com>
14388
14389 PR c++/39188
14390 * varasm.c (assemble_variable): Don't check DECL_NAME when
14391 globalizing a variable.
14392
ab4194da
JM
143932009-02-19 Joseph Myers <joseph@codesourcery.com>
14394
14395 PR c/38483
14396 * builtins.c (gimplify_va_arg_expr): Evaluate the va_list
14397 expression before any __builtin_trap call.
14398 * c-typeck.c (build_function_call): Convert and check function
14399 arguments before generating a call to a trap. Evaluate the
14400 function arguments before the trap.
14401
6b67572e
UB
144022009-02-19 Uros Bizjak <ubizjak@gmail.com>
14403
14404 PR target/39228
14405 * config/i386/i386.md (isinfxf2): Split from isinf<mode>2.
14406 (UNSPEC_FXAM_MEM): New unspec.
14407 (fxam<mode>2_i387_with_temp): New insn and split pattern.
14408 (isinf<mode>2): Use MODEF mode iterator. Force operand[1] through
14409 memory using fxam<mode>2_i387_with_temp to remove excess precision.
14410
9e39dba6
RG
144112009-02-19 Richard Guenther <rguenther@suse.de>
14412
14413 PR tree-optimization/39207
14414 PR tree-optimization/39074
14415 * tree-ssa-structalias.c (storedanything_id, var_storedanything,
14416 storedanything_tree): New.
14417 (do_ds_constraint): Simplify ANYTHING shortcutting. Update
6b67572e 14418 the STOREDANYTHING solution if the lhs solution contains ANYTHING.
9e39dba6
RG
14419 (build_succ_graph): Add edges from STOREDANYTHING to all
14420 non-direct nodes.
14421 (init_base_vars): Initialize STOREDANYTHING.
14422 (compute_points_to_sets): Free substitution info after
14423 building the succ graph.
14424 (ipa_pta_execute): Likewise.
14425
14426 * tree-ssa-structalias.c (struct variable_info): Add may_have_pointers
14427 field.
14428 (do_ds_constraint): Do not add to special var or non-pointer
14429 field solutions.
14430 (type_could_have_pointers): Split out from ...
14431 (could_have_pointers): ... here. For arrays use the element type.
14432 (create_variable_info_for): Initialize may_have_pointers.
14433 (new_var_info): Likewise.
14434 (handle_lhs_call): Make the HEAP variable unknown-sized.
14435 (intra_create_variable_infos): Use a type with pointers for
14436 PARM_NOALIAS, make it unknown-sized.
14437
fd7b2603
L
144382009-02-18 H.J. Lu <hongjiu.lu@intel.com>
14439
14440 PR target/39224
6b67572e 14441 * config/i386/i386.c (ix86_return_in_memory): Properly check ABI.
fd7b2603 14442
98b80692
JM
144432009-02-18 Jason Merrill <jason@redhat.com>
14444
14445 PR target/39179
14446 * tree-ssa-ccp.c (get_symbol_constant_value): Don't assume zero
14447 value if DECL_EXTERNAL.
14448 * tree-sra.c (sra_walk_gimple_assign): Likewise.
14449 * target.h (gcc_target::binds_local_p): Clarify "module".
14450 * tree.h (TREE_PUBLIC): Clarify "module".
14451
0705d3f4
L
144522009-02-17 Xuepeng Guo <xuepeng.guo@intel.com>
14453
14454 PR target/38891
14455 * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Move the hunk of
14456 initialization for MS_ABI prior to the hunk of !TARGET_MMX.
14457
bce08d50
L
144582009-02-17 H.J. Lu <hongjiu.lu@intel.com>
14459
14460 PR target/39082
14461 * c.opt (Wabi): Support C and ObjC.
14462 (Wpsabi): New.
14463
14464 * c-opts.c (c_common_handle_option): Handle OPT_Wabi.
14465
14466 * config/i386/i386.c (classify_argument): Warn once about the ABI
14467 change when passing union with long double.
14468
14469 * doc/invoke.texi: Update -Wabi for warning psABI changes.
14470
5600f233
JM
144712009-02-18 Joseph Myers <joseph@codesourcery.com>
14472
14473 PR c/35447
14474 * c-parser.c (c_parser_compound_statement): Always enter and leave
14475 a scope.
14476
8cd01fe6
JDA
144772009-02-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14478
14479 PR target/34587
14480 * config/darwin.h (SUPPORTS_INIT_PRIORITY): Define.
14481
418df9d7
JJ
144822009-02-18 Jakub Jelinek <jakub@redhat.com>
14483
14484 PR tree-optimization/36922
14485 * tree-data-ref.c (initialize_matrix_A): Handle BIT_NOT_EXPR.
14486 * tree-scalar-evolution.c (interpret_rhs_expr, instantiate_scev_1):
14487 Likewise.
14488
082d2ebb
RS
144892009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
14490
14491 * config/mips/mips.c (mips_override_options): Set flag_dwarf2_cfi_asm
14492 to 0 for EABI64.
14493
17de576c
RS
144942009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
14495
14496 * config/mips/mips.md (type): Reclassify lui_movf as "unknown".
14497
6d8d5435
RS
144982009-02-17 Richard Sandiford <rdsandiford@googlemail.com>
14499
14500 * config/mips/mips.c (mips_gimplify_va_arg_expr): Fix invalid
14501 tree sharing.
14502
e69ff910
RB
145032009-02-17 Ruan Beihong <ruanbeihong@gmail.com>
14504 Richard Sandiford <rdsandiford@googlemail.com>
14505
14506 * config/mips/mips.c (CODE_FOR_loongson_biadd): Delete.
14507 * config/mips/loongson.md (reduc_uplus_<mode>): Rename to...
14508 (loongson_biadd): ...this.
14509
6b24ee26
RG
145102009-02-17 Richard Guenther <rguenther@suse.de>
14511
14512 PR tree-optimization/39202
14513 * tree-ssa-structalias.c (do_structure_copy): Before collapsing
14514 a var make sure to follow existing collapses.
14515
91ab2c86
RG
145162009-02-17 Richard Guenther <rguenther@suse.de>
14517
14518 PR middle-end/39214
14519 * langhooks.c (lhd_print_error_function): Check for NULL block.
14520
73a63870
RG
145212009-02-17 Richard Guenther <rguenther@suse.de>
14522
14523 PR tree-optimization/39204
14524 * tree-ssa-pre.c (phi_translate_1): Lookup the value-number
14525 of the PHI arg.
14526
0e08f686
UB
145272009-02-17 Uros Bizjak <ubizjak@gmail.com>
14528
14529 * config/soft-fp/double.h: Update from glibc CVS.
14530
a60b7ddb
RG
145312009-02-17 Richard Guenther <rguenther@suse.de>
14532
14533 PR tree-optimization/39207
14534 * tree-ssa-structalias.c (find_what_p_points_to): Do not emit
14535 strict-aliasing warnings for pointers pointing to NULL.
14536
a47e20fd
JM
145372009-02-16 Joseph Myers <joseph@codesourcery.com>
14538
14539 PR c/35446
14540 * c-parser.c (c_parser_braced_init): Call pop_init_level when
14541 skipping until next close brace.
14542
50aab7dc
L
145432009-02-16 H.J. Lu <hongjiu.lu@intel.com>
14544
14545 PR target/37049
14546 * config/i386/i386.c (ix86_expand_push): Set memory alignment
14547 to function argument boundary.
14548
68e53db0
HS
145492009-02-16 Hariharan Sandanagobalane <hariharan@picochip.com>
14550
14551 * config/picochip/picochip.md (lea_add): Allow any nonimmediate
14552 in the lea_add. Reload eventually constraints it properly.
0d50d55a 14553 * config/picochip/constraints.md: Remove the target constraint
68e53db0
HS
14554 "b", since it is not needed anymore.
14555
09e361bb
JJ
145562009-02-16 Jakub Jelinek <jakub@redhat.com>
14557
14558 * gthr-dce.h: Uglify function parameter and local variable names.
14559 * gthr-gnat.h: Likewise.
14560 * gthr-mipssde.h: Likewise.
14561 * gthr-nks.h: Likewise.
14562 * gthr-posix95.h: Likewise.
14563 * gthr-posix.h: Likewise.
14564 * gthr-rtems.h: Likewise.
14565 * gthr-single.h: Likewise.
14566 * gthr-solaris.h: Likewise.
14567 * gthr-tpf.h: Likewise.
14568 * gthr-vxworks.h: Likewise.
14569 * gthr-win32.h: Likewise.
14570
47f5a48f
L
145712009-02-15 H.J. Lu <hongjiu.lu@intel.com>
14572
14573 PR target/39196
14574 * config/i386/i386.md: Restrict the new peephole2 to move
14575 between MMX/SSE registers.
14576
68c9ab45
RG
145772009-02-15 Richard Guenther <rguenther@suse.de>
14578
14579 Revert
14580 2009-02-13 Richard Guenther <rguenther@suse.de>
14581
14582 * configure.ac: Enable LFS.
14583 * configure: Re-generate.
14584 * config.in: Likewise.
14585
d7815554
UW
145862009-02-13 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14587
14588 * config/spu/spu_internals.h (spu_sr, spu_sra, spu_srqw,
14589 spu_srqwbyte, spu_srqwbytebc): Define.
14590 * config/spu/spu-builtins.def (spu_sr, spu_sra, spu_srqw,
14591 spu_srqwbyte, spu_srqwbytebc): New overloaded builtins.
14592 * config/spu/spu.md ("shrqbybi_<mode>", "shrqbi_<mode>",
14593 "shrqby_<mode>"): New insn-and-split patterns.
14594 * config/spu/spu.c (expand_builtin_args): Determine and return
14595 number of operands using spu_builtin_description data.
14596 (spu_expand_builtin_1): Use it.
14597
c208436c
SE
145982009-02-13 Steve Ellcey <sje@cup.hp.com>
14599
14600 PR target/38056
14601 * config/ia64/ia64.c (ia64_function_ok_for_sibcall): Check
14602 TARGET_CONST_GP.
14603
c2e7ba7e
L
146042009-02-13 H.J. Lu <hongjiu.lu@intel.com>
14605
14606 PR target/39149
14607 * config/i386/i386.c (override_options): Correct warning
6c6094f1 14608 messages for -malign-loops, -malign-jumps and -malign-functions.
c2e7ba7e 14609
72f4e3a7
L
146102009-02-13 H.J. Lu <hongjiu.lu@intel.com>
14611
14612 PR target/39152
14613 * config/i386/i386.md: Restrict the new peephole2 to move
14614 between the general purpose registers.
14615
53f648e2
L
146162009-02-13 H.J. Lu <hongjiu.lu@intel.com>
14617
14618 PR target/39162
14619 * config/i386/i386.c (type_natural_mode): Add a new argument.
6b67572e 14620 Return the original mode and warn ABI change if vector size is 32byte.
53f648e2
L
14621 (function_arg_advance): Updated.
14622 (function_arg): Likewise.
14623 (ix86_function_value): Likewise.
14624 (ix86_return_in_memory): Likewise.
14625 (ix86_sol10_return_in_memory): Likewise.
14626 (ix86_gimplify_va_arg): Likewise.
14627 (function_arg_32): Don't warn ABX ABI change here.
14628 (function_arg_64): Likewise.
14629
38432148 146302009-02-13 Bernd Schmidt <bernd.schmidt@analog.com>
b1c92d54
BS
14631
14632 * loop-iv.c (implies_p): In the final case, test that operands 0
14633 of the two comparisons match.
14634
dd2139e7
BS
14635 * config/bfin/bfin.c (find_prev_insn_start): New function.
14636 (bfin_optimize_loop): Use it in some cases instead of PREV_INSN.
14637 (find_next_insn_start): Move.
14638
601b3e1a
RG
146392009-02-13 Richard Guenther <rguenther@suse.de>
14640
14641 * configure.ac: Enable LFS.
14642 * configure: Re-generate.
14643 * config.in: Likewise.
14644
f007042e
JM
146452009-02-13 Joseph Myers <joseph@codesourcery.com>
14646
14647 PR c/35444
14648 * c-parser.c (c_parser_parms_list_declarator): Discard pending
14649 sizes on syntax error after some arguments have been parsed.
14650
3f238e8b
JJ
146512009-02-12 Jakub Jelinek <jakub@redhat.com>
14652
14653 * doc/invoke.texi (-fira): Remove.
14654
328e13b7
L
146552009-02-12 H.J. Lu <hongjiu.lu@intel.com>
14656
14657 * caller-save.c: Replace regclass.c with reginfo.c in comments.
14658 * recog.c: Likewise.
14659 * rtl.h: Likewise.
14660
c252db20
L
146612009-02-12 Uros Bizjak <ubizjak@gmail.com>
14662
14663 * longlong.h (sub_ddmmss): New for ia64. Ported from GMP 4.2.
14664 (umul_ppmm): Likewise.
14665 (count_leading_zeros): Likewise.
14666 (count_trailing_zeros): Likewise.
14667 (UMUL_TIME): Likewise.
14668
146692009-02-12 H.J. Lu <hongjiu.lu@intel.com>
14670
ba181049
UB
14671 * config.gcc (ia64*-*-linux*): Add ia64/t-fprules-softfp and
14672 soft-fp/t-softfp to tmake_file.
c252db20
L
14673
14674 * config/ia64/ia64.c (ia64_soft_fp_init_libfuncs): New.
ba181049
UB
14675 (ia64_expand_compare): Use HPUX library for TFmode only for HPUX.
14676 (ia64_builtins) [IA64_BUILTIN_COPYSIGNQ, IA64_BUILTIN_FABSQ,
14677 IA64_BUILTIN_INFQ]: New.
c252db20
L
14678 (ia64_init_builtins): Initialize __builtin_infq,
14679 __builtin_fabsq and __builtin_copysignq if not HPUX.
14680 (ia64_expand_builtin): Handle IA64_BUILTIN_COPYSIGNQ,
14681 IA64_BUILTIN_FABSQ and IA64_BUILTIN_INFQ.
14682
14683 * config/ia64/lib1funcs.asm (__divtf3): Define only if
14684 SHARED is defined.
14685 (__fixtfti): Likewise.
14686 (__fixunstfti): Likewise.
14687 (__floattitf): Likewise.
14688
14689 * config/ia64/libgcc-glibc.ver: New.
14690 * config/ia64/t-fprules-softfp: Likewise.
14691 * config/ia64/sfp-machine.h: Likewise.
14692
14693 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): New.
14694 (LIBGCC2_TF_CEXT): Likewise.
14695 (TF_SIZE): Likewise.
14696 (TARGET_INIT_LIBFUNCS): Likewise.
14697
ba181049 14698 * config/ia64/t-glibc (SHLINB_MAPFILES):
6b67572e 14699 Add $(srcdir)/config/ia64/libgcc-glibc.ver.
c252db20 14700
f13eae6a
L
147012009-02-12 H.J. Lu <hongjiu.lu@intel.com>
14702
14703 * config/i386/i386.c (construct_container): Rewrite processing
14704 BLKmode with X86_64_SSE_CLASS.
14705
12019aec
L
147062009-02-12 Paolo Bonzini <bonzini@gnu.org>
14707
14708 PR target/39152
14709 * config/i386/i386.md: Replace simplify_replace_rtx with
14710 replace_rtx in the new peephole2.
14711
28c11eb3
NS
147122009-02-12 Nathan Sidwell <nathan@codesourcery.com>
14713
14714 * doc/invoke.texi (Optimize Options): Stop claiming inlining and
14715 loop unrolling do not happen at -O2.
14716
c7b94907
MM
147172009-02-12 Michael Matz <matz@suse.de>
14718
14719 * gcc.c (ASM_DEBUG_SPEC): Check for -g0.
14720
61e98967
JJ
147212009-02-12 Jakub Jelinek <jakub@redhat.com>
14722
14723 * dwarf2out.c (dwarf2out_finish): Force output of comp_unit_die
14724 for -g3.
14725
a2a237b5
BE
147262009-02-12 Ben Elliston <bje@au.ibm.com>
14727
14728 * config/rs6000/rs6000.md (allocate_stack): Use _stack form of
14729 patterns when updating the back chain. Missed in the 2009-02-10
14730 change.
14731
853eda8d
JJ
147322009-02-11 Janis Johnson <janis187@us.ibm.com>
14733
14734 * doc/extend.texi (Decimal Floating Types): Update identifier of
14735 draft TR and list of missing support.
14736
3ad6b266
JJ
147372009-02-11 Jakub Jelinek <jakub@redhat.com>
14738
14739 PR middle-end/39154
14740 * gimplify.c (omp_notice_variable): If adding GOVD_SEEN
14741 bit to variable length decl's flags, add it also to its
14742 pointer replacement variable.
14743
b058b753
UB
147442009-02-11 Uros Bizjak <ubizjak@gmail.com>
14745 Jakub Jelinek <jakub@redhat.com>
14746
14747 PR target/39118
14748 * config/i386/i386.md (UNSPEC_MEMORY_BLOCKAGE): New constant.
14749 (memory_blockage): New expander.
14750 (*memory_blockage): New insn pattern.
14751 * config/i386/i386.c (ix86_expand_prologue): Use memory_blockage
14752 instead of general blockage at the end of function prologue when
14753 frame pointer is used to access red zone area. Do not emit blockage
14754 when profiling, it is emitted in generic code.
14755 (ix86_expand_epilogue): Emit memory_blockage at the beginning of
14756 function epilogue when frame pointer is used to access red zone area.
14757
bab64f23
PB
147582009-02-11 Paolo Bonzini <bonzini@gnu.org>
14759
0ce6dcfa 14760 PR target/38824
bab64f23
PB
14761 * config/i386/i386.md: Add two new peephole2 to avoid mov followed
14762 by arithmetic with memory operands.
14763 * config/i386/predicates.md (commutative_operator): New.
14764
8fd94bda
JJ
147652009-02-10 Janis Johnson <janis187@us.ibm.com>
14766
14767 * doc/extend.texi (Fixed-Point Types): Break long paragraphs into
14768 bulleted lists.
14769
794511d2
EB
147702009-02-10 Eric Botcazou <ebotcazou@adacore.com>
14771
14772 * alias.h (record_alias_subset): Declare.
14773 * alias.c (record_alias_subset): Make global.
14774
6da7fc87
NC
147752009-02-10 Nick Clifton <nickc@redhat.com>
14776
14777 * tree-parloops.c: Change license to GPLv3.
14778 * ipa-struct-reorg.c: Change license to GPLv3.
14779 * ipa-struct-reorg.h: Change license to GPLv3.
14780
a03813c8
SE
147812009-02-10 Steve Ellcey <sje@cup.hp.com>
14782
14783 PR c/39084
14784 * c-decl.c (start_struct): Return NULL on error.
14785
fc3103e7
JJ
147862009-02-10 Jakub Jelinek <jakub@redhat.com>
14787
9b43d37b
JJ
14788 PR middle-end/39124
14789 * cfgloopmanip.c (remove_path): Call remove_bbs after
14790 cancel_loop_tree, not before it.
14791
fc3103e7 14792 PR target/39139
b058b753 14793 * function.h (struct function): Add has_local_explicit_reg_vars bit.
fc3103e7
JJ
14794 * gimplify.c (gimplify_bind_expr): Set it if local DECL_HARD_REGISTER
14795 VAR_DECLs were seen.
14796 * tree-ssa-live.c (remove_unused_locals): Recompute
14797 cfun->has_local_explicit_reg_vars.
14798 * tree-ssa-sink.c (statement_sink_location): Don't sink BLKmode
14799 copies or clearings if cfun->has_local_explicit_reg_vars.
14800
dbf9ee15
UB
148012009-02-10 Uros Bizjak <ubizjak@gmail.com>
14802
14803 PR target/39118
14804 * config/i386/i386.c (expand_prologue): Emit blockage at the end
14805 of function prologue when frame pointer is used to access
14806 red zone area.
14807
bdec4dc7
RG
148082009-02-10 Richard Guenther <rguenther@suse.de>
14809
14810 PR middle-end/39127
14811 * gimplify.c (gimple_regimplify_operands): Always look if
14812 we need to create a temporary.
14813
7cae94fc
RG
148142009-02-10 Richard Guenther <rguenther@suse.de>
14815
14816 PR tree-optimization/39132
14817 * tree-loop-distribution.c (todo): New global var.
14818 (generate_memset_zero): Trigger TODO_rebuild_alias.
14819 (tree_loop_distribution): Return todo.
14820
a8800687
L
148212009-02-10 H.J. Lu <hongjiu.lu@intel.com>
14822
14823 PR target/39119
14824 * config/i386/i386.c (x86_64_reg_class): Remove X86_64_AVX_CLASS.
14825 (x86_64_reg_class_name): Removed.
14826 (classify_argument): Return 0 if bytes > 32. Return 0 if the
14827 first one isn't X86_64_SSE_CLASS or any other ones aren't
14828 X86_64_SSEUP_CLASS when size > 16bytes. Don't turn
14829 X86_64_SSEUP_CLASS into X86_64_SSE_CLASS if the preceded one
14830 is X86_64_SSEUP_CLASS. Set AVX modes to 1 X86_64_SSE_CLASS
14831 and 3 X86_64_SSEUP_CLASS.
14832 (construct_container): Remove X86_64_AVX_CLASS. Handle 4
14833 registers with 1 X86_64_SSE_CLASS and 3 X86_64_SSEUP_CLASS.
14834
d4bacef0
BE
148352009-02-10 Ben Elliston <bje@au.ibm.com>
14836
14837 * config/rs6000/rs6000.md (allocate_stack): Always use an update
14838 form instruction to update the stack back chain word, even if the
14839 user has disabled the generation of update instructions.
14840 (movdi_<mode>_update_stack): New.
14841 (movsi_update_stack): Likewise.
14842 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Likewise,
14843 always use an update form instruction to update the stack back
14844 chain word.
14845
01d7d2f3
SP
148462009-02-09 Sebastian Pop <sebastian.pop@amd.com>
14847
14848 PR middle-end/38953
b058b753
UB
14849 * graphite.c (if_region_set_false_region): After moving a region in
14850 the false branch of a condition, remove the empty dummy basic block.
01d7d2f3
SP
14851 (gloog): Remove wrong fix for PR38953.
14852
e41e2ab4
UW
148532009-02-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14854
14855 * config/spu/spu.c (array_to_constant): Fix (latent) wrong-code
14856 generation due to implicit sign extension.
14857
4bb07c5d
EB
148582009-02-09 Eric Botcazou <ebotcazou@adacore.com>
14859
14860 PR middle-end/38981
14861 * tree-ssa-coalesce.c (add_coalesce): Cap the costs of coalesce pairs
14862 at MUST_COALESCE_COST-1 instead of MUST_COALESCE_COST.
14863
f060a261
RG
148642009-02-09 Richard Guenther <rguenther@suse.de>
14865
14866 PR middle-end/35202
14867 * convert.c (convert_to_real): Disable (float)fn((double)x)
14868 to fnf(x) conversion if errno differences may occur and
14869 -fmath-errno is set.
14870
5a7e237c
AS
148712009-02-07 Anatoly Sokolov <aesok@post.ru>
14872
14873 * config/avr/avr.c (avr_mcu_t): Add ata6289 device.
14874 * config/avr/avr.h (LINK_SPEC, CRT_BINUTILS_SPECS): (Ditto.).
14875 * config/avr/t-avr (MULTILIB_MATCHES): (Ditto.).
14876
feab5a67
JM
148772009-02-06 Joseph Myers <joseph@codesourcery.com>
14878
14879 PR c/35434
14880 * c-common.c (handle_alias_attribute): Disallow attribute for
14881 anything not a FUNCTION_DECL or VAR_DECL.
14882
90ef2296
JJ
148832009-02-06 Janis Johnson <janis187@us.ibm.com>
14884
14885 PR c/39035
14886 * real.c (do_compare): Special-case compare of zero against
14887 decimal float value.
14888
1de2c900
JM
148892009-02-06 Joseph Myers <joseph@codesourcery.com>
14890
14891 PR c/36432
14892 * c-decl.c (grokdeclarator): Don't treat [] declarators in fields
14893 as indicating flexible array members unless the field itself is
14894 being declarared as the incomplete array.
14895
e901811a
JH
148962009-02-06 Jan Hubicka <jh@suse.cz>
14897
14898 PR tree-optimization/38844
14899 * ipa-inline.c (try_inline): Stop inlining recursion when edge
14900 is already inlined.
14901
3cfa762b
RG
149022009-02-06 Richard Guenther <rguenther@suse.de>
14903
14904 PR middle-end/38977
14905 * tree-cfg.c (need_fake_edge_p): Force a fake edge for
14906 fork because we may expand it as __gcov_fork.
14907
8506528c
NC
149082009-02-06 Nick Clifton <nickc@redhat.com>
14909
dbf9ee15 14910 * config/m32c/m32c.h (PCC_BITFIELD_TYPE_MATTERS): Define to zero.
8506528c 14911
85169114
PB
149122009-02-06 Paolo Bonzini <bonzini@gnu.org>
14913
14914 PR tree-optimization/35659
14915 * tree-ssa-sccvn.c (vn_constant_eq, vn_reference_eq, vn_nary_op_eq
14916 vn_phi_eq): Shortcut if hashcode does not match.
14917 (vn_reference_op_compute_hash): Do not call iterative_hash_expr for
14918 NULL operands.
14919 * tree-ssa-pre.c (pre_expr_hash): Look at hashcode if available,
14920 and avoid iterative_hash_expr.
14921 (FOR_EACH_VALUE_ID_IN_SET): New.
14922 (value_id_compare): Remove.
14923 (sorted_array_from_bitmap_set): Use FOR_EACH_VALUE_ID_IN_SET to
14924 sort expressions by value id.
14925
6d39673d
KK
149262009-02-05 Kaz Kojima <kkojima@gcc.gnu.org>
14927
14928 PR target/38991
14929 * config/sh/predicates.md (general_movsrc_operand): Don't check
14930 the subreg of system registers here.
14931
e6e1c050
JJ
149322009-02-05 Jakub Jelinek <jakub@redhat.com>
14933
14934 PR c++/39106
14935 * cgraphunit.c (cgraph_function_versioning): Clear also DECL_VIRTUAL_P
14936 on the copied decl.
14937
65a74b5d
PB
149382009-02-05 Paolo Bonzini <bonzini@gnu.org>
14939
14940 PR rtl-optimization/39110
14941 * rtlanal.c (rtx_addr_can_trap_p_1): Shortcut unaligned
14942 addresses, not aligned ones.
14943
08e14b2a
DB
149442009-02-05 Daniel Berlin <dberlin@dberlin.org>
14945 Richard Guenther <rguenther@suse.de>
14946
14947 PR tree-optimization/39100
14948 * tree-ssa-structalias.c (do_ds_constraint): Actually do what the
14949 comment says and add edges.
14950
5006381c
JM
149512009-02-05 Joseph Myers <joseph@codesourcery.com>
14952
14953 PR c/35435
14954 * c-common.c (handle_tls_model_attribute): Ignore attribute for
14955 non-VAR_DECLs without checking DECL_THREAD_LOCAL_P.
14956
2ba9daa7 149572009-02-04 Tobias Grosser <grosser@fim.uni-passau.de>
b0789219
TG
14958
14959 * graphite.c (bb_in_sese_p, sese_build_livein_liveouts_use,
14960 sese_build_livein_liveouts_bb, sese_build_livein_liveouts,
14961 register_bb_in_sese, new_sese, free_sese): Moved.
14962 (dot_scop_1, build_scop_loop_nests, build_loop_iteration_domains,
14963 outermost_loop_in_scop, build_scop_iteration_domain,
14964 expand_scalar_variables_ssa_name, get_vdef_before_scop,
14965 limit_scops): Use bb_in_sese_p instead of bb_in_scop_p.
14966 Use loop_in_sese_p instead of loop_in_scop_p.
14967 (new_graphite_bb, gloog): Do not initialize SCOP_BBS_B.
14968 (new_scop, free_scop): Remove SCOP_LOOP2CLOOG_LOOP and SCOP_BBS_B.
14969 (scopdet_basic_block_info): Fix bug in scop detection.
14970 (new_loop_to_cloog_loop_str, hash_loop_to_cloog_loop,
14971 eq_loop_to_cloog_loop): Remove.
14972 (nb_loops_around_loop_in_scop, nb_loop
14973 ref_nb_loops): Moved here...
14974 * graphite.h (ref_nb_loops): ... from here.
14975 (struct scop): Remove bbs_b bitmap and loop2cloog_loop.
14976 (loop_domain_dim, loop_iteration_vector_dim): Remove.
14977 (SCOP_BBS_B, bb_in_scop_p, loop_in_scop_p): Removed.
14978 * testsuite/gcc.dg/graphite/scop-19.c: New
14979
48e8382e
PB
149802009-02-04 Paolo Bonzini <bonzini@gnu.org>
14981 Hans-Peter Nilsson <hp@axis.com>
14982
14983 PR rtl-optimization/37889
14984 * rtlanal.c (rtx_addr_can_trap_p_1): Add offset and size arguments.
14985 Move offset handling from PLUS to before the switch. Use new
14986 arguments when considering SYMBOL_REFs too.
14987 (rtx_addr_can_trap_p): Pass dummy offset and size.
14988 (enum may_trap_p_flags): Remove.
14989 (may_trap_p_1): Pass size from MEM_SIZE.
14990
14991 PR rtl-optimization/38921
14992 * loop-invariant.c (find_invariant_insn): Use may_trap_or_fault_p.
14993 * rtl.h (may_trap_after_code_motion_p): Delete prototype.
14994 * rtlanal.c (may_trap_after_code_motion_p): Delete.
14995 (may_trap_p, may_trap_or_fault_p): Pass 0/1 as flags.
14996
69349ea5
L
149972009-02-04 H.J. Lu <hongjiu.lu@intel.com>
14998
14999 AVX Programming Reference (January, 2009)
15000 * config/i386/sse.md (*vpclmulqdq): New.
15001
b545e411
JJ
150022009-02-04 Jakub Jelinek <jakub@redhat.com>
15003
15004 PR tree-optimization/38977
15005 PR gcov-profile/38292
bf9b2cc9 15006 * calls.c (special_function_p): Disregard __builtin_ prefix.
b545e411 15007
5b43bf05
HS
150082009-02-04 Hariharan Sandanagobalane <hariharan@picochip.com>
15009
15010 * config/picochip/picochip.c (GO_IF_LEGITIMATE_ADDRESS): Disallow
15011 non-indexable addresses even before reload.
15012
062c4bb3
JM
150132009-02-03 Joseph Myers <joseph@codesourcery.com>
15014
15015 PR c/29129
15016 * c-decl.c (grokdeclarator): Mark [*] arrays in field declarators
15017 as having variable size. Do not give an error for unnamed
15018 parameters with [*] declarators. Give a warning for type names
15019 with [*] declarators and mark them as variable size.
15020 * c-parser.c (c_parser_sizeof_expression): Do not give an error
15021 for sizeof applied to [*] type names.
15022
6175f578
AP
150232009-02-03 Andrew Pinski <andrew_pinski@playstation.sony.com>
15024
15025 PR C++/36607
15026 * convert.c (convert_to_integer): Treat OFFSET_TYPE like INTEGER_TYPE.
15027
d4f4bc84
JJ
150282009-02-03 Jakub Jelinek <jakub@redhat.com>
15029
15030 * gcc.c (process_command): Update copyright notice dates.
15031 * gcov.c (print_version): Likewise.
15032 * gcov-dump.c (print_version): Likewise.
15033 * mips-tfile.c (main): Likewise.
15034 * mips-tdump.c (main): Likewise.
15035
f6294de7
JM
150362009-02-03 Joseph Myers <joseph@codesourcery.com>
15037
15038 PR c/35433
15039 * c-typeck.c (composite_type): Set TYPE_SIZE and TYPE_SIZE_UNIT
15040 for composite type involving a zero-length array type.
15041
754ccf7c
JJ
150422009-02-03 Jakub Jelinek <jakub@redhat.com>
15043
70f16287
JJ
15044 PR target/35318
15045 * function.c (match_asm_constraints_1): Skip over
15046 initial optional % in the constraint.
15047
754ccf7c
JJ
15048 PR inline-asm/39059
15049 * c-parser.c (c_parser_postfix_expression): If fixed point is not
15050 supported, don't accept FIXED_CSTs.
15051 * c-decl.c (finish_declspecs): Error if fixed point is not supported
15052 and _Sat is used without _Fract/_Accum. Set specs->type to
15053 integer_type_node for cts_fract/cts_accum if fixed point is not
15054 supported.
15055
965fdadf
CM
150562009-02-02 Catherine Moore <clm@codesourcery.com>
15057
dbf9ee15 15058 * sde.h (SUBTARGET_ARM_SPEC): Don't assemble -fpic code as -mabicalls.
965fdadf 15059
2e8a796f
RS
150602009-02-02 Richard Sandiford <rdsandiford@googlemail.com>
15061
15062 * config/mips/mips.h (FILE_HAS_64BIT_SYMBOLS): New macro.
15063 (ABI_HAS_64BIT_SYMBOLS): Use it.
15064 (DWARF2_ADDR_SIZE): Use it instead of ABI_HAS_64BIT_SYMBOLS.
15065
e0079468
PB
150662009-02-02 Paul Brook <paul@codesourcery.com>
15067
15068 * config/arm/arm.md (arm_addsi3): Add r/r/k alternative.
15069
eca72963
JJ
150702009-02-02 Jakub Jelinek <jakub@redhat.com>
15071
15072 PR inline-asm/39058
15073 * recog.h (asm_operand_ok): Add constraints argument.
15074 * recog.c (asm_operand_ok): Likewise. If it is set, for digits
15075 recurse on matching constraint.
15076 (check_asm_operands): Pass constraints as 3rd argument to
15077 asm_operand_ok. Don't look up matching constraint here.
15078 * stmt.c (expand_asm_operands): Pass NULL as 3rd argument
15079 to asm_operand_ok.
15080
b5bde9ff
BE
150812009-02-02 Ben Elliston <bje@au.ibm.com>
15082
15083 * doc/tm.texi (Storage Layout): Fix TARGET_ALIGN_ANON_BITFIELD and
15084 TARGET_NARROW_VOLATILE_BITFIELD macro names.
15085
30f3e427
JDA
150862009-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
15087
be7659ba
JDA
15088 * doc/install.texi (hppa*-hp-hpux*): Update binutils and linker
15089 information. Remove some obsolete information. Reorganize.
15090
30f3e427
JDA
15091 * config/pa/fptr.c: Revert license to GPL 2.
15092 * config/pa/milli64.S: Likewise.
15093
3cbfaf98
DK
150942009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
15095
15096 PR target/38904
15097 * mkmap-flat.awk (END): Use pe_dll command-line arg to pass
15098 LIBRARY name in, instead of hard-coding it.
15099 * config.gcc (i[34567]86-*-pe | i[34567]86-*-cygwin*): Add an
15100 extra target make frag to tmake_files according to EH model.
15101 (i[34567]86-*-mingw* | x86_64-*-mingw*): Likewise.
15102 * config/i386/t-dw2-eh, config/i386/t-sjlj-eh: Add new target
15103 frags that define makefile variable EH_MODEL appropriately.
15104 * config/i386/cygming.h (DWARF2_UNWIND_INFO): Add comment.
15105 * config/i386/cygwin.h (LIBGCC_EH_EXTN): Define to nothing or
15106 to "-sjlj" according to type of EH configured.
15107 (LIBGCC_SONAME): Concatenate it to shared library base name.
15108 * config/i386/mingw32.h (LIBGCC_EH_EXTN): Define to "_dw2" or
15109 to "_sjlj" according to type of EH configured.
15110 (LIBGCC_SONAME): Concatenate it to shared library base name.
15111 * config/i386/t-cygming (SHLIB_SONAME): Use EH_MODEL.
15112 (SHLIB_LINK): Add missing semicolon to if-else construct.
15113 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
15114 string value of "pe_dll" command-line option.
15115 * config/i386/t-cygwin (SHLIB_EH_EXTENSION): New helper.
15116 (SHLIB_SONAME): Use it when overriding t-cygming default.
15117 (SHLIB_IMPLIB): Override t-cygming default.
15118 (SHLIB_MKMAP_OPTS): Pass library name to mkmap-flat.awk as
15119 string value of "pe_dll" command-line option.
15120
8d0b6068
DK
151212009-01-31 Dave Korn <dave.korn.cygwin@gmail.com>
15122
15123 PR target/38952
15124 * config/i386/i386.c (ix86_builtin_setjmp_frame_value): New.
bf9b2cc9 15125 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Override default to point at it.
8d0b6068 15126
14c28276
RG
151272009-01-31 Richard Guenther <rguenther@suse.de>
15128
15129 PR tree-optimization/38937
15130 * tree-ssa-structalias.c (do_sd_constraint): Do not shortcut
15131 computing the transitive closure.
15132
5f4d82c2
RG
151332009-01-30 Richard Guenther <rguenther@suse.de>
15134
15135 PR tree-optimization/39041
15136 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1):
15137 Propagate variable indices only if the types match for this stmt.
15138
d0728ae0
JJ
151392009-01-30 Jakub Jelinek <jakub@redhat.com>
15140
15141 PR target/39013
15142 * c-decl.c (pop_scope): Set DECL_EXTERNAL for functions declared
15143 inline but never defined.
15144
6b67572e 151452009-01-30 Wolfgang Gellerich <gellerich@de.ibm.com>
9fec758d
WG
15146
15147 * config/s390/s390.md (*insv<mode>_reg_extimm): Removed.
15148 (*insv_h_di_reg_extimm): New insn.
15149 (*insv_l<mode>_reg_extimm): New insn.
15150
151512009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
9e8be1e4
HS
15152
15153 * config/picochip/picochip.c (flag_conserve_stack): set
15154 PARAM_LARGE_STACK_FRAME and PARAM_STACK_FRAME_GROWTH to zero under
15155 fconserve-stack. Reduce call-overhead used by inliner.
15156
9fec758d 151572009-01-30 Hariharan Sandanagobalane <hariharan@picochip.com>
df9198ab
HS
15158
15159 PR/38157
15160 * common.opt (flag_conserve_stack): Initialised to zero.
15161
7f1c539c
KT
151622009-01-30 Kai Tietz <kai.tietz@onevision.com>
15163
15164 PR/39002
15165 * config/i386/i386.c (ix86_can_use_return_insn_p): Check for nsseregs.
15166 (ix86_expand_epilogue): Take nsseregs in account to use proper restore
15167 method.
15168
3631be48
L
151692009-01-29 H.J. Lu <hongjiu.lu@intel.com>
15170
15171 * ira-color.c (allocno_reload_assign): Update comments.
15172 * regmove.c (regmove_optimize): Likewise.
15173
15174 * ra.h: Removed.
15175
416ac4d4
RM
151762009-01-29 Robert Millan <rmh@aybabtu.com>
15177
60839f5d
EB
15178 * config.gcc: Recognize GNU/kOpenSolaris (*-*-kopensolaris*-gnu).
15179 * config/i386/kopensolaris-gnu.h: New file. Undefine
416ac4d4 15180 `MD_UNWIND_SUPPORT'.
60839f5d 15181 * config/kopensolaris-gnu.h: New file (based on kfreebsd-gnu.h).
416ac4d4 15182
d5e54bc1
KH
151832009-01-29 Kazu Hirata <kazu@codesourcery.com>
15184
15185 PR tree-optimization/39007
15186 * tree-loop-distribution.c (generate_builtin): Use
15187 recompute_dominator to compute the immediate dominator of the
15188 basic block just after the loop.
15189
38432148 151902009-01-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
e9e077fa
RO
15191
15192 * config/i386/sol2-10.h [!HAVE_AS_IX86_DIFF_SECT_DELTA]
15193 (ASM_OUTPUT_DWARF_PCREL): Define.
15194
38432148 151952009-01-29 Vladimir Makarov <vmakarov@redhat.com>
2af2dbdc
VM
15196
15197 * doc/tm.texi (TARGET_IRA_COVER_CLASSES): Modify description.
15198 * doc/passes.texi: Remove entries about regclass, local-alloc, and
15199 global. Modify entries about regmove and IRA.
15200
15201 * ra-conflict.c: Remove the file.
15202
15203 * reload.c (push_reload, find_dummy_reload): Remove flag_ira.
15204
15205 * tree-pass.h (pass_local_alloc, pass_global_alloc): Remove.
15206 (pass_regclass_init): Rename to pass_reginfo_init.
15207
15208 * cfgloopanal.c (estimate_reg_pressure_cost): Remove flag_ira.
15209
15210 * toplev.h (flag_ira): Remove.
15211
15212 * caller-save.c (setup_save_areas): Remove flag_ira.
15213
bf9b2cc9 15214 * ira-color.c (ira_reuse_stack_slot, ira_mark_new_stack_slot): Ditto.
2af2dbdc
VM
15215
15216 * global.c: Remove the file.
15217
ba20e309 15218 * opts.c (decode_options): Remove flag_ira.
2af2dbdc
VM
15219
15220 * hard-reg-set.h (losing_caller_save_reg_set): Remove.
15221
15222 * regmove.c: Modify file description.
15223 (find_use_as_address, try_auto_increment): Define them only if
15224 AUTO_INC_DEC is defined.
15225 (replacement_quality, replace_in_call_usage, fixup_match_1,
15226 stable_and_no_regs_but_for_p): Remove.
15227 (reg_set_in_bb): Make it static.
15228 (regmove_optimize): Remove flag_ira and code which worked for
15229 !flag_ira.
15230
15231 * local-alloc.c: Remove the file.
15232
15233 * common.opt (fira): Remove.
15234
15235 * ira.c: Include except.h.
15236 (eliminable_regset): Move from global.c.
15237 (mark_elimination): Ditto. Remove flag_ira.
15238 (reg_renumber, struct equivalence, reg_equiv, equiv_mem,
15239 equiv_mem_modified, validate_equiv_mem_from_store,
15240 validate_equiv_mem, equiv_init_varies_p, equiv_init_movable_p,
15241 contains_replace_regs, memref_referenced_p, memref_used_between_p,
15242 no_equiv, recorded_label_ref): Move from local-alloc.c.
15243 (update_equiv_regs): Ditto. Make it static.
15244 (print_insn_chain, print_insn_chains): Move it from global.c.
bf9b2cc9 15245 (pseudo_for_reload_consideration_p): Ditto. Remove flag_ira.
2af2dbdc
VM
15246 (build_insn_chain): Ditto. Make it static.
15247 (ra_init_live_subregs): Move from ra-conflict.c. Make it static.
15248 Rename to init_live_subregs.
15249 (gate_ira): Remove flag_ira.
15250
15251 * regclass.c: Rename reginfo.c. Change file description.
15252 (FORBIDDEN_INC_DEC_CLASSES): Remove.
dbf9ee15 15253 (reg_class_superclasses, forbidden_inc_dec_class, in_inc_dec): Remove.
2af2dbdc
VM
15254 (init_reg_sets_1): Remove code for evaluation of
15255 reg_class_superclasses and losing_caller_save_reg_set.
15256 (init_regs): Remove init_reg_autoinc.
15257 (struct costs, costs, init_cost, ok_for_index_p_nonstrict,
15258 ok_for_base_p_nonstrict): Remove.
bf9b2cc9 15259 (regclass_init): Rename to reginfo_init. Don't initialize init_cost.
2af2dbdc
VM
15260 (pass_regclass_init): Rename to pass_reginfo_init. Modify
15261 corresponding entries.
15262 (dump_regclass, record_operand_costs, scan_one_insn,
15263 init_reg_autoinc, regclass, record_reg_classes, copy_cost,
15264 record_address_regs, auto_inc_dec_reg_p): Remove.
15265 (gt-regclass.h): Rename to gt-reginfo.h.
15266
15267 * rtl.h (dump_global_regs, retry_global_alloc,
bf9b2cc9 15268 build_insn_chain, dump_local_alloc, update_equiv_regs): Remove.
2af2dbdc
VM
15269
15270 * Makefile.in (RA_H): Remove.
15271 (OBJS-common): Remove global.o, local-alloc.o, and ra-conflict.o.
15272 Rename regclass.o to reginfo.o.
15273 (regclass.o): Rename to reginfo.o. Rename gt-regclass.h to
15274 gt-reginfo.h.
15275 (global.o, local-alloc.o, ra-conflict.o): Remove entries.
15276 (GTFILES): Rename regclass.c to reginfo.c.
15277
15278 * passes.c (init_optimization_passes): Remove pass_local_alloc and
bf9b2cc9 15279 pass_global_alloc. Rename pass_regclass_init to pass_reginfo_init.
2af2dbdc
VM
15280
15281 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
15282 count_spilled_pseudo, find_reg, alter_reg, delete_output_reload):
15283 Remove flag_ira.
6b67572e 15284 (finish_spills): Ditto. Remove code for !flag_ira.
2ba9daa7 15285
c95b2534 152862009-01-29 Kenneth Zadeck <zadeck@naturalbridge.com>
00b251a0
KZ
15287
15288 PR middle-end/35854
15289 * doc/invoke.texi (rtl debug options): Complete rewrite.
15290 * auto-inc-dec.c (pass_inc_dec): Rename pass from "auto-inc-dec"
15291 to auto_inc_dec".
15292 * mode-switching.c (pass_mode_switching): Rename pass from
15293 "mode-sw" to "mode_sw".
15294 * except.c (pass_convert_to_eh_ranges): Rename pass from
15295 "eh-ranges" to "eh_ranges".
15296 * lower-subreg.c (pass_lower_subreg): Renamed pass from "subreg"
15297 to "subreg1".
2ba9daa7
AS
15298
15299
72a54528
AM
153002009-01-29 Andrey Belevantsev <abel@ispras.ru>
15301 Alexander Monakov <amonakov@ispras.ru>
15302
15303 PR middle-end/38857
15304 * sel-sched.c (count_occurrences_1): Check that *cur_rtx is a hard
15305 register.
15306 (move_exprs_to_boundary): Change return type and pass through
15307 should_move from move_op. Relax assert. Update usage ...
15308 (schedule_expr_on_boundary): ... here. Use should_move instead of
15309 cant_move.
15310 (move_op_orig_expr_found): Indicate that insn was disconnected from
15311 stream.
15312 (code_motion_process_successors): Do not call after_merge_succs
15313 callback if original expression was not found when traversing any of
15314 the branches.
15315 (code_motion_path_driver): Change return type. Update prototype.
15316 (move_op): Update comment. Add a new parameter (should_move). Update
15317 prototype. Set *should_move based on indication provided by
15318 move_op_orig_expr_found.
15319
001b9eb6
PH
153202009-01-28 Pat Haugen <pthaugen@us.ibm.com>
15321
15322 * doc/invoke.texi (avoid-indexed-addresses): Document new option.
15323 * config/rs6000/rs6000-protos.h (avoiding_indexed_address_p): Declare.
15324 * config/rs6000/rs6000.opt (avoid-indexed-addresses): New option.
15325 * config/rs6000/rs6000.c (rs6000_override_options): Default
15326 avoid-indexed-addresses on for Power6, off for everything else.
15327 (avoiding_indexed_address_p): New function.
15328 (rs6000_legitimize_address): Use it.
15329 (rs6000_legitimate_address): Likewise.
15330 * config/rs6000/rs6000.md (movXX_updateX): Likewise
15331
59dc4898
KH
153322009-01-28 Kazu Hirata <kazu@codesourcery.com>
15333
15334 PR tree-optimization/38997
15335 * tree-loop-distribution.c (generate_memset_zero): Use
15336 POINTER_PLUS_EXPR for a pointer addition.
15337
07da44ab
AK
153382009-01-28 Andreas Krebbel <krebbel1@de.ibm.com>
15339
15340 * config/s390/s390.md (bswap<mode>2): New pattern added.
15341
cdc15d23
WG
153422009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
15343
15344 * config/s390/s390.md (*tls_load_31): Added type attribute.
15345
d46f24b6
WG
153462009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
15347
15348 * config/s390/s390.md: Fix a few comments.
15349
729e750f
WG
153502009-01-28 Wolfgang Gellerich <gellerich@de.ibm.com>
15351
15352 * config/s390/s390.md (*tmsi_reg): Fixed z10prop attribute.
15353 (*tm<mode>_full): Fixed z10prop attribute.
15354 (*tst<mode>_extimm): Fixed z10prop attribute.
15355 (*tst<mode>_cconly_extimm): Fixed z10prop attribute.
15356 (*tstqiCCT_cconly): Fixed z10prop attribute.
15357 (*cmpsi_ccu_zerohi_rlsi): Fixed z10prop attribute.
15358 (*movsi_larl): Fixed z10prop attribute.
15359 (*movsi_zarch): Fixed z10prop attribute.
15360 (*movsi_eas): Fixed z10prop attribute.
15361 (*movhi): Fixed z10prop attribute.
15362 (*movqi): Fixed z10prop attribute.
15363 (*movstrictqi): Fixed z10prop attribute.
15364 (*mov<mode>): Fixed z10prop attribute.
15365 (*movcc): Fixed z10prop attribute.
15366 (*sethighpartdi_64): Fixed z10prop attribute.
15367 (*zero_extendhi<mode>2_z10): Fixed z10prop attribute.
15368 (*negdi2_sign_cc): Fixed z10prop attribute.
15369 (*negdi2_sign): Fixed z10prop attribute.
15370 (*absdi2_sign_cc): Fixed z10prop attribute.
15371 (*absdi2_sign): Fixed z10prop attribute.
15372 (*negabsdi2_sign_cc): Fixed z10prop attribute.
15373 (*negabsdi2_sign): Fixed z10prop attribute.
15374 (*cmp_and_trap_signed_int<mode>): Fixed z10prop attribute.
15375 (*cmp_and_trap_unsigned_int<mode>): Fixed z10prop attribute.
15376 (doloop_si64): Fixed z10prop attribute.
15377 (doloop_si31): Fixed z10prop attribute.
15378 (doloop_long): Fixed z10prop attribute.
15379 (indirect_jump): Fixed z10prop attribute.
15380 (nop): Fixed z10prop attribute.
15381 (main_base_64): Fixed z10prop attribute.
15382 (reload_base_64): Fixed z10prop attribute.
15383
c7789bfb
JJ
153842009-01-28 Jakub Jelinek <jakub@redhat.com>
15385
15386 PR rtl-optimization/38740
6b67572e
UB
15387 * reorg.c (gate_handle_delay_slots): Avoid dbr scheduling
15388 if !optimize.
c7789bfb
JJ
15389 * config/mips/mips.c (mips_reorg): Likewise.
15390
de081cfd
RG
153912009-01-28 Richard Guenther <rguenther@suse.de>
15392
15393 PR tree-optimization/38926
15394 * tree-ssa-pre.c (add_to_value): Assert we add only expressions
15395 with the correct value id to a value.
15396 (do_regular_insertion): Use the value number of edoubleprime
15397 for the value number of the expr.
15398
15399 Revert
15400 2008-08-21 Richard Guenther <rguenther@suse.de>
bf9b2cc9 15401
d748c406
UB
15402 * tree-ssa-pre.c (insert_into_preds_of_block): Before inserting
15403 a PHI ask VN if it is already available.
15404 * tree-ssa-sccvn.h (vn_phi_lookup): Declare.
15405 * tree-ssa-sccvn.c (vn_phi_lookup): Export.
de081cfd 15406
a9d386a1
JJ
154072009-01-28 Jakub Jelinek <jakub@redhat.com>
15408
15409 PR middle-end/38934
15410 * tree-vrp.c (extract_range_from_assert): For LE_EXPR and LT_EXPR
15411 set to varying whenever max has TREE_OVERFLOW set, similarly
15412 for GE_EXPR and GT_EXPR and TREE_OVERFLOW min.
15413
97a170cd
RG
154142009-01-28 Richard Guenther <rguenther@suse.de>
15415
15416 PR middle-end/38908
15417 * tree-ssa.c (warn_uninitialized_var): Do not warn for seemingly
15418 uninitialized aggregate uses in call arguments.
15419
89ebafc6
PB
154202009-01-28 Paolo Bonzini <bonzini@gnu.org>
15421
15422 PR tree-optimization/38984
15423 * tree-ssa-structalias.c (get_constraints_for_1): Do not use
15424 the nothing_id variable if -fno-delete-null-pointer-checks.
15425
bef3c57b
UB
154262009-01-28 Uros Bizjak <ubizjak@gmail.com>
15427
15428 PR target/38988
15429 * config/i386/i386.md (set_rip_rex64): Wrap operand 1 in label_ref.
15430 (set_got_offset_rex64): Ditto.
15431
0c6390fa
L
154322009-01-27 H.J. Lu <hongjiu.lu@intel.com>
15433
15434 PR target/38941
15435 * doc/extend.texi: Improve local variable with asm reg.
15436
bee6fa6d
AN
154372009-01-27 Adam Nemet <anemet@caviumnetworks.com>
15438
15439 * c.opt (Wpacked-bitfield-compat): Change init value to -1.
15440 * c-opts.c (c_common_post_options): If -W*packed-bitfield-compat
15441 was not supplied then set warn_packed_bitfield_compat to the
15442 default value of 1.
15443 * stor-layout.c (place_field): Check warn_packed_bitfield_compat
15444 against 1.
15445
b5c3dfbb
RG
154462009-01-27 Richard Guenther <rguenther@suse.de>
15447
15448 PR tree-optimization/38503
15449 * cfgexpand.c (expand_gimple_basic_block): Ignore
15450 GIMPLE_CHANGE_DYNAMIC_TYPE during expansion.
15451 * tree-ssa-structalias.c (set_uids_in_ptset): Do not prune
15452 variables that cannot have TBAA applied.
15453 (compute_points_to_sets): Do not remove GIMPLE_CHANGE_DYNAMIC_TYPE
15454 statements.
15455
d748c406 154562009-01-27 Uros Bizjak <ubizjak@gmail.com>
576de5cb
UB
15457
15458 PR middle-end/38969
15459 * calls.c (initialize_argument_information): Do not wrap complex
15460 arguments in SAVE_EXPR.
15461
9112bb38
AT
154622009-01-26 Andreas Tobler <a.tobler@schweiz.org>
15463
15464 * config/t-vxworks (LIBGCC2_INCLUDES): Fix typo.
5efb79fc 15465 (INSTALL_LIBGCC): Revert typo commit.
9112bb38 15466
4757704f
RG
154672009-01-26 Richard Guenther <rguenther@suse.de>
15468
15469 PR tree-optimization/38745
15470 * tree-ssa-alias.c (update_alias_info_1): Exclude RESULT_DECL
15471 from special handling.
15472
e3e6cff4
RG
154732009-01-26 Richard Guenther <rguenther@suse.de>
15474
15475 PR tree-optimization/38745
15476 * tree-ssa.c (execute_update_addresses_taken): Do not include
15477 variables that cannot possibly be a register in not_reg_needs.
15478 Do not clear TREE_ADDRESSABLE on vars that may not become
15479 registers.
15480 * tree-ssa.c (update_alias_info_1): Include those in the set
15481 of addressable vars.
15482
dc874b53
RG
154832009-01-26 Richard Guenther <rguenther@suse.de>
15484
15485 PR middle-end/38851
15486 * Makefile.in (tree-ssa-dse.o): Add langhooks.h.
15487 * tree-ssa-dse.c: Include langhooks.h
15488 (execute_simple_dse): Remove stores with zero size.
15489
849421a3
JJ
154902009-01-24 Jakub Jelinek <jakub@redhat.com>
15491
15492 PR c/38957
15493 * c-typeck.c (c_finish_return): Handle POINTER_PLUS_EXPR the same way
15494 as PLUS_EXPR.
15495
82f70421
JB
154962009-01-24 Julian Brown <julian@codesourcery.com>
15497
15498 * config/arm/t-linux-eabi (LIB2FUNCS_STATIC_EXTRA): Add
15499 config/arm/linux-atomic.c.
15500 * config/arm/linux-atomic.c: New.
15501
863412d6
EB
155022009-01-24 Eric Botcazou <ebotcazou@adacore.com>
15503
15504 * config/sparc/linux.h (DBX_REGISTER_NUMBER): Delete.
15505 * config/sparc/linux64.h (DBX_REGISTER_NUMBER): Likewise.
15506 * config/sparc/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
15507
8c684300
L
155082009-01-24 H.J. Lu <hongjiu.lu@intel.com>
15509
15510 PR c/38938
93f1527a 15511 * c-opts.c (c_common_handle_option): Update warn_pointer_sign
8c684300
L
15512 properly.
15513
b840fb02
SP
155142009-01-24 Sebastian Pop <sebastian.pop@amd.com>
15515
15516 PR tree-optimization/38953
15517 * graphite.c (graphite_verify): Add a call to verify_loop_closed_ssa.
15518 (scop_adjust_phis_for_liveouts): Initialize false_i to zero.
15519 (gloog): Split the exit of the scop when the scop exit is a loop exit.
15520 (graphite_transform_loops): Only call cleanup_tree_cfg if gloog
15521 changed the CFG.
15522
ecee559f
PB
155232009-01-24 Paul Brook <paul@codesourcery.com>
15524
15525 * config/arm/neon.md (neon_type): Move to arm.md.
15526 (neon_mov<VSTRUCT>): Add neon_type attribute.
15527 * config/arm/arm.md (neon_type): Move to here.
15528 (conds): Add "unconditioal" and use as default for NEON insns.
15529
61ad0914
BE
155302009-01-24 Ben Elliston <bje@au.ibm.com>
15531
15532 * bitmap.h (BITMAP_FREE): Eliminate `implicit conversion from
15533 void *' warning from -Wc++-compat.
15534 * Makefile.in (dominance.o-warn): Remove.
15535
38432148 155362009-01-23 Paolo Bonzini <bonzini@gnu.org>
9bacafeb
PB
15537
15538 PR tree-optimization/38932
15539 * fold-const.c (fold_unary_ignore_overflow): New.
15540 * tree.h (fold_unary_ignore_overflow): Declare.
15541 * tree-ssa-ccp.c (ccp_fold): Use fold_unary_ignore_overflow.
15542 * tree-ssa-sccvn.c (visit_reference_op_load,
15543 simplify_unary_expression): Likewise.
15544
2cd36c22
AN
155452009-01-22 Adam Nemet <anemet@caviumnetworks.com>
15546
15547 * c-decl.c (finish_struct): Move code to set DECL_PACKED after
15548 DECL_BIT_FIELD is alreay known. Also inherit packed for bitfields
15549 regardless of their type.
15550 * c-common.c (handle_packed_attribute): Don't ignore packed on
15551 bitfields.
15552 * c.opt (Wpacked-bitfield-compat): New warning option.
15553 * stor-layout.c (place_field): Warn if offset of a field changed.
15554 * doc/extend.texi (packed): Mention the ABI change.
15555 * doc/invoke.texi (-Wpacked-bitfield-compat): Document.
15556 (Warning Options): Add it to the list.
15557
e4e624ab
L
155582009-01-22 H.J. Lu <hongjiu.lu@intel.com>
15559
15560 * c-opts.c (c_common_post_options): Fix a typo in comments.
15561
d0ea0759
SE
155622009-01-22 Steve Ellcey <sje@cup.hp.com>
15563
15564 PR middle-end/38615
15565 * gimplify.c (gimplify_init_constructor): Fix promotion of const
15566 variables to static.
15567 * doc/invoke.texi (-fmerge-all-constants): Update description.
15568
87673f84
UB
155692009-01-22 Uros Bizjak <ubizjak@gmail.com>
15570
15571 PR target/38931
15572 * config/i386/i386.md (*movsi_1): Use type "mmx" for alternative 2.
15573 (*movdi_1_rex64): Use type "mmx" for alternative 5.
15574
96339268
RE
155752009-01-22 Richard Earnshaw <rearnsha@arm.com>
15576
15577 * arm.h (DATA_ALIGNMENT): Align structures, unions and arrays to
15578 a word boundary.
15579 (LOCAL_ALIGNMENT): Similarly.
15580
442dc742 155812009-01-22 Mark Shinwell <shinwell@codesourcery.com>
87673f84 15582 Joseph Myers <joseph@codesourcery.com>
442dc742
MS
15583
15584 * config/arm/arm.c (all_architectures): Add iWMMXt2 entry.
15585 * config/arm/arm-cores.def: New ARM_CORE entry for iWMMXt2.
15586 * config/arm/arm-tune.md: Regenerate.
15587 * doc/invoke.texi (ARM Options): Document -mcpu=iwmmxt2 and
15588 -march=iwmmxt2.
15589
9b34732e
MS
155902009-01-22 Mark Shinwell <shinwell@codesourcery.com>
15591
15592 * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Bump EABI
15593 version number to five.
15594
03c2a308
DS
155952009-01-22 Dodji Seketeli <dodji@redhat.com>
15596
15597 PR c++/38930
ba20e309 15598 * c-decl.c (clone_underlying_type): Revert PR c++/26693 changes.
03c2a308
DS
15599 * c-common.c (set_underlying_type): Likewise.
15600 (is_typedef_decl ): Likewise
15601 * tree.h: Likewise
15602 (set_underlying_type): Likewise.
15603 (is_typedef_type): Likewise.
15604
1240d76e
VM
156052009-01-21 Vladimir Makarov <vmakarov@redhat.com>
15606
15607 PR middle-end/38587
15608 * ira-color.c (coalesce_spill_slots): Don't coalesce allocnos
15609 crossing setjmps.
15610
b8a1087d
DK
156112009-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
15612
15613 PR bootstrap/37660
15614 * config/i386/cygwin.h (SHARED_LIBGCC_SPEC): New helper macro.
15615 (LIBGCC_SPEC): Don't define.
15616 (REAL_LIBGCC_SPEC): Define instead, using SHARED_LIBGCC_SPEC.
15617
435da628
UB
156182009-01-21 Uros Bizjak <ubizjak@gmail.com>
15619
15620 PR rtl-optimization/38879
15621 * alias.c (base_alias_check): Unaligned access via AND address can
15622 alias all surrounding object types except those with sizes equal
15623 or wider than the size of unaligned access.
15624
d597b3ce
DS
156252009-01-21 Dodji Seketeli <dodji@redhat.com>
15626
15627 PR c++/26693
ba20e309 15628 * c-decl.c (clone_underlying_type): Move this ...
d597b3ce 15629 * c-common.c (set_underlying_type): ... here.
435da628 15630 Also, make sure the function properly sets TYPE_STUB_DECL() on
d597b3ce
DS
15631 the newly created typedef variant type.
15632 (is_typedef_decl ): New entry point.
15633 * tree.h: Added a new member member_types_needing_access_check to
15634 struct tree_decl_non_common.
15635 (set_underlying_type): New entry point.
15636 (is_typedef_type): Likewise.
15637
71a6fe66
BM
156382009-01-21 Bingfeng Mei <bmei@broadcom.com>
15639
15640 * alias.c (walk_mems_1, walk_mems_2, insn_alias_sets_conflict_p):
15641 Check whether two instructions have memory references that
15642 belong to conflicting alias sets. walk_mems_1 and walk_mems_2
15643 are helper functions for traversing.
15644 * alias.h (insn_alias_sets_confilict_p): New prototypes.
15645 * ddg.c (add_inter_loop_mem_dep): Call insn_alias_sets_conflict_p
15646 not to draw dependency edge for instructions with non-conflicting
15647 alias sets.
15648
5a248274
JM
156492009-01-20 Joseph Myers <joseph@codesourcery.com>
15650
15651 PR other/38758
6b67572e
UB
15652 * longlong.h: Update copyright years. Use soft-fp license notice.
15653 Sync __clz_tab declaration with glibc.
5a248274 15654
4b84f3de
SE
156552009-01-20 Steve Ellcey <sje@cup.hp.com>
15656
15657 PR target/30687
15658 * doc/extend.texi (syscall_linkage): New.
15659 (version_id): Modify.
15660
37348bf1 156612009-01-20 Andrew Pinski <andrew_pinski@playstation.sony.com>
435da628 15662 Richard Guenther <rguenther@suse.de>
37348bf1
AP
15663
15664 PR tree-optimization/38747
15665 PR tree-optimization/38748
15666 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Disable the VCE
15667 conversion if the base address is an indirect reference and the
15668 aliasing sets could cause issues.
15669
d0a58904
SP
156702009-01-20 Sebastian Pop <sebastian.pop@amd.com>
15671
2ba9daa7 15672 * common.opt (fgraphite, fgraphite-identity): Add comment for
d0a58904
SP
15673 explaining why these options are not documented.
15674
71e7afb2
SP
156752009-01-20 Sebastian Pop <sebastian.pop@amd.com>
15676
15677 * graphite.c (stmt_simple_for_scop_p): Also handle cases when
15678 gimple_call_lhs is NULL.
15679
38432148 156802009-01-20 Paolo Bonzini <bonzini@gnu.org>
09efeca1
PB
15681
15682 PR target/38868
15683 * emit-rtl.c (adjust_address_1): Make sure memref is never
15684 overwritten.
15685
cbb8dee3
BE
156862009-01-20 Ben Elliston <bje@au.ibm.com>
15687
15688 * libgcov.c (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
435da628 15689 const qualifier from arg parameter. Remove unnecessary cast to char *.
cbb8dee3
BE
15690 * gcov-io.h (__gcov_execl, __gcov_execlp, __gcov_execle): Remove
15691 const qualifier from arg 2.
15692
72c66596
IS
156932009-01-19 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
15694
435da628 15695 * config/darwin.h: Add static-libgfortran to LINK_SPEC.
72c66596 15696
f68211cd
VM
156972009-01-19 Vladimir Makarov <vmakarov@redhat.com>
15698
15699 PR c/38869
15700 * rtl.h (reinit_regs): New prototype.
15701 * regclass.c: Include ira.h.
15702 (reinit_regs): New.
15703 * Makefile.in (regclass.o): Add ira.h.
15704 * config/i386/i386.c (ix86_maybe_switch_abi): Use reinit_regs.
15705
6e4f1168
L
157062009-01-18 H.J. Lu <hongjiu.lu@intel.com>
15707
15708 PR target/38736
15709 * c-common.c (handle_aligned_attribute): Use
15710 ATTRIBUTE_ALIGNED_VALUE instead of BIGGEST_ALIGNMENT for
15711 default alignment value.
15712
15713 * c-cppbuiltin.c (c_cpp_builtins): Define __BIGGEST_ALIGNMENT__.
15714
15715 * defaults.h (ATTRIBUTE_ALIGNED_VALUE): New.
15716 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Likewise.
15717
15718 * doc/extend.texi: Update __attribute__ ((aligned)). Document
15719 __BIGGEST_ALIGNMENT__.
15720
15721 * doc/tm.texi: Document ATTRIBUTE_ALIGNED_VALUE.
15722
890065bf
RG
157232009-01-18 Richard Guenther <rguenther@suse.de>
15724
15725 PR tree-optimization/38819
15726 * tree-flow.h (operation_could_trap_helper_p): Declare.
15727 * tree-eh.c (operation_could_trap_helper_p): Export.
15728 * tree-ssa-sccvn.h (vn_nary_may_trap): Declare.
15729 * tree-ssa-sccvn.c (vn_nary_may_trap): New function.
15730 * tree-ssa-pre.c (insert_into_preds_of_block): Check if we
15731 are about to insert a possibly trapping instruction and fail
15732 in this case.
15733
a729d731
AS
157342009-01-18 Andreas Schwab <schwab@suse.de>
15735
15736 * doc/install.texi (Configuration): Remove obsolete paragraph
15737 about use of --with-gnu-ld with --with-gnu-as.
15738
a640c13b
KH
157392009-01-18 Kazu Hirata <kazu@codesourcery.com>
15740
15741 * doc/extend.texi, doc/gimple.texi, doc/invoke.texi,
15742 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi: Fix typos.
15743 Follow spelling conventions.
15744
dba2cc0c
BE
157452009-01-18 Ben Elliston <bje@au.ibm.com>
15746
15747 * bitmap.c (bitmap_obstack_alloc_stat): Adjust cast to eliminate
15748 C++ warning about implicit conversion from void * to struct
15749 bitmap_head_def *.
15750 (bitmap_obstack_free): Likewise for bitmap_element *.
bc127c63 15751 * Makefile.in (bitmap.o-warn): Remove.
dba2cc0c 15752
2207a498
DK
157532009-01-17 Dave Korn <dave.korn.cygwin@gmail.com>
15754
15755 * Makefile.in (BACKENDLIBS): Reorder to match dependencies.
15756
8137e465
SP
157572009-01-17 Sebastian Pop <sebastian.pop@amd.com>
15758 Tobias Grosser <tobi.grosser@amd.com>
15759
15760 * graphite.c (graphite_trans_scop_block): Do not block single
15761 nested loops.
15762
5be1c58c
AO
157632009-01-16 Alexandre Oliva <aoliva@redhat.com>
15764
15765 * ebitmap.h (ebitmap_iter_init): Initialize all fields.
15766 * ipa-struct-reorg.c (gen_struct_type): Replace known-true
15767 test with assertion.
15768
786ce82d
RG
157692009-01-16 Richard Guenther <rguenther@suse.de>
15770
15771 PR tree-optimization/38835
15772 PR middle-end/36227
15773 * fold-const.c (fold_binary): Remove PTR + INT -> (INT)(PTR p+ INT)
15774 and INT + PTR -> (INT)(PTR p+ INT) folding.
15775 * tree-ssa-address.c (create_mem_ref): Properly use POINTER_PLUS_EXPR.
15776
c1cb09ad
AN
157772009-01-16 Adam Nemet <anemet@caviumnetworks.com>
15778
15779 PR target/38554
15780 * expmed.c (expand_shift): With SHIFT_COUNT_TRUNCATED, don't lift
15781 the subreg from a lowpart subreg if it is also casting the value.
15782
bcab4e19
SP
157832009-01-16 Sebastian Pop <sebastian.pop@amd.com>
15784 Tobias Grosser <tobi.grosser@amd.com>
15785
15786 * graphite.c (compare_prefix_loops): New.
15787 (build_scop_canonical_schedules): Rewritten.
15788 (graphite_transform_loops): Move build_scop_canonical_schedules
15789 after build_scop_iteration_domain.
15790
0b040072
SP
157912009-01-16 Sebastian Pop <sebastian.pop@amd.com>
15792 Tobias Grosser <tobi.grosser@amd.com>
15793
2ba9daa7 15794 * graphite.c (add_conditions_to_domain): Add the loops to
0b040072
SP
15795 the dimension of the iteration domain. Do copy the domain
15796 only when it exists.
15797 (build_scop_conditions_1): Do not call add_conditions_to_domain.
15798 (add_conditions_to_constraints): New.
15799 (can_generate_code_stmt, can_generate_code): Removed.
15800 (gloog): Do not call can_generate_code.
15801 (graphite_transform_loops): Call add_conditions_to_constraints
15802 after building the iteration domain.
15803
56c6a499
JJ
158042009-01-16 Jakub Jelinek <jakub@redhat.com>
15805
15806 PR tree-optimization/38789
15807 * tree-ssa-threadedge.c
15808 (record_temporary_equivalences_from_stmts_at_dest): Ignore calls to
15809 __builtin_constant_p.
15810
c95b2534 158112009-01-16 Kenneth Zadeck <zadeck@naturalbridge.com>
cd3f1729
KZ
15812
15813 * dce.c (delete_unmarked_insns): Reversed the order that insns are
15814 examined before deleting them.
2ba9daa7 15815
c433cb14
RE
158162009-01-16 Richard Earnshaw <rearnsha@arm.com>
15817
15818 * function.c (aggregate_value_p): Correctly extract the function
15819 type from CALL_EXPR_FN lookup.
15820
c95b2534 158212009-01-16 Hariharan Sandanagobalane <hariharan@picochip.com>
27d62fa4
HS
15822
15823 * config/picochip/picochip.c (picochip_override_options): Revert
15824 CFI asm flag disable commited previously.
15825
c77bb78f
SP
158262009-01-15 Sebastian Pop <sebastian.pop@amd.com>
15827 Tobias Grosser <tobi.grosser@amd.com>
15828 Jan Sjodin <jan.sjodin@amd.com>
15829
15830 * graphite.c (scan_tree_for_params): On substractions negate
15831 all the coefficients of the term.
15832 (clast_to_gcc_expression_red): New. Handle reduction expressions
15833 of more than two operands.
15834 (clast_to_gcc_expression): Call clast_to_gcc_expression_red.
15835 (get_vdef_before_scop): Handle also the case of default definitions.
15836
574af2d6
RS
158372009-01-15 Richard Sandiford <rdsandiford@googlemail.com>
15838
15839 * caller-save.c (add_used_regs_1, add_used_regs): New functions.
15840 (insert_one_insn): Use them instead of REG_DEAD and REG_INC notes.
15841 Also use them when walking CALL_INSN_FUNCTION_USAGE.
15842
e939805b
L
158432009-01-15 H.J. Lu <hongjiu.lu@intel.com>
15844 Joey Ye <joey.ye@intel.com>
15845
15846 PR middle-end/37843
15847 * cfgexpand.c (expand_stack_alignment): Don't update stack
15848 boundary nor check incoming stack boundary here.
15849 (gimple_expand_cfg): Update stack boundary and check incoming
15850 stack boundary here.
15851
c95b2534 158522009-01-15 Kenneth Zadeck <zadeck@naturalbridge.com>
750900db 15853
435da628 15854 * dce.c (find_call_stack_args, delete_unmarked_insns): Fixed comments.
2ba9daa7 15855
0196c95e
JJ
158562009-01-14 Jakub Jelinek <jakub@redhat.com>
15857
15858 PR rtl-optimization/38245
15859 * calls.c (expand_call): Add stack arguments to
15860 CALL_INSN_FUNCTION_USAGE even for pure calls (when
15861 ACCUMULATE_OUTGOING_ARGS) and even for args partially passed
15862 in regs and partially in memory or BLKmode arguments.
15863 (emit_library_call_value_1): Add stack arguments to
15864 CALL_INSN_FUNCTION_USAGE even for pure calls (when
15865 ACCUMULATE_OUTGOING_ARGS).
15866 * dce.c: Include tm_p.h.
15867 (find_call_stack_args): New function.
15868 (deletable_insn_p): Call it for CALL_P insns. Add ARG_STORES
15869 argument.
15870 (mark_insn): Call find_call_stack_args for CALL_Ps.
15871 (prescan_insns_for_dce): Walk insns backwards in bb rather than
15872 forwards. Allocate and free arg_stores bitmap if needed, pass it
15873 down to deletable_insn_p, don't mark stores set in arg_stores
15874 bitmap, clear the bitmap at the beginning of each bb.
15875 * Makefile.in (dce.o): Depend on $(TM_P_H).
15876
6df6bcfa
MM
158772009-01-14 Michael Meissner <gnu@the-meissners.org>
15878
15879 PR target/22599
435da628
UB
15880 * config/i386/i386.c (print_operand): Add tests for 'D', 'C', 'F', 'f'
15881 to make sure the insn is a conditional test (bug 22599). Reformat a
15882 few long lines.
6df6bcfa 15883
765ec70c
SP
158842009-01-14 Sebastian Pop <sebastian.pop@amd.com>
15885
15886 PR middle-end/38431
15887 * graphite.c (get_vdef_before_scop, scop_adjust_vphi): New.
15888 (scop_adjust_phis_for_liveouts): Call scop_adjust_vphi.
15889 (gloog): Do not call cleanup_tree_cfg.
2ba9daa7 15890 (graphite_transform_loops): Call cleanup_tree_cfg after all
765ec70c
SP
15891 scops have been code generated.
15892
7de2b688
BS
158932009-01-14 Basile Starynkevitch <basile@starynkevitch.net>
15894 * doc/gty.texi (Invoking the garbage collector): Added new node
15895 and section documenting ggc_collect.
15896
10bd6c5c
RG
158972009-01-14 Richard Guenther <rguenther@suse.de>
15898
15899 PR tree-optimization/38826
15900 PR middle-end/38477
15901 * tree-ssa-structalias.c (emit_alias_warning): Emit the pointer
15902 initialization notes only if we actually emitted a warning.
15903 (intra_create_variable_infos): Add constraints for a result decl
15904 that is passed by hidden reference.
15905 (build_pred_graph): Mark all related variables non-direct on
15906 address-taking.
15907
9c7c70ee
NC
159082009-01-14 Nick Clifton <nickc@redhat.com>
15909
15910 * ira-conflicts.c: Include addresses.h for the definition of
15911 base_reg_class.
435da628
UB
15912 (ira_build_conflicts): Use base_reg_class instead of BASE_REG_CLASS.
15913 * Makefile.in: Add a dependency of ira-conflicts.o on addresses.h.
9c7c70ee 15914
cf0c2a60
VM
159152009-01-13 Vladimir Makarov <vmakarov@redhat.com>
15916
15917 PR target/38811
15918 * Makefile.in (ira-lives.o): Add except.h.
15919
15920 * ira-lives.c: Include except.h.
15921 (process_bb_node_lives): Process can_throw_internal.
15922
d3302fd3
JJ
159232009-01-13 Jakub Jelinek <jakub@redhat.com>
15924
15925 PR rtl-optimization/38774
15926 * combine.c (simplify_set): When undoing cc_use change, don't do
15927 PUT_CODE on the newly created comparison, but instead put back the
15928 old comparison.
15929
7ab23fd0
JM
159302009-01-13 Joseph Myers <joseph@codesourcery.com>
15931
15932 * doc/invoke.texi (ARM Options): Update lists of -mcpu and -march
15933 values. Remove duplicate arm8 entry.
15934
f9344488
SP
159352009-01-13 Sebastian Pop <sebastian.pop@amd.com>
15936
15937 PR tree-optimization/38786
15938 * graphite.c (expand_scalar_variables_ssa_name): New, outlined from
15939 the SSA_NAME case of expand_scalar_variables_expr.
15940 Set the type of an expression to the type of its assign statement.
15941 (expand_scalar_variables_expr): Also gather the scalar computation
15942 used to index the memory access. Do not pass loop_p.
15943 Fix comment. Stop recursion on tcc_constant or tcc_declaration.
15944 (expand_scalar_variables_stmt): Pass to expand_scalar_variables_expr
bef3c57b
UB
15945 the gimple_stmt_iterator where it inserts new code.
15946 Do not pass loop_p.
f9344488
SP
15947 (copy_bb_and_scalar_dependences): Do not pass loop_p.
15948 (translate_clast): Update call to copy_bb_and_scalar_dependences.
15949
2d8bb84d
SP
159502009-01-13 Sebastian Pop <sebastian.pop@amd.com>
15951
15952 * graphite.h (debug_value): Removed.
15953 * graphite.c (debug_value): Removed.
15954
ff128632
RE
159552009-01-13 Richard Earnshaw <rearnsha@arm.com>
15956
435da628
UB
15957 * config/arm/arm.c (output_move_double): Don't synthesize thumb-2
15958 ldrd/strd with two 32-bit instructions.
ff128632 15959
d5a0a47b
RE
159602009-01-13 Richard Earnshaw <rearnsha@arm.com>
15961
435da628
UB
15962 * config/arm/arm.c (struct processors): Pass for speed down into
15963 cost helper functions.
d5a0a47b
RE
15964 (const_ok_for_op): Handle COMPARE and inequality nodes.
15965 (arm_rtx_costs_1): Rewrite.
15966 (arm_size_rtx_costs): Update prototype.
15967 (arm_rtx_costs): Pass speed down to helper functions.
15968 (arm_slowmul_rtx_costs): Rework cost calculations.
15969 (arm_fastmul_rtx_costs, arm_xscale_rtx_costs): Likewise.
15970 (arm_9e_rtx_costs): Likewise.
15971
26d5bf5b
UB
159722009-01-13 Uros Bizjak <ubizjak@gmail.com>
15973
15974 * config/alpha/alpha.c (alpha_legitimate_address_p): Explicit
435da628 15975 relocations of local symbols wider than UNITS_PER_WORD are not valid.
26d5bf5b
UB
15976 (alpha_legitimize_address): Do not split local symbols wider than
15977 UNITS_PER_WORD into HIGH/LO_SUM parts.
15978
5d14e3d5
DS
159792009-01-13 Danny Smith <dannysmith@users.sourceforge.net>
15980
15981 PR bootstrap/38580
15982 * gcc.c (process_command): Replace call to execvp with calls
15983 to pex_one and exit.
15984
33faafca
AS
159852009-01-03 Anatoly Sokolov <aesok@post.ru>
15986
15987 PR target/29141
15988 * config/avr/t-avr (LIB1ASMFUNCS): Add _tablejump_elpm.
15989 * config/avr/libgcc.S (__do_global_ctors, __do_global_dtors): Add
15990 variant for devices with 3-byte PC.
ba20e309 15991 (__tablejump_elpm__): New.
33faafca 15992
634b5df5
JJ
159932009-01-12 Jakub Jelinek <jakub@redhat.com>
15994
15995 PR c/32041
15996 * c-parser.c (c_parser_postfix_expression): Allow `->' in
15997 offsetof member-designator, handle it as `[0].'.
15998
2842bb86
JDA
159992009-01-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16000
16001 * pa.c (pa_asm_output_mi_thunk): Use pc-relative branch to thunk
16002 function when not using named sections on targets with named sections
16003 if branch distance is less than 262132.
16004
76ee70f6
RE
160052009-01-12 Richard Earnshaw <rearnsha@arm.com>
16006
16007 * combine.c (combine_instructions): Recompute
16008 optimize_this_for_speed_p for each BB in the main combine loop.
16009
f56e675d
TB
160102009-01-12 Tomas Bily <tbily@suse.cz>
16011
16012 PR middlend/38385
26d5bf5b
UB
16013 * tree-loop-distribution.c (prop_phis): New function.
16014 (generate_builtin): Call prop_phis.
16015 * testsuite/gcc.dg/tree-ssa/pr38385.c: New file.
f56e675d 16016
c2152239
JJ
160172009-01-12 Jakub Jelinek <jakub@redhat.com>
16018
16019 PR tree-optimization/38807
16020 * tree-ssa-reassoc.c (remove_visited_stmt_chain): Don't look at
16021 gimple_visited_p unless stmt is GIMPLE_ASSIGN.
16022
0e510b3e
AN
160232009-01-11 Adam Nemet <anemet@caviumnetworks.com>
16024
16025 * expmed.c (store_bit_field_1): Properly truncate the paradoxical
16026 subreg of op0 to the original op0.
16027
c95b2534 160282009-01-11 Laurent GUERBY <laurent@guerby.net>
10270471
LG
16029
16030 * doc/sourcebuild.texi (Source Tree): Move up intl and fixinc.
2ba9daa7 16031
53a7ff9a
MS
160322009-01-11 Markus Schoepflin <markus.schoepflin@comsoft.de>
16033
16034 PR debug/7055
60839f5d 16035 * mips-tfile.c (parse_def): Fix parsing of def strings
53a7ff9a
MS
16036 starting with digits.
16037
b3a796bc
JJ
160382009-01-10 Jakub Jelinek <jakub@redhat.com>
16039
16040 PR target/38695
16041 * config/arm/arm.c (arm_is_long_call_p): Don't call
16042 arm_function_in_section_p if decl isn't a FUNCTION_DECL.
16043
b21b850e
SB
160442009-01-09 Steven Bosscher <steven@gcc.gnu.org>
16045
16046 * regrename.c (regrename_optimize): Fix dumping.
16047 (find_oldest_value_reg): Preserve REG_POINTER.
16048 (copy_hardreg_forward_1): Likewise.
16049
e0e10d3a
DN
160502009-01-09 Diego Novillo <dnovillo@google.com>
16051
bf9b2cc9 16052 * gimple.h (struct gimple_statement_base) <uid>: Document
e0e10d3a
DN
16053 the restrictions on its use.
16054 (gimple_uid): Tidy.
16055 (gimple_set_uid): Tidy.
16056
c9da2ae8
JJ
160572009-01-09 Jakub Jelinek <jakub@redhat.com>
16058
16059 * config/i386/i386.c (ix86_expand_movmem, ix86_expand_setmem): Add
16060 zero guard even if align_bytes != 0 and count is smaller than
16061 size_needed.
16062
38432148 160632009-01-09 Vladimir Makarov <vmakarov@redhat.com>
a174c19c
VM
16064
16065 PR rtl-optimization/38495
26d5bf5b 16066 * ira-emit.c (print_move_list, ira_debug_move_list): New functions.
a174c19c
VM
16067 (add_range_and_copies_from_move_list): Print all added ranges.
16068 Add ranges to memory optimized destination.
16069
260fda3d
JJ
160702009-01-09 Jakub Jelinek <jakub@redhat.com>
16071
6f6278ad
JJ
16072 PR target/38686
16073 PR target/38708
16074 * config/i386/i386.c (override_options): Reject
16075 -mstringop-strategy=rep_8byte with -m32.
16076 (ix86_expand_movmem): For size_needed == 1 set epilogue_size_needed
16077 to 1. Do count comparison against epilogue_size_needed at compile
16078 time even when count_exp was constant forced into register. For
16079 size_needed don't jump to epilogue, instead just avoid aligning
16080 and invoke the body algorithm. If need_zero_guard, add zero guard
16081 even if count is non-zero, but smaller than size_needed + number of
16082 bytes that could be stored for alignment.
16083 (ix86_expand_setmem): For size_needed == 1 set epilogue_size_needed
16084 to 1. If need_zero_guard, add zero guard even if count is non-zero,
16085 but smaller than size_needed + number of bytes that could be stored
16086 for alignment. Compare size_needed with epilogue_size_needed instead
16087 of desired_align - align, don't adjust size_needed, pass
16088 epilogue_size_needed to the epilogue expanders.
16089
260fda3d 16090 PR c/35742
26d5bf5b 16091 * c-pretty-print.c (pp_c_expression): Handle GOTO_EXPR like BIND_EXPR.
260fda3d 16092
67b846fa
JDA
160932009-01-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16094
16095 * pa.c (last_address): Change to unsigned.
16096 (update_total_code_bytes): Change argument to unsigned. Don't
16097 check if insn addresses are set.
16098 (pa_output_function_epilogue): Set last_address to UINT_MAX if insn
16099 addresses are not set.
16100 (pa_asm_output_mi_thunk): Handle wrap when updating last_address.
16101
91c82473
NC
161022009-01-09 Nick Clifton <nickc@redhat.com>
16103
16104 * config/sh/symbian.c: Replace uses of DECL_INLINE with
16105 DECL_DECLARED_INLINE_P.
16106
4017e262
JJ
161072009-01-09 Jakub Jelinek <jakub@redhat.com>
16108
0a49e5c2
JJ
16109 PR middle-end/38347
16110 * dojump.c (do_jump_by_parts_zero_rtx): Use mode instead of
16111 GET_MODE (op0) in operand_subword_force calls.
16112
4017e262
JJ
16113 PR middle-end/38771
16114 * fold-const.c (fold_unary): For COMPOUND_EXPR and COND_EXPR,
16115 fold_convert arg0 operands to TREE_TYPE (op0) first.
16116
7cd06356
VM
161172009-01-08 Vladimir Makarov <vmakarov@redhat.com>
16118
16119 * params.def (ira-max-conflict-table-size): Decrease default value
16120 to 1000.
16121
96867bbd
JJ
161222009-01-08 Jakub Jelinek <jakub@redhat.com>
16123
16124 PR tree-optimization/37031
16125 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy
16126 on parameter_set.
16127 (build_access_matrix): Reserve correct size for AM_MATRIX vector,
16128 allocate it using gc instead of heap, use VEC_quick_push instead of
16129 VEC_safe_push.
16130 * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc
16131 instead of heap, use VEC_quick_push instead of VEC_safe_push.
16132 * tree-data-ref.h (struct access_matrix): Change matrix to gc
16133 allocated vector from heap allocated.
16134 * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector.
16135 * tree-loop-linear.c (linear_transform_loops): Allocate nest
16136 vector only after perfect_loop_nest_depth call.
16137
68f61c3d
SP
161382009-01-08 Sebastian Pop <sebastian.pop@amd.com>
16139 Jan Sjodin <jan.sjodin@amd.com>
16140
16141 PR tree-optimization/38559
16142 * graphite.c (debug_value, copy_constraint,
16143 swap_constraint_variables, scale_constraint_variable, ): New.
16144 (get_lower_bound, get_upper_bound): Removed.
16145 (graphite_trans_bb_strip_mine): Clean up this code that works
16146 only for constant number of iterations. Fully copy upper and
16147 lower bound constraints, not only the constant part of them.
16148 * graphite.h (debug_value): Declared.
16149
82567e33
IR
161502009-01-08 Ira Rosen <irar@il.ibm.com>
16151
16152 PR tree-optimization/37194
16153 * tree-vect-transform.c (vect_estimate_min_profitable_iters):
2ba9daa7 16154 Don't add the cost of cost model guard in prologue to scalar
82567e33
IR
16155 outside cost in case of known number of iterations.
16156
7da13f1d
NF
161572009-01-07 Nathan Froyd <froydnj@codesourcery.com>
16158 Alan Modra <amodra@bigpond.net.au>
16159
16160 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check for
16161 non-word-aligned REG+CONST addressing.
16162
c0f64575
UB
161632009-01-07 Uros Bizjak <ubizjak@gmail.com>
16164
16165 PR target/38706
16166 * config/alpha/alpha.c (alpha_end_function): For TARGET_ABI_OSF, call
16167 free_after_compilation when outputting a thunk.
16168 (alpha_output_mi_thunk_osf): Assert that we are processing a thunk.
16169 Do not call free_after_compilation here.
16170
301b6a4e
UB
161712009-01-07 Uros Bizjak <ubizjak@gmail.com>
16172
16173 * config/i386/i386.c (ix86_target_string): Use ARRAY_SIZE.
301b6a4e
UB
16174 (ix86_valid_target_attribute_inner_p): Ditto.
16175
6a114766
JS
161762009-01-07 Jan Sjodin <jan.sjodin@amd.com>
16177
16178 PR tree-optimization/38492
16179 PR tree-optimization/38498
16180 * tree-check.c (operator_is_linear, scev_is_linear_expression): New.
16181 * tree-chrec.h (scev_is_linear_expression): Declared.
16182 * graphite.c (graphite_cannot_represent_loop_niter): New.
16183 (scopdet_basic_block_info): Call graphite_cannot_represent_loop_niter.
16184 (graphite_loop_normal_form): Use gcc_assert.
16185 (scan_tree_for_params): Use CASE_CONVERT.
16186 (phi_node_is_iv, bb_contains_non_iv_scalar_phi_nodes): New.
16187 (build_scop_conditions_1): Call bb_contains_non_iv_scalar_phi_nodes.
16188 Use gcc_assert. Discard scops that contain unhandled cases.
16189 (build_scop_conditions): Return a boolean status for unhandled cases.
16190 (strip_mine_profitable_p): Print the loop number, not its depth.
16191 (is_interchange_valid): Pass the depth of the loop nest, don't
16192 recompute it wrongly.
16193 (graphite_trans_bb_block): Same.
16194 (graphite_trans_bb_block): Print tentative of loop blocking.
16195 (graphite_trans_scop_block): Do not print that the loop has been
16196 blocked.
16197 (graphite_transform_loops): Do not handle scops that contain condition
16198 scalar phi nodes.
16199
65b82caa
L
162002009-01-07 H.J. Lu <hongjiu.lu@intel.com>
16201
16202 AVX Programming Reference (December, 2008)
16203 * config/i386/avxintrin.h (_mm256_stream_si256): New.
16204 (_mm256_stream_pd): Likewise.
16205 (_mm256_stream_ps): Likewise.
16206
16207 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_MOVNTDQ256,
16208 IX86_BUILTIN_MOVNTPD256 and IX86_BUILTIN_MOVNTPS256.
16209 (ix86_special_builtin_type): Add VOID_FTYPE_PV4DI_V4DI.
16210 (bdesc_special_args): Add __builtin_ia32_movntdq256,
16211 __builtin_ia32_movntpd256 and __builtin_ia32_movntps256.
16212 (ix86_init_mmx_sse_builtins): Handle VOID_FTYPE_PV4DI_V4DI.
16213 (ix86_expand_special_args_builtin): Likewise.
16214
16215 * config/i386/sse.md (AVXMODEDI): New.
16216 (avx_movnt<mode>): Likewise.
16217 (avx_movnt<mode>): Likewise.
16218 (<sse>_movnt<mode>): Remove AVX support.
16219 (sse2_movntv2di): Likewise.
16220
cef158f9
RG
162212009-01-07 Richard Guenther <rguenther@suse.de>
16222
16223 PR middle-end/38751
16224 * fold-const.c (extract_muldiv): Remove obsolete comment.
16225 (fold_plusminus_mult_expr): Undo MINUS_EXPR
16226 to PLUS_EXPR canonicalization for the canonicalization.
16227
246cb5be
GP
162282009-01-07 Gerald Pfeifer <gerald@pfeifer.com>
16229
16230 * doc/install.texi (alpha*-dec-osf*): Remove note on 32-bit
16231 hosted cross-compilers generating less efficient code.
16232
84b9b872
RS
162332009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
16234
16235 * function.h (rtl_data): Add a dbr_scheduled_p field.
16236 * reorg.c (dbr_schedule): Set it.
16237 (gate_handle_delay_slots): Check it.
16238 * config/mips/mips.c (mips_base_delayed_branch): Delete.
16239 (mips_reorg): Check flag_delayed_branch instead of
16240 mips_base_delayed_branch.
16241 (mips_override_options): Don't set mips_base_delayed_branch
16242 or flag_delayed_branch.
16243
ace984c8
RS
162442009-01-06 Richard Sandiford <rdsandiford@googlemail.com>
16245
16246 PR rtl-optimization/38426.
16247 * ira.c (ira): Set current_function_is_leaf earlier.
16248
7ad7809b
JJ
162492009-01-06 Jakub Jelinek <jakub@redhat.com>
16250
16251 PR rtl-optimization/38722
16252 * combine.c (try_combine): Don't modify PATTERN (i3) and notes
16253 too early, only set a flag and modify after last possible
16254 undo_all point.
16255
c52ec948
JJ
162562009-01-06 Janis Johnson <janis187@us.ibm.com>
16257
16258 PR c/34252
16259 * ginclude/float.h: Rename DECnn_DEN to DECnn_SUBNORMAL_MIN.
16260 * real.c (decimal_single_format): Correct values of emin and emax.
16261 (decimal_double_format): Ditto.
16262 (decimal_quad_format): Ditto.
16263 * c-cppbuiltin.c (builtin_define_decimal_float_constants): Adjust
16264 computation of DECnn_MIN and DECnn_MAX for corrected values of
16265 emin and emax. Define __DECnn_SUBNORMAL_MIN__ instead of
16266 __DECnn_MIN__, and adjust its computation for the corrected value
16267 of emin.
16268
300240e1
JH
162692009-01-06 Jan Hubicka <jh@suse.cz>
16270
16271 PR target/38744
435da628 16272 * config/i386/i386.c (ix86_expand_call): Use ARRAY_SIZE.
300240e1 16273
271c069e
GP
162742009-01-06 Gerald Pfeifer <gerald@pfeifer.com>
16275
16276 * doc/contrib.texi (Contributors): Slightly adjust the end note.
16277 Add Robert Clark to the list of testers.
16278
64e4c301 162792009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 16280 Kai Tietz <kai.tietz@onevision.com>
64e4c301 16281
435da628
UB
16282 * config/i386/i386.md (*msabi_syvabi): Add SSE regs clobbers.
16283 * config/i386/i386.c (ix86_expand_call): Add clobbers.
64e4c301 16284
7650b83e 162852009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 16286 Kai Tietz <kai.tietz@onevision.com>
7650b83e 16287
435da628
UB
16288 * config/i386/i386.h (CONDITIONAL_CALL_USAGE): SSE regs are not used
16289 for w64 ABI.
16290 * config/i386/i386.c (struct ix86_frame): Add padding0 and nsseregs.
7650b83e
JH
16291 (ix86_nsaved_regs): Count only general purpose regs.
16292 (ix86_nsaved_sseregs): New.
16293 (ix86_compute_frame_layout): Update nsseregs; set preferred alignment
16294 to 16 for w64; compute padding and size of sse reg save area.
301b6a4e
UB
16295 (ix86_emit_save_regs, ix86_emit_save_regs_using_mov): Save only
16296 general purpose regs.
7650b83e
JH
16297 (ix86_emit_save_sse_regs_using_mov): New.
16298 (ix86_expand_prologue): Save SSE regs if needed.
16299 (ix86_emit_restore_regs_using_mov): Use only general purpose regs.
16300 (ix86_emit_restore_sse_regs_using_mov): New.
16301 (ix86_expand_epilogue): Save SSE regs if needed.
16302
9aa5c1b2 163032009-01-06 Jan Hubicka <jh@suse.cz>
c95b2534 16304 Kai Tietz <kai.tietz@onevision.com>
9aa5c1b2 16305
435da628
UB
16306 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Enable for MSABI
16307 * config/i386/i386.c (init_cumulative_args): Disallow calls of MSABI
16308 functions when accumulate outgoing args is off.
9aa5c1b2 16309
f7556aae
L
163102009-01-06 H.J. Lu <hongjiu.lu@intel.com>
16311
16312 PR bootstrap/38742
16313 * ira-color.c (ira_reuse_stack_slot): Check ENABLE_IRA_CHECKING
16314 before using pseudos_have_intersected_live_ranges_p.
16315
16316 * ira-int.h (ira_assert): Always define.
16317
e47b7d04
L
163182009-01-06 H.J. Lu <hongjiu.lu@intel.com>
16319
16320 AVX Programming Reference (December, 2008)
16321 * config/i386/avxintrin.h (_mm_permute2_pd): Removed.
16322 (_mm256_permute2_pd): Likewise.
16323 (_mm_permute2_ps): Likewise.
16324 (_mm256_permute2_ps): Likewise.
16325 * config/i386/i386.md (UNSPEC_VPERMIL2): Likewise.
16326 * config/i386/sse.md (avx_vpermil2<mode>3): Likewise.
16327
16328 * config/i386/i386.c (ix86_builtins): Remove
16329 IX86_BUILTIN_VPERMIL2PD, IX86_BUILTIN_VPERMIL2PS,
16330 IX86_BUILTIN_VPERMIL2PD256 and IX86_BUILTIN_VPERMIL2PS256.
16331 (ix86_builtin_type): Remove V8SF_FTYPE_V8SF_V8SF_V8SI_INT,
16332 V4DF_FTYPE_V4DF_V4DF_V4DI_INT, V4SF_FTYPE_V4SF_V4SF_V4SI_INT
16333 and V2DF_FTYPE_V2DF_V2DF_V2DI_INT.
16334 (bdesc_args): Remove __builtin_ia32_vpermil2pd,
16335 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256 and
16336 __builtin_ia32_vpermil2ps256.
16337 (ix86_init_mmx_sse_builtins): Updated.
16338 (ix86_expand_args_builtin): Likewise.
16339
44b86471
JDA
163402009-01-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16341
e47b7d04
L
16342 * pa.c (output_call): Relocate non-jump insns in the delay slot of
16343 long absolute calls when generating PA 2.0 code.
44b86471 16344
311aab06
VM
163452009-01-05 Vladimir Makarov <vmakarov@redhat.com>
16346
16347 PR rtl-optimization/38583
16348 * params.h (IRA_MAX_CONFLICT_TABLE_SIZE): New macro.
16349
16350 * params.def (ira-max-conflict-table-size): New.
16351
16352 * doc/invoke.texi (ira-max-conflict-table-size): Decribe.
2ba9daa7 16353
311aab06 16354 * ira.h (ira_conflicts_p): New external definition.
2ba9daa7 16355
311aab06
VM
16356 * ira-conflicts.c (build_conflict_bit_table): Do not build too big
16357 table. Report this. Return result of building.
16358 (ira_build_conflicts): Use ira_conflicts_p. Check result of
16359 building conflict table.
16360
301b6a4e 16361 * ira-color.c (fast_allocation): Use num instead of ira_allocnos_num.
311aab06 16362 (ira_color): Use ira_conflicts_p.
2ba9daa7 16363
311aab06
VM
16364 * global.c: Include ira.h.
16365 (pseudo_for_reload_consideration_p, build_insn_chain): Use
16366 ira_conflicts_p.
16367
16368 * Makefile.in (global.o): Add ira.h.
2ba9daa7 16369
311aab06
VM
16370 * ira-build.c (mark_all_loops_for_removal,
16371 propagate_some_info_from_allocno): New.
16372 (remove_unnecessary_allocnos): Call
16373 propagate_some_info_from_allocno.
16374 (remove_low_level_allocnos): New.
16375 (remove_unnecessary_regions): Add parameter. Call
16376 mark_all_loops_for_removal and remove_low_level_allocnos. Pass
16377 parameter to remove_unnecessary_regions.
16378 (ira_build): Remove all regions but root if the conflict table was
16379 not built. Update conflict hard regs for allocnos crossing calls.
16380
16381 * ira.c (ira_conflicts_p): New global.
16382 (ira): Define and use ira_conflicts_p.
16383
16384 * reload1.c (compute_use_by_pseudos, reload, count_pseudo,
16385 count_spilled_pseudo, find_reg, alter_reg, finish_spills,
301b6a4e 16386 emit_input_reload_insns, delete_output_reload): Use ira_conflicts_p.
2ba9daa7 16387
5641785f
BE
163882009-01-06 Ben Elliston <bje@au.ibm.com>
16389
16390 * gengtype-lex.l (YY_NO_INPUT): Define.
16391
e4e5261f
AP
163922009-01-05 Andrew Pinski <andrew_pinski@playstation.sony.com>
16393
16394 PR c/34911
5641785f
BE
16395 * c-common.c (handle_vector_size_attribute): Also reject
16396 BOOLEAN_TYPE types.
e4e5261f 16397
7b10257f
SP
163982009-01-05 Sebastian Pop <sebastian.pop@amd.com>
16399
16400 PR tree-optimization/38492
16401 * graphite.c (rename_map_elt, debug_rename_elt,
301b6a4e
UB
16402 debug_rename_map_1, debug_rename_map, new_rename_map_elt,
16403 rename_map_elt_info, eq_rename_map_elts,
16404 get_new_name_from_old_name, bb_in_sese_p): Moved around.
7b10257f
SP
16405 (sese_find_uses_to_rename_use): Renamed sese_build_livein_liveouts_use.
16406 (sese_find_uses_to_rename_bb): Renamed sese_build_livein_liveouts_bb.
16407 (sese_build_livein_liveouts): New.
16408 (new_sese, free_sese): New.
16409 (new_scop): Call new_sese.
16410 (free_scop): Call free_sese.
16411 (rename_variables_from_edge, rename_phis_end_scop): Removed.
16412 (register_old_new_names): Renamed register_old_and_new_names.
16413 (register_scop_liveout_renames, add_loop_exit_phis,
16414 insert_loop_close_phis, struct igp,
16415 default_liveout_before_guard, add_guard_exit_phis,
16416 insert_guard_phis, copy_renames): New.
16417 (translate_clast): Call insert_loop_close_phis and insert_guard_phis.
16418 (sese_add_exit_phis_edge): Renamed scop_add_exit_phis_edge.
16419 (rewrite_into_sese_closed_ssa): Renamed scop_insert_phis_for_liveouts.
16420 (scop_adjust_phis_for_liveouts): New.
16421 (gloog): Call scop_adjust_phis_for_liveouts.
16422
16423 * graphite.h (struct sese): Documented. Added fields liveout,
301b6a4e 16424 num_ver and livein.
7b10257f
SP
16425 (SESE_LIVEOUT, SESE_LIVEIN, SESE_LIVEIN_VER, SESE_NUM_VER): New.
16426 (new_sese, free_sese, sese_build_livein_liveouts): Declared.
16427 (struct scop): Added field liveout_renames.
16428 (SCOP_LIVEOUT_RENAMES): New.
16429
9761fcc7
HJ
164302009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
16431
16432 PR tree-optimization/38510
16433 * graphite.c (recompute_all_dominators): Call mark_irreducible_loops.
16434 (translate_clast): Call recompute_all_dominators before
16435 graphite_verify.
16436 (gloog): Call recompute_all_dominators before graphite_verify.
16437
164382009-01-05 Harsha Jagasia <harsha.jagasia@amd.com>
c95b2534 16439 Jan Sjodin <jan.sjodin@amd.com>
9761fcc7
HJ
16440
16441 PR tree-optimization/38500
16442 * graphite.c (create_sese_edges): Call fix_loop_structure after
16443 splitting blocks.
16444
c95b2534 164452009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
48a01864
JS
16446
16447 * config.gcc: Add m32r*-*-rtems*.
16448 * config/m32r/rtems.h: New file.
16449
fc0cd180
BE
164502009-01-05 Ben Elliston <bje@au.ibm.com>
16451
16452 * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
16453 (.po.pox): Likewise.
16454 (po/gcc.pot): Likewise.
16455
3106d8e5
DM
164562009-01-04 David S. Miller <davem@davemloft.net>
16457
16458 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
16459 (STARTING_FRAME_OFFSET): Always set to zero.
16460
0009b473
RS
164612009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
16462
16463 * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
16464 * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
16465 fixed-point types, and vectors of the same.
16466
4f24c6d6
RS
164672009-01-04 Richard Sandiford <rdsandiford@googlemail.com>
16468
16469 * config/mips/sync.md (*mb_barrier): Rename to...
16470 (*memory_barrier): ...this.
16471
1df48f5c
JW
164722009-01-04 Jonathan Wakely <jwakely.gcc@gmail.com>
16473
16474 * doc/extend.texi (Function Attributes): Move @cindex after @item
eefe5da0 16475 for 'artificial' and 'flatten'. Fix grammar for 'externally_visible'
1df48f5c
JW
16476 and put in alphabetical order. Fix 'target' name and put in order.
16477 * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
16478 typos.
16479
1a8c13b3
UB
164802009-01-04 Uros Bizjak <ubizjak@gmail.com>
16481
16482 * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
16483 (memory_barrier): Expand as unspec instead of unspec_volatile.
16484 Remove mem:BLK from insn operands. Use Pmode scratch register.
16485 (*memory_barrier): Define as unspec instead of unspec_volatile.
16486 Use (match_dup 0) as input operand.
16487
16488 * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
16489 * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
16490 unspec_volatile. Remove mem:BLK from insn operands. Use Pmode
16491 scratch register. Remove operand 1.
16492 (*stbar): Define as unspec instead of unspec_volatile.
16493 Use (match_dup 0) as input operand, remove (const_int 8).
16494 (*membar): Define as unspec instead of unspec_volatile.
16495 Use (match_dup 0) as input operand, remove input operand 2.
16496
16497 * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
16498 (memory_barrier): Expand as unspec instead of unspec_volatile.
16499 Remove mem:BLK from insn operands. Use Pmode scratch register.
16500 (*memory_barrier): Define as unspec instead of unspec_volatile.
16501 Use (match_dup 0) as input operand.
16502
16503 * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
16504 Remove mem:BLK from insn operands. Use Pmode scratch register.
16505 Set volatile flag on operand 0.
16506 (*memory_barrier): New insn pattern.
16507
16508 * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
16509 insn operands.
16510 (*memory_barrier): Use (match_dup 0) as input operand.
16511
16512 * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
16513 Remove mem:BLK from insn operands. Use Pmode scratch register.
16514 Set volatile flag on operand 0.
301b6a4e 16515 (*mb_internal): New insn pattern.
1a8c13b3
UB
16516
16517 * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
16518
fb0703f7
SB
165192009-01-04 Steven Bosscher <steven@gcc.gnu.org>
16520
16521 PR middle-end/38586
16522 * function.c (struct temp_slot): Move to the section of the file
16523 that deals with temp slots. Remove field 'address'.
16524 (temp_slot_address_table): New hash table of address -> temp slot.
16525 (struct temp_slot_address_entry): New struct, items for the table.
16526 (temp_slot_address_compute_hash, temp_slot_address_hash,
16527 temp_slot_address_eq, insert_temp_slot_address): Support functions
16528 for the new table.
16529 (find_temp_slot_from_address): Rewrite to use the new hash table.
16530 (remove_unused_temp_slot_addresses): Remove addresses of temp
16531 slots that have been made available.
16532 (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
16533 worker function for remove_unused_temp_slot_addresses.
16534 (assign_stack_temp_for_type): Don't clear the temp slot address list.
16535 Add the temp slot address to the address -> temp slot map.
16536 (update_temp_slot_address): Update via insert_temp_slot_address.
16537 (free_temp_slots): Call remove_unused_temp_slot_addresses.
16538 (pop_temp_slots): Likewise.
16539 (init_temp_slots): Allocate the address -> temp slot map, or empty
16540 the map if it is already allocated.
16541 (prepare_function_start): Initialize temp slot processing.
16542
b5a430f3
SB
165432009-01-04 Steven Bosscher <steven@gcc.gnu.org>
16544
16545 PR middle-end/38584
16546 * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
16547 Calculate the size of all stack vars assuming no packing of stack
16548 vars will happen, replacing a quadratic algorithm with a linear one.
16549
5d560619
JJ
165502009-01-03 Jakub Jelinek <jakub@redhat.com>
16551
16552 PR target/38707
16553 * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
16554 can't be used.
16555
953a7caa
DN
165562009-01-03 Diego Novillo <dnovillo@google.com>
16557
16558 * doc/contrib.texi: Update contributions.
16559
5f26a230
JJ
165602009-01-03 Jakub Jelinek <jakub@redhat.com>
16561
493aa551
JJ
16562 PR c++/38705
16563 * builtins.c (fold_builtin_memory_op): Give up if either operand
16564 is volatile. Set srctype or desttype to non-qualified version
16565 of the other type.
16566
5f26a230
JJ
16567 PR c/38700
16568 * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
16569 and FUNCTION_DECLs.
16570
c95b2534 165712009-01-02 Kenneth Zadeck <zadeck@naturalbridge.com>
fafe34f9
KZ
16572
16573 PR rtl-optimization/35805
16574 * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
16575 problem if fast dce is able to remove any instructions.
16576 * dce.c (dce_process_block): Fix dump message.
2ba9daa7 16577
0b355794
MM
165782009-01-02 Mark Mitchell <mark@codesourcery.com>
16579
16580 PR 33649
16581 * tree-ssa-pre.c (compute_antic): Correct loop bounds.
16582
0cf0d02b
JJ
165832009-01-02 Jakub Jelinek <jakub@redhat.com>
16584
16585 PR middle-end/38690
16586 * tree-flow.h (op_code_prio, op_prio): New prototypes.
16587 * tree-pretty-print.c (op_code_prio): New function.
16588 (op_prio): No longer static. Use op_code_prio.
16589 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
16590 Use op_prio and op_code_prio to determine if () should be
16591 printed around operand(s) or not.
16592
16593 * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
16594 dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
16595 dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
16596 dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
16597 pp_character instead of pp_string for single letter printing.
16598
e3606f3b
RS
165992009-01-02 Richard Sandiford <rdsandiford@googlemail.com>
16600
16601 * doc/extend.texi: Fix '#pragma GCC option' typo.
16602
c95b2534 166032009-01-02 Richard Guenther <rguenther@suse.de>
00f39bd5 16604
a5f061dc
RG
16605 * doc/install.texi (--enable-checking): Mention different
16606 default for stage1.
16607 (--enable-stage1-checking): Document.
00f39bd5 16608
26de0bcb
AP
166092009-01-01 Andrew Pinski <pinskia@gmail.com>
16610
16611 PR middle-end/30142
16612 * tree-cfg.c (verify_expr): Add INDIRECT_REF case. Change MODIFY_EXPR
16613 case to be an error.
16614
7a7d8fab
BE
166152009-01-02 Ben Elliston <bje@au.ibm.com>
16616
16617 * config/fp-bit.h (pack_d): Constify argument.
16618 * config/fp-bit.c (makenan): Constify return type. Remove casts.
16619 (isnan): Constify argument.
16620 (isinf): Likewise.
16621 (iszero): Likewise.
16622 (pack_d): Likewise.
16623 (_fpadd_parts): Constify return type.
16624 (_fpmul_parts): Likewise.
16625 (_fpdiv_parts): Likewise.
16626
b295aee2
JJ
166272009-01-01 Jakub Jelinek <jakub@redhat.com>
16628
16629 PR c/36489
16630 * c-typeck.c (add_pending_init): Add IMPLICIT argument. Only
16631 warn about overwriting initializer with side-effects or
16632 -Woverride-init if !IMPLICIT.
16633 (output_init_element): Likewise. Pass IMPLICIT down to
16634 add_pending_init.
16635 (process_init_element): Add IMPLICIT argument. Pass it down
16636 to output_init_element.
16637 (push_init_element, pop_init_level, set_designator): Adjust
16638 process_init_element callers.
16639 (set_nonincremental_init, set_nonincremental_init_from_string):
16640 Adjust add_pending_init callers.
16641 (output_pending_init_elements): Adjust output_init_element callers.
16642 * c-tree.h (process_init_element): Adjust prototype.
16643 * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
16644 process_init_element callers.
ad41bd84
JM
16645
16646\f
16647Copyright (C) 2009 Free Software Foundation, Inc.
16648
16649Copying and distribution of this file, with or without modification,
16650are permitted in any medium without royalty provided the copyright
16651notice and this notice are preserved.