]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/ChangeLog
re PR c/456 (constant expressions constraints (gcc.dg/c90-const-expr-1))
[thirdparty/gcc.git] / gcc / ChangeLog
CommitLineData
32e8aa9a
JM
12004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
2
3 PR c/456
4 * cppexp.c (num_binary_op): Don't allow comma operators in #if
5 constant expressions at all outside C99 mode if pedantic.
6
3b8e0c91
UB
72004-02-11 Uros Bizjak <uros@kss-loka.si>
8
9 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
10 (log10_optab, log2_optab): Define corresponding macros.
11 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
12 * genopinit.c (optabs): Implement log10_optab and log2_optab
13 using log10?f2 and log2?f2 patterns.
14 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
15 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
16 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
17 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
18
19 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
20 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
21 log2, log2f and log2l built-ins as inline x87 intrinsics.
22
a6abdce3
RH
232004-02-11 Richard Henderson <rth@redhat.com>
24
25 * flow.c (insn_dead_p): A clobber of a dead hard register is a
26 dead insn after reload.
27
05ac140e
UW
282004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
29
30 * tree.h (frame_base_decl): Add GTY marker.
31 * var-tracking.c (frame_base_decl): Likewise.
32
e193b408
DB
332004-02-11 Daniel Berlin <dberlin@dberlin.org>
34
35 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
36 incorrect, hunk.
37 (add_location_or_const_value_attribute): Use text_section_label,
38 not TEXT_SECTION_NAME.
12f9df4e
PB
39
402004-02-11 Per Bothner <per@bothner.com>
41
42 Represent column numbers using line-map's source_location.
43 The "next available source_location" is now managed internally by
44 line-maps.c rather than by clients.
45 * line-map.h (struct line_map): New field column_bits.
46 <from_line>: Rename field to start_location.
47 (struct line_maps): New fields highest_location and max_column_hint.
48 (linemap_check_files_exited): New declaration.
49 (linemap_line_start): New declaration.
50 (linemap_add): Remove from_line parameter; use highest_location field.
51 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
52 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
53 (CURRENT_LINE_MAP): Remove macro.
54 (linemap_position_for_column): New inline function.
55 * line-map.c (linemap_init): Clear new fields.
56 (linemap_check_files_exited): New function, extracted from ...
57 (linemap_free): Use linemap_check_files_exited.
58 (linemap_add): Remove from_line parameter. Various updates.
59 (linemap_line_start): New function.
60 (linemap_lookeup): Update for new field names.
61 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
62 linemap_position_for_column may unpredictably change the current map,
63 it is cleaner and simpler for us to not cache it in cpp_reader.
64 (struct cpp_buffer): New sysp field.
65 Changed warned_cplusplus_comments and from_stage3 to bitfields.
66 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
67 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
68 current map using linemap_lookup.
69 (do_linemarker): Also set buffer's sysp field.
70 (destringize_and_run): No longer need to decrement current line.
71 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
72 (search_path_head, open_file_failed): Use buffer's sysp.
73 (cpp_make_system_header): Get current map using linemap_lookup.
74 Also set buffer's sysp flag.
75 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
76 * cpphash.h (CPP_INCREMENT_LINE): New macro.
77 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
78 (struct cpp_reader): ... and adding saved_line_base field.
79 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
80 Update accordingly. Don't adjust line.
81 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
82 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
83 (cpp_in_system_header): ... new inline function, using buffer's sysp.
84 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
85 * cpplex.c (_cpp_lex_direct): Likewise.
86 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
87 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
88 * cpplib.h (struct cpp_token): Rename line field to src_loc.
89 Remove col field as it is now subsumed by src_loc.
90 * cpperror.c: Update various field, parameter, and macro names.
91 (print_location): If col==0, try SOURCE_COLUMN of line.
92 (cpp_error): Use cur_token's src_loc field, rather than line+col.
93 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
94 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
95 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
96 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
97 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
98 (_cpp_lex_direct): Use linemap_position_for_column.
99 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
100 parameter. Instead get it from the line_table global. Adjust callers.
101 (print): Remove map field. Replace line field to src_line.
102 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
103 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
104 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
105 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
106 * cpptrad.c (copy_comment): Rename variable.
107 * c-lex.c (map): Remove static variable, for same reason we removed
108 cpp_reader's map field.
109 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
110 to call linemap_lookup.
111 (cb_line_change): Token's line field replaced by src_loc.
112 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
113 Don't save new_map.
114
115 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
116 source_location.
117
e086f51d
HP
1182004-02-11 Hartmut Penner <hpenner@de.ibm.com>
119
120 * config/rs6000/altivec.md (*movv4si_internal): At least one
121 operand must be register_operand.
122 (*movv8hi_internal1): Likewise.
123 (*movv16qi_internal1): Likewise.
124 (*movv4sf_internal1): Likewise.
125
e66b2fcf 1262004-02-10 Aldy Hernandez <aldyh@redhat.com>
8914b65e
AH
127
128 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
129 operand.
130 (movv4hi_internal): Same.
131 (movv2sf_internal): Same.
132 (movv1di_internal): Same.
e66b2fcf 133
7f9be256
TS
1342004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
135
136 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
c0689841 137 TARGET_OLDABI consistently.
7f9be256
TS
138 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
139 mips_va_arg,override_options,compute_frame_size,
140 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
141 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
c0689841 142 and TARGET_OLDABI consistently.
7f9be256
TS
143 * config/mips/mips.md (exception_receiver): Likewise.
144 * config/mips/linux64.h: Likewise.
145
6d0ef01e
HP
1462004-02-11 Hartmut Penner <hpenner@de.ibm.com>
147
148 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
149 Set AltiVec ABI and vrsave as default for ppc64 linux.
150 (init_cumulative_args): Post error, if try to return
151 value in AltiVec register without enable AltiVec.
152 (function_arg_advance): Ditto for passing arguments.
153
7537fc90
RS
1542004-02-11 Richard Sandiford <rsandifo@redhat.com>
155
156 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
157 a label before updating its usage count.
158
1e9f1674
MK
1592004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
160
161 * doc/install.texi: Remove extra cd.
162
b34417a4
ZL
1632004-02-10 Ziemowit Laski <zlaski@apple.com>
164
165 * c-common.c (vector_size_helper): Remove; call
166 reconstruct_complex_type() instead.
167 * tree.c (reconstruct_complex_type): New function
168 (formerly vector_size_helper() in c-common.c).
169 (make_vector): Make externally visible.
170 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
171
a466bea3
KH
1722004-02-10 Kazu Hirata <kazu@cs.umass.edu>
173
174 * config/h8300/h8300-protos.h: Add a prototype for
175 h8300_regs_ok_for_stm.
176 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
177 * config/h8300/h8300.md (stm_h8300s_2_advanced,
178 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
179 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
180 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
181 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
182 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
183 ldm_h8300s_4_normal, ldm_h8300s_4): Use
184 h8300_regs_ok_for_stm().
185
52bac949
DS
1862004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
187
188 PR c/14088
189 real.c (real_from_string): Look for 'X' as well as 'x' in
190 hexfloat strings.
191
2493deee
KH
1922004-02-10 Kazu Hirata <kazu@cs.umass.edu>
193
194 * config/h8300/h8300.md: Remove an incorrect comment about
195 peephole2. Add comments.
196
fbe6ec81
JZ
1972004-02-10 Josef Zlomek <zlomekj@suse.cz>
198
199 PR/14058
200 * emit-rtl.c (set_decl_incoming_rtl): New.
201 * tree.h (set_decl_incoming_rtl): New.
202 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
203 DECL_INCOMING_RTL.
204 * ada/misc.c (adjust_decl_rtl): Likewise.
205
8a4baa83
PB
2062004-02-10 Per Bothner <per@bothner.com>
207
208 * c-opts.c (c_common_post_options): Don't emit working directory
209 in cpp output if -P was specified.
210
31cc6081
PB
2112004-02-10 Paolo Bonzini <bonzini@gnu.org>
212
213 PR c/14092
214 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
215 negate_expr back to the original type.
216
d1d5c836
AM
2172004-02-10 Alan Modra <amodra@bigpond.net.au>
218
219 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
220 bump retaddr here.
221
dad822d3
PB
2222004-02-10 Paolo Bonzini <bonzini@gnu.org>
223
224 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
225 gen_lowpart_SUBREG): Move under the file in which they
226 are actually declared.
227
cd271054
AC
2282004-02-10 Arnaud Charlet <charlet@act-europe.fr>
229
230 * doc/sourcebuild.texi: Add libada documentation.
231
232 * doc/install.texi: Update documentation on Ada build, now
233 that the GNAT lib and tools are built automatically.
234
117c5858
RS
2352004-02-10 Richard Sandiford <rsandifo@redhat.com>
236
237 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
238 && TARGET_IRIX.
239
42a1b62e
ZL
2402004-02-09 Ziemowit Laski <zlaski@apple.com>
241
242 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
243 boundaries outside build_component_ref() call (a macro in ObjC++).
244
997b8b4d
BW
2452004-02-09 Bob Wilson <bob.wilson@acm.org>
246
247 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
248 (init_cumulative_args): Likewise.
249 (a7_overlap_mentioned_p): Delete prototype.
250 * config/xtensa/xtensa.c (struct machine_function): Replace
251 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
252 Add set_frame_ptr_insn field.
253 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
254 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
255 if the operand is an argument in a7. If so, copy a7 to a new pseudo
256 at the function entry and replace the operand with the pseudo.
257 (init_cumulative_args): Remove unused arguments. Add new "incoming"
258 argument and record this flag in CUMULATIVE_ARGS.
259 (function_arg): Remove result_mode and special-case code to handle
260 arguments in a7. Instead, set need_a7_copy flag when there is an
261 incoming argument in a7.
262 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
263 and use the value recorded in cfun->machine->set_frame_ptr_insn.
264 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
265 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
266 special-case code.
267 (a7_overlap_mentioned_p): Delete.
268 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
269 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
270 arguments to init_cumulative_args and pass "incoming" flag instead.
271 (BLOCK_REG_PADDING): Delete.
272 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
273 checks for reload_in_progress and reload_completed. Update calls to
274 xtensa_copy_incoming_a7.
275 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
276 to call xtensa_copy_incoming_a7.
277
10709fbf
DD
2782004-02-09 DJ Delorie <dj@redhat.com>
279
280 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
281 longer modify standard_exec_prefix, standard_bindir_prefix, or
282 standard_startfile_prefix.
283
c76362b4
JW
2842004-02-09 James E Wilson <wilson@specifixinc.com>
285
228ae085
JW
286 PR c++/11295
287 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
288 to expand_expr_real call, and pass in alt_rtl as last argument.
289
c76362b4
JW
290 PR libstdc++/5625
291 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
292 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
293 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
294 * except.c (expand_builtin_extend_pointer): New.
295 * except.h (expand_builtin_extend_pointer): Declare.
296
d886a041
DE
2972004-02-09 David Edelsohn <edelsohn@gnu.org>
298
299 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
300 unaligned loads and stores.
301
756f76d0
RO
3022004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
303
304 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
305 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
306
307 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
308 * config/mips/iris5.h: ... here.
309 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
310
311 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
312 * config/mips/iris5.h: ... here.
313
426ca3ca
RO
3142004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
315
316 * configure.ac: Remove default executable files before AC_PROG_CC.
317 * configure: Regenerate.
318
500fc80f
KH
3192004-02-09 Kazu Hirata <kazu@cs.umass.edu>
320
321 PR target/13721
322 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
323 print a operand other than a register.
324
b83c4036
RS
3252004-02-09 Roger Sayle <roger@eyesopen.com>
326
327 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
328 tree code rather than call fold_convert, which doesn't specify a
329 default floating point to integer conversion.
330
3b4b85c9
BI
3312004-02-08 Bernardo Innocenti <bernie@develer.com>
332
333 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
334 code to support SGS assembler. Reformat adjacent code where possible.
b83c4036
RS
335 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
336 definition.
337 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
338 for '%#'.
3b4b85c9 339 * config/m68k/linux.h, config/m68k/m68k.c,
b83c4036
RS
340 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
341 macros and asm_printf() format strings.
3b4b85c9
BI
342 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
343 * config/m68k/linux.h: Update copyright.
344 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
345
01bbf777
AS
3462004-02-08 Andreas Schwab <schwab@suse.de>
347 Bernardo Innocenti <bernie@develer.com>
348
349 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
350 REGISTER_PREFIX.
351 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
352 frame pointer register, overridable by OS targets.
353 * (M68K_REGNAME): Macro to obtain register name for asm output,
354 eventually replacing %a6 with M68K_FP_REG_NAME.
355 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
356 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
357 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
358 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
359 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
360
1f6acb82
KH
3612004-02-08 Kazu Hirata <kazu@cs.umass.edu>
362
363 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
364 hook_rtx_tree_int_null.
365 * targhooks.c (default_struct_value_rtx): Remove.
366 * targhooks.h: Remove the prototype for
367 default_struct_value_rtx.
368 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
369 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
370 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
371 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
372 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
373 config/rs6000/rs6000.c, config/s390/s390.c,
374 config/stormy16/stormy16.c, config/v850/v850.c,
375 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
376 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
377
b46b8fb4
JM
3782004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
379
380 * README.Portability: Change "ISO C89" to "ISO C90".
381 * c-parse.in (primary, initelt): Likewise.
382
7c476bde
RS
3832004-02-08 Richard Sandiford <rsandifo@redhat.com>
384
385 * real.c (encode_ibm_extended): Normalize the input value before
386 converting it to a double. Handle the case where a normal value
387 rounds to infinity.
388
56ae04af
KH
3892004-02-08 Kazu Hirata <kazu@cs.umass.edu>
390
f934561e
KH
391 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
392 warning.
56ae04af
KH
393 * cse.c (preferrable): Change to preferable. Update all of its
394 callers.
395 * genautomata.c (ainsn): Change
396 first_ainsn_with_given_equialence_num to
397 first_ainsn_with_given_equivalence_num. Update all of its
398 references.
399
ec1dbfca
JH
4002004-02-08 Jan Hubicka <jh@suse.cz>
401
402 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
403
f276fb54
DE
4042004-02-07 David Edelsohn <edelsohn@gnu.org>
405
406 * function.c (assign_parms): Fix formatting.
407
fefcb65c
KH
4082004-02-07 Kazu Hirata <kazu@cs.umass.edu>
409
410 * default.h (PROMOTE_PROTOTYPES): Remove.
411 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
412 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
413 EXPAND_BUILTIN_SAVEREGS): Poison.
414 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
415 hook_bool_tree_false.
416 (TARGET_PROMOTE_PROTOTYPES): Likewise.
417 * target.h: Replace SETUP_INCOMING_VARARGS with
418 targetm.calls.setup_incoming_varargs().
419 * targhooks.c (default_promote_function_return): Remove.
420 (default_promote_prototypes): Likewise.
421 (default_struct_value_rtx): Always abort().
422 (default_expand_builtin_saveregs): Always print an error
423 message.
424 (default_setup_incoming_varargs): Do nothing.
425 (default_pretend_outgoing_varargs_named): Don't depend on
426 SETUP_INCOMING_VARARGS.
427 * targhooks.h: Remove the prototype for
428 default_promote_function_return and
429 default_promote_prototypes.
430
dc79b3b8
KH
4312004-02-07 Kazu Hirata <kazu@cs.umass.edu>
432
433 * system.h (SHARED_SECTION_ASM_OP): Poison.
434 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
435 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
436
a6f78652
ZW
4372004-02-07 Zack Weinberg <zack@codesourcery.com>
438
439 Bug 13856
440 * c-decl.c (diagnose_mismatched_decls): Only give special
441 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
442 is also true.
443 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
444 DECL_FUNCTION_CODE when defining a built-in function.
445 Don't update DECL_ESTIMATED_INSNS.
446 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
447 FUNCTION_DECLs.
448 * tree.h: Delete DECL_ESTIMATED_INSNS.
449 * tree-inline.c (struct inline_data): Delete inlined_insns field.
450 (expand_call_inline, optimize_inline_calls): Don't update
451 DECL_ESTIMATED_INSNS nor inlined_insns.
452 * cgraphunit.c (cgraph_analyze_function): Don't update
453 DECL_ESTIMATED_INSNS.
454
4552004-02-07 Zack Weinberg <zack@codesourcery.com>
456
457 * c-common.c (shadow_warning): Delete.
458 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
459 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
460 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
461 * c-parse.in (free_parser_stacks): Delete.
462
947c6b00
NN
4632004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
464
465 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
466 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
467 Use the top level mkinstalldirs, not the one in the gcc subdir.
468 * mkinstalldirs: Remove (from the gcc subdir).
469
088414c1
RS
4702004-02-07 Roger Sayle <roger@eyesopen.com>
471
472 PR middle-end/13696
473 * fold-const.c (fold_convert): New function to provide type
474 conversion to the middle-end without using convert.
475 (negate_expr, associate_trees, size_diffop, omit_one_operand,
476 operand_equal_for_comparison_p, pedantic_omit_one_operand,
477 invert_truthvalue, optimize_bit_field_compare, range_binop,
478 decode_field_reference, make_range, build_range_check, unextend,
479 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
480 fold_binary_op_with_conditional_arg, fold_inf_compare,
481 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
482 convert with calls to fold_convert.
483
076963eb
JH
4842004-02-07 Jan Hubicka <jh@suse.cz>
485
486 * genrecog.c (find_operand): add extra argument stop.
487 (validate_pattern): Verify that mach_dup is duplicating operand
488 defined lexically earlier.
489
1197924d
KH
4902004-02-07 Kazu Hirata <kazu@cs.umass.edu>
491
492 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
493 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
494 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
495 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
496 config/ia64/ia64.h, config/ip2k/ip2k.h,
497 config/iq2000/iq2000.h, config/mips/iris5.h,
498 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
499 config/rs6000/aix51.h, config/rs6000/aix52.h,
500 config/rs6000/darwin.h, config/rs6000/rs6000.h,
501 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
502 config/sparc/linux.h, config/sparc/linux64.h,
503 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
504 config/xtensa/xtensa.h: Remove the definitions of
505 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
506 MAX_WCHAR_TYPE_SIZE.
507 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
508 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
509
883899ee
SC
5102004-02-07 Stephane Carrez <stcarrez@nerim.fr>
511
512 PR bootstrap/13990
513 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
514 gen_rtx_NE.
515
f6e215cc
JZ
5162004-02-07 Josef Zlomek <zlomekj@suse.cz>
517
518 * var-tracking.c (vt_add_function_parameters): Surround checkings by
519 #ifdef ENABLE_CHECKING and #endif.
520
dfb36f9b
RS
5212004-02-07 Roger Sayle <roger@eyesopen.com>
522
523 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
524 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
525 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
526 integer types and floating point with unsafe_math_optimizations.
527 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
528 Optimize A - B as A + (-B), if B is easily negated.
529
0ea5865c
KH
5302004-02-07 Kazu Hirata <kazu@cs.umass.edu>
531
532 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
533 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
534 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
535 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
536 Update copyright.
537
fb0840fc
KH
5382004-02-07 Kazu Hirata <kazu@cs.umass.edu>
539
540 * c-ppoutput.c, var-tracking.c: Fix comment typos.
541
468c45a3
JW
5422004-02-06 James E Wilson <wilson@specifixinc.com>
543
544 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
545 glibc 2.3 or better.
546
9c917669
KH
5472004-02-06 Kazu Hirata <kazu@cs.umass.edu>
548
549 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
550 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
551
fb7e4164
AM
5522004-02-07 Alan Modra <amodra@bigpond.net.au>
553
554 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
555 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
556 (SHLIB_MKMAP_OPTS): Delete.
557 (TARGET_LIBGCC2_CFLAGS): Add -specs.
558 (bispecs): Add rule.
559 * config/rs6000/libgcc-ppc64.ver: New file.
560 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
561 (__floatdidf, __floatdisf): Optimize multiply.
562 (__fixunstfdi): New function.
563 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
564 real and imag parts larger than one register.
565 (function_arg): Correct type of reg used when fp arg split partially
566 to stack.
567 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
568 and __MACH__ or __powerpc64__.
569
254878ea
RS
5702004-02-06 Roger Sayle <roger@eyesopen.com>
571 Ulrich Weigand <uweigand@de.ibm.com>
572
573 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
574 of gen_highpart or gen_lowpart when the floating point format is
575 wider than the result mode.
576
b1053160
AP
5772004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
578
a6f78652 579 * dwarf2out.c (loclabel_num): Move into #ifdef
b1053160
AP
580 DWARF2_DEBUGGING_INFO.
581
25fe8680
ZL
5822004-02-06 Ziemowit Laski <zlaski@apple.com>
583
584 * objc/objc-act.c (build_super_template) the 'class' field of
585 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
586 (get_super_receiver): Likewise.
587
761fa0f7
KH
5882004-02-06 Kazu Hirata <kazu@cs.umass.edu>
589
590 * reload1.c (check_eliminable_occurrences): Optimize the reset
591 of can_eliminate.
592 (eliminate_regs_in_insn): Likewise.
593
0a2d3d69 5942004-02-06 Daniel Berlin <dberlin@dberlin.org>
a6f78652 595 Josef Zlomek <zlomekj@suse.cz>
0a2d3d69
DB
596
597 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
598 at the beginning of function, call dwarf2out_var_location for
599 NOTE_INSN_VAR_LOCATION note.
600 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
601 decl_loc_table): New.
602 (lookup_decl_loc): New function.
603 (add_var_loc_to_decl): New function.
604 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
605 only if can_use_fbreg.
606 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
607 functions.
608 (loc_descriptor): Likewise. Process VAR_LOCATION.
609 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
610 (loc_descriptor_from_tree): Call mem_loc_descriptor with
611 can_use_fbreg == true.
612 (add_location_or_const_value_attribute): Added parameter enum
613 dwarf_attribute attr, generate attribute ATTR. Create the location list.
614 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
615 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
616 with attr == DW_AT_location.
617 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
618 if frame_base_decl is defined and has a location list.
619 (gen_variable_die): Call add_location_or_const_value_attribute with
620 attr == DW_AT_location.
621 (dwarf2out_var_location): New function.
622 (dwarf2out_begin_function): New function.
623 (dwarf2out_init): Create decl_loc_table.
624
1f0db3df
UW
6252004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
626
627 * loop.c (force_movables): Transitively increase the priorities of
628 all insns forces by an insn, not just the first one.
629
014a1138 6302004-02-06 Josef Zlomek <zlomekj@suse.cz>
a6f78652 631 Daniel Berlin <dberlin@dberlin.org>
014a1138
JZ
632
633 Josef Zlomek <zlomekj@suse.cz>
634 * Makefile.in (var-tracking.o): New.
635 * common.opt (fvar-tracking): New.
636 * flags.h (flag_var_tracking): New.
637 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
638 * opts.c (common_handle_option): Add OPT_fvar_tracking.
639 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
a6f78652
ZW
640 * rtl.c (note_insn_name): Likewise.
641 * rtl.def (VAR_LOCATION): New.
642 * rtl.h (NOTE_VAR_LOCATION): New.
643 (NOTE_VAR_LOCATION_DECL): New.
644 (NOTE_VAR_LOCATION_LOC): New.
645 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
646 (variable_tracking_main): New exported function.
647 * timevar.def (TV_VAR_TRACKING): New.
648 * toplev.c (enum dump_file_index): Added DFI_vartrack.
649 (dump_file): "vartrack" was added (-dV).
650 (flag_var_tracking): New.
651 (f_options): "var-tracking" was added.
014a1138 652 (rest_of_handle_variable_tracking): New function.
a6f78652 653 (rest_of_compilation): Run variable tracking.
014a1138
JZ
654 (process_options): If user has not specified flag_var_tracking set it
655 according to optimize, debug_info_level and debug_hooks.
656 * tree.h (frame_base_decl): New.
a6f78652 657 * var-tracking.c: New file.
014a1138
JZ
658 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
659 (ia64_override_options): Set flags to run variable tracking in machine
660 dependent reorg instead of toplev.c.
661 (ia64_reorg): Run variable tracking if wanted.
a6f78652 662 * doc/invoke.texi: Mention variable tracking in -dV,
014a1138 663 add and -fvar-tracking.
a6f78652 664 * doc/passes.texi: Added variable tracking pass.
014a1138
JZ
665
666 Daniel Berlin <dberlin@dberlin.org>
667 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
668 * dbxout.c (dbx_debug_hooks): Likewise.
669 (xcoff_debug): Likewise.
670 * debug.c (do_nothing_debug_hooks): Likewise.
671 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
672 * dwarfout.c (dwarf_debug_hooks): Likewise.
673 * sdbout.c (sdb_debug_hooks): Likewise.
674 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
a6f78652
ZW
675 * final.c (final_scan_insn): Call var_location debug hook for each
676 NOTE_INSN_VAR_LOCATION.
014a1138 677
298c28a8
JH
6782004-02-06 Jan Hubicka <jh@suse.cz>
679
680 * flow.c (update_life_info): Allocate reg_deaths when called from
681 scheudler.
682 (attempt_auto_inc): Update life ranges accordingly.
683
3199cb41
UW
6842004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
685
686 PR debug/11816
687 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
688
1a6dd8a2
UW
6892004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
690
691 * cfganal.c (flow_call_edges_add): Never split a libcall block.
692
1711adc2
DB
6932004-02-06 Daniel Berlin <dberlin@dberlin.org>
694
695 * dwarf2out.c (output_loc_list): Don't use deltas if we have
696 a separate line info table in use.
697 Use the correct size for terminators.
698 (output_die): Use offset, not delta.
699
b1e5a971
L
7002004-02-06 H.J. Lu <hongjiu.lu@intel.com>
701
702 * doc/invoke.texi: Remove the pni option from -mfpmath=.
703
736b64dd
JH
7042004-02-06 Jan Hubicka <jh@suse.cz>
705
706 * recog.c (split_all_insns): Do not update reg info.
707 * regrename.c (regrename_optimize): Likewise.
708 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
709 * flow.c (struct propagate_block_info): Add insn_num field.
710 (reg_deaths): New array.
711 (life_analysis): Free reg_deaths info.
712 (allocate_reg_life_data): Allocate reg_deaths array.
713 (propagate_one_insn): Use new array.
714 (init_propagate_block): Initialize it.
715 (free_propagate_block_info): Finish compuation of
716 REG_LIVE_LENGTH
717 (attempt_auto_inc): Sanity check that REG_INFO is not
718 computed at same time.
719 (mark_used_regs): Update new array.
720
721 * reg-stack.c (subst_stack_regs): Unshare clobbers before
722 substitution.
723
eb457a7a
KH
7242004-02-06 Kazu Hirata <kazu@cs.umass.edu>
725
726 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
727 *extendqisi2_short_displ.
728
0f6937fe
AM
7292004-02-06 Alan Modra <amodra@bigpond.net.au>
730
731 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
732 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
733 (emit_library_call_value_1): Likewise pass nargs.
734 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
735 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
736 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
737 parameter instead of scanning TYPE_ARGS_TYPES to count args.
738 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
739 prototype.
740 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
741 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
742 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
743 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
744 INIT_CUMULATIVE_ARGS.
745 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
746 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
747 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
748 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
749 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
750 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
751 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
752 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
753 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
07711f53 754 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
0f6937fe
AM
755 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
756 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
757
11b635fe
KH
7582004-02-06 Kazu Hirata <kazu@cs.umass.edu>
759
760 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
761 possible.
762
ace3ffcd
KH
7632004-02-06 Kazu Hirata <kazu@cs.umass.edu>
764
765 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
766 note containing (plus (reg) (const_int)), where reg is an
767 eliminable reg, then perform the register elimination without
768 depending on eliminate_regs().
769
78bc94a2
KH
7702004-02-06 Kazu Hirata <kazu@cs.umass.edu>
771
772 * config/arc/arc.c (arc_return_in_memory): Check the return
773 value of int_size_in_bytes against -1. Don't check
774 TREE_ADDRESSABLE.
775 * config/avr/avr.c (avr_return_in_memory): Check the return
776 value of int_size_in_bytes against -1.
777 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
778 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
779 Likewise.
780 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
781 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
782 Likewise.
783
d8c2bed3
KH
7842004-02-06 Kazu Hirata <kazu@cs.umass.edu>
785
786 * config/frv/frv-protos.h: Remove the prototype for
787 frv_setup_incoming_varargs.
788 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
789 (frv_setup_incoming_varargs): Make it static.
790 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
791
3e29e2aa
KH
7922004-02-06 Kazu Hirata <kazu@cs.umass.edu>
793
794 * config/fr30/fr30-protos.h: Remove the prototype for
795 fr30_setup_incoming_varargs.
796 Update the prototypes for fr30_num_arg_regs and
797 fr30_function_arg_partial_nregs.
798 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
799 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
800 (fr30_setup_incoming_varargs): Make it static.
801 Add argument second_time. Don't do anything when second_time
802 is nonzero.
803 (fr30_num_arg_regs): Change the type of the first argument to
804 enum machine_mode.
805 (fr30_function_arg_partial_nregs): Change the type of the
806 second argument to enum machine_mode.
807 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
808 (SETUP_INCOMING_VARARGS): Remove.
809
07ba2efb
KH
8102004-02-06 Kazu Hirata <kazu@cs.umass.edu>
811
812 * config/arc/arc-protos.h: Remove the prototype for
813 arc_setup_incoming_varargs.
814 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
815 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
816 (arc_setup_incoming_varargs): Make it static.
817 (arc_external_libcall): Likewise.
818 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
819 Remove the commented-out definition of
820 ASM_OUTPUT_EXTERNAL_LIBCALL.
821
f4954ff1
ST
8222004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
823
824 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
825 to $$(slibdir) in the installation commands.
826
403c659c
DE
8272004-02-05 David Edelsohn <edelsohn@gnu.org>
828
829 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
830 with inner_regno, not regno.
831 * rtlanal.c (refers_to_regno_p): Same.
832
5b547172
KH
8332004-02-05 Kazu Hirata <kazu@cs.umass.edu>
834
835 * config.gcc: Remove i370 support.
836
ce5c1cf3
KC
8372004-02-05 Kelley Cook <kcook@gcc.gnu.org>
838
839 * doc/install.texi: Update automake and autoconf version
840 requirements. Note where to find gcj automake version.
841
8422004-02-05 Kelley Cook <kcook@gcc.gnu.org>
843
844 * Makefile.in (generate-manpages): Move dependencies to ...
845 (man): here.
846 * doc/makefile.texi: Document new targets.
847 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
848
02ba6b22
KC
8492004-02-05 Kelley Cook <kcook@gcc.gnu.org>
850
851 PR/13485
852 Makefile.in (srcextra): Add a level of indirection to ...
853 (gcc.srcextra): ... here.
854 (po-generated): Delete.
855 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
856 options.c.
857 (start.encap): Remove superfluous lang.srcextra dependency.
858 objc/Make-lang.in (po-generated): Delete.
859
66fcab25
KH
8602004-02-05 Kazu Hirata <kazu@cs.umass.edu>
861
862 * config/ia64/ia64.c (REG_GP): Remove.
863
89a95129
RO
8642004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
865
866 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
867
9733d507
DP
8682004-02-05 Devang Patel <dpatel@apple.com>
869
870 * dwarf2out.c (force_type_die): Look up input type itself
871 instead of root_type() of type.
a6f78652 872
19796784
AK
8732004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
874
875 * config/s390/s390.md ("*tmqidi_ext"): New insn.
876 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
877 pre-reload splitters are transformed to post-reload
878 define_insn_and_split patterns.
879 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
880
136e64db
KH
8812004-02-05 Kazu Hirata <kazu@cs.umass.edu>
882
883 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
884 TARGET_PROMOTE_PROTOTYPES.
885
839ee4bc
RO
8862004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
887
888 PR middle-end/13750
889 Revert:
890 2004-01-15 Geoffrey Keating <geoffk@apple.com>
891 PR pch/13361
892 * c-typeck.c (constructor_asmspec): Delete.
893 (struct initializer_stack): Delete field 'asmspec'.
894 (start_init): Delete saving of asmspec.
895 (finish_init): Don't update constructor_asmspec.
896 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
897 * stmt.c (expand_asm): Duplicate strings from tree.
898 (expand_asm_operands): Likewise.
899 * tree.c (tree_size): Update computation of size of STRING_CST.
900 (make_node): Don't make STRING_CST nodes.
901 (build_string): Allocate string with tree node.
902 * tree.def (STRING_CST): Update comment.
903 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
904 (tree_string): Place contents of string in tree node.
905 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
906 from tree.
907
687d688e
JM
9082004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
909
910 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
911 msgid.
912
20a20bf0
DN
9132004-02-05 Dorit Naishlos <dorit@il.ibm.com>
914
915 * config/rs6000/altivec.md (*movv4si_internal): At least one
916 operand must be altivec_register_operand.
917 (*movv8hi_internal1): Likewise.
918 (*movv16qi_internal1): Likewise.
919 (*movv4sf_internal1): Likewise.
920
6b37db3c
DE
9212004-02-05 David Edelsohn <edelsohn@gnu.org>
922
923 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
924 * configure: Regenerate.
925
e0b24bce
JW
9262004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
927
928 * doc/install.texi: Update description of --gxx-include-dir to
929 give correct default value.
930
2dca8ddb
KH
9312004-02-05 Kazu Hirata <kazu@cs.umass.edu>
932
933 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
934 8 with MAC_REG.
935
92fd5e41
KH
9362004-02-05 Kazu Hirata <kazu@cs.umass.edu>
937
938 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
939 gen_rtx_PARALLEL.
940
f822fcf7
KH
9412004-02-05 Kazu Hirata <kazu@cs.umass.edu>
942
943 * emit-rtl.c: Update the comment about the file.
944
4ef84575
JM
9452004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
946
947 * sourcebuild.texi (Test Idioms): Update testcase naming
948 conventions.
949
8e9ea4d7
PB
9502004-02-04 Per Bothner <per@bothner.com>
951
952 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
953 * c-ppoutput.c (pp_dir_change): New function.
954 * c-common.h (pp_dir_change): New declaration.
955 * cpplib.h (struct cpp_options): Remove working_directory field.
956 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
957 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
958 Don't handle -fworking_directory here, but in c_common_post_options.
959 (read_original_directory): Don't back up when done.
960 Don't clear no-longer used working_directory flag.
961 * cpplib.h: Update declarations to match.
962 * c-lex.c (cb_dir_change): Move to c-opts.c.
963 (init_c_lex): Don't set dir_change callback here, since we want
964 to set it even if flag_preprocess_only.
965 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
966 (c_common_post_options): Set dir_change callback.
967 Call pp_dir_change if approporiate.
968 (finish_options): Don't call cpp_find_main_file here. Hence remove
969 unneeded parameter and result. Do LC_RENAME for <built-in>.
970 (c_common_post_options): Call cpp_read_main_file here instead.
971 (c_common_init): Update accordingly.
972 (push_command_line_include): Don't cpp_push_main_file.
973 Do LC_RENAME rather than LC_LEASE to get back to main file.
974 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
975 (c_common_parse_file): Call cpp_read_main_file for subsequent main
976 files, but call finish_options for all files.
977 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
978 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
979 cpp_find_main_file + cpp_push_main_file.
980 * c-lex.c (fe_file_change): Don't set main_input_filename here.
981 * opts.c (handle_options): Only set main_input_filename first time.
982
5384443a
ILT
9832004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
984
985 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
986
3c241c19
GK
9872004-02-04 Geoffrey Keating <geoffk@apple.com>
988
989 * reload.c (find_equiv_reg): When checking for register overlap,
990 don't index hard_regno_nregs with a pseudo-reg.
991
a322288b
UW
9922004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
993
994 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
995
859b9c1d
DE
9962004-02-04 David Edelsohn <edelsohn@gnu.org>
997
998 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
999 against FIRST_PSEUDO_REGISTER.
1000
7e63a64e
RO
10012004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1002
1003 * Makefile.in: Move target, host overrides after per-language
1004 fragments.
1005
1006 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
1007 (GNATLIBCFLAGS): Remove -g.
1008
5efb1046
KH
10092004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1010
1011 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
1012 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
1013 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
1014 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
1015 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
1016 config/sparc/sparc.c, config/vax/vax.c: Revert the
1017 replacements of "FALLTHRU" with "Fall through" done in the
1018 previous patch.
1019
ff482c8d
KH
10202004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1021
1022 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
1023 config/arm/arm.c, config/arm/arm.md,
1024 config/cris/cris-protos.h, config/fr30/fr30.c,
1025 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
1026 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
1027 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
1028 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
1029 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
1030 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
1031 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
1032 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
1033 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
1034 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
1035 config/s390/s390.md, config/sparc/netbsd-elf.h,
1036 config/sparc/openbsd.h, config/sparc/sparc.c,
1037 config/xtensa/lib2funcs.S: Fix comment formatting.
1038
59b9a953
KH
10392004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1040
1041 * config/alpha/alpha.c, config/arc/arc.c,
1042 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
1043 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
1044 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
1045 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
1046 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
1047 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
1048 config/iq2000/iq2000.c, config/m32r/m32r.c,
1049 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
1050 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
1051 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
1052 config/rs6000/rs6000.h, config/sparc/sparc.c,
1053 config/vax/vax.c: Fix comment typos. Follow spelling
1054 conventions.
1055
e146f815
KH
10562004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1057
1058 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
1059 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
1060 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
1061 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
1062 config/arm/fpa.md, config/arm/iwmmxt.md,
1063 config/arm/netbsd-elf.h, config/arm/netbsd.h,
1064 config/m68hc11/m68hc11.md, config/mips/iris5.h,
1065 config/mn10300/mn10300.md, config/rs6000/altivec.md,
1066 config/sparc/netbsd-elf.h: Update copyright.
1067
e2a17f6e
EB
10682004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
1069
1070 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
1071 for all modes whose size is greater than 8 bytes if ARCH32.
1072 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
1073 by reference if ARCH32.
1074
e0cc7f73 10752004-02-04 Aldy Hernandez <aldyh@redhat.com>
a6f78652
ZW
1076
1077 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
e0cc7f73 1078
7bdff56f
UW
10792004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
1080
1081 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
1082 to before adddi3 insn patterns.
1083 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
1084 "reload_insi"): Move to before addsi3 insn patterns.
1085
dd292d0a
MM
10862004-02-04 Mark Mitchell <mark@codesourcery.com>
1087
1088 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
1089 parameter. Use it instead of current_function_is_thunk.
1090 * function.h (struct function): Update documentation for is_thunk.
1091 * tree.h (CALL_FROM_THUNK_P): New macro.
1092 * config/alpha/alpha.c (alpha_sa_mask): Do not check
1093 no_new_pseudos when testing current_function_is_thunk.
1094 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
1095
c2379679
KH
10962004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1097
1098 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
1099 TARGET_SETUP_INCOMING_VARARGS.
1100
a2a8cc44
KH
11012004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1102
1103 * emit-rtl.c (gen_rtx): Remove.
1104 * genattrtab.c: Don't mention gen_rtx in a comment.
1105 * rtl.h: Remove the prototype for gen_rtx.
1106 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
1107
f61c92c3
KH
11082004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1109
1110 * config/arc/arc.h, config/fr30/fr30.h
1111 (SETUP_INCOMING_VARARGS): Remove the target-independent
1112 comments.
1113 * doc/tm.texi: Don't mention deprecated target macros.
1114
c35c17c1
KH
11152004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1116
1117 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
1118 target-independent comment.
1119
cea28603
KH
11202004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1121
1122 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
1123 mention deprecated target macros.
1124
a4a4b1d3
KH
11252004-02-04 Kazu Hirata <kazu@cs.umass.edu>
1126
1127 * config.gcc: Remove obsolete ports and configurations.
1128 * config/linux-aout.h, config/netware.h,
1129 config/t-linux-gnulibc1, config/d30v/abi,
1130 config/d30v/d30v-protos.h, config/d30v/d30v.c,
1131 config/d30v/d30v.h, config/d30v/d30v.md,
1132 config/d30v/libgcc1.asm, config/d30v/t-d30v,
1133 config/dsp16xx/dsp16xx-modes.def,
1134 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
1135 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
1136 config/i370/README, config/i370/i370-c.c,
1137 config/i370/i370-protos.h, config/i370/i370.c,
1138 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
1139 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
1140 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
1141 config/i386/moss.h, config/i386/netware.h,
1142 config/i386/svr3.ifile, config/i386/svr3dbx.h,
1143 config/i386/svr3gas.h, config/i386/svr3z.ifile,
1144 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
1145 config/i960/i960-c.c, config/i960/i960-coff.h,
1146 config/i960/i960-modes.def, config/i960/i960-protos.h,
1147 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
1148 config/i960/rtems.h, config/i960/t-960bare,
1149 config/m68k/hp310.h, config/m68k/hp320.h,
1150 config/m68k/hp320base.h, config/m68k/m68kv4.h,
1151 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
1152 Remove.
1153 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
1154 doc/md.texi: Remove mentions of obsolete ports.
1155
40e02b4a
JH
11562004-02-04 Jan Hubicka <jh@suse.cz>
1157
1158 * alias.c (find_base_term, get_addr): Do not dereference NULL
1159 pointer when all VALUE's locations has been invalidated.
1160 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
1161
a6f78652 11622004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
1c02f6f2
WB
1163
1164 * doc/invoke.texi (x86 options): Fix spelling/wording.
1165
584e5527
RS
11662004-02-03 Richard Sandiford <rsandifo@redhat.com>
1167
1168 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
1169 put the original string in a comment.
1170 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
1171 * config/mips/mips.c (mips_output_ascii): Likewise.
1172 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
1173
9b2b3375
KH
11742004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1175
1176 * system.h (GIV_SORT_CRITERION): Poison.
1177 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
1178 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
1179
888d65b5
RS
11802004-02-03 Roger Sayle <roger@eyesopen.com>
1181
1182 PR target/9348
1183 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
1184 multiplies with a multiplication of the wrong signedness, its the
1185 signedness of the multiplication that we've performed that needs to
1186 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
1187 if expand_mult_highpart_adjust places the result in target.
1188
a8c0bbc7
RH
11892004-02-03 Richard Henderson <rth@redhat.com>
1190
1191 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
1192
a8f0f22e
R
11932004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
1194
1195 * config.gcc (sh[234]l): Use little endian fragments.
1196
e621b588
PK
11972004-02-03 Paul Koning <pkoning@equallogic.com>
1198
1199 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
1200 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
1201 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
1202 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
1203 floating point format.
1204 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
1205 the above functions.
1206 (output_move_quad): Output float values in correct target format.
1207 (legitimate_const_double_p): New function.
1208 * config/pdp11/pdp11.h: Fix typos.
1209 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
1210 (TARGET_FLOAT_FORMAT): Ditto.
1211 (pdp11_f_format, pdp11_d_format): Add external declarations.
1212 (MAX_REGS_PER_ADDRESS): Corrected.
1213 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
1214 (PRINT_OPERAND): Output float literals in target format.
1215
5a98fa7b
MM
12162004-02-03 Mark Mitchell <mark@codesourcery.com>
1217
1218 PR c++/13975
1219 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
1220 TI_PRIVATE.
1221 (access_public_node): Redefine.
1222 (access_protected_node): Likewise.
1223 (access_private_node): Likewise.
1224 * tree.c (build_common_tree_nodes): Create access_public_node,
1225 access_protected_node, and access_private_node.
1226
0263e6bf
SE
12272004-02-03 Steve Ellcey <sje@cup.hp.com>
1228
1229 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
1230 (MASK_INLINE_INT_DIV_THR): Ditto.
1231 (MASK_INLINE_SQRT_LAT): Ditto.
1232 (MASK_INLINE_SQRT_THR): Ditto.
1233 (MASK_DWARF2_ASM): Ditto.
1234 (MASK_EARLY_STOP_BITS): Ditto.
1235
9b66ebb1
PB
12362004-02-02 Paul Brook <paul@codesourcery.com>
1237
1238 Merge from csl-arm-branch.
1239
1240 2004-01-30 Paul Brook <paul@codesourcery.com>
1241
1242 * aof.h (REGISTER_NAMES): Add vfp reg names
1243 (ADDITIONAL_REGISTER_NAMES): Ditto.
1244 * aout.h (REGISTER_NAMES): Ditto.
1245 (ADDITIONAL_REGISTER_NAMES): Ditto.
1246 * arm-protos.h: Update/Add Prototypes.
1247 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
1248 Only allow 0.0 for VFP.
1249 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
1250 (values_fp): Rename from values_fpa. Update Users.
1251 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
1252 Update users. Only check valid constants for this hardware.
1253 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
1254 Only allow consts for FPA.
1255 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
1256 Only allow consts for FPA.
1257 (use_return_insn): Check for saved VFP regs.
1258 (arm_legitimate_address_p): Handle VFP DFmode addressing.
1259 (arm_legitimize_address): Ditto.
1260 (arm_general_register_operand): New function.
1261 (vfp_mem_operand): New function.
1262 (vfp_compare_operand): New function.
1263 (vfp_secondary_reload_class): New function.
1264 (arm_float_compare_operand): New function.
1265 (vfp_print_multi): New function.
1266 (vfp_output_fstmx): New function.
1267 (vfp_emit_fstm): New function.
1268 (arm_output_epilogue): Output VPF reg restore code.
1269 (arm_expand_prologue): Output VFP reg save code.
1270 (arm_print_operand): Add 'P'.
1271 (arm_hard_regno_mode_ok): Return modes for VFP regs.
1272 (arm_regno_class): Return classes for VFP regs.
1273 (arm_compute_initial_elimination_offset): Include space for VFP regs.
1274 (arm_get_frame_size): Ditto.
1275 * arm.h (FIXED_REGISTERS): Add VFP regs.
1276 (CALL_USED_REGISTERS): Ditto.
1277 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
1278 (FIRST_VFP_REGNUM): Define.
1279 (LAST_VFP_REGNUM): Define.
1280 (IS_VFP_REGNUM): Define.
1281 (FIRST_PSEUDO_REGISTER): Include VFP regs.
1282 (HARD_REGNO_NREGS): Handle VFP regs.
1283 (REG_ALLOC_ORDER): Add VFP regs.
1284 (enum reg_class): Add VFP_REGS.
1285 (REG_CLASS_NAMES): Ditto.
1286 (REG_CLASS_CONTENTS): Ditto.
1287 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
1288 (REG_CLASS_FROM_LETTER): Add 'w'.
1289 (EXTRA_CONSTRAINT_ARM): Add 'U'.
1290 (EXTRA_MEMORY_CONSTRAINT): Define.
1291 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
1292 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
1293 (REGISTER_MOVE_COST): Ditto.
1294 (PREDICATE_CODES): Add arm_general_register_operand,
1295 arm_float_compare_operand and vfp_compare_operand.
1296 * arm.md (various): Rename as above.
1297 (divsf3): Enable when TARGET_VFP.
1298 (divdf3): Ditto.
1299 (movdfcc): Ditto.
1300 (sqrtsf2): Ditto.
1301 (sqrtdf2): Ditto.
1302 (arm_movdi): Disable when TARGET_VFP.
1303 (arm_movsi_insn): Ditto.
1304 (movsi): Only split with general regs.
1305 (cmpsf): Use arm_float_compare_operand.
1306 (push_fp_multi): Restrict to TARGET_FPA.
1307 (vfp.md): Include.
1308 * vfp.md: New file.
1309 * fpa.md (various): Rename as above.
1310 * doc/md.texi: Document ARM w and U constraints.
1311
1312 2004-01-15 Paul Brook <paul@codesourcery.com>
1313
1314 * config.gcc: Add with_fpu. Allow with-float=softfp.
1315 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
1316 Break out of loop when we find a float-abi. Fix typo.
1317 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
1318 Set -mfloat-abi=.
1319 * doc/install.texi: Document --with-fpu.
1320
1321 2003-01-14 Paul Brook <paul@codesourcery.com>
1322
1323 * config.gcc (with_arch): Add armv6.
1324 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
1325 * config/arm/arm.c (arm_overrride_options): Ditto.
1326
1327 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
1328
1329 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
1330 (FL_ARCH6): Renamed from FL_ARCH6J.
1331 (arm_arch3m): Renamed from arm_fast_multiply.
1332 (arm_arch6): Renamed from arm_arch6j.
1333 * arm.h: Update all uses of above.
1334 * arm-cores.def: Likewise.
1335 * arm.md: Likewise.
1336
1337 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
1338 not arm6j. Add entry for arch armv6.
1339
1340 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
1341
1342 * arm.c (arm_emit_extendsi): Delete.
1343 * arm-protos.h (arm_emit_extendsi): Delete.
1344 * arm.md (zero_extendhisi2): Also handle zero-extension of
1345 non-subregs.
1346 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
1347 (thumb_zero_extendhisi2): Only match if not v6.
1348 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
1349 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
1350 (thumb_extendqisi2): Likewise.
1351 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
1352 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
1353 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
1354 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
1355 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
1356 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
1357 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
1358 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
1359 (arm_extendqisi2addsi): Likewise.
1360
1361 2003-12-31 Mark Mitchell <mark@codesourcery.com>
1362
1363 Revert this change:
1364 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
1365 + REG addressing modes.
1366
1367 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
1368 + REG addressing modes.
1369
1370 2003-12-30 Mark Mitchell <mark@codesourcery.com>
1371
1372 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
1373 CONSTANT_P_RTX.
1374
1375 2003-30-12 Paul Brook <paul@codesourcery.com>
1376
1377 * longlong.h: protect arm inlines with !defined (__thumb__)
1378
1379 2003-30-12 Paul Brook <paul@codesourcery.com>
1380
1381 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
1382
1383 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
1384
1385 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
1386 change.
1387
1388 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
1389
1390 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
1391 to the virtual incoming args pointer for downward stacks.
1392
1393 2003-12-29 Paul Brook <paul@codesourcery.com>
1394
1395 * config/arm/arm-cores.def: Add cost function.
1396 * config/arm/arm.c (arm_*_rtx_costs): New functions.
1397 (arm_rtx_costs): Remove
1398 (struct processors): Add rtx_costs field.
1399 (all_cores, all_architectures): Ditto.
1400 (arm_override_options): Set targetm.rtx_costs.
1401 (thumb_rtx_costs): New function.
1402 (arm_rtx_costs_1): Remove cases handled elsewhere.
1403 * config/arm/arm.h (processor_type): Add COSTS parameter.
1404
1405 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
1406
1407 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
1408 (arm926ejs.md): Include it.
1409 * config/arm/arm926ejs.md: New pipeline description.
1410
1411 2003-12-24 Paul Brook <paul@codesourcery.com>
1412
1413 * config/arm/arm.c (arm_arch6j): New variable.
1414 (arm_override_options): Set it.
1415 (arm_emit_extendsi): New function.
1416 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
1417 * config/arm/arm.h (arm_arch6j): Declare.
1418 * config/arm/arm.md: Add sign/zero extend insns.
1419
1420 2003-12-23 Paul Brook <paul@codesourcery.com>
1421
1422 * config/arm/arm.c (all_architectures): Add armv6.
1423 * doc/invoke.texi: Document it.
1424
1425 2003-12-19 Paul Brook <paul@codesourcery.com>
1426
1427 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
1428 insn patterns to match.
1429 * config/arm/arm-generic.md: Ditto.
1430 * config/arm/cirrus.md: Ditto.
1431 * config/arm/fpa.md: Ditto.
1432 * config/amm/iwmmxt.md: Ditto.
1433 * config/arm/arm1026ejs.md: Ditto.
1434 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
1435 for 11_loadb.
1436
1437 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
1438
1439 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
1440 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
1441 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
1442 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
1443 arm_no_early_mul_dep): Correctly deal with conditional execution,
1444 parallels and single shift operations.
1445 (arm_no_early_alu_shift_value_dep): Define.
1446 * arm.md (attr type): Replace 'normal' with 'alu',
1447 'alu_shift' and 'alu_shift_reg'.
1448 (attr core_cycles): Adjust.
1449 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
1450 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
1451 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
1452 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
1453 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
1454 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
1455 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
1456 attribute appropriately.
1457 * config/arm/arm1026ejs.md (alu_op): Adjust.
1458 (alu_shift_op, alu_shift_reg_op): New.
1459 * config/arm/arm1136.md: Add better bypasses for early
1460 registers. Remove load[234] and store[234] bypasses.
1461 (11_alu_op): Adjust.
1462 (11_alu_shift_op, 11_alu_shift_reg_op): New.
1463
1464 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
1465
1466 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
1467 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
1468 * config/arm/arm.c (arm_no_early_store_addr_dep,
1469 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
1470 * config/arm/arm1026ejs.md: Add load-store bypass.
1471 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
1472 Add bypasses between instructions.
1473
1474 2003-12-10 Paul Brook <paul@codesourcery.com>
1475
1476 * config/arm/arm.c (arm_fpu_model): New variable.
1477 (arm_fload_abi): New variable.
1478 (target_fpe_name): Rename from target_fp_name.
1479 (target_fpu_name): New variable.
1480 (arm_is_cirrus): Remove.
1481 (fpu_desc): New struct.
1482 (all_fpus): Define.
1483 (pf_model_for_fpu): Define.
1484 (all_loat_abis): Define.
1485 (arm_override_options): Set fp arch flags based on -mfpu=
1486 and -float-abi=.
1487 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
1488 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
1489 (*): Use new TARGET_* flags.
1490 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
1491 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
1492 (TARGET_SOFT_FLOAT): Ditto.
1493 (TARGET_SOFT_FLOAT_ABI): New.
1494 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
1495 TARGET_HARD_FLOAT.
1496 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
1497 (TARGET_OPTIONS): Add -mfpu=.
1498 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
1499 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
1500 (arm_pf_model): Define.
1501 (arm_float_abi_type): Define.
1502 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
1503 * config/arm/arm.md: Use new TARGET_* flags.
1504 * config/arm/cirrus.md: Ditto.
1505 * config/arm/fpa.md: Ditto.
1506 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
1507 * config/arm/semi.h (ASM_SPEC): Ditto.
1508 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
1509 (FPUTYPE_DEFAULT): Set to VFP.
1510 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
1511
1512 2003-11-22 Phil Edwards <phil@codesourcery.com>
1513
1514 PR target/12476
1515 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
1516 'bx' instead of 'b' to avoid branch range restrictions. Output
1517 the thunk immediately before the thunked-to function.
1518 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
1519 .thumb_func if a thunk is being generated. Emit .code 16 along
1520 with .thumb_func if a thunk is not being generated.
1521
1522 2003-11-15 Nicolas Pitre <nico@cam.org>
1523
1524 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
1525 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
1526 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
1527 (lshrdi3_iwmmxt): Renamed from lshrdi3.
1528 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
1529
1530 2003-11-12 Steve Woodford <scw@wasabisystems.com>
1531 Ian Lance Taylor <ian@wasabisystems.com>
1532
1533 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
1534 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
1535
1536 2003-11-05 Phil Edwards <phil@codesourcery.com>
1537
1538 * config/arm/arm.md (insn): Add new V6 instruction names.
1539 (generic_sched): New attr.
1540 * config/arm/arm-generic.md: Use generic_sched here.
1541 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
1542 stages of pipeline. Adjust latency counts accordingly.
1543 * config/arm/arm1136jfs.md: New file.
1544
1545 2003-10-28 Mark Mitchell <mark@codesourcery.com>
1546
1547 * config/arm/arm.h (processor_type): New enumeration type.
1548 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
1549 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
1550 (CPP_CPU_ARCH_SPEC): Likewise.
1551 * config/arm/arm.c (arm_tune): New variable.
1552 (all_cores): Use cores.def.
1553 (all_architectures): Add representative processor.
1554 (arm_override_options): Restructure way in which tuning
1555 information is deduced.
1556 * arm.md: Update "insn" and "type" attributes throughout.
1557 (insn): New attribute.
1558 (type): Compute "mult" from "insn" attribute. Add load2,
1559 load3, load4 alternatives.
1560 (arm automaton): Move to arm-generic.md.
1561 * config/arm/arm-cores.def: New file.
1562 * config/arm/arm-generic.md: Likewise.
1563 * config/arm/arm1026ejs.md: Likewise.
1564
60b85c4c
EB
15652004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
1566
1567 * doc/invoke.texi (SPARC options): Remove -mflat and
1568 all -mxxx (xxx:chip) options.
1569 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
1570 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
1571 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
1572 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
1573 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
1574 * config/sparc/sparc.c: Likewise.
1575 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
1576 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
1577 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
1578 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
1579 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
1580 (sparc_flat_must_save_register_p): Likewise.
1581 (sparc_flat_compute_frame_size): Likewise.
1582 (sparc_flat_save_restore): Likewise.
1583 (sparc_flat_function_prologue): Likewise.
1584 (sparc_flat_function_epilogue): Likewise.
1585 (sparc_flat_epilogue_delay_slots): Likewise.
1586 (sparc_flat_eligible_for_epilogue_delay): Likewise.
1587 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
1588 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
1589 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
1590 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
1591 (CONDITIONAL_REGISTER_USAGE): Likewise.
1592 (FRAME_POINTER_REQUIRED): Likewise.
1593 (INITIAL_ELIMINATION_OFFSET): Likewise.
1594 (BASE_RETURN_VALUE_REG): Likewise.
1595 (BASE_OUTGOING_VALUE_REG): Likewise.
1596 (BASE_PASSING_ARG_REG): Likewise.
1597 (BASE_INCOMING_ARG_REG): Likewise.
1598 (INCOMING_REGNO): Likewise.
1599 (OUTGOING_REGNO): Likewise.
1600 (LOCAL_REGNO): Likewise.
1601 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
1602 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
1603 (EPILOGUE_USES): Likewise.
1604 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
1605 ("flat" attribute): Delete.
1606 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
1607 handling.
1608 (call followed by jump define_peephole's): Delete.
1609 (exception_receiver): Likewise.
1610 (builtin_setjmp_receiver): Likewise.
1611 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
1612
e57e265b
PB
16132004-02-03 Paolo Bonzini <bonzini@gnu.org>
1614
1615 PR c/11658
1616 PR c/13994
1617 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
1618 on langhooks.h.
1619 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
1620 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
1621 Include langhooks.h. Replace c_common_truthvalue_conversion
1622 with the truthvalue_conversion language hook throughout.
1623 (expr_no_commas): Call default_conversion before save_expr
1624 for the first term of the production 'x ? : y'.
1625 * c-common.c (c_common_truthvalue_conversion): Remove
1626 obsolete block. Invoke recursively the hook instead
1627 of this function.
1628 * c-convert.c (convert): handle ERROR_MARK_NODE.
1629 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
1630 returned by the truthvalue_conversion language hook.
1631 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
1632 c_objc_common_truthvalue_conversion.
1633 * c-objc-common.c (c_objc_common_truthvalue_conversion):
1634 New function.
1635 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
1636 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
1637 c_objc_common_truthvalue_conversion.
1638
a7a2225a
KH
16392004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1640
1641 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
1642 of gen_rtx.
1643 (LIBCALL_VALUE): Likewise.
1644 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
1645 gen_rtx_CC0 instead of gen_rtx.
1646 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
1647 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
1648 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
1649 gen_rtx.
1650 (m68hc11_emit_logical): Likewise.
1651
a556fd39
KH
16522004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1653
1654 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
1655 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
1656 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
1657 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
1658 config/mips/mips.md, config/mmix/mmix.c,
1659 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
1660 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
1661 config/rs6000/altivec.md, config/s390/s390.c,
1662 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
1663 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
1664 Use const0_rtx instead of GEN_INT (0). Do the same for other
1665 constants that are readily available.
1666
60c81c89
KH
16672004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1668
1669 * doloop.c, optabs.c, regmove.c, sched-deps.c,
1670 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
1671 instead of GEN_INT (0). Do the same for other constants that
1672 are readily available.
1673
2fb00d7f
KH
16742004-02-03 Kazu Hirata <kazu@cs.umass.edu>
1675
1676 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
1677 gen_rtx.
1678 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
1679 instead of gen_rtx.
1680 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
1681 gen_rtx.
1682 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
1683 gen_rtx_ASHIFT instead of gen_rtx.
1684 (udivmodqi4): Likewise.
1685
b0dccb00
RH
16862004-02-02 Richard Henderson <rth@redhat.com>
1687
a6f78652
ZW
1688 PR target/13789
1689 * expr.c (store_expr): Use force_operand before emit_move_insn.
b0dccb00 1690
3168cb99
JL
16912004-02-02 Jeff Law <law@redhat.com>
1692 Roger Sayle <roger@eyesopen.com>
1693
1694 * tree.c (commutative_tree_code, associative_tree_code): New
1695 functions.
1696 (iterative_hash_expr): Use commutative_tree_code.
1697 * tree.h (commutative_tree_code, associative_tree_code): Declare.
1698 * fold-const.c (operand_equal_p): Use commutative_tree_code
1699 rather than inlining the commutativity check.
1700 (fold): Likewise.
1701
040333a7
KH
17022004-02-02 Kazu Hirata <kazu@cs.umass.edu>
1703
1704 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
1705 * config/frv/frv-protos.h: Remove the prototype for
1706 frv_function_arg_keep_as_reference.
1707 * config/frv/frv.c (frv_function_arg_keep_as_reference):
1708 Remove.
1709 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
1710 * config/stormy16/stormy16.h: Remove the commented-out
1711 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
1712
79d69d75
AM
17132004-02-03 Alan Modra <amodra@bigpond.net.au>
1714
1715 PR target/13914
1716 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
1717 for retaddr_column.
1718
600555f5
KH
17192004-02-02 Kazu Hirata <kazu@cs.umass.edu>
1720
1721 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
1722 gen_rtx.
1723
16dd5cfe 17242004-02-02 Eric Christopher <echristo@redhat.com>
a6f78652 1725 Zack Weinberg <zack@codesourcery.com>
16dd5cfe
EC
1726
1727 * c-opts.c (c_common_handle_option): Add -finput-charset.
a6f78652
ZW
1728 * c.opt: Ditto.
1729 * cppcharset.c (one_iso88591_to_utf8): Remove.
1730 (convert_iso88591_utf8): Ditto.
1731 (conversion_tab): Remove 8859-1 converter.
1732 (_cpp_input_to_utf8): Remove.
1733 (_cpp_init_iconv_buffer): Ditto.
1734 (_cpp_close_iconv_buffer): Ditto.
1735 (_cpp_convert_input): New function.
1736 (_cpp_default_encoding): Ditto.
1737 * cpphash.h: Add/remove prototypes for above.
1738 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
1739 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
1740 for narrow execution and input character sets.
1741 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
1742 * doc/cppopts.texi: Document -finput-charset.
16dd5cfe 1743
8ad0d964
DE
17442004-02-02 David Edelsohn <edelsohn@gnu.org>
1745
1746 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
1747 against FIRST_PSEUDO_REGISTER.
1748
238b11b5
EB
17492004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1750
1751 * doc/invoke.texi (SPARC options): Further improve.
1752
0f4c242b
KH
17532004-02-02 Kazu Hirata <kazu@cs.umass.edu>
1754
1755 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
1756 config/h8300/h8300.c, config/ip2k/ip2k.md,
1757 config/iq2000/iq2000.c, config/mips/mips.c,
1758 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
1759 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
1760 config/v850/v850.md: Fix indentation.
1761
d560b0aa
EB
17622004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1763
1764 * config/sparc/sparc.c (function_arg_slotno): Align TImode
1765 arguments on a 16-byte boundary in the parameter array if ARCH64.
1766 Split handling of TFmode.
1767
6f626d1b
PB
17682004-02-02 Paolo Bonzini <bonzini@gnu.org>
1769
1770 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
1771 Don't test CONSTANT_P (x).
1772 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
1773 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
1774 Fix misindentation.
1775
e789e9c4
EB
17762004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
1777
1778 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
1779
1c563bed
KH
17802004-02-02 Kazu Hirata <kazu@cs.umass.edu>
1781
1782 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
1783 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
1784 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
1785 config/iq2000/iq2000.c, config/m32r/m32r.c,
1786 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
1787 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
1788 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
1789 config/stormy16/stormy16.c, config/v850/v850.md,
1790 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
1791
67245ad3
KH
17922004-02-01 Kazu Hirata <kazu@cs.umass.edu>
1793
1794 * config/mcore/mcore.c (block_move_sequence): Replace
1795 gen_rtx_CONST_INT with GEN_INT.
1796
66fd46b6
JH
17972004-02-02 Jan Hubicka <jh@suse.cz>
1798
1799 * alias.c (record_set): Use hard_regno_nregs.
1800 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
1801 * builtins.c (apply_args_size): Likewise.
1802 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
1803 mark_set_regs, add_stored_regs, mark_referenced_regs,
1804 insert_restore, insert_save, insert_one_insn): Likewise.
1805 * cfgcleanup.c: Include regs.h
1806 (mark_effect, mentions_nonequal_regs): Likewise.
1807 * cfgrtl.c (mark_killed_regs): Likewise
1808 * combine.c (update_table_tick, record_value_for_reg,
1809 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
1810 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
1811 reg_bitfield_target_p, distribute_notes): Likewise.
1812 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
1813 exp_equiv_p, cse_insn): Likewise.
1814 * cselib.c (cselib_lookup): Likewise.
1815 (cselib_invalidate_regno, cselib_record_set): Likewise.
1816 * df.c (df_ref_record): Likewise.
1817 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
1818 Likewise.
1819 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
1820 count_or_remove_death_notes_bb): Likewise.
1821 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
1822 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
1823 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
1824 * integrate.c (mark_stores): Likewise.
1825 * jump.c (delete_prior_computation): Likewise.
1826 * lcm.c (reg_dies, reg_becomes_live): Likewise.
1827 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
1828 * loop.c (LOOP_REGNO_NREGS): Likewise.
1829 * postreload.c (reload_combine, reload_combine_note_store,
1830 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
1831 * ra-colorize.c (combine, color_usable_p, get_free_reg,
16dd5cfe 1832 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
66fd46b6
JH
1833 try_recolor_web, insert_coalesced_conflicts, check_colors,
1834 break_precolored_alias): Likewise.
1835 * ra-debug.c: Include regs.h
1836 (ra_print_rtx_object): Likewise.
1837 * ra-rewrite (choose_spill_colors): Likewise.
1838 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
1839 * ra.c (init_ra): Likewise.
1840 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
1841 peep2_find_free_register): Likewise.
1842 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
1843 * regclass.c (hard_regno_nregs): New array.
1844 (init_reg_modes_once): Initialize it.
1845 (choose_hard_reg_mode): Use it.
1846 (record_reg_classes): Likewise.
1847 * regmove.c (mark_flags_life_zones): Likewise.
1848 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
1849 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
1850 copy_value, maybe_mode_change, find_oldest_value_reg,
1851 copyprop_hardreg_forward_1):
1852 * regs.h (hard_regno_nregs): Declare.
1853 * realod.c (reload_inner_reg_of_subreg): Use it.
1854 (push_reload, combine_reloads, find_dummy_reload,
1855 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
1856 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
1857 reload_adjust_reg_for_mode): Likewise.
1858 * reload1.c (compute_use_by_pseudos, count_pseudo,
1859 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
1860 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
1861 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
1862 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
1863 delete_output_reload): Likewise.
1864 * resource.c (update_live_status, mark_referenced_resources,
1865 mark_set_resources, mark_target_live_regs): Likewise.
1866 * rtlanal.c: Include regs.h
1867 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
1868 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
1869 subreg_regno_offset, subreg_offset_representable_p,
1870 hoist_test_store): Likewise.
1871 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
1872 * sched-rgn.c (check_live_1, update_live_1): Likewise.
1873 * stmt.c: Include regs.h
1874 (decl_conflicts_with_clobbers_p): Likewise.
1875 * varasm.c (make_decl_rtl): Likewise.
1876 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
1877
f1c25d3b
KH
18782004-02-01 Kazu Hirata <kazu@cs.umass.edu>
1879
1880 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
1881 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
1882 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
1883 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
1884 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
1885 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
1886 config/iq2000/iq2000.h, config/m32r/m32r.c,
1887 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1888 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
1889 config/mcore/mcore.c, config/mcore/mcore.h,
1890 config/mcore/mcore.md, config/mips/mips.c,
1891 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
1892 config/rs6000/rs6000.c, config/s390/s390.c,
1893 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
1894 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
1895 "gen_rtx (FOO, " with "gen_rtx_FOO (".
1896
e0a24727
KH
18972004-02-01 Kazu Hirata <kazu@cs.umass.edu>
1898
1899 * config/h8300/h8300.md (two peephole2's): New.
1900
5202c5fe
EB
19012004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
1902
1903 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
1904 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
1905 (ASM_CPU_SPEC): Likewise
1906 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
1907 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
1908
13b59849
RS
19092004-02-01 Roger Sayle <roger@eyesopen.com>
1910
1911 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
1912 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
1913 (expand_builtin): Always call expand_builtin_pow.
1914
ef79730c
RS
19152004-02-01 Roger Sayle <roger@eyesopen.com>
1916
1917 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
1918 BUILT_IN_SIGNBITL): New GCC builtins.
1919 * builtins.c (expand_builtin_signbit): New function to RTL expand
1920 calls to signbit, signbitf and signbitl as inline intrinsics.
1921 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
1922 (fold_builtin_signbit): New function to perform constant folding
1923 of signbit, signbitf and signbitl.
1924 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
1925
1926 * doc/extend.texi: Document new signbit{,f,l} builtins.
1927
a80cdb0f
RS
19282004-02-01 Richard Sandiford <rsandifo@redhat.com>
1929
1930 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
1931
2efe2033
CD
19322004-02-01 Chris Demetriou <cgd@broadcom.com>
1933
1934 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
1935 "mips_const_double_ok" and "simple_memory_operand", which were
1936 removed from the MIPS port with the mips-3_4-rewrite branch merge.
1937 * config/mips/mips.c (mips16_lay_out_constants): Update comment
1938 for removal of simple_memory_operand.
1939
d37eb705
KH
19402004-01-31 Kazu Hirata <kazu@cs.umass.edu>
1941
1942 * config/c4x/c4x.md: Use GEN_INT instead of
1943 gen_rtx (CONST_INT, ...).
1944
fadeed3b
RH
19452004-01-31 Richard Henderson <rth@redhat.com>
1946
1947 * varasm.c (output_constant_pool): Don't zap the pool.
1948
ccdc1703
KH
19492004-01-31 Kazu Hirata <kazu@cs.umass.edu>
1950
1951 * genrecog.c (decision_type): Add DT_const_int.
1952 (write_cond) [DT_const_int]: Print a comparison against small
1953 constant.
1954 (write_node): Simplify comparisons against small constants
1955 before printing tests.
16dd5cfe 1956
aeba8f80
KH
19572004-01-31 Kazu Hirata <kazu@cs.umass.edu>
1958
1959 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
1960 instead of gen_rtx_CONST_INT.
1961
400ce94c
KH
19622004-01-31 Kazu Hirata <kazu@cs.umass.edu>
1963
1964 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
1965 instead of gen_rtx_CONST_INT.
1966
8dfa8fcd
KH
19672004-01-31 Kazu Hirata <kazu@cs.umass.edu>
1968
1969 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
1970 hook_bool_CUMULATIVE_ARGS_false.
1971 * targhooks.c (default_strict_argument_naming): Rename to
1972 hook_bool_CUMULATIVE_ARGS_false.
1973 * targhooks.h: Update the prototype for
1974 default_strict_argument_naming.
1975
c0d4e710
KH
19762004-01-31 Kazu Hirata <kazu@cs.umass.edu>
1977
1978 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
1979 * config/sh/sh.h: Likewise.
1980 * config/sh/sh.md: Likewise.
1981
fdf064f2
EB
19822004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
1983
1984 * doc/invoke.texi (SPARC options): Restructure and update.
1985
b602b7b6
KH
19862004-01-31 Kazu Hirata <kazu@cs.umass.edu>
1987
1988 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
1989 STRICT_ARGUMENT_NAMING): Poison.
1990 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
1991 hook_bool_tree_false.
1992 * targhooks.c (default_promote_function_args): Remove.
1993 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
1994 Don't check incoming.
1995 (default_strict_argument_naming): Don't use
1996 STRICT_ARGUMENT_NAMING.
1997 * targhooks.h: Remove the prototype for
1998 default_promote_function_args.
1999
a0524eb3
KH
20002004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2001
2002 * config/i386/i386-protos.h: Remove the prototype for
2003 ix86_setup_incoming_varargs.
2004 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
2005 (ix86_setup_incoming_varargs): Make it static.
2006 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
2007
a457ee07
KH
20082004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2009
2010 * alloc-pool.c: Fix comment typos.
2011 * builtin-types.def: Likewise.
2012 * builtins.def: Likewise.
2013 * c-pretty-print.c: Likewise.
2014 * df.h: Likewise.
2015 * reload1.c: Likewise.
2016
a451b0bd
KH
20172004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2018
2019 * doc/invoke.texi: Follow spelling conventions.
2020 * doc/tm.texi: Likewise.
2021
e53e0c56
KH
20222004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2023
2024 * doc/install.texi: Fix typos.
2025 * doc/invoke.texi: Likewise.
2026
025b17a4
UW
20272004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
2028
2029 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
2030 registers as pointers.
2031 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
2032
4de249d9
PB
20332004-01-31 Paolo Bonzini <bonzini@gnu.org>
2034
2035 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
2036 and restore it to gen_lowpart_general on exit.
2037 (gen_lowpart_for_combine): Adjust all callers to go through
2038 gen_lowpart.
2039 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
2040 and restore it to gen_lowpart_general on exit.
2041 (gen_lowpart_if_possible): Adjust all callers to go through
2042 gen_lowpart.
2043 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
2044 (gen_lowpart): Declare as pointer to function, initialized to
2045 gen_lowpart_general.
2046 * rtl.h (gen_lowpart): Declare as pointer to function.
2047
f84d109f
KH
20482004-01-31 Kazu Hirata <kazu@cs.umass.edu>
2049
2050 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
2051 * calls.c: Likewise.
2052 * emit-rtl.c: Likewise.
2053 * function.c: Likewise.
2054 * reload1.c: Likewise.
2055 * config/i386/cygming.h: Likewise.
2056 * config/i386/i386.c: Likewise.
2057 * config/i386/winnt.c: Likewise.
2058
354b7da5
DH
20592004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
2060
2061 PR bootstrap/9249
2062 * doc/install.texi: document --enable-__cxa_atexit option.
2063 * configure.ac: Disable __cxa_atexit if not supported.
2064 * configure: Regenerate.
2065
9781b6da
DB
20662003-01-30 Daniel Berlin <dberlin@dberlin.org>
2067
2068 * ggc-zone.c (ggc_free): New function.
2069
283334f0
KH
20702004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2071
2072 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
2073 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
2074 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
2075 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
2076 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
2077 config/alpha/alpha.c, config/alpha/alpha.h,
2078 config/alpha/alpha.md, config/alpha/unicosmk.h,
2079 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
2080 config/c4x/c4x-protos.h, config/c4x/c4x.md,
2081 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
2082 config/frv/frvend.c, config/i386/cygming.h,
2083 config/i386/djgpp.h, config/i386/emmintrin.h,
2084 config/i386/gthr-win32.c, config/i386/i386-interix.h,
2085 config/i386/i386-protos.h, config/i386/openbsd.h,
2086 config/i386/winnt.c, config/i386/xm-mingw32.h,
2087 config/i386/xmmintrin.h, config/ia64/ia64.md,
2088 config/iq2000/iq2000.md, config/m32r/m32r.md,
2089 config/m68k/m68k.md, config/mcore/mcore-elf.h,
2090 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2091 config/mips/iris5gas.h, config/mips/iris6.h,
2092 config/mips/iris6gas.h, config/mips/linux.h,
2093 config/mips/mips.md, config/mips/netbsd.h,
2094 config/mips/openbsd.h, config/mips/windiss.h,
2095 config/pa/fptr.c, config/rs6000/aix.h,
2096 config/rs6000/altivec.h, config/rs6000/darwin.h,
2097 config/rs6000/xcoff.h, config/s390/s390-protos.h,
2098 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
2099 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
2100 config/sparc/sol2.h: Update copyright.
2101
71cbe2c1
KC
21022004-01-30 Kelley Cook <kcook@gcc.gnu.org>
2103
2104 * Makefile.in (abs_docdir, abs_srcdir): Define.
2105 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
2106
bfb2d661
KH
21072004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2108
2109 * genconfig.c (main): Have CC0_P check its operand even on a
2110 target without cc0.
2111
bd5bd7ac
KH
21122004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2113
2114 * config/alpha/alpha.c: Remove mentions of deprecates macros
2115 in comments, remove some target-independent comments about target
2116 macros, and/or add minimal function comments for target hook
2117 implementations.
2118 * config/avr/avr.c: Likewise.
2119 * config/ia64/ia64.h: Likewise.
2120 * config/ip2k/ip2k.c: Likewise.
2121 * config/iq2000/iq2000.c: Likewise.
2122 * config/m32r/m32r.h: Likewise.
2123 * config/m68hc11/m68hc11.c: Likewise.
2124 * config/mcore/mcore.c: Likewise.
2125 * config/mmix/mmix.c: Likewise.
2126 * config/mn10300/mn10300.c: Likewise.
2127 * config/pa/pa.c: Likewise.
2128 * config/pdp11/pdp11.c: Likewise.
2129 * config/rs6000/rs6000.h: Likewise.
2130 * config/sh/sh.c: Likewise.
2131 * config/sh/sh.h: Likewise.
2132 * config/sparc/sparc.c: Likewise.
2133 * config/sparc/sparc.h: Likewise.
2134 * config/stormy16/stormy16.c: Likewise.
2135 * config/xtensa/xtensa.c: Likewise.
2136
808ededc
UW
21372004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2138
2139 PR optimization/12147
2140 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
2141 RELOAD_FOR_OPADDR_ADDR.
2142 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
2143 might be reused as RELOAD_FOR_OPADDR_ADDR register.
2144
98e5e087
JH
21452004-01-30 Jan Hubicka <jh@suse.cz>
2146
bd5bd7ac 2147 * reload.c (get_secondary_mem): Fix updating of
98e5e087
JH
2148 secondary_memlocs_elim_used.
2149
3234b52d
RH
21502004-01-30 Richard Henderson <rth@redhat.com>
2151
2152 * varasm.c (struct rtx_const, struct pool_constant): Remove.
2153 (MAX_RTX_HASH_TABLE): Remove.
2154 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
2155 (first_pool, last_pool, pool_offset): Remove.
2156 (struct rtx_constant_pool): Split out from ...
2157 (struct varasm_status): ... here. Reference one via pointer.
2158 (struct constant_descriptor_rtx): Merge struct pool_constant.
2159 (SYMHASH): Remove.
2160 (decode_rtx_const): Remove.
2161 (const_hash_rtx, compare_constant_rtx): Remove.
2162 (record_constant_rtx): Remove.
2163 (const_desc_rtx_hash, const_desc_rtx_eq): New.
2164 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
2165 (const_rtx_hash_1, const_rtx_hash): New.
2166 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
2167 (simplify_subtraction): Use simplify_rtx.
2168 (force_const_mem): Rewrite to use new data structures.
2169 (find_pool_constant): Likewise.
2170 (get_pool_constant, get_pool_constant_mark,
2171 get_pool_constant_for_function, get_pool_mode,
2172 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
2173 (output_constant_pool_2): Split out from output_constant_pool.
2174 (output_constant_pool_1): Likewise. Use new pool datastructures.
2175 (output_constant_pool): Zap entire pool datastructure.
2176 (mark_constant): Use new pool datastructures.
2177 (mark_constants): Use for_each_rtx.
2178 (mark_constant_pool): Use new pool datastructures.
2179
be77d9e7 21802004-01-30 Fariborz Jahanian <fjahanian@apple.com>
16dd5cfe 2181
a6f78652 2182 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
be77d9e7
FJ
2183 Copy operands[1] to pseudo for simplify_gen_subreg.
2184
f0cad2d5
KH
21852004-01-30 Kazu Hirata <kazu@cs.umass.edu>
2186
2187 * gcse.c (bypass_block): Fix a typo in the previous check-in
2188 to the file.
2189
40ca90bf
AP
21902004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
2191
2192 * toplev.c: Include alloc-pool.h.
16dd5cfe 2193 * Makefile.in (toplev.c): Update dependencies.
40ca90bf 2194
39a44a4e
RK
21952004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2196
2197 * combine.c (simplify_shift_const, case XOR): Be careful when
2198 commuting XOR with ASHIFTRT.
2199
3e2cc1d1 22002004-01-30 Kazu Hirata <kazu@cs.umass.edu>
a6f78652 2201 Eric Botcazou <ebotcazou@libertysurf.fr>
3e2cc1d1
KH
2202
2203 * config/sparc/sparc-protos.h: Remove the prototype for
2204 sparc_builtin_saveregs.
2205 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2206 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2207 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2208 (TARGET_STRUCT_VALUE_RTX): Likewise.
2209 (TARGET_RETURN_IN_MEMORY): Likewise.
2210 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
2211 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2212 (sparc_builtin_saveregs): Make it static.
2213 (sparc_promote_prototypes): New.
2214 (sparc_struct_value_rtx): Likewise.
2215 (sparc_return_in_memory): Likewise.
2216 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
2217 (PROMOTE_FUNCTION_RETURN): Likewise.
2218 (RETURN_IN_MEMORY): Likewise.
2219 (STRUCT_VALUE): Likewise.
2220 (STRUCT_VALUE_INCOMING): Likewise.
2221 (EXPAND_BUILTIN_SAVEREGS): Likewise.
2222 (STRICT_ARGUMENT_NAMING): Likewise.
2223 (PROMOTE_PROTOTYPES): Likewise.
2224
2225 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
2226
5e9295fa
EB
22272004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
2228
2229 PR c/12818
2230 * varasm.c (const_hash_1) <STRING_CST>: Use the
2231 address to compute the hash value if flag_writable_strings.
2232 (compare_constant) <STRING_CST>: Compare the addresses
2233 if flag_writable_strings.
2234 (build_constant_desc): Do not copy the expression for a
2235 STRING_CST if flag_writable_strings.
2236
1f2eae8d
JH
22372004-01-30 Jan Hubicka <jh@suse.cz>
2238
1e0f41c9
JH
2239 * alloc-pool.c: Include hashtab.h
2240 (alloc_pool_descriptor): New structure
2241 (alloc_pool_hash): New global variable.
2242 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
2243 (create_alloc_pool): Update statistics.
2244 (free_alloc_pool): Likewise.
2245 (pool_alloc): Likewise.
2246 (output_info): New structure
2247 (print_statistics, dump_alloc_pool_statistics): New function.
2248 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
2249 (dump_alloc_pool_statistics): Declare.
2250 * toplev.c (finalize): Dump statistics.
2251
1f2eae8d
JH
2252 * reload.c (secondary_memlocs_elim_used): New static variable.
2253 (get_secondary_mem): Update it.
2254 (find_reloads): Use it.
2255
80a08664
SB
22562004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
2257
2258 * toplev.c: Fix broken checkin of 2003-12-30, again.
2259
57116d8d
UW
22602004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
2261
2262 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
2263 s390*-*-* targets by specifying a 'nop' insn.
2264 * configure: Regenerate.
2265
5fddd9fe
EB
22662004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
2267
2268 PR target/11475
2269 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
2270
64fc7c00
JJ
22712004-01-29 Jakub Jelinek <jakub@redhat.com>
2272
2273 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
2274 of addr when creating MEM copy.
2275
ed672aa8
DP
22762004-01-29 Devang Patel <dpatel@apple.com>
2277
2278 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
16dd5cfe 2279
7e3aa041
ILT
22802004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
2281
2282 PR inline-asm/6162
2283 * reload.c (find_reloads): Only support one pair of commutative
2284 operands.
2285
06f12aa0
RS
22862004-01-29 Roger Sayle <roger@eyesopen.com>
2287
2288 PR java/13824
2289 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
2290 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
2291 recursion.
2292
b88cf82e
KH
22932004-01-29 Kazu Hirata <kazu@cs.umass.edu>
2294
2295 * config/frv/frv.c: Don't mention deprecated macros in
2296 comments. Remove some target-independent comments about
2297 target macros.
2298 * config/frv/frv.h: Likewise.
2299
3ae4a5b1
ZD
23002004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2301
2302 * cfghooks.c (split_block): Set probability and count of the
2303 new edge.
2304
636c7bc4
JZ
23052005-01-29 Josef Zlomek <zlomekj@suse.cz>
2306
2307 * dwarf2out.c (struct die_struct): Added field decl_id.
2308 (decl_die_table): Changed to hash table.
2309 (decl_die_table_allocated): Deleted.
2310 (decl_die_table_in_use): Deleted.
2311 (DECL_DIE_TABLE_INCREMENT): Deleted.
2312 (decl_die_table_hash): New function.
2313 (decl_die_table_eq): New function.
2314 (lookup_decl_die): Lookup in a hash table.
2315 (equate_decl_number_to_die): Insert into a hash table.
2316 (dwarf2out_init): Init hash table decl_die_table.
2317
4e44c1ef
JJ
23182004-01-29 Jakub Jelinek <jakub@redhat.com>
2319
2320 PR optimization/13424
2321 * expr.c (store_constructor): Revert 2003-12-03 change.
2322
2323 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
2324 expected before returning early. Avoid sharing RTL if they
2325 need to be changed.
2326
2327 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
2328 handling so that memory attributes are preserved. Don't call
2329 ix86_set_move_mem_attrs.
2330 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
2331 (ix86_expand_clrstr): Rename src argument to
2332 dst. Rework rep_stos and strset handling so that memory attributes
2333 are preserved.
2334 (ix86_expand_strlen): Pass src argument to
2335 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
2336 memory attributes are preserved.
2337 (ix86_expand_strlensi_unroll_1): Add src argument. Use
2338 change_address instead of gen_rtx_MEM.
2339 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
2340 expanders.
2341 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
2342 strmovqi, strmovqi_rex64): Remove.
2343 (rep_mov*, strmov*): Prefix insn names with *.
2344 (strset, strset_singleop, rep_stos): New expanders.
2345 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
2346 strsetqi, strsetqi_rex64): Remove.
2347 (rep_stos*, strset*): Prefix insn names with *.
2348 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
2349 to SImode.
2350 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
2351 are preserved.
2352 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
2353 Prefix insn names with *.
2354 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
2355 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
2356 (strlenqi_1): New expander.
2357 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
2358
f470c378
ZD
23592004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2360
2361 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
2362 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
2363 verify_flow_info): Declaration removed.
2364 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
2365 (debug_bb, debug_bb_n): Add argument to dump_bb call.
2366 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
2367 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
2368 instead of delete_block.
2369 * cfghooks.c: Include timevar.h and toplev.h.
2370 (cfg_hooks): Define here.
2371 (verify_flow_info, dump_bb): Moved from cfg.c.
2372 (redirect_edge_and_branch, redirect_edge_and_branch_force,
2373 split_block, split_block_after_labels, move_block_after,
2374 delete_basic_block, split_edge, create_basic_block,
2375 create_empty_bb, can_merge_blocks_p, merge_blocks,
2376 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
2377 New functions.
2378 * cfghooks.h (struct cfg_hooks): Added fields name,
2379 make_forwarder_block, tidy_fallthru_edge and
2380 move_block_after. Changed type of verify_flow_info, dump_bb,
2381 split_block fields. Renamed cfgh_split_edge and delete_block
2382 fields.
2383 (redirect_edge_and_branch, redirect_edge_and_branch_force,
2384 split_block, delete_block, split_edge, create_basic_block,
2385 can_merge_blocks_p, merge_blocks): Macros removed.
2386 (cfg_hooks): Do not export.
2387 (verify_flow_info, dump_bb, redirect_edge_and_branch,
2388 redirect_edge_and_branch_force, split_block, split_block_after_labels,
2389 move_block_after, delete_basic_block, split_edge, create_basic_block,
2390 create_empty_bb, can_merge_blocks_p, merge_blocks,
2391 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
2392 Declare.
2393 (cfg_layout_rtl_cfg_hooks): Declare.
2394 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
2395 New functions.
2396 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
2397 (redirect_edge_with_latch_update): Removed.
2398 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
2399 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
2400 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
2401 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
2402 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
2403 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
2404 cfghooks.c.
2405 (rtl_create_basic_block): Coding style fix.
2406 (rtl_tidy_fallthru_edge, rtl_move_block_after,
2407 rtl_make_forwarder_block): New functions.
2408 (update_cfg_after_block_merging): Removed.
2409 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
2410 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
2411 to dump_bb.
2412 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
2413 find_if_case_2): Don't update dominators.
2414 * timevar.def (TV_CFG_VERIFY): New.
2415 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
2416 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
2417 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
2418 (remove_bbs): Don't call remove_bbs.
2419 (create_preheader): Use make_forwarder_block.
2420 (mfb_keep_just, mfb_update_loops): New static functions.
2421
3cea4788
KH
24222004-01-29 Kazu Hirata <kazu@cs.umass.edu>
2423
2424 * config/avr/avr.h: Remove target-independent comments about
2425 target macros.
2426
75e853f2 24272004-01-28 Daniel Berlin <dberlin@dberlin.org>
16dd5cfe 2428
75e853f2
DB
2429 * timevar.c (timevar_print): Mention when checking is enabled.
2430
7625e73d
GB
24312004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
2432
2433 * c-lex.c (c_lex): Rename to...
2434 (c_lex_with_flags): Add new parameter to get CPP flags.
2435 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
2436 * c-pragma.h (c_lex_with_flags): Declare.
2437
dc7efe6e
KH
24382004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2439
2440 * config/mcore/mcore.c (mcore_external_libcall): Add a
2441 comment.
2442 (mcore_return_in_memory): Likewise.
2443
09a2b93a
KH
24442004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2445
2446 * config/mcore/mcore-protos.h: Remove the prototype for
2447 mcore_setup_incoming_varargs.
2448 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
2449 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
2450 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2451 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2452 (TARGET_STRUCT_VALUE_RTX): Likewise.
2453 (TARGET_RETURN_IN_MEMORY): Likewise.
2454 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2455 (mcore_setup_incoming_varargs): Make it static. Receive the
2456 first argument by reference. Add argument second_time.
2457 (mcore_external_libcall): New.
2458 (mcore_return_in_memory): Likewise.
2459 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
2460 (PROMOTE_FUNCTION_RETURN): Likewise.
2461 (STRUCT_VALUE): Likewise.
2462 (RETURN_IN_MEMORY): Likewise.
2463 (SETUP_INCOMING_VARARGS): Likewise.
2464 (PROMOTE_PROTOTYPES): Likewise.
2465 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2466
a7ed00da
KH
24672004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2468
2469 * config/m32r/m32r-protos.h: Remove the prototype for
2470 m32r_setup_incoming_varargs.
2471 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
2472 (TARGET_STRUCT_VALUE_RTX): Likewise.
2473 (TARGET_RETURN_IN_MEMORY): Likewise.
2474 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2475 (m32r_return_in_memory): New.
2476 (m32r_setup_incoming_varargs): Make it static.
2477 * config/m32r/m32r.h: Remove #undef of
2478 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
2479 definitions of PROMOTE_FUNCTION_ARGS and
2480 PROMOTE_FUNCTION_RETURN.
2481 (PROMOTE_PROTOTYPES): Remove.
2482 (RETURN_IN_MEMORY): Likewise.
2483 (STRUCT_VALUE): Likewise.
2484
8636be86
KH
24852004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2486
2487 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
2488 (TARGET_STRUCT_VALUE_RTX): Likewise.
2489 (m68k_struct_value_rtx): Likewise.
2490 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
2491 STRUCT_VALUE_REGNUM.
2492 (PROMOTE_PROTOTYPES): Remove.
2493 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
2494 STRUCT_VALUE_REGNUM.
2495 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
2496 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
2497
f2f61ee7
KH
24982004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2499
2500 * config/stormy16/stormy16.c
2501 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
2502 TARGET_BUILD_BUILTIN_VA_LIST.
2503
fb7bc7fb
KH
25042004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2505
2506 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
2507 (TARGET_STRUCT_VALUE_RTX): Likewise.
2508 (TARGET_RETURN_IN_MEMORY): Likewise.
2509 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2510 (v850_return_in_memory): Likewise.
2511 (v850_setup_incoming_varargs): Likewise.
2512 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
2513 (SETUP_INCOMING_VARARGS): Likewise.
2514 (RETURN_IN_MEMORY): Likewise.
2515 (STRUCT_VALUE): Likewise.
2516
0fd818e7
KH
25172004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2518
2519 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
2520 (fr30_setup_incoming_varargs): Don't use
2521 STRICT_ARGUMENT_NAMING.
2522 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
2523 (STRICT_ARGUMENT_NAMING): Likewise.
2524
8ac411c7
KH
25252004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2526
2527 * config/frv/frv-protos.h: Remove the prototype for
2528 frv_expand_builtin_saveregs.
2529 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
2530 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
2531 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
2532 STRUCT_VALUE_REGNUM.
2533 (frv_expand_builtin_saveregs): Make it static.
2534 (frv_struct_value_rtx): New.
2535 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
2536
d173e685
JH
25372004-01-29 Jan Hubicka <jh@suse.cz>
2538
2539 PR c++/12850
2540 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
2541 initial pointers.
2542 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
2543 for functions that will be only inlined.
2544 (cgraph_mark_function_to_output): Likewise.
2545 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
2546 do not clear function body.
2547 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
2548 (tree_rest_of_compilation): Reorganize the logic releasing function
2549 body to use callgraph datastructure.
2550
f7a1010e
JDA
25512004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2552
2553 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
2554 to register_operand.
2555
e7f47f83
ZW
25562004-01-28 Zack Weinberg <zack@codesourcery.com>
2557
2558 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
2559 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
2560 match_operand expressions so that all match_dups appear
2561 lexically after their corresponding match_operands.
2562
1807b726
KH
25632004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2564
2565 * config/h8300/h8300.c (WORD_REG_USED): Use
2566 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
2567 (compute_saved_regs): Likewise.
2568 (h8300_expand_prologue): Likewise. Allocate locals after
2569 saving registers.
2570 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
2571 of FRAME_POINTER_REGNUM. Deallocate locals before saving
2572 registers.
2573 (h8300_initial_elimination_offset): Adjust for the new frame
2574 layout, which swaps flips the order of locals and saved
2575 registers.
2576 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
2577 (HARD_FRAME_POINTER_REGNUM): New.
2578 (ELIMINABLE_REGS): Add an elimination rule from
2579 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
2580 (REGISTER_NAMES): Add fp.
2581 * config/h8300/h8300.md (FP_REG): Change to 11.
2582 (HFP_REG): New.
2583
be2c39f8
KH
25842004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2585
2586 * genrecog.c (write_node): Remove a useless local variable.
2587
469ef4a3
ILT
25882004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
2589
2590 * Makefile.in (options.c options.h): Use stamp file s-options to
2591 avoid unnecessary rebuilds.
2592 (options.o): New target listing dependencies.
2593 (gtyp-gen.h): Use stamp file s-gtyp-gen.
2594 (STAGESTUFF): Add s-gtyp-gen.
2595
685fe032
RH
25962004-01-28 Richard Henderson <rth@redhat.com>
2597
2598 * ggc.h (ggc_free): Declare.
2599 * ggc-common.c (ggc_realloc): Use it.
2600 * ggc-page.c: Remove lots of inline markers.
2601 (globals): Add free_object_list.
2602 (ggc_alloc): Tidy.
2603 (ggc_free, validate_free_objects): New.
2604 (poison_pages): Provide default.
2605 (ggc_collect): Call validate_free_objects; emit markers to
2606 the debug file.
2607
2ffe0e02
ZW
26082004-01-28 Zack Weinberg <zack@codesourcery.com>
2609 Jim Wilson <wilson@specifixinc.com>
2610
2611 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
2612 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
2613 scratch pointer.
2614 (ia64_secondary_reload_class): Delete case GR_REGS.
2615 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
2616 Do not allocate a scratch register.
2617 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
2618
a544524a
JH
26192004-01-28 Jan Hubicka <jh@suse.cz>
2620
2621 * gcse.c (bypass_block): Prevent edges to be unified when we are
2622 about to emit compenstation code.
2623
1b8f8174
NC
26242004-01-28 Nick Clifton <nickc@redhat.com>
2625
2626 * config/arm/arm.c (arm_expand_builtin): Force second argument of
2627 the setcwx insn into a register.
2628
faceece3
RS
26292004-01-28 Richard Sandiford <rsandifo@redhat.com>
2630
2631 * config/fp-bit.c (pack_d): When using paired doubles to implement
2632 a long double, round the high part separately.
2633 (unpack_d): Fix the case in which the high part is a power of two
2634 and the low part is a nonzero value of the opposite sign.
2635
28b24176
KH
26362004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2637
2638 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
2639 (TARGET_STRUCT_VALUE_RTX): Likewise.
2640 (c4x_external_libcall): Likewise.
2641 (c4x_struct_value_rtx): Likewise.
2642 * config/c4x/c4x.h: Remove.
2643 (STRUCT_VALUE_REGNUM): Likewise.
2644 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
2645
9184f892
KH
26462004-01-28 Kazu Hirata <kazu@cs.umass.edu>
2647
2648 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
2649 (TARGET_STRUCT_VALUE_RTX): Likewise.
2650 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
2651 (STRUCT_VALUE): Likewise.
2652 (PROMOTE_PROTOTYPES): Likewise.
2653
4cce9dd8
RS
26542004-01-27 Roger Sayle <roger@eyesopen.com>
2655
2656 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
2657 CONST_INT before using INTVAL.
2658
590fcf48
UW
26592004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
2660
2661 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
2662 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
2663 frame if !TARGET_BACKCHAIN.
2ffe0e02 2664 * config/s390/s390.md ("allocate_stack"): Use pattern only if
590fcf48
UW
2665 TARGET_BACKCHAIN.
2666 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
2667
826b47cc
ZW
26682004-01-27 Zack Weinberg <zack@codesourcery.com>
2669
2670 * ia64.c (ia64_function_arg): When placing HFAs in integer
2671 registers, do not special case the mode used for complex
2672 types. Do not advance int_regs until the current register
2673 is full.
2674
83810fcb
RS
26752004-01-27 Richard Sandiford <rsandifo@redhat.com>
2676
2677 PR target/7297
2678 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
2679
2d9db8eb
DE
26802004-01-27 David Edelsohn <edelsohn@gnu.org>
2681
2682 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
2683 slow, unaligned loads and stores while debugging. Fix formatting.
2684
39e453d7
DE
26852004-01-27 David Edelsohn <edelsohn@gnu.org>
2686
2687 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
2688 of computing wmode.
2689 (restore_stack_nonlocal): Same.
2690
6097b0c3 26912004-01-27 Devang Patel <dpatel@apple.com>
826b47cc 2692
6097b0c3 2693 * Makefile.in (dwarf2out.o): Depend on input.h
826b47cc 2694 * dbxout.c (dbx_debug_hooks): Add new empty hook for
6097b0c3
DP
2695 imported_module_or_decl.
2696 (xcoff_debug_hooks): Same.
2697 * sdbout.c (sdb_debug_hooks): Same.
2698 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
2699 * debug.c (do_nothing_debug_hooks): Same.
2700 (debug_nothing_tree_tree): New function.
2701 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
2702 * dwarf2out.c: Include input.h.
2703 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
2704 (remove_child_TAG): New function.
2705 (dwarf_tag_name): Handle DW_TAG_imported_module.
2706 (gen_subprogram_die): Equate decl number to declaration die. Do not
2707 remove all children dies while reusing declaration die for definition.
2708 Instead, selectively remove only formal parameters.
2709 (gen_variable_die): Equate variable decl to declaration die.
2710 (gen_field_die): Equate field decl to line number.
2711 (force_namespace_die): Replace it with ...
2712 (force_decl_die): ... this.
2713 (force_type_die): New function.
2714 (setup_namespace_context): Replace use of force_namespace_die() with
2715 force_decl_die().
2716 (gen_namespace_die): Same.
2717 (dwarf2out_imported_module_or_decl): New function.
2718
e6aecf8e 27192004-01-27 Bob Wilson <bob.wilson@acm.org>
826b47cc 2720
e6aecf8e
BW
2721 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
2722 on CQImode and CHImode incoming arguments in register a7.
2723 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
2724 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
2725 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
2726 xtensa_copy_incoming_a7 before reload.
826b47cc 2727
02307675
R
27282004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
2729
2730 * coverage.c (get_coverage_counts): Give a different message
2731 if flag_guess_branch_prob is set.
2732 * predict.c (counts_to_freqs): Return an int.
2733 (estimate_bb_frequencies): If counts_to_freqs returns zero,
2734 calculate estimates.
2735
69a45040
KH
27362004-01-27 Kazu Hirata <kazu@cs.umass.edu>
2737
2738 * config/iq2000/iq2000-protos.h: Remove the prototype for
2739 iq2000_setup_incoming_varargs.
2740 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2741 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2742 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2743 (TARGET_STRUCT_VALUE_RTX): Likewise.
2744 (TARGET_RETURN_IN_MEMORY): Likewise.
2745 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2746 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2747 (iq2000_return_in_memory): Likewise.
2748 (iq2000_setup_incoming_varargs): Make it static. Receive the
2749 first argument by reference.
2750 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
2751 (PROMOTE_FUNCTION_RETURN): Likewise.
2752 (PROMOTE_PROTOTYPES): Likewise.
2753 (RETURN_IN_MEMORY): Likewise.
2754 (STRUCT_VALUE): Likewise.
2755 (SETUP_INCOMING_VARARGS): Likewise.
2756 (STRICT_ARGUMENT_NAMING): Likewise.
2757
9cdfc8e7
JM
27582004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
2759
826b47cc 2760 * fixinc/fixinc.c (test_test): Initialize res.
9cdfc8e7
JM
2761 (start_flexer): Initialize pz_cmd_save.
2762
60ffd2fe
ZW
27632004-01-27 Zack Weinberg <zack@codesourcery.com>
2764
2765 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
2766 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
2767
52ad4d7b
ZW
27682004-01-27 Zack Weinberg <zack@codesourcery.com>
2769
2770 PR 7198
2771 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
2772 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
2773 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
2774 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
2775 Possibly rename pattern for consistency.
2776 Remove ??? comments suggesting that this be done.
2777 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
2778 New patterns.
2779 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
2780 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
2781 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
2782 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
2783 Update to match.
2784
b034930f
ILT
27852004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
2786
2787 * config/arm/arm.c (output_return_instruction): Only restore IP
2788 into SP if frame_pointer_needed.
2789
be446dfc
EB
27902004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2791
2792 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
2793 for SCmode and DCmode if ARCH32.
2794 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
2795 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
2796 if ARCH32.
2797 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
2798 if ARCH32.
2799 (BASE_OUTGOING_VALUE_REG): Likewise.
2800
1b4bda70
EB
28012004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
2802
2803 PR target/10904
2804 PR target/13058
2805 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
2806 Forbid mode changes from SImode for lower FP regs if ARCH64.
2807
1194fc79
R
28082004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
2809
2810 * Makefile.in (bt-load.o): Depend on except.h.
2811 * bt-load.c (except.h): #include.
2812 (compute_defs_uses_and_gen): If insn at end of BB can throw
2813 within this function, consider registers used by it unavailable for
2814 btr migration.
2815 (move_btr_def): If insn at end of BB can throw, insert before rather
2816 than after.
2817
2818 * flags.h (flag_btr_bb_exclusive): Declare.
2819 * toplev.c (flag_btr_bb_exclusive): New variable.
2820 (f_options): Add btr-bb-exclusive.
2821 * bt-load.c (augment_live_range): Restore old behaviour if
2822 flag_btr_bb_exclusive is set.
2823 * common.opt: Add entry for -fbtr-bb-exclusive.
2824 * opts.c (common_handle_options): Same.
2825 * doc/invoke.texi: Document -fbtr-bb-exclusive.
52ad4d7b 2826
1194fc79
R
2827 * bt-load.c (btrs_live_at_end): New variable.
2828 (compute_defs_uses_and_gen): Compute its pointed-to array.
2829 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
2830 (augment_live_range): When augmenting with a new dominator,
2831 use only its btrs_live_at_end set, but also add in the full set
2832 of the old dominator.
2833 (btr_def_live_range): Use btrs_live_at_end.
2834 (move_btr_def): Set other_btr_uses_before_def, and move new set
2835 to the end of the basic block, if appropriate.
2836 (migrate_btr_defs): Allocate and free btrs_live_at_end.
52ad4d7b 2837
1194fc79
R
2838 * bt-load.c (basic_block_freq): Remove outdated comment.
2839
895ea8f0
AM
28402004-01-27 Alan Modra <amodra@bigpond.net.au>
2841
2842 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
2843 (PREDICATE_CODES): Remove duplicate.
2844 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
2845 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
2846 (MASK_PROFILE_KERNEL): Adjust define.
2847
4137ba7a
JJ
28482004-01-27 Jakub Jelinek <jakub@redhat.com>
2849
2850 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
2851 of long string literals from 32 bytes to sizeof (void *) when !-Os
2852 and to 1 with -Os.
2853
a4bb41cc
KH
28542004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2855
2856 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
2857 constant addresses in the normal mode.
2858
1c62e7b2
KG
28592004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2860
2861 * system.h (CHAR_BITFIELD): Delete.
2862 (BOOL_BITFIELD): New.
2863 * c-decl.c (c_scope): Use BOOL_BITFIELD.
2864 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
2865
96ab60fc
KH
28662004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2867
2868 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2869 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2870 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2871 (TARGET_STRUCT_VALUE_RTX): Likewise.
2872 (TARGET_RETURN_IN_MEMORY): Likewise.
2873 (arc_return_in_memory): Likewise.
2874 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
2875 (PROMOTE_FUNCTION_RETURN): Likewise.
2876 (RETURN_IN_MEMORY): Likewise.
2877 (STRUCT_VALUE): Likewise.
2878
6d4b0a5d
RH
28792004-01-26 Richard Henderson <rth@redhat.com>
2880
2881 * c-parse.in (extension): Use itype.
2882 (SAVE_EXT_FLAGS): Don't allocate a tree.
2883 (RESTORE_EXT_FLAGS): Don't read a tree.
2884
18874af6
JH
28852004-01-26 Jan Hubicka <jh@suse.cz>
2886
2887 * cselib.c (discard_useless_values): Clear out value pointer pointing
2888 to datastructure to be recycled.
2889
501f88de
JH
28902004-01-25 Jan Hubicka <jh@suse.cz>
2891
2892 * genextract.c (main): Do not output the memset when not checking.
2893
d6456562
KH
28942004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2895
2896 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
2897 switch statement instead of a chain of if statements.
2898
5cea9d5d
JL
28992004-01-26 Jeff Law <law@redhat.com>
2900
2901 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
2902 acute accents for Petur Runolfsson's entry.
2903
04e9daaf
KH
29042004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2905
2906 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
2907 (TARGET_RETURN_IN_MEMORY): Likewise.
2908 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
2909 (RETURN_IN_MEMORY): Likewise.
2910
40ca90bf 29112004-01-26 Fariborz Jahanian <fjahanian@apple.com>
6c8066b9 2912
52ad4d7b
ZW
2913 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
2914 unaligned load/store into smaller loads and stores.
6c8066b9 2915
40ca90bf 29162004-01-26 Fariborz Jahanian <fjahanian@apple.com>
6c8066b9 2917
52ad4d7b
ZW
2918 * function.c (assign_parms): Do not assign
2919 long long argument to memory in prologue if
2920 is it loaded into register.
6c8066b9 2921
40ca90bf 29222004-01-26 Fariborz Jahanian <fjahanian@apple.com>
6c8066b9
FJ
2923
2924 PR middle-end/13779
52ad4d7b
ZW
2925 * expr.c (emit_group_load): split constant
2926 correctly into register components of PARALLEL insn.
6c8066b9 2927
40ca90bf 29282004-01-26 Fariborz Jahanian <fjahanian@apple.com>
6c8066b9
FJ
2929
2930 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
2931 Use adjust_address_nv directly with appropriate mode.
2932 (restore_stack_nonlocal): Ditto.
2933
4c45af42
KH
29342004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2935
2936 * config/xtensa/xtensa-protos.h: Remove the prototype for
2937 xtensa_builtin_saveregs.
2938 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2939 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
2940 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2941 (TARGET_STRUCT_VALUE_RTX): Likewise.
2942 (TARGET_RETURN_IN_MEMORY): Likewise.
2943 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
2944 (xtensa_builtin_saveregs): Make it static.
2945 (xtensa_return_in_memory): New.
2946 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
2947 (PROMOTE_FUNCTION_RETURN): Likewise.
2948 (PROMOTE_PROTOTYPES): Likewise.
2949 (STRUCT_VALUE): Likewise.
2950 (RETURN_IN_MEMORY): Likewise.
2951 (EXPAND_BUILTIN_SAVEREGS): Likewise.
2952
1cc9f5f5
KH
29532004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2954
2955 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
2956 (arm_setup_incoming_varargs): Likewise.
2957 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
2958
558d352a
KH
29592004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2960
2961 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
2962 (cris_setup_incoming_varargs): Likewise.
2963 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
2964
2001a5cf
KH
29652004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2966
2967 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
2968 (ns32k_struct_value_rtx): Likewise.
2969 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
2970 NS32K_STRUCT_VALUE_REGNUM.
2971
f9ba5949
KH
29722004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2973
2974 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
2975 (TARGET_PROMOTE_PROTOTYPES): Likewise.
2976 (TARGET_STRUCT_VALUE_RTX): Likewise.
2977 (arm_struct_value_rtx): Likewise.
2978 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
2979 (STRUCT_VALUE): Likewise.
2980 (STRUCT_VALUE_REGNUM): Likewise.
2981 (PROMOTE_PROTOTYPES): Likewise.
2982
351a758b
KH
29832004-01-26 Kazu Hirata <kazu@cs.umass.edu>
2984
2985 * config/ia64/ia64-protos.h: Remove the prototype for
2986 ia64_setup_incoming_varargs and ia64_return_in_memory.
2987 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
2988 (TARGET_RETURN_IN_MEMORY): Likewise.
2989 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
2990 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
2991 (ia64_setup_incoming_varargs): Adjust the arguments to meet
2992 the requirement of TARGET_SETUP_INCOMING_VARARGS.
2993 (ia64_return_in_memory): Make it static. Change the return
2994 type to bool from int. Add an argument.
2995 (ia64_struct_value_rtx): New.
2996 * config/ia64/ia64.h: Remove commented-out definitions of
2997 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
2998 PROMOTE_PROTOTYPES.
2999 (RETURN_IN_MEMORY): Remove.
3000 (STRUCT_VALUE_REGNUM): Likewise.
3001 (STRICT_ARGUMENT_NAMING): Likewise.
3002
a7bba6ca
EB
30032004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
3004
3005 PR target/13666
3006 * config/sparc/sparc.c (function_arg_union_value): New function.
3007 (function_arg): Use it to deal with unions.
3008 (function_value): Likewise. Define 'regbase' only for ARCH64.
3009 Replace a conditional statement by a simpler one.
3010
6865f4cd
RS
30112004-01-26 Richard Sandiford <rsandifo@redhat.com>
3012
3013 * config/mips/mips.c (mips16_optimize_gp): Delete.
3014 (mips_reorg): Don't call it.
3015
2d6d0eb5
MH
30162004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3017
3018 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
3019 (floatunsqihf2): Remove operand 6.
3020 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
3021 fix patterns.
3022 (ldi_conditional, ldf_conditional): Validate operands.
3023
8f422192
MH
30242004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3025
3026 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
3027 (HAVE_GAS_HIDDEN): Undefine as interim measure.
52ad4d7b 3028
9c3602e4
MH
30292004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3030
3031 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
3032 memory references if TARGET_EXPOSE_LDP nonzero.
3033
a026b9d6
MH
30342004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3035
3036 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
52ad4d7b 3037
b7bbb574
MH
30382004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3039
3040 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
3041 invalid operand combinations.
3042
1e903c61
MH
30432004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
3044
3045 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
3046 c4x_legitimate_address_p. Fix post_modify check.
b7bbb574 3047
1e903c61
MH
3048 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
3049 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
52ad4d7b 3050
3f12cd9b
KH
30512004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3052
3053 * config/pa/pa-protos.h: Remove the prototype for
3054 hppa_builtin_saveregs. Add a prototype for
3055 pa_return_in_memory.
3056 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
3057 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3058 (TARGET_STRUCT_VALUE_RTX): Likewise.
3059 (TARGET_RETURN_IN_MEMORY): Likewise.
3060 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3061 (pa_struct_value_rtx): Likewise.
3062 (pa_return_in_memory): Likewise.
3063 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
3064 PA_STRUCT_VALUE_REGNUM.
3065 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
3066 (EXPAND_BUILTIN_SAVEREGS): Remove.
3067 (PROMOTE_PROTOTYPES): Likewise.
3068 (PROMOTE_FUNCTION_RETURN): Likewise.
3069
f289e226
KH
30702004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3071
3072 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
3073 (TARGET_STRUCT_VALUE_RTX): Likewise.
3074 (vax_struct_value_rtx): Likewise.
3075 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
3076 VAX_STRUCT_VALUE_REGNUM.
3077 (PROMOTE_PROTOTYPES): Remove.
3078
12fb52cf 30792004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
52ad4d7b
ZW
3080
3081 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
3082
fdcf1e1e
CD
30832003-04-25 Chris Demetriou <cgd@broadcom.com>
3084
3085 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
3086 and MIPS64 have HI/LO interlocks. Update comment.
3087
7e43c821
KH
30882004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3089
3090 * config/stormy16/stormy16-protos.h: Remove the prototype for
3091 xstormy16_setup_incoming_varargs.
3092 * config/stormy16/stormy16.c
3093 (xstormy16_setup_incoming_varargs): Remove.
3094 (xstormy16_return_in_memory): New.
3095 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
3096 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3097 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3098 (TARGET_STRUCT_VALUE_RTX): Likewise.
3099 (TARGET_RETURN_IN_MEMORY): Likewise.
3100 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
3101 (PROMOTE_FUNCTION_RETURN): Likewise
3102 (PROMOTE_PROTOTYPES): Likewise
3103 (RETURN_IN_MEMORY): Likewise
3104 (STRUCT_VALUE): Likewise
3105 (SETUP_INCOMING_VARARGS): Likewise
3106
62973ffe
RS
31072004-01-25 Richard Sandiford <rsandifo@redhat.com>
3108
3109 * config/mips/mips.c (mips_offset_within_object_p): New function.
3110 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
3111 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
3112 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
3113
8e67da21
KH
31142004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3115
3116 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
3117 (PROMOTE_FUNCTION_RETURN): Likewise.
3118
9024ea92
KH
31192004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3120
3121 * config/mn10300/mn10300-protos.h: Remove the prototype for
3122 mn10300_builtin_saveregs.
3123 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
3124 (TARGET_STRUCT_VALUE_RTX): Likewise.
3125 (TARGET_RETURN_IN_MEMORY): Likewise.
3126 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3127 (mn10300_return_in_memory): Likewise.
3128 (mn10300_builtin_saveregs): Make it static.
3129 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
3130 (RETURN_IN_MEMORY): Likewise.
3131 (STRUCT_VALUE): Likewise.
3132 (EXPAND_BUILTIN_SAVEREGS): Likewise.
3133
20b4e8ae
EB
31342004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
3135
3136 PR bootstrap/13853
3137 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
3138
cff555dc
KH
31392004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3140
3141 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
3142 using ccr.
3143
30f58b01
KH
31442004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3145
3146 * config/i860/i860-protos.h: Remove the prototype for
3147 i860_saveregs.
3148 * config/i860/i860.c (i860_saveregs): Make it static.
3149 (i860_struct_value_rtx): New.
3150 (TARGET_STRUCT_VALUE_RTX): Likewise.
3151 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
3152 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
3153 I860_STRUCT_VALUE_REGNUM.
3154 (EXPAND_BUILTIN_SAVEREGS): Remove.
3155
341ec191
KH
31562004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3157
3158 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
3159 (TARGET_RETURN_IN_MEMORY): Likewise.
3160 (m68hc11_struct_value_rtx): Likewise.
3161 (m68hc11_return_in_memory): Likewise.
3162 * config/m68hc11/m68hc11.h: Remove a commented-out definition
3163 of PROMOTE_PROTOTYPES.
3164 (RETURN_IN_MEMORY): Remove.
3165 (STRUCT_VALUE_REGNUM): Likewise.
3166
344caf1b
KH
31672004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3168
3169 * config/mmix/mmix-protos.h: Remove the prototype for
3170 mmix_setup_incoming_varargs.
3171 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3172 (TARGET_STRUCT_VALUE_RTX): Likewise.
3173 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3174 (mmix_setup_incoming_varargs): Make it static.
3175 (mmix_struct_value_rtx): New.
3176 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
3177 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
3178 (STRUCT_VALUE_REGNUM): Remove.
3179 (SETUP_INCOMING_VARARGS): Likewise.
3180
0c8da560
KH
31812004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3182
3183 * config/mips/mips-protos.h: Remove the prototypes for
3184 mips_setup_incoming_varargs and mips_return_in_memory.
3185 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3186 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3187 (TARGET_PROMOTE_PROTOTYPES): Likewise.
3188 (TARGET_STRUCT_VALUE_RTX): Likewise.
3189 (TARGET_RETURN_IN_MEMORY): Likewise.
3190 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3191 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3192 (mips_setup_incoming_varargs): Match the prototype for
3193 TARGET_SETUP_INCOMING_VARARGS.
3194 (mips_return_in_memory): Make it static. Add argument fntype.
3195 (mips_strict_argument_naming): New.
3196 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
3197 (PROMOTE_FUNCTION_ARGS): Likewise.
3198 (PROMOTE_FUNCTION_RETURN): Likewise.
3199 (STRUCT_VALUE): Likewise.
3200 (RETURN_IN_MEMORY): Likewise.
3201 (SETUP_INCOMING_VARARGS): Likewise.
3202 (STRICT_ARGUMENT_NAMING): Likewise.
3203
49ca372c
KH
32042004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3205
3206 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
3207 (TARGET_RETURN_IN_MEMORY): Likewise.
3208 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
3209 (ip2k_return_in_memory): Likewise.
3210 (ip2k_setup_incoming_varargs): Likewise.
3211 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
3212 (STRUCT_VALUE): Likewise.
3213 (STRUCT_VALUE_INCOMING): Likewise.
3214 (SETUP_INCOMING_VARARGS): Likewise.
3215
b069302c
KH
32162004-01-25 Kazu Hirata <kazu@cs.umass.edu>
3217
3218 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
3219 (TARGET_RETURN_IN_MEMORY): Likewise.
3220 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
3221 (avr_return_in_memory): Remove.
3222 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
3223 (STRUCT_VALUE): Likewise.
3224 (STRUCT_VALUE_INCOMING): Likewise.
3225 (STRICT_ARGUMENT_NAMING): Likewise.
3226
e6d83128
JH
32272004-01-25 Jan Hubicka <jh@suse.cz>
3228
3229 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
3230
bcbc6b7f
RS
32312004-01-25 Richard Sandiford <rsandifo@redhat.com>
3232
3233 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
3234 (mips_regno_mode_ok_for_base_p): Declare.
3235 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
3236 (FRAME_POINTER_REGNUM): Renumber to 78.
3237 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
3238 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
3239 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
3240 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
3241 (REG_MODE_OK_FOR_BASE_P): Likewise.
3242 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
3243 entry for 77 to "$arg" and entry for 78 to "$frame".
3244 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
3245 (mips_reg_mode_ok_for_base_p): Remove.
3246 (mips_regno_mode_ok_for_base_p): New function, derived from old
3247 BASE_REG_P macro. Don't enforce the mips16 stack pointer
3248 restrictions unless we're being strict.
3249 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
3250
1f52178b
KH
32512004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3252
3253 * c-common.h: Fix comment typos.
3254 * c-decl.c: Likewise.
3255 * cgraphunit.c: Likewise.
3256 * combine.c: Likewise.
3257 * et-forest.c: Likewise.
3258 * flow.c: Likewise.
3259 * function.c: Likewise.
3260 * ifcvt.c: Likewise.
3261 * integrate.c: Likewise.
3262 * jump.c: Likewise.
3263 * postreload.c: Likewise.
3264 * varray.c: Likewise.
3265
56ae1316
KH
32662004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3267
3268 * doc/frontends.texi: Update copyright.
3269 * doc/gcov.texi: Likewise.
3270 * doc/gty.texi: Likewise.
3271 * doc/sourcebuild.texi: Likewise.
3272 * doc/standards.texi: Likewise.
3273
b1dccb28
HB
32742004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
3275
3276 PR target/12978
3277 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
3278 Remove movstrqi_small because it conflicts with movstrqi_large.
3279
a2fef3a4
KH
32802004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3281
3282 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
3283 (TARGET_STRUCT_VALUE_RTX): Likewise.
3284 (cris_struct_value_rtx): Likewise.
3285 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
3286 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
3287 STRUCT_VALUE_REGNUM.
3288 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
3289
1f44254c
ILT
32902004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
3291
3292 PR bootstrap/13848
3293 * cse.c (cse_cc_succs): Change the mode of the source expression
3294 as soon as decide we need a new mode. Don't permit changing modes
3295 if we found a match in a successor block.
3296 (cse_condition_code_reg): Save original mode of source expression
3297 so that we know whether we have to change the mode in other
3298 insns.
3299
fdb1c7b3
JH
33002004-01-24 Jan Hubicka <jh@suse.cz>
3301
3302 * emit-rtl.c (change_address, adjust_address_1, offset_address,
3303 widen_memory_access): Return early when there is nothing to change.
3304
5473cfa7
JJ
33052004-01-24 Jakub Jelinek <jakub@redhat.com>
3306
3307 * simplify-rtx.c (simplify_relational_operation): Don't
3308 simplify address == constant into address + -constant == 0.
3309
a5153056
KH
33102004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3311
3312 * gcc.c (process_command): Don't internationalize the
3313 Copyright message.
3314 * mips-tfile.c (main): Likewise.
3315
174b84e5
AT
33162004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
3317
3318 * cse.c: (cse_cc_succs) Fix comparison warning.
3319
16537909
KH
33202004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3321
3322 * config/h8300/h8300.md: Remove extraneous USE in expanders.
3323
d0022200
KH
33242004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3325
3326 * config/h8300/h8300-protos.h: Provide prototypes for
3327 h8300_legitimate_constant_p and h8300_legitimate_address_p.
3328 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
3329 (h8300_rtx_ok_for_base_p): Likewise.
3330 (h8300_legitimate_address_p): Likewise.
3331 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
3332 h8300_legitimate_constant_p.
3333 (RTX_OK_FOR_BASE_P): Remove.
3334 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
3335
ca04c5a9
KH
33362004-01-24 Kazu Hirata <kazu@cs.umass.edu>
3337
3338 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
3339 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
3340 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
3341 (REG_OK_FOR_BASE_STRICT_P): Likewise.
3342 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
3343 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
3344 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
3345 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
3346
3e2a0bd2
JH
33472004-01-24 Jan Hubicka <jh@suse.cz>
3348
3349 * cselib.c (remove_useless_values): Do not access discarded values.
3350
b1adf557
JM
33512004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
3352
3353 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
3354 arrays.
3355
55cd4633
KH
33562004-01-23 Kazu Hirata <kazu@cs.umass.edu>
3357
3358 * recog.c: Fix a typo in copyright.
3359
bbf294a5
AP
33602004-01-23 Andrew Pinski <apinski@apple.com>
3361
3362 * config/rs6000/rs6000.md (call): Fix misappiled patch.
3363 (call_value): Likewise.
3364
a475bff7
RH
33652004-01-23 Richard Henderson <rth@redhat.com>
3366
52ad4d7b
ZW
3367 PR opt/12941
3368 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
3369 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
3370 if SHIFT_COUNT_TRUNCATED is set.
a475bff7 3371
3712281f
BW
33722004-01-23 Bob Wilson <bob.wilson@acm.org>
3373
3374 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
3375 separate real and imaginary parts.
3376 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
3377
99e5c00b
HP
33782004-01-23 Hartmut Penner <hpenner@de.ibm.com>
3379
3380 PR target/13674
3381 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
3382 loading into GPR.
3383
8b07361e
JH
33842004-01-23 Jan Hubicka <jh@suse.cz>
3385
a74ff877
JH
3386 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
3387 change.
3388
8b07361e
JH
3389 * alloc-pool.c (align_four): Kill.
3390 (create_alloc_pool): Align size to eight.
3391 (free_alloc_pool, free_pool): Invalidate deallocated data.
3392
e129d93a
ILT
33932004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
3394
3395 PR gcc/1532
3396 * cse.c (cse_change_cc_mode): New static function.
3397 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
3398 (cse_condition_code_reg): New function.
3399 * rtl.h (cse_condition_code_reg): Declare.
3400 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
3401 * target.h (struct gcc_target): Add fixed_condition_code_regs and
3402 cc_modes_compatible.
3403 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3404 (TARGET_CC_MODES_COMPATIBLE): Define.
3405 (TARGET_INITIALIZER): Add new initializers.
3406 * targhooks.c (default_cc_modes_compatible): New function.
3407 * targhooks.c (default_cc_modes_compatible): Declare.
3408 * hooks.c (hook_bool_intp_intp_false): New function.
3409 * hooks.h (hook_bool_intp_intp_false): Declare.
3410 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
3411 (TARGET_CC_MODES_COMPATIBLE): Define.
3412 (ix86_fixed_condition_code_regs): New static function.
3413 (ix86_cc_modes_compatible): Likewise.
3414 * doc/tm.texi (Condition Code): Document new hooks.
3415
f6c930a3
RO
34162004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3417
3418 * fixinc/inclhack.def (bad_lval): Renamed to ...
3419 (alpha_bad_lval): ... this.
3420 Removed file list.
3421 Restrict to alpha*-dec-osf*.
3422 * fixinc/fixincl.x: Regenerate.
3423 * fixinc/tests/base/dirent.h: Remove, moving test ...
3424 * fixinc/tests/base/testing.h: ... here, reflecting new name.
3425
04b8f97f
ZW
34262004-01-23 Zack Weinberg <zack@codesourcery.com>
3427
30cab869 3428 PR c/13814
04b8f97f
ZW
3429 * c-decl.c (diagnose_mismatched_decls): Also discard a
3430 built-in if we encounter an old-style definition with the
3431 same name.
3432
1ab1739c
JJ
34332004-01-23 Jakub Jelinek <jakub@redhat.com>
3434
3435 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
3436 set to default{32,64}.
3437
02731d29
JJ
34382004-01-21 Jakub Jelinek <jakub@redhat.com>
3439
3440 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
3441 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
3442
0a944ef6 34432004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
04b8f97f 3444 Olivier Hainque <hainque@act-europe.fr>
0a944ef6
EB
3445
3446 * fold-const.c (fold_binary_op_with_conditional_arg): Only
3447 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
3448
0bfb39ef
DJ
34492004-01-23 Daniel Jacobowitz <drow@mvista.com>
3450
3451 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
3452 size for minipool references.
3453
25348c94
RS
34542004-01-23 Roger Sayle <roger@eyesopen.com>
3455
3456 * real.c (real_floor, real_ceil): Tweak to allow input and output
3457 arguments to overlap.
3458 (real_round): New function to implement round(3m) semantics.
3459 * real.h (real_round): Prototype here.
3460 * builtins.c (fold_builtin_round): New function to constant fold
3461 round, roundf and roundl.
3462 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
3463
0f2b41b2
AO
34642004-01-23 Alexandre Oliva <aoliva@redhat.com>
3465
3466 PR optimization/13819
04b8f97f 3467 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
0f2b41b2
AO
3468 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
3469 (sh_handle_sp_switch_attribute): Remove warning.
3470
72613dfa
JH
34712003-11-30 Jan Hubicka <jh@suse.cz>
3472
3473 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
3474
7be4d808
R
34752004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
3476
3477 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
3478 may or may not return non-NIL.
3479 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
3480 check CANNOT_CHANGE_MODE_CLASS
3481
23bd7a93
JH
34822004-01-23 Jan Hubicka <jh@suse.cz>
3483
3484 * basic-block.h (PROP_POSTRELOAD): New macro.
3485 (CLEANUP_LOG_LINKS): New.
3486 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
3487 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
3488
3489 * cselib.c (value_pool): New.
3490 (new_cselib_val): Use pool.
3491 (cselib_init): Initialize value_pool
3492 (cselib_finish): Free pool.
3493
5c4f4b18
EB
34942004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
3495
3496 * config/sparc/sparc.c (scan_record_type): New function.
3497 (function_arg_slotno): Use it to determine which kinds of
3498 registers the record can be passed in.
3499
95f576c1
JM
35002004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
3501
3502 * config/pa/fptr.c: Fix old-style definition.
3503
4c442790
PB
35042004-01-22 Paolo Bonzini <bonzini@gnu.org>
3505
3506 PR optimization/13724
3507 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
3508 represents the zero bits produced by a ZERO_EXTEND operation.
3509
dc4bbaf7
RS
35102004-01-22 Roger Sayle <roger@eyesopen.com>
3511
3512 PR optimization/13821
3513 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
3514 correctly calculate the lowpart offset of the contracted subreg.
3515
b00567b0
ILT
35162004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
3517
3518 * doc/invoke.texi (Optimize Options): Note that --param arguments
3519 are subject to change without notice.
3520
d0d969f8
RO
35212004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3522
3523 * config.gcc (mips-sgi-irix6*o32): Removed.
3524 * config/mips/iris6-o32-as.h: Likewise.
3525 * config/mips/iris6-o32-gas.h: Likewise.
3526 * config/mips/iris6-o32.h: Likewise.
3527
7cf240d5
JH
35282004-01-22 Jan Hubicka <jh@suse.cz>
3529
3530 * cfgcleanup.c (first_pass): New static variable.
3531 (try_forward_edges): Add work limiting check for threading.
3532 (try_crossjump_bb): Add work limiting check for crossjumping.
3533 (try_optimize_cfg): Maintain first pass variable.
3534
b16417d6
BW
35352004-01-22 Bob Wilson <bob.wilson@acm.org>
3536
3537 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
3538 handles complex and vector modes.
3539
c8796654
KH
35402004-01-22 Kazu Hirata <kazu@cs.umass.edu>
3541
3542 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
3543 (REG_OK_FOR_BASE_P_STRICT): Likewise.
3544 (STRICT): Likewise.
3545
10176e28
DJ
35462004-01-22 Daniel Jacobowitz <drow@mvista.com>
3547
3548 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
3549 (genrtl_for_stmt): Remove emit_nop calls.
3550
7bff636b
JDA
35512004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3552
3553 PR target/13713
3554 PR target/13324
3555 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
3556 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
3557 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
3558
980e61bb
DJ
35592004-01-22 Daniel Jacobowitz <drow@mvista.com>
3560
3561 * config/arm/arm.c: Include "debug.h".
04b8f97f 3562 (thumb_pushpop): Take two new arguments. Add some commentary.
980e61bb
DJ
3563 Output frame information when pushing.
3564 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
3565 thumb_pushpop.
3566 (thumb_output_function_prologue): Likewise. Accumulate a CFA
3567 offset, and pass it to thumb_pushpop. Output CFI information.
3568 (thumb_expand_prologue): Add some frame-related markers and notes.
3569
0067d121
UW
35702004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
3571
3572 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
3573 for TARGET_64BIT.
3574 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
3575 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
3576
bb51e270
RS
35772004-01-22 Roger Sayle <roger@eyesopen.com>
3578 Paolo Bonzini <bonzini@gnu.org>
3579
3580 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
3581 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
3582 * rtl.h (subreg_lsb_1): Prototype here.
3583 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
3584 sign extensions.
3585
9c49953c
KH
35862004-01-22 Kazu Hirata <kazu@cs.umass.edu>
3587
3588 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
3589 macro need not be defined if jump-tables should contain
3590 relative addresses only when -fPIC or -fPIC is in effect.
3591
c582d54a
JH
35922004-01-22 Jan Hubicka <jh@suse.cz>
3593
3594 * alias.c (reg_base_value): Turn into varray.
3595 (reg_base_value_size): Kill.
3596 (old_reg_base_value): New deletable varray.
3597 (alias_invariant_size): New variable.
3598 (REG_BASE_VALUE): Update to use varray.
3599 (find_base_value): Likewise.
3600 (record_set): Likewise.
3601 (record_base_value): Likewise.
3602 (memrefs_conflict_p): Likewise.
3603 (record_set): Likewise
3604 (record_base_value): Likewise.
3605 (memrefs_conflict_p): Use alias_invariant_size.
3606 (init_alias_analysis): Use varray; set alias_invariant_size;
3607 rescale other arrays to be sized by maxreg.
3608 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
3609
8a98812c
EB
36102004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3611
3612 * config/sparc/sparc.c (function_arg_slotno): Use
3613 FLOAT_TYPE_P to detect FP fields in structures.
3614 (function_arg_record_value_1): Likewise.
3615 (function_arg_record_value_2): Likewise.
3616
0de456a5
JH
36172004-01-22 Jan Hubicka <jh@suse.cz>
3618
3619 * function.c (allocate_struct_function): Do not initialize expr, emit
3620 and varasm.
3621 (prepare_function_start): Do it here.
3622 * c-parse.in (maybe_type_qual): Do not produce line number notes.
3623
1fd05073
EB
36242004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
3625
3626 PR target/13559
3627 * config/sparc/sparc.c (function_arg_record_value_3): Revert
3628 to 'word_mode' once the first slot has been filled.
3629
b2f24c85
EB
36302004-01-22 Olivier Hainque <hainque@act-europe.fr>
3631
3632 * config/sparc/sparc.c (function_arg_record_value_1): Fix
3633 computation of the number of integer registers required.
3634
b4e0dd8e
KH
36352004-01-21 Kazu Hirata <kazu@cs.umass.edu>
3636
3637 * config/i386/i386.md: Simplify certain comparisons of
3638 const_int.
3639
5cc5eddc
AP
36402004-01-21 Andrew Pinski <apinski@apple.com>
3641
3642 PR target/13785
04b8f97f 3643 * config/rs6000/rs6000.md (call_value): Force operand
5cc5eddc
AP
3644 1 not operand 0 into a register.
3645
711d8c91
KH
36462004-01-21 Kazu Hirata <kazu@cs.umass.edu>
3647
3648 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
3649 unwind-dw2-fde.h: Update copyright.
3650
d1885651
JDA
36512004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3652
3653 * pa-protos.h: Update copyright.
3654 * pa.h: Likewise.
3655 * pa.md: Likewise.
3656
40ca90bf 36572004-01-21 Caroline Tice <ctice@apple.com>
ec13ba83 3658
6ed854f1 3659 PR target/12308
04b8f97f 3660 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
ec13ba83
CT
3661 flags register.
3662 (fix_truncdfdi2): Likewise.
3663 (fix_truncsfdi2): Likewise.
3664 (*fix_truncdi_1): Likewise.
3665 (fix_truncxfsi2): Likewise.
3666 (fix_truncdfsi2): Likewise.
3667 (fix_truncsfsi2): Likewise.
3668 (*fix_truncsi_1): Likewise.
3669 (fix_truncxfhi2): Likewise.
3670 (fix_truncdfhi2): Likewise.
3671 (fix_truncsfhi2): Likewise.
3672 (*fix_trunchi_1): Likewise.
04b8f97f 3673
d9221e01
KH
36742004-01-21 Kazu Hirata <kazu@cs.umass.edu>
3675
3676 * alias.c, basic-block.h, c-common.c, c-common.h,
3677 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
3678 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
3679 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
3680 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
3681 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
3682 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
3683 genautomata.c, genconditions.c, genemit.c, genflags.c,
3684 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
3685 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
3686 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
3687 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
3688 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
3689 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
3690 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
3691 unwind.h, varray.c, varray.h: Update copyright.
3692
6d6b0a12
KH
36932004-01-21 Kazu Hirata <kazu@cs.umass.edu>
3694
3695 * config/h8300/coff.h: Update copyright.
3696 * config/h8300/elf.h: Likewise.
3697 * config/h8300/h8300-protos.h: Likewise.
3698 * config/h8300/h8300.c: Likewise.
3699 * config/h8300/h8300.h: Likewise.
3700 * config/h8300/h8300.md: Likewise.
3701
4b60eb3b
JDA
37022004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3703
3704 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
3705 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
3706 ultrix_unistd): New hacks.
3707 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
3708 ULTRIX_CONST2_CHECK): Add checks.
3709 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
3710 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
3711 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
3712 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
3713 * fixinc/tests/base/locale.h: New file.
3714 * fixinc/fixincl.x: Rebuilt.
3715
bbf5a54d
AJ
37162004-01-21 Andreas Jaeger <aj@suse.de>
3717 Michael Matz <matz@suse.de>
3718
3719 * doc/extend.texi (Extended Asm): Clarify memory clobber.
3720
bfccaa6f
JJ
37212004-01-21 Jakub Jelinek <jakub@redhat.com>
3722
3723 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
3724 _Jv_RegisterClasses through a function pointer.
3725
c3cda381
FH
37262004-01-21 Falk Hueffner <falk@debian.org>
3727
3728 PR target/12898
3729 * config/alpha/alpha.c (alpha_emit_set_const_1): If
3730 no_new_pseudos, use gen_rtx_SET directly for SImode constants
3731 which need multiple instructions to emit.
3732
2a2001be
IK
37332004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
3734
3735 * config/m32r/m32r.h (CPP_SPEC): Define.
3736
1ef82ef2
ZW
37372004-01-21 Zack Weinberg <zack@codesourcery.com>
3738
3739 * c-decl.c (merge_decls): Kill different_binding_level and
3740 different_tu arguments; simplify throughout.
3741 (duplicate_decls): Likewise.
3742 (pushdecl, merge_translation_unit_decls): Update calls to
3743 duplicate_decls.
3744
13544b81
KG
37452004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3746
3747 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
3748 $(SYSTEM_H).
3749 (print-rtl1.o): Depend on $(SYSTEM_H).
3750
a541f69d
KC
37512004-01-20 Kelley Cook <kcook@gcc.gnu.org>
3752
3753 PR bootstrap/12730
3754 * configure.ac: Delete definition and subsitution of docdir.
3755 Add info, man, srcman and srcinfo to target hooks. Create doc/
3756 directory.
3757 * configure: Regenerate.
3758 * Makefile.in: Don't substitute docdir and delete all references
3759 throughout.
3760 (MAKEINFOFLAGS): Define.
3761 (stmp-docobjdir): Delete.
3762 (INFOFILES, MANFILES): Define.
3763 (info): Call lang.info, srcinfo and lang.srcinfo.
3764 (generated-manpages): Call lang.man, srcman and lang.srcman.
3765 (srcinfo, srcman): New rules to copy back files to source directory.
3766 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
3767 (install-man): Revamp rule.
3768 (clean): Update dvi directory.
3769 (distclean): Delete TAGS from front end directorys.
3770 (maintainer-clean): Delete all document files in source directory.
3771
3772 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
3773 (objc.srcman, objc.srcinfo): Likewise.
3774
793146e3
BK
37752004-01-20 Bruce Korb <bkorb@gnu.org>
3776
3777 * fixinc/inclhack.def(math_exception): bypass only for glibc.
3778 (matherr_decl): rename & relocate as exception_structure.
3779 This fix must precede the math_exception fix.
3780
fdb33708
RS
37812004-01-20 Roger Sayle <roger@eyesopen.com>
3782
3783 * fold-const.c (fold_convert): Rename to fold_convert_const.
3784 (fold_convert_const): Change arguments to take a tree_code,
3785 a type and the operand/expression to be converted. Return
3786 NULL_TREE if no simplification is possible. Add support for
3787 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
3788 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
3789 Adjust call to fold_convert to match new fold_convert_const.
3790 Avoid modifying the tree passed to fold in-place.
3791
34c80057
AM
37922004-01-21 Alan Modra <amodra@bigpond.net.au>
3793
3794 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
3795 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
3796 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
3797
a4295210
JDA
37982004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3799
3800 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
3801 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
3802 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
3803 (emit_move_sequence): Check scratch_reg first in various if statements.
3804 Extend source simplification to handle all 64-bit CONST_INTs.
3805 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
3806 frame size.
3807 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
3808 frame offset calculations.
3809 * pa.h (NEW_HP_ASSEMBLER): Add comment.
3810 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
3811 LEGITIMATE_64BIT_CONST_INT_P): Define.
3812 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
3813 any CONST_INT as legitimate during and after reload.
3814 (VAL_32_BITS_P, INT_32_BITS): Define.
3815 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
3816
3e89ed8d
JH
38172004-01-20 Jan Hubicka <jh@suse.cz>
3818
3819 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
3820 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
3821 containing hard regs are shared.
3822 (gen_hard_reg_clobber): New function.
3823 (hard_reg_clobbers): New array.
3824 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
3825 (copy_rtx): Do not copy clobbers containing hard regs.
3826 * rtl.h (gen_hard_reg_clobber): Declare.
3827
9b57b627
JH
38282004-01-20 Jan Hubicka <jh@suse.cz>
3829
3830 * varray.c: Include hashtab.h
3831 (varray_descriptor): New structure.
3832 (hash_descriptor, eq_descriptor, varray_descriptor,
3833 print_statistics): New static functions
3834 (varray_init, varray_grow): Update statistics
3835 (dump_varray_statistics): New function.
3836 * varray.h (dump_varray_statistics): Declare.
3837 * toplev.c (finalize): Call it.
3838 * Makefile.in (varray.o): Add dependency.
3839
6a59927d
JH
38402004-01-20 Jan Hubicka <jh@suse.cz>
3841
3842 * cselib.c: Include alloc-pool.h
3843 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
3844 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
3845 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
3846 unchain_one_elt_loc_list_pool, unchain_one_value,
3847 new_cselib_val): Simplify using allocpool.
3848 (cselib_init): Initialize allocpools.
3849 (cselib_finish): Finish allocpools.
3850 * Makefile.in (cselib.o): Depend on alloc-pool.h
3851
3c53850d
RS
38522004-01-20 Richard Sandiford <rsandifo@redhat.com>
3853
3854 * config/mips/mips.c (mips_load_call_address): Make the call insn
3855 use $gp if it could be calling a lazy binding stub.
3856
101ad855
KH
38572004-01-20 Kazu Hirata <kazu@cs.umass.edu>
3858
3859 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
3860 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
3861 (TARGET_STRUCT_VALUE_RTX): Likewise.
3862 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
3863 (PROMOTE_FUNCTION_RETURN): Remove.
3864 (STRUCT_VALUE): Remove.
3865
c099ba28
DC
38662004-01-20 Denis Chertykov <denisc@overta.ru>
3867
03b82c00 3868 PR bootstrap/13735
c099ba28
DC
3869 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
3870 register as pointer after reload.
3871
c8b6fae3
ZD
38722004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3873
3874 PR optimization/12440
3875 * loop.c: Include ggc.h.
3876 (loop_optimize): Run garbage collector between optimization of loops.
3877 * Makefile.in (loop.o): Add GGC_H dependency.
3878
c72d6c26
HP
38792004-01-20 Hartmut Penner <hpenner@de.ibm.com>
3880
1ef82ef2 3881 * gcc/config/rs6000/rs6000.c (function_arg) Handle
c72d6c26
HP
3882 vector register special in function without prototype.
3883 (function_arg_advance): Vector parameters get always
3884 GPRs allocated for the linux64 target.
3885
91e736f9
KI
38862004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
3887
3888 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
3889 not TARGET_M32RX_MASK.
3890
4043d6fb
EB
38912004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
3892
3893 PR target/13557
3894 * config/sparc/sparc.c (function_arg): Reorder the cases.
3895
50f59cd7
PB
38962004-01-19 Per Bothner <per@bothner.com>
3897
3898 Move cpp_reader's line_maps field to a shared global.
3899 * cpphash.h (cpp_reader): Rename line_maps field to line_table
3900 and change the type to a pointer rather than a struct.
3901 * cppinit.c (cpp_push_main_field): Adjust accordingly.
3902 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
3903 Likewise.
3904 * cppfiles.c (validate_pch): Likewise.
3905 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
3906 Likewise.
3907 * cpperror.c (print_location): Likewise.
3908 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
3909 * cppinit.c (cpp_create_reader): Handle new parameter.
3910 (cpp_destroy): Don't free line_maps - that's no longer our job.
3911 * input.h (line_table): New variable.
3912 * toplev.c (line_table): Declare variable.
3913 (general_init): Initialize line_table.
3914 * c-opts.c (c_common_init_options): Pass line_table to
3915 cpp_create_reader.
3916 * fix-header.c (read_scan_file): New local variable line_table.
3917 Initialize, and pass it to cpp_create_reader.
3918 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
3919 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
3920
39212004-01-19 Per Bothner <per@bothner.com>
9132fbb7
PB
3922
3923 Implement a cache for linemap_lookup.
3924 * line-map.h (struct_line_maps): Add cache field.
3925 * line-map.c (linemap_init): Zero cache field.
3926 (linemap_add): Set cache field to offset of newly allocated map.
3927 (linemap_lookup): Use and set cache field.
3928
26d107db
KK
39292004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
3930
3931 PR optimization/13567
3932 * cse.c (cse_basic_block): Call cse_insn with a non-null
3933 libcall_insn for the last SET insn of a no-confilict block.
3934
e165d61b
KC
39352004-01-20 Kelley Cook <kcook@gcc.gnu.org>
3936
1ef82ef2 3937 * Makefile.in (target_noncanonical, program_transform_name): Use
e165d61b 3938 immediate define instead of deferred.
1ef82ef2 3939 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
e165d61b
KC
3940 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
3941 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
3942 deferred backquote.
3943
53cd18ec
JM
39442004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
3945
3946 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
3947 true unconditionally.
3948 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
3949 Remove.
3950 (build_unary_op, build_modify_expr): Don't handle extended
3951 lvalues.
3952 (build_component_ref, build_conditional_expr): Call non_lvalue
3953 instead of pedantic_non_lvalue.
3954 (build_c_cast): Don't condition use of non_lvalue on pedantic.
3955 * fold-const.c (fold): Don't check pedantic directly for
3956 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
3957 passed to pedantic_non_lvalue.
3958 * doc/extend.texi: Remove documentation of extended lvalues.
3959
9ce79a7a
RS
39602004-01-19 Roger Sayle <roger@eyesopen.com>
3961
3962 PR optimization/5263
3963 * simplify-rtx.c (associative_constant_p): Delete.
3964 (simplify_associative_operation): Rewrite to linearize terms, and
3965 attempt to simplify new term against both left and right subterms.
3966 (simplify_binary_operation): Call swap_commutative_operands_p on
3967 op0 and op1, not trueop0 and trueop1. Move the initialization of
3968 trueop0 and trueop1 down to where first needed.
3969 (simplify_relational_operation): Likewise.
3970 * rtlanal.c (commutative_operand_precedence): Also order constant
3971 operands using avoid_constant_pool_reference.
3972
62e88293
RH
39732004-01-19 Richard Henderson <rth@redhat.com>
3974
1ef82ef2
ZW
3975 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
3976 don't check memory mode.
3977 (unaligned_memory_operand): Likewise.
3978 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
3979 abort for op0 not MEM.
62e88293 3980
1ef82ef2
ZW
3981 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
3982 is not a reg, copy to a scratch first.
3983 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
3984 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
3985 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
3986 (reload_inqi, reload_inhi): Fix mode of op0.
3987 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
3988 reload_outhi_help): Likewise. Use define_insn_and_split.
62e88293 3989
1ef82ef2
ZW
3990 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
3991 as well as $29 dead.
62e88293 3992
2f3321ca
EB
39932004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
3994
3995 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
3996 "tls_object" for thread-local objects.
3997 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
3998 "#tls" for thread-local sections.
3999 * configure.ac (thread-local checks): Specify --fatal-warnings in
4000 every binutils-specific checks. For sparc*-*-*, test whether the
4001 OS is Solaris and the tools are native and act accordingly.
4002 * configure: Rebuild.
4003
6fe37bc4
JL
40042004-01-19 Jeff Law <law@redhat.com>
4005
4006 * contrib.texi: Update Paolo Carlini's entry. New entries for
4007 Jerry Quinn and Petur Runolfsson.
1ef82ef2 4008
68f48f39
RS
40092004-01-19 Roger Sayle <roger@eyesopen.com>
4010
4011 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
4012 size, don't use the larger zero-extending loads.
4013
5c9948f4
RH
40142004-01-19 Richard Henderson <rth@redhat.com>
4015
4016 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
4017 * alpha.md (UNSPEC_NT_LDA): Remove.
4018 (UNSPEC_CVTLQ, cvtlq): New.
4019 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
4020 (extendsidi2_fix): Remove.
4021 (extendsidi2 splitter): Use cvtlq.
4022 (extendsidi2 fp peepholes): Remove.
4023 (cvtql): Use SFmode instead of SImode.
4024 (fix_trunc?fsi): Update to match.
4025 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
4026 (movsi): Rename from movsi_nofix, remove f alternatives.
4027 (movsi_nt_vms): Similarly.
4028 (movsi_fix, movsi_nt_vms_fix): Remove.
4029 (nt_lda): Remove.
4030 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
4031
9b0436b7
JH
40322004-01-19 Jan Hubicka <jh@suse.cz>
4033
4034 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
4035 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
4036 list.
4037 (cgraph_remove_unreachable_nodes): New function
4038 (cgraph_decide_inlining_of_small_function): Fix pasto.
4039 (cgraph_decide_inlining_incrementally): Fix pasto.
4040 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
4041
8c80adb7
SB
40422004-01-19 Steven Bosscher <stevenb@suse.de>
4043
4044 * gengtype.c (header_file): Make it static.
4045 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
4046 * gengtype.h (header_file): No longer extern.
4047
0ede749d
KH
40482004-01-18 Kazu Hirata <kazu@cs.umass.edu>
4049
4050 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
4051 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
4052 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
4053
41cbdcd0
KH
40542004-01-18 Kazu Hirata <kazu@cs.umass.edu>
4055
4056 * stmt.c (HAVE_casesi): Define it not already defined.
4057 (HAVE_tablejump): Likewise.
4058 (expand_end_case_type): Resort to the binary tree method if
4059 neither casesi or tablejump is available.
4060
5cfc5f84
DJ
40612004-01-18 Daniel Jacobowitz <drow@mvista.com>
4062
4063 * final.c (final_scan_insn): Make non-static again.
4064 * output.h (final_scan_insn): Re-add prototype.
4065 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
4066 to final_scan_insn call.
4067 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
4068 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
4069 * config/pa/pa.c (output_lbranch, output_call): Likewise.
4070 * config/sh/sh.c (print_slot): Likewise.
4071 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
4072 (output_sibcall, sparc_flat_function_epilogue): Likewise.
4073
3348b696
JH
40742004-01-18 Jan Hubicka <jh@suse.cz>
4075
4076 * basic-block.h (try_redirect_by_replacing_jump): Declare.
4077 * cfgcleanup.c (try_optimize_cfg): Use it.
4078 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
4079 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
4080 Kill hack.
4081 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
4082
4083 Revert:
4084 2004-01-16 Geoffrey Keating <geoffk@apple.com>
4085
4086 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
4087 even after reload, just don't remove the actual jump tables.
4088
72d89d35
KH
40892004-01-18 Kazu Hirata <kazu@cs.umass.edu>
4090
4091 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
4092
07b50aad
KH
40932004-01-18 Kazu Hirata <kazu@cs.umass.edu>
4094
4095 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
4096 the size of a pointer in bytes.
4097
6e46ab25
RS
40982004-01-18 Roger Sayle <roger@eyesopen.com>
4099
4100 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
4101 live "next" variable, which could lead to an infinite loop.
4102
3ce5437a
AP
41032004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
4104
b4be9e8e
AP
4105 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
4106 block.
4107
3ce5437a
AP
4108 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4109 Check for NULL in the chain and remove repeated code.
4110
20c361f3
JH
41112004-01-18 Jan Hubicka <jh@suse.cz>
4112
4113 * coverage.c (checksum_string): Rename to ...
4114 (coverage_checksum_string): ... this one, Use crc32_string; recognize
4115 names containing random number and zero the number out in order to get
4116 match.
4117
cacb5bba
RS
41182004-01-18 Richard Sandiford <rsandifo@redhat.com>
4119
4120 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
4121
daf2f129
JM
41222004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
4123
4124 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
4125 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
4126 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
4127 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
4128 doc/trouble.texi: Remove trailing whitespace.
4129
b85aed9e
RS
41302004-01-18 Richard Sandiford <rsandifo@redhat.com>
4131
1c0f3fac 4132 PR target/7618
b85aed9e
RS
4133 * config/mips/mips.c: Include cfglayout.h.
4134 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
4135 (mips_unspec_offset_high): Add temporary register argument.
4136 (mips_load_call_address): New function, split out from...
4137 (mips_expand_call): ...here.
4138 (mips_output_cplocal): New function.
4139 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
4140 (mips_emit_loadgp): New function, split out from...
4141 (mips_expand_prologue): ...here.
4142 (mips_output_mi_thunk): New function.
4143
e5d95b69
BI
41442004-01-17 Bernardo Innocenti <bernie@develer.com>
4145
4146 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
4147 mcpu32): Remove redundant checks for implied target predefines.
4148
19d66194
AP
41492004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
4150
4151 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4152 Return type is unsigned int not int.
4153 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
4154 Likewise.
4155
95fef11f
JM
41562004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
4157
4158 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
4159 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
4160 "GNU/Linux" and "Microsoft Windows" terminology.
4161
3ab51846
JM
41622004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
4163
4164 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
4165 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
4166 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
4167 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
4168 @smallexample instead of @example.
4169
cfbed37c
ZL
41702004-01-17 Ziemowit Laski <zlaski@apple.com>
4171
4172 * objc/objc-act.c (build_objc_method_call): Use target
1ef82ef2 4173 hooks instead of macros to determine if ..._stret
cfbed37c
ZL
4174 dispatchers should be used (NeXT runtime only).
4175
bef5105b
RS
41762004-01-17 Roger Sayle <roger@eyesopen.com>
4177
4178 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
4179 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
4180
dd3adcf8
DJ
41812004-01-17 Daniel Jacobowitz <drow@mvista.com>
4182
4183 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
4184 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
4185 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
4186 macros.
4187 * reload1.c (emit_reload_insns): Use them.
4188 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
4189 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
4190 for NULL PATTERN.
4191
589fe865
DJ
41922004-01-17 Daniel Jacobowitz <drow@mvista.com>
4193
4194 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
4195 (final_scan_insn): Update to take an additional SEEN argument. Emit
4196 a line note after the prologue. Make static.
4197 (line_note_exists): Remove.
4198 (final): Don't initialize line_note_exists. Update call to
4199 final_scan_insn.
4200 * output.h (final_scan_insn): Remove prologue.
4201 * function.c (set_insn_locators): Update comment.
4202 (thread_prologue_and_epilogue_insns): Add a comment.
4203
95727fb8
AP
42042004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
4205
4206 PR target/10781
4207 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
4208 Prototype.
4209 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
4210 New function.
4211 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
4212 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
4213 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
4214
f2e16e97
JH
42152004-01-17 Jan Hubicka <jh@suse.cz>
4216
26c0473b
JH
4217 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
4218 commit.
4219
f2e16e97
JH
4220 * toplev.c (HAVE_conditional_execution): Provide default.
4221 (rest_of_handle_reorder_blocks): For conditional_execution target
4222 update liveness once after all transformations
4223 (rest_of_compilation): Do crossjumping before ce3.
4224
f103e34d
GK
42252004-01-17 Geoffrey Keating <geoffk@apple.com>
4226
4227 * alias.c (new_alias_set): Mark last_alias_set for PCH.
4228 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
4229 for PCH.
4230 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
4231 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
4232 (get_TOC_alias_set): Mark 'set' for PCH.
4233
ab530ea8
GK
42342004-01-16 Geoffrey Keating <geoffk@apple.com>
4235
4236 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
4237 even after reload, just don't remove the actual jump tables.
4238
53dd3be3 42392004-01-17 J. Brobecker <brobecker@gnat.com>
e7d23ce3
B
4240
4241 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
4242 Remove checks for is_ada() and TREE_UNSIGNED.
4243 (subrange_type_die): Emit a byte_size attribute if the subrange
4244 type size is different from the base type size.
4245 (modified_type_die): Replace call to is_ada_subrange_type() by
4246 call to is_subrange_type().
4247
8582b18a
AP
42482004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
4249
4250 * config/sh/sh.c: Include ggc.h.
4251
73e61092
GK
42522004-01-16 Geoffrey Keating <geoffk@apple.com>
4253
4254 * Makefile.in (MD5_H): New.
4255 (fold-const.o): Depend on md5.h.
4256 (dwarf2out.o): Likewise.
4257 (cppfiles.o): Likewise.
4258 * cppfiles.c: Include md5.h.
4259 (should_stack_file): Check against list read from PCH file.
4260 (struct pchf_data): New.
4261 (pchf): New variable.
4262 (struct pchf_adder_info): New.
4263 (pchf_adder): New.
4264 (pchf_save_compare): New.
4265 (_cpp_save_file_entries): New.
4266 (_cpp_read_file_entries): New.
4267 (struct pchf_compare_data): New.
4268 (pchf_compare): New.
4269 (check_file_against_entries): New.
4270 * cpphash.h (_cpp_save_file_entries): Prototype.
4271 (_cpp_read_file_entries): Prototype.
4272 * cpppch.c (cpp_write_pch_state): Write the list of headers.
4273 (cpp_read_state): Read the list of headers.
4274
3b75d796
JH
42752004-01-17 Jan Hubicka <jh@suse.cz>
4276
4277 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
4278 builtin_expect specially.
4279 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
4280 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
4281 * invoke.texi (max-inline-insns-single): Set to 100.
4282 (large-function-insns): Set to 3000.
4283
cf551fba
EC
42842004-01-16 Eric Christopher <echristo@redhat.com>
4285 Chandrakala Chavva <cchavva@redhat.com>
4286
4287 * cppcharset.c (one_iso88591_to_utf8): New function.
4288 (convert_iso88591_utf8): Ditto. Use.
4289 (conversion_tab): Use.
4290 (_cpp_input_to_utf8): New function.
4291 (_cpp_init_iconv_buffer): Ditto.
4292 (_cpp_close_iconv_buffer): Ditto.
4293 * cpphash.h: Prototype new functions.
4294 (cpp_buffer): Add input_cset_desc.
4295 * cppinit.c: Add input_charset default.
4296 * cpplib.c (cpp_push_buffer): Support init and
4297 close of iconv.
4298 * cpplib.h (cpp_options): Add input_charset.
4299
510d1e80
KH
43002004-01-16 Kazu Hirata <kazu@cs.umass.edu>
4301
4302 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
4303 * config/alpha/unicosmk.h: Remove a commented-out definition
4304 of ASM_OUTPUT_SECTION_NAME.
4305 * config/stormy16/stormy16.h: Likewise.
4306
fb2c2608
RO
43072004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4308
4309 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
4310 (alpha___extern_prefix_sys_stat): ... this.
4311 Apply to <sys/mount.h>, too.
4312 Tweak to match more variations.
4313 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
4314
4315 * fixinc/inclhack.def (alpha___extern_prefix,
cf551fba 4316 alpha___extern_prefix_standards): New hacks to obey
fb2c2608
RO
4317 __PRAGMA_EXTERN_PREFIX.
4318 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
4319 test.
4320 * fixinc/tests/base/standards.h: Likewise.
cf551fba 4321
fb2c2608
RO
4322 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
4323 variations.
4324 New testcase.
4325 * fixinc/tests/base/pthread.h: Handle it.
cf551fba 4326
fb2c2608
RO
4327 * fixincl/inclhack.def (bad_lval): Sort file list.
4328 Add many missing files up to Tru64 UNIX V5.1B.
4329 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
4330 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
4331 order.
cf551fba 4332
fb2c2608
RO
4333 * fixinc/fixincl.x: Regenerate.
4334
79a76d65
MM
43352004-01-16 Mark Mitchell <mark@codesourcery.com>
4336
4337 * version.c (version_string): Change to 3.5.0.
4338 * doc/include/gcc-common.texi (version-GCC): Likewise.
4339
965514bd
JH
43402004-01-16 Jan Hubicka <jh@suse.cz>
4341
4342 * i386.md (load_tp_di): Fix pasto.
4343
4344 PR opt/13608
4345 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
4346
4347 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
4348 pp_c_character_constant, pp_c_floating_constant,
4349 pp_c_additive_expression, pp_c_shift_expression,
4350 pp_c_equality_expression, pp_c_and_expression,
4351 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
4352 pp_c_logical_and_expression): Remove inline modifier.
4353 * dwarf2out.c (get_AT): Likewise.
4354 * et-forest.c (et_splay): Likewise.
4355 * ra.h (ra_alloc, ra_calloc): Likewise
4356
87b483a1
KH
43572004-01-16 Kazu Hirata <kazu@cs.umass.edu>
4358
4359 * config/frv/frv-protos.h: Fix comment formatting.
4360 * config/frv/frv.c: Likewise.
4361 * config/frv/frv.h: Likewise.
4362 * config/frv/frv.md: Likewise.
4363 * config/frv/frvbegin.c: Likewise.
4364 * config/frv/frvend.c: Likewise.
4365
16201823
KH
43662004-01-16 Kazu Hirata <kazu@cs.umass.edu>
4367
4368 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
4369 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
4370 LINKER_DOES_NOT_WORK_WITH_DWARF2.
4371 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
4372
115df136
R
43732004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
4374
5ed5fd90 4375 PR 11864
115df136
R
4376 * postreload.c (reload_cse_simplify_operands): Don't remove
4377 implicit extension from LOAD_EXTEND_OP.
4378
e24e7211
JH
43792004-01-16 Jan Hubicka <jh@suse.cz>
4380
8c80adb7
SB
4381 PR opt/11350
4382 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
e24e7211 4383 after reload.
8c80adb7
SB
4384 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
4385 rtl_try_redirect_by_replacing_branch): Likewise.
e24e7211 4386
b0fadda7
GK
43872004-01-15 Geoffrey Keating <geoffk@apple.com>
4388
b604074c
GK
4389 PR pch/13689
4390 * alias.c (struct alias_set_entry): Mark for GC.
4391 (alias_sets): Make static, mark for GC.
4392 (record_alias_subset): Use GC to allocate alias structures.
4393 * varray.c (element): Make generic varrays GCed.
4394
a6dd4094
GK
4395 PR pch/13361
4396 * c-typeck.c (constructor_asmspec): Delete.
4397 (struct initializer_stack): Delete field 'asmspec'.
4398 (start_init): Delete saving of asmspec.
4399 (finish_init): Don't update constructor_asmspec.
4400 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
4401 * stmt.c (expand_asm): Duplicate strings from tree.
4402 (expand_asm_operands): Likewise.
4403 * tree.c (tree_size): Update computation of size of STRING_CST.
4404 (make_node): Don't make STRING_CST nodes.
4405 (build_string): Allocate string with tree node.
4406 * tree.def (STRING_CST): Update comment.
4407 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
4408 (tree_string): Place contents of string in tree node.
4409 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
4410 from tree.
4411
b0fadda7
GK
4412 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
4413 altivec operands.
4414
e0a21ab9
KH
44152004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4416
4417 * c-common.h: Fix comment formatting.
4418 * c-cppbuiltin.c: Likewise.
4419 * c-pragma.c: Likewise.
4420 * calls.c: Likewise.
4421 * collect2.c: Likewise.
4422 * cppcharset.c: Likewise.
4423 * cpptrad.c: Likewise.
4424 * dbxout.c: Likewise.
4425 * defaults.h: Likewise.
4426 * dwarf2out.c: Likewise.
4427 * fold-const.c: Likewise.
4428 * genautomata.c: Likewise.
4429 * genconditions.c: Likewise.
4430 * genflags.c: Likewise.
4431 * gengtype.c: Likewise.
4432 * integrate.c: Likewise.
4433 * loop.c: Likewise.
4434 * predict.c: Likewise.
4435 * sdbout.c: Likewise.
4436
f57fc998
ZW
44372004-01-15 Zack Weinberg <zack@codesourcery.com>
4438
4439 * config/ia64/ia64.md (*movti_internal): C output template
4440 extracted to ia64.c.
4441 (*movti_internal_reg): Delete.
4442 (reload_inti, reload_outti): Use the correct mode on operand 2
4443 in the first place, don't fix it up in the output template.
4444 (movtf, reload_ointf, reload_outtf): New expanders.
4445 (*movtf_internal): New define_insn_and_split.
4446 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
4447 make static; do not hand TFmode CONST_DOUBLEs to split_double.
4448 (ia64_split_tmode_move): New function, body mostly pulled
4449 from ia64.md:*movti_internal.
4450 (ia64_function_arg_words): New function, extracted common
4451 logic from ia64_function_arg et seq.
4452 (ia64_function_arg_offset): Likewise. Handle correctly the
4453 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
4454 (ia64_function_arg, ia64_function_arg_partial_nregs)
4455 (ia64_function_arg_advance): Use ia64_function_arg_words and
4456 ia64_function_arg_offset.
4457 (ia64_function_value): TCmode does not go in float regs.
4458 (ia64_secondary_reload_class): Also handle TFmode.
4459 * config/ia64/ia64-protos.h: Remove prototype for
4460 ia64_split_timode; add prototype for ia64_split_tmode_move.
4461
e9c4897b
KC
44622004-01-15 Kelley Cook <kcook@gcc.gnu.org>
4463
4464 * Makefile.in (MAINT): Make it an immediate assignment.
4465
5a67e41f
KH
44662004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4467
4468 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
4469
340f6494
KH
44702004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4471
4472 * config/h8300/coff.h: Replace Hitachi with Renesas.
4473 * config/h8300/elf.h: Likewise.
4474 * config/h8300/h8300-protos.h: Likewise.
4475 * config/h8300/h8300.c: Likewise.
4476 * config/h8300/h8300.h: Likewise.
4477 * config/h8300/h8300.md: Likewise.
4478 * config/h8300/lib1funcs.asm: Likewise.
4479
c954844a
AP
44802004-01-15 Andrew Pinski <apinski@apple.com>
4481
4482 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
4483 around it.
4484
34bf1fe3
KH
44852004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4486
4487 * config/h8300/h8300.c (h8300_return_in_memory): New.
4488 (TARGET_STRUCT_VALUE_RTX): Likewise.
4489 (TARGET_RETURN_IN_MEMORY): Likewise.
4490 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
4491 (RETURN_IN_MEMORY): Likewise.
4492
e5396f90
RE
44932004-01-15 Richard Earnshaw <rearnsha@arm.com>
4494
4495 PR optimization/13375
4496 * gcse.c (handle_avail_expr): Just return if the source is not a
4497 single set.
4498
46049cff
RE
44992004-01-15 Richard Earnshaw <rearnsha@arm.com>
4500 Daniel Jacobowitz <drow@mvista.com>
4501
4502 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
4503 (EQUIV): Define.
4504 (ARM_FUNC_ALIAS): New macro.
4505 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
4506 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
4507
2fabc3d6
JDA
45082004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4509
4510 PR optimization/12372
4511 * calls.c (expand_call): Add call_fusage data for stack arguments in
4512 constant calls.
4513
3c9eb5f4
AM
45142004-01-15 Alan Modra <amodra@bigpond.net.au>
4515
4516 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
4517 (rs6000_elf_declare_function_name): Formatting.
4518 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
4519
c7866154
JH
45202004-01-15 Jan Hubicka <jh@suse.cz>
4521
4522 PR bootstrap/13692
4523 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
4524 previous patch.
4525
ad5d827d
RH
45262004-01-15 Richard Henderson <rth@redhat.com>
4527
4528 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
4529 integer regs of the same call-savedness.
4530
66e07510
AS
45312004-01-15 Andreas Schwab <schwab@suse.de>
4532
4533 PR bootstrap/13562
4534 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
4535 status for NOTB/NOTW/NEGW methods.
4536
7c12f388
KH
45372004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4538
4539 * doc/invoke.texi: Update dump file names. Fix a typo.
4540
4a7bb550
KH
45412004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4542
4543 * builtins.c (expand_builtin_va_end): Don't use
4544 EXPAND_BUILTIN_VA_END.
4545 * system.h (EXPAND_BUILTIN_VA_END): Poison.
4546 * config/d30v/d30v.h: Remove a commented-out definition of
4547 EXPAND_BUILTIN_VA_END.
4548 * config/stormy16/stormy16.h: Likewise.
4549
430fff02
KH
45502004-01-15 Kazu Hirata <kazu@cs.umass.edu>
4551
4552 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
4553 * targhooks.c (default_struct_value_rtx): Don't use
4554 STRUCT_VALUE_INCOMING_REGNUM.
4555
03787dfd
KC
45562004-01-15 Kelley Cook <kcook@gcc.gnu.org>
4557
4558 PR bootstrap/12744
4559 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
4560 GENINSRC and not parsedir. Define srcextra as a langhook.
4561 * configure: Regenerate.
4562 * Makefile.in: Suppress default .l.c rule. Don't substitute
4563 parsedir and delete all references throughout. Conditionally define
4564 rule for srcextra dependent on GENINSRC.
4565 (stmp-docobjdir): Delete.
4566 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
4567 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
4568 and gengtype-yacc.h back to source directory.
4569 (maintainer-clean): Delete all parse files in source directory.
4570 (distclean): Delete generated files.
4571
4572 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
4573 (objc-parse.c, objc-parse.y): Don't use parsedir.
4574 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
4575 directory if requested.
4576 (po-generated): Don't use parsedir.
4577 (objc.maintainer-clean): Delete above files from source directory.
4578
04ab46a4
KH
45792004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4580
4581 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
4582
d624465f
KH
45832004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4584
4585 * doc/tm.texi: Replace RETURN_IN_MEMORY with
4586 TARGET_RETURN_IN_MEMORY.
4587
e1be55d0
JH
45882004-01-15 Jan Hubicka <jh@suse.cz>
4589
4590 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
4591 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
4592 functions accepting SSE arguments
4593 (function_arg): Warn only when asked to warn.
4594 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
4595
f560bf91
JM
45962004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
4597
4598 * c-parse.in (stmts_and_decls): Make label at end of compound
4599 statement a hard error.
4600
95c755e9
JH
46012004-01-14 Jan Hubicka <jh@suse.cz>
4602
4603 * cgraph.c (create_edge): Use local.redefined_extern_inline.
4604 * cgraph.h (cgraph_local_info): Sort fields by size; add
4605 redefined_extern_inline
4606 (cgraph_global_info): Sort fields by size.
4607 (cgraph_node): Likewise.
4608 * cgraphunit.c (cgraph_finalize_function): Se
4609 local.redefined_extern_inline on redefinition.
4610 (cgraph_analyze_function): Use it; fix formating.
4611
84568e14
JH
46122004-01-14 Jan Hubicka <jh@suse.cz>
4613
4614 PR c++/10776
4615 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
4616 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
4617 bitmaps
4618 (cache_size): New variable
4619 (add_dependence): Update use; canonize early memory locations
4620 (sched_analyze_1): Likewise.
4621 (sched_analyze_2): Likewise.
4622 (init_dependency_caches): Initialize bitmaps.
4623 (free_dependency_caches): Free bitmaps
4624
3a179764
KH
46252004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4626
4627 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
4628 targetm.calls.strict_argument_naming().
4629 * target.h: Likewise.
4630
b298f00f
RH
46312004-01-14 Richard Henderson <rth@redhat.com>
4632
4633 PR debug/13231
4634 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
4635 instructions.
4636
1bddbeb4
RH
46372004-01-14 Richard Henderson <rth@redhat.com>
4638
4639 PR c++/12491
4640 * except.c (struct eh_region): Add u.fixup.resolved.
4641 (resolve_one_fixup_region): Split out from ...
4642 (resolve_fixup_regions): ... here.
4643
4eb31d4f
KH
46442004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4645
4646 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
4647
16f425fc
KH
46482004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4649
4650 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
4651 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
4652 (STRUCT_VALUE): Remove.
4653
4850c982 46542004-01-14 Steven Bosscher <stevenb@suse.de>
616f6d84
SB
4655
4656 * system.h: Poison PROMOTED_MODE
4657 * integrate.c (expand_inline_function): Don't mention the
4658 PROMOTED_MODE.
4659 * loop.c (update_giv_derive): Same.
4660 * tree.h (DECL_RTL): Same.
4661
f9654065
R
46622004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
4663
4664 PR target/9365
4665 * sh.c (gen_block_redirect): Add special handling of RETURN.
4666 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
4667 far branch target (i.e. it's a return).
4668
abbe8578
KH
46692004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4670
4671 * regrename.c (find_oldest_value_reg): Fix a warning.
4672
192c8d78
RE
46732004-01-14 Richard Earnshaw <rearnsha@arm.com>
4674
4675 PR bootstrap/12527
4676 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
4677 Move linux-gas.h and linux-elf.h before aout.h.
4678 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
4679 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
4680
e512ab39
KH
46812004-01-14 Kazu Hirata <kazu@cs.umass.edu>
4682
4683 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
4684 (CONST_INT, VOIDmode, ...).
4685
684bcee5
RE
46862004-01-14 Richard Earnshaw <rearnsha@arm.com>
4687
f57fc998 4688 * regrename.c (find_oldest_value_reg): If the replacement uses
684bcee5
RE
4689 multiple hard registers, check that all of them are in CLASS.
4690
e7844ffb
JH
46912004-01-14 Jan Hubicka <jh@suse.cz>
4692
4693 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
4694 impossible.
4695
73e232f0
KC
46962004-01-14 Kelley Cook <kcook@gcc.gnu.org>
4697
4698 * Makefile.in: Define MAINT from --enable-maintainer-mode.
4699
4d774ff8
HP
47002004-01-14 Hartmut Penner <hpenner@de.ibm.com>
4701
4702 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
4703 Calculate always vrsave_mask if TARGET_ALTIVEC.
4704 (rs6000_emit_prologue): Emit code for vrsave
4705 only if TARGET_ALTIVEC_VRSAVE.
4706 (rs6000_emit_epilogue): Likewise.
4707
fa1090f5
EB
47082004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
4709
4710 * config/sparc/sparc.md (tie_add32): Fix pasto.
4711 (tie_add64): Likewise.
4712
79551a56
ZD
47132004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4714
4715 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
4716
5b8d96f1
KH
47172004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4718
4719 * config/iq2000/iq2000-protos.h: Fix comment formatting.
4720 * config/iq2000/iq2000.c: Likewise.
4721 * config/iq2000/iq2000.md: Likewise.
4722
b98d154e
B
47232004-01-14 J. Brobecker <brobecker@gnat.com>
4724
4725 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
4726 (subrange_type_die): Add handle for nameless subrange types.
4727
1a793acf
KH
47282004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4729
4730 * config/h8300/h8300-protos.h: Replace do_movsi with
4731 h8300_expand_movsi.
4732 * config/h8300/h8300.c (do_movsi): Change to
4733 h8300_expand_movsi.
4734 * config/h8300/h8300.md (movsi): Replace do_movsi with
4735 h8300_expand_movsi.
4736 (movsf): Likewise.
4737
81ad9ded
KH
47382004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4739
4740 * config/h8300/h8300.c (dosize): Change to
4741 h8300_emit_stack_adjustment. Update callers.
4742
3f0063ab
KH
47432004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4744
4745 * config/h8300/h8300.md (movstrictqi): Add an alternative with
4746 the source being post_inc. Tighten the predicate for the
4747 destination to register_operand.
4748 (movstricthi): Likewise.
4749
abf843c4
KH
47502004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4751
4752 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
4753 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
4754 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
4755
4b589eab
JH
47562004-01-14 Jan Hubicka <jh@suse.cz>
4757
d34cb6a1
JH
4758 Partial fix PR c++/12850
4759 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
4760 at zero nest level.
4b589eab 4761
9ff2cabc
BI
47622004-01-13 Bernardo Innocenti <bernie@develer.com>
4763
4764 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
f57fc998 4765 pseudo-register.
9ff2cabc 4766
a4d8ec65
DP
47672004-01-13 Devang Patel <dpatel@apple.com
4768
4769 PR debug/7078
f57fc998 4770 * dbxout.c (dbxout_symbol_name): Emit mangled names for
a4d8ec65 4771 NAMESPACE_DECL memebers.
f57fc998 4772
bfaba7a9
AP
47732004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
4774
4775 PR c++/12709
4776 * c-common.c (finish_fname_decls): Use the chain only if the
4777 tree is an expr_stmt.
4778
dfa849f3
VM
47792004-01-13 Vladimir Makarov <vmakarov@redhat.com>
4780
616f6d84 4781 * rtl.def: Add comment about new option in automata_option.
f57fc998 4782
dfa849f3
VM
4783 * genautomata.c (PROGRESS_OPTION): New macro.
4784 (progress_flag): New global variable.
4785 (gen_automata_option): Process `progress'.
4786 (transform_insn_regexps, check_unit_distributions_to_automata,
4787 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
4788 expand_automata, write_automata): Print about the progress only if
4789 progress_flag. Remove fflush.
4790 (initiate_automaton_gen): Process command line flag `-progress'.
4791
4792 * doc/md.texi: Describe the new option.
f57fc998 4793
9405162e
ZD
47942004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4795
4796 * cfg.c (dump_bb): Dump entry edges.
4797
f954388e
RE
47982004-01-13 Richard Earnshaw <rearnsha@arm.com>
4799
f57fc998 4800 * arm.c (thumb_legitimate_address_p): Only allow constant pool
f954388e
RE
4801 references from SImode.
4802 * arm.md (thumb_movhi_insn): Don't allow minipool references.
4803
0fe7abcc
KH
48042004-01-13 Kazu Hirata <kazu@cs.umass.edu>
4805
4806 * system.h (TEXT_SECTION): Poison.
4807 * varasm.c (text_section): Don't use TEXT_SECTION.
4808 * config/sh/sh.c (sh_file_start): Fix a comment typo.
4809 * doc/tm.texi (TEXT_SECTION): Remove.
4810
fdb07791
BE
48112004-01-13 Ben Elliston <bje@wasabisystems.com>
4812
4813 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
4814
56067bbe
JW
48152004-01-12 James E Wilson <wilson@specifixinc.com>
4816
4817 * unwind-libunwind.c: Delete.
4818
bc298aa7
ZW
48192004-01-12 Zack Weinberg <zack@codesourcery.com>
4820
4821 PR 13656
4822 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
4823 oldtype is set, set *newtypep or *oldtypep too. Do not set
4824 them at the very end.
4825 (validate_proto_after_old_defn): Restructure for comprehensibility;
4826 make error messages clearer.
4827
12a08b40
ZW
48282004-01-12 Zack Weinberg <zack@codesourcery.com>
4829
4830 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
4831 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
4832 * varray.c: No need to prototype error.
4833 (varray_check_failed): Wrap long string onto two lines.
4834 (varray_underflow): New function.
4835
faed5cc3
SB
48362004-01-13 Steven Bosscher <stevenb@suse.de>
4837
4838 PR c++/13376
4839 * function.h (struct function): Kill `name' field.
4840 (current_function_name): Make it an extern function.
4841 * function.c (current_function_name): New function.
4842 * graph.c: Update all uses of current_function_name.
4843 * gcse.c: Likewise.
4844 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
4845 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
4846 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
4847 instead of a strcmp with "main".
4848
2d327012
JH
48492004-01-13 Jan Hubicka <jh@suse.cz>
4850
0bb03c11
JH
4851 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
4852
2d327012
JH
4853 * cgraphunit.c (cgraph_optimize_function): Always do
4854 optimize_inline_calls when there is always_inline callee.
4855 (cgraph_decide_inlining): Fix formating.
4856 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
4857 functions.
4858 (expand_call_inline): Likewise.
4859 * toplev.h (sorry): Fix prototype.
4860
04cc79bb
RS
48612004-01-12 Roger Sayle <roger@eyesopen.com>
4862
4863 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
4864 conditional jumps that drop through to unconditional jumps or the
4865 end of the sequence.
4866
3416f5c2
JH
48672004-01-13 Jan Hubicka <jh@suse.cz>
4868
4869 * alias.c (new_alias_set): Construct the alias_set varray.
4870 (init_alias_once): Don't do it here.
4871
f92ed976
ME
48722004-01-12 Marc Espie <espie@openbsd.org>
4873
4874 * system.h: handle YYBYACC like YYBISON.
4875
ff2aaa93
JM
48762004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
4877
4878 PR target/10847
4879 * config.gcc: No longer includes conflicting header sparc/sol2.h when
4880 building on sparc64-*-openbsd*.
4881
c5ff9123
AP
48822004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
4883
4884 PR debug/13539
4885 * dbxout.c (dbxout_type): Protected inheritance is not
4886 private but protected.
4887
3cd2a183
RS
48882004-01-12 Richard Sandiford <rsandifo@redhat.com>
4889
4890 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
4891
5c881655
KH
48922004-01-12 Kazu Hirata <kazu@cs.umass.edu>
4893
4894 PR optimization/12508.
4895 * combine.c (try_combine): Remove a dead set in a parallel
4896 even if its destination is a subreg.
4897
4898 Revert:
4899 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
4900 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
4901 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
4902
a42f8ae7 49032004-01-12 Geoffrey Keating <geoffk@apple.com>
affad9a4
GK
4904
4905 * real.c: Update copyright date.
4906 * emit-rtl.c: Likewise.
4907 * rtl.h: Likewise.
4908 * dwarf2out.c: Likewise.
4909 * config/rs6000/darwin-ldouble.c: Likewise.
4910 * config/rs6000/rs6000.md: Likewise.
4911
4274207b
DE
49122004-01-12 David Edelsohn <edelsohn@gnu.org>
4913
4914 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
4915 TFmode to SImode libfuncs.
4916
06e4eab5
RS
49172004-01-12 Roger Sayle <roger@eyesopen.com>
4918
4919 PR middle-end/11397
4920 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
4921
432f982f
JH
49222004-01-12 Jan Hubicka <jh@suse.cz>
4923
4924 PR opt/12826
4925 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
4926 stored.
4927
4928 PR opt/12863
4929 * cfgcleanup.c (label_is_jump_target_p): Move to...
4930 * rtlanal.c (label_is_jump_target_p): ... here.
4931 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
4932 edges unified with branch edges.
4933
8064d930
RE
49342004-01-12 Richard Earnshaw <rearnsha@arm.com>
4935
4936 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
4937 high word of an integral CONST_DOUBLE.
4938
1c48f4be 49392004-01-12 Paul Brook <paul@codesourcery.com>
0786ca87
PB
4940
4941 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
4942
68d2b0bb 49432004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
07d7d2f4
R
4944
4945 PR target/13585
4946 * sh-protos.h (check_use_sfunc_addr): Declare.
4947 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
4948 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
4949
c65ecebc
JH
49502004-01-12 Jan Hubicka <jh@suse.cz>
4951
9ddb66ca
JH
4952 * alias.c: Invlude varray.h
4953 (alias_sets): Turn into varray.
4954 (get_alias_set_entry): Use VARRAY; mark inline.
4955 (mems_in_disjoint_alias_sets_p): Mark inline.
4956 (record_alias_subset): Use varray.
4957 (init_alias_once): Initialize varray.
4958 (new_alias_set): Grow array.
4959 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
4960
49612004-01-12 Jan Hubicka <jh@suse.cz>
4962
4963 Partial fix for PR opt/10776 II
c65ecebc
JH
4964 * cselib.c: Include params.h
4965 (cselib_invalidate_mem): Limit amount of nonconflicting memory
4966 locations.
4967 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
4968 * Makefile.in (cselib.o): Depend on params.h
4969
c0657872
RS
49702004-01-12 Richard Sandiford <rsandifo@redhat.com>
4971
4972 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
4973 simplify_unary_operation if the operand has a known mode.
4974
d2288d5d
HP
49752004-01-12 Hartmut Penner <hpenner@de.ibm.com>
4976
b40ee5d6 4977 PR target/13534
d2288d5d
HP
4978 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
4979 predicate to handle 'ld' conform addresses.
4980 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
4981 contraint.
4982 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
4983 are memory contraints.
12a08b40 4984 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
d2288d5d 4985 New prototype.
12a08b40 4986 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
d2288d5d
HP
4987 Change 'o' to 'Y' constraint.
4988 (*movdf_softfloat64): Ditto.
12a08b40 4989
c223cf45
BI
49902004-01-12 Bernardo Innocenti <bernie@develer.com>
4991
4992 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
4993 brace-enclosed syntax in all C output statements.
4994
5fc921c1
DE
49952004-01-12 David Edelsohn <edelsohn@gnu.org>
4996
4997 PR target/13401
4998 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
4999 Objective-C language type value is 14.
5000
48568ec7
MO
50012004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
5002
5003 PR c/12148
5004 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
5005 `int' in a number of places to make sure we always have a SImode
5006 and not a HImode. Add a 'L' suffix to a number of constants.
5007
124c9423
JDA
50082004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5009
5010 * pa.c: Don't include obstack.h.
5011
5012 * pa.md: Correct constraint in pattern for loading PIC label address.
5013
c924f70c
KK
50142004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
5015
5016 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
5017 before defining.
5018
53efeb8d
SB
50192004-01-11 Steven Bosscher <stevenb@suse.de>
5020
1eee14b9 5021 PR fortran/9972
53efeb8d
SB
5022 * toplev.c (rest_of_handle_inline): Also consider functions
5023 for deferral if the language is GNU F77.
5024
d4968a11
ZW
50252004-01-11 Zack Weinberg <zack@codesourcery.com>
5026
5027 * c-decl.c (diagnose_arglist_conflict): Add missing space to
5028 diagnostic messages.
5029
1759c760
JJ
50302004-01-11 Jakub Jelinek <jakub@redhat.com>
5031
5032 PR middle-end/13392
5033 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
5034 to drop through label. Don't fall back to SCC even when conditional
5035 jump has not been found.
5036
0bcf8261
JH
50372004-01-11 Jan Hubicka <jh@suse.cz>
5038
fb544601
JH
5039 * invoke.texi: Fix syntax error in previous patch.
5040
0bcf8261
JH
5041 Partial fix for PR opt/10776
5042 * Makefile.in (reload.o): Include param.h
5043 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
5044 * reload.c: Include params.h.
5045 (find_equiv_reg): Work limiting check.
5046 * invoke.texi: Document.
5047
bd9131c0
RS
50482004-01-11 Richard Sandiford <rsandifo@redhat.com>
5049
5050 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
5051 out-of-bounds accesses to string constants. Simplify mips16
5052 case accordingly.
5053
6732ee60
RS
50542004-01-11 Richard Sandiford <rsandifo@redhat.com>
5055
5056 PR optimization/13469
5057 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
5058 reload_cse_regs (-fnon-call-exceptions only).
5059
14bc6742
KH
50602004-01-11 Kazu Hirata <kazu@cs.umass.edu>
5061
5062 * config/mcore/lib1.asm: Fix comment formatting.
5063 * config/mcore/mcore-elf.h: Likewise.
5064 * config/mcore/mcore.c: Likewise.
5065 * config/mcore/mcore.h: Likewise.
5066 * config/mcore/mcore.md: Likewise.
5067
3c6e6fbf
ZW
50682004-01-10 Zack Weinberg <zack@codesourcery.com>
5069
5070 * c-decl.c (duplicate_decls): Break apart into...
5071 (diagnose_arglist_conflict, validate_proto_after_old_defn)
5072 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
5073 ... these new functions. Restructure for comprehensibility.
5074 Remove various archaic special cases. Always report the
5075 location of the previous declaration when a diagnostic is issued.
5076 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
5077 (match_builtin_function_types): Delete unnecessary forward declaration.
5078
1e8dcb41
ZW
50792004-01-10 Zack Weinberg <zack@codesourcery.com>
5080
5081 * genautomata.c (make_automaton, NDFA_to_DFA):
5082 Print progress bars with '.' characters instead of '*'.
5083 (build_automaton): Change notes to match.
5084
a2ab189d
KH
50852004-01-10 Kazu Hirata <kazu@cs.umass.edu>
5086
5087 * config/m32r/m32r.md: Use define_constants for unspec and
5088 unspec_volatile.
5089
cf7cb67e
JH
50902004-01-10 Jan Hubicka <jh@suse.cz>
5091
c8fdcfae 5092 PR opt/11635
cf7cb67e
JH
5093 * expr.c (expand_expr_real): More curefully expand union casts.
5094
0574200c
KH
50952004-01-10 Kazu Hirata <kazu@cs.umass.edu>
5096
5097 * config/m32r/m32r.md (flush_icache): Use 1 for
5098 unspec_volatile.
5099
a2a0019f
DE
51002004-01-10 David Edelsohn <edelsohn@gnu.org>
5101 James E Wilson <wilson@specifixinc.com>
5102
5103 PR debug/12860
5104 * dbxout.c (dbxout_symbol): Remove initialization of
5105 current_sym_code, current_sym_value, and current_sym_addr.
5106 (dbxout_symbol_location): Same.
5107 (dbxout_prepare_symbol): Zero current_sym_code,
5108 current_sym_value, and current_sym_addr.
5109
bb3f5384
RS
51102004-01-10 Richard Sandiford <rsandifo@redhat.com>
5111
5112 * tree.c (get_unwidened): Reorder conditions so that the null pointer
5113 check is done first.
5114
fbfb16e2
EC
51152004-01-09 Eric Christopher <echristo@redhat.com>
5116
5117 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
5118 if we're running mark_constant_function.
5119
cc23f3c7
JB
51202004-01-09 Jeff Bailey <jbailey@nisa.net>
5121
5122 PR target/12561
5123 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
5124
975421be
AP
51252004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
5126
5127 PR debug/11231
a2a0019f
DE
5128 * dbxout.c (dbxout_type_fields): Return if any item is
5129 error_mark_node or the type is error_mark_node.
975421be 5130
7e4bd541
GK
51312004-01-09 Geoffrey Keating <geoffk@apple.com>
5132
f01519dd
GK
5133 * config/rs6000/darwin-ldouble.c: Add big comment explaining
5134 exactly what is expected as a 'long double'.
5135 (_xlqadd): When a value to be returned is representable as a
5136 'double', just return it directly, do not construct it using a union.
5137 Also, correct final fixup.
5138 (_xlqmul): Likewise.
5139 (_xlqdiv): Likewise.
5140 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
5141
7e4bd541
GK
5142 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
5143
47069ecb
RH
51442004-01-09 Richard Henderson <rth@redhat.com>
5145
5146 * recog.c (constrain_operands): Validate mem operands.
5147
9813058e
JW
51482004-01-09 James E Wilson <wilson@specifixinc.com>
5149
5150 * gcc.c (init_spec): Remove -lunwind from shared case.
5151 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
5152
b0fd7d27
SE
51532004-01-09 Steve Ellcey <sje@cup.hp.com>
5154
5155 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
5156 * configure: Regenerate
5157
3897f229
JM
51582004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
5159
5160 PR c/11234
5161 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
5162 between function and object pointers.
5163 (digest_init): When comparing a pointer to function type to the
5164 target type, only apply TREE_TYPE once to the pointer to function
5165 type.
5166 * except.c (for_each_eh_label_1): Treat data as a pointer to a
5167 function pointer rather than casting it to a function pointer.
5168 (for_each_eh_label): Update caller.
5169 * recog.h (struct insn_data): Use a struct or union for output.
5170 * genoutput.c (output_insn_data): Update.
5171 * final.c (get_insn_template): Update.
5172
0fab64a3
MM
51732004-01-09 Mark Mitchell <mark@codesourcery.com>
5174
5175 * expr.h (expand_expr): Make it a macro, not a function.
5176 (expand_expr_real): New function.
5177 * expr.c (store_expr): Adjust logic for deciding whether or not to
5178 copy the value returned by expand_expr.
5179 (expand_expr): Rename to ...
5180 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
5181 calls to language hooks.
5182 * c-common.h (c_expand_expr): Adjust prototype.
5183 * c-common.c (c_expand_expr): Add alt_rtl parameter.
5184 * langhooks-def.h (lhd_expand_expr): Change prototype.
5185 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
5186 * langhooks.h (lang_hooks): Change type of expand_expr.
5187 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
5188 (last_expr_alt_rtl): Likewise.
5189 (expand_expr_stmt_value): Set last_expr_alt_rtl.
5190 (clear_last_expr): Clear it.
5191 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
5192 (expand_end_bindings): Save and restor last_expr_alt_rtl.
5193 * tree.def (RTL_EXPR): Give it an additional operand.
5194 * tree.h (RTL_EXPR_ALT_RTL): New macro.
9813058e 5195
df68f43b
KI
51962004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5197
5198 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
900a35c8 5199 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
df68f43b 5200
58ebda9c
KH
52012004-01-09 Kazu Hirata <kazu@cs.umass.edu>
5202
5203 PR target/13380.
5204 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
5205 or (ne:SI (reg:CC 17) (const_int 0)).
5206 Be specific about modes wherever possible.
5207
81ad38a6
KH
52082004-01-09 Kazu Hirata <kazu@cs.umass.edu>
5209
5210 * config/m32r/m32r.c (m32r_expand_block_move): Call
5211 gen_movestrsi_internal with two more arguments.
5212 (m32r_output_block_move): Adjust operand numbers.
5213 Properly update the source and destination pointers.
5214 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
5215 'r+'. Change the set detinations to match_operand.
5216
b816f339
KH
52172004-01-09 Kazu Hirata <kazu@cs.umass.edu>
5218
5219 * final.c (FIRST_INSN_ADDRESS): Remove.
5220 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
5221 * system.h (FIRST_INSN_ADDRESS): Poison.
5222 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
5223 * config/m32r/m32r-protos.h: Remove the prototype for
5224 m32r_first_insn_address.
5225 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
5226 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
5227 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
5228
de99511b
B
52292004-01-09 J. Brobecker <brobecker@gnat.com>
5230
5231 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
5232 we just created.
5233 (is_ada_subrange_type): DIEs for enumeration subtypes should be
5234 emitted as subrange types too.
5235 (subrange_type_die): Add handling of enumeration subtypes.
5236
90e4e4c5
RH
52372004-01-08 Richard Henderson <rth@redhat.com>
5238
5239 PR opt/12441
5240 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
9813058e
JW
5241 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5242 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5243 (ix86_address_cost): Be prepared for SUBREGed registers.
5244 (legitimate_address_p): Accept SUBREGed registers.
90e4e4c5 5245
a6a5e4c9
KC
52462004-01-08 Kelley Cook <kcook@gcc.gnu.org>
5247
5248 * Makefile.in: Rename configure.in to configure.ac
5249 * doc/sourcebuild.texi: Likewise.
5250 * configure: Regenerate.
5251 * config.in: Regenerate.
5252
588f75d0
SH
52532004-01-08 Stuart Hastings <stuart@apple.com>
5254
5255 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
5256
6242fcd8
JH
52572004-01-08 Jan Hubicka <jh@suse.cz>
5258
5259 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
5260
a29077da
GK
52612004-01-08 Geoffrey Keating <geoffk@apple.com>
5262
ecb62ae7
GK
5263 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
5264 (UNSPEC_FIX_TRUNC_TF): New constant.
5265 (movtf_internal): Make splitter active only when insn is active.
5266 (extenddftf2): Rewrite to properly load zero into low part.
5267 (extenddftf2_internal): New.
5268 (extendsftf2): Rewrite.
5269 (truncdftf2): Correct length.
5270 (floatditf2): Delete.
5271 (fix_trunc_helper): New.
5272 (fix_trunctfdi2): Use fix_trunc_helper.
5273 (fix_trunctfsi2): Likewise.fix_trunc
5274 (fix_trunctfsi2_internal): New.
5275
a29077da
GK
5276 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
5277 addresses are legitimate on Darwin even when flag_pic.
5278 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
5279 non-offsettable addresses for loads of TFmode constants.
5280
cb1f9d03
KI
52812004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5282
5283 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
5284 variables in the appropriate bss section.
5285
7ddb6568
AM
52862004-01-09 Alan Modra <amodra@bigpond.net.au>
5287
5288 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
5289 target_flags has MASK_POWERPC64 when -m64.
5290 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
5291 to 620, 630, power3, power4 and rs64a entries.
5292 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
5293
effdb493
RS
52942004-01-08 Richard Sandiford <rsandifo@redhat.com>
5295
5296 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
5297 floating-point constants.
5298
fbfd77b8
JB
52992004-01-08 J. Brobecker <brobecker@gnat.com>
5300
5301 * dwarf2out.c (subrange_type_die): Add context_die parameter.
5302 Create the subrange_type DIE using the given context DIE.
5303 (modified_type_die): Update call to subrange_type_die.
5304
53052004-01-08 Zack Weinberg <zack@codesourcery.com>
7ce27103
ZW
5306
5307 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
5308 Add multiple-include guard.
5309
ce1f50b2
HP
53102004-01-08 Hartmut Penner <hpenner@de.ibm.com>
5311
7ce27103
ZW
5312 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
5313 all vector constant loadable by vsplt*.
ce1f50b2
HP
5314 (output_vec_const_move): Likewise.
5315
bca63328
JM
53162004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
5317
5318 PR c/6024
5319 * c-typeck.c (comptypes): Only treat enumerated types in the same
5320 translation unit as compatible with each other when they are the
5321 same type.
5322 * doc/extend.texi: Update.
5323
85b58ca5
JM
53242004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
5325
5326 PR c/12165
5327 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
5328 array type from the array element type.
5329
93c9d1ba
AM
53302004-01-07 Alan Modra <amodra@bigpond.net.au>
5331
5332 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
5333 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
5334 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
5335 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
5336 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
5337
deae8de6
EC
53382004-01-06 Eric Christopher <echristo@redhat.com>
5339
5340 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
5341 (DWARF2_DEBUGGING_INFO): Define.
5342 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
5343 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
5344 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
5345 for irix as.
5346 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
5347 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
5348 * config/mips/iris5gas.h: Ditto.
5349 (DBX_DEBUGGING_INFO): Remove.
5350 (DWARF2_DEBUGGING_INFO): Ditto.
5351 (MIPS_DEBUGGING_INFO): Ditto.
5352 (PREFERRED_DEBUGGING_TYPE): Ditto.
5353 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
5354 (PREFERRED_DEBUGGING_TYPE): Ditto.
5355 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
5356 * config/mips/elf64.h: Ditto.
5357
fed2b316
JH
53582004-01-06 Jan Hubicka <jh@suse.cz>
5359
5360 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
5361 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
5362
64d961b8
GK
53632004-01-06 Geoffrey Keating <geoffk@apple.com>
5364
084f5a35
GK
5365 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
5366 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
5367 * config/rs6000/darwin-ldouble.c: New.
deae8de6 5368
550d1387
GK
5369 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
5370 for constants.
5371 (constant_subword): Delete.
5372 * rtl.h (constant_subword): Delete prototype.
5373 (immed_double_const): Is not in varasm.c.
5374 * simplify-rtx.c (simplify_immed_subreg): New.
5375 (simplify_subreg): Use simplify_immed_subreg.
5376
0c90aa3c
GK
5377 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
5378 than trying to generate RTL directly.
5379 (fix_trunctfsi2): Use expand_fix rather than trying to generate
5380 RTL directly.
5381
64d961b8
GK
5382 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
5383
72b38561
DE
53842004-01-06 David Edelsohn <edelsohn@gnu.org>
5385
5386 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
5387 function into a separate macro.
5388 (read_only_data_section): Add void argument.
5389 (private_data_section): Same.
5390 (read_only_private_data_section): Same.
5391 (toc_section): Same.
5392
9a609388
JH
53932004-01-06 Jan Hubicka <jh@suse.cz>
5394
0aaae060
JH
5395 * invoke.texi: Remove typo in last change.
5396
9a609388
JH
5397 PR target/10301
5398 * config.gcc: Accept opteron and athlon-64 as variants
5399 of k8.
5400 * i386.c (override_options): Likewise.
5401 * invoke.texi (i386 -mtune): Expand documentation.
5402
5d3cc252
KH
54032004-01-06 Kazu Hirata <kazu@cs.umass.edu>
5404
5405 * alias.c: Fix comment typos.
5406 * builtins.c: Likewise.
5407 * cfg.c: Likewise.
5408 * df.c: Likewise.
5409 * dominance.c: Likewise.
5410 * dwarf2out.c: Likewise.
5411 * emit-rtl.c: Likewise.
5412 * expr.c: Likewise.
5413 * final.c: Likewise.
5414 * fold-const.c: Likewise.
5415 * gcse.c: Likewise.
5416 * genattrtab.c: Likewise.
5417 * genrecog.c: Likewise.
5418 * gensupport.c: Likewise.
5419 * ggc-zone.c: Likewise.
5420 * integrate.c: Likewise.
5421 * local-alloc.c: Likewise.
5422 * loop.c: Likewise.
5423 * recog.c: Likewise.
5424 * regmove.c: Likewise.
5425 * reg-stack.c: Likewise.
5426 * reorg.c: Likewise.
5427 * rtlanal.c: Likewise.
5428 * rtl.h: Likewise.
5429 * sched-ebb.c: Likewise.
5430 * simplify-rtx.c: Likewise.
5431 * toplev.c: Likewise.
5432 * varasm.c: Likewise.
5433
95ea367d
KH
54342004-01-06 Kazu Hirata <kazu@cs.umass.edu>
5435
5436 * doc/install.texi: Fix typos.
5437 * doc/invoke.texi: Likewise.
5438 * doc/md.texi: Likewise.
5439
f26ef713
KI
54402004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5441
5442 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
5443
bcf17554
JH
54442004-01-06 Jan Hubicka <jh@suse.cz>
5445
5446 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
5447 (function_arg_advance): Do not pass aggregates in SSE; deal handling
5448 of MMX_REGPARM.
5449 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
5450 add MMX_REGPARM.
5451 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
5452 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
5453 (MMX_REGPARM_MAX): Similarly for -mmmx.
5454
24746a42
KH
54552004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5456
5457 * config/sh/linux.h: Fix comment formatting.
5458 * config/sh/netbsd-elf.h: Likewise.
5459 * config/sh/sh.c: Likewise.
5460 * config/sh/sh.h: Likewise.
5461 * config/sh/vxworks.h: Likewise.
5462
f7e7e318
KH
54632004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5464
5465 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
5466 * toplev.c (output_file_directive): Don't use
5467 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
5468
80a08664
SB
54692004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
5470
5471 * toplev.c: Fix broken checkin of 2003-12-30.
5472
02fef853 54732004-01-05 Daniel Berlin <dberlin@dberlin.org>
deae8de6 5474
02fef853
DB
5475 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
5476 (USING_MMAP): We don't support non-mmap.
5477 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
5478 large objects.
5479 (struct page_entry): Remove bytes_free.
5480 (struct page_table_chain): Remove.
5481 (struct globals): Remove page_table member.
5482 (loookup_page_table_entry): Function deleted.
5483 (set_page_table_entry): Ditto.
5484 (ggc_allocated_p): No longer need page table lookups.
5485 (ggc_marked_p): Ditto.
5486 (alloc_small_page): Don't care about bytes_free anymore.
5487 (alloc_large_page): Round up size.
5488 (ggc_alloc_zone_1): Mark large objects as such, and calculate
deae8de6 5489 their size the new way.
02fef853
DB
5490 Remove page table lookups and setting.
5491 (ggc_get_size): Calculate large object size the new way.
5492 (sweep_pages): Redo to account for fact that we no longer have
5493 bytes_free.
5494 (ggc_collect): No longer need to reincrement bytes_free.
5495 (ggc_pch_alloc_object): Handle new large objects properly.
5496 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
5497
60b799fd
KH
54982004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5499
5500 * doc/invoke.texi: Remove a page break.
5501
908c8c7e
KH
55022004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5503
5504 * config/avr/avr.c (avr_output_function_prologue): Remove an
5505 extra pair of curly braces.
5506
8596d0a1
KH
55072004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5508
5509 * config/mn10300/mn10300.c: Fix comment formatting.
5510 * config/mn10300/mn10300.h: Likewise.
5511
1e2d4dc1
RK
55122004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5513
5514 * tree.h: Update documentation on nothrow_flag.
5515 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
5516 types.
5517
b6e69d94
KH
55182004-01-05 Kazu Hirata <kazu@cs.umass.edu>
5519
5520 * doc/invoke.texi: Remove traces of dead ports.
5521
1cf959cb
RS
55222004-01-05 Richard Sandiford <rsandifo@redhat.com>
5523
5524 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
5525 option.
5526
f6149877
RS
55272004-01-05 Richard Sandiford <rsandifo@redhat.com>
5528
5529 PR target/12945
5530 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
b56c0023 5531 counter labels.
f6149877
RS
5532 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
5533 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
5534 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
5535 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
5536 (mips_symbol_insns): Don't trust the local/global classification.
5537 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
5538 (override_options): Make -mabicalls -fno-unit-at-a-time imply
5539 -mno-explicit-relocs.
5540 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
5541 between local and global symbols.
5542
a6008bd8
RS
55432004-01-05 Richard Sandiford <rsandifo@redhat.com>
5544
5545 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
5546 (mips_preferred_reload_class): Declare.
5547 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
5548 (EXTRA_CONSTRAINT): Update accordingly.
5549 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
5550 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
5551 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
5552 mips_dangerous_for_la25_p.
5553 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
5554 if mips_dangerous_for_la25_p.
5555
d7b3c085
BI
55562004-01-05 Bernardo Innocenti <bernie@develer.com>
5557
5558 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
deae8de6 5559 warning.
d7b3c085 5560
ca9bc441
NN
55612004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
5562
5563 * configure.ac: Use AC_PROG_CPP_WERROR.
5564 * configure: Regenerate.
5565
016d7f3e
ZW
55662004-01-04 Zack Weinberg <zack@codesourcery.com>
5567
5568 * .cvsignore: Add autom4te.cache.
5569
5a4b3afd
RS
55702004-01-04 Richard Sandiford <rsandifo@redhat.com>
5571
5572 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
5573 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
5574 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
5575 then architecture options, then ABI options. General rewording.
5576
928a5ba9
JM
55772004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
5578
5579 PR c/3414
5580 * doc/extend.texi: Clarify definition of malloc attribute.
5581
dc0bfe6a
JH
55822004-01-04 Jan Hubicka <jh@suse.cz>
5583
5584 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
5585 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
5586 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
5587 (cgraph_inline_p): Add extra argument reason.
5588 * cgraphunit.c: Minor formating fixes.
5589 cgraph_first_inlined_callee): New functions.
5590 (record_call_1): Record builtins too.
5591 (cgraph_analyze_function): Update inline_failed messages.
5592 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
5593 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
5594 (cgraph_check_inline_limits): Likewise; Add argument reason.
5595 (cgraph_set_inline_failed): New static function.
5596 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
5597 reasons.
5598 (cgraph_inline_p): Add new argument reason.
5599 * tree-inline.c (expand_call_inline): Update warning.
5600
ba479fd2
NN
56012004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
5602
914c5af7
NN
5603 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
5604 with modern equivalents.
5605 * configure: Regenerate.
5606
016d7f3e
ZW
5607 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
5608 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
5609 * configure: Regenerate.
78c9cb99 5610
d44f1a00
NN
5611 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
5612
ba479fd2
NN
5613 * configure.in: Rename to configure.ac.
5614 * configure.ac: Renamed from configure.in; make minimum necessary
5615 changes for autoconf 2.5x.
5616 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
5617 * configure: Regenerate with autoconf 2.57.
5618
031a26c5
KH
56192004-01-03 Kazu Hirata <kazu@cs.umass.edu>
5620
5621 * config/mips/linux.h: Fix comment formatting.
5622 * config/mips/mips.c: Likewise.
5623 * config/mips/mips.h: Likewise.
5624 * config/mips/mips.md: Likewise.
5625 * config/mips/netbsd.h: Likewise.
5626 * config/mips/windiss.h: Likewise.
5627
b87cfcfb
RH
56282004-01-02 Richard Henderson <rth@redhat.com>
5629
5630 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
5631 for sse and 387; add suppression for mmx.
5632
36579663
AP
56332004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
5634
9d85830f
AP
5635 * loop.c (loop_optimize): Free all loops_info's mems.
5636
016d7f3e 5637 * c-typeck.c (finish_init): Free spelling_base before
36579663 5638 setting it again.
016d7f3e 5639
36579663
AP
5640 * cfgloop.c (flow_loops_find): Always free the sbitmap
5641 headers.
5642
5643 * predict.c (estimate_probability): Free bbs after being
5644 done with it.
5645
3864b6fe
KH
56462004-01-02 Kazu Hirata <kazu@cs.umass.edu>
5647
5648 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
5649 const_8bit_operand and call_address_operand.
5650
8b6bd5d7
JH
56512004-01-02 Jan Hubicka <jh@suse.cz>
5652
5653 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
5654 when there is nothing to inline but warnings are requested.
5655 (cgraph_decide_inlining): Fix memory leak.
5656
9b9bd3b2
JH
56572004-01-02 Jan Hubicka <jh@suse.cz>
5658
5659 * expr.c (store_constructor): Fix pasto in previous patch.
5660
43f3a59d
KH
56612004-01-02 Kazu Hirata <kazu@cs.umass.edu>
5662
5663 * config/i386/cygming.h: Fix comment formatting.
5664 * config/i386/djgpp.h: Likewise.
5665 * config/i386/gthr-win32.c: Likewise.
5666 * config/i386/i386-interix.h: Likewise.
5667 * config/i386/i386.c: Likewise.
5668 * config/i386/i386.h: Likewise.
5669 * config/i386/openbsd.h: Likewise.
5670 * config/i386/winnt.c: Likewise.
5671 * config/i386/xm-mingw32.h: Likewise.
5672
daef8bbd
JM
56732004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
5674
5675 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
5676 copyright and last modification dates.
5677
7e081a0c
AJ
56782004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
5679
5680 * doc/install.texi (Specific): Mention x86_64.
5681
ac3f5df7
HPN
56822004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
5683
5684 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
5685 Call force_operand on plus_constant result.
5686
997404de
JH
56872004-01-01 Jan Hubicka <jh@suse.cz>
5688
5689 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
5690 * expr.c (store_constructor): Use vec_init pattern.
5691 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
5692 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
5693 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
5694 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
5695 New patterns.
5696 (sse2_unpc?pd): Fix pattern.
5697 (sse2_movlpd): Kill.
5698 (sse2_movsd): Deal with movlpd too.
5699 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
5700 (ix86_expand_vector_init): New.
5701 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
5702 * md.texi (vec_set, vec_extract): Document
5703
b684a3df
JH
57042003-12-31 Jan Hubicka <jh@suse.cz>
5705
5706 PR opt/13473
5707 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
5708 ASM input operands
5709
5710 PR opt/12617
5711 * toplev.c (dump_file_index): Reorder ce3 and bbro.
5712 (dump_file): Likewise.
5713 (rest_of_compilation): Likewise.
5714
5715 PR debug/13367
5716 * cgraph.c (cgraph_function_possibly_inlined): Even with
5717 flag_really_no_inline we inline always_inline functions.
5718 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
5719 for non-always_inline functions when there is flag_really_no_inline.
5720 (cgraph_decide_inlining): Limit work done when not inlining.
5721 (cgraph_decide_inlining_incrementally): Likewise.
5722 (cgraph_optimize_function): Check whether something got inlined.
5723 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
5724 extern inline functions when not inlining.
5725
5726 * opts.c (decode_options): Disable crossjumping at -O1
5727 * invoke.texi (-O1): Document change.
a55f4481 5728
cd14f58c 5729See ChangeLog.10 for earlier changes.