OSDN Git Service

Add a stride parameter to scop_do_strip_mine.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2010-12-01  Sebastian Pop  <sebastian.pop@amd.com>
2
3         * graphite-blocking.c (lst_do_strip_mine_loop): Extra parameter
4         for the stride.
5         (lst_do_strip_mine): Same.
6         (scop_do_strip_mine): Same.
7         * graphite-poly.c (apply_poly_transforms): Update call to
8         scop_do_strip_mine.
9         * graphite-poly.h (scop_do_strip_mine): Update declaration.
10
11 2010-12-01  Jan Hubicka  <jh@suse.cz>
12
13         * tree.c (build_common_builtin_nodes): Do not initialize
14         BUILT_IN_PROFILE_FUNC_ENTER and BUILT_IN_PROFILE_FUNC_EXIT.
15         * builtins.c (expand_builtin_profile_func): Remove.
16         (expand_builtin): Do not handle BUILT_IN_PROFILE_FUNC_ENTER and
17         BUILT_IN_PROFILE_FUNC_EXIT.
18         * builtins.def (profile_func_enter, profile_func_exit): Remove stubs.
19         (__cyg_profile_func_enter, __cyg_profile_func_exit): New.
20         * gimplify.c (gimplify_function_tree): Reorganize code calling
21         profiling functions.
22
23 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
24
25         * opts.c: Expand comment on tm.h include.
26
27 2010-12-01  Yao Qi  <yao@codesourcery.com> 
28
29         * config/arm/predicates.md ("vfp_register_operand"): Return true for 
30         VFP_D0_D7_REGS classes.
31
32 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
33
34         * common.opt (flag_stack_check): New Variable entry.
35         (fcompare-debug-second): Use Var.
36         * flags.h (flag_compare_debug, flag_stack_check): Remove.
37         * opts.c (flag_compare_debug): Remove.
38         (common_handle_option): Don't handle OPT_fcompare_debug_second.
39         Set opts->x_flag_stack_check for OPT_fstack_check_.
40         * toplev.c (flag_stack_check): Remove.
41
42 2010-12-01  Joseph Myers  <joseph@codesourcery.com>
43
44         * common.opt (main_input_filename, main_input_basename,
45         main_input_baselength): New Variable entries.  From toplev.c.
46         * final.c (output_quoted_string): Move from toplev.c.
47         * output.h (output_quoted_string): Move from toplev.h.
48         * opts-global.c (read_cmdline_options): Use gcc_options pointer to
49         access main_input_filename, main_input_baselength and
50         main_input_basename.
51         * targhooks.c: Include intl.h and opts.h.
52         (option_affects_pch_p, default_get_pch_validity): Move from
53         toplev.c.
54         * targhooks.h (option_affects_pch_p, default_get_pch_validity):
55         Move from toplev.h.
56         * toplev.c (main_input_filename, main_input_basename,
57         main_input_baselength): Move to common.opt.
58         (output_quoted_string): Move to final.c.
59         (warn_deprecated_use): Move to tree.c.
60         (option_affects_pch_p, default_get_pch_validity,
61         pch_option_mismatch, default_pch_valid_p): Move to targhooks.c.
62         * toplev.h (skip_leading_substring): Move to tree-dump.c.
63         (warn_deprecated_use): Move to tree.h.
64         (output_quoted_string): Move to output.h.
65         (main_input_filename, main_input_basename, main_input_baselength):
66         Move to common.opt.
67         (default_get_pch_validity, default_pch_valid_p): Move to
68         targhooks.c.
69         * tree-dump.c (skip_leading_substring): Move from toplev.h.
70         * tree.c (warn_deprecated_use): Move from toplev.c.
71         * tree.h (warn_deprecated_use): Move from toplev.h.
72         * c-typeck.c, config/alpha/alpha.c, config/arc/arc.c,
73         config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
74         config/cris/cris.c, config/crx/crx.c, config/fr30/fr30.c,
75         config/frv/frv.c, config/h8300/h8300.c, config/ia64/ia64.c,
76         config/iq2000/iq2000.c, config/lm32/lm32.c, config/m32c/m32c.c,
77         config/m32r/m32r.c, config/m68hc11/m68hc11.c, config/m68k/m68k.c,
78         config/mcore/mcore.c, config/mep/mep.c,
79         config/microblaze/microblaze.c, config/mips/mips.c,
80         config/mmix/mmix.c, config/mn10300/mn10300.c,
81         config/moxie/moxie.c, config/pa/pa.c, config/pdp11/pdp11.c,
82         config/picochip/picochip.c, config/s390/s390.c,
83         config/score/score.c, config/sh/sh.c, config/sparc/sparc.c,
84         config/spu/spu.c, config/stormy16/stormy16.c, config/v850/v850.c,
85         config/vax/vax.c, config/xtensa/xtensa.c, gimple-low.c,
86         graphite-sese-to-poly.c, plugin.c, tree-cfg.c, tree-inline.c,
87         varasm.c, xcoffout.c: Don't include toplev.h.
88         * Makefile.in (c-typeck.o, tree-inline.o, tree-cfg.o,
89         gimple-low.o, graphite-sese-to-poly.o, targhooks.o, plugin.o,
90         varasm.o, xcoffout.o): Update dependencies.
91         * config/arm/t-arm (arm.o): Update dependencies.
92         * config/spu/t-spu-elf (spu.o): Update dependencies.
93
94 2010-12-01  Richard Guenther  <rguenther@suse.de>
95
96         PR tree-optimization/46730
97         * value-prof.c (gimple_ic): Always generate a separate merge BB.
98
99 2010-11-30  Ian Lance Taylor  <iant@google.com>
100
101         * config/i386/linux.h (ASM_SPEC): Pass -v as -v, not -V.  Remove
102         all of %{Qy:} %{!Qn:-Qy} %{n} %{T} %{Ym,*} %{Yd,*} %{Wa,*:%*}.
103         * config/i386/linux64.h (ASM_SPEC): Likewise.
104         * config/i386/mingw-w64.h (ASM_SPEC): Likewise.
105         * config/i386/sol2-10.h (ASM_SPEC) [USE_GAS]: Likewise.
106         * config/i386/vxworks.h (ASM_SPEC): Likewise.
107         * config/i386/x86-64.h (ASM_SPEC): Likewise.
108         * config/i386/sol2.h (ASM_SPEC): Remove %{Wa,*:%*}.
109         * config/i386/sol2-10.h (ASM_SPEC) [!USE_GAS]: Likewise.
110
111 2010-11-30  Nicola Pero  <nicola.pero@meta-innovation.com>
112
113         * c-decl.c (finish_function): Call objc_finish_function in
114         Objective-C.
115         * c-typeck.c (convert_for_assignment): Do not call
116         objc_type_quals_match().
117
118 2010-11-30  Richard Guenther  <rguenther@suse.de>
119
120         PR tree-optimization/46722
121         * tree-ssa-math-opts.c (convert_mult_to_fma): Get multiplication
122         operands as arguments.
123         (execute_optimize_widening_mul): Also handle power of two as
124         multiplication.
125
126 2010-11-30  Dave Korn  <dave.korn.cygwin@gmail.com>
127
128         PR middle-end/46709
129         * cgraphunit.c (process_function_and_variable_attributes): Fix
130         cut'n'pasteo.
131
132 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
133
134         * hwint.c:  New.  Extracted from toplev.c.
135         * hwint.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
136         Move from toplev.h.
137         * toplev.c (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
138         Move to hwint.c.
139         * toplev.h (clz_hwi, ctz_hwi, ffs_hwi, exact_log2, floor_log2):
140         Move to hwint.h.
141         * builtins.c, combine.c, config/i386/winnt.c, double-int.c,
142         explow.c, expmed.c, fold-const.c, ggc-page.c, ggc-zone.c, ifcvt.c,
143         ipa-struct-reorg.c, ira-color.c, matrix-reorg.c, omp-low.c,
144         real.c, recog.c, reload.c, rtlanal.c, simplify-rtx.c,
145         stor-layout.c, tree-dfa.c, tree-ssa-alias.c,
146         tree-ssa-loop-niter.c, tree-vect-data-refs.c,
147         tree-vect-loop-manip.c, tree-vect-loop.c, tree-vect-stmts.c,
148         tree-vrp.c: Don't include toplev.h.
149         * genattrtab.c, genconditions.c, genemit.c, genextract.c,
150         genoutput.c, genpeep.c, genpreds.c, genrecog.c: Don't include
151         toplev.h in generated output.
152         * Makefile.in (OBJS-common): Add hwint.o.
153         Dependencies for above files changed to remove toplev.h.
154         (hwint.o): New.
155         (insn-attrtab.o, insn-emit.o, insn-extract.o, insn-output.o,
156         insn-peep.o, insn-preds.o, insn-recog.o): Don't depend on
157         toplev.h.
158         * config/i386/t-cygming (winnt.o): Don't depend on toplev.h.
159         * config/i386/t-interix (winnt.o): Don't depend on toplev.h.
160
161 2010-11-30  Richard Guenther  <rguenther@suse.de>
162
163         PR tree-optimization/46717
164         * value-prof.c (gimple_ic): Preserve EH edges of the indirect
165         call.  Manually create EH edges for the direct call and update
166         target PHI nodes.
167
168 2010-11-30  Joseph Myers  <joseph@codesourcery.com>
169
170         * diagnostic-core.h: Include bversion.h.
171         * toplev.h: Don't include input.h or bversion.h.
172         (parse_optimize_options): Don't declare here.
173         * alias.c, auto-inc-dec.c, c-aux-info.c, c-convert.c, c-parser.c,
174         caller-save.c, cfg.c, cfganal.c, cfgbuild.c, cfgcleanup.c,
175         combine-stack-adj.c, config/arm/pe.c, config/darwin-c.c,
176         config/host-darwin.c, config/i386/host-cygwin.c,
177         config/i386/host-mingw32.c, config/i386/msformat-c.c,
178         config/i386/netware.c, config/i386/nwld.c,
179         config/i386/winnt-cxx.c, config/i386/winnt-stubs.c,
180         config/ia64/ia64-c.c, config/m32c/m32c-pragma.c,
181         config/mep/mep-pragma.c, config/microblaze/microblaze-c.c,
182         config/rs6000/host-darwin.c, config/rs6000/rs6000-c.c,
183         config/score/score3.c, config/score/score7.c,
184         config/sh/symbian-base.c, config/sh/symbian-c.c,
185         config/sh/symbian-cxx.c, config/sol2-c.c, config/sol2.c,
186         config/v850/v850-c.c, config/vxworks.c, convert.c, cppbuiltin.c,
187         cselib.c, dbgcnt.c, ddg.c, dfp.c, dominance.c, emit-rtl.c,
188         fixed-value.c, fwprop.c, ggc-common.c, gimple.c, gimplify.c,
189         graphite-blocking.c, graphite-clast-to-gimple.c,
190         graphite-dependences.c, graphite-flattening.c,
191         graphite-interchange.c, graphite-poly.c,
192         graphite-scop-detection.c, graphite.c, haifa-sched.c,
193         implicit-zee.c, integrate.c, ipa-pure-const.c, ipa-reference.c,
194         ira-build.c, ira-conflicts.c, ira-costs.c, ira-lives.c, jump.c,
195         lists.c, loop-doloop.c, loop-iv.c, lto-cgraph.c, lto-compress.c,
196         lto-opts.c, lto-section-in.c, lto-section-out.c,
197         lto-streamer-out.c, lto-symtab.c, modulo-sched.c, optabs.c,
198         params.c, postreload-gcse.c, postreload.c, predict.c, profile.c,
199         regcprop.c, reginfo.c, regmove.c, reorg.c, resource.c,
200         sched-deps.c, sched-ebb.c, sched-rgn.c, sdbout.c,
201         sel-sched-dump.c, sel-sched-ir.c, sese.c, stmt.c, targhooks.c,
202         tree-cfgcleanup.c, tree-mudflap.c, tree-nomudflap.c,
203         tree-object-size.c, tree-outof-ssa.c, tree-phinodes.c,
204         tree-profile.c, tree-sra.c, tree-ssa-ccp.c, tree-ssa-coalesce.c,
205         tree-ssa-live.c, tree-ssa-loop-prefetch.c, tree-ssa-loop.c,
206         tree-ssa-operands.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
207         tree-vect-patterns.c, value-prof.c, var-tracking.c, web.c: Don't
208         include toplev.h.
209         * Makefile.in (TOPLEV_H): Remove.  All uses changed to use
210         toplev.h.  Dependencies for above files and c-family files changed
211         to remove $(TOPLEV_H) or toplev.h.
212         (C_TREE_H): Don't include $(TOPLEV_H).
213         (DIAGNOSTIC_CORE_H): Use $(INPUT_H) instead of input.h.  Add
214         bversion.h.
215         * config/arm/t-pe, config/arm/t-wince-pe, config/i386/t-cygming,
216         config/ia64/t-ia64, config/mep/t-mep, config/score/t-score-elf,
217         config/t-darwin, config/t-sol2,
218         config/t-vxworks, config/v850/t-v850, config/v850/t-v850e:
219         Dependencies for above files changed to remove $(TOPLEV_H) or
220         toplev.h.
221
222 2010-11-30  Richard Guenther  <rguenther@suse.de>
223
224         PR lto/44986
225         * gcc.c (main): Use the first input with a compiler as infile
226         for link spec processing.
227
228 2010-11-30  Richard Guenther  <rguenther@suse.de>
229
230         PR lto/45949
231         * cgraphunit.c (ipa_passes): Stop after errors from
232         small IPA passes.
233
234 2010-11-30  Mingjie Xing  <mingjie.xing@gmail.com>
235
236         * gcc-plugin.h: Include coretypes.h.
237         * Makefile.in (FUNCTION_H): Add hard-reg-set.h.
238
239 2010-11-30  Laurynas Biveinis  <laurynas.biveinis@gmail.com>
240
241         * ggc-zone.c (ggc_pch_read): Fix conditional compilation.
242         * ggc-none.c (ggc_internal_alloc_zone_stat)
243         (ggc_internal_cleared_alloc_zone_stat): New.
244
245 2010-11-29  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
246
247         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Check
248         TARGET_SINGLE_PIC_BASE for RS6000_PIC_OFFSET_TABLE_REGNUM.
249         (rs6000_emit_prologue): Don't set PIC register if
250         TARGET_SINGLE_PIC_BASE.
251         * config/rs6000/rs6000.opt (msingle-pic-base): New option.
252         * doc/invoke.texi (msingle-pic-base): Document.
253
254 2010-11-29  H.J. Lu  <hongjiu.lu@intel.com>
255
256         PR driver/46712
257         * exec-tool.in (id): New.
258         Check and export LT_RCU_$id instead of LT_RCU.
259
260 2010-11-29  Zdenek Dvorak  <rakdver@kam.uniff.cz>
261
262         PR tree-optimization/46675
263         * tree-ssa-loop-niter.c (split_to_var_and_offset): Avoid overflow
264         in offset calculation.
265
266 2010-11-29  Jan Hubicka  <jh@suse.cz>
267
268         * collect2.c (main): Do not imply verbose output with
269         LTO and linker plugin.
270
271 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
272
273         * dwarf2out.c (print_die): Print the address of the current DIE or
274         of any DIE referenced by the current one.
275
276 2010-11-29  Dodji Seketeli  <dodji@redhat.com>
277
278         PR debug/46101
279         * dwarf2out.c (lookup_type_die_strip_naming_typedef): New
280         function.
281         (scope_die_for, gen_type_die_for_member): Replace uses of
282         lookup_type_die with use of lookup_type_die_strip_naming_typedef.
283
284 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
285
286         * config/darwin.c (darwin_mergeable_string_section): Remove blank line.
287         (darwin_asm_declare_object_name): Correct spelling.
288         (darwin_output_aligned_bss): Likewise.
289
290 2010-11-29  Iain Sandoe  <iains@gcc.gnu.org>
291             Mike Stump  <mrs@gcc.gnu.org>
292
293         PR target/26427
294         PR target/33120
295         PR testsuite/35710
296         * config/i386/darwin.h (ASM_OUTPUT_COMMON): Remove
297         (ASM_OUTPUT_LOCAL): Likewise.
298         * config/darwin-protos.h (darwin_asm_declare_object_name): New.
299         (darwin_output_aligned_bss): Likewise.
300         (darwin_asm_output_aligned_decl_local): Likewise.
301         (darwin_asm_output_aligned_decl_common): Likewise.
302         (darwin_use_anchors_for_symbol_p): Likewise.
303         * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Remove.
304         (TARGET_ASM_OUTPUT_ANCHOR): Define.
305         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
306         (DARWIN_SECTION_ANCHORS): Set to 1.
307         * config/darwin.c (emit_aligned_common): New var.
308         (darwin_init_sections): Check that the Darwin private zero-size section
309         marker is in range.
310         (darwin_text_section): Check for zero-sized objects.
311         (darwin_mergeable_string_section): Likewise.
312         (darwin_mergeable_constant_section): Likewise.
313         (machopic_select_section): Adjust to check for zero-sized objects.
314         Assert that OBJC meta data are non-zero sized.
315         (darwin_asm_declare_object_name): New.
316         (darwin_asm_declare_constant_name): Adjust for zero-sized
317         object sections.
318         (BYTES_ZFILL): Define.
319         (darwin_emit_weak_or_comdat): New.
320         (darwin_emit_local_bss): New.
321         (darwin_emit_common): New.
322         (darwin_output_aligned_bss): New.
323         (darwin_asm_output_aligned_decl_common): New.
324         (darwin_asm_output_aligned_decl_local): New.
325         (darwin_file_end): Disable subsections_via_symbols when section
326         anchoring is active.
327         (darwin_asm_output_anchor): Re-enable.
328         (darwin_use_anchors_for_symbol_p): New.
329         (darwin_override_options): Check for versions that can emit
330         aligned common.  Update usage of flags to current.
331         * config/darwin-sections.def: Update comments and flags for
332         non-anchor sections.  zobj_const_section, zobj_data_section,
333         zobj_bss_section, zobj_const_data_section: New.
334         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Redefine.
335         (ASM_OUTPUT_ALIGN): Make whitespace output consistent.
336         (L2_MAX_OFILE_ALIGNMENT): Define.
337         (ASM_OUTPUT_ALIGNED_BSS): Define.
338         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Define.
339         (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
340         (SECTION_NO_ANCHOR): Define.
341         (TARGET_ASM_OUTPUT_ANCHOR) Define with a default of NULL.
342         (DARWIN_SECTION_ANCHORS): Define with a default of 0.
343
344 2010-11-29  Joseph Myers  <joseph@codesourcery.com>
345
346         * system.h: Include "safe-ctype.h" instead of <safe-ctype.h>.
347         Include <signal.h>, <sys/mman.h>, <sys/resource.h> and <sys/times.h>.
348         (O_BINARY, SIGCHLD, MAP_FAILED, MAP_ANONYMOUS, kill):
349         Conditionally define.
350         (GET_ENVIRONMENT): Poison.
351         * configure.ac: Don't test for mincore.
352         * configure: Regenerate.
353         * config.in: Regenerate.
354         * collect2-aix.c: Don't include <sys/mman.h>.
355         * collect2.c: Don't include <signal.h>.
356         (SIGCHLD): Don't define.
357         (prefix_from_env): Use getenv instead of GET_ENVIRONMENT.
358         * config/alpha/alpha.c: Include "splay-tree.h" instead of
359         <splay-tree.h>.
360         * config/arm/arm.c (arm_target_help): Use getenv instead of
361         GET_ENVIRONMENT.
362         * config/avr/driver-avr.c: Don't include <stdlib.h>.
363         * config/frv/frv.c: Don't include <ctype.h>.
364         * config/host-darwin.c: Don't include <sys/mman.h>.
365         * config/host-hpux.c: Don't include <sys/mman.h> or <unistd.h>.
366         (MAP_FAILED): Don't define.
367         * config/host-linux.c: Don't include <sys/mman.h> or <limits.h>.
368         * config/host-solaris.c: Don't include <sys/mman.h>.
369         * config/i386/cygming.h: Don't include <stdio.h>.
370         * config/i386/driver-i386.c: Don't include <stdlib.h>.
371         * config/i386/host-cygwin.c: Don't include <sys/mman.h>.
372         * config/iq2000/iq2000.c: Don't include <signal.h>.
373         * config/m32c/m32c-pragma.c: Don't include <stdio.h>.
374         * config/m68hc11/m68hc11.c: Don't include <stdio.h>.
375         * config/mep/mep-pragma.c: Don't include <stdio.h>.
376         * config/microblaze/microblaze.c: Don't include <signal.h>.
377         * config/mips/mips.c: Don't include <signal.h>.
378         * config/rs6000/host-darwin.c: Don't include <signal.h>.
379         * cppdefault.c (cpp_relocated): Use getenv instead of GET_ENVIRONMENT.
380         * defaults.h (GET_ENVIRONMENT): Don't define.
381         * et-forest.h: Don't include <ansidecl.h> or <stddef.h>.
382         * gcc.c: Don't include <signal.h>, <sys/mman.h> or <sys/types.h>.
383         (SIGCHLD, MAP_FAILED, kill): Don't define.
384         (process_command): Use getenv instead of GET_ENVIRONMENT.
385         * genhooks.c: Don't include <string.h>.
386         * ggc-common.c: Don't include <sys/resource.h>, <sys/mman.h> or
387         <sys/types.h>.
388         (MAP_FAILED): Don't define.
389         * ggc-page.c Don't include <sys/mman.h>.
390         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
391         * ggc-zone.c: Don't include <sys/mman.h>.
392         (MAP_ANONYMOUS, MAP_FAILED): Don't define.
393         * graph.c: Include "config.h" instead of <config.h>.
394         * incpath.c (add_env_var_paths): Use getenv instead of GET_ENVIRONMENT.
395         * lto-wrapper.c: Don't include <errno.h>, <signal.h> or "libiberty.h".
396         (SIGCHLD, kill): Don't define.
397         * mips-tfile.c: Don't include <signal.h>.
398         * opts.c: Don't include <signal.h> or <sys/resource.h>.
399         (print_specific_help): Use getenv instead of GET_ENVIRONMENT.
400         * passes.c: Don't include <signal.h>, <sys/resource.h> or
401         <sys/times.h>.
402         * sparseset.h: Don't include <assert.h>.
403         * timevar.c: Don't include <sys/times.h> or <sys/resource.h>.
404         * tlink.c: Don't include "libiberty.h".
405         * toplev.c: Don't include <signal.h> or <sys/times.h>.
406         * tree-mudflap.c: Include "demangle.h" instead of <demangle.h>.
407         * tree-switch-conversion.c: Don't include <signal.h>.
408         * vmsdbgout.c: Don't include <errno.h> or <string.h>.
409
410 2010-11-29  Nicola Pero  <nicola.pero@meta-innovation.com>
411
412         * c-parser.c (c_parser_objc_try_catch_statement): Renamed to
413         c_parser_objc_try_catch_finally_statement for consistency with the
414         C++ parser.  Parse @catch(...) and pass NULL_TREE to
415         objc_begin_catch_clause() in that case.  Improved error recovery.
416         Reorganized code to be almost identical to
417         cp_parser_objc_try_catch_finally_statement.
418
419 2010-11-29  Joern Rennecke  <amylaar@spamcop.net>
420
421         PR tree-optimization/46621
422         * gimple.h: Don't include tm.h or hard-reg-set.h .
423         * Makefile.in (GIMPLE_H): Remove $(TM_H).
424
425         PR bootstrap/44756
426         * cppbuiltin.c: Include target.h .
427         (define_builtin_macros_for_type_sizes):
428         Use targetm.float_words_big_endian.
429
430 2010-11-27  Jan Hubicka  <jh@suse.cz>
431
432         * dwarf2out.c (dwarf2out_begin_function): Set cold_text_section
433         and output cold_text_section_label.
434         (dwarf2out_init): Don't do that there.
435         (dwarf2out_finish): Handle cold section end label only if cold
436         section was used.
437
438 2010-11-27  Eric Botcazou  <ebotcazou@adacore.com>
439
440         * tree-nested.c (remap_vla_decls): Fully expand value expressions of
441         VLA variables.
442
443 2010-11-27  Richard Guenther  <rguenther@suse.de>
444
445         * gimple.c (gimple_assign_copy_p): Use gimple_assign_single_p.
446         (gimple_assign_ssa_name_copy_p): Likewise.
447         (gimple_assign_unary_nop_p): Use is_gimple_assign.
448         (is_gimple_cast): Remove.
449         (gimple_assign_single_p): Move ...
450         * gimple.h (gimple_assign_single_p): ... here.
451         (is_gimple_cast): Remove.
452         (gimple_assign_rhs_code): Simplify.
453         * gimple-fold.c (gimple_fold_builtin): Use CONVERT_EXPR_P
454         instead of is_gimple_cast.
455         * ipa-type-escape.c (look_for_casts): Likewise.
456
457 2010-11-26  Joseph Myers  <joseph@codesourcery.com>
458
459         * doc/options.texi (Enum, EnumValue): Document new record types.
460         (Enum): Document new option flag.
461         * opt-functions.awk
462         * optc-gen.awk: Handle enumerated option arguments.
463         * opth-gen.awk: Handle enumerated option arguments.
464         * opts-common.c (enum_arg_ok_for_language, enum_arg_to_value,
465         enum_value_to_arg): New.
466         (decode_cmdline_option): Handle enumerated arguments.
467         (read_cmdline_option): Handle CL_ERR_ENUM_ARG.
468         (set_option, option_enabled, get_option_state): Handle CLVC_ENUM.
469         * opts.c (print_filtered_help, print_specific_help): Take
470         lang_mask arguments.
471         (print_filtered_help): Handle printing values of enumerated
472         options.  Print possible arguments for enumerated options.
473         (print_specific_help): Update call to print_filtered_help.
474         (common_handle_option): Update calls to print_specific_help.  Use
475         value rather than arg for OPT_fdiagnostics_show_location_.  Don't
476         handle OPT_ffp_contract_, OPT_fexcess_precision_,
477         OPT_fvisibility_, OPT_ftls_model_, OPT_fira_algorithm_ or
478         OPT_fira_region_ here.
479         * opts.h (enum cl_var_type): Add CLVC_ENUM.
480         (struct cl_option): Add var_enum.
481         (CL_ENUM_CANONICAL, CL_ENUM_DRIVER_ONLY, struct cl_enum_arg,
482         struct cl_enum, cl_enums, cl_enums_count): New.
483         (CL_ERR_ENUM_ARG): Define.
484         (CL_ERR_NEGATIVE): Update value.
485         (enum_value_to_arg): Declare.
486         * common.opt (flag_ira_algorithm, flag_ira_region,
487         flag_fp_contract_mode, flag_excess_precision_cmdline,
488         default_visibility, flag_tls_default): Remove Variable entries.
489         (help_enum_printed): New Variable.
490         (fdiagnostics-show-location=): Use Enum.  Add associated
491         SourceInclude, Enum and EnumValue entries.
492         (fexcess-precision=, ffp-contract=, fira-algorithm=, fira-region=,
493         ftls-model=, fvisibility=): Use Enum, Var and Init.  Add
494         associated Enum and EnumValue entries.
495
496 2010-11-26  Joern Rennecke  <amylaar@spamcop.net>
497
498         PR target/46623
499         * config/microblaze/microblaze.c (microblaze_block_move_straight):
500         Use XALLOCAVEC.
501         (microblaze_option_override): Don't use C++ style comments.
502         (save_restore_insns): Remove unused variable base_offset.
503         (microblaze_expand_prologue): Remove unused variable insn.
504         (microblaze_secondary_reload): Adjust type to match target.h .
505         (microblaze_elf_in_small_data_p): Move declarations to start of block.
506         (microblaze_expand_move): Likewise.
507         * config/microblaze/microblaze.h (LARGE_INT):
508         Avoid signed / unsigned comparisons.
509         (ASM_OUTPUT_ALIGNED_COMMON, ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
510         (ASM_FORMAT_PRIVATE_NAME): Make format specifier match printed data.
511         (ASM_FINISH_DECLARE_OBJECT): Likewise.  Constify name.
512
513 2010-11-26  Michael Matz  <matz@suse.de>
514
515         * tree-ssa-copy.c (fini_copy_prop): Don't DCE when we have loops.
516
517         * passes.c (init_optimization_passes): Remove superfluous
518         copy-prop pass.
519
520 2010-11-26  Richard Guenther  <rguenther@suse.de>
521
522         PR lto/46648
523         * gimple.c (gtc_visit): Do not return true for members of an
524         SCC still being processed but the current lattice value of
525         the member.  Treat SCC members comparison state as lattice,
526         starting at equal, eventually dropping to unequal.
527         (gimple_types_compatible_p_1): Likewise.
528
529 2010-11-26  Richard Guenther  <rguenther@suse.de>
530
531         PR middle-end/46559
532         * dwarf2out.c (dwarf2out_finish): Use comp_unit_die as root
533         for location list processing.
534
535 2010-11-26  Richard Guenther  <rguenther@suse.de>
536
537         PR lto/46560
538         * cgraph.c (cgraph_clone_edge): Clone call_stmt dependent
539         flags manually.
540
541 2010-11-26  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
542
543         * config/s390/s390.c (print_operand_address): Replace assert with
544         error message.
545         (print_operand): Replace assertions, gcc_unreachable and
546         fatal_insn with error messages.
547
548 2010-11-26  Richard Guenther  <rguenther@suse.de>
549
550         PR tree-optimization/46665
551         * tree-ssa-structalias.c (pt_solution_set_var): Use DECL_PT_UID.
552
553 2010-11-26  Ian Bolton  <ian.bolton@arm.com>
554
555         * config/arm/arm.c (arm_option_override): enable loop array
556         prefetching at -O3 for suitable targets, and configure params.
557         * config/arm/arm-protos.h (struct tune_params): Add fields for
558         configuring loop array prefetching.
559
560 2010-11-26  Christian Borntraeger  <borntraeger@de.ibm.com>
561
562         * config/s390/2817.md (z196_crack): Add z196_g3 as possible slot.
563
564 2010-11-26  Richard Guenther  <rguenther@suse.de>
565
566         PR tree-optimization/46664
567         * tree-affine.c (aff_combination_to_tree): Add rest last.
568
569 2010-11-26  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
570
571         PR target/33637
572         * configure.ac: Accept extra arguments for AS_FOR_TARGET,
573         LD_FOR_TARGET, NM_FOR_TARGET, OBJDUMP_FOR_TARGET.
574         * configure: Regenerated.
575         * exec-tool.in: Not quoting command, may have extra arguments.
576
577 2010-11-26  Richard Guenther  <rguenther@suse.de>
578
579         PR tree-optimization/46528
580         PR debug/46338
581         * profile.c (branch_prob): Do not split blocks based on locations
582         from debug statements.
583
584 2010-11-26  Jakub Jelinek  <jakub@redhat.com>
585
586         PR middle-end/46647
587         * builtins.c (fold_builtin_memset): Check c is INTEGER_CST instead
588         of host_integerp check.  Use TREE_INT_CST_LOW instead of tree_low_cst.
589
590         PR bootstrap/45700
591         * tree.h (build1_stat_loc, build2_stat_loc, build3_stat_loc,
592         build4_stat_loc, build5_stat_loc, build6_stat_loc): New inlines.
593         (build1_loc, build2_loc, build3_loc, build4_loc, build5_loc,
594         build6_loc): Define.
595         * fold-const.c (protected_set_expr_location_unshare): New inline.
596         (fold_convert_loc, pedantic_non_lvalue_loc): Use it.
597         (negate_expr, associate_trees, non_lvalue_loc, omit_one_operand_loc,
598         pedantic_omit_one_operand_loc, omit_two_operands_loc,
599         fold_truth_not_expr, invert_truthvalue_loc, make_bit_field_ref,
600         optimize_bit_field_compare, make_range, fold_range_test, fold_truthop,
601         build_fold_addr_expr_with_type_loc, fold_unary_loc, fold_binary_loc,
602         fold_indirect_ref_1, build_fold_indirect_ref_loc): Use builN_loc
603         instead of buildN followed by SET_EXPR_LOCATION or
604         protected_set_expr_location.
605         (fold_build1_stat_loc, fold_build2_stat_loc, fold_build3_stat_loc):
606         Use buildN_stat_loc instead of buildN_stat followed by
607         SET_EXPR_LOCATION.
608
609 2010-11-26  Basile Starynkevitch  <basile@starynkevitch.net>
610
611         * Makefile.in (s-tm-texi): Remove spurous tab.
612
613 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
614
615         PR debug/46258
616         * tree-cfg.c (replace_uses_by): Don't mark BBs as altered on
617         debug stmts.
618
619 2010-11-26  Alexandre Oliva  <aoliva@redhat.com>
620
621         * toplev.c (finalize): Add no_backend parameter.  Don't finish
622         passes when preprocessing only.  Adjust...
623         (do_compile): ... caller.
624
625 2010-11-25  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
626
627         * config/pa/pa.md (negdf2): Condition on !flag_signed_zeros instead of
628         flag_unsafe_math_optimizations.
629         (negsf2): Likewise.
630         Move fnegabs related patterns together.  Only use fmpynfadd instruction
631         to negate a multiply if !flag_signed_zeros is true.
632
633 2010-11-25  Uros Bizjak  <ubizjak@gmail.com>
634
635         * gengtype-state.c (read_state_structures): Initialize "previous".
636
637 2010-11-25  Basile Starynkevitch  <basile@starynkevitch.net>
638             Jeremie Salvucci  <jeremie.salvucci@free.fr>
639
640         * gengtype-state.c: Add new file.
641
642         * gengtype.c (type count): New variable.
643         (new_structure, find_param_structure, create_pointer)
644         (create_array): Use it to set state_number in types.
645         (dump_everything): Improve comment.
646         (main): Call read_state and write_state. Print type_count.
647
648         * gengtype.h (type_lineloc): New function.
649         (read_state, write_state): New declarations.
650
651         * Makefile.in (GENGTYPE_FLAGS): New variable.
652         (s-gtype): Run gengtype twice and generate gtype.state.
653         (build/gengtype-state.o): New rule.
654         (build/gengtype$(build_exeext)): Link gengtype-state.o.
655         (mostlyclean): Update comment.  Remove gtype.state.
656
657 2010-11-25  Jakub Jelinek  <jakub@redhat.com>
658
659         PR middle-end/46637
660         * combine.c (try_combine): When substing i2dest for i2src, pass
661         1 as last argument even if
662         i0_feeds_i1_n && i1_feeds_i2_n && i0dest_in_i0src.
663
664 2010-11-25  H.J. Lu  <hongjiu.lu@intel.com>
665
666         PR middle-end/46647
667         * builtins.c (target_char_cast): Check INTEGER_CST instead of
668         host_integerp.  Replace tree_low_cst with TREE_INT_CST_LOW.
669
670 2010-11-25  Joseph Myers  <joseph@codesourcery.com>
671
672         * target.def (supports_split_stack, except_unwind_info): Take
673         gcc_options parameters.
674         * targhooks.c (default_except_unwind_info,
675         dwarf2_except_unwind_info, sjlj_except_unwind_info): Take
676         gcc_options parameters.
677         * targhooks.h (default_except_unwind_info,
678         dwarf2_except_unwind_info, sjlj_except_unwind_info): Update
679         prototypes.
680         * doc/tm.texi.in (TARGET_IRA_COVER_CLASSES,
681         TARGET_HAVE_NAMED_SECTIONS, TARGET_UNWIND_TABLES_DEFAULT):
682         Document that hooks must not be modified.
683         (TARGET_EXCEPT_UNWIND_INFO): Refer to opts argument.
684         * doc/tm.texi: Regenerate.
685         * defaults.h (STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT): Pass
686         &global_options to targetm.except_unwind_info.
687         * dwarf2out.c (dwarf2out_do_frame, dwarf2out_do_cfi_asm,
688         dwarf2out_begin_prologue, dwarf2out_frame_init,
689         dwarf2out_frame_finish, dwarf2out_assembly_start): Pass
690         &global_options to targetm.except_unwind_info.
691         * except.c (init_eh, finish_eh_generation,
692         gate_convert_to_eh_region_ranges,
693         output_one_function_exception_table): Pass &global_options to
694         targetm.except_unwind_info.
695         * expr.c (build_personality_function): Pass &global_options to
696         targetm.except_unwind_info.
697         * function.c (expand_function_end): Pass &global_options to
698         targetm.except_unwind_info.
699         * hooks.c (hook_bool_bool_gcc_optionsp_false): New.
700         * hooks.h (hook_bool_bool_gcc_optionsp_false): Declare.
701         * opts.c (finish_options): Pass opts to targetm.except_unwind_info
702         and targetm.supports_split_stack.  Remove assertions about opts
703         and opts_set.
704         (common_handle_option): Remove assertions about opts, opts_set and dc.
705         * tree-tailcall.c (suitable_for_tail_call_opt_p): Pass
706         &global_options to targetm.except_unwind_info.
707         * tree.c (build_common_builtin_nodes: Pass &global_options to
708         targetm.except_unwind_info.
709         * config/arm/arm.c (arm_except_unwind_info): Add gcc_options parameter.
710         (arm_compute_func_type, arm_expand_prologue, thumb_pushpop,
711         thumb1_expand_prologue, thumb1_output_function_prologue,
712         arm_unwind_emit, arm_output_fn_unwind): Update calls to
713         arm_except_unwind_info.
714         * config/i386/i386.c (ix86_supports_split_stack): Add gcc_options
715         parameter.
716         * config/ia64/ia64.c (ia64_except_unwind_info): Add gcc_options
717         parameter.
718         (ia64_output_function_prologue, ia64_add_bundle_selector_before,
719         ia64_reorg, ia64_asm_unwind_emit): Update calls to
720         ia64_except_unwind_info.
721         * config/pa/pa.c (pa_option_override): Pass &global_options to
722         targetm.except_unwind_info.
723         * config/picochip/picochip-protos.h (picochip_except_unwind_info):
724         Remove prototype.
725
726 2010-11-25  Kai Tietz  <kai.tietz@onevision.com>
727
728         * cgraphunit.c (process_function_and_variable_attributes):
729         Mark dllexport-ed function/variables as needed.
730         * ipa.c (cgraph_externally_visible_p): Make dllexport-ed
731         as externally visible.
732
733 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
734
735         PR rtl-optimization/46585
736         * sel-sched-ir.c (return_regset_to_pool): Verify that RS is not NULL.
737         (vinsn_init): Skip computation of dependencies for local NOPs.
738         (vinsn_delete): Don't try to free regsets for local NOPs.
739         (setup_nop_and_exit_insns): Change definition of nop_pattern.
740
741 2010-11-25  Alexander Monakov  <amonakov@ispras.ru>
742
743         PR rtl-optimization/46602
744         * sel-sched-ir.c (maybe_tidy_empty_bb): Move checking ...
745         (tidy_control_flow): Here.
746
747 2010-11-25  Joern Rennecke  <amylaar@spamcop.net>
748             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
749
750         PR bootstrap/45888
751         * Makefile.in (s-tm-texi): Remove \r occurences from tmp-tm.texi.
752         Fix target.def pathname in timestamp comparison.
753
754 2010-11-24  Richard Henderson  <rth@redhat.com>
755
756         * config/ia64/predicates.md (pmpyshr_operand): New.
757         * config/ia64/ia64.c (ia64_expand_unpack): New.
758         (ia64_expand_widen_mul_v4hi): New.
759         (ia64_expand_widen_sum): Update for pattern renames.
760         (ia64_expand_dot_prod_v8qi): Likewise.
761         * config/ia64/ia64-protos.h: Update.
762         * config/ia64/vect.md (vecwider): New mode attribute.
763         (vec_widen_umult_lo_v8qi, vec_widen_umult_hi_v8qi): New.
764         (vec_widen_smult_lo_v8qi, vec_widen_smult_hi_v8qi): New.
765         (pmpyshr2, pmpyshr2_u): New.
766         (vec_widen_smult_lo_v4hi, vec_widen_smult_hi_v4hi): New.
767         (vec_widen_umult_lo_v4hi, vec_widen_umult_hi_v4hi): New.
768         (mulv2si3): New.
769         (vec_pack_ssat_v4hi): Rename from pack2_sss.
770         (vec_pack_usat_v4hi): Rename from *pack2_uss.
771         (vec_pack_ssat_v2si): Rename from pack4_sss.
772         (vec_interleave_lowv8qi): Rename from unpack1_l, use the correct
773         vec_select operation.
774         (vec_interleave_highv8qi): Similarly.
775         (mux1_alt): Rename from *mux1_alt.
776         (vec_extract_evenv8qi, vec_extract_oddv8qi): New.
777         (vec_interleave_lowv4hi): Rename from unpack2_l.
778         (vec_interleave_highv4hi): Rename from unpack2_h.
779         (mix2_r): Rename from *mix2_r.
780         (mix2_l): Similarly.
781         (vec_extract_evenodd_helper): New.
782         (vec_extract_evenv4hi, vec_extract_oddv4hi): New.
783         (vec_interleave_lowv2si): Rename from *unpack4_l.
784         (vec_interleave_highv2si): Rename from *unpack4_h.
785         (vec_extract_evenv2si, vec_extract_oddv2si): New.
786         (vec_interleave_lowv2sf): Rename from fmix_r.
787         (vec_interleave_highv2sf): Rename from *fmix_l.
788         (vec_extract_evenv2sf, vec_extract_oddv2sf): New.
789         (vec_unpacku_lo_<VECINT12>, vec_unpacku_hi_<VECINT12>): New.
790         (vec_unpacks_lo_<VECINT12>, vec_unpacks_hi_<VECINT12>): New.
791         (vec_pack_trunc_v4hi, vec_pack_trunc_v2si): New.
792
793 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
794
795         * targhooks.c (default_except_unwind_info): Remove
796         MUST_USE_SJLJ_EXCEPTIONS case.
797         * config/h8300/h8300.h (MUST_USE_SJLJ_EXCEPTIONS): Delete.
798         * config/h8300/h8300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
799         * doc/tm.texi.in (MUST_USE_SJLJ_EXCEPTIONS): Delete.
800         * doc/tm.texi: Regenerate.
801         * system.h (MUST_USE_SJLJ_EXCEPTIONS): Poison.
802
803 2010-11-24  Nathan Froyd  <froydnj@codesourcery.com>
804
805         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
806         __FLOAT_WORD_ORDER__ according to FLOAT_WORDS_BIG_ENDIAN.
807         * config/dfp-bit.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Delete.
808         * doc/cpp.texi (__FLOAT_WORD_ORDER__): Document.
809         * system.h (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Poison.
810
811 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
812
813         PR target/46519
814         * config/i386/i386.c (ix86_expand_call): Don't check
815         TREE_THIS_VOLATILE.
816
817 2010-11-24  H.J. Lu  <hongjiu.lu@intel.com>
818
819         PR target/46519
820         * config/i386/i386.c (upper_128bits_state): New.
821         (block_info_def): Remove upper_128bits_set and done.  Add state,
822         referenced, count, processed and rescanned.
823         (check_avx256_stores): Updated.
824         (move_or_delete_vzeroupper_2): Updated. Handle deleted BB_END.
825         Call note_stores only if needed.  Set referenced and count.
826         (move_or_delete_vzeroupper_1): Updated.  Set rescan_vzeroupper_p.
827         (rescan_move_or_delete_vzeroupper): New.
828         (move_or_delete_vzeroupper):  Process and rescan all all basic
829         blocks instead of predecessor blocks of all exit points.
830         (ix86_option_override_internal): Enable vzeroupper optimization
831         only for -fexpensive-optimizations and not optimizing for size.
832         (use_avx256_p): Removed.
833         (init_cumulative_args): Don't set use_avx256_p.
834         (ix86_function_arg): Likewise.
835         (ix86_expand_move): Likewise.
836         (ix86_expand_vector_move_misalign): Likewise.
837         (ix86_local_alignment): Likewise.
838         (ix86_minimum_alignment): Likewise.
839         (ix86_expand_epilogue): Don't check use_avx256_p when generating
840         vzeroupper.
841         (ix86_expand_call): Likewise.
842
843         * config/i386/i386.h (machine_function): Remove use_vzeroupper_p
844         and use_avx256_p.  Add rescan_vzeroupper_p.
845
846 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
847
848         * toplev.c: Include <signal.h>.
849
850 2010-11-24  Richard Guenther  <rguenther@suse.de>
851
852         PR lto/43218
853         * lto-symtab.c (lto_cgraph_replace_node): Mark edges with
854         conflicting function signatures as non-inlineable.
855
856 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
857
858         PR rtl-optimization/46614
859         * sched-deps.c (NON_FLUSH_JUMP_KIND, NON_FLUSH_JUMP_P): Define.
860          (deps_analyze_insn): Mark JUMP_INSNs in
861         last_pending_memory_flush that weren't added through
862         flush_pending_lists with NON_FLUSH_JUMP_KIND.
863         (sched_analyze_2, sched_analyze_insn): Check NON_FLUSH_JUMP_P
864         on INSN_LIST instead of JUMP_P check on its operand.
865         * sched-rgn.c (concat_INSN_LIST): Copy over REG_NOTE_KIND.
866
867 2010-11-24  Richard Guenther  <rguenther@suse.de>
868
869         * lto-streamer-in.c (input_gimple_stmt): Use types_compatible_p.
870
871 2010-11-24  Richard Guenther  <rguenther@suse.de>
872
873         PR lto/46606
874         * lto-streamer-in.c (input_gimple_stmt): When we cannot find
875         a FIELD_DECL that is type correct issue a warning and fixup
876         with a VIEW_CONVERT_EXPR.
877
878 2010-11-24  Basile Starynkevitch  <basile@starynkevitch.net>
879
880         * doc/invoke.texi (Options for Debugging Your Program or GCC):
881         Explain static numbering of dump files.
882
883 2010-11-24  Joseph Myers  <joseph@codesourcery.com>
884
885         * common.opt (user_vect_verbosity_level): New Variable entry.
886         (ftree-vectorizer-verbose=): Mark as UInteger.
887         * flag-types.h (enum vect_verbosity_levels): Move from enum
888         verbosity_levels in tree-vectorizer.h.
889         * opts.c: Don't include tree.h.
890         (vect_set_verbosity_level): Move from tree-vectorizer.c.  Use
891         gcc_options parameter; take integer option argument.
892         (common_handle_option): Update call to vect_set_verbosity_level.
893         * tree-vectorizer.c (user_vect_verbosity_level): Remove.
894         (vect_set_verbosity_level): Move to opts.c.
895         (vect_verbosity_level, vect_print_dump_info): Update for change of
896         enum name.
897         * tree-vectorizer.h (enum verbosity_levels): Move to flag-types.h.
898         (vect_print_dump_info): Update for change of enum name.
899         * tree.h (vect_set_verbosity_level): Remove.
900         * Makefile.in (opts.o): Update dependencies.
901
902 2010-11-24  Jakub Jelinek  <jakub@redhat.com>
903
904         PR middle-end/46629
905         * cfgexpand.c (maybe_cleanup_end_of_block): Test NEXT_INSN (insn)
906         instead of insn with any_condjump_p.
907
908 2010-11-24  Mingjie Xing  <mingjie.xing@gmail.com>
909
910         * config/mips/loongson.md: Change the description comment of the file
911         and update the copyright years.
912         (define_insn "<u>div<mode>3): Add loongson3a support.
913         (define_insn "<u>mod<mode>3"): Likewise.
914         * config/mips/mips.md: Rename mul<mode>3_mul3_ls2ef to
915         mul<mode>3_mul3_loongson.
916         (define_expand "mul<mode>3"): Add TARGET_LOONGSON_3A.
917         (define_insn "mul<mode>3_mul3_loongson"): Add loongson3a support.
918
919 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
920
921         * common.opt (initial_max_fld_align, flag_debug_asm,
922         flag_dump_rtl_in_asm, flag_dump_all_passed, rtl_dump_and_exit,
923         flag_print_asm_name, graph_dump_format, help_printed,
924         help_columns, flag_opts_finished): New Variable entries.
925         (fdbg-cnt-list, fdbg-cnt=, fdebug-prefix-map=, frandom-seed,
926         frandom-seed=): Mark deferred.
927         (fsched-verbose=): Use UInteger and Var.
928         * flags.h (set_struct_debug_option, flag_print_asm_name,
929         rtl_dump_and_exit, flag_debug_asm, flag_dump_rtl_in_asm,
930         graph_dump_format): Don't declare here.
931         * haifa-sched.c (sched_verbose_param, fix_sched_param): Remove.
932         * opts-global.c: Include dbgcnt.h and debug.h.
933         (decode_options): Pass location to finish_options.
934         (handle_common_deferred_options): Check flag_dump_all_passed.
935         Handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list, OPT_fdebug_prefix_map_,
936         OPT_frandom_seed and OPT_frandom_seed_.  Don't assert on
937         OPT_fstack_limit.
938         * opts.c: Don't include toplev.h, dbgcnt.h or debug.h.
939         (set_struct_debug_option): Add location_t parameter.  Update
940         recursive call.  Use error_at.
941         (default_options_optimization): Use error_at.
942         (finish_options): Add location_t parameter.  Use
943         opts->x_flag_opts_finished instead of first_time_p.  Use
944         opts->x_optimize instead of optimize.  Use error_at.  Pass
945         location to inform.
946         (print_filtered_help): Use opts->x_help_printed to track what
947         options have been printed.
948         (print_specific_help): Use opts->x_help_columns to track number of
949         columns.
950         (common_handle_option): Pass locations and gcc_options pointers to
951         more functions.  Use warning_at instead of fnotice and warning.
952         Don't handle OPT_fdbg_cnt_, OPT_fdbg_cnt_list or
953         OPT_fdebug_prefix_map_.  Use error_at.  Set
954         opts->x_initial_max_fld_align; don't set maximum_field_alignment.
955         Don't handle OPT_frandom_seed or OPT_frandom_seed_.  Don't handle
956         OPT_fsched_verbose_.
957         (handle_param): Add location_r parameter.  Use error_at.
958         (set_debug_level): Add location_r parameter.  Use error_at and
959         warning_at.
960         (setup_core_dumping): Add diagnostic_context parameter.
961         (decode_d_option): Add gcc_options, location_t and
962         diagnostic_context parameters and use them instead of global
963         state.  Use warning_at.
964         (enable_warning_as_error): Use error_at.
965         * opts.h (finish_options): Update prototype.
966         (set_struct_debug_option): Declare here.
967         * rtl.h (fix_sched_param): Remove.
968         * stor-layout.c (initial_max_fld_align): Remove.
969         * toplev.c (rtl_dump_and_exit, flag_print_asm_name,
970         graph_dump_format, flag_debug_asm, flag_dump_rtl_in_asm): Remove.
971         (process_options): Set maximum_field_alignment.
972         * tree.h (initial_max_fld_align) Don't declare here.
973         * Makefile.in (opts.o, opts-global.o): Update dependencies.
974
975 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
976
977         * flag-types.h (struct visibility_flags): Don't declare here.
978         * flags.h (strip_off_ending, fast_math_flags_set_p,
979         fast_math_flags_struct_set_p): Declare here.
980         (visibility_options): Don't declare here.
981         * opts-common.c (option_enabled, get_option_state): Move from
982         opts.c.
983         * opts-global.c: Include diagnostic.h instead of
984         diagnostic-core.h.  Include tree.h, langhooks.h, lto-streamer.h
985         and toplev.h.
986         (const_char_p, ignored_options, in_fnames, num_in_fnames,
987         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
988         print_ignored_options, unknown_option_callback,
989         post_handling_callback, lang_handle_option, add_input_filename,
990         read_cmdline_options, initial_lang_mask, init_options_once,
991         decode_cmdline_options_to_array_default_mask,
992         set_default_handlers, decode_options): Move from opts.c.
993         (print_ignored_options): Use warning_at instead of saving and
994         restoring input_location.
995         * opts.c: Include <signal.h> and <sys/resource.h>.  Include rtl.h
996         instead of expr.h.  Don't include langhooks.h, except.h or
997         lto-streamer.h.  Add more comments on includes.
998         (strip_off_ending, setup_core_dumping, decode_d_option): Move from
999         toplev.c.
1000         (visibility_options): Move to c-family/c-common.c.
1001         (const_char_p, ignored_options, in_fnames, num_in_fnames,
1002         write_langs, complain_wrong_lang, postpone_unknown_option_warning,
1003         print_ignored_options, unknown_option_callback,
1004         post_handling_callback, lang_handle_option, add_input_filename,
1005         read_cmdline_options, initial_lang_mask, init_options_once,
1006         decode_cmdline_options_to_array_default_mask,
1007         set_default_handlers, decode_options): Move to opts-global.c.
1008         (target_handle_option, default_options_optimization,
1009         finish_options, common_handle_option): Remove static.
1010         (option_enabled, get_option_state): Move to opts-common.c.
1011         * opts.h (common_handle_option, target_handle_option,
1012         finish_options, default_options_optimization): Declare.
1013         * toplev.c: Don't include <signal.h> or <sys/resource.h>.
1014         (setup_core_dumping, strip_off_ending, decode_d_option): Move to
1015         opts.c.
1016         * toplev.h (strip_off_ending, decode_d_option,
1017         fast_math_flags_set_p, fast_math_flags_struct_set_p): Don't
1018         declare here.
1019         * Makefile.in (opts.o, opts-global.o): Update dependencies.
1020
1021 2010-11-23  Dave Korn  <dave.korn.cygwin@gmail.com>
1022
1023         PR driver/42690
1024         * gcc.c (LINK_COMMAND_SPEC): Remove hard-coded pass-through plugin
1025         options, replace by call of pass-through-libs spec function to process
1026         link_gcc_c_sequence spec.
1027         (lto_libgcc_spec): Delete variable.
1028         (static_specs[]): Remove related entry.
1029         (static_spec_functions[]): Add new entry for pass-through-libs.
1030         (main): Don't generate deleted lto_libgcc_spec.
1031         (pass_through_libs_spec_func): New function to implement the new
1032         pass-through-libs spec function.
1033         * doc/invoke.texi (pass-through-libs): Document new spec function.
1034
1035 2010-11-23  Joseph Myers  <joseph@codesourcery.com>
1036
1037         * doc/options.texi (Warning, Optimization): Document.
1038
1039 2010-11-23  Jan Hubicka  <jh@suse.cz>
1040
1041         * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): New macro.
1042         (tree_decl_with_vis): Add implicit_section_name_p.
1043         * targhooks.h (default_function_section): Declare.
1044         * target.def (function_section): New hook.
1045         * defaults.h (HOT_TEXT_SECTION_NAME,
1046         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1047         * predict.c (choose_function_section): Remove.
1048         (estimate_bb_frequencies): Do not use choose_function_section.
1049         * coretypes.h (enum node_frequency): Move here from cgraph.h
1050         * cgraph.h (enum node_frequency): Remove.
1051         * varasm.c (initialize_cold_section_name, unlikely_text_section,
1052         unlikely_text_section_p): Remove.
1053         (named_subsection_entry): New structure.
1054         (get_text_section): New function.
1055         (default_function_section): New function.
1056         (function_section_1): Break out from ...; handle profile info.
1057         (function_section): ... here.
1058         (unlikely_text_section): Remove.
1059         (unlikely_text_section_p): Use function_section_1.
1060         (assemble_start_function): Do not initialize cold section.
1061         (default_section_type_flags): Do not special case cold subsection.
1062         (switch_to_section): Likewise.
1063         * output.h (get_text_section): Define.
1064         * config/i386/winnt.c: Do not special case cold section.
1065         * config/darwin-protos.h (darwin_function_section): Declare.
1066         * config/microblaze/microblaze.h (HOT_TEXT_SECTION_NAME,
1067         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1068         * config/ia64/hpux.h (HOT_TEXT_SECTION_NAME,
1069         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1070         (TARGET_ASM_FUNCTION_SECTION): Define to ia64_hpux_function_section.
1071         * config/ia64/ia64.c (ia64_hpux_function_section): New function.
1072         * config/darwin.c (machopic_select_section): Use
1073         darwin_function_section.
1074         (darwin_function_section): New function.
1075         * config/darwin.h (HOT_TEXT_SECTION_NAME,
1076         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1077         (TARGET_ASM_FUNCTION_SECTION): Define.
1078         * system.h (HOT_TEXT_SECTION_NAME,
1079         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Poison.
1080
1081 2010-11-23  Iain Sandoe  <iains@gcc.gnu.org>
1082
1083         * config/darwin.h (LINK_COMMAND_SPEC_A): Use %(link_gcc_c_sequence).
1084         LINK_GCC_C_SEQUENCE_SPEC: Define new macro.
1085
1086 2010-11-23  Jakub Jelinek  <jakub@redhat.com>
1087
1088         PR middle-end/46499
1089         * cfgexpand.c (maybe_cleanup_end_of_block): Remove also BARRIERs
1090         following unconditional jumps.
1091
1092 2010-11-23  Richard Guenther  <rguenther@suse.de>
1093
1094         * doc/md.texi (386 constraints): Clarify A constraint documentation.
1095
1096 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1097             Jeremie Salvucci  <jeremie.salvucci@free.fr>
1098
1099         * gengtype.c (enum typekind, struct options)
1100         (struct nested_ptr_data, struct pair, NUM_PARAM)
1101         (enum gc_used_num, struct type, UNION_P, UNION_OR_STRUCT_P):
1102         Move to gengtype.h.
1103         (string_type, scalar_nonchar, scalar_nonchar, scalar_char):
1104         Remove static, add zero state_number.
1105         (typedefs, structures, param_structs, variables): Remove static.
1106         (create_option): Remove.
1107         (create_string_option, create_type_option, create_nested_option):
1108         New functions.
1109         (create_nested_ptr_option): Use create_nested_option.
1110         (note_variable, adjust_field_rtx_def, adjust_field_type): Call the
1111         new create*option functions.
1112         (process_gc_options): Adjust for discriminated option.
1113         (output_mangled_typename): Handle TYPE_NONE.
1114         (walk_type): Test option kinds.
1115         (write_types_process_field): Handle TYPE_NONE and TYPE_ARRAY.
1116         (write_func_for_structure, write_type, write_local, write_root)
1117         (write_roots, note_def_vec, dump_options): Adjust for
1118         discriminated option.
1119
1120         * gengtype.h (typedefs, structures, param_structs, variables
1121         enum typekind): Move from gengtype.c
1122         (enum option_kind): New discriminating enumeration.
1123         (struct options): Becomes discriminated.
1124         (struct nested_ptr_data): Nove from gengtype.c
1125         (create_string_option, create_type_option, create_nested_option)
1126         (create_nested_ptr_option): New functions
1127         (struct pair, enum_gc_used_enum, NUM_PARAM, struct type, UNION_P)
1128         (UNION_OR_STRUCT_P): Move from gengtype.c
1129
1130         * gengtype-parse.c (str_optvalue_opt, type_optvalue, option): Make
1131         discriminated options.
1132
1133 2010-11-23  Richard Guenther  <rguenther@suse.de>
1134
1135         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid doing work
1136         twice.  Avoid re-allocating the ops vector all the time.
1137
1138 2010-11-23  Richard Guenther  <rguenther@suse.de>
1139
1140         * tree-ssa-alias.c (refs_may_alias_p_1): Avoid calls to
1141         is_gimple_min_invariant, group tree code checks to allow
1142         combining them.
1143         (stmt_may_clobber_ref_p_1): Check for SSA_NAME instead
1144         of is_gimple_reg.
1145
1146 2010-11-23  Eric Botcazou  <ebotcazou@adacore.com>
1147
1148         * config.gcc (sparc*-*-*): Reorder.
1149
1150 2010-11-23  Basile Starynkevitch  <basile@starynkevitch.net>
1151
1152         * gengtype.c (header_dot_h_frul, source_dot_c_frul):
1153         Remove ENABLE_CHECKING around DBGPRINTF.
1154
1155 2010-11-22  Joseph Myers  <joseph@codesourcery.com>
1156
1157         * common.opt (exit_after_options, write_symbols, debug_info_level,
1158         use_gnu_debug_info_extensions): New Variable entries.
1159         (fprofile-dir=): Use Var.
1160         * flag-types.h (enum debug_info_level): Rename to enum
1161         debug_info_levels.
1162         * flags.h (write_symbols, debug_info_level,
1163         use_gnu_debug_info_extensions): Remove declarations.
1164         * opts.c (exit_after_options, write_symbols, debug_info_level): Remove.
1165         (set_struct_debug_option): Make static variables const.
1166         (use_gnu_debug_info_extensions): Remove.
1167         (set_debug_level, print_filtered_help, print_specific_help,
1168         fast_math_flags_set_p): Take gcc_options parameters and use them
1169         in place of global variables.
1170         (print_filtered_help): Make new_help non-static.
1171         (print_specific_help): Update call to print_filtered_help.
1172         (common_handle_option): Update calls to print_specific_help.  Use
1173         gcc_options structure for more settings.  Make --help table
1174         const.  Don't handle OPT_fprofile_dir_ here.  Update calls to
1175         set_debug_level.
1176         * toplev.c (profile_data_prefix): Remove.
1177         * toplev.h (profile_data_prefix, exit_after_options): Remove
1178         declarations.
1179         (fast_math_flags_set_p): Update prototype.
1180         * cppbuiltin.c (define_builtin_macros_for_compilation_flags):
1181         Update call to fast_math_flags_set_p.
1182
1183 2010-11-22  Richard Henderson  <rth@redhat.com>
1184
1185         PR target/46434
1186         * config/crx/crx.c (crx_addr_reg): Rename from crx_addr_reg_p;
1187         return the address register extracted.
1188         (crx_decompose_address): Update the extracted address register.
1189
1190 2010-11-22  Dmitry Gorbachev  <d.g.gorbachev@gmail.com>
1191
1192         PR driver/43335
1193         * gcc.c (main): Don't crash when lto-wrapper program is not found.
1194
1195 2010-11-22  Joern Rennecke  <amylaar@spamcop.net>
1196
1197         PR target/46608
1198         * config/picochip/picochip.c (picochip_secondary_reload): Make static.
1199         * config/picochip/picochip-protos.h: Don't include "target.h" .
1200         (picochip_secondary_reload): Don't declare.
1201
1202         PR target/46613
1203         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Declare.
1204         * config/m32c/m32c.c (m32c_conditional_register_usage): No longer
1205         static.
1206
1207 2010-11-22  H.J. Lu  <hongjiu.lu@intel.com>
1208
1209         PR bootstrap/46609
1210         * gengtype.c (header_dot_h_frul): Check ENABLE_CHECKING.
1211         (source_dot_c_frul): Likewise.
1212
1213 2010-11-22  Basile Starynkevitch  <basile@starynkevitch.net>
1214
1215         * gimple-pretty-print.c (dump_bb_header): Add check for cfun.
1216
1217 2010-11-22  Paolo Bonzini  <bonzini@gnu.org>
1218
1219         PR bootstrap/44970
1220         * Makefile.in (fwprop.o) Add sparseset.h.
1221         * fwprop.c: Include sparseset.h
1222         (struct find_occurrence_data, find_occurrence_callback,
1223         find_occurrence): Remove.
1224         (active_defs, active_defs_check, register_active_defs,
1225         update_df_init, update_uses): New.
1226         (update_df): Rewrite.
1227         (try_fwprop_subst, forward_propagate_asm): Add calls to
1228         update_df_init and update_df.
1229         (fwprop_init): Allocate active_defs and active_defs_check.
1230         (fwprop_done): Free them.
1231         (fwprop, fwprop_addr): Adjust comments.
1232         * df.h (df_uses_create): Declare.
1233         * df-scan.c (df_install_ref_incremental): Break out of df_ref_create.
1234         (df_ref_create): Return result of df_ref_create_structure directly.
1235         (df_ref_create_structure): Call df_install_ref_incremental when
1236         no collection_rec is passed.
1237         (df_ref_record): Do not create multiword hard reg info when no
1238         collection_rec is passed.
1239         (df_uses_create): New.
1240
1241 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1242
1243         PR middle-end/43057
1244         * fold-const.c (pedantic_non_lvalue_loc): Unshare x before
1245         setting location.
1246
1247 2010-11-22  Richard Guenther  <rguenther@suse.de>
1248
1249         * gimple-fold.c (maybe_fold_reference): When canonicalizing
1250         MEM_REFs, preserve volatileness.
1251         * cgraphbuild.c (mark_address): Properly check for FUNCTION_DECL
1252         addresses.
1253
1254 2010-11-22  Richard Guenther  <rguenther@suse.de>
1255
1256         * tree-ssa-ccp.c (get_base_constructor): Remove superfluous breaks.
1257
1258 2010-11-22  Alexander Monakov  <amonakov@ispras.ru>
1259
1260         PR rtl-optimization/45652
1261         * alias.c (get_reg_base_value): New.
1262         * rtl.h (get_reg_base_value): Add prototype.
1263         * sel-sched.c (init_regs_for_mode): Use it.  Don't use registers with
1264         non-null REG_BASE_VALUE for renaming.
1265
1266 2010-11-22  Jeremie Salvucci  <jeremie.salvucci@free.fr>
1267             Basile Starynkevitch  <basile@starynkevitch.net>
1268
1269         * gengtype.c: Include xregex.h and obstack.h
1270         Added comments about role of get_output_file_with_visibility and
1271         our regexpr machinery.
1272         (frul_actionrout_t, struct file_rule_st): New.
1273         (hader_dot_h_frul, source_dot_c_frul): New functions.
1274         (NULL_REGEX,  NULL_FRULACT): New.
1275         (files_rules): New.
1276         (matching_file_name_substitute): New function.
1277         (get_output_file_with_visibility): Updated comments and rewritten
1278         to use the new files_rules machinery.
1279
1280         * Makefile.in (XREGEX_H): Added variable.
1281         (build/gengtype.o): Added dependencies for xregex.h and obstack.h
1282
1283 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1284
1285         * system.h (FUNCTION_ARG_BOUNDARY): Really poison.
1286
1287 2010-11-21  Nathan Froyd  <froydnj@codesourcery.com>
1288
1289         * target.def (conditional_register_usage): Define.
1290         * reginfo.c (init_reg_sets_1): Call
1291         targetm.conditional_register_usage.
1292         * system.h (CONDITIONAL_REGISTER_USAGE): Poison.
1293         * doc/tm.texi.in (CONDITIONAL_REGISTER_USAGE): Adjust language
1294         for making it a hook.
1295         * doc/tm.texi: Regenerate.
1296         * config/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1297         * config/alpha/alpha.c (alpha_conditional_register_usage): ...here.
1298         New function.
1299         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1300         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1301         * config/arc/arc.c (arc_conditional_register_usage): ...here.
1302         New function.
1303         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1304         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1305         * config/arm/arm.c (arm_conditional_register_usage): ...here.
1306         New function.
1307         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1308         * config/bfin/bfin.h (CONDITIONAL_REGISTER_USAGE): Delete.
1309         * config/bfin/bfin-protos.h (conditional_register_usage): Delete.
1310         * config/bfin/bfin.c (conditional_register_usage): Move code into...
1311         (bfin_conditional_register_usage): ...here.  New function.
1312         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1313         * config/cris/cris.h (CONDITIONAL_REGISTER_USAGE): Delete.
1314         * config/cris/cris-protos.h (cris_conditional_register_usage): Delete.
1315         * config/cris/cris.c (cris_conditional_register_usage): Make static.
1316         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1317         * config/fr30/fr30.h (FIXED_REGISTERS): Adjust comment.
1318         * config/frv/frv.h (CONDITIONAL_REGISTER_USAGE): Delete.
1319         * config/frv/frv-protos.h (frv_conditional_register_usage): Delete.
1320         * config/frv/frv.c (frv_conditional_register_usage): Make static.
1321         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1322         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1323         * config/h8300/h8300.c (h8300_conditional_register_usage): ...here.
1324         New function.
1325         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1326         * config/i386/i386.h (CONDITIONAL_REGISTER_USAGE): Delete.
1327         * config/i386/i386-protos.h (ix86_conditional_register_usage): Delete.
1328         * config/i386/i386.c (ix86_conditional_register_usage): Make static.
1329         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1330         * config/m32c/m32c.h (CONDITIONAL_REGISTER_USAGE): Delete.
1331         * config/m32c/m32c-protos.h (m32c_conditional_register_usage): Delete.
1332         * config/m32c/m32c.c (m32c_conditional_register_usage): Make static.
1333         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1334         * config/m32r/m32r.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1335         * config/m32r/m32r.c (m32r_conditional_register_usage): ...here.
1336         New function.
1337         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1338         * config/m68hc11/m68hc11.h (CONDITIONAL_REGISTER_USAGE): Delete.
1339         * config/m68hc11/m68hc11-protos.h (m68hc11_conditional_register_usage):
1340         Delete.
1341         * config/m68hc11/m68hc11.c (m68hc11_conditional_register_usage): Make
1342         static.
1343         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1344         * config/mep/mep.h (CONDITIONAL_REGISTER_USAGE): Delete.
1345         * config/mep/mep-protos.h (mep_conditional_register_usage): Delete.
1346         * config/mep/mep.c (mep_conditional_register_usage): Make static.
1347         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1348         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Delete.
1349         * config/mips/mips-protos.h (mips_conditional_register_usage): Delete.
1350         * config/mips/mips.c (mips_conditional_register_usage): Make static.
1351         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1352         * config/mmix/mmix.h (CONDITIONAL_REGISTER_USAGE): Delete.
1353         * config/mmix/mmix-protos.h (mmix_conditional_register_usage): Delete.
1354         * config/mmix/mmix.c (mmix_conditional_register_usage): Make static.
1355         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1356         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1357         * config/mn10300/mn10300.c (mn10300_conditional_register_usage):
1358         ...here.  New function.
1359         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1360         * config/pa/pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1361         * config/pa/pa64-regs.h (CONDITIONAL_REGISTER_USAGE): ...with this...
1362         * config/pa/pa.c (pa_conditional_register_usage): ...here.
1363         New function.
1364         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1365         * config/pdp11/pdp11.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1366         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): ...here.
1367         New function.
1368         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1369         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Delete.
1370         * config/rs6000/rs6000-protos.h (rs6000_conditional_register_usage):
1371         Delete.
1372         * config/rs6000/rs6000.c (rs6000_conditional_register_usage): Make
1373         static.
1374         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1375         * config/rx/rx.h (CONDITIONAL_REGISTER_USAGE): Delete.
1376         * config/rx/rx-protos.h (rx_conditional_register_usage): Delete.
1377         * config/rx/rx.c (rx_conditional_register_usage): Make static.
1378         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1379         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Delete.
1380         * config/s390/s390-protos.h (s390_conditional_register_usage): Delete.
1381         * config/s390/s390.c (s390_conditional_register_usage): Make static.
1382         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1383         * config/score/score.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1384         * config/score/score.c (score_conditional_register_usage): ...here.
1385         New function.
1386         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1387         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1388         * config/sh/sh.c (sh_conditional_register_usage): ...here.
1389         New function.
1390         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1391         * config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1392         * config/sparc/sparc.c (sparc_conditional_register_usage): ...here.
1393         New function.
1394         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1395         * config/spu/spu.h (CONDITIONAL_REGISTER_USAGE): Delete.
1396         * config/spu/spu-protos.h (spu_conditional_register_usage): Delete.
1397         * config/spu/spu.c (spu_conditional_register_usage): Make static.
1398         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1399         * config/v850/v850.h (CONDITIONAL_REGISTER_USAGE): Move logic...
1400         * config/v850/v850.c (v850_conditional_register_usage): ...here.
1401         New function.
1402         (TARGET_CONDITIONAL_REGISTER_USAGE): Define.
1403
1404 2010-11-21  Jan Hubicka  <jh@suse.cz>
1405             Dominique d'Humieres <dominiq@lps.ens.ft>
1406
1407         PR target/46510
1408         * tree-emutls.c (get_emutls_init_templ_addr, new_emutls_decl): Do not
1409         finalize external decls.
1410
1411 2010-11-21  Joseph Myers  <joseph@codesourcery.com>
1412
1413         * system.h (strerror): Poison.
1414
1415 2010-11-21  Richard Henderson  <rth@redhat.com>
1416
1417         * config/ia64/ia64.c (ia64_expand_builtin): Use the correct mode
1418         for infq/huge_valq.
1419
1420 2010-11-21  Richard Henderson  <rth@redhat.com>
1421
1422         PR rtl-optimization/46571
1423         * gcse.c (hash_scan_set): Use next_nonnote_nondebug_insn.
1424         (compute_hash_table_work): Use NONDEBUG_INSN_P.
1425
1426 2010-11-21  Paul Koning  <ni1d@arrl.net>
1427
1428         * config/mips/pdp11.md (negsi2): Fix wrong code.
1429
1430 2010-11-21  Paul Koning  <ni1d@arrl.net>
1431
1432         * config/mips/pdp11.c (pdp11_legitimate_address_p): New function.
1433         * config/mips/pdp11.h (GO_IF_LEGITIMATE_ADDRESS): Delete.
1434
1435 2010-11-21  Eric Botcazou  <ebotcazou@adacore.com>
1436
1437         * config/mips/mips.c (machine_function): Rename load_label_length to
1438         load_label_num_insns.
1439         (mips_load_label_length): Rename to...
1440         (mips_load_label_num_insns): ...this.  Adjust to first renaming.
1441         (mips_adjust_insn_length): Adjust to second renaming.  Fix thinko.
1442
1443 2010-11-21  Uros Bizjak  <ubizjak@gmail.com>
1444
1445         PR target/46533
1446         * config/alpha/predicates.md (direct_call_operand): Return false
1447         for !TARGET_SMALL_TEXT targets.
1448
1449 2010-11-20  Joseph Myers  <joseph@codesourcery.com>
1450
1451         * doc/tm.texi.in (HANDLE_SYSV_PRAGMA,
1452         HANDLE_PRAGMA_PACK_PUSH_POP): Remove.
1453         (HANDLE_PRAGMA_PACK_WITH_EXPANSION): Don't refer to HANDLE_SYSV_PRAGMA.
1454         * doc/tm.texi: Regenerate.
1455         * system.h (HANDLE_PRAGMA_PACK_PUSH_POP, HANDLE_SYSV_PRAGMA,
1456         HANDLE_PRAGMA_WEAK): Poison.
1457         * config/alpha/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1458         * config/alpha/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1459         * config/alpha/osf5.h (HANDLE_SYSV_PRAGMA): Don't define.
1460         * config/alpha/vms.h (HANDLE_SYSV_PRAGMA): Don't define.
1461         * config/arm/arm.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1462         * config/arm/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1463         * config/cris/cris.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1464         * config/darwin.h (HANDLE_SYSV_PRAGMA): Don't define.
1465         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1466         * config/elfos.h (HANDLE_SYSV_PRAGMA): Don't define.
1467         * config/freebsd.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1468         * config/frv/frv.h (HANDLE_SYSV_PRAGMA): Don't define.
1469         * config/i386/cygming.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1470         * config/i386/djgpp.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1471         * config/i386/i386-interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1472         (HANDLE_PRAGMA_WEAK): Don't undefine.
1473         * config/i386/netware.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1474         * config/i386/vxworks.h (HANDLE_SYSV_PRAGMA): Don't define.
1475         * config/ia64/hpux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1476         * config/ia64/ia64.h (HANDLE_SYSV_PRAGMA): Don't define.
1477         * config/interix.h (HANDLE_SYSV_PRAGMA): Don't define.
1478         (HANDLE_PRAGMA_WEAK): Don't undefine.
1479         * config/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1480         * config/m32r/linux.h (HANDLE_SYSV_PRAGMA): Don't define.
1481         (HANDLE_PRAGMA_PACK): Don't undefine.
1482         * config/m32r/m32r.h (HANDLE_SYSV_PRAGMA): Don't undefine.
1483         * config/mep/mep.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1484         * config/mips/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1485         * config/mips/sde.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1486         * config/mmix/mmix.h (HANDLE_SYSV_PRAGMA): Don't define.
1487         * config/netbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1488         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1489         * config/openbsd.h (HANDLE_SYSV_PRAGMA): Don't define.
1490         * config/pa/pa-hpux.h (HANDLE_SYSV_PRAGMA): Don't define.
1491         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1492         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Don't define.
1493         * config/rs6000/sysv4.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1494         * config/rx/rx.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1495         * config/score/elf.h (HANDLE_SYSV_PRAGMA): Don't define.
1496         * config/spu/spu.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1497         * config/stormy16/stormy16.h (HANDLE_SYSV_PRAGMA): Don't define.
1498         * config/xtensa/elf.h (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define.
1499
1500 2010-11-20  Eric Botcazou  <ebotcazou@adacore.com>
1501
1502         PR target/31100
1503         * config/sparc/sparc.h (ASM_OUTPUT_ALIGN_WITH_NOP): Move to...
1504         * config/sparc/sol2.h (ASM_OUTPUT_ALIGN_WITH_NOP): ...here.
1505         * config/sparc/sol2-gas.h (ASM_OUTPUT_ALIGN_WITH_NOP): Undefine.
1506
1507 2010-11-20  Jan Hubicka  <jh@suse.cz>
1508
1509         * cgraph.c (ld_plugin_symbol_resolution_names): New.
1510         (dump_cgraph_node): Dump resolution.
1511         * cgraph.h (ld_plugin_symbol_resolution_names): Declare.
1512         (cgraph_comdat_can_be_unshared_p): Dclare.
1513         * lto-streamer-out.c (produce_symtab): Use
1514         cgraph_comdat_can_be_unshared_p.
1515         * ipa.c (cgraph_address_taken_from_non_vtable_p): New function.
1516         (cgraph_comdat_can_be_unshared_p): New function based on logic
1517         in cgraph_externally_visible_p.
1518         (cgraph_externally_visible_p): Use it.
1519         (varpool_externally_visible_p): Virtual tables can be unshared.
1520         * varpool.c (dump_varpool_node): Dump resolution.
1521
1522 2010-11-20  Jan Hubicka  <jh@suse.cz>
1523
1524         * stmt.c (lshift_cheap_p): Support properly optimize_insn_for_speed_p.
1525
1526 2010-11-20  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1527
1528         PR other/46202
1529         * Makefile.in (install_sh, INSTALL_STRIP_PROGRAM): New variables.
1530         (AR_FOR_TARGET, RANLIB_FOR_TARGET, STRIP_FOR_TARGET): Fix
1531         shell quoting.
1532         (STRIP_FOR_TARGET): Look for in-tree strip under name strip-new.
1533         (install-strip): New target.
1534         (STRIPPROG): New variable, exported if STRIP is set.
1535         * doc/install.texi (Final install): Minor markup and code style
1536         fixes.  Document install-strip target.
1537
1538 2010-11-20  Paul Koning  <ni1d@arrl.net>
1539
1540         * config/pdp11/pdp11-protos.h (pdp11_initial_elimination_offset,
1541         pdp11_regno_reg_class): New functions.
1542         * config/pdp11/pdp11.md (define_constants): Add register numbers.
1543         * config/pdp11/pdp11.c (pdp11_regno_reg_class,
1544         pdp11_sp_frame_offset, pdp11_initial_elimination_offset): New
1545         functions.
1546         * config/pdp11/pdp11.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Add
1547         frame pointer and argument pointer pseudo-registers.
1548         (ARG_POINTER_REGNUM): Define.
1549         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add frame pointer and
1550         argument pointer.
1551         (FIRST_PARM_OFFSET): Update for argument pointer.
1552         (INITIAL_FRAME_POINTER_OFFSET): Delete.
1553         (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): New macros.
1554         (REGNO_OK_FOR_BASE_P, REGNO_OK_FOR_INDEX_P, REGISTER_NAMES): Add
1555         frame pointer and argument pointer.
1556
1557 2010-11-20  Jakub Jelinek  <jakub@redhat.com>
1558
1559         PR debug/46561
1560         * tree-parloops.c (try_create_redunction_list): Ignore debug stmts
1561         when looking for immediate uses.
1562
1563         PR tree-optimization/45830
1564         * stmt.c (expand_switch_using_bit_tests_p): New function.
1565         (expand_case): Use it.
1566         * tree.h (expand_switch_using_bit_tests_p): New prototype.
1567         * tree-switch-conversion.c (struct switch_conv_info): Add
1568         bit_test_uniq, bit_test_count and bit_test_bb fields.
1569         (check_range): Fix a comment.
1570         (check_process_case): Compute bit_test_uniq and bit_test_count.
1571         (create_temp_arrays): Use XCNEWVEC, merge 3 arrays into one
1572         allocation.
1573         (free_temp_arrays): Use XDELETEVEC, adjust for the 3 arrays merging.
1574         (constructor_contains_same_values_p): Use FOR_EACH_VEC_ELT.
1575         (array_value_type): New function.
1576         (build_one_array): Use it, if it returned different type,
1577         fold_convert all constructor fields and convert back to the
1578         wider type in the generated code.
1579         (process_switch): Initialize bit_test_uniq, bit_test_count and
1580         bit_test_bb fields.  Don't optimize if expand_switch_using_bit_tests_p
1581         returned true.
1582
1583 2010-11-19  Michael Matz  <matz@suse.de>
1584
1585         PR tree-optimization/46077
1586         * tree-chrec.c (eq_evolutions_p): Accept some expressions.
1587
1588 2010-11-19  Anatoly Sokolov  <aesok@post.ru>
1589
1590         * config/mn10300/mn10300.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
1591         * config/mn10300/mn10300.c (mn10300_asm_output_addr_const_extra): New
1592         function.
1593         (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
1594
1595 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
1596
1597         * mode-switching.c (optimize_mode_switching): Use
1598         FOR_BB_INSNS instead of open-coded loop.
1599         * cfgrtl.c (redirect_branch_edge): Ditto.
1600
1601 2010-11-19  Joern Rennecke  <amylaar@spamcop.net>
1602
1603         PR target/46436
1604         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Split shift count
1605         to accomodate 32 bit HOST_WIDE_INT.
1606         (m68hc11_emit_logical): Remove unused variable insn.
1607         (m68hc11_check_z_replacement) <CLOBBER>: Set this_insn_uses_ix and
1608         this_insn_uses_iy before use.
1609
1610         PR target/46434
1611         * config/crx/crx.c (crx_expand_epilogue): Remove unused variable.
1612
1613 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1614
1615         PR c/46547
1616         * c-tree.h (in_late_binary_op): Move to c-family/c-common.h.
1617         * c-typeck.c (in_late_binary_op): Move to c-family/c-common.c.
1618
1619 2010-11-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
1620
1621         * doc/extend.texi (Function attributes): Document PowerPC target
1622         attributes that are supported.
1623         (Pragmas): Document that PowerPC now supports target pragmas.
1624
1625         * doc/options.texi (TargetVariable): Document TargetVariable,
1626         HeaderInclude, and SourceInclude.
1627
1628         * doc/invoke.texi (-mfused-madd): Document that -mfused-madd is
1629         mapped to -ffp-contract=fast, and -mno-fused-madd is mapped to
1630         -ffp-contract=off.
1631
1632         * optc-gen.awk: Add support for TargetVariable, HeaderInclude, and
1633         SourceInclude directives.  Fix a cut+paste error with target save
1634         enum variables.  Sort enums in the structures after ints and
1635         before shorts.
1636         * opth-gen.awk: Ditto.
1637
1638         * configure.ac: Add support for HeaderInclude and SourceInclude option
1639         directives to add the appropriate files to the dependency lists.
1640         * configure: Regenerate.
1641         * Makefile.in (OPTIONS_H_EXTRA): New variable for HeaderInclude.
1642         (OPTIONS_C_EXTRA): New variable for SourceInclude.
1643         (OPTIONS_H): Add $(OPTIONS_H_EXTRA).
1644         (options.o): Add $(OPTIONS_C_EXTRA) dependency.
1645         (gcc-options.o): Ditto.
1646         * opt-include.awk: New awk script to handle HeaderInclude and
1647         TargetInclude.
1648
1649         * config/rs6000/aix.opt (-mxl-compat): Mark option as Save so it
1650         gets saved in the target options.
1651         * config/rs6000/linux64.opt (-mprofile-kernel): Ditto.
1652         * config/rs6000/sysv4.opt (-mbit-align): Ditto.
1653         (-mprototype): Ditto.
1654         (-mbit-word): ditto.
1655         (-mregnames): Ditto.
1656         (-msecure-plt): Ditto.
1657         (-mbss-plt): Ditto.
1658         * config/rs6000/rs6000.opt (-mpowerpc-gpopt): Ditto.
1659         (-mpowerpc-gfxopt): Ditto.
1660         (-mmfcrf): Ditto.
1661         (-mpopcntb): Ditto.
1662         (-mfprnd): Ditto.
1663         (-mcmpb): Ditto.
1664         (-mmmfpgpr): Ditto.
1665         (-maltivec): Ditto.
1666         (-mhard-dfp): Ditto.
1667         (-mmulhw): Ditto.
1668         (-mdlmzb): Ditto.
1669         (-mmultiple): Ditto.
1670         (-mstring): Ditto.
1671         (-mpopcntd): Ditto.
1672         (-mfriz): Ditto.
1673         (-mvsx): Ditto.
1674         (-mno-update): Ditto.
1675         (-mavoid-indexed-addresses): Ditto.
1676         (-mtls-markers): Ditto.
1677         (-msched-epilog): Ditto.
1678         (-msched-prolog): Ditto.
1679         (-maix-struct-return): Ditto.
1680         (-msvr4-struct-return): Ditto.
1681         (-mxl-compat): Ditto.
1682         (-mrecip-precision): Ditto.
1683         (-mfp-in-toc): Ditto.
1684         (-msum-in-toc): Ditto.
1685         (-mvrsave): Ditto.
1686         (-mblock-move-inline-limit=): Ditto.
1687         (-misel): Ditto.
1688         (-mpaired): Ditto.
1689         (-mlongcall): Ditto.
1690         (-mgen-cell-microcode): Ditto.
1691         (-mwarn-cell-microcode): Ditto.
1692         (-mwarn-altivec-long): Ditto.
1693         (-mprioritize-restricted-insns=): Ditto.
1694         (-msingle-float): Ditto.
1695         (-mdouble-float): Ditto.
1696         (-msimple-fpu): Ditto.
1697         (-mxilinx-fpu): Ditto.
1698         * config/rs6000/aix64.opt (-mpe): Ditto.
1699
1700         * config/rs6000/rs6000.opt (HeaderInclude): Include rs6000-opts.h.
1701         (rs6000_cpu): Move variable to be a target variable.  Rename
1702         cmodel to rs6000_current_cmodel because of macro conflict.  Merge
1703         -mdebug=<xxx> variables into a single int.
1704         (rs6000_always_hint): Ditto.
1705         (rs6000_sched_groups): Ditto.
1706         (rs6000_align_branch_targets): Ditto.
1707         (rs6000_sched_costly_dep): Ditto.
1708         (rs6000_sched_insert_nops): Ditto.
1709         (rs6000_long_double_type_size): Ditto.
1710         (rs6000_ieeequad): Ditto.
1711         (rs6000_altivec_abi): Ditto.
1712         (rs6000_spe): Ditto.
1713         (rs6000_spe_abi): Ditto.
1714         (rs6000_float_gprs): Ditto.
1715         (rs6000_darwin64_abi): Ditto.
1716         (can_override_loop_align): Ditto.
1717         (rs6000_sdata): Ditto.
1718         (rs6000_tls_size): Ditto.
1719         (rs6000_current_abi): Ditto.
1720         (rs6000_traceback): Ditto.
1721         (rs6000_alignment_flags): Ditto.
1722         (rs6000_current_cmodel): Ditto.
1723         (rs6000_recip_control): Ditto.
1724         (rs6000_cpu_index): Ditto.
1725         (rs6000_tune_index): Ditto.
1726         (rs6000_debug): Ditto.
1727         (rs6000_target_flags_explict): Ditto.
1728
1729         * config/rs6000/rs6000-protos.h (rs6000_pragma_target_parse): Add
1730         declaration.
1731
1732         * config/rs6000/linux64.h (rs6000_current_cmode): Rename from
1733         cmodel.  Change all uses.
1734
1735         * config/rs6000/rs6000.c (rs6000_always_hint): Move to
1736         rs6000.opt.  Combine -mdebug=<xxx> variables into a single int.
1737         Rename cmodel to rs6000_current_cmodel.
1738         (rs6000_sched_groups): Ditto.
1739         (rs6000_align_branch_targets): Ditto.
1740         (rs6000_sched_costly_dep): Ditto.
1741         (rs6000_sched_insert_nops): Ditto.
1742         (rs6000_long_double_type_size): Ditto.
1743         (rs6000_ieeequad): Ditto.
1744         (rs6000_altivec_abi): Ditto.
1745         (rs6000_spe): Ditto.
1746         (rs6000_spe_abi): Ditto.
1747         (rs6000_float_gprs): Ditto.
1748         (rs6000_darwin64_abi): Ditto.
1749         (can_override_loop_align): Ditto.
1750         (rs6000_sdata): Ditto.
1751         (rs6000_tls_size): Ditto.
1752         (rs6000_current_abi): Ditto.
1753         (rs6000_traceback): Ditto.
1754         (rs6000_alignment_flags): Ditto.
1755         (rs6000_current_cmodel): Ditto.
1756         (rs6000_recip_control): Ditto.
1757         (rs6000_cpu_index): Ditto.
1758         (rs6000_tune_index): Ditto.
1759         (rs6000_debug): Ditto.
1760         (rs6000_target_flags_explict): Ditto.
1761         (rs6000_sched_insert_nops_str): Make static.
1762         (rs6000_sched_costly_dep_str): Ditto.
1763         (rs6000_recip_name): Ditto.
1764         (rs6000_abi_name): Ditto.
1765         (rs6000_sdata_name): Ditto.
1766         (enum rs6000_traceback_name): Move to rs6000-opts.h.
1767         (rs6000_parse_tls_size_option): Delete.
1768         (rs6000_valid_attribute_p): New function for target attributes and
1769         pragmas.
1770         (rs6000_function_specific_save): Ditto.
1771         (rs6000_function_specific_restore): Ditto.
1772         (rs6000_function_specific_print): Ditto.
1773         (rs6000_can_inline_p): Ditto.
1774         (rs6000_set_current_function): Ditto.
1775         (rs6000_inner_target_options): Ditto.
1776         (rs6000_debug_target_options): Ditto.
1777         (rs6000_pragma_target_parse): Ditto.
1778         (TARGET_OPTION_VALID_ATTRIBUTE_P): Define target hooks for target
1779         attributes and pragmas.
1780         (TARGET_OPTION_SAVE): Ditto.
1781         (TARGET_OPTION_RESTORE): Ditto.
1782         (TARGET_OPTION_PRINT): Ditto.
1783         (TARGET_CAN_INLINE_P): Ditto.
1784         (TARGET_SET_CURRENT_FUNCTION): Ditto.
1785         (POWER_MASKS): Move to file level scope from the
1786         rs6000_option_override_internal function.
1787         (POWERPC_MASKS): Ditto.
1788         (ISA_*_MASKS): Ditto.
1789         (struct rs6000_ptt): Ditto.
1790         (processor_target_table): Ditto.
1791         (rs6000_cpu_name_lookup): Map cpu name to an index in
1792         processor_target_table.
1793         (rs6000_debug_reg_global): Print more information on processor
1794         options for -mdebug=reg.
1795         (rs6000_init_hard_regno_mode_ok): Add support for target
1796         attributes and pragmas.  Merge all -mdebug=<xxx> fields into one.
1797         Allow -mdebug=val1,val2.  Rename cmodel variable.
1798         (rs6000_option_override_internal): Ditto.
1799         (rs6000_option_override): Ditto.
1800         (rs6000_handle_option): Ditto.
1801         (rs6000_conditional_register_usage): Add debug trace message.
1802         (struct rs6000_opt_mask): New for target attribute/pragma support.
1803         (rs6000_opt_masks): Ditto.
1804         (struct rs6000_opt_var): Ditto.
1805         (rs6000_opt_vars): Ditto.
1806         (rs6000_previous_function): Ditto.
1807
1808         * config/rs6000/rs6000.h (top level): Include rs6000-opts.h if it
1809         wasn't already included.
1810         (enum rs6000_cmodel): Move to rs6000-opts.h or rs6000.opt.
1811         (enum processor_type): Ditto.
1812         (rs6000_cpu): Ditto.
1813         (enum fpu_type_t): Ditto.
1814         (fpu_type): Ditto.
1815         (enum rs6000_dependence_cost): Ditto.
1816         (enum rs6000_nop_insertion): Ditto.
1817         (enum group_termination): Ditto.
1818         (rs6000_long_double_type_size): Ditto.
1819         (rs6000_ieeequad): Ditto.
1820         (rs6000_altivec_abi): Ditto.
1821         (rs6000_spe_abi): Ditto.
1822         (rs6000_spe): Ditto.
1823         (rs6000_float_gprs): Ditto.
1824         (rs6000_alignment_flags): Ditto.
1825         (rs6000_sched_insert_nops): Ditto.
1826         (enum rs6000_vector): Ditto.
1827         (enum rs6000_abi): Ditto.
1828         (rs6000_current_opt): Ditto.
1829         (rs6000_debug_*): Delete.
1830         (MASK_DEBUG*): Combine -mdebug=xxxx into one int.
1831         (TARGET_DEBUG*): Ditto.
1832
1833         * config/rs6000/rs6000-opts.h: New header file to define the enums
1834         that are used in target variables that are now defined in rs6000.opt.
1835
1836         * config/rs6000/sysv4.h (enum rs6000_sdata_type): Move to
1837         rs6000-opts.h.
1838         (rs6000_sdata): Ditto.
1839         (rs6000_abi_name): Delete.
1840         (rs6000_sdata_name): Ditto.
1841         (rs6000_tls_size_string): Ditto.
1842
1843 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1844
1845         * common.opt (debug_struct_ordinary, debug_struct_generic): New
1846         Variable entries.
1847         * dwarf2out.c (matches_main_base, dump_struct_debug, DUMP_GSTRUCT,
1848         should_emit_struct_debug): Move from opts.c.
1849         * flag-types.h (enum debug_struct_file): Move from opts.c.
1850         * flags.h (should_emit_struct_debug): Remove.
1851         (base_of_path): Declare.
1852         (set_struct_debug_option): Add gcc_options parameter.
1853         * optc-gen.awk, opth-gen.awk: Handle array variables.
1854         * opts.c (enum debug_struct_file, debug_struct_ordinary,
1855         debug_struct_generic): Remove.
1856         (set_struct_debug_option): Add gcc_options parameter.
1857         (base_of_path): Remove static.
1858         (main_input_basename, main_input_baselength, matches_main_base,
1859         dump_struct_debug, DUMP_GSTRUCT, should_emit_struct_debug):
1860         Remove.
1861         * toplev.c (main_input_basename, main_input_baselength): Define
1862         here.
1863         * toplev.h (main_input_basename, main_input_baselength): Declare
1864         here.
1865
1866 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1867
1868         * common.opt (flag_instrument_functions_exclude_functions,
1869         flag_instrument_functions_exclude_files): New Variable definitions.
1870         * flags.h (flag_instrument_functions_exclude_p): Don't declare.
1871         * gimplify.c (char_p): Declare type and vectors.
1872         (flag_instrument_functions_exclude_p): Moved from opts.c.  Make static.
1873         * opts.c (flag_instrument_functions_exclude_functions,
1874         flag_instrument_functions_exclude_files): Remove.
1875         (add_comma_separated_to_vector): Take void **.
1876         (flag_instrument_functions_exclude_p): Move to gimplify.c.
1877         (common_handle_option): Use options structure for
1878         -finstrument-functions-exclude- options.
1879
1880 2010-11-19  Joseph Myers  <joseph@codesourcery.com>
1881
1882         * doc/options.texi (Var): Document effects of Defer.
1883         (Defer): Document.
1884         * opt-functions.awk (var_type, var_set): Handle deferred options.
1885         * opts-common.c (set_option): Handle CLVC_DEFER.
1886         * common.opt (fcall-saved-, fcall-used-, fdump-, ffixed-,
1887         fplugin=, fplugin-arg-, fstack-limit, fstack-limit-register=,
1888         fstack-limit-symbol=): Mark as deferred.
1889         * opts.c: Don't include rtl.h, ggc.h, output.h, tree-pass.h or
1890         plugin.h.
1891         (print_filtered_help): Don't report state of CLVC_DEFER options.
1892         (common_handle_option): Move code for OPT_fcall_used_,
1893         OPT_fcall_saved_, OPT_fdump_, OPT_ffixed_, OPT_fplugin_,
1894         OPT_fplugin_arg_, OPT_fstack_limit, OPT_fstack_limit_register_ and
1895         OPT_fstack_limit_symbol_ to opts-global.c.
1896         (option_enabled, get_option_state): Handle CLVC_DEFER.
1897         * opts.h: Include vec.h.
1898         (enum cl_var_type): Add CLVC_DEFER.
1899         (cl_deferred_option): Define type and vectors.
1900         (handle_common_deferred_options): Declare.
1901         * opts-global.c: New.
1902         * toplev.c (toplev_main): Call handle_common_deferred_options
1903         * Makefile.in (OPTS_H): Include $(VEC_H).
1904         (OBJS-common): Include opts-global.o.
1905         (opts.o): Update dependencies.
1906         (opts-global.o): Add dependencies.
1907
1908 2010-11-19  Nicola Pero  <nicola.pero@meta-innovation.com>
1909
1910         * c-parser.c (c_parser_objc_protocol_definition): Pass attributes
1911         to objc_declare_protocols.
1912
1913 2010-11-19  Richard Guenther  <rguenther@suse.de>
1914
1915         PR lto/45789
1916         * lto-streamer-out.c (lto_output_ts_common_tree_pointers): For
1917         IDENTIFIERs do not stream TREE_TYPE.
1918         * lto-streamer-in.c (lto_input_ts_common_tree_pointers): Likewise.
1919
1920 2010-11-19  Christian Borntraeger  <borntraeger@de.ibm.com>
1921
1922         * config/s390/s390.c (s390_function_arg_integer): Handle NULLPTR_TYPE.
1923
1924 2010-11-19  Jakub Jelinek  <jakub@redhat.com>
1925
1926         PR target/45870
1927         * dwarf2out.c (const_ok_for_output_1): Don't complain about
1928         non-delegitimized TLS UNSPECs.
1929
1930 2010-11-18  Jack Howarth  <howarth@bromo.med.uc.edu>
1931             Ian Lance Taylor  <iant@google.com>
1932
1933         * config/darwin-c.c (darwin_additional_format_types): Export.
1934
1935 2010-11-18  Paul Koning  <ni1d@arrl.net>
1936
1937         * config/pdp11/pdp11.h (FIRST_PARM_OFFSET): Fix case of no frame
1938         pointer.
1939
1940 2010-11-18  Paul Koning  <ni1d@arrl.net>
1941
1942         * config/pdp11/pdp11.md (abshi2): Delete TARGET_ABSHI_BUILTIN.
1943         * config/pdp11/pdp11.c (TARGET_DEFAULT_TARGET_FLAGS): Ditto.
1944         * config/pdp11/pdp11.opt (-mabshi): Delete.
1945
1946 2010-11-19  Mingjie Xing  <mingjie.xing@gmail.com>
1947
1948         * resource.h (struct resources): Fix typo in the comment.
1949
1950 2010-11-19  Uros Bizjak  <ubizjak@gmail.com>
1951
1952         PR target/46546
1953         * config/i386/i386.c (ix86_reorg): Call compute_bb_for_insn.
1954
1955 2010-11-18  Richard Henderson  <rth@redhat.com>
1956
1957         PR middle-end/46515
1958         * function.c (maybe_copy_prologue_epilogue_insn): Rename from
1959         maybe_copy_epilogue_insn; handle prologue insns as well.
1960         * rtl.h, cfglayout.c: Update for rename.
1961         * recog.c (peep2_attempt): Copy prologue/epilogue data for
1962         RTX_FRAME_RELATED_P insns.
1963
1964 2010-11-18  Jakub Jelinek  <jakub@redhat.com>
1965
1966         PR middle-end/46534
1967         * builtins.c (fold_builtin_printf): Don't copy and modify string
1968         before build_string_literal, instead modify what
1969         build_string_literal returned.
1970
1971 2010-11-18  Nathan Froyd  <froydnj@codesourcery.com>
1972
1973         PR c/33193
1974         * c-typeck.c (build_unary_op): Call build_real_imag_expr for
1975         REALPART_EXPR and IMAGPART_EXPR.
1976
1977 2010-11-18  Richard Guenther  <rguenther@suse.de>
1978
1979         PR tree-optimization/46172
1980         * tree-vect-loop-manip.c (remove_dead_stmts_from_loop): New
1981         function.
1982         (slpeel_tree_peel_loop_to_edge): Call it.
1983
1984 2010-11-18  Jeff Law  <law@redhat.com>
1985
1986         PR middle-end-optimization/46297
1987         * postreload.c (reload_combine_note_store): Deal with embedded
1988         side effects in MEM expressions.
1989
1990 2010-11-18  Richard Guenther  <rguenther@suse.de>
1991
1992         PR lto/45089
1993         * dwarf2out.c (add_AT_die_ref): Work around LTO losing types
1994         when checking is not enabled.
1995
1996 2010-11-18  Richard Guenther  <rguenther@suse.de>
1997
1998         PR lto/46525
1999         * gimple.c (gimple_register_type): Update TYPE_MAIN_VARIANT of
2000         type leaders.
2001         (gimple_register_canonical_type): Also cache the canoncial type
2002         for non type leaders.
2003
2004 2010-11-18  Richard Guenther  <rguenther@suse.de>
2005
2006         * lto-wrapper.c (run_gcc): Fix -flto=N parsing.
2007
2008 2010-11-18  Alexander Monakov  <amonakov@ispras.ru>
2009
2010         PR middle-end/46518
2011         * sel-sched-ir.c (init_expr): Use the correct type for
2012         target_available.
2013         * sel-sched.c (fill_vec_av_set): Use explicitly signed char type.
2014
2015 2010-11-17  Joakim Tjernlund  <Joakim.Tjernlund@transmode.se>
2016
2017         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Support -fpic
2018         as well as -mrelocatable at the same time.
2019
2020 2010-11-17  Quentin Neill  <quentin.neill.gnu@gmail.com>
2021
2022         PR target/46422
2023         * config/i386/bmiintrin.h (__lzcnt_u16, __lzcnt_u32, __lzcnt_u64):
2024         Call the clz builtin.
2025
2026 2010-11-17  Dinar Temirbulatov <dtemirbulatov@gmail.com>
2027             Steve Ellcey  <sje@cup.hp.com>
2028
2029         PR middle-end/31490
2030         * varasm.c (categorize_decl_for_section): Ignore reloc_rw_mask
2031         if section attribute used.
2032
2033 2010-11-17  Jan Hubicka  <jh@suse.cz>
2034
2035         * builtins.c (expand_builtin_mathfn_2, expand_builtin_mathfn): Do not
2036         expand errno setting variant when optimizing for size.
2037
2038 2010-11-17  Eric Botcazou  <ebotcazou@adacore.com>
2039
2040         * postreload.c (reload_combine): Call control_flow_insn_p only once.
2041         Reverse backward loop.  Fix formatting issues.
2042
2043 2010-11-17  Paolo Bonzini  <bonzini@gnu.org>
2044
2045         * c-parser.c (c_token_is_qualifier,
2046         c_parser_next_token_is_qualifier): New.
2047         (c_parser_declaration_or_fndef, c_parser_struct_declaration):
2048         Improve error message on specs->tagdef_seen_p.
2049         (c_parser_struct_or_union_specifier): Improve error recovery.
2050         (c_parser_declspecs): Move exit condition on C_ID_ID early.
2051         Reorganize exit condition for C_ID_TYPENAME/C_ID_CLASSNAME
2052         using c_parser_next_token_is_qualifier; extend it to cover
2053         a ctsk_tagdef typespec and !typespec_ok in general.
2054
2055 2010-11-17  Richard Guenther  <rguenther@suse.de>
2056
2057         * value-prof.c (gimple_divmod_fixed_value_transform): Update the stmt.
2058         (gimple_mod_pow2_value_transform): Likewise.
2059         (gimple_mod_subtract_transform): Likewise.
2060
2061 2010-11-17  Richard Guenther  <rguenther@suse.de>
2062
2063         PR lto/46504
2064         * gimple.c (gimple_register_canonical_type): Make sure to only
2065         make type leaders canonical types.
2066
2067 2010-11-17  Michael Matz  <matz@suse.de>
2068
2069         * timevar.def (TV_IPA_OPT, TV_EARLY_LOCAL, TV_OPTIMIZE,
2070         TV_POSTRELOAD, TV_REMOVE_UNUSED, TV_ADDRESS_TAKEN, TV_TODO,
2071         TV_VERIFY_LOOP_CLOSED, TV_VERIFY_RTL_SHARING,
2072         TV_REBUILD_FREQUENCIES, TV_REPAIR_LOOPS): New.
2073         * tree-into-ssa.c (rewrite_into_ssa): Don't push/pop timevar here ...
2074         (pass_build_ssa): ... but here.
2075         * cgraphbuild.c (pass_rebuild_cgraph): Use timevar.
2076         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Use timevar.
2077         * tree-emutls.c (pass_ipa_lower_emutls): Ditto.
2078         * df-core.c (pass_df_initialize_opt, pass_df_initialize_no_opt): Ditto.
2079         * predict.c (rebuild_frequencies): Ditto.
2080         * tree-vectorizer.c (pass_ipa_increase_alignment): Ditto.
2081         * emit-rtl.c (verify_rtl_sharing): Ditto.
2082         * tree-cfgcleanup.c (repair_loop_structures): Ditto.
2083         * tree-ssa-live.c (remove_unused_locals): Ditto.
2084         * cfglayout.c (pass_into_cfg_layout, pass_outof_cfg_layout): Ditto.
2085         * tree-ssa.c (pass_early_warn_uninitialized,
2086         execute_update_addresses_taken, pass_update_address_taken): Ditto.
2087         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2088         pass_cleanup_cfg_post_optimizing, tree_rest_of_compilation): Ditto.
2089         * passes.c (pass_postreload, execute_todo): Ditto.
2090         * tree-ssanames.c (pass_release_ssa_names): Ditto.
2091
2092 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2093
2094         * doc/invoke.texi (-dy): Remove.
2095         * langhooks-def.h (lhd_do_nothing_i): Don't declare.
2096         (LANG_HOOKS_PARSE_FILE): Define to lhd_do_nothing.
2097         * langhooks.c (lhd_do_nothing_i): Remove.
2098         * langhooks.h (lang_hooks.parse_file): Take no arguments.
2099         * toplev.c (set_yydebug): Remove.
2100         (compile_file): Update call to lang_hooks.parse_file.
2101         (decode_d_option): Don't handle -dy.
2102
2103 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2104
2105         PR rtl-optimization/46440
2106         * combine.c (update_cfg_for_uncondjump): When changing
2107         an indirect jump into unconditional jump, remove BARRIERs
2108         from bb's footer.
2109
2110 2010-11-17  Joseph Myers  <joseph@codesourcery.com>
2111
2112         * opts.c (target_handle_option): Do not assert that loc ==
2113         UNKNOWN_LOCATION.
2114
2115 2010-11-17  Jakub Jelinek  <jakub@redhat.com>
2116             Richard Guenther  <rguenther@suse.de>
2117
2118         PR middle-end/45838
2119         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
2120         call_may_clobber_ref_p_1): Return true for __sync_* and some
2121         OpenMP builtins that act as threading barriers.
2122
2123 2010-11-17  Richard Guenther  <rguenther@suse.de>
2124
2125         PR tree-optimization/46498
2126         * tree-ssa-dce.c (perform_tree_ssa_dce): Compute dominator info.
2127
2128 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2129
2130         * config/xtensa/xtensa.c (function_arg_boundary): Really rename to...
2131         (xtensa_function_arg_boundary): ...this.
2132         * config/picochip/pichochip.c (picochip_function_arg_boundary): Fix
2133         thinko in declaration.
2134         (picochip_function_arg, picochip_arg_partial_bytes): Pass proper
2135         number of parameters to picochip_function_arg_boundary.
2136         (picochip_arg_advance): Likewise.
2137
2138 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2139
2140         PR target/46512
2141         * config/pa/pa.c (pa_function_arg_boundary): Move TYPE_SIZE accesses
2142         under check for type.
2143
2144 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2145
2146         * ifcvt.c (dead_or_predicable): Fix typo.
2147
2148 2010-11-16  Richard Henderson  <rth@redhat.com>
2149
2150         * config.gcc [s390*-*] (extra_options): Add fused-madd.opt.
2151         * config/s390/s390.opt (mfused-madd): Remove.
2152         * config/s390/s390.c (s390_rtx_costs): Handle FMA.
2153         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
2154         * config/s390/s390.md (fma<DSF>4): Rename from *fmadd<DSF>; use FMA.
2155         (fms<DSF>4): Rename from *fmsub<DSF>; use FMA.
2156
2157 2010-11-16  Richard Henderson  <rth@redhat.com>
2158
2159         * config.gcc [powerpc*, rs6000*] (extra_options): Add fused-madd.opt.
2160         * config/rs6000/rs6000.opt (mfused-madd): Remove.
2161         * config/rs6000/altivec.md (altivec_vmaddfp): Remove.
2162         (*altivec_vmaddfp_1): Remove.
2163         (*altivec_fmav4sf4): Rename from altivec_vmaddfp_2; use FMA.
2164         (altivec_mulv4sf3): Expand to FMA directly.
2165         (*altivec_vnmsubfp): Rename from altivec_vnmsubfp.
2166         (*altivec_vnmsubfp_1, *altivec_vnmsubfp_2): Remove.
2167         * config/rs6000/paired.md (paired_madds0): Use FMA.
2168         (paired_madds1): Likewise.
2169         (*paired_madd): Rename from paired_madd; use FMA.
2170         (*paired_msub, *paired_nmadd, *paired_nmsub): Similarly.
2171         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
2172         consider TARGET_FUSED_MADD wrt rs6000_recip_control.
2173         (bdesc_3arg): Update CODE_FOR_* for pattern renames.
2174         (rs6000_emit_madd): Use fma_optab.
2175         (rs6000_emit_msub): Use fms_optab.
2176         (rs6000_emit_nmsub): Expand the FMA pattern directly.
2177         * config/rs6000/rs6000.md (FMA_F): New mode iterator.
2178         (*fmasf4_fpr): Rename from fmasf4_fpr.
2179         (*nfmasf4_fpr): Rename from *fnmasf4_fpr.
2180         (*nfmssf4_fpr): Rename from *fnmssf4_fpr.
2181         (*fmaddsf4_powerpc, *fmaddsf4_power, *fmsubsf4_powerpc): Remove.
2182         (*fmsubsf4_power, *fnmaddsf4_powerpc_1, *fnmaddsf4_powerpc_2): Remove.
2183         (*fnmaddsf4_power_1, *fnmaddsf4_power_2, *fnmsubsf4_powerpc_1): Remove.
2184         (*fnmsubsf4_powerpc_2, *fnmsubsf4_power_1, *fnmsubsf4_power_2): Remove.
2185         (*fmadf4_fpr): Rename from fmadf4_fpr.
2186         (*nfmadf4_fpr): Rename from *fnmadf4_fpr.
2187         (*nfmsdf4_fpr): Rename from *fnmsdf4_fpr.
2188         (*fmadddf4_fpr, *fmsubdf4_fpr, *fnmadddf4_fpr_1): Remove.
2189         (*fnmadddf4_fpr_2, *fnmsubdf4_fpr_1, *fnmsubdf4_fpr_2): Remove.
2190         (fmasf4, fmadf4): Macroize into...
2191         (fma<FMA_F>4): ... here.
2192         (fms<FMA_F>4, fnma<FMA_F>4, fnms<FMA_F>4): New.
2193         (nfma<FMA_F>4, nfms<FMA_F>4): New.
2194         * config/rs6000/vector.md (mul<VEC_F>3): Do not depend on
2195         TARGET_FUSED_MADD.
2196         * config/rs6000/vsx.md (vsx_fmadd<VSX_B>4): Remove.
2197         (*vsx_fmadd<mode>4_1): Remove.
2198         (vsx_fmsub<mode>4, *vsx_fmsub<mode>4_1): Remove.
2199         (vsx_fnmadd<mode>4_1, vsx_fnmadd<mode>4_2): Remove.
2200         (vsx_fnmsub<mode>4_1, vsx_fnmsub<mode>4_2): Remove.
2201         (*vsx_fma<mode>4): Rename from vsx_fmadd<mode>4_2.
2202         (*vsx_fms<mode>4): Rename from vsx_fmsub<mode>4_2.
2203         (*vsx_nfma<mode>4): Rename from vsx_fnmadd<mode>4.
2204         (*vsx_nfms<mode>4): Rename from vsx_fnmsub<mode>4.
2205
2206 2010-11-16  Richard Henderson  <rth@redhat.com>
2207
2208         * config/pa/pa.md (fmadf4): Rename from unnamed; use FMA.
2209         (fmasf4, fnmadf4, fnmasf4): Likewise.
2210         (unnamed plus+mult insns and splitters): Delete.
2211
2212 2010-11-16  Richard Henderson  <rth@redhat.com>
2213
2214         * config/spu/spu.md (fma<VSF>4): Rename from fma_<VSF>.
2215         (fnma<VSF>4): Rename from fnms_<VSF>.
2216         (fms<VSF>4): Rename from fms_<VSF>.
2217         (fma<VDF>4): Rename from fma_<VDF>.
2218         (fms<VDF>4): Rename from fms_<VDF>.
2219         (nfma<VDF>4): Rename from fnma_<VDF>.
2220         (nfms<VDF>4): Rename from fnms_<VDF>.
2221         (fnma<VDF>4, fnms<VDF>4): New expanders.
2222         (floatunsdisf2): Update for the renames.
2223         (*div<VSF>3_fast, *div<VSF>3_adjusted): Likewise.
2224         * config/spu/spu-builtins.def: Update CODE_FOR_* for the renames.
2225
2226 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2227
2228         PR rtl-optimization/46490
2229         * combine.c (expand_compound_operation): Fix thinko.
2230
2231 2010-11-16  Richard Henderson  <rth@redhat.com>
2232
2233         PR target/46470
2234         * recog.c (peep2_attempt): Convert frame-related info when possible.
2235         (peep2_fill_buffer): Allow frame-related insns into the buffer.
2236         (peephole2_optimize): Allow peep2_attempt to fail.
2237
2238 2010-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2239
2240         PR rtl-optimization/46315
2241         * rtl.h (remove_reg_equal_equiv_notes_for_regno): Declare.
2242         * rtlanal.c (remove_reg_equal_equiv_notes_for_regno): New function
2243         extracted from...
2244         * dce.c (delete_corresponding_reg_eq_notes): ...here.  Rename into...
2245         (remove_reg_equal_equiv_notes_for_defs): ...this.
2246         (delete_unmarked_insns): Adjust to above renaming.
2247         * ifcvt.c (dead_or_predicable): Remove REG_EQUAL and REG_EQUIV notes
2248         referring to registers set in the insns being moved, if any.
2249
2250         * df-core.c (df_ref_dump): New function extracted from...
2251         (df_refs_chain_dump): ...here.  Call it.
2252         (df_regs_chain_dump): Likewise.
2253         * df-problems.c (df_chain_dump): Print 'e' for uses in notes.
2254         * df-scan.c (df_scan_start_dump): Likewise.  Fix long line.
2255
2256 2010-11-16  Andreas Schwab  <schwab@linux-m68k.org>
2257
2258         PR rtl-optimization/46395
2259         * postreload.c (reload_combine): Invalidate register use
2260         information on all control flow insns.
2261
2262         * config/m68k/m68k.c (m68k_delegitimize_address): Also expect
2263         LABEL_REF in UNSPEC operand.
2264
2265 2010-11-16  Jan Hubicka  <jh@suse.cz>
2266
2267         * cgraph.h (+varpool_can_remove_if_no_refs): Move here from ...;
2268         when !flag_toplevel_reorder do not remove unless variable is
2269         COMDAT or ARTIFICIAL.
2270         * ipa.c (varpool_can_remove_if_no_refs): ... here.
2271         (cgraph_remove_unreachable_nodes): Only analyzed nodes needs to stay.
2272         * cgraphunit.c (cgraph_analyze_functions): Dump varpool, too.
2273         * varpool.c (decide_is_variable_needed): Do not handle visibility
2274         issues.
2275         (varpool_finalize_decl): Likewise.
2276         (varpool_remove_unreferenced_decls): Use varpool_mark_needed_node;
2277         update outdated comment on DECL_RTL_SET_P check.
2278
2279 2010-11-16  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2280
2281         * config/sol2.h (NM_FLAGS): Define.
2282         * doc/tm.texi.in (Macros for Initialization, NM_FLAGS): Document.
2283         * doc/tm.texi: Update.
2284
2285 2010-11-16  Nick Clifton  <nickc@redhat.com>
2286
2287         * config/v850/v850.md (maddsf4): Rename to fmasf4 and use fma rtx_code.
2288         (msubsf4): Rename to fmssf4, and use fma.
2289         (nmaddsf4): Rename to fnmasf4 and use fma.
2290         (nmsubsf4): Rename to fnmssf4 and use fma.
2291
2292 2010-11-16  Joern Rennecke  <amylaar@spamcop.net>
2293
2294         PR target/44762
2295         * config/score/score3.c (score3_return_in_memory): Constify arguments.
2296         (score3_in_small_data_p, score3_function_value): Likewise.
2297         (score3_trampoline_init): Use LCT_NORMAL.
2298         (score3_print_operand): Initialize code as UNKNOWN.
2299         * config/score/predicates.md (score_load_multiple_operation):
2300         Remove unused variable.
2301         (score_store_multiple_operation): Likewise.
2302         * config/score/score7.c (score7_return_in_memory): Constify arguments.
2303         (score7_in_small_data_p, score7_function_value): Likewise.
2304         (score7_trampoline_init): Use LCT_NORMAL.
2305         (score7_print_operand): Initialize code as UNKNOWN.
2306         * config/score/score3.h (score3_return_in_memory): Update prototype.
2307         (score3_in_small_data_p, score3_function_value): Likewise.
2308         * config/score/score-protos.h (score_function_value): Likewise.
2309         * config/score/score7.h (score7_return_in_memory): Update prototype.
2310         (score7_in_small_data_p, score7_function_value): Likewise.
2311         * config/score/score.c (TARGET_PROMOTE_PROTOTYPES): Constify.
2312         (score_return_in_memory, score_pass_by_reference): Constify arguments.
2313         (score_output_mi_thunk, score_function_prologue): Don't return a value.
2314         (score_function_epilogue, score_in_small_data_p): Likewise.
2315         (score_option_override, score_asm_trampoline_template): Likewise.
2316         (score_trampoline_init, score_print_operand): Likewise.
2317         (score_print_operand_address, score_prologue): Likewise.
2318         (score_epilogue, score_call, score_call_value): Likewise.
2319         (score_movsicc, score_movdi, score_zero_extract_andi): Likewise.
2320         (score_function_arg_advance): Likewise. Make static.
2321         (score_asm_file_end): Mark parameter value with ATTRIBUTE_UNUSED.
2322         (score_function_arg, score_legitimate_address_p): Make static.
2323         (score_function_value): Mark parameter func with ATTRIBUTE_UNUSED.
2324         * config/score/score.h (REGNO_REG_CLASS): Cast value to enum reg_class.
2325         * config/score/score-conv.h (UIMM_IN_RANGE, SIMM_IN_RANGE):
2326         Allow (W) == HOST_BITS_PER_WIDE_INT.
2327
2328         PR java/46386
2329         * config/pdp11/t-pdp11 (java/constants.o-warn): Remove.
2330         * config/t-pnt16-warn (java/constants.o-warn): Likewise.
2331
2332 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2333
2334         * config/arc/arc.c: Delete pasto.
2335         * config/pa/pa.c (pa_function_arg_boundary): Add missing comparison.
2336
2337 2010-11-16  Anatoly Sokolov  <aesok@post.ru>
2338
2339         * config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS,
2340         PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2341         * config/mn10300/mn10300.c (TARGET_PREFERRED_RELOAD_CLASS,
2342         TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2343         (mn10300_preferred_reload_class,
2344         mn10300_preferred_output_reload_class): New functions.
2345
2346 2010-11-16  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2347
2348         * gensupport.c (MNEMONIC_ATTR_NAME, MNEMONIC_HTAB_SIZE): New macros.
2349         (htab_eq_string, add_mnemonic_string, gen_mnemonic_setattr)
2350         (mnemonic_htab_callback, gen_mnemonic_attr): New functions.
2351         (init_rtx_reader_args_cb): Invoke gen_mnemonic_attr.
2352
2353 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2354
2355         * builtins.c (std_gimplify_va_arg_expr): Use
2356         targetm.calls.function_arg_boundary.
2357         * function.c (assign_parms, locate_and_pad_parm): Likewise.
2358         * calls.c (struct arg_data): Update comment.
2359         * defaults.h (FUNCTION_ARG_BOUNDARY): Delete.
2360         * target.def (function_arg_boundary): Define.
2361         * targhooks.h (default_function_arg_boundary): Declare.
2362         * targhooks.c (default_function_arg_boundary): Define.
2363         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Use
2364         TARGET_FUNCTION_ARG_BOUNDARY.
2365         (FUNCTION_ARG_BOUNDARY): Delete.
2366         (TARGET_FUNCTION_ARG_BOUNDARY): New.
2367         * doc/tm.texi: Regenerate.
2368         * system.h (FUNCTION_ARG_BOUNDARY): Poison.
2369         * config/arc/arc.h (FUNCTION_ARG_BOUNDARY): Delete.
2370         * config/arc/arc.c (arc_function_arg_boundary): Define.
2371         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2372         * config/arm/arm.h (FUNCTION_ARG_BOUNDARY): Delete.
2373         * config/arm/arm-protos.h (arm_needs_doubleword_align): Delete.
2374         * config/arm/arm.c (arm_needs_doubleword_align): Make static.
2375         (arm_function_arg_boundary): Define.
2376         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2377         * config/frv/frv.h (FUNCTION_ARG_BOUNDARY): Delete.
2378         * config/frv/frv-protos.h (frv_function_arg_boundary): Delete.
2379         * config/frv/frv.c (frv_function_arg_boundary): Make static.
2380         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2381         * config/i386/i386.h (FUNCTION_ARG_BOUNDARY): Delete.
2382         * config/i386/i386-protos.h (ix86_function_arg_boundary): Delete.
2383         * config/i386/i386.c (ix86_function_arg_boundary): Make static.
2384         (ix86_compat_function_arg_boundary): Take and return unsigned int.
2385         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2386         * config/ia64/ia64.h (FUNCTION_ARG_BOUNDARY): Delete.
2387         * config/ia64/ia64-protos.h (ia64_function_arg_boundary): Delete.
2388         * config/ia64/ia64.c (ia64_function_arg_boundary): Make static.
2389         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2390         * config/m32c/m32c.h (FUNCTION_ARG_BOUNDARY): Delete.
2391         * config/m32c/m32c.c (m32c_function_arg_boundary): Define.
2392         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2393         * config/m32r/m32r.h (FUNCTION_ARG_BOUNDARY): Delete.
2394         * config/mcore/mcore.h (FUNCTION_ARG_BOUNDARY): Delete.
2395         * config/mcore/mcore.c (mcore_function_arg_boundary): Define.
2396         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2397         * config/mips/mips.h (FUNCTION_ARG_BOUNDARY): Delete.
2398         * config/mips/mips-protos.h (mips_function_arg_boundary): Delete.
2399         * config/mips/mips.c (mips_function_arg_boundary): Make static.
2400         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2401         * config/pa/pa.h (FUNCTION_ARG_BOUNDARY): Delete.
2402         * config/pa/pa.c (pa_function_arg_boundary): Define.
2403         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2404         * config/picochip/picochip.h (FUNCTION_ARG_BOUNDARY): Delete.
2405         * config/picochip/picochip-protos.h
2406         (picochip_get_function_arg_boundary): Delete.
2407         * config/picochip/picochip.c (picochip_get_function_arg_boundary):
2408         Rename to...
2409         (picochip_function_arg_boundary): ...this.  Make static.
2410         (picochip_function_arg, picochip_arg_partial_bytes): Adjust.
2411         (picochip_arg_advance): Adjust.
2412         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2413         * config/rs6000/rs6000.h (FUNCTION_ARG_BOUNDARY): Delete.
2414         * config/rs6000/rs6000-protos.h (function_arg_boundary): Delete.
2415         * config/rs6000/rs6000.c (function_arg_boundary): Rename to...
2416         (rs6000_function_arg_boundary): ...this.  Make static.
2417         (rs6000_parm_start, rs6000_gimplify_va_arg): Adjust.
2418         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2419         * config/rx/rx.h (FUNCTION_ARG_BOUNDARY): Delete.
2420         * config/rx/rx.c (rx_function_arg_boundary): Define.
2421         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2422         * config/sparc/sparc.h (FUNCTION_ARG_BOUNDARY): Delete.
2423         * config/sparc/sparc.c (sparc_function_arg_boundary): Define.
2424         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2425         * config/xtensa/xtensa.h (FUNCTION_ARG_BOUNDARY): Delete.
2426         * config/xtensa/xtensa-protos.h (function_arg_boundary): Delete.
2427         * config/xtensa/xtensa.c (function_arg_boundary): Rename to...
2428         (xtensa_function_arg_boundary): ...this.  Make static.
2429         (TARGET_FUNCTION_ARG_BOUNDARY): Define.
2430
2431 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2432
2433         * expr.c (alignment_for_piecewise_move): New function.
2434         (widest_int_mode_for_size): New function.
2435         (move_by_pieces, move_by_pieces_ninsns): Call them.
2436         (can_store_by_pieces, store_by_pieces_1): Likewise.
2437
2438 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2439
2440         * gcc.c (char_p): Define.  Define a VEC of it.
2441         (n_linker_options, n_assembler_options, n_preprocessor_options):
2442         Delete.
2443         (linker_options, assembler_options, preprocessor_options): Convert
2444         to a VEC.
2445         (add_preprocessor_option): Adjust.
2446         (add_assembler_option): Adjust.
2447         (add_linker_option): Adjust.
2448         (do_specs_vec): New function.
2449         (do_spec_1): Call it.  Adjust for new types.
2450
2451 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2452
2453         * Makefile.in (bitmap.o, ebitmap.o, et-forest.o): Update dependencies.
2454         (sreal.o, statistics.o, stringpool.o): Likewise.
2455
2456 2010-11-16  Richard Guenther  <rguenther@suse.de>
2457
2458         PR tree-optimization/44545
2459         * tree-ssa-reassoc.c (linearize_expr_tree): Possibly throwing
2460         statements are not reassociatable.
2461         (reassociate_bb): Likewise.
2462
2463 2010-11-16  Nathan Froyd  <froydnj@codesourcery.com>
2464
2465         * bitmap.c: Delete unnecessary includes.
2466         * ebitmap.c: Likewise.
2467         * et-forest.c: Likewise.
2468         * sreal.c: Likewise.
2469         * statistics.c: Likewise.
2470         * stringpool.c: Likewise.
2471         * double-int.c: Add comment for inclusion of tm.h.
2472
2473 2010-11-16  Richard Guenther  <rguenther@suse.de>
2474
2475         * tree-ssa-sccvn.c (visit_unary_op): Rename to ...
2476         (visit_nary_op): ... this.
2477         (visit_binary_op): Remove.
2478         (visit_use): Adjust and handle GIMPLE_TERNARY_RHS.
2479
2480 2010-11-16  Richard Guenther  <rguenther@suse.de>
2481
2482         PR middle-end/45172
2483         * tree-eh.c (cleanup_empty_eh_unsplit): Avoid creating duplicate edges.
2484
2485 2010-11-16  Nick Clifton  <nickc@redhat.com>
2486
2487         * config/rx/rx.c (rx_is_ms_bitfield_layout): Return false if the
2488         record is packed.
2489
2490 2010-11-15  Richard Henderson  <rth@redhat.com>
2491
2492         * fold-const.c (operand_equal_for_comparison_p): Handle FMA_EXPR,
2493         WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR, VEC_COND_EXPR and
2494         DOT_PROD_EXPR.
2495
2496 2010-11-15  Richard Henderson  <rth@redhat.com>
2497
2498         * config/mn10300/mn10300.md (fmasf4, fmssf4, fnmasf4, fnmssf4): Rename
2499         from fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4 respectively.  Use
2500         fma rtx_code.
2501
2502 2010-11-15  Richard Henderson  <rth@redhat.com>
2503
2504         * config/frv/frv.md (fmasf4, fmssf4): Rename from *muladdsf4
2505         and *mulsubsf4 respectively.  Use fma rtx_code.
2506
2507 2010-11-15  Joseph Myers  <joseph@codesourcery.com>
2508
2509         * gcc.c: Include "vec.h".
2510         (argbuf): Make into a VEC.
2511         (argbuf_length, argbuf_index): Remove.
2512         (alloc_args, clear_args, store_arg, execute, insert_wrapper,
2513         do_spec, do_self_spec, do_spec_1, eval_spec_function, main,
2514         compare_debug_dump_opt_spec_function: Use VEC interfaces on argbuf.
2515         * Makefile.in (GCC_OBJS): Add vec.o and ggc-none.o.
2516         (gcc.o): Depend on $(VEC_H).
2517
2518 2010-11-15  Richard Henderson  <rth@redhat.com>
2519
2520         * loop-unroll.c (analyze_insn_to_expand_var): Accept accumulation
2521         via FMA if unsafe math.
2522         (insert_var_expansion_initialization): Handle FMA.
2523         (combine_var_copies_in_loop_exit): Likewise.
2524
2525 2010-11-15  Richard Henderson  <rth@redhat.com>
2526
2527         * config.gcc [ia64-*] (extra_options): Add fused-madd.opt.
2528         * config/ia64/ia64.opt: Remove mfused-madd.
2529         * config/ia64/ia64.c (ia64_rtx_costs): Handle FP MULT, PLUS, FMA.
2530         * config/ia64/vms.h (TARGET_DEFAULT): Remove MASK_FUSED_MADD.
2531         * config/ia64/vms64.h (TARGET_DEFAULT): Likewise.
2532         * config/ia64/ia64.h (TARGET_DEFAULT): Likewise.
2533         * config/ia64/hpux.h (TARGET_DEFAULT): Likewise.
2534         * config/ia64/vect.md (addv2sf3, subv2sf3): Generate FMA.
2535         (*addv2sf3_1, *addv2sf3_2, *subv2sf3_1, *subv2sf3_2): Remove.
2536         (fmav2sf4): Rename from fpma; use FMA code.
2537         (fmsv2sf4): Rename from fpms; use FMA code.
2538         (fnmav2sf4): Rename from *fpnma; use FMA code.
2539         * config/ia64/ia64.md (MODE_SDF): New iterator.
2540         (suffix): New mode attribute.
2541         (*maddsf4, *msubsf4, *nmaddsf4): Remove.
2542         (fmssf4): Rename from *fmssf4.
2543         (fnmasf4): Rename from *nfmasf4.
2544         (*madddf4, *madddf4_trunc, *msubdf4, *msubdf4_trunc): Remove.
2545         (*nmadddf4, *nmadddf4_truncsf): Remove.
2546         (fmsdf4): Rename from *fmsdf4.
2547         (fnmadf4): Rename from *nfmadf4.
2548         (*fmadf_trunc_sf, *fmsdf_trunc_sf, *fnmadf_trunc_sf): New.
2549         (*maddxf4, *maddxf4_truncsf, *maddxf4_truncdf): Remove.
2550         (*msubxf4, *msubxf4_truncsf, *msubxf4_truncdf): Remove.
2551         (*nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf): Remove.
2552         (fmsxf4): Rename from *fmsxf4.
2553         (fnmaxf4): Rename from *nfmaxf4.
2554         (*fmaxf_trunc_<MODE_SDF>, *fmsxf_trunc_<MODE_SDF>): New.
2555         (*fnmaxf_trunc_<MODE_SDF>): New.
2556
2557 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2558
2559         PR tree-optimization/46461
2560         * tree-ssa-forwprop.c (simplify_builtin_call): Ensure ptr1 is
2561         a gimple val.
2562
2563 2010-11-15  Ian Lance Taylor  <iant@google.com>
2564
2565         * godump.c: New file.
2566         * common.opt (fdump-go-spec=): New option.
2567         * tree.h: Add comments for TYPE_SYMTAB_ADDRESS and friends.
2568         (TYPE_SYMTAB_IS_ADDRESS, TYPE_SYMTAB_IS_POINTER): Define.
2569         (TYPE_SYMTAB_IS_DIE): Define.
2570         (struct tree_type): Change GTY for symtab field to use
2571         TYPE_SYMTAB_IS_ADDRESS and friends and to use a debug_hooks field
2572         to pick the union field.
2573         * debug.h (struct gcc_debug_hooks): Add tree_type_symtab_field.
2574         (dump_go_spec_init): Declare.
2575         * toplev.c (process_options): Handle flag_dump_go_spec.
2576         * debug.c: Include "tree.h".
2577         (do_nothing_debug_hooks): Set tree_type_symtab_field.
2578         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
2579         * dbxout.c (dbx_debug_hooks): Likewise.
2580         (xcoff_debug_hooks): Likewise.
2581         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
2582         * sdbout.c (sdb_debug_hooks): Likewise.  Do not define if
2583         SDB_DEBUGGING_INFO is not defined.
2584         * doc/invoke.texi (Option Summary): Mention -fdump-go-spec.
2585         (Overall Options): Document -fdump-go-spec.
2586         * Makefile.in (OBJS-common): Add godump.o.
2587         (debug.o): Add dependency on $(TREE_H).
2588         (godump.o): New target.
2589         (GTFILES): Add $(srcdir)/godump.c.
2590
2591 2010-11-15  Jakub Jelinek  <jakub@redhat.com>
2592
2593         PR debug/46095
2594         * config/i386/i386.c (pro_epilogue_adjust_stack): Instead of
2595         marking r11 set RTX_FRAME_RELATED_P if offset is too large for
2596         style < 0, add REG_FRAME_RELATED_EXPR.
2597
2598         PR debug/46387
2599         * rtl.h (vt_equate_reg_base_value): New prototype.
2600         * alias.c (vt_equate_reg_base_value): New function.
2601         * var-tracking.c (vt_init_cfa_base): Use it.
2602
2603 2010-11-15  Jan Hubicka  <jh@suse.cz>
2604             Diego Novillo  <dnovillo@google.com>
2605
2606         PR lto/41528
2607         * doc/lto.texi: Add.
2608         * doc/gccint.texi: Add reference to lto.texi.
2609         * doc/invoke.texi: Update user documentation for LTO.
2610         Move internal flags to lto.texi
2611
2612 2010-11-15  Nicola Pero  <nicola.pero@meta-innovation.com>
2613
2614         * c-typeck.c (build_unary_op): Use
2615         objc_build_incr_expr_for_property_ref to build the pre/post
2616         increment/decrement of an Objective-C property ref, and skip the
2617         lvalue_or_else check in that case.
2618
2619 2010-11-15  Martin Jambor  <mjambor@suse.cz>
2620
2621         PR tree-optimization/46349
2622         * tree-sra.c (contains_bitfld_comp_ref_p): New function.
2623         (contains_vce_or_bfcref_p): Likewise.
2624         (sra_modify_assign): Use them.
2625
2626 2010-11-15  Richard Guenther  <rguenther@suse.de>
2627
2628         PR tree-optimization/46467
2629         * tree-ssa-structalias.c (do_structure_copy): Properly treat
2630         variables without subvars.
2631
2632 2010-11-15  Hariharan Sandanagobalane  <hariharan@picochip.com>
2633
2634         * config/picochip/picochip.c (file header): Picochip name change.
2635         * config/picochip/picochip.md (file header): Likewise.
2636         * config/picochip/predicates.md (file header): Likewise.
2637         * config/picochip/dfa_space.md (file header): Likewise.
2638         * config/picochip/dfa_speed.md (file header): Likewise.
2639         * config/picochip/picochip.h(file header): Likewise.
2640         * config/picochip/constraints.md (file header): Likewise.
2641         * config/picochip/picochip-protos.h (file header): Likewise.
2642         * config/picochip/libgccExtras/setjmp.asm (file header): Likewise.
2643         * config/picochip/libgccExtras/divmodsi4.asm (file header): Likewise.
2644         * config/picochip/libgccExtras/ashlsi3.asm (file header): Likewise.
2645         * config/picochip/libgccExtras/longjmp.asm (file header): Likewise.
2646         * config/picochip/libgccExtras/ashlsi3.c (file header): Likewise.
2647         * config/picochip/libgccExtras/popcounthi2.asm (file header): Likewise.
2648         * config/picochip/libgccExtras/parityhi2.asm (file header): Likewise.
2649         * config/picochip/libgccExtras/udivmodhi4.asm (file header): Likewise.
2650         * config/picochip/libgccExtras/ashrsi3.asm (file header): Likewise.
2651         * config/picochip/libgccExtras/ashrsi3.c (file header): Likewise.
2652         * config/picochip/libgccExtras/ucmpsi2.asm (file header): Likewise.
2653         * config/picochip/libgccExtras/divmodhi4.asm (file header): Likewise.
2654         * config/picochip/libgccExtras/lshrsi3.asm (file header): Likewise.
2655         * config/picochip/libgccExtras/subdi3.asm (file header): Likewise.
2656
2657 2010-11-15  Richard Guenther  <rguenther@suse.de>
2658
2659         PR bootstrap/46474
2660         * tree-ssa-math-opts.c (convert_mult_to_fma): Disregard debug stmts.
2661
2662 2010-11-15  Nick Clifton  <nickc@redhat.com>
2663
2664         * config/stormy16/stormy16.c (direct_return): Do not generate a
2665         direct return for interrupt handlers.
2666
2667 2010-11-15  Joern Rennecke  <amylaar@spamcop.net>
2668
2669         * Makefile.in (tm.texi): Replace with rule for:
2670         ($(srcdir)/doc/tm.texi).
2671         (s-tm-texi): Depend on $(srcdir)/doc/../doc/tm.texi instead of on
2672         $(srcdir)/doc/tm.texi .
2673         (TEXI_GCCINT_FILES): Depend on $(srcdir)/doc/tm.texi instead of on
2674         tm.texi .
2675
2676         PR target/46427
2677         * config/m32r/m32r.c: Remove unused variables frame_size and insn.
2678
2679         PR bootstrap/45444
2680         * config/arm/arm.c (locate_neon_builtin_icode): Initialize key.
2681         (arm_output_asm_insn) Add ATTRIBUTE_PRINTF_4.
2682
2683         PR target/46432
2684         * config/v850/v850.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
2685
2686 2010-11-15  Richard Guenther  <rguenther@suse.de>
2687
2688         PR lto/44150
2689         * lto-opts.c (lto_write_options): Write -fexceptions even if
2690         not set by the user.
2691
2692 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2693
2694         PR c/46462
2695         * c-decl.c (declspecs_add_type): Make variables with error types
2696         integers.
2697         * c-parser.c (c_parser_next_tokens_start_declaration): Two IDs
2698         do not start a declaration before an Objective-C foreach.
2699         (c_parser_declaration_or_fndef): Improve recovery after unknown
2700         type name.
2701         (c_parser_for_statement): Hoist entrance of "foreach context"
2702         before ifs, add corresponding reset where it was missing.  Do
2703         not set objc_could_be_foreach_context for C.
2704
2705 2010-11-14  Eric Botcazou  <ebotcazou@adacore.com>
2706
2707         PR tree-optimization/45722
2708         * tree-sra.c (build_ref_for_model): Always build a COMPONENT_REF if
2709         this is a reference to a component.
2710         * ipa-prop.c (ipa_get_member_ptr_load_param): Accept COMPONENT_REF.
2711         (ipa_note_param_call): Adjust comment.
2712
2713 2010-11-14  Richard Sandiford  <rdsandiford@googlemail.com>
2714
2715         * config/mips/mips.c (machine_function): Remove
2716         initialized_mips16_gp_pseudo_p.
2717         (mips16_gp_pseudo_reg): Use cfun->machine->mips16_gp_pseudo_rtx to
2718         detect whether a pseudo has already been created.  Unconditionally
2719         create a new one if not.
2720         (mips_pic_base_register): Only call mips16_gp_pseudo_reg when
2721         expanding to rtl.  Create a new pseudo otherwise, if allowed.
2722
2723 2010-11-13  Richard Earnshaw  <rearnsha@arm.com>
2724
2725         PR target/43440
2726         * tm.texi.in (OVERLAPPING_REGISTER_NAMES): Document new macro.
2727         * tm.texi: Regenerated.
2728         * output.h (decode_reg_name_and_count): Declare.
2729         * varasm.c (decode_reg_name_and_count): New function.
2730         (decode_reg_name): Reimplement using decode_reg_name_and_count.
2731         * reginfo.c (fix_register): Use decode_reg_name_and_count and
2732         iterate over all regs used.
2733         * stmt.c (expand_asm_operands): Likewise.
2734         * arm/aout.h (OVERLAPPING_REGISTER_NAMES): Define.
2735         (ADDITIONAL_REGISTER_NAMES): Remove aliases that overlap
2736         multiple machine registers.
2737
2738 2010-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2739
2740         * stor-layout.c (place_union_field): Do not put location information
2741         on offset expressions.
2742         (place_field): Likewise.
2743         (finalize_record_size): Likewise on size expressions.
2744         (finalize_type_size): Likewise.
2745         (layout_type): Likewise.
2746
2747 2010-11-13  Alexandre Oliva  <aoliva@redhat.com>
2748
2749         PR debug/42889
2750         * df-scan.c (df_insn_rescan): Don't mark BBs upon debug insns.
2751         * df-core.c (df_set_bb_dirty_nonrl): Remove.
2752         * df.h (df_set_bb_dirty_nonlr): Likewise.
2753
2754 2010-11-13  Uros Bizjak  <ubizjak@gmail.com>
2755
2756         * config/mips/mips.md (call_internal): Pass curr_insn to
2757         mips_split_call.
2758         (call_internal_direct): Ditto.
2759         (call_value_internal): Ditto.
2760         (call_value_internal_direct): Ditto.
2761         (call_value_multiple_internal): Ditto.
2762         * config/mips/mips.c (mips_split_call): Do not copy
2763         CALL_INSN_FUNCTION_USAGE here.
2764
2765 2010-11-13  Mingming Sun  <mingm.sun@gmail.com>
2766
2767         * doc/invoke.texi (MIPS Options): Add loongson3a processor.
2768         * config/mips/mips.md (define_attr "cpu"): Add loongson_3a.
2769         (define_insn "prefetch"): Add TARGET_LOONGSON_3A.
2770         * config/mips/mips.h (TARGET_LOONGSON_3A): Define.
2771         (TUNE_LOONGSON_3A): Define.
2772         (TARGET_LOONGSON_VECTORS): Add TARGET_LOONGSON_3A.
2773         (MIPS_ISA_LEVEL_SPEC): Add loongson3a.
2774         * config/mips/mips.c (mips_cpu_info_table): Add loongson3a.
2775         (mips_issue_rate): Add PROCESSOR_LOONGSON_3A.
2776         (mips_rtx_cost_data): Add Loongson-3A.
2777
2778 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
2779
2780         * config/darwin.h (LINK_COMMAND_SPEC_A): Update for changes to lto
2781         switches.
2782
2783 2010-11-13  Iain Sandoe  <iains@gcc.gnu.org>
2784
2785         * dwarf2out.c (macinfo_entry): New struct.
2786         (output_comp_unit): Emit the section start label here and flag that we
2787         will emit an info section.
2788         (dwarf2out_start_source_file): Save data in a macinfo entry rather than
2789         emitting directly.
2790         (dwarf2out_end_source_file): Likewise.
2791         (dwarf2out_define): Likewise.
2792         (dwarf2out_undef): Likewise.
2793         (output_macinfo): New.
2794         (dwarf2out_init): Do not emit debug section switches here, allocate a
2795         vec for macinfo, when required.
2796         (dwarf2out_finish): First switch to debug_abbrev_section here.
2797         debug_line_section,  debug_macinfo_section, Likewise.
2798         Check that the pubtypes table has at least one unpruned entry before
2799         trying to emit it.
2800
2801 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2802
2803         PR c/20385
2804         * c-parser.c (c_parser_next_token_starts_declaration): Rename to...
2805         (c_parser_next_tokens_start_declaration): ... this.  Handle 2nd
2806         token lookahead.
2807         (c_parser_compound_statement_nostart, c_parser_label,
2808         c_parser_for_statement, c_parser_omp_for_loop): Adjust calls.
2809         (c_parser_declaration_or_fndef): Detect the case now matched by
2810         c_parser_next_tokens_start_declaration, give error and correct it.
2811
2812 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2813
2814         * c-tree.h (enum c_typespec_kind): Add ctsk_none.
2815         (struct c_declspecs): Replace tagdef_seen_p and type_seen_p
2816         with typespec_kind.
2817         * c-decl.c (build_null_declspecs): Initialize typespec_kind.
2818         (shadow_tag_warned, check_compound_literal_type): Adjust
2819         uses of tag_defined_p.
2820         (declspecs_add_type): Set typespec_kind.
2821         * c-parser.c (c_parser_declaration_or_fndef,
2822         c_parser_declspecs, c_parser_struct_declaration,
2823         c_parser_parameter_declaration, c_parser_type_name,
2824         c_parser_objc_diagnose_bad_element_prefix): Adjust uses
2825         of type_seen_p.
2826         * c-typeck.c (c_cast_expr): Use typespec_kind instead of
2827         tag_defined_p, pass ctsk_firstref through.
2828
2829 2010-11-13  Paolo Bonzini  <bonzini@gnu.org>
2830
2831         * c-format.c (enum format_specifier_kind, kind_descriptions): New.
2832         (struct format_wanted_type): Replace field "name" with "kind", add
2833         "format_start" and "format_length".
2834         (check_format_info_main): Fill in new fields.  Fill in
2835         FORMAT_WANTED_TYPES even for missing arguments.  Move checks
2836         after the final NUL outside the while loop.  Do not include
2837         width and precision modifiers in the format_start/format_length
2838         of the main format.
2839         (check_format_types): Remove FORMAT_START and FORMAT_LENGTH
2840         arguments.  Compute WANTED_TYPE first so that format_type_warning
2841         can be called for missing arguments.  Adjust calls to
2842         format_type_warning.
2843         (format_type_warning): Fetch as much information as possible
2844         from format_wanted_type.  Adjust printing now that every
2845         warning has a "descr", as well as for missing argument warnings
2846         and to include % sign for format specifiers.
2847
2848 2010-11-12  Alexander Monakov  <amonakov@ispras.ru>
2849
2850         PR rtl-optimization/46204
2851         * sel-sched-ir.c (maybe_tidy_empty_bb): Remove second argument.
2852         Update all callers.  Do not recompute topological order.  Adjust
2853         fallthrough edges following a degenerate conditional jump.
2854
2855 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2856
2857         * opts-common.c (control_warning_option): New.
2858         * opts.c (set_default_handlers): New.
2859         (decode_options): Use set_default_handlers and
2860         control_warning_option.
2861         (common_handle_option): Update call to enable_warning_as_error.
2862         (enable_warning_as_error): Take gcc_options parameters.  Use
2863         control_warning_option.
2864         * opts.h (set_default_handlers, control_warning_option): Declare.
2865
2866 2010-11-12  Joseph Myers  <joseph@codesourcery.com>
2867
2868         * Makefile.in (OPTS_H): Define.
2869         (c-decl.o, c-family/c-common.o, c-family/c-opts.o,
2870         c-family/c-pch.o, c-family/c-pragma.o, gcc.o, gccspec.o,
2871         cppspec.o, options.o, gcc-options.o, lto-opts.o, opts.o,
2872         opts-common.o, toplev.o, passes.o, matrix-reorg.o,
2873         ipa-struct-reorg.o, PLUGIN_HEADERS): Use $(OPTS_H).
2874         * gcc.c (driver_handle_option): Take location_t parameter.
2875         (process_command, do_self_spec): Update calls to
2876         read_cmdline_option.
2877         * langhooks-def.h (lhd_handle_option): Take location_t parameter.
2878         * langhooks.c (lhd_handle_option): Take location_t parameter.
2879         * langhooks.h (handle_option): Take location_t parameter.
2880         * lto-opts.c (lto_reissue_options): Update call to set_option.
2881         * opts-common.c (handle_option): Make static.  Take location_t
2882         parameter and pass it to other functions.
2883         (handle_generated_option): Take location_t parameter and pass it
2884         to other functions.
2885         (read_cmdline_option): Take location_t parameter and pass it to
2886         other functions.  Use warning_at and error_at.
2887         (set_option): Take location_t parameter and pass it to other
2888         functions.
2889         * opts.c (common_handle_option): Take location_t parameter and
2890         pass it to other functions.
2891         (enable_warning_as_error): Make static.  Take location_t parameter
2892         and pass it to other functions.
2893         (lang_handle_option): Take location_t parameter and pass it to
2894         other functions.
2895         (target_handle_option): Take location_t parameter.
2896         (read_cmdline_options, maybe_default_option,
2897         maybe_default_options, default_options_optimization,
2898         decode_options): Take location_t parameter and pass it to other
2899         functions.
2900         * opts.h: Include input.h.
2901         (struct cl_option_handler_func, decode_options, set_option,
2902         handle_generated_option, read_cmdline_option): Take location_t
2903         parameters.
2904         (handle_option, enable_warning_as_error): Remove.
2905         * toplev.c (toplev_main): Update call to decode_options.
2906
2907 2010-11-12  Tobias Grosser  <grosser@fim.uni-passau.de>
2908
2909         * graphite-cloog-util.c (oppose_constraint,
2910         cloog_matrix_to_ppl_constraint,
2911         new_Constraint_System_from_Cloog_Matrix): Explicitly cast to int as
2912         CLooG isl uses unsigned integers.  This triggered a warning.
2913
2914 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2915
2916         PR target/46438
2917         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Use LCT_NORMAL.
2918         (xtensa_setup_frame_addresses, xtensa_trampoline_init): Likewise.
2919         (xtensa_function_arg_1): De-constify cum.
2920         (xtensa_expand_prologue): Use add_reg_note.
2921
2922         PR target/46435
2923         * config/cris/cris.c (saved_regs_mentioned): Delete.
2924         (cris_reload_address_legitimized): Cast itype to enum reload_type.
2925         Remove unused variable op0p.
2926         (cris_rtx_costs): Cast argument 2 to rtx_cost to enum rtx_code.
2927         (cris_emit_movem_store): Use add_reg_note.
2928
2929         PR bootstrap/46456
2930         * cppbuiltin.c (define_builtin_macros_for_type_sizes): Split assert.
2931
2932 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2933
2934         * function.c (expand_function_end): Set the locator of the prologue on
2935         the stack checking insns.
2936
2937 2010-11-12  Richard Henderson  <rth@redhat.com>
2938
2939         * config.gcc [xtensa] (extra_options): Add fused-madd.opt.
2940         * config/xtensa/xtensa.opt (mfused-madd): Remove.
2941         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Remove
2942         MASK_FUSED_MADD.
2943         * config/xtensa/xtensa.md (fmasf4): Rename from muladdsf3; use fma.
2944         (fnmasf4): Rename from mulsubsf3; use fma.
2945
2946 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2947             Richard Henderson  <rth@redhat.com>
2948
2949         PR target/46428
2950         * config/moxie/moxie.c (moxie_expand_prologue): Remove unused variables.
2951         * config/moxie/moxie.h (HARD_REGNO_OK_FOR_BASE_P): Use unsigned
2952         comparison.
2953
2954 2010-11-12  Pat Haugen  <pthaugen@us.ibm.com>
2955
2956         * opts-common.c (decode_cmdline_option): Initialize separate_args.
2957
2958 2010-11-12  Jan Hubicka  <jh@suse.cz>
2959
2960         * doc/invoke.texi (early-inlining-insns): Update default.
2961         * params.def (early-inlining-insns): Default to 10.
2962
2963 2010-11-12  Olivier Hainque  <hainque@adacore.com>
2964
2965         * config/rs6000/aix.h: #undef TARGET_AIX_OS before #define.
2966
2967 2010-11-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2968
2969         * config/mips/iris6.h [!IRIX_USING_GNU_LD]
2970         (SUPPORTS_INIT_PRIORITY): Define.
2971
2972 2010-11-12  Joern Rennecke  <amylaar@spamcop.net>
2973
2974         PR target/46430
2975         * config/avr/avr-protos.h (avr_return_addr_rtx): Update prototype.
2976         * config/avr/driver-avr.c (avr_device_to_arch): Always return value.
2977         (avr_device_to_data_start, avr_device_to_startfiles): Likewise.
2978         (avr_device_to_devicelib): Likewise.
2979         * config/avr/avr.md (zero_extendqihi2): Put variable declarations
2980         into block.
2981         (zero_extendqisi2, zero_extendhisi2, zero_extendqidi2): Likewise.
2982         (zero_extendhidi2, zero_extendsidi2): Likewise.
2983         * config/avr/avr.c (avr_num_arg_regs): Constify type.
2984         (avr_return_addr_rtx): De-constify tem.
2985         (avr_rotate_bytes): Move declarations to start of block.
2986         Don't use variable length array.  Put nested if/else into block.
2987
2988         PR rtl-optimization/46433
2989         * var-tracking.c: Include tm_p.h .
2990
2991         PR bootstrap/44756
2992         PR build/44767
2993         * doc/tm.texi.in (LOCAL_ALIGNMENT): State that the type, if any,
2994         should be unsigned.
2995         (STACK_SLOT_ALIGNMENT, LOCAL_DECL_ALIGNMENT, PUSH_ROUNDING): Likewise.
2996         * doc/tm.texi: Regenerate.
2997
2998         PR target/46412
2999         * config/bfin/bfin-protos.h (bfin_local_alignment): Update prototype.
3000         * config/bfin/bfin.c: Include sel-sched.h .
3001         (bfin_cpus): Use BFIN_CPU_UNKNOWN for last initializer element.
3002         (expand_interrupt_handler_prologue): Remove unused variable insn.
3003         (bfin_load_pic_reg): Likewise.
3004         (bfin_rtx_costs): Make code / outer_code variables of type
3005         enum rtx_code, copied from re-named parameters.
3006         (bfin_local_alignment): Change align argument and return type
3007         to unsigned.
3008         (bfin_adjust_cost): Remove unused variable insn_type.
3009         Declare variables at start of block.
3010         (struct loop_info): Rename to...
3011         (struct loop_info_d).
3012         (workaround_rts_anomaly): Change type of icode to int.
3013         (harmless_null_pointer_p): Cast REGNO (..) to int before comparison
3014         with int-typed variable.
3015         (note_np_check_stores): Likewise.
3016         (trapping_loads_p): Remove unused variable pat.
3017         (bfin_expand_binop_builtin): Use expand_normal.
3018         (bfin_expand_unop_builtin): Likewise.
3019         (bfin_expand_builtin): Likewise.  Set tmode before use.
3020
3021         PR middle-end/44769
3022         * final.c (split_double): Don't use BITS_PER_WORD directly in
3023         shift count.
3024
3025         PR target/46431
3026         * config/fr30/fr30.md (*movsf_constant_store): Remove duplicated
3027         assignment.
3028
3029         PR target/46450
3030         * config/stormy16/stormy16.c (xstormy16_expand_prologue):
3031         Use add_reg_note.
3032         (xstormy16_function_arg): Dereference cum.
3033         (xstormy16_expand_builtin): Use expand_normal.
3034         Change type of omode to enum machine_mode.
3035         (combine_bnp): Rename and to and_insn.
3036
3037         PR target/46437
3038         * config/mcore/mcore.c (layout_mcore_frame): Remove unused variable
3039         localreg.
3040
3041 2010-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3042
3043         PR debug/46375
3044         * emit-rtl.c (remove_insn): Do not mark BBs upon debug insns.
3045
3046 2010-11-11  Rodrigo Rivas Costa  <rodrigorivascosta@gmail.com>
3047
3048         PR lto/46376
3049         * lto-symtab.c (lto_symtab_resolve_replaceable_p): Use DECL_ONE_ONLY.
3050
3051 2010-11-11  Nathan Froyd  <froydnj@codesourcery.com>
3052
3053         PR c/44782
3054         * common.opt (fmax-errors=): New option.
3055         * opts.c (common_handle_option) [OPT_fmax_errors_]: Handle it.
3056         * diagnostic.h (struct diagnostic_context): Add max_errors field.
3057         * diagnostic.c (diagnostic_initialize): Initialize it.
3058         (diagnostic_action_after_output): Exit if more than max_errors
3059         have been output.
3060         * doc/invoke.texi (Warning Options): Add -fmax-errors.
3061         (-fmax-errors): Document.
3062
3063 2010-11-11  Richard Henderson  <rth@redhat.com>
3064
3065         * optabs.c (init_optabs): Init {fma,fms,fnma,fnms}_optab properly.
3066
3067 2010-11-11  Richard Henderson  <rth@redhat.com>
3068
3069         * config/fused-madd.opt: New file.
3070         * config.gcc [i386-*, x86_64-*] (extra_options): Use it.
3071         * config/i386/i386.c (ix86_extra_costs): Handle FMA.
3072         (TARGET_DEFAULT_TARGET_FLAGS): Remove MASK_FUSED_MADD.
3073         * config/i386/i386.opt (mfused-madd): Remove.
3074         * config/i386/sse.md (split_fma): Remove.
3075         (split_fms, split_fnma, split_fnms): Remove.
3076
3077 2010-11-12  Jakub Jelinek  <jakub@redhat.com>
3078
3079         PR target/46088
3080         * config/i386/i386.md (*ashl<mode>3_cconly,
3081         *<shiftrt_insn><mode>3_cconly): Don't use ix86_binary_operator_ok,
3082         change nonimmediate_operand predicate to register_operand.
3083
3084 2010-11-11  Paolo Bonzini  <bonzini@gnu.org>
3085
3086         * Makefile.in (gengtype-lex.c): Include bconfig.h first.
3087
3088 2010-11-11  Jan Hubicka  <jh@suse.cz>
3089
3090         * opts.c (finish_options): Do not error on -flto-partition alone.
3091
3092         * doc/invoke.texi (-fwhopr): Merge into -flto section.
3093         (-flto-partition): Document none.
3094         * gcc.c (LINK_COMMAND_SPEC): Remove -fwhopr.
3095         * lto-wrapper.c: Update comment.
3096         (run_gcc): Update LTO option parsing.
3097         * opts.c (finish_options): add support -flto-partition=none
3098         (common_handle_option): Remove fwhopr.
3099         * common.opt: Turn fwhopr into flto.
3100         * collect2.c (main): Update option handling.
3101         * cgraphunit.c (cgraph_decide_is_function_needed): Remove flag_whopr.
3102         * ipa-split.c (execute_split_functions): Remove flag_whopr.
3103         * ipa.c (function_and_variable_visibility): Remove flag_whopr.
3104         * ipa-prop.c (ipa_compute_jump_functions): Remove flag_whopr.
3105         * varpool.c (decide_is_variable_needed): Remove flag_whopr.
3106
3107 2010-11-11  Jan Hubicka  <jh@suse.cz>
3108
3109         PR tree-optimize/40436
3110         * ipa-inline.c (likely_eliminated_by_inlining_p): Rename to ...
3111         (eliminated_by_inlining_prob): ... this one; return 50% probability
3112         for SRA.
3113         (estimate_function_body_sizes): Update use of
3114         eliminated_by_inlining_prob; estimate static function size
3115         for 2 instructions.
3116
3117 2010-11-11  Joern Rennecke  <amylaar@spamcop.net>
3118
3119         PR target/44749
3120         * config/mep/mep-protos.h (mep_legitimize_reload_address): Always
3121         declare.  Change type of argument four to type int.
3122         (mep_secondary_input_reload_class): Returns enum reg_class.
3123         (mep_secondary_output_reload_class): Likewise.
3124         (mep_function_value): Change types of arguments to cont_tree.
3125         * config/mep/mep.c (mep_legitimize_reload_address): Change type of
3126         argument four to type int.
3127         (mep_secondary_input_reload_class): Returns enum reg_class.
3128         (mep_secondary_output_reload_class): Likewise.
3129         (mep_function_value): Change types of arguments to cont_tree.
3130         * config/mep/mep.h (REGNO_REG_CLASS): Cast return value of
3131         mep_regno_reg_class to enum reg_class.
3132
3133 2010-11-11  Richard Henderson  <rth@redhat.com>
3134
3135         * tree-ssa-math-opts.c (convert_mult_to_fma): Do not verify
3136         that the target has the exact fma operation that we matched.
3137
3138 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3139
3140         * reginfo.c (fix_register): Avoid inserting English word in
3141         diagnostic sentence.  Use %qs for quoting and %'.
3142
3143 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
3144
3145         * config/i386/driver-i386.c (host_detect_local_cpu): Support
3146         Intel processor family 6, model 0x2c.
3147
3148 2010-11-11  Joseph Myers  <joseph@codesourcery.com>
3149
3150         * opts.c (warning_as_error_callback,
3151         register_warning_as_error_callback): Remove.
3152         (enable_warning_as_error): Don't use warning_as_error_callback.
3153         * opts.h (register_warning_as_error_callback): Remove.
3154
3155 2010-11-11  Richard Henderson  <rth@redhat.com>
3156
3157         * tree-ssa-math-opts.c (convert_mult_to_fma): Handle a NEGATE_EXPR
3158         in between the MULT and the PLUS/MINUS.
3159
3160 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3161
3162         PR middle-end/46388
3163         * expr.c (expand_assignment): If to_rtx is a VOIDmode MEM, use
3164         BLKmode mode for it.
3165         (expand_expr_real_1): Similarly for op0.
3166
3167 2010-11-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3168
3169         * doc/sourcebuild.texi (LTO Testing, dg-suppress-ld-options):
3170         Document optional target selector.
3171
3172 2010-11-11  Dave Korn  <dave.korn.cygwin@gmail.com>
3173
3174         * lto-streamer-out.c (write_symbol): Use int_size_in_bytes rather than
3175         assembling high and low parts of size if not using 32-bit HWINT; else
3176         use DECL_SIZE_UNITS, not DECL_SIZE.
3177
3178 2010-11-11  Martin Jambor  <mjambor@suse.cz>
3179
3180         PR tree-optimization/46383
3181         * ipa-prop.c (compute_complex_assign_jump_func): Ignore negative
3182         offsets.
3183         (compute_complex_ancestor_jump_func): Likewise.
3184         * tree.c (get_binfo_at_offset): Return NULL_TREE if offset is negative.
3185
3186 2010-11-11  Jakub Jelinek  <jakub@redhat.com>
3187
3188         PR debug/46150
3189         * tree-ssa-loop-ivopts.c (htab_inv_expr_eq): Don't return
3190         true if expr1->hash != expr2->hash.
3191
3192 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3193
3194         * cfgloop.c (verify_loop_structure): Use %' in diagnostics.  Start
3195         diagnostics with lowercase letters.
3196         * cgraphunit.c (verify_cgraph_node): Start diagnostics with
3197         lowercase letters.
3198         * collect2.c (maybe_run_lto_and_relink): Remove trailing '.' from
3199         diagnostic.
3200         * config/alpha/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3201         * config/arm/arm.c (arm_get_pcs_model): Start diagnostics with
3202         lowercase letters.
3203         * config/arm/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3204         Remove trailing ' ' from diagnostic.
3205         * config/avr/avr.c (print_operand_address): Start diagnostic with
3206         a lowercase letter and remove trailing '.'.
3207         * config/avr/avr.opt (mpmem-wrap-around): Fix typo in help text.
3208         * config/bfin/bfin.c (bfin_option_override): Start diagnostics
3209         with lowercase letters.  Use %' in diagnostics.  Remove trailing
3210         '.' from diagnostics.
3211         (bfin_handle_longcall_attribute): Use %' in diagnostic.
3212         * config/cris/cris.c (cris_split_movdx,
3213         cris_expand_pic_call_address): Start diagnostics with lowercase
3214         letters.
3215         (cris_asm_output_label_ref): Use %' in diagnostic.
3216         * config/cris/cris.h (ASM_SPEC): Start diagnostic with a lowercase
3217         letter.
3218         * config/crx/crx.h (FUNCTION_PROFILER): Start diagnostic with a
3219         lowercase letter.
3220         * config/darwin-c.c (version_as_macro): Start diagnostic with a
3221         lowercase letter.
3222         * config/darwin-driver.c (darwin_default_min_version): Use %' in
3223         diagnostic.
3224         * config/host-darwin.c (darwin_gt_pch_use_address): Use %' in
3225         diagnostic.
3226         * config/i386/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3227         * config/i386/host-cygwin.c (cygwin_gt_pch_get_address): Use %' in
3228         diagnostics.
3229         * config/i386/i386.c (ix86_option_override_internal): Write
3230         diagnostic as a single sentence without trailing '.'.  Use %' in
3231         diagnostics.
3232         (ix86_function_sseregparm, classify_argument): Start diagnostics
3233         with lowercase letters.
3234         (ix86_expand_prologue): Use %' in diagnostic.
3235         * config/i386/i386.h (CC1_CPU_SPEC_1): Remove trailing '.' from
3236         diagnostic.
3237         * config/i386/nwld.h (LINK_SPEC): Start diagnostic with a
3238         lowercase letter.
3239         * config/i386/winnt.c (i386_pe_determine_dllimport_p): Use %' in
3240         diagnostic.
3241         * config/ia64/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3242         * config/ia64/ia64.opt (msched-max-memory-insns-hard-limit): Avoid
3243         '`' in help text.
3244         * config/lm32/lm32.c (lm32_print_operand): Start diagnostic with a
3245         lowercase letter.
3246         * config/mep/mep.c (mep_validate_vliw): Start diagnostics with
3247         lowercase letters.
3248         * config/microblaze/microblaze.c (microblaze_handle_option):
3249         Remove trailing '.' from diagnostic.
3250         (print_operand): Start diagnostic with a lowercase letter.
3251         * config/pa/pa-hpux10.h (LINK_SPEC): Start diagnostics with
3252         lowercase letters.  Avoid '`' in diagnostics.
3253         * config/pa/pa-hpux11.h (LINK_SPEC): Start diagnostics with
3254         lowercase letters.  Avoid '`' in diagnostics.
3255         * config/pa/pa64-hpux.h (LINK_SPEC): Start diagnostics with
3256         lowercase letters.  Avoid '`' in diagnostics.
3257         * config/picochip/picochip.c (picochip_option_override,
3258         picochip_emit_save_register, picochip_function_arg,
3259         picochip_output_label, picochip_output_internal_label,
3260         picochip_asm_output_opcode, picochip_output_cbranch,
3261         picochip_output_compare, picochip_output_branch,
3262         picochip_get_vliw_alu_id): Remove trailing '.' and '\n' from
3263         diagnostics. Start diagnostics with lowercase letters.  Use %' in
3264         diagnostics.
3265         * config/rs6000/rs6000.c (rs6000_option_override_internal): Use
3266         "SPE" capitalization.  Start diagnostic with a lowercase letter.
3267         (rs6000_handle_option): Start diagnostics with lowercase letters.
3268         (def_builtin): Remove trailing '.' from diagnostic.
3269         (rs6000_savres_routine_name): Start diagnostic with a lowercase
3270         letter.
3271         * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Avoid '`' in
3272         diagnostic.
3273         * config/rx/rx.c (rx_handle_option): Start diagnostic with a
3274         lowercase letter.
3275         * config/s390/s390.c (s390_option_override) Start diagnostics with
3276         lowercase letters.  Use %' in diagnostic.
3277         * config/sh/sh.c (sh_output_mi_thunk): Start diagnostics with
3278         lowercase letters.
3279         * config/sh/symbian-base.c (sh_symbian_mark_dllimport): Use %' in
3280         diagnostic.
3281         * config/sh/symbian-c.c (sh_symbian_is_dllimported): Use %' in
3282         diagnostic.
3283         * config/sh/symbian-cxx.c (sh_symbian_is_dllimported): Use %' in
3284         diagnostic.
3285         * config/sparc/freebsd.h (LINK_SPEC): Avoid '`' in diagnostic.
3286         * config/spu/spu.c (spu_option_override): Start diagnostics with
3287         lowercase letters.  Use %qs for quoting in diagnostics.
3288         (spu_check_builtin_parm): Remove trailing '.' from diagnostics.
3289         Use %wd instead of HOST_WIDE_INT_PRINT_DEC in diagnostic .
3290         * config/v850/v850.c (construct_save_jarl): Remove trailing '\n'
3291         from diagnostic.
3292         * convert.c (convert_to_integer, convert_to_vector): Use %' in
3293         diagnostics.
3294         * dbgcnt.c (dbg_cnt_process_opt): Start diagnostic with lowercase
3295         letter and use "cannot" spelling.
3296         * expmed.c (extract_fixed_bit_field): Start diagnostic with
3297         lowercase letter and format as a single sentence without '.'.
3298         * ggc-common.c (write_pch_globals, gt_pch_save, gt_pch_restore):
3299         Use %' in diagnostics.
3300         * ggc-page.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3301         Use %' in diagnostics.
3302         * ggc-zone.c (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read):
3303         Use %' in diagnostics.
3304         * graph.c (clean_graph_dump_file): Use %' in diagnostic.
3305         * graphite-poly.c (graphite_read_scop_file): Start diagnostics
3306         with lowercase letters and remove tailing '.' and '\n'.
3307         * lto-cgraph.c (input_profile_summary): Start diagnostic with
3308         lowercase letter and remove trailing '.'.
3309         (input_cgraph): Start diagnostics with lowercase letters and
3310         remove trailing '\n'.
3311         * opts.c (finish_options, common_handle_option): Start diagnostics
3312         with lowercase letters and remove trailing '.'.  Fix typo in
3313         diagnostic.
3314         * passes.c (position_pass): Start diagnostic with lowercase letter.
3315         * plugin.c (add_new_plugin, parse_plugin_arg_opt,
3316         register_callback, try_init_one_plugin): Start diagnostics with
3317         lowercase letters.
3318         * reload1.c (spill_failure): Use %' in diagnostic.
3319         (gen_reload): Start diagnostic with a lowercase letter.
3320         * stor-layout.c (place_field): Start diagnostic with a lowercase
3321         letter.
3322         * toplev.c (open_auxiliary_file): Use %' in diagnostic.
3323         * tree-cfg.c (verify_expr, verify_types_in_gimple_reference,
3324         verify_gimple_call, verify_gimple_phi, verify_eh_throw_stmt_node):
3325         Start diagnostics with lowercase letters, remove trailing '.' and
3326         use %' in diagnostics.
3327         * tree-ssa.c (verify_def): Remove trailing '.' from diagnostic.
3328         (verify_ssa): Don't split diagnostic across two error calls.
3329         Spell out "number" and use %' in diagnostic.
3330         * value-prof.c (visit_hist, check_counter): Start diagnostics with
3331         lowercase letters.
3332
3333 2010-11-10  Uros Bizjak  <ubizjak@gmail.com>
3334
3335         PR middle-end/46419
3336         * config/i386/xmmintrin.h (_mm_cvtpi16_ps): Swap __hisi and __losi.
3337         (_mm_cvtpu16_ps): Ditto.
3338
3339 2010-11-10  Joseph Myers  <joseph@codesourcery.com>
3340
3341         * common.opt (flag_excess_precision_cmdline, flag_generate_lto,
3342         warn_larger_than, larger_than_size, warn_frame_larger_than,
3343         frame_larger_than_size, flag_gen_aux_info, flag_shlib,
3344         default_visibility, flag_tls_default): New Variable declarations.
3345         (aux-info, auxbase, dumpbase, dumpdir, falign-functions=,
3346         falign-jumps=, falign-labels=, falign-loops=, o, v): Use Var.
3347         (v): Declare as Common and document here.
3348         * flags.h (default_visibility, flag_generate_lto,
3349         warn_larger_than, larger_than_size, warn_frame_larger_than,
3350         frame_larger_than_size, flag_gen_aux_info, flag_pedantic_errors,
3351         flag_shlib, flag_excess_precision_cmdline): Remove.
3352         (set_Wstrict_aliasing): Update prototype.
3353         * gcc.c (verbose_flag): Remove.
3354         (driver_handle_option): Add diagnostic_context parameter.  Don't
3355         handle OPT_v explicitly here.  Set verbose_flag to 1 rather than
3356         incrementing it.
3357         * opts-common.c (handle_option): Pass dc to handler.
3358         * opts.c (warn_larger_than, larger_than_size,
3359         warn_frame_larger_than, frame_larger_than_size,
3360         default_visibility): Remove.
3361         (common_handle_option): Add diagnostic_context parameter.
3362         (set_fast_math_flags, set_unsafe_math_optimizations_flags): Add
3363         gcc_options parameters.
3364         (lang_handle_option, target_handle_option, read_cmdline_options,
3365         decode_options): Add diagnostic_context parameters.
3366         (finish_options): Access option state through opts pointer where
3367         possible.
3368         (common_handle_option): Access option state through opts pointer
3369         where possible.  Do not set local static variable verbose.  Do not
3370         explicitly handle OPT_v, OPT_Wstrict_aliasing_,
3371         OPT_Wstrict_overflow_, OPT_Wunused, OPT_auxbase, OPT_dumpbase,
3372         OPT_dumpdir, OPT_falign_functions_, OPT_falign_jumps_,
3373         OPT_falign_labels_, OPT_falign_loops_, OPT_fira_verbose_, OPT_o or
3374         OPT_fwhopr_.  Do not explicitly set .opt file variables for
3375         OPT_aux_info or OPT_pedantic_errors.  Use dc for diagnostic context.
3376         (set_Wstrict_aliasing): Add