1 2010-06-10 Jakub Jelinek <jakub@redhat.com>
3 * c-family/c-cppbuiltin.c: Include cpp-id-data.h.
4 (lazy_hex_fp_values, lazy_hex_fp_value_count): New variables.
5 (lazy_hex_fp_value): New function.
6 (builtin_define_with_hex_fp_value): Provide definitions lazily.
7 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
9 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
12 * tree-if-conv.c (bb_predicate_s): New struct.
13 (bb_predicate_p): New.
14 (bb_has_predicate): New.
16 (set_bb_predicate): New.
17 (bb_predicate_gimplified_stmts): New.
18 (set_bb_predicate_gimplified_stmts): New.
19 (add_bb_predicate_gimplified_stmts): New.
20 (init_bb_predicate): New.
21 (free_bb_predicate): New.
22 (is_predicated): Use bb_predicate.
23 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
24 (predicate_bbs): Same. Gimplify the condition of the basic blocks
25 before processing their successors.
26 (clean_predicate_lists): Removed.
27 (find_phi_replacement_condition): Use bb_predicate.
28 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
30 (insert_gimplified_predicates): New.
31 (combine_blocks): Call insert_gimplified_predicates.
32 (tree_if_conversion): Call free_bb_predicate instead of
33 clean_predicate_lists.
35 2010-10-11 Paul Brook <paul@codesourcery.com>
37 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
38 * config/arm/arm.c (all_architectures): Change v7e-m default to
40 * config/arm/arm-cores.def: Add cortex-m4.
41 * config/arm/arm-tune.md: Regenerate.
43 2010-06-11 Jan Hubicka <jh@suse.cz>
45 * ipa-pure-const.c (special_builtlin_state): New function.
46 (check_call): Use it instead of special casign BUILT_IN_RETURN.
47 (propagate_pure_const): Use it.
49 2010-06-11 Jan Hubicka <jh@suse.cz>
51 * df-problems.c (df_live_scratch): Convert to bitmap_head.
52 (df_live_alloc): Initialize df_live_scratch when initializing
54 (df_live_transfer_function): Update uses of df_live_scratch.
55 (df_live_free): Free problem_data; clear df_live_scratch before
56 releasing the obstack.
57 (df_md_free): Free problem data.
59 2010-06-11 Jan Hubicka <jh@suse.cz>
61 * doc/invoke.texi (Wsuggest-attribute): Document.
62 (Wmissing-noreturn): Remove.
63 * ipa-pure-const.c (warn_function_noreturn): New function.
64 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
65 warn_missing_noreturn.
66 * common.opt (Wsuggest-attribute=noreturn): New.
67 * tree-flow.h (warn_function_noreturn): Declare.
68 * tree-cfg.c (execute_warn_function_noreturn): Use
69 warn_function_noreturn.
70 (gate_warn_function_noreturn): New.
71 (pass_warn_function_noreturn): Update.
73 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
75 * c-typeck.c (handle_warn_cast_qual): Add loc
76 parameter. Improve warning message.
77 (build_c_cast): Pass location to handle_warn_cast_qual.
79 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
81 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
82 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
84 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
86 2010-06-10 Dodji Seketeli <dodji@redhat.com>
89 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
92 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
94 * system.h (helper_const_non_const_cast): New inline for
96 (CONST_CAST2): For gcc version <= 4.0 use
97 new helper to do const/non-const casting.
99 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
101 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
102 * Makefile.in (OBJS-common): Include insn-enums.o.
103 (insn-enums.o): New rule.
104 (simple_generated_c): Add insn-enums.c.
105 (build/genenums.o): New rule.
106 (genprogmd): Add "enums".
107 * genconstants.c (print_enum_type): Declare a C string array
109 * genenums.c: New file.
110 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
111 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
112 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
114 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
116 * doc/md.texi (define_enum_attr): Document.
117 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
118 * read-md.h (lookup_enum_type): Declare.
119 * read-md.c (lookup_enum_type): New function.
120 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
121 * genattrtab.c (attr_desc): Add an enum_name field.
122 (evaluate_eq_attr): Take the associated attribute as argument.
123 Get the enum prefix from the enum_name field, if defined.
124 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
125 (simplify_test_exp): Pass attr to evaluate_eq_attr.
126 (add_attr_value): New function, split out from...
127 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
128 (write_test_expr): Pass attr to evaluate_eq_attr.
129 (write_attr_get): Use the enum_name as the enum tag, if defined.
130 (write_attr_valueq): Use the enum_name as a prefix, if defined.
131 (find_attr): Initialize enum_name.
132 (main): Handle DEFINE_ENUM_ATTR.
133 * gensupport.c (process_rtx): Likewise.
134 * config/mips/mips.h (mips_tune_attr): Delete.
135 * config/mips/mips.md (cpu): Use define_attr_enum.
137 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
139 * doc/md.texi (define_c_enum, define_enum): Document.
140 * read-md.h (md_constant): Add a parent_enum field.
141 (enum_value, enum_type): New structures.
142 (upcase_string, traverse_enum_types): Declare.
143 * read-md.c (enum_types): New variable.
144 (upcase_string, add_constant): New functions.
145 (handle_constants): Don't create the hash table here.
147 (traverse_md_constants): Don't check for a null md_constants.
148 (decimal_string, handle_enum, traverse_enum_types): New functions.
149 (read_md_files): Initialize md_constants and md_enums.
150 * genconstants.c (print_md_constant): Ignore info argument.
151 Only print constants that belong to no enum.
152 (print_enum_type): New function.
153 (main): Don't pass stdout to print_md_constant. Call print_enum_type
154 for each defined enum type.
155 * config/mips/mips.md (processor): New define_enum.
156 (unspec): New define_c_enum.
157 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
158 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
159 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
160 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
161 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
162 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
163 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
164 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
165 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
166 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
167 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
168 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
169 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
170 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
171 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
172 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
173 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
174 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
175 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
176 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
177 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
178 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
179 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
180 (UNSPEC_RDDSP): Move to mips-dsp.md.
181 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
182 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
183 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
184 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
185 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
186 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
187 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
188 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
189 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
190 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
191 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
192 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
193 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
194 Moved to mips-dspr2.md.
195 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
196 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
197 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
198 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Moved from mips-ps-3d.md.
199 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
200 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
201 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
202 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
203 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
204 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
205 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD, UNSPEC_LOONGSON_PSADBH)
206 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
207 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
208 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
209 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
210 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
211 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
212 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved to mips-loongson2ef.md.
213 (cpu): Update comment.
214 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
215 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
216 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
217 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
218 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ)
219 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
220 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
221 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
222 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
223 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
224 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD, UNSPEC_LOONGSON_PSADBH)
225 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
226 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
227 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
228 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
229 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
230 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
231 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
232 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
233 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
234 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
235 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
236 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
237 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
238 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
239 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
240 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
241 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
242 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
243 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
244 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
245 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
246 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
247 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
248 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
249 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
250 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
251 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
252 (UNSPEC_RDDSP): Moved from mips.md.
253 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
254 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
255 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
256 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
257 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
258 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
259 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
260 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
261 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
262 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
263 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
264 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
265 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
266 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
267 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
268 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
269 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
270 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
271 (UNSPEC_SCC): Moved from mips.md.
272 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
273 "processor_type" to "processor".
274 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
275 * config/mips/mips.h (processor_type): Delete.
276 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
277 "processor_type" to "processor".
279 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
281 * configure.ac (tm_include_list): Add insn-constants.h.
282 * configure: Regenerate.
283 * Makefile.in (GTM_H): Move insn-constants.h here from...
285 * mkconfig.sh: Remove special handling for insn-constants.h.
287 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
289 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
290 (BUILD_MD): ...this new variable.
291 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
292 that include the old contents of simple_generated_h and
294 (simple_generated_h, simple_generated_c): Include them. Add
296 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
297 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
298 Remove these dependencies from the main rule and include
299 insn-conditions.md in the command line only if it appears
300 in the dependency list.
301 (insn-constants.h, s-constants): Delete.
302 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
304 (build/genmddeps.o): Likewise.
305 (genprogrtl): New variable that contains everything from genprogmd
306 except mddeps and constants.
307 (genprogmd): Redefine in terms of genprogrtl. Make these programs
308 depend on $(BUILD_MD)
309 (genprog): New variable. Make these programs depend on
311 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
312 (main): Use read_md_files instead of init_rtx_reader_args.
313 * genconstants.c: As for genmddeps.c.
314 * read-md.h (read_skip_construct): Declare.
315 * read-md.c (read_skip_construct): New function.
316 (handle_file): Allow a null handle_directive, skipping the
318 (parse_include): Update the comment accordingly.
320 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
322 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
323 * genmddeps.c: Include read-md.h.
324 (main): Call init_rtx_reader_args instead of init_md_reader_args.
325 * genattr.c (main): Likewise.
326 * genattrtab.c (main): Likewise.
327 * genautomata.c (main): Likewise.
328 * gencodes.c (main): Likewise.
329 * genconditions.c (main): Likewise.
330 * genconfig.c (main): Likewise.
331 * genconstants.c (main): Likewise.
332 * genemit.c (main): Likewise.
333 * genextract.c (main): Likewise.
334 * genflags.c (main): Likewise.
335 * genopinit.c (main): Likewise.
336 * genoutput.c (main): Likewise.
337 * genpeep.c (main): Likewise.
338 * genrecog.c (main): Likewise.
339 * genpreds.c (main): Likewise.
340 * gensupport.h (in_fname): Move to read-md.h.
341 (init_md_reader_args_cb): Rename to...
342 (init_rtx_reader_args_cb): ...this and return a bool.
343 (init_md_reader_args): Rename to...
344 (init_rtx_reader_args): ...this and return a bool.
345 (include_callback): Move to read-md.h.
346 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
347 (file_name_list, first_dir_md_include): Move to read-md.c
348 (first_bracket_include): Delete unused variable.
349 (last_dir_md_include): Move to read-md.c.
350 (process_include): Delete, moving code to read-md.c:handle_include.
351 (process_rtx): Don't handle INCLUDE.
352 (save_string): Delete.
353 (rtx_handle_directive): New function.
354 (init_md_reader_args_cb): Rename to...
355 (init_rtx_reader_args_cb): ...this and return a boolean success value.
357 (init_md_reader_args): Rename to...
358 (init_rtx_reader_args): ...this and return a boolean success value.
359 * rtl.def (INCLUDE): Delete.
360 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
362 * read-rtl.c (read_conditions): Don't gobble ')' here.
363 (read_mapping): Likewise.
364 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
365 Handle top-level non-rtx constructs here rather than in read_rtx_1.
366 Store the whole queue in *X. Remove call to init_md_reader.
367 (read_rtx_1): Rename to...
368 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
369 Don't handle top-level non-rtx constructs here. Don't handle (nil)
371 (read_nested_rtx): New function. Handle (nil) here rather than
373 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
375 * read-md.h (directive_handler_t): New type.
376 (in_fname, include_callback): Moved from read-md.h.
377 (read_constants, init_md_reader): Delete.
378 (read_md_files): Declare.
379 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
380 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
382 (read_constants): Rename to...
383 (handle_constants): ...this. Don't gobble ')' here.
384 (handle_include, handle_file, handle_toplevel_file)
385 (parse_include): New functions, mostly taken from gensupport.c.
386 (init_md_reader): Subsume into...
387 (read_md_files): ...this new function.
389 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
391 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
392 (unread_char): Decrement read_md_lineno after putting back '\n'.
393 * read-md.c (fatal_with_file_and_line): Push back any characters
394 that we decide not to add to the context.
395 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
396 fatal_expected_char in cases where '/' ends a line (for example).
397 (read_name): Don't increment read_md_lineno here.
398 (read_escape): Likewise.
399 (read_quoted_string): Likewise.
400 (read_braced_string): Likewise.
402 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
404 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
405 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
406 * genconstants.c: Include read-md.h.
407 * read-rtl.c (md_constants): Move to read-md.c.
408 (md_name): Move to read-md.h.
409 (initialize_iterators): Use leading_string_hash instead of def_hash
410 and leading_string_eq_p instead of def_name_eq_p.
411 (read_name): Move to read-md.c.
412 (def_hash, def_name_eq_p): Delete.
413 (read_constants, traverse_md_constants): Move to read-md.c.
414 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
415 * read-md.h: Include hashtab.h.
416 (md_name): Moved from read-rtl.c.
417 (md_constant): Moved from read-md.h.
418 (leading_string_hash, leading_string_eq_p, read_name)
419 (read_constants, traverse_md_constants): Declare.
420 * read-md.c (md_constants): Moved from read-rtl.c.
421 (leading_string_hash, leading_string_eq_p): New functions.
422 (read_name, read_constants, traverse_md_constants): Moved from
425 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
427 * read-rtl.c (md_name): New structure.
428 (read_name): Take an md_name instead of a buffer pointer.
429 Use the "string" field instead of strcpy when expanding constants.
430 (read_constants): Remove the tmp_char argument. Update the calls
431 to read_name, using two local name buffers instead of the tmp_char
432 argument. Merge the constant-creation code.
433 (read_conditions): Remove the tmp_char argument. Update the calls
434 to read_name, using a local name buffer instead of the tmp_char
436 (read_mapping): Replace tmp_char variable with a local name buffer.
437 Update the calls to read_name.
438 (read_rtx_1): Likewise. Update the calls to read_constants and
441 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
443 * Makefile.in (build/read-md.o): Depend on errors.h.
444 * read-md.h (error_with_line): Declare.
445 * read-md.c: Include errors.h.
446 (message_with_line_1): New function, extracted from...
447 (message_with_line): ...here.
448 (error_with_line): New function.
449 * genattrtab.c: If a call to message_with_line is followed by
450 "have_error = 1;", replace both statements with a call to
452 * genoutput.c: Likewise.
453 * genpreds.c: Likewise.
454 * genrecog.c: If a call to message_with_line is followed by
455 "error_count++;", replace both statements with a call to
457 (errorcount): Delete.
458 (main): Don't check it.
459 * gensupport.c: If a call to message_with_line is followed by
460 "errors = 1;", replace both statements with a call to error_with_line.
462 (process_define_cond_exec): Check have_error instead of errors.
463 (init_md_reader_args_cb): Likewise. Don't set errors.
465 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
467 * read-md.h (read_md_file): Declare.
468 (read_char, unread_char): New functions.
469 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
470 (read_quoted_string, read_string): Remove FILE * argument.
471 * read-md.c (read_md_file): New variable.
472 (read_md_filename, read_md_lineno): Update comments and remove
473 unnecessary initialization.
474 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
475 (read_escape, read_quoted_string, read_braced_string, read_string):
476 Remove FILE * argument. Update calls accordingly, using read_char
477 and unread_char instead of getc and ungetc.
478 * rtl.h (read_rtx): Remove FILE * argument.
479 * read-rtl.c (iterator_group): Remove FILE * argument from
481 (iterator_traverse_data): Remove "infile" field.
482 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
483 (add_mapping, read_name, read_constants, read_conditions)
484 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
485 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
486 Remove file arguments from all calls, using read_char and unread_char
487 instead of getc and ungetc.
488 * gensupport.c (process_include): Preserve read_md_file around
489 the include. Set read_md_file to the handle of the included file.
490 Update call to read_rtx.
491 (init_md_reader_args_cb): Set read_md_file to the handle of the file
492 and remove local FILE *. Update calls to read_rtx.
494 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
496 * read-md.h (read_rtx_lineno): Rename to...
497 (read_md_lineno): ...this.
498 (read_rtx_filename): Rename to...
499 (read_md_filename): ...this.
500 (copy_rtx_ptr_loc): Rename to...
501 (copy_md_ptr_loc): ...this.
502 (print_rtx_ptr_loc): Rename to...
503 (print_md_ptr_loc): ...this.
504 * read-md.c: Likewise. Update references after renaming.
505 (string_obstack): Replace RTL with MD in comment.
506 (set_rtx_ptr_loc): Rename to...
507 (set_md_ptr_loc): ...this.
508 (get_rtx_ptr_loc): Rename to...
509 (get_md_ptr_loc): ...this.
510 * genconditions.c: Update references after renaming.
511 * genemit.c: Likewise.
512 * genoutput.c: Likewise.
513 * genpreds.c: Likewise.
514 * gensupport.c: Likewise.
515 * read-rtl.c: Likewise.
517 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
519 * Makefile.in (READ_MD_H): New variable.
520 (BUILD_RTL): Add build/read-md.o.
521 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
522 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
523 (build/genattrtab.o, build/genconditions.o build/genemit.o)
524 (build/genextract.o, build/genflags.o, build/genoutput.o)
525 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
526 (build/read-md.o): New rule.
527 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
528 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
529 * coretypes.h: ...here.
530 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
531 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
532 * genattr.c: Include read-md.h.
533 * genattrtab.c: Likewise.
534 * genconditions.c: Likewise.
535 * genemit.c: Likewise.
536 * genextract.c: Likewise.
537 * genflags.c: Likewise.
538 * genoutput.c: Likewise.
539 * genpreds.c: Likewise.
540 * genrecog.c: Likewise.
541 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
542 (join_c_conditions, print_c_condition, read_rtx_filename)
543 (read_rtx_lineno): Move to read-md.h.
544 * read-rtl.c: Include read-md.h.
545 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
546 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
547 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
548 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
549 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
550 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
551 (read_braced_string, read_string): Move to read-md.c.
552 (read_rtx): Move some initialization to init_md_reader and call
554 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
556 * gensupport.c: Include read-md.h.
557 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
558 * read-md.h, read-md.c: New files.
560 2010-06-10 Anatoly Sokolov <aesok@post.ru>
562 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
563 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
564 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
565 * config/moxie/moxie.c (moxie_function_value): Make static.
566 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
567 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
569 2010-06-10 Martin Jambor <mjambor@suse.cz>
571 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
572 * dbgcnt.def (tree_sra): New counter.
573 * tree-sra.c: Include dbgcnt.h.
574 (gate_intra_sra): Check tree_sra debug counter.
576 2010-06-10 Martin Jambor <mjambor@suse.cz>
578 PR tree-optimization/44258
579 * tree-sra.c (build_access_subtree): Return false iff there is a
581 (build_access_trees): Likewise.
582 (analyze_all_variable_accesses): Disqualify candidates if
583 build_access_trees returns true for them.
585 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
588 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
589 tail-recurse into canonical node. Fast-forward over
590 non-canonical VALUEs.
592 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
595 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
596 (*addsi_1_zext) <TYPE_LEA>: Likewise.
597 (add lea splitter): Likewise.
598 (add_zext lea splitter): Likewise.
600 2010-06-10 Joseph Myers <joseph@codesourcery.com>
602 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
604 2010-06-10 Jan Hubicka <jh@suse.cz>
606 * df-problems.c (df_live_problem_data): Add live_bitmaps.
607 (df_live_alloc): Initialize problem data and live_osbtacks.
608 (df_live_finalize): Remove obstack, problem data; do not
610 (df_live_top_dump, df_live_bottom_dump): Do not dump old
611 data when not allocated.
612 (df_live_verify_solution_start): Do not allocate problem data.
613 (df_live_verify_solution_end): Check if out is allocated.
614 (struct df_md_problem_data): New structure.
615 (df_md_alloc): Allocate problem data.
616 (df_md_free): Free problem data; do not clear bitmaps.
618 2010-06-10 Jan Beulich <jbeulich@novell.com>
621 * configure.ac: Replace $() with ${} when intending to expand
622 variables rather than invoking commands.
623 * configure: Re-generate.
625 2010-06-10 Jan Hubicka <jh@suse.cz>
627 PR rtl-optimization/44460
628 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
629 TYPE_NEEDS_CONSTRUCTING sanity check.
631 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
633 * doc/include/fdl.texi: Move to GFDL version 1.3.
635 * doc/cpp.texi: Move to GFDL version 1.3.
636 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
637 * doc/gccint.texi: Move to GFDL version 1.3.
638 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
639 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
640 * doc/invoke.texi: Move to GFDL version 1.3.
642 2010-06-09 Jan Hubicka <jh@suse.cz>
644 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
646 (propagate) ... here; swap the order.
648 2010-06-09 Jan Hubicka <jh@suse.cz>
650 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
651 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
652 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
653 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
655 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
657 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
658 Do not the gather memory reference in the outer loop if the step
661 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
663 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
664 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
665 8 to 4. Minor change of the related comments.
667 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
669 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
670 the scev analysis when the variable is not used outside the loop
671 in a close phi node: call compute_overall_effect_of_inner_loop.
673 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
675 * graphite-sese-to-poly.c (single_pred_cond): Renamed
676 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
677 (build_sese_conditions_before): Renamed call to single_pred_cond.
678 (build_sese_conditions_after): Same.
680 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
682 * graphite-poly.h: Fix comments and indentation.
683 * graphite-sese-to-poly.c: Same.
684 (build_sese_conditions_before): Compute stmt and gbb only when needed.
685 * tree-chrec.c: Fix comments and indentation.
686 (tree-ssa-loop-niter.c): Same.
688 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
690 PR rtl-optimization/42461
691 * dce.c (deletable_insn_p): Return true for const or pure calls again.
692 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
694 2010-06-09 Jan Hubicka <jh@suse.cz>
696 * bitmap.c (bitmap_and): Walk array forward.
697 (bitmap_and_compl_into): Likewise.
698 (bitmap_xor): Likewise.
699 (bitmap_xor_into): Likewise.
700 (bitmap_equal_p): Likewise.
701 (bitmap_intersect_p): Likewise.
702 (bitmap_intersect_compl_p): Likewise.
703 (bitmap_ior_and_into): Likewise.
704 (bitmap_elt_copy): Likewise.
705 (bitmap_and_compl): Likewise.
706 (bitmap_elt_ior): Likewise.
708 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
710 * opts-common.c (prune_options): Ensure replacement argv array
711 is correctly terminated by a NULL entry.
713 2010-06-09 Jan Hubicka <jh@suse.cz>
715 * cgraph.h (varpool_first_static_initializer,
716 varpool_next_static_initializer): Make checking only when
718 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
719 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
720 gcc_assert to gcc_checking_assert.
721 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
722 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
723 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
724 op_iter_init_phiuse, op_iter_init_phidef,
725 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
727 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
728 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
729 partition_is_global, live_on_entry, live_on_exit,
730 live_merge_and_clear): Likewise.
731 * system.h (gcc_checking_assert): New macro.
732 * gimple.h (set_bb_seq): Use gcc_checking_assert.
734 2010-06-09 Jason Merrill <jason@redhat.com>
736 * Makefile.in (TAGS): Collect tags info from c-family.
738 2010-06-09 Jan Hubicka <jh@suse.cz>
740 * gimple.h (gcc_gimple_checking_assert): New macro.
741 (gimple_set_def_ops, gimple_set_use_ops,
742 gimple_set_vuse, gimple_set_vdef,
743 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
744 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
745 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
746 gimple_asm_output_op, gimple_asm_output_op_ptr,
747 gimple_asm_set_output_op, gimple_asm_clobber_op,
748 gimple_asm_set_clobber_op, gimple_asm_label_op,
749 gimple_asm_set_label_op, gimple_try_set_kind,
750 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
751 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
752 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
753 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
754 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
755 gimple_omp_for_set_initial, gimple_omp_for_final,
756 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
757 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
758 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
759 conditional with ENABLE_GIMPLE_CHECKING.
760 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
762 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
764 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
765 (get_computation_cost_at): Use it.
766 (determine_use_iv_cost_condition): Likewise.
767 (determine_iv_cost): Likewise.
769 2010-06-09 Richard Guenther <rguenther@suse.de>
771 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
774 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
776 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
778 2010-06-09 Martin Jambor <mjambor@suse.cz>
780 PR tree-optimization/44423
781 * tree-sra.c (dump_access): Dump also grp_assignment_read.
782 (analyze_access_subtree): Pass negative allow_replacements to children
783 if the current type is scalar.
785 2010-06-09 Joern Rennecke <amylaar@spamcop.net>
788 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
789 * doc/plugins.texi (Plugin license check): Update information
790 on type of plugin_is_GPL_compatible.
791 * Makefile.in (PLUGINCC): Define as $(COMPILER).
792 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
794 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
796 * config/arm/arm.c (thumb2_reorg): New function.
797 (arm_reorg): Call it.
798 * config/arm/thumb2.md (define_peephole2 for flag clobbering
799 arithmetic operations): Delete.
801 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
804 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
807 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
810 * gcc-plugin.h: Encapsulate all declarations in extern "C".
812 2010-06-08 Jan Hubicka <jh@suse.cz>
814 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
815 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
817 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
819 PR tree-optimization/39874
821 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
823 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
824 same_bool_result_p): New.
825 (and_var_with_comparison, and_var_with_comparison_1,
826 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
827 (or_var_with_comparison, or_var_with_comparison_1,
828 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
829 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
830 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
831 of combine_comparisons.
832 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
834 2010-06-08 Anatoly Sokolov <aesok@post.ru>
836 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
837 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
838 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
839 pdp11_function_value_regno_p): New functions.
840 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
841 TARGET_FUNCTION_VALUE_REGNO_P): Define.
843 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
845 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
846 Thumb-2 in the MINUS case.
848 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
850 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
852 * doc/gty.texi (GTY Options): Document typed GC allocation and
853 variable_size GTY option.
855 * ggc-internal.h: New.
857 * ggc.h: Update copyright year.
858 (digit_string): Move to stringpool.c.
859 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
860 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
861 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
862 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
863 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
864 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
865 (ggc_force_collect, ggc_get_size, ggc_statistics)
866 (ggc_print_common_statistics): Move to ggc-internal.h.
867 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
868 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
869 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
870 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
871 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
872 (ggc_alloc_zone_pass_stat): Remove.
873 (ggc_internal_alloc_stat, ggc_internal_alloc)
874 (ggc_internal_cleared_alloc_stat): New.
875 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
876 (ggc_internal_vec_alloc_stat)
877 (ggc_internal_cleared_vec_alloc_stat)
878 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
879 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
880 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
881 (ggc_cleared_alloc_ptr_array_two_args): New.
882 (htab_create_ggc, splay_tree_new_ggc): Redefine.
883 (ggc_splay_alloc): Change the type of the first argument to
885 (ggc_alloc_string): Make macro.
886 (ggc_alloc_string_stat): New.
887 (ggc_strdup): Redefine.
888 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
889 (ggc_alloc_rtvec_sized): New.
890 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
891 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
892 (ggc_internal_cleared_alloc_zone_stat)
893 (ggc_internal_zone_alloc_stat)
894 (ggc_internal_zone_cleared_alloc_stat)
895 (ggc_internal_zone_vec_alloc_stat)
896 (ggc_alloc_zone_rtx_def_stat)
897 (ggc_alloc_zone_tree_node_stat)
898 (ggc_alloc_zone_cleared_tree_node_stat)
899 (ggc_alloc_cleared_gimple_statement_d_stat): New.
901 * ggc-common.c: Include ggc-internal.h.
902 (ggc_internal_cleared_alloc_stat): Rename from
903 ggc_alloc_cleared_stat.
904 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
905 (ggc_calloc): Remove.
906 (ggc_cleared_alloc_htab_ignore_args): New.
907 (ggc_cleared_alloc_ptr_array_two_args): New.
908 (ggc_splay_alloc): Add obj_type parameter.
909 (init_ggc_heuristics): Formatting fixes.
911 * ggc-none.c: Update copyright year.
912 (ggc_alloc_stat): Rename to ggc_alloc_stat.
913 (ggc_alloc_cleared_stat): Rename to
914 ggc_internal_cleared_alloc_stat.
915 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
917 * ggc-page.c: Update copyright year. Include ggc-internal.h.
918 Remove references to ggc_alloc in comments.
919 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
920 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
921 (new_ggc_zone, destroy_ggc_zone): Remove.
922 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
924 * ggc-zone.c: Include ggc-internal.h. Remove references to
925 ggc_alloc in comments.
926 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
927 (ggc_internal_alloc_zone_pass_stat): New.
928 (ggc_internal_cleared_alloc_zone_stat): New.
929 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
930 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
931 (new_ggc_zone, destroy_ggc_zone): Remove.
933 * stringpool.c: Update copyright year. Include ggc-internal.h
934 (digit_vector): Make static.
935 (digit_string): Moved from ggc.h.
936 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
937 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
939 * Makefile.in (GGC_INTERNAL_H): New.
940 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
941 $(GGC_INTERNAL_H) to dependencies.
943 * gentype.c: Update copyright year.
944 (walk_type): Accept variable_size GTY option.
945 (USED_BY_TYPED_GC_P): New macro.
946 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
947 whitespace at the end of strings.
948 (get_type_specifier, variable_size_p): New functions.
949 (alloc_quantity, alloc_zone): New enums.
950 (write_typed_alloc_def): New function.
951 (write_typed_struct_alloc_def): Likewise.
952 (write_typed_typed_typedef_alloc_def): Likewise.
953 (write_typed_alloc_defns): Likewise.
954 (output_typename, write_splay_tree_allocator_def): Likewise.
955 (write_splay_tree_allocators): Likewise.
956 (main): Call write_typed_alloc_defns and
957 write_splay_tree_allocators.
959 * lto-streamer.h (lto_file_decl_data_ptr): New.
961 * passes.c (order): Define using cgraph_node_ptr.
963 * strinpool.c (struct string_pool_data): Declare nested_ptr using
966 * gimple.h (union gimple_statement_d): Likewise.
968 * rtl.h (struct rtx_def): Likewise.
969 (struct rtvec_def): Likewise.
971 * tree.h (union tree_node): Likewise.
973 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
975 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
977 * tree-scalar-evolution.c (scev_initialize): Likewise.
979 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
981 * dwarf2asm.c (dw2_force_const_mem): Likewise.
983 * omp-low.c (lower_omp_critical): Likewise.
985 * bitmap.h (struct bitmap_head_def): Update comment to not
988 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
990 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
992 * ipa-prop.c (duplicate_ggc_array): Rename to
993 duplicate_ipa_jump_func_array. Use typed GC allocation.
994 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
996 * gimple.c (gimple_alloc_stat): Use
997 ggc_alloc_cleared_gimple_statement_d_stat.
999 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
1001 * tree.c (make_node_stat): Use
1002 ggc_alloc_zone_cleared_tree_node_stat.
1003 (make_tree_vec_stat): Likewise.
1004 (build_vl_exp_stat): Likewise.
1005 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
1006 (make_tree_binfo_stat): Likewise.
1007 (tree_cons_stat): Likewise.
1009 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
1010 (shallow_copy_rtx_stat): Likewise.
1011 (make_node_stat): Likewise.
1013 * lto-symtab.c: Fix comment.
1015 * tree-cfg.c (create_bb): Update comment to not reference
1017 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
1019 * varpool.c (varpool_node): Use typed GC allocation.
1020 (varpool_extra_name_alias): Likewise.
1022 * varasm.c (emutls_decl): Likewise.
1023 (get_unnamed_section): Likewise.
1024 (get_noswitch_section): Likewise.
1025 (get_section): Likewise.
1026 (get_block_for_section): Likewise.
1027 (build_constant_desc): Likewise.
1028 (create_constant_pool): Likewise.
1029 (force_const_mem): Likewise.
1031 * tree.c (build_vl_exp_stat): Likewise.
1032 (build_real): Likewise.
1033 (build_string): Likewise.
1034 (decl_debug_expr_insert): Likewise.
1035 (decl_value_expr_insert): Likewise.
1036 (type_hash_add): Likewise.
1037 (build_omp_clause): Likewise.
1039 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
1041 * tree-ssa.c (init_tree_ssa): Likewise.
1043 * tree-ssa-structalias.c (heapvar_insert): Likewise.
1045 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
1047 * tree-ssa-loop-niter.c (record_estimate): Likewise.
1049 * tree-ssa-alias.c (get_ptr_info): Likewise.
1051 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
1053 * tree-phinodes.c (allocate_phi_node): Likewise.
1055 * tree-iterator.c (tsi_link_before): Likewise.
1056 (tsi_link_after): Likewise.
1058 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
1060 * tree-dfa.c (create_var_ann): Likewise.
1062 * tree-cfg.c (create_bb): Likewise.
1064 * toplev.c (alloc_for_identifier_to_locale): Likewise.
1065 (general_init): Likewise.
1067 * stringpool.c (stringpool_ggc_alloc): Likewise.
1068 (gt_pch_save_stringpool): Likewise.
1070 * sese.c (if_region_set_false_region): Likewise.
1072 * passes.c (do_per_function_toporder): Likewise.
1074 * optabs.c (set_optab_libfunc): Likewise.
1075 (set_conv_libfunc): Likewise.
1077 * lto-symtab.c (lto_symtab_register_decl): Likewise.
1079 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
1080 (input_eh_region): Likewise.
1081 (input_eh_lp): Likewise.
1082 (make_new_block): Likewise.
1083 (unpack_ts_real_cst_value_fields): Likewise.
1085 * lto-section-in.c (lto_new_in_decl_state): Likewise.
1087 * lto-cgraph.c (input_node_opt_summary): Likewise.
1089 * loop-init.c (loop_optimizer_init): Likewise.
1091 * lambda.h (lambda_vector_new): Likewise.
1093 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
1095 * ira.c (update_equiv_regs): Likewise.
1097 * ipa.c (cgraph_node_set_new): Likewise.
1098 (cgraph_node_set_add): Likewise.
1099 (varpool_node_set_new): Likewise.
1100 (varpool_node_set_add): Likewise.
1102 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
1103 (duplicate_ipa_jump_func_array): Likewise.
1104 (ipa_read_node_info): Likewise.
1106 * ipa-cp.c (ipcp_create_replace_map): Likewise.
1108 * integrate.c (get_hard_reg_initial_val): Likewise.
1110 * gimple.c (gimple_alloc_stat): Likewise.
1111 (gimple_build_omp_for): Likewise.
1112 (gimple_seq_alloc): Likewise.
1113 (gimple_copy): Likewise.
1115 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
1116 (gsi_insert_after_without_update): Likewise.
1118 * function.c (add_frame_space): Likewise.
1119 (insert_temp_slot_address): Likewise.
1120 (assign_stack_temp_for_type): Likewise.
1121 (allocate_struct_function): Likewise.
1122 (types_used_by_var_decl_insert): Likewise.
1124 * except.c (init_eh_for_function): Likewise.
1125 (gen_eh_region): Likewise.
1126 (gen_eh_region_catch): Likewise.
1127 (gen_eh_landing_pad): Likewise.
1128 (add_call_site): Likewise.
1130 * emit-rtl.c (get_mem_attrs): Likewise.
1131 (get_reg_attrs): Likewise.
1132 (start_sequence): Likewise.
1133 (init_emit): Likewise.
1135 * dwarf2out.c (new_cfi): Likewise.
1136 (queue_reg_save): Likewise.
1137 (dwarf2out_frame_init): Likewise.
1138 (new_loc_descr): Likewise.
1139 (find_AT_string): Likewise.
1140 (new_die): Likewise.
1141 (add_var_loc_to_decl): Likewise.
1142 (clone_die): Likewise.
1143 (clone_as_declaration): Likewise.
1144 (break_out_comdat_types): Likewise.
1145 (new_loc_list): Likewise.
1146 (loc_descriptor): Likewise.
1147 (add_loc_descr_to_each): Likewise.
1148 (add_const_value_attribute): Likewise.
1149 (tree_add_const_value_attribute): Likewise.
1150 (add_comp_dir_attribute): Likewise.
1151 (add_name_and_src_coords_attributes): Likewise.
1152 (lookup_filename): Likewise.
1153 (store_vcall_insn): Likewise.
1154 (dwarf2out_init): Likewise.
1156 * dbxout.c (dbxout_init): Likewise.
1158 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
1160 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
1162 * config/score/score7.c (score7_output_external): Likewise.
1164 * config/score/score3.c (score3_output_external): Likewise.
1166 * config/s390/s390.c (s390_init_machine_status): Likewise.
1168 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
1169 (rs6000_init_machine_status): Likewise.
1170 (output_toc): Likewise.
1172 * config/pa/pa.c (pa_init_machine_status): Likewise.
1173 (get_deferred_plabel): Likewise.
1175 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
1177 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
1179 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
1181 * config/mep/mep.c (mep_init_machine_status): Likewise.
1182 (mep_note_pragma_flag): Likewise.
1184 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
1186 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
1188 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
1190 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
1191 (i386_pe_maybe_record_exported_symbol): Likewise.
1193 * config/i386/i386.c (get_dllimport_decl): Likewise.
1194 (ix86_init_machine_status): Likewise.
1195 (assign_386_stack_local): Likewise.
1197 * config/frv/frv.c (frv_init_machine_status): Likewise.
1199 * config/darwin.c (machopic_indirection_name): Likewise.
1201 * config/cris/cris.c (cris_init_machine_status): Likewise.
1203 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
1205 * config/avr/avr.c (avr_init_machine_status): Likewise.
1207 * config/arm/arm.c (arm_init_machine_status): Likewise.
1209 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
1210 (alpha_need_linkage): Likewise.
1211 (alpha_use_linkage): Likewise.
1213 * cgraph.c (cgraph_allocate_node): Likewise.
1214 (cgraph_create_edge_1): Likewise.
1215 (cgraph_create_indirect_edge): Likewise.
1216 (cgraph_add_asm_node): Likewise.
1218 * cfgrtl.c (init_rtl_bb_info): Likewise.
1220 * cfgloop.c (alloc_loop): Likewise.
1221 (rescan_loop_exit): Likewise.
1223 * cfg.c (init_flow): Likewise.
1224 (alloc_block): Likewise.
1225 (unchecked_make_edge): Likewise.
1227 * c-parser.c (c_parse_init): Likewise.
1228 (c_parse_file): Likewise.
1230 * c-decl.c (bind): Likewise.
1231 (record_inline_static): Likewise.
1232 (push_scope): Likewise.
1233 (make_label): Likewise.
1234 (lookup_label_for_goto): Likewise.
1235 (finish_struct): Likewise.
1236 (finish_enum): Likewise.
1237 (c_push_function_context): Likewise.
1239 * bitmap.c (bitmap_element_allocate): Likewise.
1240 (bitmap_gc_alloc_stat): Likewise.
1242 * alias.c (record_alias_subset): Likewise.
1243 (init_alias_analysis): Likewise.
1245 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
1247 * fold-const.c (fold_comparison): Remove redundant parenthesis.
1248 * tree-inline.c (expand_call_inline): Pass translated return value of
1249 cgraph_inline_failed_string to diagnostic function.
1251 2010-06-08 Andrew Pinski <pinskia@gmail.com>
1252 Shujing Zhao <pearly.zhao@oracle.com>
1255 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
1256 implicit bad conversions is initialization.
1257 (error_init): Use gmsgid instead of msgid for argument name and change
1259 (pedwarn_init): Use gmsgid instead of msgid for argument name and
1260 change the call for pedwarn.
1261 (warning_init): Use gmsgid instead of msgid for argument name and
1262 change the call for warning.
1264 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
1266 * config/mips/mips-protos.h (mips_print_operand): Delete.
1267 (mips_print_operand_address): Delete.
1268 * config/mips/mips.h (mips_print_operand_punct): Delete.
1269 (PRINT_OPERAND): Delete.
1270 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1271 (PRINT_OPERAND_ADDRESS): Delete.
1272 * config/mips/mips.c (mips_print_operand_punct): Make static.
1273 (mips_print_operand_address): Make static.
1274 (mips_print_operand): Make static. Call
1275 mips_print_operand_punct_valid_p.
1276 (mips_print_operand_punct_valid_p): New function.
1277 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
1278 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1280 2010-06-07 Jan Hubicka <jh@suse.cz>
1283 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
1286 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
1288 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
1291 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1293 * doc/sourcebuild.texi (Effective-Target Keywords, Other
1294 attributes): Document gas.
1296 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
1298 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
1299 <TYPE_LEA>: Split instruction.
1300 <default>: Remove alternative 2 handling.
1301 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
1302 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
1303 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
1305 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
1306 (ashift_zext lea splitter): Use DImode for multiplication.
1308 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
1309 to generate addition.
1311 2010-06-07 Joseph Myers <joseph@codesourcery.com>
1313 * common.opt (fira-verbose): Use Var.
1314 (fpcc-struct-return): Use Init instead of VarExists.
1315 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
1317 * flags.h (flag_signed_char, flag_short_enums,
1318 flag_pcc_struct_return, flag_ira_verbose,
1319 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
1320 * toplev.c (flag_detailed_statistics, flag_signed_char,
1321 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
1322 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
1323 * toplev.h (flag_crossjumping, flag_if_conversion,
1324 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
1325 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
1326 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
1327 flag_cprop_registers, time_report, flag_ira_loop_pressure,
1328 flag_ira_coalesce, flag_ira_move_spills,
1329 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
1331 2010-06-07 Jan Hubicka <jh@suse.cz>
1333 * df-core.c (df_analyze_problem): Do verification after allocation.
1335 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
1336 (df_lr_alloc): Initialize problem data; move bitmaps to
1338 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
1339 (df_lr_verify_solution_start): Do not initialize problem data;
1340 allocate bitmaps in lr_bitmaps.
1341 (df_lr_verify_solution_end): Do not free problem data.
1343 2010-06-07 Jan Hubicka <jh@suse.cz>
1345 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
1346 if caller is noreturn.
1347 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
1348 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
1349 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
1350 * ipa-pure-const.c (check_decl): Add IPA parameter.
1351 (state_from_flags): New function.
1352 (better_state, worse_state): New functions.
1353 (check_call): When in IPA mode, do not care about callees.
1354 (check_load, check_store): Update.
1355 (check_ipa_load, check_ipa_store): New.
1356 (check_stmt): When in IPA mode, use IPA checkers.
1357 (analyze_function): Use state_from_flags.
1358 (propagate): Check indirect edges and references.
1360 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
1362 PR rtl-optimization/44404
1363 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
1364 of count_occurrences to see if it's safe to modify mem_insn.
1366 2010-06-07 Richard Guenther <rguenther@suse.de>
1368 * gimplify.c (gimplify_cleanup_point_expr): For empty body
1369 and EH-only cleanup drop the cleanup instead of inserting it
1372 2010-06-07 Ira Rosen <irar@il.ibm.com>
1374 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
1376 * targhooks.c (default_builtin_vectorization_cost): New function.
1377 * targhooks.h (default_builtin_vectorization_cost): Declare.
1378 * target.h (enum vect_cost_for_stmt): Define.
1379 (builtin_vectorization_cost): Change argument and comment.
1380 * tree-vectorizer.h: Remove cost model macros.
1381 * tree-vect-loop.c: Include target.h.
1382 (vect_get_cost): New function.
1383 (vect_estimate_min_profitable_iters): Replace cost model macros with
1384 calls to vect_get_cost.
1385 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
1386 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
1387 default implementation.
1388 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
1389 calls to target hook builtin_vectorization_cost.
1390 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
1392 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
1393 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
1394 implementation to return costs.
1395 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
1396 * config/spu/spu.h: Remove vectorizer cost model macros.
1397 * config/i386/i386.h: Likewise.
1398 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
1399 a call to target hook builtin_vectorization_cost.
1401 2010-06-06 Sriraman Tallam <tmsriram@google.com>
1404 * config/i386/i386.c (override_options): Turn zee pass on for level 2
1405 and above and defer till target is known.
1406 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
1409 2010-05-25 Jan Hubicka <jh@suse.cz>
1411 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
1412 (df_compact_blocks): Likewise.
1413 * df.h (struct df): Turn hardware_regs_used,
1414 regular_block_artificial_uses, eh_block_artificial_uses,
1415 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
1417 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
1418 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
1419 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
1420 df_scan_blocks, df_insn_delete, df_insn_rescan,
1421 df_insn_rescan_debug_internal, df_insn_rescan_all,
1422 df_process_deferred_rescans, df_process_deferred_rescans,
1423 df_notes_rescan, df_get_call_refs, df_get_call_refs,
1424 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
1425 df_record_entry_block_defs, df_record_exit_block_uses,
1426 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
1427 df_scan_verify): Update.
1429 2010-05-25 Dodji Seketeli <dodji@redhat.com>
1432 * c-common.c (is_typedef_decl): Move this definition ...
1433 * tree.c (is_typedef_decl): ... here.
1434 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
1435 * c-common.h (is_typedef_decl): Move this declaration ...
1436 * tree.h (is_typedef_decl): ... here.
1437 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
1438 * dwarf2out.c (is_naming_typedef_decl): New function.
1439 (gen_tagged_type_die): Split out of ...
1440 (gen_type_die_with_usage): ... this function. When an anonymous
1441 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
1442 is emitted for the typedef.
1443 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
1444 anonymous tagged types.
1446 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
1449 * c-decl.c (grokdeclarator): Delete warning.
1451 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
1453 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
1454 newly built CALL_EXPR.
1455 * tree-profile.c (tree_profiling): Don't profile functions produced
1458 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
1462 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
1463 endianness-independent.
1465 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
1467 * c-common.c: Move to c-family/.
1468 * c-common.def: Likewise.
1469 * c-common.h: Likewise.
1470 * c-cppbuiltin.c: Likewise.
1471 * c-dump.c: Likewise.
1472 * c-format.c: Likewise.
1473 * c-format.h : Likewise.
1474 * c-gimplify.c: Likewise.
1475 * c-lex.c: Likewise.
1476 * c-omp.c: Likewise.
1478 * c-opts.c: Likewise.
1479 * c-pch.c: Likewise.
1480 * c-ppoutput.c: Likewise.
1481 * c-pragma.c: Likewise.
1482 * c-pragma.h: Likewise.
1483 * c-pretty-print.c: Likewise.
1484 * c-pretty-print.h: Likewise.
1485 * c-semantics.c: Likewise.
1486 * stub-objc.c: Likewise.
1488 * gengtype.c (get_file_langdir): Special-case files in c-family/.
1489 (get_output_file_with_visibility): Fix name for c-common.h.
1490 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
1492 * c-tree.h: Update include path for moved files.
1493 * c-lang.c: Likewise.
1494 * c-lang.h: Likewise.
1495 * c-parser.c: Likewise.
1496 * c-convert.c: Likewise.
1497 * c-decl.c: Likewise.
1498 * c-objc-common.c: Likewise.
1499 * configure.ac: Make sure c-family/ exists in the build directory.
1500 * configure: Regenerate.
1501 * Makefile.in: Update paths for moved files. Regroup files per
1502 location and update dependencies. Move generated_files down after
1505 * config/spu/spu-c.c: Update paths for moved files.
1506 * config/mep/mep-pragma.c: Likewise.
1507 * config/darwin-c.c: Likewise.
1508 * config/i386/msformat-c.c: Likewise.
1509 * config/i386/i386-c.c: Likewise.
1510 * config/avr/avr-c.c: Likewise.
1511 * config/sol2-c.c: Likewise.
1512 * config/ia64/ia64-c.c: Likewise.
1513 * config/rs6000/rs6000-c.c: Likewise.
1514 * config/arm/arm.c: Likewise.
1515 * config/arm/arm-c.c: Likewise.
1516 * config/h8300/h8300.c: Likewise.
1517 * config/v850/v850-c.c: Likewise.
1519 * config/t-darwin: Fix dependencies for moved files.
1520 * config/t-sol2: Fix dependencies for moved files.
1521 * config/mep/t-mep: Fix dependencies for moved files.
1522 * config/ia64/t-ia64: Fix dependencies for moved files.
1523 * config/rs6000/t-rs6000: Fix dependencies for moved files.
1524 * config/v850/t-v850: Fix dependencies for moved files.
1525 * config/v850/t-v850e: Fix dependencies for moved files.
1527 * config/m32c/m32c-pragma.c
1529 * po/exgettext: Look in c-family/ also.
1531 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
1533 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
1534 (mark_control_dependent_edges_necessary): Call it instead of marking
1535 the last statement manually.
1536 (propagate_necessity): Likewise.
1538 2010-06-05 Jan Hubicka <jh@suse.cz>
1540 * basic-block.h (compute_dominance_frontiers): Updated.
1541 (compute_idf): Likewise.
1543 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
1544 for dominance frontiers.
1545 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
1546 (insert_updated_phi_nodes_for): Likewise.
1547 (update_ssa): Likewise.
1548 * cfganal.c (compute_dominance_frontiers_1): Likewise.
1549 (compute_dominance_frontiers): Likewise.
1550 (compute_idf): Likewise.
1551 * df-problems.c (df_md_local_compute): Likewise.
1553 2010-06-05 Anatoly Sokolov <aesok@post.ru>
1555 * target.h (struct gcc_target): Add memory_move_cost field.
1556 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
1557 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
1558 * targhooks.c (default_memory_move_cost): New function.
1559 * targhooks.h (default_memory_move_cost): Declare function.
1560 * reload.h (memory_move_cost): Declare.
1561 (memory_move_secondary_cost): Change type of 'in' argument to bool.
1562 * reginfo.c (memory_move_cost): New function.
1563 (memory_move_secondary_cost): Change type of 'in' argument to bool.
1564 * ira.h (ira_memory_move_cost): Update comment.
1565 * ira.c: (ira_memory_move_cost): Update comment.
1566 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
1567 with memory_move_cost.
1568 * postreload.c (reload_cse_simplify_set): (Ditto.).
1569 * reload1.c (choose_reload_regs): (Ditto.).
1570 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
1571 (MEMORY_MOVE_COST): Revise documentation.
1573 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
1574 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
1575 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
1576 type of 'in' argument to bool.
1577 (TARGET_MEMORY_MOVE_COST): Define.
1579 2010-06-05 Jan Hubicka <jh@suse.cz>
1581 * ipa-pure-const.c (propagate): Fix typo in handling of functions
1582 that cannot return. Be more careful when merging the results with
1583 previously known ones.
1585 2010-06-05 Matthias Klose <doko@ubuntu.com>
1587 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
1588 function to add the -iplugindir option.
1589 (find_plugindir_spec_function): Add new declaration and function.
1590 (static_spec_func): Use it for "find-plugindir".
1592 2010-06-05 Jakub Jelinek <jakub@redhat.com>
1595 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
1596 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
1597 statement expression.
1599 2010-06-05 Jan Hubicka <jh@suse.cz>
1601 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
1602 (df_rd_problem_data): Convert sparse_invalidated_by_call,
1603 dense_invalidated_by_call to bitmap head.
1604 (df_rd_alloc, df_rd_bb_local_compute_process_def,
1605 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
1606 df_rd_start_dump, df_lr_verify_transfer_functions,
1607 df_live_verify_transfer_functions, df_chain_create_bb,
1608 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
1609 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
1610 df_simulate_one_insn_forwards, df_md_alloc,
1611 df_md_bb_local_compute_process_def,
1612 df_md_bb_local_compute_process_def, df_md_local_compute,
1613 df_md_transfer_function df_md_free): Update.
1615 2010-06-05 Joseph Myers <joseph@codesourcery.com>
1618 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
1619 target type for ADDR_EXPR; require no changes to qualifiers except
1621 * c-tree.h (c_build_type_variant): Remove.
1623 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1625 * genautomata.c (get_excl_set): Do work per element, not per char.
1626 (check_presence_pattern_sets): Similar.
1627 (check_absence_pattern_sets): Similar.
1629 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
1631 * genautomata.c (curr_state_pass_num): Delete.
1632 (min_issue_delay_pass_states): Delete.
1633 (min_issue_delay): Delete.
1634 (initiate_min_issue_delay_pass_states): Delete.
1635 (output_min_issue_delay_table): Compute min_issue_delay_vect
1636 using a breadth-first search variant.
1637 (output_tables): Don't call initiate_min_issue_delay_pass_states.
1639 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
1642 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
1643 (df_byte_lr_bb_local_compute): Likewise.
1645 2010-06-03 Jason Merrill <jason@redhat.com>
1647 Implement noexcept operator (5.3.7)
1648 * c-common.c (c_common_reswords): Add noexcept.
1649 * c-common.h (enum rid): Add RID_NOEXCEPT.
1651 2010-06-04 Joseph Myers <joseph@codesourcery.com>
1653 * config/darwin-driver.c (darwin_default_min_version): Use
1654 GCC-specific formats in diagnostics.
1655 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
1657 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
1658 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
1659 eval_spec_function, handle_braces, process_brace_body, main,
1660 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
1661 getenv_spec_function, compare_version_strings,
1662 version_compare_spec_function): Use GCC-specific formats in
1665 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1667 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
1668 that operand 0 and operand 1 are equal.
1669 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
1670 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
1671 and operand 1 are equal.
1672 <default>: Ditto. Remove ??? comment.
1673 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
1674 and operand 1 are equal.
1675 <default>: Ditto. Remove ??? comment.
1676 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
1678 (*add<mode>_4) <default>: Ditto.
1679 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
1681 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
1683 * config/i386/i386-protos.h (ix86_print_operand): Declare.
1684 * config/i386/i386.c (ix86_print_operand): Make non-static.
1685 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
1686 * output.h (output_operand): Declare.
1687 * final.c (output_operand): Make non-static.
1689 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
1691 PR rtl-optimization/44013
1692 * sched-deps.c (add_dependence_list_and_free): Don't free lists
1693 when processing debug insns.
1696 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
1697 recursing. Check that recursion is bounded. Rename inner var
1698 to avoid hiding incoming argument.
1700 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1702 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
1707 (*addqi_ext_1_rex64): Ditto.
1708 (*addqi_ext_1): Ditto.
1710 (*addqi_4): Check for incdec_operand in QImode.
1712 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
1713 using SWI mode iterator.
1714 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
1715 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
1717 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
1718 using SWI mode iterator.
1720 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1723 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
1724 * c-format.c (gcc_diag_flag_specs): Add hash.
1725 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
1726 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
1727 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
1728 pp_c_cv_qualifiers. Handle qualifiers spelling here.
1729 (pp_c_type_qualifier_list): Call the function above.
1730 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
1731 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
1732 (WARN_FOR_QUALIFIERS): New macro.
1733 (convert_for_assignment): Use it.
1735 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
1737 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
1739 2010-06-04 Jan Hubicka <jh@suse.cz>
1741 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
1742 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
1743 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
1744 DF_BYTE_LR_OUT): Update for embedded bitmaps.
1745 * fwprop.c (single_def_use_enter_block): Likewise.
1746 * ddg.c (create_ddg_dep_from_intra_loop_link,
1747 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
1748 * loop-iv.c (latch_dominating_def): Likewise.
1749 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
1750 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
1751 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
1752 df_rd_transfer_function, df_rd_top_dump,
1753 df_rd_bottom_dump): Update.
1754 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
1755 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
1756 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
1757 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
1758 df_lr_verify_solution_start, df_lr_verify_solution_end,
1759 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
1760 df_live_free_bb_info, df_live_alloc, df_live_reset,
1761 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
1762 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
1763 df_live_verify_solution_start, df_live_verify_solution_end,
1764 df_live_verify_transfer_functions, df_chain_create_bb,
1765 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
1766 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
1767 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
1768 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
1769 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
1770 df_byte_lr_transfer_function, df_byte_lr_top_dump,
1771 df_byte_lr_bottom_dump, df_create_unused_note,
1772 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
1773 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
1774 df_md_transfer_function, df_md_init, df_md_confluence_0,
1776 df_md_top_dump, df_md_bottom_dump): Update.
1777 (struct df_lr_problem_data): Embedd bitmap headers.
1779 2010-06-04 Jan Hubicka <jh@suse.cz>
1781 * dce.c (dce_process_block): Do not re-scan already marked
1784 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
1786 PR rtl-optimization/39871
1787 PR rtl-optimization/40615
1788 PR rtl-optimization/42500
1789 PR rtl-optimization/42502
1790 * ira.c (init_reg_equiv_memory_loc: New function.
1791 (ira): Call it twice.
1792 * reload.h (calculate_elim_costs_all_insns): Declare.
1793 * ira-costs.c: Include "reload.h".
1794 (regno_equiv_gains): New static variable.
1795 (init_costs): Allocate it.
1796 (finish_costs): Free it.
1797 (ira_costs): Call calculate_elim_costs_all_insns.
1798 (find_costs_and_classes): Take estimated elimination costs
1800 (ira_adjust_equiv_reg_cost): New function.
1801 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
1802 * reload1.c (init_eliminable_invariants, free_reg_equiv,
1803 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
1804 (elim_bb): New static variable.
1805 (reload): Move code out of here into init_eliminable_invariants and
1806 free_reg_equiv. Call them.
1807 (calculate_elim_costs_all_insns): New function.
1808 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
1809 all callers changed. If FOR_COSTS is true, don't call alter_reg,
1810 but call note_reg_elim_costly if we turned a valid memory address
1811 into an invalid one.
1812 * Makefile.in (ira-costs.o): Depend on reload.h.
1814 2010-06-04 Julian Brown <julian@codesourcery.com>
1816 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
1819 2010-06-04 Richard Guenther <rguenther@suse.de>
1822 * cgraph.h (struct varpool_node): Add lto_file_data field.
1823 * lto-cgraph.c (input_varpool_node): Initialize it.
1825 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
1827 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
1828 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
1829 predicate in "type" attribute calculation.
1830 (*addsi_1_zext): Ditto.
1831 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
1832 (*addsi_2_zext): Ditto.
1833 (*add<mode>_3): Ditto.
1834 (*addsi_3_zext): Ditto.
1835 (*add<mode>_5): Ditto.
1837 2010-06-03 Jan Hubicka <jh@suse.cz>
1839 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
1841 * cfganal.c (compute_dominance_frontiers_1): Likewise.
1843 2010-06-03 Jan Hubicka <jh@suse.cz>
1845 * df-problems.c (df_create_unused_note, df_note_bb_compute):
1846 micro-optimize the checks when to add new note.
1848 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
1850 * final.c (output_asm_insn): Call
1851 targetm.asm_out.print_operand_punct_valid_p. Update comments.
1852 (output_operand): Call targetm.asm_out.print_operand. Update comments.
1853 (output_address): Call targetm.asm_out.print_operand_address.
1855 * target.h (struct gcc_target): Add print_operand,
1856 print_operand_address, and print_operand_punct_valid_p fields.
1857 * targhooks.h (default_print_operand): Declare.
1858 (default_print_operand_address): Declare.
1859 (default_print_operand_punct_valid_p): Declare.
1860 * targhooks.c (default_print_operand): Define.
1861 (default_print_operand_address): Define.
1862 (default_print_operand_punct_valid_p): Define.
1863 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
1864 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
1865 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1866 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
1867 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
1868 * vmsdbgout.c (addr_const_to_string): Update comment.
1869 * config/i386/i386.c (print_operand): Rename to...
1870 (ix86_print_operand): ...this. Make static.
1871 (print_operand_address): Rename to...
1872 (ix86_print_operand_address): ...this. Make static. Call
1873 ix86_print_operand instead of PRINT_OPERAND.
1874 (ix86_print_operand_punct_valid_p): New function.
1875 (TARGET_PRINT_OPERAND): Define.
1876 (TARGET_PRINT_OPERAND_ADDRESS): Define.
1877 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
1878 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
1879 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
1880 (PRINT_OPERAND): Delete.
1881 (PRINT_OPERAND_ADDRESS): Delete.
1882 * config/i386/i386-protos.h (print_operand): Delete prototype.
1883 (print_operand_address): Delete prototype.
1885 2010-06-03 Richard Guenther <rguenther@suse.de>
1887 PR tree-optimization/44403
1888 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
1889 Preserve pointer qualifiers.
1890 (vect_create_data_ref_ptr): Likewise.
1892 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
1895 * defaults.h (MAX_FIXED_MODE_SIZE): New.
1897 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
1899 2010-06-03 Jakub Jelinek <jakub@redhat.com>
1902 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
1903 return false if merging the bbs would lead to goto_locus
1904 location being lost from the IL.
1906 2010-06-03 Jan Hubicka <jh@suse.cz>
1907 Jakub Jelinek <jakub@redhat.com>
1909 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
1910 set->regs[i] is NULL or has just one entry.
1912 2010-06-03 Jan Hubicka <jh@suse.cz>
1914 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
1915 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
1917 2010-06-03 Paul Brook <paul@codesourcery.com>
1919 * config/arm/arm.c (FL_TUNE): Define.
1920 (arm_default_cpu, arm_cpu_select): Remove.
1921 (all_cores): Populate core field.
1922 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
1923 (arm_find_cpu): New function.
1924 (arm_handle_option): Lookup cpu/architecture names.
1925 (arm_override_options): Cleanup mcpu/march/mtune handling.
1926 (arm_file_start): Ditto.
1928 2010-06-03 Alan Modra <amodra@gmail.com>
1931 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
1932 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
1933 rtx to gen_load_toc_v4_PIC_1b. Tidy.
1934 (rs6000_emit_load_toc_table): Likewise.
1936 2010-06-02 Jan Hubicka <jh@suse.cz>
1938 * passes.c (init_optimization_passes): Put ipa reference
1939 after ipa pure-const.
1941 2010-06-02 Jan Hubicka <jh@suse.cz>
1943 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
1944 calls_read_all and calls_write_all.
1945 (get_reference_optimization_summary): Fix formatting.
1946 (is_proper_for_analysis): Check that decl is not readonly.
1947 (propagate_bits): Check CONST/PURE/noreturn flags.
1948 (ipa_init): Move all_module_statics to optimization_summary_obstack.
1949 (analyze_function): Ignore indirect edges.
1950 (copy_global_bitmap): For all module statics, do nothing.
1951 (generate_summary): Do not print calls_read_all/calls_write_all.
1952 (read_write_all_from_decl): Take node as argument; check
1953 cgraph_node_cannot_return.
1954 (propagate): Reorganize read_all/write_all computation;
1955 check indirect edges; check ecf flags; use all_module_statics
1956 in the results; do not free all_module_statics.
1957 (stream_out_bitmap): Handle all_module_statics.
1958 (ipa_reference_write_optimization_summary): Likewise; use
1959 varpool/cgraph encoders to get boundaries.
1960 (ipa_reference_read_optimization_summary): Read in all_module_statics;
1961 use it when possible.
1963 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
1966 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
1967 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
1969 * doc/extend.texi (powerpc builtins): Document vec_recip,
1970 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
1972 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
1973 (rs6000_emit_swrsqrt): Ditto.
1974 (rs6000_emit_swdivsf): Delete.
1975 (rs6000_emit_swdivdf): Ditto.
1976 (rs6000_emit_swrsqrtsf): Ditto.
1978 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
1979 describe the reciprocal estimate support for each type.
1980 (recip_options): Map -mrecip=<opt> into option bits.
1981 (gen_2arg_fn_t): New typedef for binary rtx gen function.
1982 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
1983 reciprocal estimate instructions.
1984 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
1985 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
1986 Set up rs6000_recip_bits based on the -mrecip* options. Print the
1987 cost information if -mdebug=cost or -mdebug=reg.
1988 (rs6000_override_options): Set -mrecip-precision for power6, and
1989 power7 machines. If -mvsx or -mdfp, enable various options that
1990 came in previous instruction set ISAs, unless the option was
1991 explicitly disabled by the command line option. Parse
1992 -mrecip=<opt> options.
1993 (rs6000_builtin_vectorized_function): Add support for vectorizing
1994 the reciprocal estimate builtins and expansions.
1995 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
1996 (bdesc_2arg): Add reciprocal estimate builtins.
1997 (bdesc_1arg): Add reciprocal square root estimate builtins.
1998 (rs6000_expand_builtin): Rewrite to use a switch statement,
1999 instead of multiple if/then/elses. Add reciprocal estimate builtins.
2000 (rs6000_init_builtins): Create declarations for reciprocal
2002 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
2003 sized, prefer traditional floating point registers, if integer
2004 vector types, prefer altivec registers. Don't actually look at
2005 the memory address any more.
2006 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
2008 (rs6000_load_constant_and_splat): New helper function to load up
2009 the constant for reciprocal estimate instructions.
2010 (rs6000_emit_madd): New helper function for generating
2011 multiply/add type instructions, based on the current switches.
2012 (rs6000_emit_msub): Ditto.
2013 (rs6000_emit_mnsub): Ditto.
2014 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
2015 replace a divide with a reciprocal estimate and fixup, adding
2016 support for machines with high precision and vectors.
2017 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
2018 low precision machines.
2019 (rs6000_emit_swdiv): New common function to be called to replace a
2020 division with reciprocal estimate and fixup.
2021 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
2022 for double and vector types. Add support for high precision machines.
2024 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
2025 the reciprocal estimate instructions can be generated.
2026 (TARGET_FRE): Ditto.
2027 (TARGET_FRSQRTES): Ditto.
2028 (TARGET_FRSQRTE): Ditto.
2029 (RS6000_RECIP_*): New macros for reciprocal estimate support.
2031 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
2032 square root estimate on vectors.
2033 (re<mode>2): New insn for reciprocal division estimate on vectors.
2035 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
2037 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
2038 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
2039 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
2040 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
2041 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
2042 (RS6000_BUILTIN_RSQRT): Ditto.
2043 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
2044 floating point builtin.
2046 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2047 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
2048 __RECIP_PRECISION__ based on the command line switches.
2049 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
2051 * config/rs6000/rs6000.opt (-mrecip): Document add support for
2052 replacing division instructions with reciprocal estimate and fixup.
2053 (-mrecip=<opt>): New option.
2054 (-mrecip-precision): Ditto.
2056 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
2057 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
2058 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
2061 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
2062 (UNSPEC_VREFP): Ditto.
2063 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
2064 conterparts with regard to support of -mno-fused-madd and -ffast-math.
2065 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
2066 reciprocal estimate instructions to be generated.
2067 (altivec_vrefp): Ditto.
2069 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
2071 (rreg): New mode attribute for reciprocal estimate support.
2072 (recip<mode>3): New insn for division using reciprocal estimate
2074 (divide define_split): New define_split to convert floating point
2075 division to use reciprocal estimate if the user used the
2076 appropriate options and the split is run when we can add new
2077 pseudo registers for the fixup.
2078 (rsqrt<mode>2): New insn for reciprocal square root support.
2079 (recipsf3): Move into recip<mode>3.
2081 (fres): Use TARGET_FRES.
2082 (rsqrtsf2): Move into rsqrt<mode>2.
2083 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
2084 (copysignsf3): Add support for VSX.
2085 (fred): Use TARGET_FRE.
2087 (rsqrtdf_internal1): New function for frsqrte instruciton.
2089 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
2092 2010-06-03 Richard Guenther <rguenther@suse.de>
2095 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
2096 (set_user_assembler_libfunc): Likewise.
2098 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2100 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
2102 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
2104 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
2105 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
2106 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
2107 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
2108 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
2109 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
2110 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
2111 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
2112 * defaults.h: Updated for above mentioned changes.
2114 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
2116 * c-common.c: Remove header include of tm_p.h.
2117 * Makefile.in (c-common.o): Remove TM_P_H dependency.
2119 2010-06-02 Jakub Jelinek <jakub@redhat.com>
2121 * tree.h (struct tree_decl_map): New type.
2122 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
2123 (tree_decl_map_hash): New prototype.
2124 (debug_expr_for_decl, value_expr_for_decl): Change into
2125 tree_decl_map hashtab from tree_map.
2126 (init_ttree): Adjust initialization.
2127 (tree_decl_map_hash): New function.
2128 (decl_debug_expr_lookup, decl_debug_expr_insert,
2129 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
2131 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2133 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
2135 * configure: Regenerate.
2136 * config.in: Regenerate.
2138 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
2139 (X86_64_EMULATION): Define.
2140 (TARGET_LD_EMULATION): Use them.
2142 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
2143 (SPARC64_EMULATION): Define.
2144 (LINK_ARCH_SPEC): Use them.
2146 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2148 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
2149 smallest_mode_for_size for computing the precision types of new
2150 graphite IVs. Do not call lang_hooks.types.type_for_size.
2152 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2154 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
2156 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
2158 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
2161 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
2162 return false instead.
2164 2010-06-02 Jan Hubicka <jh@suse.cz>
2167 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
2168 create new cgraph node to check callee.
2170 2010-06-02 Richard Guenther <rguenther@suse.de>
2172 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
2174 2010-06-02 Richard Guenther <rguenther@suse.de>
2176 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
2177 (lto_wrapper_cleanup): ... this. Do not exit.
2178 (fatal): Adjust. Exit here.
2179 (fatal_perror): Likewise.
2180 (fatal_signal): New function.
2181 (main): Set up signal handlers to cleanup temporary files.
2182 * Makefile.in (lto-wrapper.o): Adjust dependencies.
2184 2010-06-02 Richard Guenther <rguenther@suse.de>
2186 PR tree-optimization/44377
2187 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
2189 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2191 * config/s390/2097.md (z10_fhex): Remove insn reservation.
2192 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
2193 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
2194 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
2196 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
2198 2010-06-02 Jan Hubicka <jh@suse.cz>
2200 * bitmap.c (bitmap_descriptor): Add search_iter.
2201 (bitmap_find_bit): Increment it.
2202 (print_statistics): Print it.
2204 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
2206 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
2207 instead of gimple_build_call_vec. Delete unnecessary local variable.
2209 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2211 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
2212 change from yesterday.
2214 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
2216 * c-ada-spec.c: Clean up redundant includes.
2218 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
2220 * gimplify.c: Do not include except.h and optabs.h.
2221 (gimplify_body): Do not initialize RTL profiling.
2222 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
2223 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
2224 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
2225 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
2228 * tree-pretty-print.h: Include pretty-print.h.
2229 * gimple-pretty-print.h: Include pretty-print.h.
2231 * tree-pretty-print.c: Do not include diagnostic.h.
2232 * tree-vrp.c: Likewise.
2233 * tree-tailcall.c: Likewise
2234 * tree-scalar-evolution.c: Likewise
2235 * tree-ssa-dse.c: Likewise
2236 * tree-chrec.c: Likewise
2237 * tree-ssa-sccvn.c: Likewise
2238 * tree-ssa-copyrename.c: Likewise
2239 * tree-nomudflap.c: Likewise
2240 * tree-call-cdce.c: Likewise
2241 * tree-stdarg.c: Likewise
2242 * tree-ssa-math-opts.c: Likewise
2243 * tree-nrv.c: Likewise
2244 * tree-ssa-sink.c: Likewise
2245 * tree-browser.c: Likewise
2246 * tree-ssa-loop-ivcanon.c: Likewise
2247 * tree-ssa-loop.c: Likewise
2248 * tree-parloops.c: Likewise
2249 * tree-ssa-address.c: Likewise
2250 * tree-ssa-ifcombine.c: Likewise
2251 * tree-if-conv.c: Likewise
2252 * tree-data-ref.c: Likewise
2253 * tree-affine.c: Likewise
2254 * tree-ssa-phiopt.c: Likewise
2255 * tree-ssa-coalesce.c: Likewise
2256 * tree-ssa-pre.c: Likewise
2257 * tree-ssa-live.c: Likewise
2258 * tree-predcom.c: Likewise
2259 * tree-ssa-forwprop.c: Likewise
2260 * tree-ssa-dce.c: Likewise
2261 * tree-ssa-ter.c: Likewise
2262 * tree-ssa-loop-prefetch.c: Likewise
2263 * tree-optimize.c: Likewise
2264 * tree-ssa-phiprop.c: Likewise
2265 * tree-object-size.c: Likewise
2266 * tree-outof-ssa.c: Likewise
2267 * tree-ssa-structalias.c: Likewise
2268 * tree-switch-conversion.c: Likewise
2269 * tree-ssa-reassoc.c: Likewise
2270 * tree-ssa-operands.c: Likewise
2271 * tree-vectorizer.c: Likewise
2272 * tree-vect-data-refs.c: Likewise
2273 * tree-vect-generic.c: Likewise
2274 * tree-vect-stmts.c: Likewise
2275 * tree-vect-patterns.c: Likewise
2276 * tree-vect-slp.c: Likewise
2277 * tree-vect-loop.c: Likewise
2278 * tree-ssa-loop-ivopts.c: Likewise
2279 * tree-ssa-loop-im.c: Likewise
2280 * tree-ssa-loop-niter.c: Likewise
2281 * tree-ssa-loop-unswitch.c: Likewise
2282 * tree-ssa-loop-manip.c: Likewise
2283 * tree-ssa-loop-ch.c: Likewise
2284 * tree-dump.c: Likewise
2285 * tree-complex.c: Likewise
2287 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
2288 * tree-ssa-uninit.c: Likewise
2289 * tree-ssa-threadupdate.c: Likewise
2290 * tree-ssa-uncprop.c: Likewise
2291 * tree-ssa-ccp.c: Likewise
2292 * tree-ssa-dom.c: Likewise
2293 * tree-ssa-propagate.c: Likewise
2294 * tree-ssa-alias.c: Likewise
2295 * tree-dfa.c: Likewise
2296 * tree-cfgcleanup.c: Likewise
2297 * tree-sra.c: Likewise
2298 * tree-ssa-copy.c: Likewise
2299 * tree-ssa.c: Likewise
2300 * tree-profile.c: Likewise
2301 * tree-cfg.c: Likewise
2302 * tree-ssa-threadedge.c: Likewise
2303 * tree-vect-loop-manip.c: Likewise
2305 * tree-inline.c: Do not include diagnostic.h and expr.h.
2307 (copy_decl_for_dup_finish): Do not use NULL_RTX.
2309 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
2310 * tree-loop-distribution.c: Likewise.
2312 2010-06-01 Jan Hubicka <jh@suse.cz>
2314 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
2316 2010-06-01 Jan Hubicka <jh@suse.cz>
2318 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
2319 remove return value.
2320 (split_bbs_on_noreturn_calls) .... here.
2321 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
2322 * tree-flow.h (fixup_noreturn_call): New.
2324 2010-06-01 Jan Hubicka <jh@suse.cz>
2326 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
2328 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
2330 * tree.h (build_nt_call_list): Delete.
2331 * tree.c (build_nt_call_list): Delete.
2333 2010-06-01 Jan Hubicka <jh@suse.cz>
2335 * fwprop.c: Make emit-rtl.h include last.
2336 * rtlanal.c: Include emit-rtl.h.
2337 * genautomata.c: Output emit-rtl include into insn-automata.c
2338 * df-scan.c: Include emit-rtl.h.
2339 * haifa-sched.c: Indlude emit-rtl.h.
2340 * mode-switching.c: Indlude emit-rtl.h.
2341 * graph.c: Indlude emit-rtl.h.
2342 * sel-sched.c: Include emit-rtl.h.
2343 * sel-sched-ir.c: Include emit-rtl.h.
2344 * ira-build.c: Include emit-rtl.h.
2345 * emit-rtl.c: (first_insn, last_insn): Remove defines.
2346 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
2348 (set_new_first_and_last_insn, get_last_insn_anywhere,
2349 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
2350 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
2351 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
2352 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
2353 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
2354 Use accessor functions.
2355 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
2356 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
2357 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
2358 mem_expr_equal_p): Move here from rtl.h.
2359 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
2360 Move here from emit-rtl.c; make inline.
2361 * cfglayout.h: Include emit-rtl.h.
2362 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
2363 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
2364 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
2365 mem_expr_equal_p, get_insns, set_first-insn,
2366 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
2367 * reg-stack.c: Include emit-rtl.h.
2370 2010-06-01 Jan Hubicka <jh@suse.cz>
2372 * cgraph.h (tree_function_versioning): Update prototype.
2373 (cgraph_function_versioning): Update prototype.
2374 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
2376 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
2377 (cgraph_materialize_clone, save_inline_function_body): Update use of
2378 tree_function_versioning.
2379 * tree-inline.c (copy_bb): Look for previous copied block to link
2380 after; fix debug output.
2381 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
2382 (copy_body): Likewise.
2383 (expand_call_inline): Update use of copy_body.
2384 (tree_function_versioning): Update use of copy body; accept
2385 blocks_to_copy and new_entry.
2387 2010-06-01 Jan Hubicka <jh@suse.cz>
2389 * gegenrtl.c: Remove unnecesary prototypes.
2391 (gendef): Produce static inline.
2393 (main): Do not decode parameters; generate header only.
2394 * Makefile.in (genrtl.c): Remove.
2396 2010-06-01 Jan Hubicka <jh@suse.cz>
2398 * tree-switch-conversion.c (build_one_array): Make it readonly.
2400 2010-06-01 Richard Guenther <rguenther@suse.de>
2402 * optabs.c (init_optabs): Guard all accesses to reinit.
2403 * ipa-pure-const.c (propagate): Fix another typo.
2404 * opts.c (common_handle_option): Split assignment to bool.
2405 * c-opts.c (c_common_handle_option): Likewise.
2407 2010-06-01 Arnaud Charlet <charlet@adacore.com>
2408 Matthew Gingell <gingell@adacore.com>
2410 * doc/invoke.texi: Mention -fdump-ada-spec.
2411 * tree-dump.c (dump_files): Add ada-spec.
2412 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
2413 * tree-pass.h (tree_dump_index): Add TDI_ada.
2414 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
2415 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
2416 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
2417 * c-decl.c: Include c-ada-spec.h.
2418 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
2420 (c_write_global_declarations): Add handling of -fdump-ada-spec.
2421 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
2422 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
2423 * c-ada-spec.h, c-ada-spec.c: New files.
2425 2010-06-01 Richard Guenther <rguenther@suse.de>
2428 * ipa-pure-const.c (get_function_state): Hand back varying state
2429 if we do not have one.
2430 (has_function_state): New function.
2431 (duplicate_node_data): Adjust.
2432 (remove_node_data): Likewise.
2433 (pure_const_write_summary): Likewise.
2434 (propagate): Likewise. Fix typo.
2436 2010-06-01 Jan Hubicka <jh@suse.cz>
2438 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
2439 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
2440 (execute_all_ipa_transforms): Do not play with the states.
2442 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
2444 * config/arm/t-linux-androideabi: New.
2445 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
2447 2010-06-01 Jan Hubicka <jh@suse.cz>
2449 * tree-inline.c (estimate_num_insns): For stdarg functions look
2450 into call statement to count cost of argument passing.
2452 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
2454 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
2455 argument for fprintf.
2456 (ix86_output_addr_diff_elt): Likewise.
2457 (x86_function_profiler): Likewise.
2458 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
2459 (LPREFIX): Likewise.
2460 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2462 2010-05-31 Jakub Jelinek <jakub@redhat.com>
2465 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
2466 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
2467 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
2468 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
2469 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
2470 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
2471 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
2472 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
2475 2010-05-31 Jan Hubicka <jh@suse.cz>
2477 * tree.h (tree_range_check_failed): Declare noreturn.
2479 2010-05-31 Jan Hubicka <jh@suse.cz>
2481 * gimple.c (gimple_call_builtin_p): New function.
2482 * gimple.h (gimple_call_builtin_p): Declare.
2483 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
2485 (execute_warn_function_return): BUILT_IN_RETURN is return.
2486 (split_critical_edges): Return edges are not critical.
2487 (is_ctrl_altering_stmt): Builtin_in_return is altering.
2488 (gimple_verify_flow_info): Handle built_in_return.
2489 (execute_warn_function_return): Handle built_in_return.
2490 * ipa-pure-const.c (check_call): Ignore builtin_return.
2492 2010-05-31 Jakub Jelinek <jakub@redhat.com>
2495 * expr.c (expand_assignment): Don't store anything for out-of-bounds
2496 array accesses with non-MEM.
2498 PR tree-optimization/44182
2499 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
2500 newly needs to end a bb is followed by debug stmts, instead return
2501 true from the function at the end.
2502 (maybe_move_debug_stmts_to_successors): New function.
2503 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
2505 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
2508 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
2510 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
2512 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
2513 for nested functions in non-optimized compilation.
2515 2010-05-31 Richard Guenther <rguenther@suse.de>
2517 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
2519 2010-05-30 Jan Hubicka <jh@suse.cz>
2521 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
2523 2010-05-30 Richard Guenther <rguenther@suse.de>
2526 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
2527 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
2530 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
2532 * config/darwin.c (output_objc_section_asm_op): Add comment.
2533 (name_needs_quotes): Add '_' to list of valid comment chars.
2534 (machopic_output_function_base_name): Remove unneeded quotes.
2535 (darwin_encode_section_info): Adjust asm whitespace.
2536 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
2537 (ASM_OUTPUT_LOCAL): Ditto.
2538 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
2539 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
2540 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
2542 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
2544 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
2545 RS6000_OUTPUT_BASENAME unconditionally.
2546 (rs6000_output_function_epilogue): Likewise.
2548 2010-05-30 Jan Hubicka <jh@suse.cz>
2550 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
2553 2010-05-30 Richard Guenther <rguenther@suse.de>
2555 * tree-cfg.c (verify_gimple_assign_single): Implement
2556 verification for COND_EXPR rhs.
2558 2010-05-30 Jan Hubicka <jh@suse.cz>
2560 * cgraph.h (cgraph_dump_file): Declare.
2561 * cgraphunit.c (cgraph_dump_file): Export.
2562 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
2564 2010-05-30 Jan Hubicka <jh@suse.cz>
2566 * dwarf2out.c (reference_to_unused,
2567 premark_types_used_by_global_vars_helper): Avoid creation of new
2570 2010-05-30 Jan Hubicka <jh@suse.cz>
2572 * cgraph.h (cgraph_node_cannot_return,
2573 cgraph_edge_cannot_lead_to_return): New functions.
2574 * cgraph.c (cgraph_node_cannot_return,
2575 cgraph_edge_cannot_lead_to_return): Use them.
2576 * ipa-pure-const.c (pure_const_names): New static var.
2577 (check_call): Handle calls not leading to return.
2578 (pure_const_read_summary): Dump info read.
2579 (propagate): Dump info about propagation process; ignore side effects
2580 of functions not leading to exit; fix handling of pure functions.
2582 2010-05-30 Jan Hubicka <jh@suse.cz>
2584 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
2585 for tail call epilogues.
2587 2010-05-30 Jan Hubicka <jh@suse.cz>
2589 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
2590 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
2593 2010-05-29 Jan Hubicka <jh@suse.cz>
2595 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
2596 node; remove references in node we no longer keep in cgrpah but need
2599 2010-05-29 Jan Hubicka <jh@suse.cz>
2601 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
2603 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2606 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
2608 2010-05-29 Jan Hubicka <jh@suse.cz>
2610 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
2611 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
2612 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
2613 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
2614 debug_names_replaced_by, debug_update_ssa): Likewise.
2615 * sbitmap.c (debug_sbitmap): Likewise.
2616 * genrecog.c (debug_decision, debug_decision_list): Likewise.
2617 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
2618 debug_tree_chain): Likewise.
2619 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
2620 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
2621 * optabs.c (debug_optab_libfuncs): Likewise.
2622 (verify_loop_closed_ssa): Likewise.
2623 * value-prof.c (verify_histograms): Likewise.
2624 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
2625 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
2626 * cfghooks.c (verify_flow_info): Likewise.
2627 * fold-const.c (debug_fold_checksum): Likewise.
2628 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
2629 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
2631 * omega.c (debug_omega_problem): Likewise.
2632 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
2633 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
2634 * dominance.c (verify_dominators, debug_dominance_info,
2635 debug_dominance_tree): Likewise.
2636 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
2637 * df_regno_debug, df_ref_debug,
2638 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
2639 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
2640 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
2641 * sel-sched.c (debug_state): Likewise.
2642 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
2644 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
2645 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
2646 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
2647 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
2649 * c-pretty-print.c (debug_c_tree): Likewise.
2650 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
2651 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
2652 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
2653 * ebitmap.c (debug_ebitmap): Likewise.
2654 * function.c (debug_find_var_in_block_tree): Likewise.
2655 * print-rtl.c (debug_rtx): Likewise.
2656 (debug_rtx_count): Likewise.
2657 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
2658 * stor-layout.c (debug_rli): Likewise.
2659 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
2660 * tree-data-ref.c (debug_data_references,
2661 debug_data_dependence_relations, debug_data_reference,
2662 debug_data_dependence_relation, debug_rdg_vertex,
2663 debug_rdg_component, debug_rdg): Likewise.
2664 * tree-affine.c (debug_aff): Likewise.
2665 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
2667 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
2668 * emit-rtl.c (verify_rtl_sharing): Likewise.
2669 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
2670 debug_value_expressions): Likewise.
2671 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
2672 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
2673 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
2674 * cfglayout.c (verify_insn_chain): Likewise.
2675 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
2676 debug_clast_stmt, debug_generated_program): Likewise.
2677 * ggc-page.c (debug_print_page_list): Likewise.
2678 * tree-ssa-ter.c (debug_ter): Likewise.
2679 * graphite-dependences.c (debug_pddr): Likewise.
2680 * sched-deps.c (debug_ds): Likewise.
2681 * tree-ssa.c (verify_ssa): Likewise.
2682 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
2683 debug_scattering_functions, debug_iteration_domains, debug_pdr,
2684 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
2685 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
2686 * tree-inline.c (debug_find_tree): Likewise.
2687 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
2688 debug_ppl_powerset_matrix): Likewise.
2689 * var-tracking.c (debug_dv): Likewise.
2690 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
2691 * cfgloop.c (verify_loop_structure): Likewise.
2692 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
2693 * c-common.c (verify_sequence_points): Likewise.
2694 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
2695 debug_candidates, debug_rgn_dependencies): Likewise.
2696 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
2697 * debug_constraint_graph, debug_solution_for_var,
2698 debug_sa_points_to_info): Likewise.
2699 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
2701 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
2702 debug_loops, debug_loop, debug_loop_num): Likewise.
2703 * passes.c (debug_pass): Likewise.
2704 (dump_properties): Likewise; add cfglayout property.
2705 (debug_properties): Likewise.
2706 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
2707 * varpool.c (debug_varpool): Likewise.
2708 * regcprop.c (debug_value_data): Likewise.
2709 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
2710 debug_immediate_uses_for): Likewise.
2712 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
2715 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
2716 Filter out insn-flags.h.
2718 2010-05-29 Jan Hubicka <jh@suse.cz>
2720 * cgraph.h (struct varpool_node_set_def,
2721 struct cgraph_node_set_def): Remove unused AUX pointer.
2722 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
2725 2010-05-29 Jan Hubicka <jh@suse.cz>
2728 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
2730 2010-05-29 Richard Guenther <rguenther@suse.de>
2732 * lto-streamer.c (cached_bp): New global variable.
2733 (bitpack_create): Return the cached bitpack, if available.
2734 (bitpack_delete): Clear and cache the bitpack, if appropriate.
2735 (bp_pack_value): Remove redundant asserts.
2737 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
2740 * tree-if-conv.c (is_true_predicate): New.
2741 (is_predicated): Use is_true_predicate.
2742 (add_to_predicate_list): Same. Do not use unshare_expr.
2743 (add_to_dst_predicate_list): Same.
2745 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
2747 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
2749 (predicate_bbs): Same.
2750 (clean_predicate_lists): Same.
2751 (find_phi_replacement_condition): Do not AND the predicate from
2754 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
2757 * Makefile.in (build/gencondmd.o): Add a missing `\'.
2759 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2762 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
2763 (negdf2): Adjust expander pattern and use negdf2_slow.
2766 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
2768 * basic-block.h (struct control_flow_graph): Move last_label_uid field
2770 * df.h (struct df_base_ref): Move regno field up.
2771 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
2772 * expr.h (struct separate_ops): Move location field up.
2773 * optabs.h (struct optab_d): Move libcall_basename field down.
2774 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
2775 * config/i386/i386.h (struct machine_function): Convert call_abi field
2776 into a bitfield. Move cfa field to the end of the structure.
2778 2010-05-29 Jan Hubicka <jh@suse.cz>
2780 * varpool.c (varpool_get_node): Fix lookup.
2782 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2784 * config/spu/spu-protos.h: Do not include rtl.h. Protect
2785 RTL specific prototypes with #ifdef RTX_CODE.
2786 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
2787 * config/spu/t-spu-elf: Fix dependencies.
2789 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
2791 2010-05-29 Mike Stump <mikestump@comcast.net>
2794 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
2795 TM_H when building to avoid dependency loops.
2797 2010-05-29 Jan Hubicka <jh@suse.cz>
2799 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
2800 refs and body; not the whole node for masters of materialized
2803 2010-05-29 Mike Stump <mikestump@comcast.net>
2805 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
2807 2010-05-29 Jan Hubicka <jh@suse.cz>
2809 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
2810 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
2811 use of clone_function_name.
2812 * cgraph.h (cgraph_create_virtual_clone,
2813 cgraph_function_versioning): update prototypes.
2814 (clone_function_name): Declare.
2815 * ipa-cp.c (ipcp_insert_stage): Update call of
2816 cgraph_create_virtual_clone.
2817 * omp-low.c (create_omp_child_function_name): Use
2818 cgraph_create_virtual_clone.
2819 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
2820 (cgraph_function_versioning): Take SUFFIX argument; produce new name
2821 and make decl local.
2823 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2825 * vec.h: Include statistics.h
2826 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
2829 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2831 * c-lex.c: Do not include c-tree.h.
2832 * c-pretty-print.c: Likewise.
2833 * c-opts.c: Likewise.
2834 * c-gimplify.c: Likewise.
2835 * c-common.c: Likewise.
2836 * c-dump.c: Likewise. Include c-common.h.
2838 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2840 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
2841 before including diagnostic-core.h.
2842 (c_cpp_error): New prototype moved from c-tree.h.
2843 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
2844 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
2845 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
2846 (c_cpp_error): Prototype moved to c-common.h.
2847 * Makefile.in: Update dependency for C_COMMON_H.
2849 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
2851 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
2852 * c-common.c (c_register_addr_space): Remove here.
2853 * c-decl.c (c_register_addr_space): Re-add here.
2855 2010-05-28 Mike Stump <mikestump@comcast.net>
2857 * config/darwin-c.c: Remove c-tree.h include.
2859 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2861 * gcc.c: Include diagnostic.h.
2862 (error_count): Remove. All users changed to use errorcount.
2863 (programname): Remove. All users changed to use progname.
2864 (fancy_abort, internal_error, fatal_error, error, warning, inform,
2866 (execute): Don't include "Internal error" and bug reporting
2867 information in argument of internal_error call.
2868 (process_command): Don't increment error_count after calling
2870 (input_filename): Rename to gcc_input_filename. All users
2872 (main): Call diagnostic_initialize. Register delete_temp_files
2873 with atexit. Use seen_error to test for errors.
2874 * gcc.h: Include diagnostic-core.h.
2875 (fatal_error, error, warning): Remove.
2876 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
2877 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
2878 (gcc.o): Update dependencies.
2880 2010-05-28 Jeff Law <law@redhat.com>
2882 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
2884 * ira.h (ira_bad_reload_regno): Declare
2885 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
2887 * ira-color.c (update_curr_costs): Free updated hard reg costs.
2888 (ira_reassign_conflict_allocnos): Remove bogus asserts.
2889 (allocno_reload_assign): Likewise.
2891 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
2893 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
2896 2010-05-28 Richard Guenther <rguenther@suse.de>
2899 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
2900 Stream fixed-point constants mode.
2901 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
2903 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
2904 Stream fixed-point constants mode.
2905 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
2908 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2910 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
2911 only place it was called from.
2912 (number_of_latch_executions): Do not return chrec_dont_know when the
2913 may_be_zero is a runtime condition: instead, return a COND_EXPR
2914 including the may_be_zero condition.
2915 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
2917 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
2920 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2922 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
2923 generate COND_EXPRs for degenerate_phi_result.
2925 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
2928 * tree-if-conv.c (if_convertible_loop_p): Check the
2929 if-convertibility of phi nodes in non predicated BBs.
2931 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2933 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
2935 2010-05-28 Joseph Myers <joseph@codesourcery.com>
2938 * gcc.c (inform, warning, inform): New functions.
2939 (fatal_ice): Rename to internal_error; change cmsgid parameter to
2940 gmsgid. All callers changed.
2941 (notice): Rename to fnotice; add parameter fp. All callers
2943 (fatal_error): Rename to fatal_signal. All users changed.
2944 (fatal): Rename to fatal_error; change cmsgid parameter to
2945 gmsgid. All callers changed.
2946 (process_command): Use warning instead of error for warnings.
2947 (end_going_arg): Don't use _() around argument of error.
2948 (do_spec_1): Use inform for message from %n specs. Use warning
2949 instead of error for warnings.
2950 (main): Use inform for comparison messages. Use warning for
2951 message about unused linker input.
2952 (error): Increment error_count. Print "error: ".
2953 * gcc.h (fatal): Change to fatal_error.
2955 * config/darwin-driver.c (darwin_default_min_version): Use warning
2956 instead of fprintf for warnings.
2957 * cppspec.c (lang_specific_driver): Use fatal_error instead of
2960 2010-05-28 Julian Brown <julian@codesourcery.com>
2962 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
2963 (*thumb2_addsi3_compare0_scratch): New.
2964 * config/arm/constraints.md (Pv): New.
2965 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
2967 (*addsi3_compare0_scratch): Likewise.
2969 2010-05-28 Jan Hubicka <jh@suse.cz>
2971 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
2973 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
2974 only on local statics.
2976 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
2978 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
2980 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
2983 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
2984 (OPTION_GLIBC): Define.
2986 2010-05-28 Jakub Jelinek <jakub@redhat.com>
2989 * dwarf2out.c (double_int_type_size_in_bits): New function.
2990 (round_up_to_align): Change first argument and return value to
2992 (field_byte_offset): Work internally on double_ints.
2995 * builtins.c (expand_movstr): Use a temporary pseudo instead
2996 of target even when target is not NULL and not const0_rtx, but
2997 fails movstr predicate.
2998 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
3000 2010-05-28 Joseph Myers <joseph@codesourcery.com>
3002 * final.c (rest_of_clean_state): Use %m in errors instead of
3004 * gengtype.c (read_input_list, close_output_files): Use xstrerror
3005 instead of strerror.
3006 * toplev.c (process_options): Use %m in errors instead of strerror
3008 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
3011 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
3013 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
3014 (ix86_canonical_va_list_type): Make static. Add declaration.
3015 (ix86_enum_va_list): Make static. Reindent.
3016 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
3017 (ix86_canonical_va_list_type): Ditto.
3018 (ix86_enum_va_list): Ditto.
3020 2010-05-28 Richard Guenther <rguenther@suse.de>
3022 * lto-wrapper.c (run_gcc): With -save-temps generate a
3023 user-visible ltrans filename. Fixup ltrans unit numbering.
3025 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
3027 * c-common.c (c_common_nodes_and_builtins): Replace use
3028 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
3029 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
3030 to ix86_enum_va_list.
3031 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
3032 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
3033 (TARGET_ENUM_VA_LIST_P): Add hook description.
3034 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
3035 * target.h (gcc_target): Add enum_va_list hook.
3038 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
3039 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
3040 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
3042 2010-05-28 Alan Modra <amodra@gmail.com>
3045 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
3046 emit_library_call machinery to set up __tls_get_addr calls.
3048 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3050 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
3052 2010-05-28 Dodji Seketeli <dodji@redhat.com>
3054 Revert fix for PR c++/44188
3055 * c-common.c (is_typedef_decl): Revert the moving of this
3057 * tree.c (is_typedef_decl): ... here.
3058 (typdef_variant_p): Revert the moving of this definition
3059 here from gcc/cp/tree.c.
3060 * c-common.h (is_typedef_decl): Revert the moving of this
3062 * tree.h (is_typedef_decl): ... here.
3063 (typedef_variant_p): Revert the moving of this declaration here
3064 from gcc/cp/cp-tree.h
3065 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
3066 (gen_tagged_type_die): Revert the splitting out of ...
3067 (gen_type_die_with_usage): ... this function. Revert the anonymous
3068 tagged type handling.
3069 (gen_typedef_die): Revert emitting DW_TAG_typedef for
3070 typedefs naming anonymous tagged types.
3072 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
3074 * config/rs6000/rs6000-modes.def (PSImode): Delete.
3076 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
3078 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
3079 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
3081 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
3083 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
3084 XER_REGS to CA_REGS throughout.
3085 * config/rs6000/rs6000.h: Same.
3086 (ADDITIONAL_REGISTER_NAMES): Add "xer".
3087 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
3088 that mode_iterator "P" is the size for arithmetic carries as well.
3089 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
3091 2010-05-28 Jakub Jelinek <jakub@redhat.com>
3094 * combine.c (struct rtx_subst_pair): Define unconditionally.
3095 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
3096 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
3097 Call make_compound_operation on pair->to.
3098 (propagate_for_debug): Don't call make_compound_operation here.
3099 Always use simplify_replace_fn_rtx.
3101 2010-05-27 Sterling Augustine <sterling@tensilica.com>
3103 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
3104 * config/xtensa/xtensa.c (override_options): Check
3105 TARGET_FORCE_NO_PIC and set flag_pic.
3106 * config/xtensa/xtensa.opt: Document -mforce-no-pic
3108 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
3111 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
3112 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
3114 2010-05-27 Joseph Myers <joseph@codesourcery.com>
3116 * diagnostic-core.h: New. Contents moved from diagnostic.h and
3118 * diagnostic.c: Don't include toplev.h.
3119 (progname): Define. Moved from toplev.c.
3120 (seen_error): New function.
3121 * diagnostic.h: Include diagnostic-core.h.
3122 (diagnostic_t, emit_diagnostic): Don't declare here.
3123 * toplev.c (progname): Move to toplev.c.
3124 (emit_debug_global_declarations, compile_file, finalize,
3125 do_compile, toplev_main): Use seen_error.
3126 * toplev.h: Include diagnostic-core.h.
3127 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
3128 internal_error, warning, warning_at, error, error_n, error_at,
3129 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
3130 verbatim, fnotice, progname): Move to diagnostic-core.h.
3131 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
3132 (expand_builtin_expect): Use seen_error.
3133 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
3134 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
3135 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
3136 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
3137 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
3138 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
3139 errorcount for errors.
3140 * c-opts.c (c_common_finish): Use seen_error.
3141 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
3142 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
3143 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
3144 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
3145 (get_coverage_counts): Use seen_error.
3146 * dwarf2out.c (dwarf2out_finish): Use seen_error.
3147 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
3148 gimplify_body): Use seen_error.
3149 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
3150 * ipa-pure-const.c (gate_pure_const): Use seen_error.
3151 * ipa-reference.c (gate_reference): Use seen_error.
3152 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
3153 * lambda-code.c: Include diagnostic-core.h instead of
3155 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
3156 * lto-compress.c: Include diagnostic-core.h instead of
3158 * lto-section-in.c: Include diagnostic-core.h instead of
3160 * lto-streamer-out.c: Include diagnostic-core.h instead of
3162 * lto-streamer.c: Include diagnostic-core.h instead of
3164 (gate_lto_out): Use seen_error.
3165 * matrix-reorg.c: Include diagnostic-core.h instead of
3167 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
3168 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
3169 (gate_expand_omp, lower_omp_1): Use seen_error.
3170 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
3171 (rest_of_decl_compilation, rest_of_type_compilation,
3172 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
3173 * tree-cfg.c (label_to_block_fn): Use seen_error.
3174 * tree-inline.c (optimize_inline_calls): Use seen_error.
3175 * tree-mudflap.c (mudflap_finish_file): Use
3177 * tree-optimize.c (gate_all_optimizations,
3178 gate_all_early_local_passes, gate_all_early_optimizations): Use
3180 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
3181 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
3182 (varpool_remove_unreferenced_decls,
3183 varpool_assemble_pending_decls): Use seen_error.
3184 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
3185 (TOPLEV_H, DIAGNOSTIC_H): Update.
3186 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
3187 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
3188 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
3189 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
3190 coverage.o, lambda-code.o): Update dependencies.
3192 2010-05-25 Dodji Seketeli <dodji@redhat.com>
3195 * c-common.c (is_typedef_decl): Move this definition ...
3196 * tree.c (is_typedef_decl): ... here.
3197 (typdef_variant_p): Move definition here from gcc/cp/tree.c.
3198 * c-common.h (is_typedef_decl): Move this declaration ...
3199 * tree.h (is_typedef_decl): ... here.
3200 (typedef_variant_p): Move declaration here from gcc/cp/cp-tree.h
3201 * dwarf2out.c (is_naming_typedef_decl): New function.
3202 (gen_tagged_type_die): Split out of ...
3203 (gen_type_die_with_usage): ... this function. When an anonymous
3204 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
3205 is emitted for the typedef.
3206 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
3207 anonymous tagged types.
3209 2010-05-27 Jason Merrill <jason@redhat.com>
3211 * print-tree.c (debug_vec_tree): New fn.
3212 (print_vec_tree): New fn.
3213 * tree.h: Declare them.
3214 * gdbinit.in (pvt): New command.
3216 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
3218 * gdbinit.in (pdd): New command.
3220 2010-05-27 Jan Hubicka <jh@suse.cz>
3222 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
3223 (update_caller_keys): Return early if there are no callers;
3224 only update fibheap when decresing the key.
3225 (update_callee_keys): Avoid recursion.
3226 (decide_inlining_of_small_functions): When badness does not match;
3227 re-insert into fibheap.
3229 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
3231 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
3232 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
3233 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
3234 (ALL_HOST_OBJS): Now a union of the above two.
3235 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
3236 all files in ALL_HOST_FRONTEND_OBJS.
3237 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
3239 * c-common.c: Pretend to be a backend file by undefining
3240 IN_GCC_FRONTEND (still need rtl.h here).
3242 2010-05-27 Jan Hubicka <jh@suse.cz>
3244 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
3245 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
3247 2010-05-27 Jan Hubicka <jh@suse.cz>
3249 * sched-ebb.c: Rename struct deps to struct deps_desc.
3251 * sel-sched-ir.c: Likewise.
3252 * sched-deps.c: Likewise.
3253 * sched-int.h: Likewise.
3254 * sched-rgn.c: Likewise.
3256 2010-05-27 Jon Beniston <jon@beniston.com>
3259 * config/lm32/lm32.h: Remove definition of
3260 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
3262 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
3265 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
3267 2010-05-27 Richard Guenther <rguenther@suse.de>
3269 PR tree-optimization/44284
3270 * tree-vect-stmts.c (vectorizable_assignment): Handle
3271 sign-changing conversions as simple copy.
3273 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3275 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
3277 (__gthread_active_p): Check for pthread_create if compiling against
3280 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3282 Support compilation for Android platform. Reimplement -mandroid.
3284 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
3285 (*android*): Set ANDROID_DEFAULT.
3286 (arm*-*-linux*): Include linux-android.h.
3287 (arm*-*-eabi*): Don't include previous -mandroid implementation.
3288 * config/arm/eabi.h: Remove, move Android-specific parts ...
3289 * config/linux-android.h: ... here. New file.
3290 * config/arm/eabi.opt: Rename to ...
3291 * config/linux-android.opt: ... this.
3292 (mandroid): Allow -mno-android option. Initialize based on
3294 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
3295 Move logic to corresponding LINUX_TARGET_* macros.
3296 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
3297 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
3298 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
3299 Android definitions.
3300 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
3301 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
3304 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
3306 Add support for Bionic C library
3308 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
3310 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
3311 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
3313 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
3314 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
3315 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
3316 to support multiple C libraries. Handle Bionic.
3317 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
3318 (BIONIC_DYNAMIC_LINKER64): Define.
3319 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
3321 (TARGET_HAS_SINCOS): Enable for Bionic.
3323 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
3324 the last option specified on command line take effect.
3325 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
3327 (mglibc, muclibc): Update.
3329 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
3330 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
3333 * doc/invoke.texi (-mglibc, -muclibc): Update.
3334 (-mbionic): Document.
3336 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3338 * c-common.h (c_register_addr_space): Add prototype.
3339 (ADDR_SPACE_KEYWORD): Remove.
3340 * c-common.c (c_register_addr_space): New function.
3341 (c_addr_space_name): Reimplement.
3342 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
3344 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
3345 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
3347 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
3348 Remove TARGET_ADDR_SPACE_KEYWORDS.
3350 2010-05-27 Joseph Myers <joseph@codesourcery.com>
3352 * input.c: New file.
3353 * input.h (main_input_filename): Move declaration to toplev.h.
3354 * toplev.c (input_location, line_table): Move to input.c
3355 * toplev.h (main_input_filename): Move declaration from input.h.
3356 * tree.c (expand_location): Move to input.c.
3357 * Makefile.in (OBJS-common): Add input.o.
3358 (input.o): Add dependencies.
3360 2010-05-27 Richard Guenther <rguenther@suse.de>
3362 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
3363 for non-existant files.
3364 (fork_execute): Mark args_name file as deleted.
3366 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
3369 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
3370 (narrow_signed_type): Likewise.
3372 2010-05-26 Jan Hubicka <jh@suse.cz>
3374 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
3375 edge only when checking is enabled; check using former_clone_of;
3376 check inline clones too.
3377 (cgraph_materialize_clone): Record former_clone_of pointer.
3378 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
3379 combining redirections; dump args_to_skip bitmap
3380 (cgraph_materialize_all_clones): Do no redirection here.
3381 * ipa-inline.c (inline_transform): Do redirection here.
3382 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
3385 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3387 * config/avr/avr-c.c: Do not include regs.h.
3388 Include cpplib.h for cpp_define and tree.h for c-common.h.
3389 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
3390 * config/avr/t-avr: Fix dependencies for avr-c.o.
3392 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
3394 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
3395 string instead of SYMBOL_REF rtx.
3396 * rtl.h (set_stack_check_libfunc): Move prototype from here...
3397 * libfuncs.h: ...to here. Adjust for explow.c change.
3399 2010-05-26 Joseph Myers <joseph@codesourcery.com>
3401 * pretty-print.c: Don't include ggc.h.
3402 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
3403 (identifier_to_locale): Use them for allocation.
3404 * pretty-print.h (identifier_to_locale_alloc,
3405 identifier_to_locale_free): Declare.
3406 * toplev.c (alloc_for_identifier_to_locale): New.