OSDN Git Service

2009-01-05 Joel Sherrill <joel.sherrill@oarcorp.com>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
2
3         * config.host: Add m32r*-*-rtems*.
4
5 2009-01-05  Joel Sherrill <joel.sherrill@oarcorp.com>
6
7         * config.gcc: Add m32r*-*-rtems*.
8         * config/m32r/rtems.h: New file.
9
10 2009-01-05  Ben Elliston  <bje@au.ibm.com>
11
12         * Makefile.in (.po.gmo): Use mkinstalldirs, not test -d || mkdir.
13         (.po.pox): Likewise.
14         (po/gcc.pot): Likewise.
15
16 2009-01-04  David S. Miller  <davem@davemloft.net>
17
18         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
19         (STARTING_FRAME_OFFSET): Always set to zero.
20
21 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
22
23         * tree.def (LSHIFT_EXPR, RSHIFT_EXPR): Add commentary.
24         * tree-cfg.c (verify_gimple_assign_binary): Allow shifts of
25         fixed-point types, and vectors of the same.
26
27 2009-01-04  Richard Sandiford  <rdsandiford@googlemail.com>
28
29         * config/mips/sync.md (*mb_barrier): Rename to...
30         (*memory_barrier): ...this.
31
32 2009-01-04  Jonathan Wakely  <jwakely.gcc@gmail.com>
33
34         * doc/extend.texi (Function Attributes): Move @cindex after @item
35         for 'artifical' and 'flatten'. Fix grammar for 'externally_visible'
36         and put in alphabetical order. Fix 'target' name and put in order.
37         * doc/invoke.texi (-Wstrict-null-sentinel, -fipa-matrix-reorg): Fix
38         typos.
39
40 2009-01-04  Uros Bizjak  <ubizjak@gmail.com>
41
42         * config/s390/s390.md (UNSPEC_MB): Rename from UNSPECV_MB.
43         (memory_barrier): Expand as unspec instead of unspec_volatile.
44         Remove mem:BLK from insn operands.  Use Pmode scratch register.
45         (*memory_barrier): Define as unspec instead of unspec_volatile.
46         Use (match_dup 0) as input operand.
47
48         * config/sparc/sparc.md (UNSPEC_MEMBAR): Rename from UNSPECV_MEMBAR.
49         * config/sparc/sync.md (memory_barrier): Expand as unspec instead of
50         unspec_volatile.  Remove mem:BLK from insn operands.  Use Pmode
51         scratch register.  Remove operand 1.
52         (*stbar): Define as unspec instead of unspec_volatile.
53         Use (match_dup 0) as input operand, remove (const_int 8).
54         (*membar): Define as unspec instead of unspec_volatile.
55         Use (match_dup 0) as input operand, remove input operand 2.
56
57         * config/xtensa/xtensa.md (UNSPEC_MEMW): Rename from UNSPECV_MEMW.
58         (memory_barrier): Expand as unspec instead of unspec_volatile.
59         Remove mem:BLK from insn operands.  Use Pmode scratch register.
60         (*memory_barrier): Define as unspec instead of unspec_volatile.
61         Use (match_dup 0) as input operand.
62
63         * config/ia64/sync.md (memory_barrier): Redefine as expander pattern.
64         Remove mem:BLK from insn operands.  Use Pmode scratch register.
65         Set volatile flag on operand 0.
66         (*memory_barrier): New insn pattern.
67
68         * config/rs6000/sync.md (memory_barrier): Remove mem:BLK from
69         insn operands.
70         (*memory_barrier): Use (match_dup 0) as input operand.
71
72         * config/mips/sync.md (memory_barrier): Redefine as expander pattern.
73         Remove mem:BLK from insn operands.  Use Pmode scratch register.
74         Set volatile flag on operand 0.
75         (*memory_barrier): New insn pattern.
76
77         * config/alpha/sync.md (*memory_barrier): Rename from *mb_internal.
78
79 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
80
81         PR middle-end/38586
82         * function.c (struct temp_slot): Move to the section of the file
83         that deals with temp slots.  Remove field 'address'.
84         (temp_slot_address_table): New hash table of address -> temp slot.
85         (struct temp_slot_address_entry): New struct, items for the table.
86         (temp_slot_address_compute_hash, temp_slot_address_hash,
87         temp_slot_address_eq, insert_temp_slot_address): Support functions
88         for the new table.
89         (find_temp_slot_from_address): Rewrite to use the new hash table.
90         (remove_unused_temp_slot_addresses): Remove addresses of temp
91         slots that have been made available.
92         (remove_unused_temp_slot_addresses_1): Call-back for htab_traverse,
93         worker function for remove_unused_temp_slot_addresses.
94         (assign_stack_temp_for_type): Don't clear the temp slot address list.
95         Add the temp slot address to the address -> temp slot map.
96         (update_temp_slot_address): Update via insert_temp_slot_address.
97         (free_temp_slots): Call remove_unused_temp_slot_addresses.
98         (pop_temp_slots): Likewise.
99         (init_temp_slots): Allocate the address -> temp slot map, or empty
100         the map if it is already allocated.
101         (prepare_function_start): Initialize temp slot processing.
102
103 2009-01-04  Steven Bosscher  <steven@gcc.gnu.org>
104
105         PR middle-end/38584
106         * cfgexpand.c (estimate_stack_frame_size): Simplify the estimate:
107         Calculate the size of all stack vars assuming no packing of stack
108         vars will happen, replacing a quadratic algorithm with a linear one.
109
110 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
111
112         PR target/38707
113         * expmed.c (store_bit_field_1): Don't modify op0 if movstrict insn
114         can't be used.
115
116 2009-01-03  Diego Novillo  <dnovillo@google.com>
117
118         * doc/contrib.texi: Update contributions.
119
120 2009-01-03  Jakub Jelinek  <jakub@redhat.com>
121
122         PR c++/38705
123         * builtins.c (fold_builtin_memory_op): Give up if either operand
124         is volatile.  Set srctype or desttype to non-qualified version
125         of the other type.
126
127         PR c/38700
128         * builtins.c (fold_builtin_expect): Only check DECL_WEAK for VAR_DECLs
129         and FUNCTION_DECLs.
130
131 2009-01-02  Kenneth Zadeck <zadeck@naturalbridge.com>
132
133         PR rtl-optimization/35805
134         * df-problems.c (df_lr_finalize): Add recursive call to resolve lr
135         problem if fast dce is able to remove any instructions.
136         * dce.c (dce_process_block): Fix dump message.
137         
138 2009-01-02  Mark Mitchell  <mark@codesourcery.com>
139
140         PR 33649
141         * tree-ssa-pre.c (compute_antic): Correct loop bounds.
142
143 2009-01-02  Jakub Jelinek  <jakub@redhat.com>
144
145         PR middle-end/38690
146         * tree-flow.h (op_code_prio, op_prio): New prototypes.
147         * tree-pretty-print.c (op_code_prio): New function.
148         (op_prio): No longer static.  Use op_code_prio.
149         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs):
150         Use op_prio and op_code_prio to determine if () should be
151         printed around operand(s) or not.
152
153         * gimple-pretty-print.c (dump_unary_rhs, dump_binary_rhs,
154         dump_gimple_call, dump_gimple_switch, dump_gimple_cond,
155         dump_gimple_label, dump_gimple_try, dump_symbols, dump_gimple_phi,
156         dump_gimple_mem_ops, dump_bb_header, dump_bb_end, pp_cfg_jump): Use
157         pp_character instead of pp_string for single letter printing.
158
159 2009-01-02  Richard Sandiford  <rdsandiford@googlemail.com>
160
161         * doc/extend.texi: Fix '#pragma GCC option' typo.
162
163 2009-01-02 Richard Guenther <rguenther@suse.de>
164
165         * doc/install.texi (--enable-checking): Mention different
166         default for stage1.
167         (--enable-stage1-checking): Document.
168
169 2009-01-01  Andrew Pinski  <pinskia@gmail.com>
170
171         PR middle-end/30142
172         * tree-cfg.c (verify_expr): Add INDIRECT_REF case.  Change MODIFY_EXPR
173         case to be an error.
174
175 2009-01-02  Ben Elliston  <bje@au.ibm.com>
176
177         * config/fp-bit.h (pack_d): Constify argument.
178         * config/fp-bit.c (makenan): Constify return type. Remove casts.
179         (isnan): Constify argument.
180         (isinf): Likewise.
181         (iszero): Likewise.
182         (pack_d): Likewise.
183         (_fpadd_parts): Constify return type.
184         (_fpmul_parts): Likewise.
185         (_fpdiv_parts): Likewise.
186
187 2009-01-01  Jakub Jelinek  <jakub@redhat.com>
188
189         PR c/36489
190         * c-typeck.c (add_pending_init): Add IMPLICIT argument.  Only
191         warn about overwriting initializer with side-effects or
192         -Woverride-init if !IMPLICIT.
193         (output_init_element): Likewise.  Pass IMPLICIT down to
194         add_pending_init.
195         (process_init_element): Add IMPLICIT argument.  Pass it down
196         to output_init_element.
197         (push_init_element, pop_init_level, set_designator): Adjust
198         process_init_element callers.
199         (set_nonincremental_init, set_nonincremental_init_from_string):
200         Adjust add_pending_init callers.
201         (output_pending_init_elements): Adjust output_init_element callers.
202         * c-tree.h (process_init_element): Adjust prototype.
203         * c-parser.c (c_parser_initelt, c_parser_initval): Adjust
204         process_init_element callers.