[asan] Fix a thinko leading to a crash
[official-gcc.git] / gcc / ChangeLog
blob25e4f0fe9a99bef323be155bb491f8d9afb96b06
1 2013-02-14  Dodji Seketeli  <dodji@redhat.com>
3         Fix an asan crash
4         * asan.c (instrument_builtin_call):  Really put the length of the
5         second source argument into src1_len.
7 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
9         * asan.c (create_cond_insert_point): Add create_then_fallthru_edge
10         argument.  If it is false, don't create edge from then_bb to
11         fallthru_bb.
12         (insert_if_then_before_iter): Pass true to it.
13         (build_check_stmt): Pass false to it.
14         (transform_statements): Flush hash table only on extended basic
15         block boundaries, rather than at the beginning of every bb.
16         Don't flush hash table on nonfreeing_call_p calls.
17         * tree-flow.h (nonfreeing_call_p): New prototype.
18         * tree-ssa-phiopt.c (nonfreeing_call_p): No longer static.
20 2013-02-13  David S. Miller  <davem@davemloft.net>
22         * expmed.c (expand_shift_1): Only strip scalar integer subregs.
24 2013-02-13  Vladimir Makarov  <vmakarov@redhat.com>
26         PR target/56184
27         * ira.c (max_regno_before_ira): Move from ...
28         (ira): ... here.
29         (fix_reg_equiv_init): Use max_regno_before_ira instead of
30         vec_safe_length.
32 2013-02-13  Jakub Jelinek  <jakub@redhat.com>
34         * config/i386/i386.c (ix86_asan_shadow_offset): Revert last change.
36 2013-02-13  Richard Biener  <rguenther@suse.de>
38         PR lto/56295
39         * gimple-streamer-out.c (output_gimple_stmt): Undo wrapping
40         globals in MEM_REFs.
42 2013-02-13  Richard Biener  <rguenther@suse.de>
44         * loop-init.c (loop_optimizer_init): Clear loop state when
45         re-initializing preserved loops.
46         * loop-unswitch.c (unswitch_single_loop): Return whether
47         we unswitched the loop.  Do not verify loop state here.
48         (unswitch_loops): When we unswitched a loop discover new
49         loops.
51 2013-02-13  Kostya Serebryany  <kcc@google.com>
53         * config/i386/i386.c: Use 0x7fff8000 as asan_shadow_offset on x86_64
54         linux.
55         * sanitizer.def: Rename __asan_init to __asan_init_v1.
57 2013-02-12  Dodji Seketeli  <dodji@redhat.com>
59         Avoid instrumenting duplicated memory access in the same basic block
60         * Makefile.in (asan.o): Add new dependency on hash-table.h
61         * asan.c (struct asan_mem_ref, struct mem_ref_hasher): New types.
62         (asan_mem_ref_init, asan_mem_ref_get_end, get_mem_ref_hash_table)
63         (has_stmt_been_instrumented_p, empty_mem_ref_hash_table)
64         (free_mem_ref_resources, has_mem_ref_been_instrumented)
65         (has_stmt_been_instrumented_p, update_mem_ref_hash_table)
66         (get_mem_ref_of_assignment): New functions.
67         (get_mem_refs_of_builtin_call): Extract from
68         instrument_builtin_call and tweak a little bit to make it fit with
69         the new signature.
70         (instrument_builtin_call): Use the new
71         get_mem_refs_of_builtin_call.  Use gimple_call_builtin_p instead
72         of is_gimple_builtin_call.
73         (instrument_derefs, instrument_mem_region_access): Insert the
74         instrumented memory reference into the hash table.
75         (maybe_instrument_assignment): Renamed instrument_assignment into
76         this, and change it to advance the iterator when instrumentation
77         actually happened and return true in that case.  This makes it
78         homogeneous with maybe_instrument_assignment, and thus give a
79         chance to callers to be more 'regular'.
80         (transform_statements): Clear the memory reference hash table
81         whenever we enter a new BB, when we cross a function call, or when
82         we are done transforming statements.  Use
83         maybe_instrument_assignment instead of instrumentation.  No more
84         need to special case maybe_instrument_assignment and advance the
85         iterator after calling it; it's now handled just like
86         maybe_instrument_call.  Update comment.
88 2013-02-13  Richard Biener  <rguenther@suse.de>
90         * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
91         Fix loop discovery code.
93 2013-02-12  Vladimir Makarov  <vmakarov@redhat.com>
95         PR inline-asm/56148
96         * lra-constraints.c (process_alt_operands): Match early clobber
97         operand with itself.  Check conflicts with earlyclobber only if
98         the operand is not reloaded.  Prefer to reload conflicting operand
99         if earlyclobber and matching operands are the same.
101 2013-02-12  Richard Biener  <rguenther@suse.de>
103         PR lto/56297
104         * lto-streamer-out.c (write_symbol): Do not output symbols
105         for hard register variables.
107 2013-02-12  Georg-Johann Lay  <avr@gjlay.de>
109         PR target/54222
110         * config/avr/avr-dimode.md (umulsidi3, mulsidi3): New expanders.
111         (umulsidi3_insn, mulsidi3_insn): New insns.
113 2013-02-12  Christophe Lyon <christophe.lyon@linaro.org>
115         * config/arm/arm-protos.h (struct cpu_vec_costs): New struct type.
116         (struct tune_params): Add vec_costs field.
117         * config/arm/arm.c (arm_builtin_vectorization_cost)
118         (arm_add_stmt_cost): New functions.
119         (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST)
120         (TARGET_VECTORIZE_ADD_STMT_COST): Define.
121         (arm_default_vec_cost): New struct of type cpu_vec_costs.
122         (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
123         (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune)
124         (arm_cortex_a15_tune, arm_cortex_a5_tune, arm_cortex_a9_tune)
125         (arm_v6m_tune, arm_fa726te_tune): Define new vec_costs field.
127 2013-02-12  Richard Biener  <rguenther@suse.de>
129         PR lto/56295
130         * gimple-streamer-in.c (input_gimple_stmt): Strip MEM_REFs off
131         decls again if possible.
133 2013-02-12  Richard Biener  <rguenther@suse.de>
135         PR middle-end/56288
136         * tree-ssa.c (verify_ssa_name): Fix check, move
137         SSA_NAME_IN_FREE_LIST check up.
139 2013-02-12  Jakub Jelinek  <jakub@redhat.com>
140             Steven Bosscher   <steven@gcc.gnu.org>
142         PR rtl-optimization/56151
143         * optabs.c (add_equal_note): Don't return 0 if target is a MEM,
144         equal to op0 or op1, and last_insn pattern is CODE operation
145         with MEM dest and one of the operands matches that MEM.
147 2013-02-11  Sriraman Tallam  <tmsriramgoogle.com>
149         * doc/extend.texi: Document Function Multiversioning and "default"
150         parameter string to target attribute.
151         * config/i386/i386.c (get_builtin_code_for_version): Return 0 if
152         target attribute parameter is "default".
153         (ix86_compare_version_priority): Remove checks for target attribute.
154         (ix86_mangle_function_version_assembler_name): Change error to sorry.
155         Remove check for target attribute equal to NULL. Add assert.
156         (ix86_generate_version_dispatcher_body): Change error to sorry.
158 2013-02-11  Iain Sandoe  <iain@codesourcery.com>
159             Jack Howarth  <howarth@bromo.med.uc.edu>
160             Patrick Marlier  <patrick.marlier@gmail.com>
162         PR libitm/55693
163         * config/darwin.h: Replace ENDFILE_SPEC with TM_DESTRUCTOR and
164         define ENDFILE_SPEC as TM_DESTRUCTOR.
165         * config/i386/darwin.h (ENDFILE_SPEC): Use TM_DESTRUCTOR.
167 2013-02-11  Alexander Potapenko <glider@google.com>
168             Jack Howarth  <howarth@bromo.med.uc.edu>
169             Jakub Jelinek  <jakub@redhat.com>
171         PR sanitizer/55617
172         * config/darwin.c (cdtor_record): Rename ctor_record.
173         (sort_cdtor_records): Rename sort_ctor_records.
174         (finalize_dtors): New routine to sort destructors by
175         priority before use in assemble_integer.
176         (machopic_asm_out_destructor): Use finalize_dtors if needed.
178 2013-02-11  Uros Bizjak  <ubizjak@gmail.com>
180         PR rtl-optimization/56275
181         * simplify-rtx.c (avoid_constant_pool_reference): Check that
182         offset is non-negative and less than cmode size before
183         calling simplify_subreg.
185 2013-02-11  Richard Biener  <rguenther@suse.de>
187         PR tree-optimization/56264
188         * cfgloop.h (fix_loop_structure): Adjust prototype.
189         * loop-init.c (fix_loop_structure): Return the number of
190         newly discovered loops.
191         * tree-cfgcleanup.c (repair_loop_structures): When new loops
192         are discovered, do a full loop-closed SSA rewrite.
194 2013-02-11  Richard Biener  <rguenther@suse.de>
196         PR tree-optimization/56273
197         * tree-vrp.c (simplify_cond_using_ranges): Disable for the
198         first VRP run.
199         (check_array_ref): Fix missing newline in dumps.
200         (search_for_addr_array): Likewise.
202 2013-02-09  David Edelsohn  <dje.gcc@gmail.com>
204         * config/rs6000/aix61.h (OS_MISSING_ALTIVEC): Undefine.
206 2013-02-09  Jakub Jelinek  <jakub@redhat.com>
208         PR target/56256
209         * config/rs6000/rs6000.h (ASSEMBLER_DIALECT): Define.
211 2013-02-08  Vladimir Makarov  <vmakarov@redhat.com>
213         PR rtl-optimization/56246
214         * lra-constraints.c (simplify_operand_subreg): Try to reuse
215         reload pseudo.
216         * lra.c (lra): Clear lra_optional_reload_pseudos only when all
217         constraints are satisfied.
219 2013-02-08  Jeff Law  <law@redhat.com>
221         PR debug/53948
222         * emit-rtl.c (reg_is_parm_p): New function.
223         * regs.h (reg_is_parm_p): New prototype.
224         * ira-conflicts.c (ira_build_conflicts): Allow parameters in
225         callee-clobbered registers.
227 2013-02-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
229         PR target/56043
230         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass):
231         If there is no implicit builtin declaration, just return NULL.
233 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
235         * config/i386/sse.md (FMAMODEM): New mode iterator.
236         (fma<mode>4, fms<mode>4, fnma<mode>4, fnms<mode>4): Use FMAMODEM
237         mode iterator. Do not use TARGET_SSE_MATH in insn constraint.
239 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
241         * config/i386/gnu-user.h (TARGET_CAN_SPLIT_STACK): Define only
242         when HAVE_GAS_CFI_PERSONALITY_DIRECTIVE is set.
243         * config/i386/gnu-user64.h (TARGET_CAN_SPLIT_STACK): Ditto.
245 2013-02-08  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
247         * config.gcc (microblaze*-linux*): Add TARGET_BIG_ENDIAN_DEFAULT.
248         (microblaze*-*-elf): Likewise.
249         * config/microblaze/linux.h: Add -mbig-endian / -mlittle-endian to
250         LINK_SPEC.
251         * config/microblaze/microblaze-c.c: Add builtin defines for
252         _LITTLE_ENDIAN and _BIG_ENDIAN.
253         * config/microblaze/microblaze.h: Add TARGET_ENDIAN_DEFAULT and
254         add to TARGET_DEFAULT flags.
255         Expand ASM_SPEC and LINK_SPEC.
256         Update BYTES_BIG_ENDIAN and WORDS_BIG_ENDIAN.
257         * config/microblaze/microblaze.md: Update extendsidi2 and
258         movdi_internal instructions to use low-order / high-order reg
259         print_operands.
260         * config/microblaze/microblaze.opt: Add mbig-endian and mlittle-endian
261         options and inversemask / mask of LITTLE_ENDIAN.
262         * config/microblaze/t-microblaze: Expand multilib options to
263         include mlittle-endian (le) and update exceptions patterns.
265 2013-02-08  Jakub Jelinek  <jakub@redhat.com>
267         PR rtl-optimization/56195
268         * lra-constraints.c (get_reload_reg): Don't reuse regs
269         if they have smaller mode than requested, if they have
270         wider mode than requested, try to return a SUBREG.
272         PR tree-optimization/56250
273         * fold-const.c (extract_muldiv_1) <case NEGATE_EXPR>: Don't optimize
274         if type is unsigned and code isn't MULT_EXPR.
276 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
278         PR tree-optimization/56064
279         * fixed-value.c (fixed_from_double_int): Sign/zero extend payload
280         bits according to mode.
281         * fixed-value.h (fixed_from_double_int)
282         (const_fixed_from_double_int): Adjust comments.
284 2013-02-08  Richard Biener  <rguenther@suse.de>
286         PR lto/56231
287         * lto-streamer.h (struct data_in): Remove current_file, current_line
288         and current_col members.
289         * lto-streamer-out.c (lto_output_location): Stream changed bits
290         en-block for efficiency.
291         * lto-streamer-in.c (clear_line_info): Remove.
292         (lto_input_location): Cache current file, line and column
293         globally via local statics.  Read changed bits en-block.
294         (input_function): Do not call clear_line_info.
295         (lto_read_body): Likewise.
296         (lto_input_toplevel_asms): Likewise.
298 2013-02-08  Michael Matz  <matz@suse.de>
300         PR tree-optimization/52448
301         * tree-ssa-phiopt.c (struct name_to_bb): Add phase member.
302         (nt_call_phase): New static.
303         (add_or_mark_expr): Only mark accesses with newer phase than any
304         call seen.
305         (nonfreeing_call_p): New.
306         (nt_init_block): Update nt_call_phase, mark blocks as visited.
307         (nt_fini_block): Keep blocks marked as visited.
308         (get_non_trapping): Initialize nt_call_phase, and reset aux pointer.
310 2013-02-08  Richard Biener  <rguenther@suse.de>
312         * ira.c (ira): Free broken dominator information.
314 2013-02-08  Uros Bizjak  <ubizjak@gmail.com>
316         * config/i386/i386.c (ix86_spill_class): Use INTEGER_CLASS_P macro.
318 2013-02-08  Marek Polacek  <polacek@redhat.com>
320         * cfgloop.c (verify_loop_structure): Add more checking of headers.
322 2013-02-08  Richard Biener  <rguenther@suse.de>
324         PR middle-end/56181
325         * cfgloop.h (flow_loops_find): Adjust.
326         (bb_loop_header_p): Declare.
327         * cfgloop.c (bb_loop_header_p): New function split out from ...
328         (flow_loops_find): ... here.  Adjust function signature,
329         support incremental loop structure update.
330         (verify_loop_structure): Cleanup.  Verify a loop is a loop.
331         * cfgloopmanip.c (fix_loop_structure): Move ...
332         * loop-init.c (fix_loop_structure): ... here.
333         (apply_loop_flags): Split out from ...
334         (loop_optimizer_init): ... here.
335         (fix_loop_structure): Use apply_loop_flags.  Use flow_loops_find
336         in incremental mode, only remove dead loops here.
338 2013-02-08  Georg-Johann Lay  <avr@gjlay.de>
340         PR target/54222
341         * config/avr/avr.md (unspec) <UNSPEC_ROUND>: Add.
342         * config/avr/avr-fixed.md (ALL4QA, ALL124QA): New mode iterators.
343         (round<mode>3, round<mode>3_const): New expanders for fixed-mode.
344         (*round<mode>3.libgcc): New insns for fixed-modes.
345         * config/avr/builtins.def (ABSxx): Use a non-NULL LIBNAME.
346         (ROUNDxx, COUNTLSxx, BITSxx, xxBITS): New DEF_BUILTINs.
347         (ROUNDFX, COUNTLSFX, ABSFX): New DEF_BUILTINs.
348         * config/avr/stdfix.h (absFX, bitsFX, FXbits): Remove inline
349         implementations.  Define to __builtin_avr_absFX,
350         __builtin_avr_bitsFX, __builtin_avr_FXbits, respectively.
351         (roundFX, countlsFX): Define to __builtin_avr_roundFX,
352         __builtin_avr_countlsFX, respectively.
353         * config/avr/avr-c.c (target.h): Include it.
354         (enum avr_builtin_id): New enum.
355         (avr_resolve_overloaded_builtin): New static function.
356         (avr_register_target_pragmas): Use it to set
357         targetm.resolve_overloaded_builtin.
358         * config/avr/avr.c (avr_init_builtins): Supply myriads of local
359         tree nodes used by DEF_BUILTIN.
360         (avr_expand_builtin) <AVR_BUILTIN_ROUNDxx>: Sanity-check them.
361         (avr_fold_builtin) <AVR_BUILTIN_BITSxx>: Fold to VIEW_COVERT_EXPR.
362         <AVR_BUILTIN_xxBITS>: Same.
364 2013-02-08  Richard Biener  <rguenther@suse.de>
366         * cfgloop.c (verify_loop_structure): Properly handle
367         a loop exiting to another loop header.
368         * ira-int.h (ira_loops): Remove.
369         * ira.c (ira_loops): Remove.
370         (ira): Use loop_optimizer_init and loop_optimizer_finalize.
371         (do_reload): Use loop_optimizer_finalize.
372         * ira-build.c (create_loop_tree_nodes): Use get_loops and
373         number_of_loops to access the loop tree.
374         (more_one_region_p): Likewise.
375         (finish_loop_tree_nodes): Likewise.
376         (rebuild_regno_allocno_maps): Likewise.
377         (mark_loops_for_removal): Likewise.
378         (mark_all_loops_for_removal): Likewise.
379         (remove_unnecessary_regions): Likewise.
380         (ira_build): Likewise.
381         * ira-emit.c (setup_entered_from_non_parent_p): Likewise.
383 2013-02-08  Richard Biener  <rguenther@suse.de>
385         * Makefile.in (tree-tailcall.o): Add $(CFGLOOP_H) dependency.
386         * ipa-pure-const.c (analyze_function): Avoid calling
387         mark_irreducible_loops twice.
388         * tree-tailcall.c (tree_optimize_tail_calls_1): Mark loops for fixup.
390 2013-02-07  David S. Miller  <davem@davemloft.net>
392         * dwarf2out.c (based_loc_descr): Perform leaf register remapping
393         on 'reg'.
394         * var-tracking.c (vt_add_function_parameter): Test the presence of
395         HAVE_window_save properly and do not remap argument registers when
396         we have a leaf function.
398 2013-02-07  Uros Bizjak  <ubizjak@gmail.com>
400         PR bootstrap/56227
401         * ggc-page.c (ggc_print_statistics): Use HOST_LONG_LONG_FORMAT
402         instead of "ll".
403         * config/i386/i386.c (ix86_print_operand): Ditto.
405 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
407         * lra-constraints.c (process_alt_operands): Fix recently added comment.
409 2013-02-07  Vladimir Makarov  <vmakarov@redhat.com>
411         PR rtl-optimization/56225
412         * lra-constraints.c (process_alt_operands): Check that reload hard
413         reg can hold value for strict_low_part.
415 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
417         PR debug/56154
418         * dwarf2out.c (dwarf2_debug_hooks): Set end_function hook to
419         dwarf2out_end_function.
420         (in_first_function_p, maybe_at_text_label_p,
421         first_loclabel_num_not_at_text_label): New variables.
422         (dwarf2out_var_location): In the first function find out
423         lowest loclabel_num N where .LVLN is known not to be equal to .Ltext0.
424         (find_empty_loc_ranges_at_text_label, dwarf2out_end_function): New
425         functions.
427 2013-02-07  Eric Botcazou  <ebotcazou@adacore.com>
429         PR rtl-optimization/56178
430         * cse.c (cse_insn): Do not create a REG_EQUAL note if the source is a
431         SUBREG of a register.  Tidy up related block of code.
432         * fwprop.c (forward_propagate_and_simplify): Do not create a REG_EQUAL
433         note if the source is a register or a SUBREG of a register.
435 2013-02-07  Jakub Jelinek  <jakub@redhat.com>
437         PR target/56228
438         * config/rs6000/rs6000.md (ptrm): New mode attr.
439         (call_indirect_aix<ptrsize>, call_indirect_aix<ptrsize>_nor11,
440         call_value_indirect_aix<pttrsize>,
441         call_value_indirect_aix<pttrsize>_nor11): Use <ptrm> instead of
442         m in constraints.
444 2013-02-07  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
446         * collect2.c (main): Set aix64_flag for -G and -bsvr4 too, disable
447         if -bnortl. Convert to strcmp and strncmp.
449 2013-02-07  Alan Modra  <amodra@gmail.com>
451         PR target/54009
452         * config/rs6000/rs6000.c (mem_operand_gpr): Check that LO_SUM
453         addresses won't wrap when offsetting.
454         (rs6000_secondary_reload): Provide secondary reloads needed for
455         wrapping LO_SUM addresses.
457 2013-02-06  Thomas Schwinge  <thomas@codesourcery.com>
459         * config/gnu.h (GNU_USER_TARGET_OS_CPP_BUILTINS): Never define
460         MACH, just __MACH__.
462 2013-02-06  Richard Biener  <rguenther@suse.de>
464         * tracer.c (tracer): Mark loops with LOOPS_NEED_FIXUP
465         instead of calling fix_loop_structure.
467 2013-02-06  Jakub Jelinek  <jakub@redhat.com>
469         PR middle-end/56217
470         * omp-low.c (use_pointer_for_field): Return false if
471         lower_send_shared_vars doesn't generate any copy-out code.
473 2013-02-06  Tom de Vries  <tom@codesourcery.com>
475         PR rtl-optimization/56131
476         * cfgrtl.c (delete_insn): Use NOTE_BASIC_BLOCK instead of BLOCK_FOR_INSN
477         to get the bb of a NOTE_INSN_BASIC_BLOCK.  Handle the case that the bb
478         of the label is NULL.  Add comment.
480 2013-02-05  Jakub Jelinek  <jakub@redhat.com>
482         * tree.h (struct tree_decl_with_vis): Remove thread_local field.
484         PR sanitizer/55374
485         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Define.
486         (STATIC_LIBTSAN_LIBS): Likewise.
487         * gcc.c (ADD_STATIC_LIBTSAN_LIBS, LIBTSAN_EARLY_SPEC): Define.
488         (LIBTSAN_SPEC): Add ADD_STATIC_LIBTSAN_LIBS, if LIBTSAN_EARLY_SPEC
489         is defined, don't add anything else beyond that.
490         (SANITIZER_EARLY_SPEC, SANITIZER_SPEC): Define.
491         (LINK_COMMAND_SPEC): Use them.
493         PR tree-optimization/56205
494         * tree-stdarg.c (check_all_va_list_escapes): Return true if
495         there are any PHI nodes that set non-va_list_escape_vars SSA_NAME
496         and some va_list_escape_vars SSA_NAME appears in some PHI argument.
498 2013-02-05  Richard Biener  <rguenther@suse.de>
500         PR tree-optimization/53342
501         PR tree-optimization/53185
502         * tree-vectorizer.h (vect_check_strided_load): Remove.
503         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do
504         not disallow peeling for vectorized strided loads.
505         (vect_check_strided_load): Make static and simplify.
506         (vect_analyze_data_refs): Adjust.
507         * tree-vect-stmts.c (vectorizable_load): Handle peeled loops
508         correctly when vectorizing strided loads.
510 2013-02-05  Richard Biener  <rguenther@suse.de>
512         * doc/install.texi: Refer to ISL, not PPL.
514 2013-02-05  Jan Hubicka  <jh@suse.cz>
516         PR tree-optimization/55789
517         * params.def (PARAM_EARLY_INLINER_MAX_ITERATIONS): Drop to 1.
519 2013-02-05  Jan Hubicka  <jh@suse.cz>
521         PR tree-optimization/55789
522         * cgraphclones.c (cgraph_remove_node_and_inline_clones): Remove
523         the dead call anyway.
525 2013-02-05  Eric Botcazou  <ebotcazou@adacore.com>
527         PR sanitizer/55374
528         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Add missing guard.
530 2013-02-04  Alexander Potapenko  <glider@google.com>
531             Jack Howarth  <howarth@bromo.med.uc.edu>
532             Jakub Jelinek  <jakub@redhat.com>
534         PR sanitizer/55617
535         * config/darwin.c (sort_ctor_records): Stabilized qsort
536         on constructor priority by using original position.
537         (finalize_ctors): New routine to sort constructors by
538         priority before use in assemble_integer.
539         (machopic_asm_out_constructor): Use finalize_ctors if needed.
541 2013-02-04  Jakub Jelinek  <jakub@redhat.com>
543         PR libstdc++/54314
544         * config/i386/winnt.c (i386_pe_assemble_visibility): Don't warn
545         about visibility on artificial decls.
546         * config/sol2.c (solaris_assemble_visibility): Likewise.
548 2013-02-04  Kai Tietz  <ktietz@redhat.com>
550         PR target/56186
551         * config/i386/i386.c (function_value_ms_64): Add additional valtype
552         argument and improve checking of return-argument types for 16-byte
553         modes.
554         (ix86_function_value_1): Add additional valtype argument on call
555         of function_value_64.
556         (return_in_memory_ms_64): Sync 16-byte sized mode handling with
557         handling infunction_value_64 function.
559 2013-02-04  Matthew Gretton-Dann  <matthew.gretton-dann@linaro.org>
561         * reload.c (subst_reloads): Fix DEBUG_RELOAD build issue.
563 2013-02-04  Richard Biener  <rguenther@suse.de>
565         PR tree-optimization/56188
566         * tree-ssa-structalias.c (label_visit): Consider case with
567         initially non-empty points-to set.
568         (perform_var_substitution): Dump node mapping and clean up.
570 2013-02-04  Richard Guenther  <rguenther@suse.de>
572         PR lto/56168
573         * lto-symtab.c (lto_symtab_merge_decls_1): Make non-builtin
574         node prevail as last resort.
575         (lto_symtab_merge_decls): Remove guard on LTRANS here.
576         (lto_symtab_prevailing_decl): Builtins are their own prevailing decl.
578 2013-02-04  Richard Biener  <rguenther@suse.de>
580         PR tree-optimization/56113
581         * tree-ssa-structalias.c (equiv_class_lookup, equiv_class_add):
582         Merge into ...
583         (equiv_class_lookup_or_add): ... this.
584         (label_visit): Adjust and fix error in previous patch.
585         (perform_var_substitution): Adjust.
587 2013-02-03  Oleg Endo  <olegendo@gcc.gnu.org>
589         * config/sh/divtab.c: Fix formatting and comments throughout the file.
590         * config/sh/sh4-300.md: Likewise.
591         * config/sh/sh4a.md: Likewise.
592         * config/sh/constraints.md: Likewise.
593         * config/sh/sh.md: Likewise.
594         * config/sh/netbsd-elf.h: Likewise.
595         * config/sh/predicates.md: Likewise.
596         * config/sh/sh-protos.h: Likewise.
597         * config/sh/ushmedia.h: Likewise.
598         * config/sh/linux.h: Likewise.
599         * config/sh/sh.c: Likewise.
600         * config/sh/superh.h: Likewise.
601         * config/sh/elf.h: Likewise.
602         * config/sh/sh4.md: Likewise.
603         * config/sh/sh.h: Likewise.
605 2013-02-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
607         * config/pa/constraints.md: Adjust unused letters.  Change "T"
608         constraint to match_test floating_point_store_memory_operand().
609         * config/pa/predicates.md (reg_plus_base_memory_operand): New.
610         (base14_operand): New.
611         (floating_point_store_memory_operand): New.
612         (integer_store_memory_operand): Revise to use base14_operand and
613         reg_plus_base_memory_operand.
614         (move_dest_operand): Allow symbolic_memory_operands.
615         (symbolic_memory_operand): Check for LO_SOM.
616         (symbolic_operand): Change default case to break.
617         * config/pa/pa.md: Remove unamed DFmode and SFmode patterns to force
618         CONST_DOUBLE values to be reloaded by putting them into memory when
619         the destination is a floating point register.
620         (movdf): Remove code to handle CONST_DOUBLE.
621         (movsf): Likewise.
622         (reload_indf_r1): New.
623         (reload_insf_r1): New.
624         Consistently use "Q" and "T" constraints with integer and floating
625         point move instructions, respectively.
626         (movdi): Remove FAIL.
627         Change predicate for source operand unamed DImode move from
628         general_operand to move_src_operand.
629         (umulsidi3): Change predicate for destination operand to
630         register_operand.
631         Likewise for similar unamed patterns.
632         * config/pa/pa-protos.h (pa_legitimize_reload_address): Declare.
633         * config/pa/pa.c (pa_symbolic_expression_p): Remove extra parenthesis.
634         (hppa_legitimize_address): Simplify mask calculation.
635         (pa_emit_move_sequence): Revised handling of secondary reloads from
636         REG+D addresses for floating point loads and stores.  Directly handle
637         loading CONST0_RTX (mode) to a floating point register.
638         (pa_secondary_reload): Handle reloading DF and SFmode constant values
639         to floating point registers.  Don't restrict secondary reloads to
640         floating point registers to integer modes.  Revise some comments and
641         cleanup some code.
642         (TARGET_LEGITIMATE_ADDRESS_P): Define.
643         (pa_legitimate_address_p): New.
644         (pa_legitimize_reload_address): New.
645         * config/pa/pa.h (STRICT_REG_OK_FOR_INDEX_P): New.
646         (STRICT_REG_OK_FOR_BASE_P): New.
647         (GO_IF_LEGITIMATE_ADDRESS): Delete.  Update some related comments.
648         (LEGITIMIZE_RELOAD_ADDRESS): Revise to use pa_legitimize_reload_address.
650 2013-02-03  David Edelsohn  <dje.gcc@gmail.com>
651             Andrew Dixie  <andrewd@gentrack.com>
653         * collect2.c (GCC_CHECK_HDR): Do not scan objects with F_LOADONLY
654         flag set.
656 2013-02-03  Richard Sandiford  <rdsandiford@googlemail.com>
658         * expmed.c (extract_bit_field_1): Pass the full width of the
659         structure to get_best_reg_extraction_insn.
661 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
663         PR target/54601
664         * configure.ac (use_cxa_atexit): Add AIX.
665         * configure: Regenerate.
667         * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtcxa.o.
669 2013-02-01  Jakub Jelinek  <jakub@redhat.com>
671         PR debug/54793
672         * final.c (need_profile_function): New variable.
673         (final_start_function): Drop ATTRIBUTE_UNUSED from first argument.
674         If first of NOTE_INSN_BASIC_BLOCK or NOTE_INSN_FUNCTION_BEG
675         is only preceeded by NOTE_INSN_VAR_LOCATION or NOTE_INSN_DELETED
676         notes, targetm.asm_out.function_prologue doesn't emit anything,
677         HAVE_prologue and profiler should be emitted before prologue,
678         set need_profile_function instead of emitting it.
679         (final_scan_insn): If need_profile_function, emit
680         profile_function on the first NOTE_INSN_BASIC_BLOCK or
681         NOTE_INSN_FUNCTION_BEG note.
683 2013-02-01  Richard Henderson  <rth@redhat.com>
685         * config/rs6000/rs6000.md (smulditi3): New.
686         (umulditi3): New.
688         * config/alpha/alpha.md (umulditi3): New.
690 2013-02-01  David Edelsohn  <dje.gcc@gmail.com>
692         * config/rs6000/xcoff.h (ASM_OUTPUT_ALIGNED_COMMON): Use floor_log2.
693         (ASM_OUTPUT_ALIGNED_LOCAL): New.
695 2013-02-01  Richard Biener  <rguenther@suse.de>
697         PR tree-optimization/56113
698         * tree-ssa-structalias.c (label_visit): Reduce work for
699         single-predecessor nodes.
701 2013-02-01  Eric Botcazou  <ebotcazou@adacore.com>
703         * fold-const.c (make_range_step) <TRUTH_NOT_EXPR>: Bail out if the
704         range isn't testing for zero.
706 2013-01-31  Steven Bosscher  <steven@gcc.gnu.org>
708         PR middle-end/56113
709         * fwprop.c (fwprop_init): Set up loops without CFG modifications.
711 2013-01-31  Hiroyuki Ono  <hiroyuki.ono.jc@renesas.com>
712             Nick Clifton  <nickc@redhat.com>
714         * config/v850/constraints.md (Q): Define as a memory constraint.
715         * config/v850/predicates.md (label_ref_operand): New predicate.
716         (e3v5_shift_operand): New predicate.
717         (ior_operator): New predicate.
718         * config/v850/t-v850: Add e3v5 multilib.
719         * config/v850/v850-protos.h (v850_adjust_insn_length): Prototype.
720         (v850_gen_movdi): Prototype.
721         * config/v850/v850.c: Add support for e3v5 architecture.
722         Rename all uses of TARGET_V850E || TARGET_V850E2_ALL to
723         TARGET_V850E_UP.
724         (construct_save_jarl): Add e3v5 long JARL support.
725         (v850_adjust_insn_length): New function.  Adjust length of call
726         insns when using e3v5 instructions.
727         (v850_gen_movdi): New function: Generate instructions to move a
728         DImode value.
729         * config/v850/v850.h (TARGET_CPU_v850e3v5): Define.
730         (CPP_SPEC): Define __v850e3v5__ as appropriate.
731         (TARGET_USE_FPU): Enable for e3v5.
732         (CONST_OK_FOR_W): New macro.
733         (ADJUST_INSN_LENGTH): Define.
734         * config/v850/v850.md (UNSPEC_LOOP): Define.
735         (attr cpu): Add v850e3v5.
736         Rename all uses of TARGET_V850E2 to TARGET_V850E2V3_UP.
737         (movdi): New pattern.
738         (movdi_internal): New pattern.
739         (cbranchsf4): Conditionalize on TARGET_USE_FPU.
740         (cbranchdf4): Conditionalize on TARGET_USE_FPU.
741         (cstoresf4): Likewise.
742         (cstoredf4): Likewise.
743         (insv): New pattern.
744         (rotlso3_a): New pattern.
745         (rotlsi3_b): New pattern
746         (rotlsi3_v850e3v5): New pattern.
747         (doloop_begin): New pattern.
748         (fix_loop_counter): New pattern.
749         (doloop_end): New pattern.
750         (branch_normal): Add e3v5 long branch support.
751         (branch_invert): Likewise.
752         (branch_z_normal): Likewise.
753         (branch_z_invert): Likewise.
754         (branch_nz_normal): Likewise.
755         (branch_nz_invert): Likewise.
756         (call_internal_short): Add e3v5 register-indirect JARL support.
757         (call_internal_long): Likewise.
758         (call_value_internal_short): Likewise.
759         (call_value_internal_long): Likewise.
760         * config/v850/v850.opt (mv850e3v5, mv850e2v4): New options.
761         (mloop): New option.
762         * config.gcc: Add support for configuring v840e3v5 target.
763         * doc/invoke.texi: Document new v850 specific command line options.
765 2013-01-31  Paul Koning  <ni1d@arrl.net>
767         PR debug/55059
768         PR debug/54508
769         * dwarf2out.c (prune_unused_types_mark): Mark all of parent's
770         children if parent is a class.
771         (prune_unused_types_prune): Don't add DW_AT_declaration.
773 2013-01-31  Richard Biener  <rguenther@suse.de>
775         PR tree-optimization/56157
776         * tree-vect-slp.c (vect_get_slp_defs): More thoroughly try to
777         match up operand with SLP child.
779 2013-01-31  Jason Merrill  <jason@redhat.com>
781         PR debug/54410
782         * dwarf2out.c (gen_struct_or_union_type_die): Always schedule template
783         parameters the first time.
784         (gen_scheduled_generic_parms_dies): Check completeness here.
786 2013-01-31  Richard Biener  <rguenther@suse.de>
788         PR middle-end/53073
789         * common.opt (faggressive-loop-optimizations): New flag,
790         enabled by default.
791         * doc/invoke.texi (faggressive-loop-optimizations): Document.
792         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Guard
793         infer_loop_bounds_from_undefined by it.
795 2013-01-31  Richard Biener  <rguenther@suse.de>
797         PR tree-optimization/56150
798         * tree-ssa-loop-manip.c (find_uses_to_rename_stmt): Do not
799         visit virtual operands.
800         (find_uses_to_rename_bb): Likewise.
802 2013-01-31  Richard Biener  <rguenther@suse.de>
804         PR tree-optimization/56150
805         * tree-ssa-tail-merge.c (gimple_equal_p): Properly handle
806         mixed store non-store stmts.
808 2013-01-30  Jakub Jelinek  <jakub@redhat.com>
810         PR sanitizer/55374
811         * gcc.c (LIBASAN_SPEC): Define just to ADD_STATIC_LIBASAN_LIBS if
812         LIBASAN_EARLY_SPEC is defined.
813         (LIBASAN_EARLY_SPEC): Define to empty string if not already defined.
814         (LINK_COMMAND_SPEC): Add LIBASAN_EARLY_SPEC for -fsanitize=address,
815         before %o.
816         * config/gnu-user.h (LIBASAN_EARLY_SPEC): Define.
818         PR c++/55742
819         * config/i386/i386.c (ix86_valid_target_attribute_inner_p): Diagnose
820         invalid args instead of ICEing on it.
821         (ix86_valid_target_attribute_tree): Return error_mark_node if
822         ix86_valid_target_attribute_inner_p failed.
823         (ix86_valid_target_attribute_p): Return false only if
824         ix86_valid_target_attribute_tree returned error_mark_node.  Allow
825         target("default") attribute.
826         (sorted_attr_string): Change argument from const char * to tree,
827         merge in all target attribute arguments rather than just one.
828         Formatting fix.  Use XNEWVEC instead of xmalloc and XDELETEVEC
829         instead of free.  Avoid using strcat.
830         (ix86_mangle_function_version_assembler_name): Mangle
831         target("default") as if no target attribute is present.  Adjust
832         sorted_attr_string caller.  Avoid leaking memory.  Use XNEWVEC
833         instead of xmalloc and XDELETEVEC instead of free.
834         (ix86_function_versions): Don't return true if one of the decls
835         doesn't have target attribute.  If they don't and one of the decls
836         is DECL_FUNCTION_VERSIONED, report an error.  Adjust
837         sorted_attr_string caller.  Use XDELETEVEC instead of free.
838         (ix86_supports_function_versions): Remove.
839         (make_name): Fix up formatting.
840         (make_dispatcher_decl): Remove resolver_name and its initialization.
841         Avoid leaking memory.
842         (is_function_default_version): Return true if there is
843         target("default") attribute rather than no target attribute at all.
844         (make_resolver_func): Avoid leaking memory.
845         (ix86_generate_version_dispatcher_body): Likewise.
846         (TARGET_OPTION_SUPPORTS_FUNCTION_VERSIONS): Remove.
847         * target.def (supports_function_versions): Remove.
848         * doc/tm.texi.in (SUPPORTS_FUNCTION_VERSIONS): Remove.
849         * doc/tm.texi: Regenerated.
851 2013-01-30  Vladimir Makarov  <vmakarov@redhat.com>
853         PR rtl-optimization/56144
854         * lra-constraints.c (get_reload_reg): Don't reuse reload pseudo
855         for values with side effects.
857 2013-01-30  Richard Biener  <rguenther@suse.de>
859         * sparseset.h (sparseset_bit_p): Use gcc_checking_assert.
860         (sparseset_pop): Likewise.
861         * cfganal.c (compute_idf): Likewise.  Increase work-stack size
862         to be able to use quick_push in the worker loop.
864 2013-01-30  Marek Polacek  <polacek@redhat.com>
866         * cfgcleanup.c (cleanup_cfg): Don't mark affected BBs.
868 2013-01-30  Richard Biener  <rguenther@suse.de>
870         PR lto/56147
871         * lto-symtab.c (lto_symtab_merge_decls_1): Guard DECL_BUILT_IN check.
873 2013-01-30  Georg-Johann Lay  <avr@gjlay.de>
875         PR tree-optimization/56064
876         * fixed-value.c (fixed_from_double_int): New function.
877         * fixed-value.h (fixed_from_double_int): New prototype.
878         (const_fixed_from_double_int): New static inline function.
879         * fold-const.c (native_interpret_fixed): New static function.
880         (native_interpret_expr) <FIXED_POINT_TYPE>: Use it.
881         (can_native_interpret_type_p) <FIXED_POINT_TYPE>: Return true.
882         (native_encode_fixed): New static function.
883         (native_encode_expr) <FIXED_CST>: Use it.
884         (native_interpret_int): Move double_int worker code to...
885         * double-int.c (double_int::from_buffer): ...this new static method.
886         * double-int.h (double_int::from_buffer): Prototype it.
888 2013-01-30  Richard Biener  <rguenther@suse.de>
890         * tree-ssa-structalias.c (final_solutions, final_solutions_obstack):
891         New pointer-map and obstack.
892         (init_alias_vars): Allocate pointer-map and obstack.
893         (delete_points_to_sets): Free them.
894         (find_what_var_points_to): Cache result.
895         (find_what_p_points_to): Adjust for changed interface of
896         find_what_var_points_to.
897         (compute_points_to_sets): Likewise.
898         (ipa_pta_execute): Likewise.
900 2013-01-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
902         * configure.ac (HAVE_AS_SPARC_NOBITS): New test.
903         * configure: Regenerate.
904         * config.in: Regenerate.
905         * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section): Emit
906         #nobits/#progbits if supported.
908 2013-01-29  Oleg Endo  <olegendo@gcc.gnu.org>
910         PR target/56121
911         * config/sh/sh.md (bclr_m2a, bset_m2a, bst_m2a, bld_m2a, bldsign_m2a,
912         bld_reg, *bld_regqi, band_m2a, bandreg_m2a, bor_m2a, borreg_m2a,
913         bxor_m2a, bxorreg_m2a): Add satisfies_constraint_K03 condition.
915 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
917         * config/arm/cortex-a7.md (cortex_a7_neon, cortex_a7_all): Remove.
918         (cortex_a7_idiv): Use cortex_a7_both instead of cortex_a7_all.
920 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
922         * config/arm/arm.c (cortexa7_younger): Return true for TYPE_CALL.
923         * config/arm/cortex-a7.md (cortex_a7_call): Update required units.
925 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
927         * config/arm/arm-protos.h (arm_mac_accumulator_is_result): New
928         declaration.
929         * config/arm/arm.c (arm_mac_accumulator_is_result): New function.
930         * config/arm/cortex-a7.md: New bypasses using
931         arm_mac_accumulator_is_result.
933 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
935         * config/arm/cortex-a7.md (cortex_a7_neon_mul):  New reservation.
936         (cortex_a7_neon_mla): Likewise.
937         (cortex_a7_fpfmad): New reservation.
938         (cortex_a7_fpmacs): Use ffmas and update required units.
939         (cortex_a7_fpmuld): Update required units and latency.
940         (cortex_a7_fpmacd): Likewise.
941         (cortex_a7_fdivs, cortex_a7_fdivd): Likewise.
942         (cortex_a7_neon). Likewise.
943         (bypass) Update participating units.
945 2013-01-29  Greta Yorsh  <Greta.Yorsh@arm.com>
947         * config/arm/arm.md (type): Add ffmas and ffmad to "type" attribute.
948         * config/arm/vfp.md (fma,fmsub,fnmsub,fnmadd): Change type
949         from fmac to ffma.
950         * config/arm/vfp11.md (vfp_farith): Use ffmas.
951         (vfp_fmul): Use ffmad.
952         * config/arm/cortex-r4f.md (cortex_r4_fmacs): Use ffmas.
953         (cortex_r4_fmacd): Use ffmad.
954         * config/arm/cortex-m4-fpu.md (cortex_m4_fmacs): Use ffmas.
955         * config/arm/cortex-a9.md (cortex_a9_fmacs):  Use ffmas.
956         (cortex_a9_fmacd): Use ffmad.
957         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_macs): Use ffmas.
958         (cortex_a8_vfp_macd): Use ffmad.
959         * config/arm/cortex-a5.md (cortex_a5_fpmacs): Use ffmas.
960         (cortex_a5_fpmacd): Use ffmad.
961         * config/arm/cortex-a15-neon.md (cortex_a15_vfp_macs) Use ffmas.
962         (cortex_a15_vfp_macd): Use ffmad.
963         * config/arm/arm1020e.md (v10_fmul): Use ffmas and ffmad.
965 2013-01-29  Jason Merrill  <jason@redhat.com>
967         PR libstdc++/54314
968         * varasm.c (default_assemble_visibility): Don't warn about
969         visibility on artificial decls.
971 2013-01-29  Richard Biener  <rguenther@suse.de>
973         PR tree-optimization/56113
974         * tree-ssa-structalias.c (equiv_class_lookup): Also return
975         the bitmap leader.
976         (label_visit): Free duplicate bitmaps and record the leader instead.
977         (perform_var_substitution): Adjust.
979 2013-01-29  Richard Biener  <rguenther@suse.de>
981         PR tree-optimization/55270
982         * tree-ssa-dom.c (eliminate_degenerate_phis): If we changed
983         the CFG, schedule loops for fixup.
985 2013-01-29  Nick Clifton  <nickc@redhat.com>
987         * config/rl78/rl78.c (rl78_regno_mode_code_ok_for_base_p): Allow
988         SP_REG.
990 2013-01-28  Leif Ekblad  <leif@rdos.net>
992         * config.gcc (i[34567]86-*-rdos*, x86_64-*-rdos*): New targets.
993         * config/i386/i386.h (TARGET_RDOS): New macro.
994         (DEFAULT_LARGE_SECTION_THRESHOLD): New macro.
995         * config/i386/i386.c (ix86_option_override_internal): For 64bit
996         TARGET_RDOS, set ix86_cmodel to CM_MEDIUM_PIC and flag_pic to 1.
997         * config/i386/i386.opt (mlarge-data-threshold): Initialize to
998         DEFAULT_LARGE_SECTION_THRESHOLD.
999         * config/i386/i386.md (R14_REG, R15_REG): New constants.
1000         * config/i386/rdos.h: New file.
1001         * config/i386/rdos64.h: New file.
1003 2013-01-28  Bernd Schmidt  <bernds@codesourcery.com>
1005         PR other/54814
1006         * reload.c (find_valid_class_1): Use in_hard_reg_set_p instead of
1007         TEST_HARD_REG_BIT.
1009 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
1011         PR rtl-optimization/56117
1012         * sched-deps.c (sched_analyze_2) <case PREFETCH>: For use_cselib
1013         call cselib_lookup_from_insn on the MEM before calling
1014         add_insn_mem_dependence.
1016 2013-01-28  Richard Biener  <rguenther@suse.de>
1018         * tree-inline.c (remap_gimple_stmt): Do not assing a BLOCK
1019         to a stmt that didn't have one.
1020         (copy_phis_for_bb): Likewise for PHI arguments.
1021         (copy_debug_stmt): Likewise for debug stmts.
1023 2013-01-28  Richard Biener  <rguenther@suse.de>
1025         PR tree-optimization/56034
1026         * tree-loop-distribution.c (enum partition_kind): Add PKIND_REDUCTION.
1027         (partition_builtin_p): Adjust.
1028         (generate_code_for_partition): Handle PKIND_REDUCTION.  Assert
1029         it is the last partition.
1030         (rdg_flag_uses): Check SSA_NAME_IS_DEFAULT_DEF before looking
1031         up the vertex for the definition.
1032         (classify_partition): Classify whether a partition is a
1033         PKIND_REDUCTION, thus has uses outside of the loop.
1034         (ldist_gen): Inherit PKIND_REDUCTION when merging partitions.
1035         Merge all PKIND_REDUCTION partitions into the last partition.
1036         (tree_loop_distribution): Seed partitions from reductions as well.
1038 2013-01-28  Jakub Jelinek  <jakub@redhat.com>
1040         PR tree-optimization/56125
1041         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Don't optimize
1042         pow(x,c) into sqrt(x) * powi(x, n/2) or
1043         1.0 / (sqrt(x) * powi(x, abs(n/2))) if c is an integer or when
1044         optimizing for size.
1045         Don't optimize pow(x,c) into powi(x, n/3) * powi(cbrt(x), n%3) or
1046         1.0 / (powi(x, abs(n)/3) * powi(cbrt(x), abs(n)%3)) if 2c is an
1047         integer.
1049         PR tree-optimization/56094
1050         * gimplify.c (force_gimple_operand_1): Temporarily set input_location
1051         to UNKNOWN_LOCATION while gimplifying expr.
1053 2013-01-27  Uros Bizjak  <ubizjak@gmail.com>
1055         PR target/56114
1056         * config/i386/i386.md (*movabs<mode>_1): Add square brackets around
1057         operand 0 in movabs insn template for -masm=intel asm alternative.
1058         (*movabs<mode>_2): Ditto for operand 1.
1060 2013-01-26  David Holsgrove  <david.holsgrove@xilinx.com>
1062         PR target/54663
1063         * config.gcc (microblaze*-linux*): Add tmake_file to allow building
1064         of microblaze-c.o
1066 2013-01-26  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1068         * config.gcc (microblaze*-*-*): Rename microblaze*-*-elf, update
1069         tm_file.
1071 2013-01-25  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1073         * config/aarch64/aarch64.c (TARGET_FIXED_CONDITION_CODE_REGS):
1074         Undef to avoid warning.
1076 2013-01-25  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
1078         * configure.ac (gcc_cv_ld_static_dynamic): Define for AIX native ld.
1079         * configure: Regenerate.
1081 2013-01-25  Jakub Jelinek  <jakub@redhat.com>
1083         PR tree-optimization/56098
1084         * tree-ssa-phiopt.c (nt_init_block): Don't call add_or_mark_expr
1085         for stmts with volatile ops.
1086         (cond_store_replacement): Don't optimize if assign has volatile ops.
1087         (cond_if_else_store_replacement_1): Don't optimize if either
1088         then_assign or else_assign have volatile ops.
1089         (hoist_adjacent_loads): Don't optimize if either def1 or def2 have
1090         volatile ops.
1092 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
1094         * doc/invoke.texi (AVR Built-in Macros): Document __XMEGA__.
1096 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
1098         * doc/extend.texi (Example of asm with clobbered asm reg): Fix
1099         missing ':' in asm example.
1101 2013-01-25  Tejas Belagod  <tejas.belagod@arm.com>
1103         * config/aarch64/aarch64-simd-builtins.def: Separate sq<r>dmulh_lane
1104         entries into lane and laneq entries.
1105         * config/aarch64/aarch64-simd.md (aarch64_sq<r>dmulh_lane<mode>):
1106         Remove AdvSIMD scalar modes.
1107         (aarch64_sq<r>dmulh_laneq<mode>): New.
1108         (aarch64_sq<r>dmulh_lane<mode>): New RTL pattern for Scalar AdvSIMD
1109         modes.
1110         * config/aarch64/arm_neon.h: Fix all the vq<r>dmulh_lane* intrinsics'
1111         builtin implementations to relfect changes in RTL in aarch64-simd.md.
1112         * config/aarch64/iterators.md (VCOND): New.
1113         (VCONQ): New.
1115 2013-01-25  Georg-Johann Lay  <avr@gjlay.de>
1117         PR target/54222
1118         * config/avr/builtins.def (DEF_BUILTIN): Add LIBNAME argument.
1119         Add NULL LIBNAME argument to existing definitions.
1120         (ABSHR, ABSR, ABSLR, ABSLLR, ABSHK, ABSK, ABSLK, ABSLLK): New.
1121         * config/avr/avr-c.c (DEF_BUILTIN): Add LIBNAME argument.
1122         * config/avr/avr.c (DEF_BUILTIN): Same.
1123         (avr_init_builtins): Pass down LIBNAME to add_builtin_function.
1124         (avr_expand_builtin): Expand to a vanilla call if a libgcc
1125         implementation is available (DECL_ASSEMBLER_NAME is set).
1126         (avr_fold_absfx): New static function.
1127         (avr_fold_builtin): Use it to handle: AVR_BUILTIN_ABSHR,
1128         AVR_BUILTIN_ABSR, AVR_BUILTIN_ABSLR, AVR_BUILTIN_ABSLLR,
1129         AVR_BUILTIN_ABSHK, AVR_BUILTIN_ABSK, AVR_BUILTIN_ABSLK,
1130         AVR_BUILTIN_ABSLLK.
1131         * config/avr/stdfix.h (abshr, absr, abslr, absllr)
1132         (abshk, absk, abslk, absllk): Provide as static inline functions.
1134 2013-01-25  Marek Polacek  <polacek@redhat.com>
1136         PR tree-optimization/56035
1137         * cfgloopmanip.c (fix_loop_structure): Remove redundant condition.
1139 2012-01-24  Uros Bizjak  <ubizjak@gmail.com>
1141         * config/i386/i386.md (*movti_internal_rex64): Add (o,e) alternative.
1142         (*movtf_internal_rex64): Add (!o,C) alternative
1143         (*movxf_internal_rex64): Ditto.
1144         (*movdf_internal_rex64): Add (?r,C) and (?m,C) alternatives.
1146 2013-01-24  Shenghou Ma  <minux.ma@gmail.com>
1148         * doc/invoke.texi: fix typo.
1149         * doc/objc.texi: fix typo.
1151 2013-01-24  Richard Sandiford  <rdsandiford@googlemail.com>
1153         * config/mips/mips.md (*and<mode>3_mips16): Use the "W" constraint
1154         for the first two alternatives.
1156 2013-01-24  Diego Novillo  <dnovillo@google.com>
1158         * Makefile.in (GGC): Remove.  Replace all instances with ggc-page.o.
1159         (ggc-zone.o): Remove.
1160         * configure.ac: Remove option --with-gc.
1161         * configure: Re-generate.
1162         * doc/install.texi: Remove documentation for --with-gc.
1163         * gengtype.c (write_enum_defn): Remove.  Update all users.
1164         (write_Types_process_field): Remove generation of gt_e_* argument.
1165         (output_type_enum): Remove.  Update all users.
1166         (write_enum_defn): Remove.  Update all users.
1167         (enum alloc_zone): Remove.  Update all users.
1168         (write_splay_tree_allocator_def): Remove generation of gt_e_* argument.
1169         * ggc-common.c (ggc_splay_alloc): Remove first argument.
1170         Update all callers.
1171         (struct ptr_data): Remove field TYPE.  Update all users.
1172         (gt_pch_note_object): Remove argument TYPE.  Update all users.
1173         * ggc-internal.h (ggc_pch_alloc_object): Remove last argument.
1174         Update all users.
1175         * ggc-none.c (ggc_alloc_typed_stat): Remove.
1176         (struct alloc_zone): Remove.
1177         (ggc_internal_alloc_zone_stat): Remove.
1178         (ggc_internal_cleared_alloc_zone_stat): Remove.
1179         * ggc-page.c (ggc_alloc_typed_stat): Remove.
1180         (ggc_pch_count_object): Remove last argument.  Update all users.
1181         (ggc_pch_alloc_object): Remove last argument.  Update all users.
1182         (struct alloc_zone): Remove.
1183         * ggc-zone.c: Remove.
1184         * ggc.h (gt_pch_note_object): Remove last argument.  Update all users.
1185         (struct alloc_zone): Remove.
1186         (ggc_alloc_typed_stat): Remove.
1187         (ggc_alloc_typed): Remove.
1188         (ggc_splay_alloc): Remove first argument.
1189         (rtl_zone): Remove.  Update all users.
1190         (tree_zone): Remove.  Update all users.
1191         (tree_id_zone): Remove.  Update all users.
1192         (ggc_internal_zone_alloc_stat): Remove.  Update all users.
1193         (ggc_internal_zone_cleared_alloc_stat): Remove.  Update all users.
1194         (ggc_internal_zone_vec_alloc_stat): Remove.  Update all users.
1195         * tree-ssanames.c: Remove references to zone allocator in comments.
1197 2013-01-24  Georg-Johann Lay  <avr@gjlay.de>
1199         * config/avr/avr.c (avr_out_fract): Make register numbers that
1200         might be outside of source operand signed.
1202 2013-01-24  Uros Bizjak  <ubizjak@gmail.com>
1204         * config/i386/constraints.md (Yf): New constraint.
1205         * config/i386/i386.md (*movdf_internal_rex64): Use Yf*f instead
1206         of f constraint to conditionaly disable x87 register preferences.
1207         (*movdf_internal): Ditto.
1208         (*movsf_internal): Ditto.
1210 2013-01-24  Steven Bosscher  <steven@gcc.gnu.org>
1212         PR inline-asm/55934
1213         * lra-assigns.c (assign_by_spills): Throw away the pattern of asms
1214         that have operands with impossible constraints.
1215         Add a FIXME for a speed-up opportunity.
1216         * lra-constraints.c (process_alt_operands): Verify that a class
1217         selected from constraints on asms is valid for the operand mode.
1218         (curr_insn_transform): Remove incorrect comment.
1220 2013-01-23  David Edelsohn  <dje.gcc@gmail.com>
1222         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Check that
1223         TOC operand is a valid symbol ref in the constant pool.
1225 2013-01-23  Edgar E. Iglesias  <edgar.iglesias@gmail.com>
1227         * config/microblaze/linux.h: Add TARGET_OS_CPP_BUILTINS
1229 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
1231         PR target/54222
1232         * config/avr/stdfix.h: New file.
1233         * t-avr (stdfix-gcc.h): New rule to build it.
1234         (EXTRA_HEADERS): Set it to install stdfix.h, stdfix-gcc.h.
1236 2013-01-23  Kostya Serebryany  <kcc@google.com>
1238         * config/darwin.h: remove dependency on
1239         CoreFoundation (asan on Mac OS).
1241 2013-01-23  Jakub Jelinek  <jakub@redhat.com>
1243         PR target/49069
1244         * config/arm/arm.md (cbranchdi4, cstoredi4): Use s_register_operand
1245         instead of cmpdi_operand for first comparison operand.
1246         Don't assert that comparison operands aren't both constants.
1248 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
1250         * doc/install.texi (Downloading the Source): Update references to
1251         downloading separate components.
1253 2013-01-22  Jonathan Wakely  <jwakely.gcc@gmail.com>
1255         * doc/extend.texi (__int128): Improve grammar.
1257 2013-01-22  Uros Bizjak  <ubizjak@gmail.com>
1259         PR target/56028
1260         * config/i386/i386.md (*movti_internal_rex64): Change (o,riF)
1261         alternative to (o,r).
1262         (*movdi_internal_rex64): Remove (!o,n) alternative.
1263         (DImode immediate->memory splitter): Remove.
1264         (DImode immediate->memory peephole2): Remove.
1265         (movtf): Enable for TARGET_64BIT || TARGET_SSE.
1266         (*movtf_internal_rex64): Rename from *movtf_internal. Change (!o,F*r)
1267         alternative to (!o,*r).
1268         (*movtf_internal_sse): New pattern.
1269         (*movxf_internal_rex64): New pattern.
1270         (*movxf_internal): Disable for TARGET_64BIT.
1271         (*movdf_internal_rex64): Remove (!o,F) alternative.
1273 2013-01-22  Jakub Jelinek  <jakub@redhat.com>
1275         PR middle-end/56074
1276         * dumpfile.c (dump_loc): Only print loc if LOCATION_LOCUS (loc)
1277         isn't UNKNOWN_LOCATION nor BUILTINS_LOCATION.
1278         * tree-vect-loop-manip.c (find_loop_location): Also ignore
1279         stmt locations where LOCATION_LOCUS of the stmt location is
1280         UNKNOWN_LOCATION or BUILTINS_LOCATION.
1282         PR target/55686
1283         * config/i386/i386.md (UNSPEC_STOS): New.
1284         (strset_singleop, *strsetdi_rex_1, *strsetsi_1, *strsethi_1,
1285         *strsetqi_1): Add UNSPEC_STOS.
1287 2013-01-22  Paolo Carlini  <paolo.carlini@oracle.com>
1289         PR c++/56067
1290         * doc/invoke.texi: Remove left over -Wsynth example.
1292 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
1294         PR tree-optimization/56051
1295         * fold-const.c (fold_binary_loc): Don't fold
1296         X < (cast) (1 << Y) into (X >> Y) != 0 if cast is either
1297         a narrowing conversion, or widening conversion from signed
1298         to unsigned.
1300 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
1302         PR rtl-optimization/56023
1303         * haifa-sched.c (fix_inter_tick): Do not update ticks of instructions,
1304         dependent on debug instruction.
1306 2013-01-21  Martin Jambor  <mjambor@suse.cz>
1308         PR middle-end/56022
1309         * function.c (allocate_struct_function): Call
1310         invoke_set_current_function_hook earlier.
1312 2013-01-21  Jakub Jelinek  <jakub@redhat.com>
1314         * reload1.c (init_reload): Only initialize reload_obstack
1315         during the first call.
1317 2013-01-21  Marek Polacek  <polacek@redhat.com>
1319         * cfgloop.c (verify_loop_structure): Fix up grammar.
1321 2013-01-21  Yi-Hsiu Hsu  <ahsu@marvell.com>
1323         * config/arm/marvell-pj4.md (pj4_shift_conds, pj4_alu_shift,
1324         pj4_alu_shift_conds, pj4_shift): Handle simple_alu_shift.
1326 2013-01-21  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1328         PR target/56058
1329         * config/arm/marvell-pj4.md: Update copyright year.
1330         Fix up use of alu to alu_reg and simple_alu_imm.
1332 2013-01-21  Uros Bizjak  <ubizjak@gmail.com>
1334         * config/i386/i386.md (enabled): Do not disable fma4 for TARGET_FMA.
1336 2013-01-20  Vladimir Makarov  <vmakarov@redhat.com>
1338         PR target/55433
1339         * lra-constraints.c (curr_insn_transform): Don't reuse original
1340         insn for secondary memory move when memory mode should be different.
1342 2013-01-20  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1344         * config/pa/pa.md (atomic_loaddi, atomic_loaddi_1, atomic_storedi,
1345         atomic_storedi_1): New patterns.
1347 2013-01-20  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1349         btver2 pipeline descriptions.
1350         * config/i386/i386.c: Enable CPU_BTVER2 to use btver2 pipeline
1351         descriptions.
1352         * config/i386/i386.md (btver2_decode): New type attributes.
1353         * config/i386/sse.md (btver2_decode, btver2_sse_attr): New
1354         type attributes.
1355         * config/i386/btver2.md: New file describing btver2 pipelines.
1357 2013-01-19  Andrew Pinski  <apinski@cavium.com>
1359         PR tree-optimization/52631
1360         * tree-ssa-sccvn (visit_use): Before looking up the original
1361         statement, try looking up the simplified expression.
1363 2013-01-19  Anthony Green  <green@moxielogic.com>
1365         * config/moxie/moxie.c (moxie_expand_prologue): Set
1366         current_function_static_stack_size.
1368 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
1370         PR tree-optimization/56029
1371         * tree-phinodes.c (reserve_phi_args_for_new_edge): Set
1372         gimple_phi_arg_location for the new arg to UNKNOWN_LOCATION.
1374 2013-01-18  Sharad Singhai  <singhai@google.com>
1376         PR tree-optimization/55995
1377         * dumpfile.c (dump_loc): Print location only if available.
1378         * tree-vectorizer.c (increase_alignment): Intialize vect_location.
1380 2013-01-18  Vladimir Makarov  <vmakarov@redhat.com>
1382         PR target/55433
1383         * lra-constraints.c (curr_insn_transform): Reuse original insn for
1384         secondary memory move.
1385         (inherit_reload_reg): Use rclass instead of cl for
1386         check_secondary_memory_needed_p.
1388 2013-01-18  Jakub Jelinek  <jakub@redhat.com>
1390         PR middle-end/56015
1391         * expr.c (expand_expr_real_2) <case COMPLEX_EXPR>: Handle
1392         the case where writing real complex part of target modifies op1.
1394 2013-01-18  James Greenhalgh  <james.greenhalgh@arm.com>
1396         * config/aarch64/aarch64-simd.md
1397         (aarch64_vcond_internal<mode>): Handle unordered cases.
1398         * config/aarch64/iterators.md (v_cmp_result): New.
1400 2013-01-18  Yi-Hsiu Hsu  <ahsu@marvell.com>
1401             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
1403         * config/arm/marvell-pj4.md: New file.
1404         * config/arm/arm.c (arm_issue_rate): Add marvell_pj4.
1405         * config/arm/arm.md (generic_sched): Add marvell_pj4.
1406         (generic_vfp): Likewise.
1407         * config/arm/arm-cores.def: Add marvell-pj4.
1408         * config/arm/arm-tune.md: Regenerate.
1409         * config/arm/arm-tables.opt: Regenerate.
1410         * config/arm/bpabi.h (BE8_LINK_SPEC): Add marvell_pj4.
1411         * doc/invoke.texi: Document marvell-pj4.
1413 2013-01-18  Tejas Belagod  <tejas.belagod@arm.com>
1415         * config/aarch64/arm_neon.h: Map scalar types to standard types.
1417 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
1419         PR debug/54114
1420         PR debug/54402
1421         PR debug/49888
1422         * var-tracking.c (negative_power_of_two_p): New.
1423         (global_get_addr_cache, local_get_addr_cache): New.
1424         (get_addr_from_global_cache, get_addr_from_local_cache): New.
1425         (vt_canonicalize_addr): Rewrite using the above.  Adjust the
1426         heading comment.
1427         (vt_stack_offset_p): Remove.
1428         (vt_canon_true_dep): Always canonicalize loc's address.
1429         (clobber_overlapping_mems): Make sure we have a MEM.
1430         (local_get_addr_clear_given_value): New.
1431         (val_reset): Clear local cached entries.
1432         (compute_bb_dataflow): Create and release the local cache.
1433         Disable duplicate MEMs clobbering.
1434         (emit_notes_in_bb): Clobber MEMs likewise.
1435         (vt_emit_notes): Create and release the local cache.
1436         (vt_initialize, vt_finalize): Create and release the global
1437         cache, respectively.
1438         * alias.c (rtx_equal_for_memref_p): Compare operands of ENTRY_VALUEs.
1440 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
1442         PR libmudflap/53359
1443         * tree-mudflap.c (mudflap_finish_file): Skip deferred decls
1444         not found in the symtab.
1446 2013-01-18  Alexandre Oliva  <aoliva@redhat.com>
1448         PR debug/56006
1449         PR rtl-optimization/55547
1450         PR rtl-optimization/53827
1451         PR debug/53671
1452         PR debug/49888
1453         * alias.c (offset_overlap_p): New, factored out of...
1454         (memrefs_conflict_p): ... this.  Use absolute sizes.  Retain
1455         the conservative special case for symbolic constants.  Don't
1456         adjust zero sizes on alignment.
1458 2013-01-18  Bernd Schmidt  <bernds@codesourcery.com>
1460         PR rtl-optimization/52573
1461         * regrename.c (build_def_use): Ignore REG_DEAD notes if there is a
1462         REG_UNUSED for the same register.
1464 2013-01-17  Richard Biener  <rguenther@suse.de>
1465             Marek Polacek  <polacek@redhat.com>
1467         PR rtl-optimization/55833
1468         * loop-unswitch.c (unswitch_loops): Move loop verification...
1469         (unswitch_single_loop): ...here.  Call mark_irreducible_loops.
1470         * cfgloopmanip.c (fix_loop_placement): Add IRRED_INVALIDATED parameter.
1471         Set it to true when we're removing a loop from hierarchy tree in
1472         an irreducible region.
1473         (fix_bb_placements): Adjust caller.
1474         (fix_loop_placements): Likewise.
1476 2013-01-17  Georg-Johann Lay  <avr@gjlay.de>
1478         * config/avr/builtins.def (DEF_BUILTIN): Factor out
1479         "__builtin_avr_" from NAME, turn NAME to an uppercase identifier.
1480         Factor out 'CODE_FOR_' from ICODE, use 'nothing' instead of '-1'.
1481         Remove ID.  Adjust comments.
1482         * config/avr/avr-c.c (avr_builtin_name): Remove.
1483         (avr_cpu_cpp_builtins): Use DEF_BUILTIN instead of for-loop.
1484         * config/avr/avr.c (avr_tolower): New static function.
1485         (DEF_BUILTIN): Remove parameter ID.  Prefix ICODE by 'CODE_FOR_'.
1486         Stringify NAME, prefix it with "__builtin_avr_" and lowercase it.
1487         (avr_expand_builtin): Assert insn_code != CODE_FOR_nothing for
1488         default expansion.
1490 2013-01-17  Jan Hubicka  <jh@suse.cz>
1492         PR tree-optimization/55273
1493         * loop-iv.c (iv_number_of_iterations): Consider zero iteration case.
1495 2013-01-17  Uros Bizjak  <ubizjak@gmail.com>
1497         PR target/55981
1498         * config/i386/sync.md (atomic_store<mode>): Always generate SWImode
1499         store through atomic_store<mode>_1.
1500         (atomic_store<mode>_1): Macroize insn using SWI mode iterator.
1502 2013-01-17  Martin Jambor  <mjambor@suse.cz>
1504         PR tree-optimizations/55264
1505         * ipa-inline-transform.c (can_remove_node_now_p_1): Never return true
1506         for virtual methods.
1507         * ipa.c (symtab_remove_unreachable_nodes): Never return true for
1508         virtual methods before inlining is over.
1509         * cgraph.h (cgraph_only_called_directly_or_aliased_p): Return false for
1510         virtual functions.
1511         * cgraphclones.c (cgraph_create_virtual_clone): Mark clones as
1512         non-virtual.
1514 2013-01-16  Vladimir Makarov  <vmakarov@redhat.com>
1516         PR rtl-optimization/56005
1517         * sched-deps.c (sched_analyze_2): Check deps->readonly for adding
1518         pending reads for prefetch.
1520 2013-01-16  Ian Bolton  <ian.bolton@arm.com>
1522         * config/aarch64/aarch64.md
1523         (*cstoresi_neg_uxtw): New pattern.
1524         (*cmovsi_insn_uxtw): New pattern.
1525         (*<optab>si3_uxtw): New pattern.
1526         (*<LOGICAL:optab>_<SHIFT:optab>si3_uxtw): New pattern.
1527         (*<optab>si3_insn_uxtw): New pattern.
1528         (*bswapsi2_uxtw): New pattern.
1530 2013-01-16  Richard Biener  <rguenther@suse.de>
1532         * tree-inline.c (tree_function_versioning): Remove set but
1533         never used variable.
1535 2013-01-16  Richard Biener  <rguenther@suse.de>
1537         PR tree-optimization/55964
1538         * tree-flow.h (rename_variables_in_loop): Remove.
1539         (rename_variables_in_bb): Likewise.
1540         * tree-loop-distribution.c (update_phis_for_loop_copy): Remove.
1541         (copy_loop_before): Adjust and delete update-ssa status.
1542         * tree-vect-loop-manip.c (rename_variables_in_bb): Make static.
1543         (rename_variables_in_bb): Likewise.  Properly walk over predecessors.
1544         (rename_variables_in_loop): Remove.
1545         (slpeel_update_phis_for_duplicate_loop): Likewise.
1546         (slpeel_tree_duplicate_loop_to_edge_cfg): Handle nested loops,
1547         use available cfg machinery instead of duplicating it.
1548         Update PHI nodes and perform poor-mans SSA update here.
1549         (slpeel_tree_peel_loop_to_edge): Adjust.
1551 2013-01-16  Richard Biener  <rguenther@suse.de>
1553         PR tree-optimization/54767
1554         PR tree-optimization/53465
1555         * tree-vrp.c (vrp_meet_1): Revert original fix for PR53465.
1556         (vrp_visit_phi_node): For PHI arguments coming via backedges
1557         drop all symbolical range information.
1558         (execute_vrp): Compute backedges.
1560 2013-01-16  Richard Biener  <rguenther@suse.de>
1562         * doc/install.texi: Update CLooG and ISL requirements to
1563         0.18.0 and 0.11.1.
1565 2013-01-16  Christian Bruel  <christian.bruel@st.com>
1567         PR target/55301
1568         * config/sh/sh.c (sh_expand_prologue): Postpone new_stack mem symbol.
1569         (broken_move): Handle UNSPECV_SP_SWITCH_B.
1570         * config/sh/sh.md (sp_switch_1): Use set (reg:SI SP_REG).
1572 2013-01-16  DJ Delorie  <dj@redhat.com>
1574         * config/sh/sh.md (UNSPECV_SP_SWITCH_B): New.
1575         (UNSPECV_SP_SWITCH_E): New.
1576         (sp_switch_1): Change to an unspec.
1577         (sp_switch_2): Change to an unspec.  Don't use post-inc when we
1578         replace $r15.
1580 2013-01-16  Uros Bizjak  <ubizjak@gmail.com>
1582         * emit-rtl.c (need_atomic_barrier_p): Mask memory model argument
1583         with MEMMODEL_MASK before comparing with MEMMODEL_* memory types.
1584         * optabs.c (maybe_emit_sync_lock_test_and_set): Ditto.
1585         (expand_mem_thread_fence): Ditto.
1586         (expand_mem_signal_fence): Ditto.
1587         (expand_atomic_load): Ditto.
1588         (expand_atomic_store): Ditto.
1590 2013-01-16  Alexandre Oliva  <aoliva@redhat.com>
1592         PR rtl-optimization/55547
1593         PR rtl-optimization/53827
1594         PR debug/53671
1595         PR debug/49888
1596         * alias.c (memrefs_conflict_p): Set sizes to negative after
1597         AND adjustments.
1599 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1601         PR target/55940
1602         * function.c (thread_prologue_and_epilogue_insns): Always
1603         add crtl->drap_reg to set_up_by_prologue.set, even if
1604         stack_realign_drap is false.
1606 2013-01-15  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
1608         * config/vax/vax.md (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3,
1609         and<mode>3, *and<mode>_const_int, ior<mode>3, xor<mode>3, ashrsi3,
1610         *call): Fix indention.
1612 2013-01-15  Tom de Vries  <tom@codesourcery.com>
1614         PR target/55876
1615         * optabs.c (widen_operand): Use gen_lowpart instead of gen_rtx_SUBREG.
1616         Update comment.
1618 2013-01-15  Vladimir Makarov  <vmakarov@redhat.com>
1620         PR rtl-optimization/55153
1621         * sched-deps.c (sched_analyze_2): Add pending reads for prefetch.
1623 2013-01-15  Martin Jambor  <mjambor@suse.cz>
1625         PR tree-optimization/55920
1626         * tree-sra.c (analyze_access_subtree): Do not mark non-removable
1627         accesses as grp_to_be_debug_replaced.
1629 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1631         PR tree-optimization/55920
1632         * tree-sra.c (sra_modify_assign): If for lacc->grp_to_be_debug_replaced
1633         there is non-useless type conversion needed from debug rhs to lhs,
1634         use build_debug_ref_for_model and/or VIEW_CONVERT_EXPR.
1636 2013-01-15  Joseph Myers  <joseph@codesourcery.com>
1637             Mikael Pettersson  <mikpe@it.uu.se>
1639         PR target/43961
1640         * config/arm/arm.h (ADDR_VEC_ALIGN): Align SImode jump tables for
1641         Thumb.
1642         (ASM_OUTPUT_CASE_LABEL): Remove.
1643         (ASM_OUTPUT_BEFORE_CASE_LABEL): Define to empty.
1644         * final.c (shorten_branches): Update alignment of labels before
1645         jump tables if CASE_VECTOR_SHORTEN_MODE.
1647 2013-01-15  Richard Biener  <rguenther@suse.de>
1649         PR bootstrap/55961
1650         * system.h: Do not include gmp.h for building host tools.
1652 2013-01-15  Richard Biener  <rguenther@suse.de>
1654         PR middle-end/55882
1655         * emit-rtl.c (set_mem_attributes_minus_bitpos): Correctly
1656         account for bitpos when computing alignment.
1658 2013-01-15  Vladimir Yakovlev  <vladimir.b.yakovlev@intel.com>
1660         * config/i386/i386-c.c (ix86_target_macros_internal): New case.
1661         (ix86_target_macros_internal): Likewise.
1663         * config/i386/i386.c (m_CORE2I7): Removed.
1664         (m_CORE_HASWELL): New macro.
1665         (m_CORE_ALL): Likewise.
1666         (initial_ix86_tune_features): m_CORE2I7 is replaced by m_CORE_ALL.
1667         (initial_ix86_arch_features): Likewise.
1668         (processor_target_table): Initializations for Core avx2.
1669         (cpu_names): New names "core-avx2".
1670         (ix86_option_override_internal): Changed PROCESSOR_COREI7 by
1671         PROCESSOR_CORE_HASWELL.
1672         (ix86_issue_rate): New case.
1673         (ia32_multipass_dfa_lookahead): Likewise.
1674         (ix86_sched_init_global): Likewise.
1676         * config/i386/i386.h (TARGET_HASWELL): New macro.
1677         (target_cpu_default): New TARGET_CPU_DEFAULT_haswell.
1678         (processor_type): New PROCESSOR_HASWELL.
1680 2013-01-15  Jakub Jelinek  <jakub@redhat.com>
1682         PR tree-optimization/55955
1683         * tree-vect-loop.c (vectorizable_reduction): Give up early on
1684         *SHIFT_EXPR and *ROTATE_EXPR codes.
1686         PR tree-optimization/48766
1687         * opts.c (common_handle_option): For -fwrapv disable -ftrapv, for
1688         -ftrapv disable -fwrapv.
1690 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1692         PR target/55974
1693         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Define __FLASH
1694         etc. to 1 and not to __flash.
1695         Use LL suffix for __INT24_MAX__ with -mint8.
1696         Use ULL suffix for __UINT24_MAX__ with -mint8.
1698 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1700         * config/avr/avr-arch.h
1701         (struct base_arch_s): Use typedef avr_arch_t instead.
1702         (struct arch_info_s): Use typedef avr_arch_info_t instead.
1703         (struct mcu_type_s): Use typedef avr_mcu_t instead.
1704         * config/avr/avr.c: Same.
1705         * config/avr/avr-devices.c: Same.
1706         * config/avr/driver-avr.c: Same.
1707         * config/avr/gen-avr-mmcu-texi.c: Same.
1708         * config/avr/avr-mcus.def: Adjust comment.
1710 2013-01-14  Tejas Belagod  <tejas.belagod@arm.com>
1712         * config/aarch64/aarch64-simd.md (*aarch64_simd_ld1r<mode>): New.
1713         * config/aarch64/iterators.md (VALLDI): New.
1715 2013-01-14  Uros Bizjak  <ubizjak@gmail.com>
1716             Andi Kleen  <ak@linux.intel.com>
1718         PR target/55948
1719         * config/i386/sync.md (atomic_store<mode>_1): New pattern.
1720         (atomic_store<mode>): Call atomic_store<mode>_1 for IX86_HLE_RELEASE
1721         memmodel flag.
1723 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1725         * config/avr/avr-stdint.h: Remove trailing blanks.
1726         * config/avr/avr-log.h: Same.
1727         * config/avr/avr-arch.h: Same.
1728         * config/avr/avr-devices.c: Same.
1729         * config/avr/avr-dimode.md: Same.
1730         * config/avr/predicates.md: Same.
1731         * config/avr/avr-c.c: Same.  And fix typo.
1733         * config/avr/avr-protos.h: Same.  And:
1734         (function_arg_regno_p): Rename to avr_function_arg_regno_p.
1735         (init_cumulative_args): Rename to avr_init_cumulative_args.
1736         (expand_prologue): Rename to avr_expand_prologue.
1737         (expand_epilogue): Rename to avr_expand_epilogue.
1738         (adjust_insn_length): Rename to avr_adjust_insn_length.
1739         (notice_update_cc): Rename to avr_notice_update_cc.
1740         (final_prescan_insn): Rename to avr_final_prescan_insn.
1741         * config/avr/avr.c: Same.
1742         * config/avr/avr.h: Same.
1743         * config/avr/avr.md: Remove trailing blanks.
1744         (prologue): Use avr_expand_prologue.
1745         (epilogue, sibcall_epilogue): Use avr_expand_epilogue.
1747 2013-01-14  Richard Biener  <rguenther@suse.de>
1749         * tree-cfg.c (verify_expr_location, verify_expr_location_1,
1750         verify_location, collect_subblocks): New functions.
1751         (verify_gimple_in_cfg): Verify that locations only reference
1752         BLOCKs in the functions BLOCK tree.
1754 2013-01-14  Richard Biener  <rguenther@suse.de>
1756         * tree-cfgcleanup.c (remove_forwarder_block): Unshare propagated
1757         PHI argument.
1758         * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Properly
1759         unshare reference.
1760         (insert_out_of_ssa_copy_on_edge): Likewise.
1761         (rewrite_close_phi_out_of_ssa): Likewise.
1762         * tree-ssa.c (insert_debug_temp_for_var_def): Properly unshare
1763         debug expressions.
1764         * tree-ssa-pre.c (insert_into_preds_of_block): Properly unshare
1765         propagated constants.
1766         * tree-cfg.c (tree_node_can_be_shared): Handled component-refs
1767         can not be shared.
1769 2013-01-14  Georg-Johann Lay  <avr@gjlay.de>
1771         * config/avr/avr-modes.def: Add GPL copyright notice.
1773 2013-01-13  Uros Bizjak  <ubizjak@gmail.com>
1775         * config/i386/sync.md (mem_thread_fence): Mask operands[0] with
1776         MEMMODEL_MASK to determine memory model.
1777         (atomic_store<mode>): Ditto from operands[2].
1778         * config/i386/i386.c (ix86_memmodel_check): Declare "strong" as bool.
1780 2013-01-13  Jakub Jelinek  <jakub@redhat.com>
1782         PR fortran/55935
1783         * gimple-fold.c (get_symbol_constant_value): Call unshare_expr.
1784         (fold_gimple_assign): Don't call unshare_expr here.
1785         (fold_ctor_reference): Call unshare_expr.
1787 2013-01-13  Terry Guo  <terry.guo@arm.com>
1789         * Makefile.in (s-mlib): New argument MULTILIB_REUSE.
1790         * doc/fragments.texi: Document MULTILIB_REUSE.
1791         * gcc.c (multilib_reuse): New internal spec.
1792         (set_multilib_dir): Also search multilib from multilib_reuse.
1793         * genmultilib (tmpmultilib3): Refactor code.
1794         (tmpmultilib4): Ditto.
1795         (multilib_reuse): New multilib argument.
1797 2013-01-13  Richard Sandiford  <rdsandiford@googlemail.com>
1799         * Makefile.in: Update copyright.
1801 2013-01-12  Tom de Vries  <tom@codesourcery.com>
1803         PR middle-end/55890
1804         * calls.c (expand_call): Check if arg_nr is valid.
1806 2013-01-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
1808         * doc/extend.texi (X86 Built-in Functions): Add whitespace in
1809         __builtin_ia32_paddb256 and __builtin_ia32_pavgb256
1810         documentation.  Add missing '__' in front of
1811         __builtin_ia32_packssdw256.
1813 2013-01-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1815         PR target/55719
1816         * config/s390/s390.c (s390_preferred_reload_class): Do not return
1817         NO_REGS for larl operands.
1818         (s390_reload_larl_operand): Use s390_load_address instead of
1819         emit_move_insn.
1821 2013-01-11  Richard Biener  <rguenther@suse.de>
1823         * tree-cfg.c (verify_node_sharing_1): Split out from ...
1824         (verify_node_sharing): ... here.
1825         (verify_gimple_in_cfg): Use verify_node_sharing_1 for walk_tree.
1827 2013-01-11  Eric Botcazou  <ebotcazou@adacore.com>
1829         * configure.ac (Tree checking): Set TREECHECKING to yes if enabled.
1830         Substitute TREECHECKING.
1831         * configure: Regenerate.
1832         * Makefile.in (TREECHECKING): New.
1834 2013-01-11  Richard Guenther  <rguenther@suse.de>
1836         PR tree-optimization/44061
1837         * tree-vrp.c (extract_range_basic): Compute zero as
1838         value-range for __builtin_constant_p of function parameters.
1840 2013-01-10  Richard Sandiford  <rdsandiford@googlemail.com>
1842         Update copyright years.
1844 2013-01-10  Vladimir Makarov  <vmakarov@redhat.com>
1846         PR rtl-optimization/55672
1847         * lra-eliminations.c (mark_not_eliminable): Permit addition with
1848         const to be eliminable.
1850 2013-01-10  David Edelsohn  <dje.gcc@gmail.com>
1852         * configure.ac (HAVE_AS_TLS): Add check for powerpc-ibm-aix.
1853         * configure: Regenerate.
1855 2013-01-10  Richard Biener  <rguenther@suse.de>
1857         * builtins.c (expand_builtin_init_trampoline): Use set_mem_attributes.
1859 2013-01-10  Richard Biener  <rguenther@suse.de>
1861         PR bootstrap/55792
1862         * tree-into-ssa.c (rewrite_add_phi_arguments): Do not set
1863         locations for virtual PHI arguments.
1864         (rewrite_update_phi_arguments): Likewise.
1866 2013-01-10  Joel Sherrill  <joel.sherrill@OARcorp.com>
1868         * config/v850/rtems.h (ASM_SPEC): Pass -m8byte-align and -mgcc-abi
1869         on to assembler.
1871 2013-01-10  Jakub Jelinek  <jakub@redhat.com>
1873         PR tree-optimization/55921
1874         * tree-complex.c (expand_complex_asm): New function.
1875         (expand_complex_operations_1): Call it for GIMPLE_ASM.
1877 2013-01-10  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1879         PR target/55718
1880         * config/s390/s390.c (s390_symref_operand_p)
1881         (s390_loadrelative_operand_p): Merge the two functions.
1882         (s390_check_qrst_address, print_operand_address): Add parameters
1883         to s390_loadrelative_operand_p invokation.
1884         (s390_check_symref_alignment): Use s390_loadrelative_operand_p.
1885         (s390_reload_larl_operand, s390_secondary_reload): Use
1886         s390_loadrelative_operand_p instead of s390_symref_operand_p.
1887         (legitimize_pic_address): Handle @GOTENT and @PLT + addend.
1889 2013-01-09  Mike Stump  <mikestump@comcast.net>
1891         * dse.c (record_store): Remove unnecessary assert.
1893 2013-01-09  Jan Hubicka  <jh@suse.cz>
1895         PR tree-optimization/55569
1896         * cfgloopmanip.c (scale_loop_profile): Make ITERATION_BOUND gcov_type.
1897         * cfgloop.h (scale_loop_profile): Likewise.
1899 2013-01-09  Jan Hubicka  <jh@suse.cz>
1901         PR lto/45375
1902         * ipa-inline.c (ipa_inline): Remove extern inlines and virtual
1903         functions.
1904         * cgraphclones.c (cgraph_clone_node): Cpoy also LTO file data.
1906 2013-01-09  Richard Sandiford  <rdsandiford@googlemail.com>
1908         PR middle-end/55114
1909         * expr.h (maybe_emit_group_store): Declare.
1910         * expr.c (maybe_emit_group_store): New function.
1911         * builtins.c (expand_builtin_int_roundingfn): Call it.
1912         (expand_builtin_int_roundingfn_2): Likewise.
1914 2013-01-09  Vladimir Makarov  <vmakarov@redhat.com>
1916         PR rtl-optimization/55829
1917         * lra-constraints.c (match_reload): Add code for absent output.
1918         (curr_insn_transform): Add code for reloads of matched inputs
1919         without output.
1921 2013-01-09  Uros Bizjak  <ubizjak@gmail.com>
1923         * config/i386/sse.md (*vec_interleave_highv2df): Change mode
1924         attribute of movddup insn to DF.
1925         (*vec_interleave_lowv2df): Ditto.
1926         (vec_dupv2df): Ditto.
1928 2013-01-09  Jan Hubicka  <jh@suse.cz>
1930         PR tree-optimiation/55875
1931         * tree-ssa-loop-niter.c (number_of_iterations_cond): Add
1932         EVERY_ITERATION parameter.
1933         (number_of_iterations_exit): Check if exit is executed every iteration.
1934         (idx_infer_loop_bounds): Similarly here.
1935         (n_of_executions_at_most): Simplify
1936         to only test for cases where statement is dominated by the
1937         particular bound; handle correctly the "postdominance" test.
1938         (scev_probably_wraps_p): Use max loop iterations info
1939         as a global bound first.
1941 2013-01-09  Nguyen Duy Dat  <dat.nguyen.yn@rvc.renesas.com>
1942             Nick Clifton  <nickc@redhat.com>
1944         * config/v850/v850.md (cbranchsf4): New pattern.
1945         (cstoresf4): New pattern.
1946         (cbranchdf4): New pattern.
1947         (cstoredf4): New pattern.
1948         (movsicc): Disallow floating point comparisons.
1949         (cmpsf_le_insn): Fix order of operators.
1950         (cmpsf_lt_insn): Likewise.
1951         (cmpsf_eq_insn): Likewise.
1952         (cmpdf_le_insn): Likewise.
1953         (cmpdf_lt_insn): Likewise.
1954         (cmpdf_eq_insn): Likewise.
1955         (cmpsf_ge_insn): Use LE comparison.
1956         (cmpdf_ge_insn): Likewise.
1957         (cmpsf_gt_insn): Use LT comparison.
1958         (cmpdf_gt_insn): Likewise.
1959         (cmpsf_ne_insn): Delete pattern.
1960         (cmpdf_ne_insn): Delete pattern.
1961         * config/v850/v850.c (v850_gen_float_compare): Use
1962         gen_cmpdf_eq_insn for NE comparison.
1963         (v850_float_z_comparison_operator)
1964         (v850_float_nz_comparison_operator): Move from here ...
1965         * config/v850/predicates.md: ... to here.  Move GT and GE
1966         comparisons into v850_float_z_comparison_operator.
1967         * config/v850/v850-protos.h (v850_float_z_comparison_operator):
1968         Delete prototype.
1969         (v850_float_nz_comparison_operator): Likewise.
1971 2013-01-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1973         * config/pa/pa.c (pa_emit_move_sequence): Replace calls to gen_insv
1974         with calls to gen_insvsi/gen_insvdi.
1976 2013-01-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
1978         * config/i386/i386.c (initial_ix86_tune_features): Set up
1979         X86_TUNE_AVX128_OPTIMAL for m_BTVER2.
1981 2013-01-09  Steven Bosscher  <steven@gcc.gnu.org>
1982             Jakub Jelinek  <jakub@redhat.com>
1984         PR tree-optimization/48189
1985         * predict.c (predict_loops): If max is 0, don't call compare_tree_int.
1986         If nitercst is 0, don't predict the exit edge.
1988 2013-01-08  Naveen H.S  <Naveen.Hurugalawadi@caviumnetworks.com>
1990         * config/aarch64/aarch64.c (aarch64_print_operand): Replace %r
1991         in asm_fprintf with reg_names.
1992         (aarch64_print_operand_address): Likewise.
1993         (aarch64_return_addr): Likewise.
1994         * config/aarch64/aarch64.h (ASM_FPRINTF_EXTENSIONS): Remove.
1996 2013-01-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1998         * config/pa/pa.h (VAL_U6_BITS_P): Define.
1999         (INT_U6_BITS): Likewise.
2000         * config/pa/predicates.md (uint6_operand): New predicate.
2001         (shift5_operand, shift6_operand): Likewise.
2002         * config/pa/pa.md (lshrsi3, rotrsi3): Use shift5_operand instead of
2003         arith32_operand.
2004         (lshrdi3): Use shift6_operand.
2005         (shrpsi4, shrpdi4): New insn patterns.
2006         (extzv): Delete expander.
2007         (extzvsi, extzvdi): New expanders.  Use uint5_operand and uint6_operand
2008         predicates in unamed zero extract patterns.  Tighten common constraint.
2009         (extv): Delete expander.
2010         (extvsi, extvdi): New expanders.  Use uint5_operand and uint6_operand
2011         predicates in unamed sign extract patterns.  Tighten common constraint.
2012         (insv): Delete expander.
2013         (insvsi, insvdi): New expanders.  Use uint5_operand and uint6_operand
2014         predicates in unamed insert patterns.  Tighten common constraint.
2015         Change uint32_operand predicate to uint6_operand predicate in unamed
2016         DImode pattern to insert constant values of type 1...1xxxx.
2018 2013-01-04  Jan Hubicka  <jh@suse.cz>
2020         PR tree-optimization/55823
2021         * ipa-prop.c (update_indirect_edges_after_inlining): Fix ordering
2022         issue.
2024 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
2025             Uros Bizjak  <ubizjak@gmail.com>
2027         PR rtl-optimization/55845
2028         * df-problems.c (can_move_insns_across): Stop scanning at
2029         volatile_insn_p source instruction or give up if
2030         across_from .. across_to range contains any volatile_insn_p
2031         instructions.
2033 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
2035         * config/aarch64/aarch64-simd.md (vec_init<mode>): New.
2036         * config/aarch64/aarch64-protos.h (aarch64_expand_vector_init):
2037         Declare.
2038         * config/aarch64/aarch64.c (aarch64_simd_dup_constant,
2039         aarch64_simd_make_constant, aarch64_expand_vector_init): New.
2041 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
2043         PR fortran/55341
2044         * asan.c (asan_clear_shadow): New function.
2045         (asan_emit_stack_protection): Use it.
2047 2013-01-08  Tejas Belagod  <tejas.belagod@arm.com>
2049         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_<su>mult_lo_<mode>,
2050         aarch64_simd_vec_<su>mult_hi_<mode>): Separate instruction and operand
2051         with tab instead of space.
2053 2013-01-08  Nick Clifton  <nickc@redhat.com>
2055         * config/rl78/rl78.c (rl78_expand_prologue): Always select
2056         register bank 0 at the start of an interrupt handler.
2057         * config/rl78/rl78.md (mulsi3_g13): Correct values for MDBL and
2058         MDBH registers.
2060 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
2062         * config/aarch64/aarch64-simd.md
2063         (aarch64_simd_bsl<mode>_internal): Add floating-point modes.
2064         (aarch64_simd_bsl): Likewise.
2065         (aarch64_vcond_internal<mode>): Likewise.
2066         (vcond<mode><mode>): Likewise.
2067         (aarch64_cm<cmp><mode>): Fix constraints, add new modes.
2068         * config/aarch64/iterators.md (V_cmp_result): Add V2DF.
2070 2013-01-08  James Greenhalgh  <james.greenhalgh@arm.com>
2072         * config/aarch64/aarch64-builtins.c
2073         (aarch64_builtin_vectorized_function): Handle sqrt, sqrtf.
2075 2013-01-08  Martin Jambor  <mjambor@suse.cz>
2077         PR debug/55579
2078         * tree-sra.c (analyze_access_subtree): Return true also after
2079         potentially creating a debug-only replacement.
2081 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
2083         PR middle-end/55890
2084         * tree-ssa-ccp.c (evaluate_stmt): Use gimple_call_builtin_p.
2086         PR tree-optimization/54120
2087         * tree-vrp.c (range_fits_type_p): Don't allow
2088         src_precision < precision from signed vr to unsigned_p
2089         if vr->min or vr->max is negative.
2090         (simplify_float_conversion_using_ranges): Test can_float_p
2091         against CODE_FOR_nothing.
2093 2013-01-08  Jakub Jelinek  <jakub@redhat.com>
2094             Richard Biener  <rguenther@suse.de>
2096         PR middle-end/55851
2097         * fold-const.c (int_binop_types_match_p): Allow all INTEGRAL_TYPE_P
2098         types instead of just INTEGER_TYPE types.
2100 2013-01-07  Mark Kettenis  <kettenis@openbsd.org>
2102         * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE, LIBGCC2_TF_CEXT,
2103         TF_SIZE): Define.
2105 2013-01-07  Steve Ellcey  <sellcey@mips.com>
2107         PR target/42661
2108         * config/mips/mips.opt: Change mad to mmad to match documentation.
2110 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2112         PR target/55897
2113         * doc/extend.texi (AVR Named Address Spaces): __memx goes into
2114         .progmemx.data now.
2116 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2118         PR target/55897
2119         * config/avr/avr.h (ADDR_SPACE_COUNT): New enum.
2120         (avr_addrspace_t): Add .section_name field.
2121         * config/avr/avr.c (progmem_section): Use ADDR_SPACE_COUNT as
2122         array size.
2123         (avr_addrspace): Same.  Initialize .section_name.  Remove last
2124         NULL entry.  Put __memx into .progmemx.data.
2125         (progmem_section_prefix): Remove.
2126         (avr_asm_init_sections): No need to initialize progmem_section.
2127         (avr_asm_named_section): Use avr_addrspace[].section_name to get
2128         section name prefix.
2129         (avr_asm_select_section): Ditto.  And use get_unnamed_section to
2130         retrieve the progmem section.
2131         * avr-c.c (avr_cpu_cpp_builtins): Use ADDR_SPACE_COUNT as loop
2132         boundary to run over avr_addrspace[].
2133         (avr_register_target_pragmas): Ditto.
2135 2013-01-06  Jakub Jelinek  <jakub@redhat.com>
2137         * varasm.c (output_constant_def_contents): For asan_protect_global
2138         protected strings, adjust DECL_ALIGN if needed, before testing for
2139         anchored symbols.
2140         (place_block_symbol): Adjust size for asan protected STRING_CSTs if
2141         TREE_CONSTANT_POOL_ADDRESS_P.  Increase alignment for asan protected
2142         normal decls.
2143         (output_object_block): For asan protected decls, emit asan padding
2144         after their contents.
2145         * asan.c (asan_protect_global): Don't check TREE_ASM_WRITTEN here.
2146         (asan_finish_file): Test it here instead.
2148 2013-01-07  Nick Clifton  <nickc@redhat.com>
2149             Matthias Klose  <doko@debian.org>
2150             Doug Kwan  <dougkwan@google.com>
2151             H.J. Lu  <hongjiu.lu@intel.com>
2153         PR driver/55470
2154         * collect2.c (main): Support -fuse-ld=bfd and -fuse-ld=gold.
2156         * common.opt: Add fuse-ld=bfd and fuse-ld=gold.
2158         * gcc.c (LINK_COMMAND_SPEC): Pass -fuse-ld=* to collect2.
2160         * opts.c (comman_handle_option): Ignore -fuse-ld=bfd and -fuse-ld=gold.
2162         * doc/invoke.texi: Document -fuse-ld=bfd and -fuse-ld=gold.
2164 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2166         PR target/54461
2167         * doc/install.texi (Cross-Compiler-Specific Options): Document
2168         --with-avrlibc.
2170 2013-01-07  Tejas Belagod  <tejas.belagod@arm.com>
2172         * config/aarch64/arm_neon.h (vmovn_high_is16, vmovn_high_s32,
2173         vmovn_high_s64, vmovn_high_u16, vmovn_high_u32, vmovn_high_u64,
2174         vqmovn_high_s16, vqmovn_high_s32, vqmovn_high_s64, vqmovn_high_u16,
2175         vqmovn_high_u32, vqmovn_high_u64, vqmovun_high_s16, vqmovun_high_s32,
2176         vqmovun_high_s64): Fix source operand number and update copyright.
2178 2013-01-07  Richard Biener  <rguenther@suse.de>
2180         PR middle-end/55890
2181         * gimple.h (gimple_call_builtin_p): New overload.
2182         * gimple.c (validate_call): New function.
2183         (gimple_call_builtin_p): Likewise.
2184         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
2185         Use gimple_call_builtin_p.
2186         (find_func_clobbers): Likewise.
2187         * tree-ssa-strlen.c (adjust_last_stmt): Likewise.
2188         (strlen_optimize_stmt): Likewise.
2190 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
2192         * config/aarch64/arm_neon.h (vld1_dup_*): Make argument const.
2193         (vld1q_dup_*): Likewise.
2194         (vld1_*): Likewise.
2195         (vld1q_*): Likewise.
2196         (vld1_lane_*): Likewise.
2197         (vld1q_lane_*): Likewise.
2199 2013-01-07  Richard Biener  <rguenther@suse.de>
2201         * lto-streamer.h (LTO_minor_version): Bump to 2.
2203 2013-01-07  James Greenhalgh  <james.greenhalgh@arm.com>
2205         * config/aarch64/aarch64-protos.h
2206         (aarch64_const_double_zero_rtx_p): Rename to...
2207         (aarch64_float_const_zero_rtx_p): ...this.
2208         (aarch64_float_const_representable_p): New.
2209         (aarch64_output_simd_mov_immediate): Likewise.
2210         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>): Refactor
2211         move immediate case.
2212         * config/aarch64/aarch64.c
2213         (aarch64_const_double_zero_rtx_p): Rename to...
2214         (aarch64_float_const_zero_rtx_p): ...this.
2215         (aarch64_print_operand): Allow printing of new constants.
2216         (aarch64_valid_floating_const): New.
2217         (aarch64_legitimate_constant_p): Check for valid floating-point
2218         constants.
2219         (aarch64_simd_valid_immediate): Likewise.
2220         (aarch64_vect_float_const_representable_p): New.
2221         (aarch64_float_const_representable_p): Likewise.
2222         (aarch64_simd_imm_zero_p): Also allow for floating-point 0.0.
2223         (aarch64_output_simd_mov_immediate): New.
2224         * config/aarch64/aarch64.md (*movsf_aarch64): Add new alternative.
2225         (*movdf_aarch64): Likewise.
2226         * config/aarch64/constraints.md (Ufc): New.
2227         (Y): call aarch64_float_const_zero_rtx.
2228         * config/aarch64/predicates.md (aarch64_fp_compare_operand): New.
2230 2013-01-07  Richard Biener  <rguenther@suse.de>
2232         PR tree-optimization/55888
2233         PR tree-optimization/55862
2234         * tree-ssa-pre.c (phi_translate_1): Revert previous change.
2235         (valid_in_sets): Check if a NAME has a leader in AVAIL_OUT,
2236         not if it is contained therein.
2238 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2240         * config/avr/t-avr: Typo.
2242 2013-01-07  Georg-Johann Lay  <avr@gjlay.de>
2244         PR55243
2245         * config/avr/t-avr: Don't automatically rebuild
2246         $(srcdir)/config/avr/t-multilib
2247         $(srcdir)/config/avr/avr-tables.opt
2248         $(srcdir)/doc/avr-mmcu.texi
2249         (avr-mcus): New phony target to build them on request.
2250         (s-avr-mlib, s-avr-mmcu-texi): Remove.
2251         * avr/avr-mcus.def: Adjust comments.
2253 2013-01-07  Uros Bizjak  <ubizjak@gmail.com>
2255         * config/i386/i386.c (DEFAULT_PCC_STRUCT_RETURN): Remove.
2257 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
2259         * file-find.c, file-find.h, realmpfr.c: Add FSF as copyright holder.
2261 2013-01-06  Richard Sandiford  <rdsandiford@googlemail.com>
2263         * config/tilepro/gen-mul-tables.cc: Put copyright on one line.
2265 2013-01-05  David Edelsohn  <dje.gcc@gmail.com>
2267         * config/rs6000/aix53.h (LIB_SPEC): Add -lpthreads when compiling
2268         to generate profiling.
2269         * config/rs6000/aix64.h (LIB_SPEC): Same.
2271 2013-01-04  Andrew Pinski  <apinski@cavium.com>
2273         * config/aarch64/aarch64.c (aarch64_fixed_condition_code_regs):
2274         New function.
2275         (TARGET_FIXED_CONDITION_CODE_REGS): Define.
2277 2013-01-04  Uros Bizjak  <ubizjak@gmail.com>
2279         * config/i386/i386.c (ix86_legitimize_address): Call convert_to_mode
2280         unconditionally.
2281         (ix86_expand_move): Ditto.
2282         (ix86_zero_extend_to_Pmode): Ditto.
2283         (ix86_expand_call): Ditto.
2284         (ix86_expand_special_args_builtin): Ditto.
2285         (ix86_expand_builtin): Ditto.
2287 2013-01-04  Richard Biener  <rguenther@suse.de>
2289         PR tree-optimization/55862
2290         * tree-ssa-pre.c (phi_translate_1): Valueize SSA names after
2291         translating them through PHI nodes.
2293 2013-01-04  Martin Jambor  <mjambor@suse.cz>
2295         PR tree-optimization/55755
2296         * tree-sra.c (sra_modify_assign): Do not check that an access has no
2297         children when trying to avoid producing a VIEW_CONVERT_EXPR.
2299 2013-01-04  Marek Polacek  <polacek@redhat.com>
2301         PR middle-end/55859
2302         * opts.c (default_options_optimization): Clarify error message.
2304 2013-01-04  Richard Biener  <rguenther@suse.de>
2306         PR middle-end/55863
2307         * fold-const.c (split_tree): Undo -X - 1 to ~X folding for
2308         reassociation.
2310 2013-01-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2312         PR target/53789
2313         * config/pa/pa.md (movsi): Revert previous change.
2314         * config/pa/pa.c (pa_legitimate_constant_p): Reject all TLS symbol
2315         references.
2317 2013-01-03  Richard Henderson  <rth@redhat.com>
2319         * config/i386/i386.c (ix86_expand_move): Always assign to op1
2320         after eliminating TLS symbols.
2322 2013-01-03  Marc Glisse  <marc.glisse@inria.fr>
2324         PR bootstrap/50167
2325         * graphite-interchange.c (pdr_stride_in_loop): Use gmp_fprintf.
2326         * graphite-poly.c (debug_gmp_value): Likewise.
2328 2013-01-03  Uros Bizjak  <ubizjak@gmail.com>
2330         PR target/55712
2331         * config/i386/i386-c.c (ix86_target_macros_internal): Depending on
2332         selected code model, define __code_mode_small__, __code_model_medium__,
2333         __code_model_large__, __code_model_32__ or __code_model_kernel__.
2334         * config/i386/cpuid.h (__cpuid, __cpuid_count) [__i386__]: Prefix
2335         xchg temporary register with %k.  Declare temporary register as
2336         early clobbered.
2337         [__x86_64__]: For medium and large code models, preserve %rbx register.
2339 2013-01-03  Richard Biener  <rguenther@suse.de>
2341         * tree-data-ref.c (dump_conflict_function): Use less vertical spacing.
2342         (dump_subscript): Adjust.
2343         (finalize_ddr_dependent): Do not dump redundant info.
2344         (analyze_siv_subscript): Adjust.
2345         (subscript_dependence_tester): Likewise.
2346         (compute_affine_dependence): Likewise.
2348 2013-01-03  Richard Biener  <rguenther@suse.de>
2350         Revert
2351         2013-01-03  Richard Biener  <rguenther@suse.de>
2353         PR tree-optimization/55857
2354         * tree-vect-stmts.c (vectorizable_load): Do not setup
2355         re-alignment for invariant loads.
2357         2013-01-02  Richard Biener  <rguenther@suse.de>
2359         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
2360         invariant load do not generate a vector load from the scalar location.
2362 2013-01-03  Richard Biener  <rguenther@suse.de>
2364         * tree-vect-loop.c (vect_analyze_loop_form): Clarify reason
2365         for not vectorizing.
2366         * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
2367         not build INDIRECT_REFs, call get_name once only.
2368         (vect_create_data_ref_ptr): Likewise.  Dump base object kind
2369         based on DR_BASE_OBJECT, not DR_BASE_ADDRESS.
2371 2013-01-03  Richard Biener  <rguenther@suse.de>
2373         PR tree-optimization/55857
2374         * tree-vect-stmts.c (vectorizable_load): Do not setup
2375         re-alignment for invariant loads.
2377 2013-01-03  Richard Biener  <rguenther@suse.de>
2379         PR lto/55848
2380         * lto-symtab.c (lto_symtab_merge_decls_1): As last resort, always
2381         prefer a built-in decl.
2383 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
2385         * gcc.c (process_command): Update copyright notice dates.
2386         * gcov.c (print_version): Likewise.
2387         * gcov-dump.c (print_version): Likewise.
2389         PR rtl-optimization/55838
2390         * loop-iv.c (iv_number_of_iterations): Call lowpart_subreg on
2391         iv0.step, iv1.step and step.
2393 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
2394             Marc Glisse  <marc.glisse@inria.fr>
2396         PR tree-optimization/55832
2397         * fold-const.c (fold_binary_loc): For ABS_EXPR<x> >= 0 and
2398         ABS_EXPR<x> < 0 folding use constant_boolean_node instead of
2399         integer_{one,zero}_node.
2401 2013-01-03  Jakub Jelinek  <jakub@redhat.com>
2403         PR debug/54402
2404         * params.def (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE): New param.
2405         * var-tracking.c (reverse_op): Don't add reverse ops to
2406         VALUEs that have already
2407         PARAM_VALUE (PARAM_MAX_VARTRACK_REVERSE_OP_SIZE) or longer locs list.
2409 2013-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
2411         * doc/contrib.texi: Note years as release manager for Mark Mitchell.
2413 2013-01-02  Teresa Johnson  <tejohnson@google.com>
2415         * dumpfile.c (dump_loc): Print filename with location.
2416         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Use
2417         new location_t parameter to emit complete unroll message with
2418         new dump framework.
2419         (canonicalize_loop_induction_variables): Compute loops location
2420         and pass to try_unroll_loop_completely.
2421         * loop-unroll.c (report_unroll_peel): New function.
2422         (peel_loops_completely): Use new dump format with location
2423         for main dumpfile message, and invoke report_unroll_peel on success.
2424         (decide_unrolling_and_peeling): Ditto.
2425         (decide_peel_once_rolling): Remove old dumpfile message subsumed
2426         by report_unroll_peel.
2427         (decide_peel_completely): Ditto.
2428         (decide_unroll_constant_iterations): Ditto.
2429         (decide_unroll_runtime_iterations): Ditto.
2430         (decide_peel_simple): Ditto.
2431         (decide_unroll_stupid): Ditto.
2432         * cfgloop.c (get_loop_location): New function.
2433         * cfgloop.h (get_loop_location): Declare.
2435 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
2437         * config/i386/i386.c (fold_builtin_cpu): Remove unnecessary checks for
2438         NULL.
2440 2013-01-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2442         PR middle-end/55198
2443         * expr.c (expand_expr_real_1): Don't use bitfield extraction for non
2444         BLKmode objects when EXPAND_MEMORY is specified.
2446 2013-01-02  Sriraman Tallam  <tmsriram@google.com>
2448         * config/i386/i386.c (ix86_get_function_versions_dispatcher): Fix bug
2449         in loop predicate.
2450         (fold_builtin_cpu): Do not share cpu model decls across statements.
2452 2013-01-02  Jason Merrill  <jason@redhat.com>
2454         PR c++/55804
2455         * tree.c (build_array_type_1): Revert earlier change.
2457 2013-01-02  Yufeng Zhang  <yufeng.zhang@arm.com>
2459         * config/aarch64/aarch64-cores.def: Add entries for "cortex-a53" and
2460         "cortex-a57".
2461         * config/aarch64/aarch64-tune.md: Re-generate.
2463 2013-01-02  Richard Biener  <rguenther@suse.de>
2465         * tree-vect-stmts.c (vectorizable_load): When vectorizing an
2466         invariant load do not generate a vector load from the scalar location.
2468 2013-01-02  Richard Biener  <rguenther@suse.de>
2470         PR bootstrap/55784
2471         * configure.ac: Add $GMPINC to CFLAGS/CXXFLAGS.
2472         * configure: Regenerate.
2474 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2476         * builtins.c (expand_builtin_mathfn, expand_builtin_mathfn_2)
2477         (expand_builtin_mathfn_ternary, expand_builtin_mathfn_3)
2478         (expand_builtin_int_roundingfn_2): Keep the original target around
2479         for the fallback case.
2481 2013-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
2483         * tree-vrp.c (range_fits_type_p): Require the MSB of the double_int
2484         to be clear for sign changes.
2486 2013-01-01  Jan Hubicka  <jh@suse.cz>
2488         * ipa-inline-analysis.c: Fix formatting.
2490 2013-01-01  Jakub Jelinek  <jakub@redhat.com>
2492         PR tree-optimization/55831
2493         * tree-vect-loop.c (get_initial_def_for_induction): Use
2494         gsi_after_labels instead of gsi_start_bb.
2496 Copyright (C) 2013 Free Software Foundation, Inc.
2498 Copying and distribution of this file, with or without modification,
2499 are permitted in any medium without royalty provided the copyright
2500 notice and this notice are preserved.